diff --git a/art/endo-mac.png b/art/endo-mac.png
new file mode 100644
index 0000000..f36dbc6
Binary files /dev/null and b/art/endo-mac.png differ
diff --git a/packages/exo-app/art/exo.png b/art/endo.png
similarity index 100%
rename from packages/exo-app/art/exo.png
rename to art/endo.png
diff --git a/packages/exo-app/art/exo.svg b/art/endo.svg
similarity index 100%
rename from packages/exo-app/art/exo.svg
rename to art/endo.svg
diff --git a/packages/app-electron/.gitignore b/packages/app-electron/.gitignore
deleted file mode 100644
index b32c385..0000000
--- a/packages/app-electron/.gitignore
+++ /dev/null
@@ -1,91 +0,0 @@
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-lerna-debug.log*
-
-# Diagnostic reports (https://nodejs.org/api/report.html)
-report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
-
-# Runtime data
-pids
-*.pid
-*.seed
-*.pid.lock
-.DS_Store
-
-# Directory for instrumented libs generated by jscoverage/JSCover
-lib-cov
-
-# Coverage directory used by tools like istanbul
-coverage
-*.lcov
-
-# nyc test coverage
-.nyc_output
-
-# node-waf configuration
-.lock-wscript
-
-# Compiled binary addons (https://nodejs.org/api/addons.html)
-build/Release
-
-# Dependency directories
-node_modules/
-jspm_packages/
-
-# TypeScript v1 declaration files
-typings/
-
-# TypeScript cache
-*.tsbuildinfo
-
-# Optional npm cache directory
-.npm
-
-# Optional eslint cache
-.eslintcache
-
-# Optional REPL history
-.node_repl_history
-
-# Output of 'npm pack'
-*.tgz
-
-# Yarn Integrity file
-.yarn-integrity
-
-# dotenv environment variables file
-.env
-.env.test
-
-# parcel-bundler cache (https://parceljs.org/)
-.cache
-
-# next.js build output
-.next
-
-# nuxt.js build output
-.nuxt
-
-# vuepress build output
-.vuepress/dist
-
-# Serverless directories
-.serverless/
-
-# FuseBox cache
-.fusebox/
-
-# DynamoDB Local files
-.dynamodb/
-
-# Webpack
-.webpack/
-
-# Electron-Forge
-out/
-bin/
-.snapcraft/
diff --git a/packages/app-electron/assets/agoric-systray.png b/packages/app-electron/assets/agoric-systray.png
deleted file mode 100644
index a3cbbd9..0000000
Binary files a/packages/app-electron/assets/agoric-systray.png and /dev/null differ
diff --git a/packages/app-electron/assets/agoric.icns b/packages/app-electron/assets/agoric.icns
deleted file mode 100644
index a0d2ad3..0000000
Binary files a/packages/app-electron/assets/agoric.icns and /dev/null differ
diff --git a/packages/app-electron/assets/agoric.ico b/packages/app-electron/assets/agoric.ico
deleted file mode 100755
index 90f31d2..0000000
Binary files a/packages/app-electron/assets/agoric.ico and /dev/null differ
diff --git a/packages/app-electron/assets/agoric.png b/packages/app-electron/assets/agoric.png
deleted file mode 100644
index 5d7dd3b..0000000
Binary files a/packages/app-electron/assets/agoric.png and /dev/null differ
diff --git a/packages/app-electron/build/entitlements.mac.plist b/packages/app-electron/build/entitlements.mac.plist
deleted file mode 100644
index d6b93bc..0000000
--- a/packages/app-electron/build/entitlements.mac.plist
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- com.apple.security.cs.allow-unsigned-executable-memory
-
-
-
diff --git a/packages/app-electron/package.json b/packages/app-electron/package.json
deleted file mode 100644
index 0b68aec..0000000
--- a/packages/app-electron/package.json
+++ /dev/null
@@ -1,120 +0,0 @@
-{
- "name": "@pledger/app-electron",
- "productName": "Pledger",
- "private": true,
- "version": "0.2.8",
- "description": "Agoric Pledger Wallet",
- "main": "./src/entrypoint.cjs",
- "repository": "https+git://github.com/agoric-labs/Pledger",
- "workspaces": {
- "nohoist": [
- "**"
- ]
- },
- "scripts": {
- "start": "concurrently \"npm:ui-dev\" \"electron-forge start\"",
- "build": "exit 0",
- "postinstall": "patch-package&&cd node_modules/@pledger/plugin-agoric-app&&yarn build:electron",
- "package": "electron-forge package",
- "make": "electron-forge make",
- "publish:electron": "electron-forge publish",
- "lint": "echo \"No linting configured\"",
- "ui-dev": "cd ../plugin-agoric-ui&&yarn dev"
- },
- "keywords": [],
- "author": "Agoric",
- "license": "Apache-2.0",
- "config": {
- "forge": {
- "packagerConfig": {
- "appCopyright": "Copyright 2021 Agoric Systems Operating Company, Inc.\n\nLicensed under the Apache License, Version 2.0.",
- "executableName": "pledger",
- "icon": "assets/agoric",
- "appCategoryType": "public.app-category.misc",
- "derefSymlinks": true,
- "protocols": [
- {
- "name": "Pledger",
- "schemes": [
- "pledger"
- ]
- }
- ],
- "osxSign": {
- "identity": "Developer ID Application: Michael FIG (38WBP7G9A5)",
- "hardenedRuntime": true,
- "entitlements": "build/entitlements.mac.plist",
- "entitlements-inherit": "build/entitlements.mac.plist",
- "gatekeeper-assess": false
- },
- "osxNotarize": {
- "appleApiKey": "HSVNKWZHX4",
- "appleApiIssuer": "4e93f6f3-a08d-4fcc-b8cc-b5cc36f6c557"
- }
- },
- "makers": [
- {
- "name": "@electron-forge/maker-zip"
- },
- {
- "name": "@davidwinter/electron-forge-maker-snap",
- "oldname": "@electron-forge/maker-snap",
- "config": {
- "name": "pledger",
- "confinement": "strict",
- "executableName": "pledger"
- }
- },
- {
- "name": "@electron-forge/maker-squirrel",
- "config": {
- "name": "Pledger",
- "exe": "Pledger.exe",
- "signWithParams": "-n \"Michael FIG\" -tr http://timestamp.sectigo.com -fd sha256 -td sha256"
- }
- },
- {
- "name": "@electron-forge/maker-dmg",
- "config": {
- "sign": false
- }
- }
- ],
- "publishers": [
- {
- "name": "@electron-forge/publisher-github",
- "config": {
- "repository": {
- "name": "Pledger",
- "owner": "agoric-labs"
- }
- }
- }
- ]
- }
- },
- "dependencies": {
- "@agoric/captp": "^1.7.1",
- "@agoric/install-ses": "^0.5.1",
- "@pledger/plugin-agoric-app": "^0.1.0",
- "@pledger/plugin-agoric-ui": "^0.1.0",
- "electron-reload": "^1.5.0",
- "electron-squirrel-startup": "^1.0.0",
- "esm": "^3.2.25",
- "update-electron-app": "^1.5.0"
- },
- "devDependencies": {
- "@davidwinter/electron-forge-maker-snap": "^0.7.1",
- "@electron-forge/cli": "^6.0.0-beta.54",
- "@electron-forge/maker-deb": "^6.0.0-beta.54",
- "@electron-forge/maker-dmg": "^6.0.0-beta.54",
- "@electron-forge/maker-rpm": "^6.0.0-beta.54",
- "@electron-forge/maker-snap": "^6.0.0-beta.54",
- "@electron-forge/maker-squirrel": "^6.0.0-beta.54",
- "@electron-forge/maker-zip": "^6.0.0-beta.54",
- "@electron-forge/publisher-github": "^6.0.0-beta.54",
- "@electron-forge/publisher-snapcraft": "6.0.0-beta.54",
- "concurrently": "^5.3.0",
- "electron": "~11.5.0"
- }
-}
diff --git a/packages/app-electron/patches/@davidwinter+electron-forge-maker-snap+0.7.1.patch b/packages/app-electron/patches/@davidwinter+electron-forge-maker-snap+0.7.1.patch
deleted file mode 100644
index 9767004..0000000
--- a/packages/app-electron/patches/@davidwinter+electron-forge-maker-snap+0.7.1.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-diff --git a/node_modules/@davidwinter/electron-forge-maker-snap/snap-packager.js b/node_modules/@davidwinter/electron-forge-maker-snap/snap-packager.js
-index 28a8775..0c17661 100644
---- a/node_modules/@davidwinter/electron-forge-maker-snap/snap-packager.js
-+++ b/node_modules/@davidwinter/electron-forge-maker-snap/snap-packager.js
-@@ -92,9 +92,11 @@ module.exports = class SnapPackager {
- this.deps.fse.copySync(this.options.makeOptions.dir, appFiles);
- debug(`App files copied to: ${appFiles}`);
-
-- this.deps.fse.renameSync(path.join(appFiles, this.values.packagedExecutableName), path.join(appFiles, this.values.executableName));
-+ const dest = path.join(appFiles, this.values.executableName);
-+ if (!this.deps.fse.existsSync(dest)) {
-+ this.deps.fse.renameSync(path.join(appFiles, this.values.packagedExecutableName), dest);
- debug(`Rename '${this.values.packagedExecutableName} to ${this.values.executableName} in: ${appFiles}`);
--
-+ }
- return true;
- }
-
-@@ -111,7 +113,7 @@ module.exports = class SnapPackager {
- result = await new Promise((resolve, reject) => {
- const spawnSnapcraftInDirectory = path.join(this.options.makeOptions.makeDir, 'snapcraft');
-
-- const snapcraft = this.deps.spawn('snapcraft', ['snap', '--output', snapFile], {
-+ const snapcraft = this.deps.spawn('snapcraft', ['snap', '--output', snapFile, '--enable-experimental-extensions'], {
- cwd: spawnSnapcraftInDirectory
- });
-
-diff --git a/node_modules/@davidwinter/electron-forge-maker-snap/snapcraft.template.yaml b/node_modules/@davidwinter/electron-forge-maker-snap/snapcraft.template.yaml
-index c0882d6..40213e5 100644
---- a/node_modules/@davidwinter/electron-forge-maker-snap/snapcraft.template.yaml
-+++ b/node_modules/@davidwinter/electron-forge-maker-snap/snapcraft.template.yaml
-@@ -4,14 +4,14 @@ version: ''
- icon: ./build/icon.png
- summary: ''
- description: ''
--base: core18
-+base: core20
- confinement: ''
- grade: ''
-
- apps:
- SNAP-TEMPLATE:
- command: SNAP-TEMPLATE/SNAP-TEMPLATE --no-sandbox
-- extensions: [gnome-3-34]
-+ extensions: [gnome-3-38]
- plugs:
- - alsa
- - browser-support
diff --git a/packages/app-electron/src/entrypoint.cjs b/packages/app-electron/src/entrypoint.cjs
deleted file mode 100644
index c72c29f..0000000
--- a/packages/app-electron/src/entrypoint.cjs
+++ /dev/null
@@ -1,16 +0,0 @@
-// Find out if we are a built executable, or have a path to the script.
-const PRODUCTION = !require('electron-is-dev');
-
-// Handle creating/removing shortcuts on Windows when installing/uninstalling.
-if (require('electron-squirrel-startup')) {
- return;
-}
-
-const args = PRODUCTION ? process.argv.slice(1) : process.argv.slice(2);
-const esmRequire = require('esm')(module);
-// require('node-lmdb');
-
-// console.log('FIGME: Electron app', process.argv, `PRODUCTION=${PRODUCTION}`);
-const main = esmRequire('./main.js').default;
-main(args, PRODUCTION);
-// Wait for clean app.exit().
diff --git a/packages/app-electron/src/main.js b/packages/app-electron/src/main.js
deleted file mode 100644
index 40c43fe..0000000
--- a/packages/app-electron/src/main.js
+++ /dev/null
@@ -1,169 +0,0 @@
-import '@agoric/install-ses';
-import { makeCapTP, E } from '@agoric/captp';
-import { app, autoUpdater, BrowserWindow, Menu, shell, Tray } from 'electron';
-import path from 'path';
-
-const WALLET_PORT = 8000;
-
-import { bootPlugin as bootAppPlugin } from '@pledger/plugin-agoric-app/src/server';
-
-async function main(args, isProduction) {
- // Use this to automatically download updates on Windows and MacOS.
- // Requires code signing, and publishing to a public repo on github.
- require('update-electron-app')({ repo: 'agoric-labs/Pledger' });
-
- if (!isProduction) {
- require('electron-reload')(path.join(__dirname, '../../..'), {
- electron: path.join(__dirname, '../node_modules', '.bin', 'electron'),
- awaitWriteFinish: true,
- });
- }
-
- // This is needed to map the Pledger systray to the signing certificate. For
- // non-production runs we use a different value.
- const TRAY_GUID = isProduction ? 'DE8D38CB-4B15-4153-B549-745067ADC852' : 'C728AAD2-DA20-421C-B534-97023DACF258';
-
- // Needed to display on Ubuntu 2020.04 under Parallels
- app.disableHardwareAcceleration();
-
- // Construct a CapTP channel.
- const appPlugin = bootAppPlugin({});
-
- // Start the ag-solo running.
- E(appPlugin).fork('Agoric', 'ag-solo', 'setup');
-
- let cleanup = false;
- app.on('will-quit', e => {
- if (cleanup) {
- return;
- }
-
- cleanup = true;
- e.preventDefault();
- E(appPlugin).dispose().finally(() => app.exit());
- })
-
- let dashboardWindow = null;
- const createDashboardWindow = async () => {
- if (dashboardWindow) {
- if (dashboardWindow.isMinimized()) {
- dashboardWindow.restore();
- }
- dashboardWindow.focus();
- return dashboardWindow;
- }
-
- // Create the browser window.
- dashboardWindow = new BrowserWindow({
- width: 1024,
- height: 700,
- webPreferences: {
- preload: path.join(__dirname, 'preload-entry.cjs'),
- contextIsolation: true,
- worldSafeExecuteJavaScript: true,
- },
- });
-
- const send = obj => {
- // console.log('FIGME: main posting', obj);
- if (!cleanup) {
- dashboardWindow.webContents.send('host', obj);
- }
- };
-
- const { dispatch, abort } = makeCapTP('renderer', send, appPlugin);
-
- dashboardWindow.on('close', () => {
- // Close the captp connection successfully.
- abort();
- dashboardWindow = null;
- });
-
- dashboardWindow.webContents.on('ipc-message', async (ev, channel, obj) => {
- // console.log('FIGME: main received on', channel, obj);
- if (channel !== 'host') {
- return;
- }
- // CapTP integration.
- dispatch(obj) || abort(Error(`Message ${obj.type} not understood`));
- });
-
- // and load the index.html of the app.
- const uiIndex = await E(appPlugin).getUiIndex();
- await dashboardWindow.loadFile(uiIndex);
- return dashboardWindow;
- };
-
- app.on('second-instance', (event, commandLine, workingDirectory) => {
- // Someone tried to run a second instance, we should focus our window.
- if (dashboardWindow) {
- createDashboardWindow();
- }
- });
-
- let appTray = null;
- const createTray = async () => {
- const icon = process.platform === 'win32' ? 'agoric.ico' : 'agoric-systray.png';
- appTray = new Tray(`${__dirname}/../assets/${icon}`, TRAY_GUID);
- const contextMenu = Menu.buildFromTemplate([
- { label: 'Open Agoric Wallet', async click() {
- const ac = await E(appPlugin).getAccessToken(WALLET_PORT);
- shell.openExternal(`http://localhost:${WALLET_PORT}/wallet#accessToken=${ac}`);
- } },
- { label: 'Agoric Console (REPL)', async click() {
- const ac = await E(appPlugin).getAccessToken(WALLET_PORT);
- shell.openExternal(`http://localhost:${WALLET_PORT}/?w=0#accessToken=${ac}`);
- } },
- { type: 'separator' },
- { label: 'Pledger Dashboard...', click: createDashboardWindow },
- { type: 'separator' },
- { role: 'about' },
- { role: 'quit' },
- ]);
-
- appTray.setToolTip('Pledger Wallet');
- appTray.setContextMenu(contextMenu);
- appTray.on('click', () => appTray.popUpContextMenu());
-
- if (args[0] === 'dash') {
- // Pop up the dashboard immediately.
- createDashboardWindow();
- }
- };
-
- // This method will be called when Electron has finished
- // initialization and is ready to create browser windows.
- // Some APIs can only be used after this event occurs.
- // app.on('ready', createWindow);
- app.on('ready', createTray);
-
- // We have a tray that we want to stay active until the user quits
- // explicitly with Cmd + Q, or there is an auto-update.
- let installingUpdate = false;
- autoUpdater.on('before-quit-for-update', () => installingUpdate = true);
- app.on('window-all-closed', () => {
- if (installingUpdate) { // || process.platform !== 'darwin'
- app.quit();
- }
- });
-
- app.on('activate', () => {
- // On OS X it's common to re-create a window in the app when the
- // dock icon is clicked and there are no other windows open.
- if (BrowserWindow.getAllWindows().length === 0) {
- createDashboardWindow();
- }
- });
-
- // In this file you can include the rest of your app's specific main process
- // code. You can also put them in separate files and import them here.
-};
-
-export default function singleInstanceMain(...args) {
- const { app } = require('electron')
- const gotTheLock = app.requestSingleInstanceLock()
- if (gotTheLock) {
- return main(...args);
- }
- app.quit();
-}
diff --git a/packages/app-electron/src/preload-entry.cjs b/packages/app-electron/src/preload-entry.cjs
deleted file mode 100644
index 0a4a545..0000000
--- a/packages/app-electron/src/preload-entry.cjs
+++ /dev/null
@@ -1,4 +0,0 @@
-const esmRequire = require('esm')(module);
-const main = esmRequire('./preload.js').default;
-
-Promise.resolve(main()).catch(e => console.error('failed to run preload.js:', err));
diff --git a/packages/app-electron/src/preload.js b/packages/app-electron/src/preload.js
deleted file mode 100644
index 297d38e..0000000
--- a/packages/app-electron/src/preload.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import '@agoric/install-ses';
-import { ipcRenderer } from 'electron';
-
-async function main() {
- // Forward messages to and from the host.
- window.addEventListener('message', ev => {
- const { type, data } = ev.data;
- if (type === 'toHost') {
- ipcRenderer.send('host', data);
- }
- });
- ipcRenderer.on('host', (_ev, obj) =>
- window.postMessage({ type: 'fromHost', data: obj }, '*'));
-}
-
-export default main;
diff --git a/packages/app/.gitignore b/packages/app/.gitignore
new file mode 100644
index 0000000..b380cb9
--- /dev/null
+++ b/packages/app/.gitignore
@@ -0,0 +1,21 @@
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+lerna-debug.log*
+.pnpm-debug.log*
+
+# Ignore all files in the node_modules folder
+node_modules/
+
+# Ignore downloads
+/node
+/node-*.tar.gz
+/node-*.zip
+/node-*/
+
+# Provisioning profile
+*.mobileprovision
+/dist
diff --git a/packages/app/LICENSE b/packages/app/LICENSE
new file mode 100644
index 0000000..261eeb9
--- /dev/null
+++ b/packages/app/LICENSE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/packages/app/NEWS.md b/packages/app/NEWS.md
new file mode 100644
index 0000000..e69de29
diff --git a/packages/app/README.md b/packages/app/README.md
new file mode 100644
index 0000000..3bdd491
--- /dev/null
+++ b/packages/app/README.md
@@ -0,0 +1,79 @@
+# Endo
+
+The Endo app is a graphical shell for controlling the user's Endo executor daemon.
+Since end users will not typically have an Endo executor daemon or its system
+dependencies installed, the Endo app is also a vessel for these tools, though
+the graphical shell will connect to whatever daemon is currently running.
+
+# Developing Endo
+
+The Endo app uses Socket Supply Co's [`ssc`](https://sockets.sh), Vite, and
+React.
+Using SSC ensures that the Endo application benefits from the native web view
+provided by the underlying operating system, which reduces the risk of security
+patches being delayed by intermediate vendors (like Electron or Chromium).
+However, SSC alpha grade software (at time of writing, November of 2022)
+and some rough edges that developers will need to work around.
+
+You will need to install the SSC toolchain.
+Follow the (dangerous) instructions for your operating system on
+[sockets.sh](https://sockets.sh).
+At time of writing, this produced version `0.1.0 (ac944a6)`.
+
+```console
+sha256sum $(which ssc)
+> df925d0dd4b6107f8804e791b761e2fb44ed73089ef6839e8d6a7883d22f0db2 /usr/local/bin/ssc
+```
+
+Download the entire Exo repository and install its dependencies.
+The dependency train will also include versions of Node.js for each supported
+operating system, since these must be bundled with the Endo app.
+The Endo app post-install script verifies the integrity of the downloaded
+Node.js archives against hashes that are checked into this repository.
+
+```console
+git clone https://github.com/endojs/exo
+cd exo
+yarn
+```
+
+At this time, to develop the Endo app on Mac OS X, the developer needs to endow
+their terminal with the right to launch unsigned applications that attempt to
+access Bluetooth.
+
+These instructions apply for Mac OS 10.12, Big Sur, and analogous steps must
+be taken on other versions.
+
+Open and navigate the System Preferences application to the Security and
+Privacy panel, Privacy tab.
+
+In the Bluetooth and Developer Tools subpanels, add whatever terminal or other
+applications you will use to launch Endo.
+
+![Developer tools privacy system preferences with Terminal and iTerm](docs/mac-os12-system-preferences-developer-tools.png)
+
+![Bluetooth privacy system preferences with Terminal and iTerm](docs/mac-os12-system-preferences-privacy-bluetooth.png)
+
+Use the `ssc build -r` command to build and run a version of the Endo
+application that is suitable for development, deferring to the web application
+hosted on the local host, port 4747.
+
+```console
+ssc build --port=4747 -r
+```
+
+Future development sessions can skip the build and just run the existing build.
+
+```console
+ssc run
+```
+
+And `ssc build` produces a production version of the application, which you
+will find in `dist`.
+
+During development of the embedded web application, use the `yarn vite` command
+to watch and serve your working copy.
+
+```console
+yarn vite --port 4747
+```
diff --git a/packages/app/SECURITY.md b/packages/app/SECURITY.md
new file mode 100644
index 0000000..9365d51
--- /dev/null
+++ b/packages/app/SECURITY.md
@@ -0,0 +1,38 @@
+# Security Policy
+
+## Supported Versions
+
+The SES package and associated Endo packages are still undergoing development and security review, and all
+users are encouraged to use the latest version available. Security fixes will
+be made for the most recent branch only.
+
+## Coordinated Vulnerability Disclosure of Security Bugs
+
+SES stands for fearless cooperation, and strong security requires strong collaboration with security researchers. If you believe that you have found a security sensitive bug that should not be disclosed until a fix has been made available, we encourage you to report it. To report a bug in HardenedJS, you have several options that include:
+
+* Reporting the issue to the [Agoric HackerOne vulnerability rewards program](hackerone.com/agoric).
+
+* Sending an email to security at (@) agoric.com., encrypted or unencrypted. To encrypt, please use @Warner’s personal GPG key [A476E2E6 11880C98 5B3C3A39 0386E81B 11CAA07A](http://www.lothar.com/warner-gpg.html) .
+
+* Sending a message on Keybase to `@agoric_security`, or sharing code and other log files via Keybase’s encrypted file system. ((_keybase_private/agoric_security,$YOURNAME).
+
+* It is important to be able to provide steps that reproduce the issue and demonstrate its impact with a Proof of Concept example in an initial bug report. Before reporting a bug, a reporter may want to have another trusted individual reproduce the issue.
+
+* A bug reporter can expect acknowledgment of a potential vulnerability reported through [security@agoric.com](mailto:security@agoric.com) within one business day of submitting a report. If an acknowledgement of an issue is not received within this time frame, especially during a weekend or holiday period, please reach out again. Any issues reported to the HackerOne program will be acknowledged within the time frames posted on the program page.
+ * The bug triage team and Agoric code maintainers are primarily located in the San Francisco Bay Area with business hours in [Pacific Time](https://www.timeanddate.com/worldclock/usa/san-francisco) .
+
+* For the safety and security of those who depend on the code, bug reporters should avoid publicly sharing the details of a security bug on Twitter, Discord, Telegram, or in public Github issues during the coordination process.
+
+* Once a vulnerability report has been received and triaged:
+ * Agoric code maintainers will confirm whether it is valid, and will provide updates to the reporter on validity of the report.
+ * It may take up to 72 hours for an issue to be validated, especially if reported during holidays or on weekends.
+
+* When the Agoric team has verified an issue, remediation steps and patch release timeline information will be shared with the reporter.
+ * Complexity, severity, impact, and likelihood of exploitation are all vital factors that determine the amount of time required to remediate an issue and distribute a software patch.
+ * If an issue is Critical or High Severity, Agoric code maintainers will release a security advisory to notify impacted parties to prepare for an emergency patch.
+ * While the current industry standard for vulnerability coordination resolution is 90 days, Agoric code maintainers will strive to release a patch as quickly as possible.
+
+When a bug patch is included in a software release, the Agoric code maintainers will:
+ * Confirm the version and date of the software release with the reporter.
+ * Provide information about the security issue that the software release resolves.
+ * Credit the bug reporter for discovery by adding thanks in release notes, securing a CVE designation, or adding the researcher’s name to a Hall of Fame.
diff --git a/packages/app/build.js b/packages/app/build.js
new file mode 100644
index 0000000..9a420e6
--- /dev/null
+++ b/packages/app/build.js
@@ -0,0 +1,55 @@
+import fs from 'node:fs/promises';
+import path from 'node:path';
+import { spawn } from 'node:child_process';
+
+const sh = async (cwd, command, ...args) => new Promise((resolve, reject) => {
+ const child = spawn(command, args, { cwd, stdio: ['inherit', 'inherit', 'inherit'] });
+ child.on('error', reject);
+ child.on('exit', resolve);
+});
+
+const cp = async (a, b) => fs.copyFile(
+ path.resolve(a),
+ path.join(b, path.basename(a))
+);
+
+// The output target is passed by the build tool.
+// It's where we will write all of our files.
+const target = path.resolve(process.argv[2]);
+
+if (target === undefined) {
+ console.error(' - Did not receive the build target path as an argument')
+ process.exit(1)
+}
+
+// The input source is the directory containing this file.
+const source = path.dirname(process.argv[1]);
+
+// We coordinate the version of Node.js we're using between this and the
+// postinstall script (scripts/get-node.sh) using node.json.
+const { version } = JSON.parse(await fs.readFile(`${source}/node.json`, 'utf8'));
+
+async function main() {
+ let ext = '';
+ let node = '';
+
+ switch (process.platform) {
+ case 'win32':
+ node = `node-v${version}-win-x64/node.exe`;
+ ext = 'ico';
+ await cp(`../../art/endo.png`, target);
+ break;
+ case 'linux':
+ node = `node-v${version}-linux-x64/bin/node`;
+ ext = 'png';
+ break
+ case 'darwin':
+ node = `node-v${version}-darwin-x64/bin/node`;
+ ext = 'icns';
+ }
+
+ await sh(source, 'yarn', 'run', 'vite', 'build', '--outDir', target, '--base', './');
+ await cp(`../../art/gen/icon.${ext}`, target); // app icon
+}
+
+main();
diff --git a/packages/app/docs/mac-os12-system-preferences-developer-tools.png b/packages/app/docs/mac-os12-system-preferences-developer-tools.png
new file mode 100644
index 0000000..4c56b86
Binary files /dev/null and b/packages/app/docs/mac-os12-system-preferences-developer-tools.png differ
diff --git a/packages/app/docs/mac-os12-system-preferences-privacy-bluetooth.png b/packages/app/docs/mac-os12-system-preferences-privacy-bluetooth.png
new file mode 100644
index 0000000..99a5413
Binary files /dev/null and b/packages/app/docs/mac-os12-system-preferences-privacy-bluetooth.png differ
diff --git a/packages/app/index.css b/packages/app/index.css
new file mode 100644
index 0000000..c4810f0
--- /dev/null
+++ b/packages/app/index.css
@@ -0,0 +1,28 @@
+* {
+ box-sizing: border-box;
+}
+
+html {
+ font-family: Lucida Grande, sans-serif;
+ height: 100%;
+}
+
+@media (prefers-color-scheme: dark) {
+ html {
+ background-color: #222222;
+ }
+}
+
+body {
+ margin: 0;
+ padding: 4px;
+ padding-top: 0;
+ height: 100%;
+}
+
+#root {
+ height: 100%;
+ width: 100%;
+ padding: 2px;
+}
+
diff --git a/packages/app/index.html b/packages/app/index.html
new file mode 100644
index 0000000..cdf4a1e
--- /dev/null
+++ b/packages/app/index.html
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+ Endo
+
+
+
+
+
+
diff --git a/packages/exo-app/jsconfig.json b/packages/app/jsconfig.json
similarity index 81%
rename from packages/exo-app/jsconfig.json
rename to packages/app/jsconfig.json
index ed70d81..5d2fe83 100644
--- a/packages/exo-app/jsconfig.json
+++ b/packages/app/jsconfig.json
@@ -7,5 +7,5 @@
"strictNullChecks": true,
"moduleResolution": "node"
},
- "include": ["src/**/*.js", "index.d.ts"]
+ "include": ["**/*.js", "**/*.ts"]
}
diff --git a/packages/app/node-v18.12.1-sha256sums.txt.asc b/packages/app/node-v18.12.1-sha256sums.txt.asc
new file mode 100644
index 0000000..5f7e811
--- /dev/null
+++ b/packages/app/node-v18.12.1-sha256sums.txt.asc
@@ -0,0 +1,53 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+adc237098880c85b3aacaf2dfbea86c3db065fa7e4cbf207b617a661f4627555 node-v18.12.1-aix-ppc64.tar.gz
+9857042e18a0530a19f22f29a38de4fed5608e32543216f9afb6edea8d0dfdd3 node-v18.12.1-darwin-arm64.tar.gz
+17f2e25d207d36d6b0964845062160d9ed16207c08d09af33b9a2fd046c5896f node-v18.12.1-darwin-arm64.tar.xz
+90ac0e8148f3fb52bcfc01d9f7d7963ce565dd0add0cd8d3e0698fbd7ecf1e5a node-v18.12.1-darwin-x64.tar.gz
+6c88d462550a024661e74e9377371d7e023321a652eafb3d14d58a866e6ac002 node-v18.12.1-darwin-x64.tar.xz
+9d55ee072ba6d5a141db092cef1a0f715f7d3fc938285a6d927a1d0a0c7442f7 node-v18.12.1-headers.tar.gz
+c16e93695b00520a085b999808883d40c0ec12759a9ee63448133060c3aab2eb node-v18.12.1-headers.tar.xz
+521587df6d2b9d9c524105c8f3f9d775dcfc5e7fbf7633e4455cc2e9af7d0ced node-v18.12.1-linux-arm64.tar.gz
+3904869935b7ecc51130b4b86486d2356539a174d11c9181180cab649f32cd2a node-v18.12.1-linux-arm64.tar.xz
+0c726bb061d10befb5e383e3e787446dc86ba99ae849fb24f27f88fee27433d5 node-v18.12.1-linux-armv7l.tar.gz
+d0131a764c0f44821fdacb3c3ab8b35b52af060a98ac7a150ec49d4c540be3d7 node-v18.12.1-linux-armv7l.tar.xz
+b6eb0af1311f6cb0349c7b7babc17bb32865a2eed6c7f304eddc111bf9576481 node-v18.12.1-linux-ppc64le.tar.gz
+9646cd3dbaf80828a7b420a9b80fd3be3ecf5d182e1c080c85397b9986a9c818 node-v18.12.1-linux-ppc64le.tar.xz
+28270961975e3c166e049d6ceff8cd7068802f54ddd7c9c12b6941ee129ead44 node-v18.12.1-linux-s390x.tar.gz
+c4672a02aaf5311d32a1bd3ec8a8607f03b2f692142b5fb305cc3562f9cb316f node-v18.12.1-linux-s390x.tar.xz
+a8fcacb8033504e6d704bdee821f7005ee3774db25c799bcf2a13b5bda7de172 node-v18.12.1-linux-x64.tar.gz
+4481a34bf32ddb9a9ff9540338539401320e8c3628af39929b4211ea3552a19e node-v18.12.1-linux-x64.tar.xz
+16acaf8d12c9f828fdd71cd499b324014e961c9d36d0d0f7a092863ce3100065 node-v18.12.1.pkg
+ba8174dda00d5b90943f37c6a180a1d37c861d91e04a4cb38dc1c0c74981c186 node-v18.12.1.tar.gz
+4fa406451bc52659a290e52cfdb2162a760bd549da4b8bbebe6a29f296d938df node-v18.12.1.tar.xz
+b8f73f9b7fa78aebf172893713b14908aa46585dbb88e333bf9c26102533a7f6 node-v18.12.1-win-x64.7z
+5478a5a2dce2803ae22327a9f8ae8494c1dec4a4beca5bbf897027380aecf4c7 node-v18.12.1-win-x64.zip
+a02b64d9a3f457e00a6138d6b51812b53dcc458632b228cba862081263d01d48 node-v18.12.1-win-x86.7z
+099b42d27b7d05fe6feb04fa525364e960aa348f8ad2d95fef64e1608ee843be node-v18.12.1-win-x86.zip
+68e5d77f23c71168b6066444c36c9489c4165db6619c6cf5ac96b48684831fdd node-v18.12.1-x64.msi
+860682f15893741ad18c7c257d79a51b875c1136d5d9e3cc55e8c7f273780fbc node-v18.12.1-x86.msi
+215180104150568025cc41ba9b234b8f6c6ad4c7f75f2e55a97de85cfb545060 win-x64/node.exe
+1bd376a23d181d85096d1a9c46e6be7fcd20d30f9b8f77a2a847d3dbff8e25c7 win-x64/node.lib
+2b76e27f6cb0d30467b71a0ac22b55b36f657f6b38e6c38e49e98de6a1e60de9 win-x64/node_pdb.7z
+fda35a2fd04d550831c5069d3b2f4024ec7d950e45dff9caa59e7b5f8b16e50c win-x64/node_pdb.zip
+4fedbbe7d609875d75c6361974828ff7d2bd65195b4e17472c8c407d991cd209 win-x86/node.exe
+b1c6dc670911d85ef1704fa56f4cc4c7e1071f4869778398e6d88b3b0b565978 win-x86/node.lib
+99f54dfb72497d84ad3326ee811c667187983707c0f12c96d96d0dd948b78152 win-x86/node_pdb.7z
+3fc2c909af7f8039459b86f42332310eb591b44970439445917ecd5fe295130e win-x86/node_pdb.zip
+-----BEGIN PGP SIGNATURE-----
+
+iQIzBAEBCAAdFiEEYfxoHfuSoHnxaF53lz8pVZTsRokFAmNlcicACgkQlz8pVZTs
+RonxWhAAtn25zICJTqmq9tl+2P3gdMUcNtjlt1ukaO/ecTcXDrlXHpdKO75l9ddr
+2twOvNKOFosiSLsKj1Te5pREEYsGHUqWjet9RIj2Ta205y4GoOeB0hLTBayjWwmE
+/eDTLdeSzhJaP5lj9XnKp6rxQS6QQua+5gnl2Kr6Qyq+YnVorzQnBEN6FhaiKGYE
+fCQHSLccbN1XOjvXGHbK8ZIEzD1PLCQAkejY5NASvNFoWraVimtcYXp/9WVf8H4w
+2SVG2LbCnB4aJ0dyxAIFrrimduhjwdc9ItJO2/akzXIrTn5M0hzZjqwR6Glojdfx
+CpSy9ywtuB1kZj/EtraKf8GDjyJcc3lYX3rviZ3zUH0rS+fJkYL+CET8CahrETtU
+w2L06YO+XwZA8vADYJAepkulgM7L2GQwEMhOe9s/NmIPn48AzG0We6gBiuafz73o
+L/TxIOIvmHGBQ3a7wLCcxN/K/AvJ+5fpJhfg7rI7iR2yRAE+jDatpWDybBmxW6rZ
+MgjGMqsVsnnhJrDJURRw6SHwu7kKIMngWxwkjILDYMOft1vBjg/AGGq62sjxEKkY
+5BkNhYtSoO3dUeX2cK3cgLRmKTjgjla/Ch9ITLkeIIanRFvyPScyt5suhb+4YqkJ
+5qC/0AT0XtQ+5B/4VHE1oS0FcpjwamC2UxHvfXF3OLSkSya7FQM=
+=1qY0
+-----END PGP SIGNATURE-----
diff --git a/packages/app/node.json b/packages/app/node.json
new file mode 100644
index 0000000..5fd7b85
--- /dev/null
+++ b/packages/app/node.json
@@ -0,0 +1,3 @@
+{
+ "version": "18.12.1"
+}
diff --git a/packages/app/package.json b/packages/app/package.json
new file mode 100644
index 0000000..853d017
--- /dev/null
+++ b/packages/app/package.json
@@ -0,0 +1,62 @@
+{
+ "name": "@endo/app",
+ "version": "0.0.0",
+ "private": true,
+ "description": "Fearless collaborator",
+ "keywords": [],
+ "author": "Endo contributors",
+ "license": "Apache-2.0",
+ "homepage": "https://github.com/endojs/exo/tree/master/packages/app#readme",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/endojs/exo.git"
+ },
+ "bugs": {
+ "url": "https://github.com/endojs/exo/issues"
+ },
+ "type": "module",
+ "exports": {},
+ "scripts": {
+ "postinstall": "sh scripts/get-node.sh",
+ "start": "vite --port 4747",
+ "open": "ssc run",
+ "build:dev": "ssc build --port=4747",
+ "build:prod": "ssc build",
+ "build": "exit 0",
+ "lint": "yarn lint:types && yarn lint:js",
+ "lint-fix": "eslint --fix .",
+ "lint:js": "eslint .",
+ "lint:types": "tsc -p jsconfig.json",
+ "test": "exit 0"
+ },
+ "devDependencies": {
+ "@endo/eslint-config": "^0.3.6",
+ "ava": "^3.12.1",
+ "babel-eslint": "^10.0.3",
+ "eslint": "^7.23.0",
+ "eslint-config-airbnb-base": "^14.0.0",
+ "eslint-config-prettier": "^6.9.0",
+ "eslint-plugin-eslint-comments": "^3.1.2",
+ "eslint-plugin-import": "^2.19.1",
+ "eslint-plugin-prettier": "^3.4.1",
+ "prettier": "^1.19.1",
+ "typescript": "~4.8.4",
+ "vite": "^3.2.3"
+ },
+ "files": [],
+ "eslintConfig": {
+ "extends": [
+ "@endo"
+ ]
+ },
+ "prettier": {
+ "trailingComma": "all",
+ "singleQuote": true
+ },
+ "ava": {
+ "files": [
+ "test/**/test-*.js"
+ ],
+ "timeout": "2m"
+ }
+}
diff --git a/packages/app/scripts/get-node.sh b/packages/app/scripts/get-node.sh
new file mode 100755
index 0000000..f83efb3
--- /dev/null
+++ b/packages/app/scripts/get-node.sh
@@ -0,0 +1,56 @@
+#!/bin/bash
+#
+# This script provides a copy of node from nodejs.org and verifies its
+# integrity against known hashes.
+# The hashes are checked in, but the desired version changes, this script will
+# obtain the new one and verify its signature.
+# This script will do nothing if the archive of node has already been
+# downloaded and extracted.
+
+set -ueo pipefail
+DIR=$(dirname -- "${BASH_SOURCE[0]}")
+cd -- "$DIR/.."
+
+VERSION=v$(jq -r .version node.json)
+
+SHASUMS=node-$VERSION-sha256sums.txt.asc
+if [ ! -f "$SHASUMS" ]; then
+
+ if ! curl -f "https://nodejs.org/dist/$VERSION/SHASUMS256.txt.asc" > "$SHASUMS"; then
+ cat "$SHASUMS" >&2
+ rm "$SHASUMS"
+ exit 1
+ fi
+ if ! gpg --verify "$SHASUMS"; then
+ echo "Signature check for new Node version failed."
+ echo "You may need to get the GPG keys for Node.js releasers."
+ echo "https://github.com/nodejs/node#verifying-binaries"
+ exit 1
+ fi
+fi
+
+for ARCH_EXT in darwin-x64.tar.gz linux-x64.tar.gz win-x64.zip ; do
+
+ UNPACKED=node-$VERSION-$ARCH_EXT
+ if [ ! -d "$UNPACKED" ]; then
+
+ ARCHIVE=node-$VERSION-$ARCH_EXT
+ if [ ! -f "$ARCHIVE" ]; then
+ curl -f "https://nodejs.org/dist/$VERSION/$ARCHIVE" > "$ARCHIVE"
+ fi
+ if ! grep -F "$(sha256sum "$ARCHIVE")" "$SHASUMS" > /dev/null; then
+ echo "Hash integrity check failed for: $ARCHIVE"
+ echo "Expected:"
+ grep -F "$ARCHIVE" "$SHASUMS"
+ echo "Actual:"
+ sha256sum "$ARCHIVE"
+ exit 1
+ fi
+
+ fi
+
+done
+
+[ -d "node-$VERSION-darwin-x64" ] || tar xvf "node-$VERSION-darwin-x64.tar.gz"
+[ -d "node-$VERSION-linux-x64" ] || tar xvf "node-$VERSION-linux-x64.tar.gz"
+[ -d "node-$VERSION-win-x64" ] || unzip "node-$VERSION-win-x64.zip"
diff --git a/packages/app/ssc.config b/packages/app/ssc.config
new file mode 100644
index 0000000..2026372
--- /dev/null
+++ b/packages/app/ssc.config
@@ -0,0 +1,140 @@
+
+# Based on default configuration file for ssc v0.1.0 (ac944a6).
+
+# Shell command to build an application.
+build: node build.js
+
+# A unique ID that identifies the bundle (used by all app stores).
+bundle_identifier: com.agoric.endo
+
+# A string that gets used in the about dialog and package meta info.
+copyright: (c) Endo Contributors
+
+# Advanced Compiler Settings for debug purposes (ie C++ compiler -g, etc).
+debug_flags: -g
+
+# A short description of the app.
+description: Fearless Cooperator
+
+# An array of environment variables, separated by commas.
+# env: USER, TMPDIR, PWD
+
+# The name of the file to be output.
+executable: endo
+
+# Advanced Compiler Settings (ie C++ compiler -02, -03, etc).
+flags: -O3
+
+# Set the limit of files that can be opened by your process.
+file_limit: 1024
+
+# A directory is where your application's code is located.
+# input: src
+
+# Localization
+# lang: en-us
+
+# A String used in the about dialog and meta info.
+# maintainer: Endo Contributors
+
+# The name of the program
+name: Endo
+
+# The binary output path. It's recommended to add this path to .gitignore.
+output: dist
+
+# TODO: maybe the user doesn't need to know about this?
+# revision: 123
+
+# The initial title of the window (can have spaces and symbols etc).
+title: Endo
+
+# A string that indicates the version of the application. It should be a semver triple like 1.0.0
+version: 0.0.1
+
+# The initial width of the first window.
+width: 1024
+
+# The initial height of the first window.
+height: 750
+
+#
+# Windows
+# ---
+#
+
+# The command to execute to spawn the “back-end” process.
+# win_cmd: node.exe backend.mjs
+
+# The icon to use for identifying your app on Windows.
+# win_icon:
+
+# The icon to use for identifying your app on Windows.
+# win_logo:
+
+# A relative path to the pfx file used for signing.
+# win_pfx: certs/cert.pfx
+
+# The signing information needed by the appx api.
+# win_publisher: CN=Beep Boop Corp., O=Beep Boop Corp., L=San Francisco, S=California, C=US
+
+#
+# Linux
+# ---
+#
+
+# Helps to make your app searchable in Linux desktop environments.
+# linux_categories: Developer Tools
+
+# The command to execute to spawn the "back-end" process.
+# linux_cmd: ./node backend.mjs
+
+# The icon to use for identifying your app in Linux desktop environments.
+# linux_icon:
+
+#
+# MacOS
+# ---
+#
+
+# macOS code signing guide: https://sockets.sh/guides/#macos-1
+
+# Mac App Store icon
+mac_appstore_icon: gen/endo-mac-1024.png
+
+# A category in the App Store
+# mac_category:
+
+# The command to execute to spawn the "back-end" process.
+# mac_cmd: ./node backend.mjs
+
+# The icon to use for identifying your app on MacOS.
+# mac_icon:
+
+# TODO description & value
+# mac_sign:
+
+# TODO description & value
+# mac_codesign_identity:
+
+# TODO description & value
+# mac_sign_paths:
+
+#
+# iOS
+# ---
+#
+
+# iOS code signing guide: https://sockets.sh/guides/#ios-1
+
+# TODO description & value
+# ios_codesign_identity:
+
+# Describes how Xcode should export the archive. Available options: app-store, package, ad-hoc, enterprise, development, and developer-id.
+# ios_distribution_method: ad-hoc
+
+# A path to the provisioning profile used for signing iOS app.
+# ios_provisioning_profile:
+
+# which device to target when building for the simulator
+# ios_simulator_device: iPhone 13
diff --git a/packages/app/vite.config.js b/packages/app/vite.config.js
new file mode 100644
index 0000000..be89a5c
--- /dev/null
+++ b/packages/app/vite.config.js
@@ -0,0 +1,6 @@
+import { defineConfig } from 'vite';
+
+// https://vitejs.dev/config/
+export default defineConfig({
+ plugins: [],
+});
diff --git a/packages/exo-app/.gitignore b/packages/exo-app/.gitignore
deleted file mode 100644
index 8e3a106..0000000
--- a/packages/exo-app/.gitignore
+++ /dev/null
@@ -1,89 +0,0 @@
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-lerna-debug.log*
-
-# Diagnostic reports (https://nodejs.org/api/report.html)
-report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
-
-# Runtime data
-pids
-*.pid
-*.seed
-*.pid.lock
-.DS_Store
-
-# Directory for instrumented libs generated by jscoverage/JSCover
-lib-cov
-
-# Coverage directory used by tools like istanbul
-coverage
-*.lcov
-
-# nyc test coverage
-.nyc_output
-
-# node-waf configuration
-.lock-wscript
-
-# Compiled binary addons (https://nodejs.org/api/addons.html)
-build/Release
-
-# Dependency directories
-node_modules/
-jspm_packages/
-
-# TypeScript v1 declaration files
-typings/
-
-# TypeScript cache
-*.tsbuildinfo
-
-# Optional npm cache directory
-.npm
-
-# Optional eslint cache
-.eslintcache
-
-# Optional REPL history
-.node_repl_history
-
-# Output of 'npm pack'
-*.tgz
-
-# Yarn Integrity file
-.yarn-integrity
-
-# dotenv environment variables file
-.env
-.env.test
-
-# parcel-bundler cache (https://parceljs.org/)
-.cache
-
-# next.js build output
-.next
-
-# nuxt.js build output
-.nuxt
-
-# vuepress build output
-.vuepress/dist
-
-# Serverless directories
-.serverless/
-
-# FuseBox cache
-.fusebox/
-
-# DynamoDB Local files
-.dynamodb/
-
-# Webpack
-.webpack/
-
-# Electron-Forge
-out/
diff --git a/packages/exo-app/art/exo-task-tray.svg b/packages/exo-app/art/exo-task-tray.svg
deleted file mode 100644
index f2f0b23..0000000
--- a/packages/exo-app/art/exo-task-tray.svg
+++ /dev/null
@@ -1,74 +0,0 @@
-
-
-
-
diff --git a/packages/exo-app/asset/exo-task-tray-22.png b/packages/exo-app/asset/exo-task-tray-22.png
deleted file mode 100644
index e2bcdbd..0000000
Binary files a/packages/exo-app/asset/exo-task-tray-22.png and /dev/null differ
diff --git a/packages/exo-app/asset/exo-task-tray.pdf b/packages/exo-app/asset/exo-task-tray.pdf
deleted file mode 100644
index 3d72e0a..0000000
Binary files a/packages/exo-app/asset/exo-task-tray.pdf and /dev/null differ
diff --git a/packages/exo-app/asset/exo.icns b/packages/exo-app/asset/exo.icns
deleted file mode 100644
index 7fd6a4c..0000000
Binary files a/packages/exo-app/asset/exo.icns and /dev/null differ
diff --git a/packages/exo-app/asset/exo.ico b/packages/exo-app/asset/exo.ico
deleted file mode 100644
index a94ea56..0000000
Binary files a/packages/exo-app/asset/exo.ico and /dev/null differ
diff --git a/packages/exo-app/asset/exo.iconset/icon_128x128.png b/packages/exo-app/asset/exo.iconset/icon_128x128.png
deleted file mode 100644
index 473b41e..0000000
Binary files a/packages/exo-app/asset/exo.iconset/icon_128x128.png and /dev/null differ
diff --git a/packages/exo-app/asset/exo.iconset/icon_128x128@2x.png b/packages/exo-app/asset/exo.iconset/icon_128x128@2x.png
deleted file mode 100644
index 7425ca8..0000000
Binary files a/packages/exo-app/asset/exo.iconset/icon_128x128@2x.png and /dev/null differ
diff --git a/packages/exo-app/asset/exo.iconset/icon_16x16.png b/packages/exo-app/asset/exo.iconset/icon_16x16.png
deleted file mode 100644
index f4db153..0000000
Binary files a/packages/exo-app/asset/exo.iconset/icon_16x16.png and /dev/null differ
diff --git a/packages/exo-app/asset/exo.iconset/icon_16x16@2x.png b/packages/exo-app/asset/exo.iconset/icon_16x16@2x.png
deleted file mode 100644
index 0939f34..0000000
Binary files a/packages/exo-app/asset/exo.iconset/icon_16x16@2x.png and /dev/null differ
diff --git a/packages/exo-app/asset/exo.iconset/icon_256x256.png b/packages/exo-app/asset/exo.iconset/icon_256x256.png
deleted file mode 100644
index 7425ca8..0000000
Binary files a/packages/exo-app/asset/exo.iconset/icon_256x256.png and /dev/null differ
diff --git a/packages/exo-app/asset/exo.iconset/icon_256x256@2x.png b/packages/exo-app/asset/exo.iconset/icon_256x256@2x.png
deleted file mode 100644
index 382a630..0000000
Binary files a/packages/exo-app/asset/exo.iconset/icon_256x256@2x.png and /dev/null differ
diff --git a/packages/exo-app/asset/exo.iconset/icon_32x32.png b/packages/exo-app/asset/exo.iconset/icon_32x32.png
deleted file mode 100644
index 0939f34..0000000
Binary files a/packages/exo-app/asset/exo.iconset/icon_32x32.png and /dev/null differ
diff --git a/packages/exo-app/asset/exo.iconset/icon_32x32@2x.png b/packages/exo-app/asset/exo.iconset/icon_32x32@2x.png
deleted file mode 100644
index 6a25347..0000000
Binary files a/packages/exo-app/asset/exo.iconset/icon_32x32@2x.png and /dev/null differ
diff --git a/packages/exo-app/asset/exo.iconset/icon_512x512.png b/packages/exo-app/asset/exo.iconset/icon_512x512.png
deleted file mode 100644
index 382a630..0000000
Binary files a/packages/exo-app/asset/exo.iconset/icon_512x512.png and /dev/null differ
diff --git a/packages/exo-app/asset/exo.iconset/icon_512x512@2x.png b/packages/exo-app/asset/exo.iconset/icon_512x512@2x.png
deleted file mode 100644
index 767668f..0000000
Binary files a/packages/exo-app/asset/exo.iconset/icon_512x512@2x.png and /dev/null differ
diff --git a/packages/exo-app/demo/README.md b/packages/exo-app/demo/README.md
deleted file mode 100644
index 33989f6..0000000
--- a/packages/exo-app/demo/README.md
+++ /dev/null
@@ -1,9 +0,0 @@
-This demo shows how a script might run a plugin in Exo, including interaction
-with the user to grant permission to run the plugin.
-This deploy script is a prototype of a command line tool or browser extension
-native messaging program.
-
-1. In the parent directory, `yarn && yarn build && yarn start` to open Exo.
-
-2. In the parent directory, `node demo`.
-
diff --git a/packages/exo-app/demo/index.js b/packages/exo-app/demo/index.js
deleted file mode 100644
index a8390a5..0000000
--- a/packages/exo-app/demo/index.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/* global process */
-
-import '@agoric/babel-standalone';
-import 'ses';
-import '@agoric/eventual-send/shim.js';
-import '../src/lockdown.js';
-import net from 'net';
-import { E } from '@agoric/eventual-send';
-import { resolve as importMetaResolve } from 'import-meta-resolve';
-import bundleSource from '@agoric/bundle-source';
-import { makeCapTPConnection } from '../src/captp-conn.js';
-import { whereExoSock } from '../src/exo-sock.js';
-
-function sink(error) {
- console.error(error);
- process.exitCode = process.exitCode || -1;
- process.exit();
-}
-
-const conn = net.connect(whereExoSock(process.platform, process.env));
-conn.on('connect', () => {
- (async () => {
- const url = await importMetaResolve('./plugin.js', import.meta.url);
- const path = new URL(url).pathname;
- const bundle = await bundleSource(path);
-
- const { drained, finalize, getBootstrap } = makeCapTPConnection(
- 'Exo',
- conn,
- );
- drained.catch(sink);
- try {
- const exo = getBootstrap();
- const instance = E(exo).importBundle(bundle);
- const api = E(instance).getAPI();
- console.log('ping->');
- const pong = await E(api).ping();
- console.log('<-pong', pong);
- } finally {
- finalize().catch(sink);
- }
- })().catch(sink);
-});
diff --git a/packages/exo-app/demo/plugin.js b/packages/exo-app/demo/plugin.js
deleted file mode 100644
index e5698fe..0000000
--- a/packages/exo-app/demo/plugin.js
+++ /dev/null
@@ -1,10 +0,0 @@
-import { Far } from '@agoric/marshal';
-
-export const startEndo = _endo => {
- return Far('Pingpong Table', {
- ping() {
- return 'pong';
- },
- });
-};
-harden(startEndo);
diff --git a/packages/exo-app/package.json b/packages/exo-app/package.json
deleted file mode 100644
index 4b30446..0000000
--- a/packages/exo-app/package.json
+++ /dev/null
@@ -1,114 +0,0 @@
-{
- "name": "@endo/exo-app",
- "productName": "Exo",
- "version": "0.1.0",
- "description": "Fearless cooperator",
- "keywords": [],
- "author": "Agoric",
- "license": "Apache-2.0",
- "homepage": "https://github.com/endojs/exo/tree/master/packages/exo#readme",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/endojs/exo.git"
- },
- "bugs": {
- "url": "https://github.com/endojs/exo/issues"
- },
- "type": "module",
- "main": "./src/exo.cjs",
- "scripts": {
- "start": "electron-forge start",
- "build": "rollup -c && node scripts/copy-ses.js",
- "package": "electron-forge package",
- "make": "electron-forge make",
- "publish": "electron-forge publish",
- "test": "yarn build && ava",
- "lint": "eslint '**/*.js'",
- "lint-fix": "eslint --fix '**/*.js'"
- },
- "config": {
- "forge": {
- "packagerConfig": {},
- "makers": [
- {
- "name": "@electron-forge/maker-squirrel",
- "config": {
- "name": "exo"
- }
- },
- {
- "name": "@electron-forge/maker-zip",
- "platforms": [
- "darwin"
- ]
- },
- {
- "name": "@electron-forge/maker-deb",
- "config": {}
- },
- {
- "name": "@electron-forge/maker-rpm",
- "config": {}
- }
- ]
- }
- },
- "dependencies": {
- "@agoric/babel-standalone": "^7.14.3",
- "@agoric/bundle-source": "^1.4.11",
- "@agoric/captp": "^1.10.5",
- "@agoric/eventual-send": "^0.13.29",
- "@agoric/import-bundle": "^0.2.30",
- "@agoric/marshal": "^0.4.27",
- "@endo/compartment-mapper": "^0.5.3",
- "@endo/netstring": "^0.2.9",
- "electron-is-dev": "^2.0.0",
- "electron-squirrel-startup": "^1.0.0",
- "import-meta-resolve": "^1.1.1",
- "ses": "^0.14.3",
- "update-electron-app": "^2.0.1"
- },
- "devDependencies": {
- "@endo/eslint-config": "^0.3.15",
- "@electron-forge/cli": "^6.0.0-beta.61",
- "@electron-forge/maker-deb": "^6.0.0-beta.61",
- "@electron-forge/maker-rpm": "^6.0.0-beta.61",
- "@electron-forge/maker-squirrel": "^6.0.0-beta.61",
- "@electron-forge/maker-zip": "^6.0.0-beta.61",
- "@typescript-eslint/parser": "^4.18.0",
- "@rollup/plugin-commonjs": "^21.0.0",
- "@rollup/plugin-node-resolve": "^13.0.5",
- "ava": "^3.12.1",
- "babel-eslint": "^10.0.3",
- "eslint": "^7.23.0",
- "eslint-config-airbnb-base": "^14.0.0",
- "eslint-config-prettier": "^6.9.0",
- "eslint-plugin-eslint-comments": "^3.1.2",
- "eslint-plugin-import": "^2.19.1",
- "eslint-plugin-jsdoc": "^30.4.2",
- "eslint-plugin-prettier": "^3.1.2",
- "electron": "^11.5.0",
- "electron-reload": "^2.0.0-alpha.1",
- "rollup": "^2",
- "prettier": "^1.19.1",
- "typescript": "^4.0.5"
- },
- "eslintConfig": {
- "extends": [
- "@endo"
- ],
- "ignorePatterns": [
- "public/**"
- ]
- },
- "prettier": {
- "trailingComma": "all",
- "singleQuote": true
- },
- "ava": {
- "files": [
- "test/**/test-*.js"
- ],
- "timeout": "2m"
- }
-}
diff --git a/packages/exo-app/public/.gitignore b/packages/exo-app/public/.gitignore
deleted file mode 100644
index a80df1b..0000000
--- a/packages/exo-app/public/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-front-endo.js*
-ses.js
diff --git a/packages/exo-app/public/front-endo.html b/packages/exo-app/public/front-endo.html
deleted file mode 100644
index 9eff8a4..0000000
--- a/packages/exo-app/public/front-endo.html
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/packages/exo-app/rollup.config.js b/packages/exo-app/rollup.config.js
deleted file mode 100644
index 3836542..0000000
--- a/packages/exo-app/rollup.config.js
+++ /dev/null
@@ -1,13 +0,0 @@
-import resolve from '@rollup/plugin-node-resolve';
-import commonjs from '@rollup/plugin-commonjs';
-
-export default {
- input: 'src/endo-front-front.js',
- output: {
- sourcemap: true,
- format: 'iife',
- name: 'Endo',
- file: 'public/front-endo.js',
- },
- plugins: [resolve(), commonjs()],
-};
diff --git a/packages/exo-app/scripts/copy-ses.js b/packages/exo-app/scripts/copy-ses.js
deleted file mode 100644
index eb35202..0000000
--- a/packages/exo-app/scripts/copy-ses.js
+++ /dev/null
@@ -1,15 +0,0 @@
-/* Copies a built version of SES into the public documents directory
- * for Exo's Front Endo Electron windows.
- */
-
-import fs from 'fs';
-import { resolve as importMetaResolve } from 'import-meta-resolve';
-import { fileURLToPath } from 'url';
-
-(async () => {
- const readUrl = await importMetaResolve('ses', import.meta.url);
- const writeUrl = new URL('../public/ses.js', import.meta.url).toString();
- const readPath = fileURLToPath(readUrl);
- const writePath = fileURLToPath(writeUrl);
- return fs.promises.copyFile(readPath, writePath);
-})().catch(console.error);
diff --git a/packages/exo-app/scripts/make-icons.sh b/packages/exo-app/scripts/make-icons.sh
deleted file mode 100644
index 5682a41..0000000
--- a/packages/exo-app/scripts/make-icons.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-set -ueo pipefail
-
-# The icon files are checked-in.
-# This script will regenerate them, has system dependencies, and as yet has
-# only been attempted on a Mac.
-
-# ImageMagic can be obtained from most package managers.
-# For example, `brew install imagaemagick`.
-
-# `sips` and `iconutil` come with Macs or the Mac developer tools.
-# `sips` could certainly be substituted for `convert`, but `convert` does not
-# support `ico` files (Windows).
-
-# When this project matures, it might make sense to generate each resolution
-# manually to optimize for scale.
-
-convert art/exo.png -bordercolor white -border 0 \
- \( -clone 0 -resize 16x16 \) \
- \( -clone 0 -resize 32x32 \) \
- \( -clone 0 -resize 48x48 \) \
- \( -clone 0 -resize 64x64 \) \
- -delete 0 -alpha off -colors 256 asset/exo.ico
-
-sips -z 16 16 art/exo.png --out asset/exo.iconset/icon_16x16.png
-sips -z 32 32 art/exo.png --out asset/exo.iconset/icon_16x16@2x.png
-sips -z 32 32 art/exo.png --out asset/exo.iconset/icon_32x32.png
-sips -z 64 64 art/exo.png --out asset/exo.iconset/icon_32x32@2x.png
-sips -z 128 128 art/exo.png --out asset/exo.iconset/icon_128x128.png
-sips -z 256 256 art/exo.png --out asset/exo.iconset/icon_128x128@2x.png
-sips -z 256 256 art/exo.png --out asset/exo.iconset/icon_256x256.png
-sips -z 512 512 art/exo.png --out asset/exo.iconset/icon_256x256@2x.png
-sips -z 512 512 art/exo.png --out asset/exo.iconset/icon_512x512.png
-sips -z 1024 1024 art/exo.png --out asset/exo.iconset/icon_512x512@2x.png
-
-iconutil -c icns asset/exo.iconset
diff --git a/packages/exo-app/src/captp-conn.js b/packages/exo-app/src/captp-conn.js
deleted file mode 100644
index 90df1e6..0000000
--- a/packages/exo-app/src/captp-conn.js
+++ /dev/null
@@ -1,35 +0,0 @@
-/* Provides a thin wrapper for CapTP, adapting Node.js Socket instances to JSON
- * over netstring streams.
- */
-import { makeCapTP } from '@agoric/captp';
-import { netstringReader } from '@endo/netstring/reader.js';
-import { netstringWriter } from '@endo/netstring/writer.js';
-import { nodeWriter } from './node-writer.js';
-import { jsonWriter } from './json-writer.js';
-import { jsonReader } from './json-reader.js';
-
-function makeCapTPMessageStreams(name, writer, reader, near) {
- // TODO cancellation context
- const { dispatch, getBootstrap, abort } = makeCapTP(name, writer.next, near);
-
- const drained = (async () => {
- for await (const message of reader) {
- dispatch(message);
- }
- })();
-
- return {
- getBootstrap,
- drained,
- finalize() {
- abort();
- return writer.return();
- },
- };
-}
-
-export function makeCapTPConnection(name, conn, near) {
- const writer = jsonWriter(netstringWriter(nodeWriter(conn)));
- const reader = jsonReader(netstringReader(conn));
- return makeCapTPMessageStreams(name, writer, reader, near);
-}
diff --git a/packages/exo-app/src/endo-back-manager.js b/packages/exo-app/src/endo-back-manager.js
deleted file mode 100644
index 41db49e..0000000
--- a/packages/exo-app/src/endo-back-manager.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Exo spawns Back Endo processes that can run arbitrary bundled programs in a
- * hardened JavaScript environment with limited capabilities.
- * This manager module runs in the main Exo process to create Back Endo
- * processes.
- * The Back Endo communicates with the Exo process on the third file descriptor
- * using CapTP over JSON over netstring protocol.
- */
-import { resolve as importMetaResolve } from 'import-meta-resolve';
-import { makeCapTPConnection } from './captp-conn.js';
-
-export async function spawnBackEndo(fork, name, near, options = {}) {
- const backEndoJavaScriptPath = new URL(
- await importMetaResolve('./endo-back-worker.js', import.meta.url),
- ).pathname;
- const child = fork(backEndoJavaScriptPath, {
- stdio: ['ignore', 'inherit', 'inherit', 'pipe', 'ipc'],
- });
-
- const { getBootstrap, drained, finalize } = makeCapTPConnection(
- name,
- child.stdio[3],
- near,
- options,
- );
-
- const exited = new Promise(resolve => {
- child.on('exit', () => {
- resolve();
- });
- });
-
- const kill = () => {
- child.kill();
- finalize();
- };
-
- return {
- getBootstrap,
- exited,
- drained,
- kill,
- };
-}
diff --git a/packages/exo-app/src/endo-back-worker.js b/packages/exo-app/src/endo-back-worker.js
deleted file mode 100644
index 1d04e62..0000000
--- a/packages/exo-app/src/endo-back-worker.js
+++ /dev/null
@@ -1,69 +0,0 @@
-/* Exo spawns Back Endo processes that can run arbitrary bundled programs in a
- * hardened JavaScript environment with limited capabilities.
- * This worker application runs in Exo child processes spawned from the main
- * process by the Back Endo manager.
- * The Exo main process communicates with the child process on the third file
- * descriptor using CapTP over JSON over netstring protocol.
- */
-import fs from 'fs';
-import 'ses';
-import '@agoric/eventual-send/shim.js';
-import './lockdown.js';
-import { makeCapTP } from '@agoric/captp';
-import { Far } from '@agoric/marshal';
-import { importBundle } from '@agoric/import-bundle';
-import { netstringReader, netstringWriter } from '@endo/netstring';
-import { jsonReader } from './json-reader.js';
-import { jsonWriter } from './json-writer.js';
-import { nodeWriter } from './node-writer.js';
-
-function sink(error) {
- console.error(error);
-}
-
-const fileReader = fs.createReadStream(null, { fd: 3 });
-const fileWriter = fs.createWriteStream(null, { fd: 3 });
-
-const reader = jsonReader(netstringReader(fileReader));
-const writer = jsonWriter(netstringWriter(nodeWriter(fileWriter)));
-
-const send = message => {
- writer.next(message);
-};
-
-const makeEndoFacet = (_endo, _grantedPowers) => {
- // Provide attenuated access to any granted powers.
- return harden({});
-};
-
-const { dispatch } = makeCapTP(
- 'ExoBackEndo',
- send,
- Far('ExoBackEndo', {
- async importBundle(bundle, endo, grantedPowers) {
- const endowments = {
- assert,
- TextEncoder,
- TextDecoder,
- URL,
- console,
- };
- const namespace = await importBundle(bundle, {
- endowments,
- });
- const { startEndo } = namespace;
- if (typeof startEndo !== 'function') {
- throw new TypeError(
- `An Endo application must export startEndo(endo) from its entry module`,
- );
- }
- return startEndo(makeEndoFacet(endo, grantedPowers));
- },
- }),
-);
-
-(async () => {
- for await (const message of reader) {
- dispatch(message);
- }
-})().catch(sink);
diff --git a/packages/exo-app/src/endo-front-back.cjs b/packages/exo-app/src/endo-front-back.cjs
deleted file mode 100644
index bfd1ecd..0000000
--- a/packages/exo-app/src/endo-front-back.cjs
+++ /dev/null
@@ -1,30 +0,0 @@
-/* This is the Exo Front Endo background script.
- * It runs in a special context that has both access to some Electron Node.js
- * CommonJS tools and access to a shadow of the content document.
- * From this vantage, it installs an `exo` object in the content window
- * and uses Electron IPC to create a communication message bridge between Exo
- * and Front Endo.
- */
-const { contextBridge, ipcRenderer } = require('electron');
-
-let buffer = [];
-let send = message => { buffer.push(message) };
-
-ipcRenderer.on('message', (_event, message) => {
- // console.log('preload->frontendo', message);
- send(message);
-});
-
-contextBridge.exposeInMainWorld('exo', {
- send(message) {
- // console.log('preload->main', message);
- ipcRenderer.send('message', message);
- },
- recv(callback) {
- send = callback;
- for (const message of buffer) {
- send(message);
- }
- buffer = undefined;
- }
-});
diff --git a/packages/exo-app/src/endo-front-front.js b/packages/exo-app/src/endo-front-front.js
deleted file mode 100644
index e09987e..0000000
--- a/packages/exo-app/src/endo-front-front.js
+++ /dev/null
@@ -1,87 +0,0 @@
-/* The "Exo Front Endo" is a web page that runs in an Electron window
- * and can run bundled scripts in a locked-down window with full access to the
- * document.
- *
- * Currently:
- * Exo only uses this Front Endo page to host its own Exo Console.
- *
- * Security:
- * Front Endo gives the application running in the page full access to the
- * document and consequently has all the powers of a web page.
- *
- * Design:
- * The "front endo" worker runs in a webpage of an Electron window.
- * Exo arranges for the Electron window to have a "preload" script,
- * "./front-endo-content.cjs".
- * The content script arranges for this, the page script, to have an "exo"
- * object that provides a bidirection message channel through the content
- * script back to the Exo main process.
- * The worker establishes a CapTP connection over this channel and provides the
- * Front Endo API.
- * With this API, Exo can inject a bundled program to run on the page.
- *
- * Further work:
- * If Front Endos were constrained to same-origin policy with a unique origin,
- * Exo could provide user interfaces to arbitrary installations.
- * If Front Endos could be further constrained strictly to object capability
- * rules, Exo could offer Front Endos to any application without consulting the
- * user for permission.
- * We could potentially arrange for a service worker to host arbitrary content
- * from a bundled application archive and limit access to the network, but true
- * confinement will be illusive as the DOM provides many avenues to the
- * network.
- * Front Endo also should also receive an Exo facet that would allow
- * it to ask follow-up requests of the Exo user, like revokable introduction to
- * other powers at runtime.
- */
-/* global exo, document */
-
-import '@agoric/eventual-send/shim.js';
-import './lockdown.js';
-import { makeCapTP } from '@agoric/captp';
-import { Far } from '@agoric/marshal';
-import { importBundle } from '@agoric/import-bundle';
-
-const makeEndoFacet = (_endo, _grantedPowers) => {
- // Provide attenuated access to any granted powers.
- return harden({});
-};
-
-const send = message => {
- // console.log('frontendo->preendo', message);
- exo.send(message);
-};
-
-const { dispatch } = makeCapTP(
- 'ExoFrontEndo',
- send,
- Far('ExoFrontEndo', {
- async importBundle(bundle, endo, grantedPowers) {
- const endowments = {
- document,
- assert,
- TextEncoder,
- TextDecoder,
- Date,
- Math,
- URL,
- console,
- };
- const namespace = await importBundle(bundle, {
- endowments,
- });
- const { startEndo } = namespace;
- if (typeof startEndo !== 'function') {
- throw new TypeError(
- `An Endo application must export startEndo(endo) from its entry module`,
- );
- }
- return startEndo(makeEndoFacet(endo, grantedPowers));
- },
- }),
-);
-
-exo.recv(message => {
- // console.log('preendo->frontendo', message);
- dispatch(message);
-});
diff --git a/packages/exo-app/src/exo-console.js b/packages/exo-app/src/exo-console.js
deleted file mode 100644
index 0dd96f7..0000000
--- a/packages/exo-app/src/exo-console.js
+++ /dev/null
@@ -1,64 +0,0 @@
-/* The Exo Console provides a user interface for managing plugins running in
- * Exo.
- * The console surfaces requests from Endo subprocesses and external requests
- * from other applications on the system.
- * The Exo Console is an Exo Front Endo application that runs in hardened JS
- * compartments within an Electron window's page isolate.
- *
- * This is a very temporary stop-gap for a user interface, sufficient only for
- * demonstrating communication among all the Exo parts.
- */
-
-/* global document */
-
-import { Far } from '@agoric/marshal';
-
-export const startEndo = endo => {
- return Far('ExoConsole', {
- async requestImportBundle(_hash, requestedPowers) {
- // TODO present program hash for out-of-band verification from the user.
-
- const grant = document.createElement('button');
- grant.innerText = 'Grant request to install a back endo';
- const grantLi = document.createElement('li');
- grantLi.appendChild(grant);
- const deny = document.createElement('button');
- deny.innerText = 'Deny request to install a back endo';
- const denyLi = document.createElement('li');
- denyLi.appendChild(deny);
- const ul = document.createElement('ul');
- ul.appendChild(grantLi);
- ul.appendChild(denyLi);
-
- const p = document.createElement('p');
- p.innerText = `${new Date().toISOString()} [exo]: Received a request to create a back endo. `;
- document.body.appendChild(p);
- document.body.appendChild(ul);
-
- return new Promise(resolve => {
- const answer = message => {
- resolve(message);
- denyLi.remove();
- grantLi.remove();
- };
-
- grant.onclick = () => {
- // TODO Extract petName from input.
- const petName = '';
- answer({ granted: true, grantedPowers: requestedPowers, petName });
- const q = document.createElement('p');
- q.innerText = `${new Date().toISOString()} You accepted. `;
- ul.appendChild(q);
- };
-
- deny.onclick = () => {
- answer({ granted: false });
- const q = document.createElement('p');
- q.innerText = `${new Date().toISOString()} You declined. `;
- ul.appendChild(q);
- };
- });
- },
- });
-};
-harden(startEndo);
diff --git a/packages/exo-app/src/exo-sock.js b/packages/exo-app/src/exo-sock.js
deleted file mode 100644
index 24f9fcf..0000000
--- a/packages/exo-app/src/exo-sock.js
+++ /dev/null
@@ -1,34 +0,0 @@
-/* Infers the rendezvous path for the exo.sock file from the platform and
- * environment.
- */
-
-export const whereExoSock = (platform, env) => {
- if (platform === 'win32') {
- // Favoring local app data over roaming app data since I don't expect to be
- // able to listen on one host and connect on another.
- if (env.LOCALAPPDATA !== undefined) {
- return `${env.LOCALAPPDATA}\\Exo\\exo.sock`;
- }
- if (env.APPDATA !== undefined) {
- return `${env.APPDATA}\\Exo\\exo.sock`;
- }
- if (env.USERPROFILE !== undefined) {
- return `${env.USERPROFILE}\\AppData\\Exo\\exo.sock`;
- }
- if (env.HOMEDRIVE !== undefined && env.HOMEPATH !== undefined) {
- return `${env.HOMEDRIVE}${env.HOMEPATH}\\AppData\\Exo\\exo.sock`;
- }
- } else if (platform === 'darwin') {
- if (env.HOME !== undefined) {
- return `${env.HOME}/Library/Application Support/Exo/exo.sock`;
- }
- } else {
- if (env.XDG_RUNTIME_DIR !== undefined) {
- return `${env.XDG_RUNTIME_DIR}/exo/exo.sock`;
- }
- if (env.HOME !== undefined) {
- return `${env.HOME}/.run/exo/exo.sock`;
- }
- }
- return 'exo.sock';
-};
diff --git a/packages/exo-app/src/exo.cjs b/packages/exo-app/src/exo.cjs
deleted file mode 100644
index 7305699..0000000
--- a/packages/exo-app/src/exo.cjs
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
- * This module is where Exo starts.
- * Electron provides certain capabilities as the `electron` module,
- * but only in the CommonJS module system.
- * Also, some Electron work must run in the first event, before the Electron
- * `app` is "ready".
- * We do all that work in this CommonJS module and then delegate the Electron
- * powers by dependency-injection to an ESM module that oversees the lifecycle
- * of the Exo main process, `exo.js`.
- */
-const electron = require('electron');
-
-// Find out if we are a built executable, or have a path to the script.
-const isProduction = !require('electron-is-dev');
-
-const args = isProduction ? process.argv.slice(1) : process.argv.slice(2);
-
-const { app } = electron;
-
-const electronReload = require('electron-reload');
-
-// Handle creating/removing shortcuts on Windows when installing/uninstalling.
-// eslint-disable-next-line global-require
-if (require('electron-squirrel-startup')) {
- app.quit();
- return;
-}
-
-// Needed to display on Ubuntu 2020.04 under Parallels.
-// Must be called before app is ready.
-app.disableHardwareAcceleration();
-
-(async () => {
- const { main } = await import('./exo.js');
- await main({args, electron, electronReload, isProduction});
-})().catch(error => {
- console.log(error);
- app.quit();
-});
diff --git a/packages/exo-app/src/exo.js b/packages/exo-app/src/exo.js
deleted file mode 100644
index 755e83a..0000000
--- a/packages/exo-app/src/exo.js
+++ /dev/null
@@ -1,285 +0,0 @@
-/* This module oversees the lifecycle of the Exo main process.
- * The Exo main process is responsible for managing Electron windows,
- * receiving requests from programs on the user host on a Unix domain socket,
- * and managing front-end and back-end "Endo" programs.
- * Front Endo programs run in Electron windows and Back Endo programs run in
- * Exo child processes, which is plain Node.js and does not depend on Node.js
- * having been installed elsewhere on the host system.
- *
- * Because Electron doesn't yet inject its capabilities in an ESM module, we
- * receive them from the `exo.cjs` thunk by dependency injection.
- */
-
-/* global HandledPromise, process */
-
-// Establish a perimeter:
-import '@agoric/babel-standalone';
-import 'ses';
-import '@agoric/eventual-send/shim.js';
-import './lockdown.js';
-
-// From Node.js:
-import popen from 'child_process';
-import fs from 'fs';
-import net from 'net';
-import path from 'path';
-import { fileURLToPath } from 'url';
-
-// From third-party dependencies:
-import updateElectronApp from 'update-electron-app';
-import { resolve as importMetaResolve } from 'import-meta-resolve';
-
-// From Agoric and Endo projects:
-import { Far } from '@agoric/marshal';
-import { E, makeCapTP } from '@agoric/captp';
-import bundleSource from '@agoric/bundle-source';
-
-import { makePromiseKit } from './promise-kit.js';
-import { makeCapTPConnection } from './captp-conn.js';
-import { spawnBackEndo } from './endo-back-manager.js';
-import { whereExoSock } from './exo-sock.js';
-
-function sink(error) {
- console.error(error);
-}
-
-function resourcePath(url) {
- return fileURLToPath(new URL(url, import.meta.url));
-}
-
-export async function main({ _args, electron, electronReload, isProduction }) {
- const { app, autoUpdater, BrowserWindow, Menu, Tray, ipcMain } = electron;
-
- if (!app.requestSingleInstanceLock()) {
- app.quit();
- return;
- }
-
- // Use this to automatically download updates on Windows and MacOS.
- // Requires code signing, and publishing to a public repo on github.
- updateElectronApp({ repo: 'endojs/endo' });
-
- if (!isProduction) {
- const workspacePath = resourcePath('../../..');
- electronReload(workspacePath, {
- electron: app.getPath('exe'),
- awaitWriteFinish: true,
- });
- }
-
- const frontEndoHtmlUrl = await importMetaResolve(
- '../public/front-endo.html',
- import.meta.url,
- );
- const frontEndoHtmlPath = new URL(frontEndoHtmlUrl).pathname;
- const exoConsoleUrl = await importMetaResolve(
- './exo-console.js',
- import.meta.url,
- );
- const exoConsolePath = new URL(exoConsoleUrl).pathname;
-
- const exoConsoleBundle = await bundleSource(exoConsolePath);
- const sockPath = whereExoSock(process.platform, process.env);
-
- // This is needed to map the Pledger systray to the signing certificate. For
- // non-production runs we use a different value.
- const TRAY_GUID = isProduction
- ? 'DE8D38CB-4B15-4153-B549-745067ADC852'
- : 'C728AAD2-DA20-421C-B534-97023DACF258';
-
- // console window WebContents -> capTP dispatch function forwarding IPC
- // messages to the corresponding CapTP connection.
- const dispatchers = new WeakMap();
-
- let currentExoConsolePK = makePromiseKit();
- const exoConsoleP = new HandledPromise(
- (_resolve, _reject, resolveWithPresence) => {
- resolveWithPresence({
- applyMethod(_p, name, args) {
- return E(currentExoConsolePK.promise)[name](...args);
- },
- });
- },
- );
-
- let consoleWindow;
- const provideConsoleWindow = () => {
- if (consoleWindow !== undefined) {
- return;
- }
-
- // Create the browser window.
- consoleWindow = new BrowserWindow({
- width: 800,
- height: 600,
- webPreferences: {
- preload: resourcePath('endo-front-back.cjs'),
- },
- });
-
- // And load the index.html of the app.
- consoleWindow.loadFile(frontEndoHtmlPath);
-
- consoleWindow.webContents.on('did-finish-load', () => {
- const send = message =>
- consoleWindow.webContents.send('message', message);
- const { dispatch, getBootstrap } = makeCapTP('Exo', send);
- dispatchers.set(consoleWindow.webContents, dispatch);
- const bootstrap = getBootstrap();
- // TODO pass endo powers for communication back to Exo, including
- // requests for introductions to additional powers.
- const grantedPowers = [];
- const endoP = Far('Endo', {}); // TODO make a power facet for this specific instance.
- const instance = E(bootstrap).importBundle(
- exoConsoleBundle,
- endoP,
- grantedPowers,
- );
- currentExoConsolePK.resolve(instance);
- });
-
- consoleWindow.on('closed', () => {
- currentExoConsolePK = makePromiseKit();
- consoleWindow = undefined;
- });
- };
-
- const exo = Far('Exo', {
- async importBundle(bundle) {
- // Petition the user for authorization to install this thing.
- // If accepted, spawn a process and use its stdio for a capTP bridge
- // back to the installer, as well as a means to reconnect if that
- // bridge falls.
- // TODO separate installation from execution.
- // TODO Provide options for lifecycle coupling between the installer or
- // executor process and the back-endo process.
- // TODO Provide options for automatically restarting installed back-endos
- // whenever Exo reopens. Capture back-endo installations in per-user
- // configuration storage.
- // TODO Surface the size of the installation to the user.
- // TODO Provide an interface for deleting installations.
- // TODO Support pet names for installations and instances.
- // TODO Support requests for reintroduction to existing instances.
- // TODO Extract requestedPowers and hash from the bundle.
- provideConsoleWindow();
- consoleWindow.show();
- try {
- const hash = '';
- const requestedPowers = [];
- console.log('waiting');
- const { granted, grantedPowers, petName } = await E(
- exoConsoleP,
- ).requestImportBundle(hash, requestedPowers);
- console.log('answer', { granted, grantedPowers, petName });
- // TODO Receive and track a pet name for the instance.
- if (granted) {
- // TODO thread stdout and stderr, buffer in memory, and replay
- // in a web-based terminal emulator in a window on demand.
- // TODO create button for opening a web inspector for the back-endo
- // process.
- // TODO virtualize the back-endo console.
- // TODO create a Causeway window for attached back-endos.
- const { getBootstrap, drained, exited, kill } = await spawnBackEndo(
- popen.fork,
- 'BackEndo',
- exoConsoleP,
- );
- drained.catch(sink);
- // TODO send process control to Exo Console.
- exited
- .then(() => {
- // TODO Inform the user through the Exo Console.
- console.log('Back-endo exited');
- })
- .catch(sink);
- const bootstrap = getBootstrap();
- const endo = Far('Endo', {}); // TODO make a power facet for this specific instance.
- const api = E(bootstrap).importBundle(bundle, endo, grantedPowers);
- return Far('BackEndo', {
- getAPI() {
- return api;
- },
- // TODO kill, detach, etc
- });
- } else {
- throw new Error('Installation request denied by user');
- }
- } finally {
- consoleWindow.hide();
- app.hide();
- }
- },
- // TODO install a bundle to be stored an instantiated on demand, on startup, &c.
- // TODO request a revokable introduction to an existing instance by alleged
- // type.
- });
-
- ipcMain.on('message', (event, message) => {
- const dispatch = dispatchers.get(event.sender);
- if (dispatch !== undefined) {
- dispatch(message);
- }
- });
-
- let appTray = null;
- const createTray = async () => {
- const trayIconPath = resourcePath(
- process.platform === 'win32'
- ? '../asset/exo.ico'
- : '../asset/exo-task-tray-22.png',
- );
- appTray = new Tray(trayIconPath, TRAY_GUID);
- const contextMenu = Menu.buildFromTemplate([
- {
- label: 'Exo Console',
- async click() {
- provideConsoleWindow();
- consoleWindow.show();
- },
- },
- { role: 'quit' },
- ]);
-
- appTray.setToolTip('Exo');
- appTray.setContextMenu(contextMenu);
- appTray.on('click', () => appTray.popUpContextMenu());
- };
-
- // This method will be called when Electron has finished
- // initialization and is ready to create browser windows.
- // Some APIs can only be used after this event occurs.
- app
- .whenReady()
- .then(createTray)
- .catch(sink);
-
- // We have a tray that we want to stay active until the user quits
- // explicitly with Cmd + Q, or there is an auto-update.
- let installingUpdate = false;
- autoUpdater.on('before-quit-for-update', () => (installingUpdate = true));
- app.on('window-all-closed', () => {
- if (installingUpdate) {
- app.quit();
- }
- });
-
- app.on('activate', () => {
- // On OS X it's common to re-create a window in the app when the
- // dock icon is clicked and there are no other windows open.
- if (BrowserWindow.getAllWindows().length === 0) {
- provideConsoleWindow();
- }
- });
-
- await fs.promises.mkdir(path.dirname(sockPath), { recursive: true });
- const server = net.createServer();
- server.listen(sockPath, () => {
- console.log(`Listening on ${sockPath}`);
- });
- server.on('connection', conn => {
- const { drained } = makeCapTPConnection('Exo', conn, exo);
- drained.catch(sink);
- provideConsoleWindow();
- consoleWindow.show();
- });
-}
diff --git a/packages/exo-app/src/json-reader.js b/packages/exo-app/src/json-reader.js
deleted file mode 100644
index 131e92d..0000000
--- a/packages/exo-app/src/json-reader.js
+++ /dev/null
@@ -1,11 +0,0 @@
-/* Adapts a Reader to a JSON object Reader where reader and
- * writer streeams are modeled as hybrid async iterators + generators.
- */
-const textDecoder = new TextDecoder();
-
-export async function* jsonReader(reader) {
- for await (const bytes of reader) {
- const text = textDecoder.decode(bytes);
- yield JSON.parse(text);
- }
-}
diff --git a/packages/exo-app/src/json-writer.js b/packages/exo-app/src/json-writer.js
deleted file mode 100644
index 08167b1..0000000
--- a/packages/exo-app/src/json-writer.js
+++ /dev/null
@@ -1,20 +0,0 @@
-/* Adapts a Writer to a JSON Writer, where reader and writer
- * streams are modeled as hybrid async iterators + generators.
- */
-const textEncoder = new TextEncoder();
-
-export function jsonWriter(writer) {
- return {
- next(value) {
- const json = JSON.stringify(value);
- const bytes = textEncoder.encode(json);
- return writer.next(bytes);
- },
- throw(error) {
- return writer.throw(error);
- },
- return() {
- return writer.return();
- },
- };
-}
diff --git a/packages/exo-app/src/lockdown.js b/packages/exo-app/src/lockdown.js
deleted file mode 100644
index c9ba112..0000000
--- a/packages/exo-app/src/lockdown.js
+++ /dev/null
@@ -1 +0,0 @@
-lockdown();
diff --git a/packages/exo-app/src/node-writer.js b/packages/exo-app/src/node-writer.js
deleted file mode 100644
index 1ffe29c..0000000
--- a/packages/exo-app/src/node-writer.js
+++ /dev/null
@@ -1,72 +0,0 @@
-/* Adapts a Node.js stream to an Writer, where a writer stream is
- * modeled as a hybrid async iterator + generator.
- */
-
-// @ts-check
-
-/**
- * @template T
- * @template U
- * @template V
- * @typedef {import('./stream.js').Stream} Stream
- */
-
-/**
- * @template T
- * @typedef {import('./promise-kit.js').PromiseRecord} PromiseRecord
- */
-import { makePromiseKit } from './promise-kit.js';
-import { pipe } from './stream.js';
-
-/**
- * Adapts a Node.js writable stream to a JavaScript
- * async iterator of Uint8Array data chunks.
- * Back pressure emerges from awaiting on the promise
- * returned by `next` before calling `next` again.
- *
- * @param {NodeJS.WritableStream} output the destination Node.js writer
- * @param {string} [name] a debug name for stream errors
- * @returns {Stream}
- */
-export function nodeWriter(output, name = '') {
- /**
- * @type {PromiseRecord}
- */
- let drained = makePromiseKit();
-
- output.on('error', err => {
- drained.reject(new Error(`Cannot write ${name}: ${err.message}`));
- });
-
- output.on('close', () => {
- drained.resolve();
- });
-
- output.on('drain', () => {
- drained.resolve();
- });
-
- const [target, source] = pipe();
-
- async function pump() {
- try {
- const { value, done } = await source.next(undefined);
- if (done) {
- output.end();
- } else {
- if (!output.write(value)) {
- drained = makePromiseKit();
- await drained.promise;
- }
- pump();
- return;
- }
- } catch (error) {
- output.end();
- }
- }
-
- pump();
-
- return target;
-}
diff --git a/packages/exo-app/src/promise-kit.js b/packages/exo-app/src/promise-kit.js
deleted file mode 100644
index c1097b1..0000000
--- a/packages/exo-app/src/promise-kit.js
+++ /dev/null
@@ -1,30 +0,0 @@
-/* A thin wrapper for making promises and their controller functions.
- */
-
-// @ts-check
-///
-
-/**
- * @template T
- * @typedef {{
- * resolve(value?: T | Promise): void,
- * reject(error: Error): void,
- * promise: Promise
- * }} PromiseKit
- */
-
-/**
- * @template T
- * @returns {PromiseKit}
- */
-export function makePromiseKit() {
- let resolve;
- let reject;
- const promise = new Promise((res, rej) => {
- resolve = res;
- reject = rej;
- });
- assert(resolve !== undefined);
- assert(reject !== undefined);
- return { promise, resolve, reject };
-}
diff --git a/packages/exo-app/src/stream.js b/packages/exo-app/src/stream.js
deleted file mode 100644
index bef9ee5..0000000
--- a/packages/exo-app/src/stream.js
+++ /dev/null
@@ -1,109 +0,0 @@
-/* `queue`, `stream`, and `pipe` are utilities for creating async iterator
- * "streams". A Stream is compatible with AsyncIterator and Generator but
- * differ in that every method and argument of both is required.
- * For example, streams always have `return` and `throw` for closing the write
- * side.
- * The `Stream` interface is symmetric, but a stream that sends data and
- * receives undefined is conventionally a `Writer` whereas a stream that
- * receives data and sends undefined is conventionally a `Reader`.
- */
-
-// @ts-check
-
-import { makePromiseKit } from './promise-kit.js';
-
-/**
- * @template T
- * @typedef {{
- * put(value: T | Promise): void,
- * get(): Promise
- * }} AsyncQueue
- */
-
-/**
- * @template T
- * @returns {AsyncQueue}
- */
-export function queue() {
- const ends = makePromiseKit();
- return {
- put(value) {
- const next = makePromiseKit();
- const promise = next.promise;
- ends.resolve({ value, promise });
- ends.resolve = next.resolve;
- },
- get() {
- const promise = ends.promise.then(next => next.value);
- ends.promise = ends.promise.then(next => next.promise);
- return promise;
- },
- };
-}
-
-/**
- * @template T
- * @template U
- * @template V
- * @typedef {{
- * next(value: U): Promise>,
- * return(value: V): Promise>,
- * throw(error: Error): Promise>,
- * [Symbol.asyncIterator](): Stream
- * }} Stream
- */
-
-/**
- * @template T
- * @template V
- * @typedef {Stream} Reader
- */
-
-/**
- * @template U
- * @template V
- * @typedef {Stream} Writer
- */
-
-/**
- * @template T
- * @template U
- * @template V
- * @param {AsyncQueue>} acks
- * @param {AsyncQueue>} data
- * @returns {Stream}
- */
-export function stream(acks, data) {
- return {
- next(value) {
- data.put({ value, done: false });
- return acks.get();
- },
- return(value) {
- data.put({ value, done: true });
- return acks.get();
- },
- throw(error) {
- data.put(Promise.reject(error));
- return acks.get();
- },
- [Symbol.asyncIterator]() {
- return this;
- },
- };
-}
-
-/**
- * @template T
- * @template U
- * @template TReturn
- * @template UReturn
- * @returns {[Stream, Stream]}
- */
-export function pipe() {
- const syn = queue();
- const ack = queue();
- const input = stream(syn, ack);
- const output = stream(ack, syn);
- return [input, output];
-}
diff --git a/packages/exo-app/test/test-exo-sock.js b/packages/exo-app/test/test-exo-sock.js
deleted file mode 100644
index bbf67dc..0000000
--- a/packages/exo-app/test/test-exo-sock.js
+++ /dev/null
@@ -1,88 +0,0 @@
-import test from 'ava';
-import { whereExoSock } from '../src/exo-sock.js';
-
-test('windows localappdata', t => {
- t.is(
- whereExoSock('win32', {
- LOCALAPPDATA: 'C:\\Users\\Alice\\AppData',
- APPDATA: 'IGNORE ME',
- USERPROFILE: 'IGNORE ME',
- HOMEDRIVE: 'IGNORE ME',
- HOMEPATH: 'IGNORE ME',
- }),
- 'C:\\Users\\Alice\\AppData\\Exo\\exo.sock',
- );
-});
-
-test('windows appdata', t => {
- t.is(
- whereExoSock('win32', {
- APPDATA: 'C:\\Users\\Alice\\AppData\\Roaming',
- USERPROFILE: 'IGNORE ME',
- HOMEDRIVE: 'IGNORE ME',
- HOMEPATH: 'IGNORE ME',
- }),
- 'C:\\Users\\Alice\\AppData\\Roaming\\Exo\\exo.sock',
- );
-});
-
-test('windows userprofile', t => {
- t.is(
- whereExoSock('win32', {
- USERPROFILE: 'C:\\Users\\Alice',
- HOMEDRIVE: 'IGNORE ME',
- HOMEPATH: 'IGNORE ME',
- }),
- 'C:\\Users\\Alice\\AppData\\Exo\\exo.sock',
- );
-});
-
-test('windows homedrive and homepath', t => {
- t.is(
- whereExoSock('win32', {
- HOMEDRIVE: 'C:\\',
- HOMEPATH: 'Users\\Alice',
- }),
- 'C:\\Users\\Alice\\AppData\\Exo\\exo.sock',
- );
-});
-
-test('windows fallback', t => {
- t.is(whereExoSock('win32', {}), 'exo.sock');
-});
-
-test('darwin', t => {
- t.is(
- whereExoSock('darwin', {
- HOME: '/Users/alice',
- }),
- '/Users/alice/Library/Application Support/Exo/exo.sock',
- );
-});
-
-test('darwin fallback', t => {
- t.is(whereExoSock('darwin', {}), 'exo.sock');
-});
-
-test('linux xdg runtime', t => {
- t.is(
- whereExoSock('linux', {
- XDG_RUNTIME_DIR: '/home/alice/.run',
- HOME: 'IGNORE ME',
- }),
- '/home/alice/.run/exo/exo.sock',
- );
-});
-
-test('linux xdg home', t => {
- t.is(
- whereExoSock('linux', {
- HOME: '/home/alice',
- }),
- '/home/alice/.run/exo/exo.sock',
- );
-});
-
-test('linux fallback', t => {
- t.is(whereExoSock('linux', {}), 'exo.sock');
-});
diff --git a/packages/exo-app/test/test-placeholder.js b/packages/exo-app/test/test-placeholder.js
deleted file mode 100644
index 71ec9a8..0000000
--- a/packages/exo-app/test/test-placeholder.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// @ts-check
-
-import test from 'ava';
-
-test('place-holder', t => t.pass());
diff --git a/packages/plugin-agoric-app/.gitignore b/packages/plugin-agoric-app/.gitignore
deleted file mode 100644
index e660fd9..0000000
--- a/packages/plugin-agoric-app/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-bin/
diff --git a/packages/plugin-agoric-app/go.mod b/packages/plugin-agoric-app/go.mod
deleted file mode 100644
index 06f67d3..0000000
--- a/packages/plugin-agoric-app/go.mod
+++ /dev/null
@@ -1,20 +0,0 @@
-module main
-
-go 1.15
-
-require (
- github.com/Agoric/agoric-sdk v0.24.1
- github.com/ethereum/go-ethereum v1.9.22 // indirect
-)
-
-// Silence a warning on MacOS
-replace github.com/keybase/go-keychain => github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4
-
-replace github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.2-alpha.regen.4
-
-// At least until tendermint v0.34.4 is released.
-// replace github.com/tendermint/tendermint => github.com/agoric-labs/tendermint v0.33.1-dev2.0.20210126214117-87803b32fbb4
-
-// At least until https://github.com/cosmos/cosmos-sdk/issues/8478 is solved and
-// released.
-// replace github.com/cosmos/cosmos-sdk => github.com/agoric-labs/cosmos-sdk v0.34.4-0.20210129184725-f1afab29a888
diff --git a/packages/plugin-agoric-app/go.sum b/packages/plugin-agoric-app/go.sum
deleted file mode 100644
index 0473028..0000000
--- a/packages/plugin-agoric-app/go.sum
+++ /dev/null
@@ -1,919 +0,0 @@
-cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
-cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
-cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU=
-cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU=
-cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY=
-cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc=
-cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0=
-cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o=
-cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE=
-cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk=
-cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I=
-cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw=
-dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
-github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs=
-github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4=
-github.com/99designs/keyring v1.1.6 h1:kVDC2uCgVwecxCk+9zoCt2uEL6dt+dfVzMvGgnVcIuM=
-github.com/99designs/keyring v1.1.6/go.mod h1:16e0ds7LGQQcT59QqkTg72Hh5ShM51Byv5PEmW6uoRU=
-github.com/Agoric/agoric-sdk v0.0.0-20201011220130-f30f9c002959 h1:PEmrQ0nAIGZHeLTo9PYpUIeUzPToaIR4HZmgZ388J+Q=
-github.com/Agoric/agoric-sdk v0.0.0-20201011220130-f30f9c002959/go.mod h1:koPDH5LMsRjPoq118FBMHRIEPktG/9cyyH1gSYff1rg=
-github.com/Agoric/agoric-sdk v0.0.0-20210217030458-3169872b4b29 h1:MQ8ewkL5vu2+cmyE2U9yEw43Ou2R1M4kaCDM4FC+gvA=
-github.com/Agoric/agoric-sdk v0.0.0-20210217030458-3169872b4b29/go.mod h1:Nu2uIBvGMvwsK9xKCq7yiltnwujttFcqvx9xOvlWIYE=
-github.com/Agoric/agoric-sdk v0.11.0 h1:/WZRIxEMTcrTyFSDfuG4TDEh67iFpSSUsThj9CPDZfY=
-github.com/Agoric/agoric-sdk v0.24.0 h1:orhV1TspLCmi02EKbjsc6Zdtmc/1lRv9XgTiuGdBFe8=
-github.com/Agoric/agoric-sdk v0.24.0/go.mod h1:Nu2uIBvGMvwsK9xKCq7yiltnwujttFcqvx9xOvlWIYE=
-github.com/Agoric/agoric-sdk v0.24.1 h1:QdLT2DOiY7WldUPZ9R2fOhc7p+y8qKqWn0sIV4u7D7A=
-github.com/Agoric/agoric-sdk v0.24.1/go.mod h1:5GWVhMbpaU2aT7vNHXvriFYCFx5wLEWpgqC1+BKjZXY=
-github.com/Azure/azure-pipeline-go v0.2.1/go.mod h1:UGSo8XybXnIGZ3epmeBw7Jdz+HiUVpqIlpz/HKHylF4=
-github.com/Azure/azure-pipeline-go v0.2.2/go.mod h1:4rQ/NZncSvGqNkkOsNpOU1tgoNuIlp9AfUH5G1tvCHc=
-github.com/Azure/azure-storage-blob-go v0.7.0/go.mod h1:f9YQKtsG1nMisotuTPpO0tjNuEjKRYAcJU8/ydDI++4=
-github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI=
-github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0=
-github.com/Azure/go-autorest/autorest/adal v0.8.0/go.mod h1:Z6vX6WXXuyieHAXwMj0S6HY6e6wcHn37qQMBQlvY3lc=
-github.com/Azure/go-autorest/autorest/date v0.1.0/go.mod h1:plvfp3oPSKwf2DNjlBjWF/7vwR+cUD/ELuzDCXwHUVA=
-github.com/Azure/go-autorest/autorest/date v0.2.0/go.mod h1:vcORJHLJEh643/Ioh9+vPmf1Ij9AEBM5FuBIXLmIy0g=
-github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0=
-github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0=
-github.com/Azure/go-autorest/autorest/mocks v0.3.0/go.mod h1:a8FDP3DYzQ4RYfVAxAN3SVSiiO77gL2j2ronKKP0syM=
-github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc=
-github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk=
-github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
-github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
-github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d h1:nalkkPQcITbvhmL4+C4cKA87NW0tfm3Kl9VXRoPywFg=
-github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d/go.mod h1:URdX5+vg25ts3aCh8H5IFZybJYKWhJHYMTnf+ULtoC4=
-github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
-github.com/DataDog/zstd v1.4.1/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo=
-github.com/DataDog/zstd v1.4.5/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo=
-github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
-github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
-github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo=
-github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI=
-github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg=
-github.com/VictoriaMetrics/fastcache v1.5.7/go.mod h1:ptDBkNMQI4RtmVo8VS/XwRY6RoTu1dAWCbrk+6WsEM8=
-github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g=
-github.com/Workiva/go-datastructures v1.0.52 h1:PLSK6pwn8mYdaoaCZEMsXBpBotr4HHn9abU0yMQt0NI=
-github.com/Workiva/go-datastructures v1.0.52/go.mod h1:Z+F2Rca0qCsVYDS8z7bAGm8f3UkzuWYS/oBZz5a7VVA=
-github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII=
-github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c=
-github.com/agoric-labs/cosmos-sdk v0.34.4-0.20210129184725-f1afab29a888 h1:0be7uMLEqiZ4Bqp2VD8agsf7DmJEFNdKrRBRIYKAb5s=
-github.com/agoric-labs/cosmos-sdk v0.34.4-0.20210129184725-f1afab29a888/go.mod h1:vlgqdPpUGSxgqSbZea6fjszoLkPKwCuiqSBySLlv4ro=
-github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
-github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
-github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
-github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
-github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho=
-github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM=
-github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
-github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
-github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
-github.com/aristanetworks/goarista v0.0.0-20170210015632-ea17b1a17847/go.mod h1:D/tb0zPVXnP7fmsLZjtdUhSsumbK/ij54UXjjVgMGxQ=
-github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
-github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
-github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=
-github.com/armon/go-metrics v0.3.6 h1:x/tmtOF9cDBoXH7XoAGOz2qqm1DknFD1590XmD/DUJ8=
-github.com/armon/go-metrics v0.3.6/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc=
-github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
-github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A=
-github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU=
-github.com/aws/aws-sdk-go v1.25.48/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
-github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
-github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g=
-github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
-github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
-github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
-github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
-github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY=
-github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
-github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84=
-github.com/btcsuite/btcd v0.0.0-20171128150713-2e60448ffcc6/go.mod h1:Dmm/EzmjnCiweXmzRIAiUWCInVmPgjkzgv5k4tVyXiQ=
-github.com/btcsuite/btcd v0.0.0-20190115013929-ed77733ec07d/go.mod h1:d3C0AkH6BRcvO8T0UEPu53cnw4IbV63x1bEjildYhO0=
-github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ=
-github.com/btcsuite/btcd v0.21.0-beta h1:At9hIZdJW0s9E/fAz28nrz6AmcNlSVucCH796ZteX1M=
-github.com/btcsuite/btcd v0.21.0-beta/go.mod h1:ZSWyehm27aAuS9bvkATT+Xte3hjHZ+MRgMY/8NJ7K94=
-github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA=
-github.com/btcsuite/btcutil v0.0.0-20180706230648-ab6388e0c60a/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg=
-github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg=
-github.com/btcsuite/btcutil v1.0.2/go.mod h1:j9HUFwoQRsZL3V4n+qG+CUnEGHOarIxfC3Le2Yhbcts=
-github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg=
-github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVaaLLH7j4eDXPRvw78tMflu7Ie2bzYOH4Y8rRKBY=
-github.com/btcsuite/goleveldb v1.0.0/go.mod h1:QiK9vBlgftBg6rWQIj6wFzbPfRjiykIEhBH4obrXJ/I=
-github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc=
-github.com/btcsuite/snappy-go v1.0.0/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc=
-github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY=
-github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs=
-github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ=
-github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM=
-github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
-github.com/cespare/cp v0.1.0/go.mod h1:SOGHArjBr4JWaSDEVpWpo/hNg6RoKrls6Oh40hiwW+s=
-github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
-github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
-github.com/cespare/xxhash/v2 v2.1.1 h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+qY=
-github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
-github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag=
-github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I=
-github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE=
-github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
-github.com/cloudflare/cloudflare-go v0.10.2-0.20190916151808-a80f83b9add9/go.mod h1:1MxXX1Ux4x6mqPmjkUgTP1CdXIBXKX7T+Jk9Gxrmx+U=
-github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
-github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
-github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8=
-github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI=
-github.com/confio/ics23/go v0.0.0-20200817220745-f173e6211efb/go.mod h1:E45NqnlpxGnpfTWL/xauN7MRwEE28T4Dd4uraToOaKg=
-github.com/confio/ics23/go v0.6.3 h1:PuGK2V1NJWZ8sSkNDq91jgT/cahFEW9RGp4Y5jxulf0=
-github.com/confio/ics23/go v0.6.3/go.mod h1:E45NqnlpxGnpfTWL/xauN7MRwEE28T4Dd4uraToOaKg=
-github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk=
-github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
-github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
-github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk=
-github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
-github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
-github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
-github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
-github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
-github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
-github.com/cosmos/cosmos-sdk v0.41.1 h1:QatVRc8EaEObHtOFDNYHoF6di/jvSFVkXBK3I3SQ+/4=
-github.com/cosmos/cosmos-sdk v0.41.1/go.mod h1:mCaJm2k+fqY7+qwvwd7WDHZZFG3avW4+I6c4lizAkIY=
-github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y=
-github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY=
-github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw=
-github.com/cosmos/iavl v0.15.0-rc3.0.20201009144442-230e9bdf52cd/go.mod h1:3xOIaNNX19p0QrX0VqWa6voPRoJRGGYtny+DH8NEPvE=
-github.com/cosmos/iavl v0.15.0-rc5/go.mod h1:WqoPL9yPTQ85QBMT45OOUzPxG/U/JcJoN7uMjgxke/I=
-github.com/cosmos/iavl v0.15.3 h1:xE9r6HW8GeKeoYJN4zefpljZ1oukVScP/7M8oj6SUts=
-github.com/cosmos/iavl v0.15.3/go.mod h1:OLjQiAQ4fGD2KDZooyJG9yz+p2ao2IAYSbke8mVvSA4=
-github.com/cosmos/ledger-cosmos-go v0.11.1 h1:9JIYsGnXP613pb2vPjFeMMjBI5lEDsEaF6oYorTy6J4=
-github.com/cosmos/ledger-cosmos-go v0.11.1/go.mod h1:J8//BsAGTo3OC/vDLjMRFLW6q0WAaXvHnVc7ZmE8iUY=
-github.com/cosmos/ledger-go v0.9.2 h1:Nnao/dLwaVTk1Q5U9THldpUMMXU94BOTWPddSmVB6pI=
-github.com/cosmos/ledger-go v0.9.2/go.mod h1:oZJ2hHAZROdlHiwTg4t7kP+GKIIkBT+o6c9QWFanOyI=
-github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE=
-github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
-github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
-github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY=
-github.com/danieljoos/wincred v1.0.2 h1:zf4bhty2iLuwgjgpraD2E9UbvO+fe54XXGJbOwe23fU=
-github.com/danieljoos/wincred v1.0.2/go.mod h1:SnuYRW9lp1oJrZX/dXJqr0cPK5gYXqx3EJbmjhLdK9U=
-github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
-github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
-github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
-github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
-github.com/deckarep/golang-set v0.0.0-20180603214616-504e848d77ea/go.mod h1:93vsz/8Wt4joVM7c2AVqh+YRMiUSc14yDtF28KmMOgQ=
-github.com/decred/dcrd/lru v1.0.0/go.mod h1:mxKOwFd7lFjN2GZYsiz/ecgqR6kkYAl+0pz0tEMk218=
-github.com/dgraph-io/badger/v2 v2.2007.1/go.mod h1:26P/7fbL4kUZVEVKLAKXkBXKOydDmM2p1e+NhhnBCAE=
-github.com/dgraph-io/badger/v2 v2.2007.2/go.mod h1:26P/7fbL4kUZVEVKLAKXkBXKOydDmM2p1e+NhhnBCAE=
-github.com/dgraph-io/ristretto v0.0.3-0.20200630154024-f66de99634de/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E=
-github.com/dgraph-io/ristretto v0.0.3/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E=
-github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
-github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw=
-github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw=
-github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no=
-github.com/dlclark/regexp2 v1.2.0/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc=
-github.com/docker/docker v1.4.2-0.20180625184442-8e610b2b55bf/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
-github.com/dop251/goja v0.0.0-20200721192441-a695b0cdd498/go.mod h1:Mw6PkjjMXWbTj+nnj4s3QPXq1jaT0s5pC0iFD4+BOAA=
-github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
-github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
-github.com/dvsekhvalnov/jose2go v0.0.0-20200901110807-248326c1351b h1:HBah4D48ypg3J7Np4N+HY/ZR76fx3HEUGxDU6Uk39oQ=
-github.com/dvsekhvalnov/jose2go v0.0.0-20200901110807-248326c1351b/go.mod h1:7BvyPhdbLxMXIYTFPLsyJRFMsKmOZnQmzh6Gb+uquuM=
-github.com/dvyukov/go-fuzz v0.0.0-20200318091601-be3528f3a813/go.mod h1:11Gm+ccJnvAhCNLlf5+cS9KjtbaD5I5zaZpFMsTHWTw=
-github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs=
-github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU=
-github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I=
-github.com/edsrzf/mmap-go v0.0.0-20160512033002-935e0e8a636c/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M=
-github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M=
-github.com/enigmampc/btcutil v1.0.3-0.20200723161021-e2fb6adb2a25 h1:2vLKys4RBU4pn2T/hjXMbvwTr1Cvy5THHrQkbeY9HRk=
-github.com/enigmampc/btcutil v1.0.3-0.20200723161021-e2fb6adb2a25/go.mod h1:hTr8+TLQmkUkgcuh3mcr5fjrT9c64ZzsBCdCEC6UppY=
-github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g=
-github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
-github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
-github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
-github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
-github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
-github.com/ethereum/go-ethereum v1.9.22/go.mod h1:FQjK3ZwD8C5DYn7ukTmFee36rq1dOMESiUfXr5RUc1w=
-github.com/facebookgo/ensure v0.0.0-20160127193407-b4ab57deab51/go.mod h1:Yg+htXGokKKdzcwhuNDwVvN+uBxDGXJ7G/VN1d8fa64=
-github.com/facebookgo/stack v0.0.0-20160209184415-751773369052/go.mod h1:UbMTZqLaRiH3MsBH8va0n7s1pQYcu3uTb8G4tygF4Zg=
-github.com/facebookgo/subset v0.0.0-20150612182917-8dac2c3c4870/go.mod h1:5tD+neXqOorC30/tWg0LCSkrqj/AR6gu8yY8/fpw1q0=
-github.com/fatih/color v1.3.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
-github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
-github.com/felixge/httpsnoop v1.0.1 h1:lvB5Jl89CsZtGIWuTcDM1E/vkVs49/Ml7JJe07l8SPQ=
-github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
-github.com/fjl/memsize v0.0.0-20180418122429-ca190fb6ffbc/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0=
-github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g=
-github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4=
-github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20=
-github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
-github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=
-github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
-github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff/go.mod h1:x7DCsMOv1taUwEWCzT4cmDeAkigA5/QCwUodaVOe8Ww=
-github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
-github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
-github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
-github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
-github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
-github.com/go-kit/kit v0.10.0 h1:dXFJfIHVvUcpSgDOV+Ne6t7jXri8Tfv2uOLHUZ2XNuo=
-github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o=
-github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
-github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
-github.com/go-logfmt/logfmt v0.5.0 h1:TrB8swr/68K7m9CcGut2g3UOihhbcbiMAYiuTXdEih4=
-github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A=
-github.com/go-ole/go-ole v1.2.1/go.mod h1:7FAglXiTm7HKlQRDeOQ6ZNUHidzCWXuZWq/1dTyBNF8=
-github.com/go-sourcemap/sourcemap v2.1.2+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg=
-github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w=
-github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
-github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0=
-github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4=
-github.com/gogo/gateway v1.1.0 h1:u0SuhL9+Il+UbjM9VIE3ntfRujKbvVpFvNB4HbjeVQ0=
-github.com/gogo/gateway v1.1.0/go.mod h1:S7rR8FRQyG3QFESeSv4l2WnsyzlCLG0CzBbUUo/mbic=
-github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s=
-github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
-github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
-github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
-github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
-github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
-github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
-github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y=
-github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4=
-github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
-github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a1/R87v0=
-github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
-github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
-github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
-github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk=
-github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
-github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
-github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
-github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
-github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
-github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
-github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
-github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM=
-github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
-github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
-github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
-github.com/golang/snappy v0.0.2-0.20200707131729-196ae77b8a26/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
-github.com/golang/snappy v0.0.2 h1:aeE13tS0IiQgFjYdoL8qN3K1N2bXXtI6Vi51/y7BpMw=
-github.com/golang/snappy v0.0.2/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
-github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
-github.com/google/btree v1.0.0 h1:0udJVsspx3VBr5FwtLhQQtuAsVc79tTq0ocGIPAU6qo=
-github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
-github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
-github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
-github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
-github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
-github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
-github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI=
-github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
-github.com/google/gofuzz v1.1.1-0.20200604201612-c04b05f3adfa/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
-github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
-github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
-github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
-github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
-github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
-github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
-github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
-github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
-github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
-github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg=
-github.com/gorilla/handlers v1.5.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4=
-github.com/gorilla/handlers v1.5.1/go.mod h1:t8XrUpc4KVXb7HGyJ4/cEnwQiaxrX/hz1Zv/4g96P1Q=
-github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs=
-github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs=
-github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI=
-github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=
-github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
-github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
-github.com/gorilla/websocket v1.4.1-0.20190629185528-ae1634f6a989/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
-github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc=
-github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
-github.com/graph-gophers/graphql-go v0.0.0-20191115155744-f33e81362277/go.mod h1:9CQHMSxwO4MprSdzoIEobiHpoLtHm77vfxsvsIN5Vuc=
-github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs=
-github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs=
-github.com/grpc-ecosystem/go-grpc-middleware v1.2.1/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI=
-github.com/grpc-ecosystem/go-grpc-middleware v1.2.2 h1:FlFbCRLd5Jr4iYXZufAvgWN6Ao0JrI5chLINnUXDDr0=
-github.com/grpc-ecosystem/go-grpc-middleware v1.2.2/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI=
-github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk=
-github.com/grpc-ecosystem/grpc-gateway v1.8.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY=
-github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY=
-github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY=
-github.com/grpc-ecosystem/grpc-gateway v1.14.7/go.mod h1:oYZKL012gGh6LMyg/xA7Q2yq6j8bu0wa+9w14EEthWU=
-github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo=
-github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw=
-github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU=
-github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0=
-github.com/gtank/merlin v0.1.1-0.20191105220539-8318aed1a79f/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/bIQ+s=
-github.com/gtank/merlin v0.1.1 h1:eQ90iG7K9pOhtereWsmyRJ6RAwcP4tHTDBHXNg+u5is=
-github.com/gtank/merlin v0.1.1/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/bIQ+s=
-github.com/gtank/ristretto255 v0.1.2 h1:JEqUCPA1NvLq5DwYtuzigd7ss8fwbYay9fi4/5uMzcc=
-github.com/gtank/ristretto255 v0.1.2/go.mod h1:Ph5OpO6c7xKUGROZfWVLiJf9icMDwUeIvY4OmlYW69o=
-github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q=
-github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE=
-github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8=
-github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8=
-github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
-github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
-github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
-github.com/hashicorp/go-immutable-radix v1.0.0 h1:AKDB1HM5PWEA7i4nhcpwOrO2byshxBjXVn/J/3+z5/0=
-github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
-github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM=
-github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
-github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs=
-github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU=
-github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU=
-github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4=
-github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
-github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
-github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
-github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90=
-github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
-github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
-github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc=
-github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
-github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
-github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
-github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64=
-github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ=
-github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I=
-github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc=
-github.com/holiman/uint256 v1.1.1/go.mod h1:y4ga/t+u+Xwd7CpDgZESaRcWy0I7XMlTMA25ApIH5Jw=
-github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
-github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg=
-github.com/huin/goupnp v1.0.0/go.mod h1:n9v9KO1tAxYH82qOn+UTIFQDmx5n1Zxd/ClZDMX7Bnc=
-github.com/huin/goutil v0.0.0-20170803182201-1ca381bf3150/go.mod h1:PpLOETDnJ0o3iZrZfqZzyLl6l7F3c6L1oWn7OICBi6o=
-github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
-github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
-github.com/influxdata/influxdb v1.2.3-0.20180221223340-01288bdb0883/go.mod h1:qZna6X/4elxqT3yI9iZYdZrWWdeFOOprn86kgg4+IzY=
-github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo=
-github.com/jackpal/go-nat-pmp v1.0.2-0.20160603034137-1fa385a6f458/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc=
-github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
-github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
-github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
-github.com/jmhodges/levigo v1.0.0/go.mod h1:Q6Qx+uH3RAqyK4rFQroq9RL7mdkABMcfhEI+nNuzMJQ=
-github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=
-github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4=
-github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ=
-github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
-github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
-github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
-github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
-github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
-github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
-github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
-github.com/julienschmidt/httprouter v1.1.1-0.20170430222011-975b5c4c7c21/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
-github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
-github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
-github.com/karalabe/usb v0.0.0-20190919080040-51dc0efba356/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU=
-github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00=
-github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
-github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4=
-github.com/kkdai/bstream v1.0.0/go.mod h1:FDnDOHt5Yx4p3FaHcioFT0QjDOtgUpvjeZqAs+NVZZA=
-github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
-github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
-github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg=
-github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
-github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
-github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
-github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
-github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
-github.com/libp2p/go-buffer-pool v0.0.2 h1:QNK2iAFa8gjAe1SPz6mHSMuCcjs+X1wlHzeOSqcmlfs=
-github.com/libp2p/go-buffer-pool v0.0.2/go.mod h1:MvaB6xw5vOrDl8rYZGLFdKAuk/hRoRZd1Vi32+RXyFM=
-github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM=
-github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4=
-github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ=
-github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
-github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
-github.com/magiconair/properties v1.8.4 h1:8KGKTcQQGm0Kv7vEbKFErAoAOFyyacLStRtQSeYtvkY=
-github.com/magiconair/properties v1.8.4/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60=
-github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
-github.com/mattn/go-colorable v0.1.0/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
-github.com/mattn/go-ieproxy v0.0.0-20190610004146-91bb50d98149/go.mod h1:31jz6HNzdxOmlERGGEc4v/dMssOfmp2p5bT/okiKFFc=
-github.com/mattn/go-ieproxy v0.0.0-20190702010315-6dee0af9227d/go.mod h1:31jz6HNzdxOmlERGGEc4v/dMssOfmp2p5bT/okiKFFc=
-github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
-github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
-github.com/mattn/go-isatty v0.0.5-0.20180830101745-3fb116b82035/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
-github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
-github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
-github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
-github.com/mattn/go-runewidth v0.0.3/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
-github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
-github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU=
-github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
-github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
-github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643 h1:hLDRPB66XQT/8+wG9WsDpiCvZf1yKO7sz7scAjSlBa0=
-github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643/go.mod h1:43+3pMjjKimDBf5Kr4ZFNGbLql1zKkbImw+fZbw3geM=
-github.com/minio/highwayhash v1.0.1 h1:dZ6IIu8Z14VlC0VpfKofAhCy74wu/Qb5gcn52yWoz/0=
-github.com/minio/highwayhash v1.0.1/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY=
-github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc=
-github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
-github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
-github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
-github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI=
-github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg=
-github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY=
-github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
-github.com/mitchellh/mapstructure v1.1.2 h1:fmNYVwqnSfB9mZU6OS2O6GsXM+wcskZDuKQzvN1EDeE=
-github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
-github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
-github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
-github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
-github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
-github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs=
-github.com/mtibben/percent v0.2.1/go.mod h1:KG9uO+SZkUp+VkRHsCdYQV3XSZrrSpR3O9ibNBTZrns=
-github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
-github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
-github.com/naoina/go-stringutil v0.1.0/go.mod h1:XJ2SJL9jCtBh+P9q5btrd/Ylo8XwT/h1USek5+NqSA0=
-github.com/naoina/toml v0.1.2-0.20170918210437-9fafd6967416/go.mod h1:NBIhNtsFMo3G2szEBne+bO4gS192HuIYRqfvOWb4i1E=
-github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg=
-github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU=
-github.com/nats-io/nats-server/v2 v2.1.2/go.mod h1:Afk+wRZqkMQs/p45uXdrVLuab3gwv3Z8C4HTBu8GD/k=
-github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzEE/Zbp4w=
-github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w=
-github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w=
-github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c=
-github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
-github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
-github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs=
-github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA=
-github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
-github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo=
-github.com/olekukonko/tablewriter v0.0.1/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo=
-github.com/olekukonko/tablewriter v0.0.2-0.20190409134802-7e037d187b0c/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo=
-github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
-github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
-github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
-github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY=
-github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA=
-github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
-github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
-github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
-github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk=
-github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis=
-github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74=
-github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=
-github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=
-github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxSfWAKL3wpBW7V8scJMt8N8gnaMCS9E/cA=
-github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw=
-github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4=
-github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4=
-github.com/otiai10/copy v1.4.2/go.mod h1:XWfuS3CrI0R6IE0FbgHsEazaXO8G0LpMp9o8tos0x4E=
-github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95/go.mod h1:9qAhocn7zKJG+0mI8eUu6xqkFDYS2kb2saOteoSB3cE=
-github.com/otiai10/curr v1.0.0/go.mod h1:LskTG5wDwr8Rs+nNQ+1LlxRjAtTZZjtJW4rMXl6j4vs=
-github.com/otiai10/mint v1.3.0/go.mod h1:F5AjcsTsWUqX+Na9fpHb52P8pcRX2CI6A3ctIT91xUo=
-github.com/otiai10/mint v1.3.2/go.mod h1:/yxELlJQ0ufhjUwhshSj+wFjZ78CnZ48/1wtmBH1OTc=
-github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM=
-github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
-github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
-github.com/pborman/uuid v0.0.0-20170112150404-1b00554d8222/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34=
-github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k=
-github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
-github.com/pelletier/go-toml v1.8.0 h1:Keo9qb7iRJs2voHvunFtuuYFsbWeOBh8/P9v/kVMFtw=
-github.com/pelletier/go-toml v1.8.0/go.mod h1:D6yutnOGMveHEPV7VQOuvI/gXY61bv+9bAOTRnLElKs=
-github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac=
-github.com/peterh/liner v1.1.1-0.20190123174540-a2c9a5303de7/go.mod h1:CRroGNssyjTd/qIG2FyxByd2S8JEAZXBl4qUrZf8GS0=
-github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o=
-github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc=
-github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
-github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
-github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
-github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
-github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
-github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA=
-github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI=
-github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
-github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
-github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
-github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
-github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs=
-github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso=
-github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
-github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og=
-github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU=
-github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M=
-github.com/prometheus/client_golang v1.8.0 h1:zvJNkoCFAnYFNC24FV8nW4JdRJ3GIFcLbg65lL/JDcw=
-github.com/prometheus/client_golang v1.8.0/go.mod h1:O9VU6huf47PktckDQfMTX0Y8tY0/7TSWwj+ITvv0TnM=
-github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
-github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
-github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
-github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
-github.com/prometheus/client_model v0.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
-github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M=
-github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
-github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro=
-github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
-github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
-github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
-github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA=
-github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4=
-github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo=
-github.com/prometheus/common v0.14.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s=
-github.com/prometheus/common v0.15.0 h1:4fgOnadei3EZvgRwxJ7RMpG1k1pOZth5Pc13tyspaKM=
-github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s=
-github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
-github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
-github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
-github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
-github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A=
-github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU=
-github.com/prometheus/procfs v0.2.0 h1:wH4vA7pcjKuZzjF7lM8awk4fnuJO6idemZXoKnULUx4=
-github.com/prometheus/procfs v0.2.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU=
-github.com/prometheus/tsdb v0.6.2-0.20190402121629-4f204dcbc150/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
-github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
-github.com/rakyll/statik v0.1.7 h1:OF3QCZUuyPxuGEP7B4ypUa7sB/iHtqOTDYZXGM8KOdQ=
-github.com/rakyll/statik v0.1.7/go.mod h1:AlZONWzMtEnMs7W4e/1LURLiI49pIMmp6V9Unghqrcc=
-github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
-github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 h1:MkV+77GLUNo5oJ0jf870itWm3D0Sjh7+Za9gazKc5LQ=
-github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
-github.com/regen-network/cosmos-proto v0.3.1 h1:rV7iM4SSFAagvy8RiyhiACbWEGotmqzywPxOvwMdxcg=
-github.com/regen-network/cosmos-proto v0.3.1/go.mod h1:jO0sVX6a1B36nmE8C9xBFXpNwWejXC7QqCOnH3O0+YM=
-github.com/regen-network/protobuf v1.3.2-alpha.regen.4 h1:c9jEnU+xm6vqyrQe3M94UFWqiXxRIKKnqBOh2EACmBE=
-github.com/regen-network/protobuf v1.3.2-alpha.regen.4/go.mod h1:/J8/bR1T/NXyIdQDLUaq15LjNE83nRzkyrLAMcPewig=
-github.com/rjeczalik/notify v0.9.1/go.mod h1:rKwnCoCGeuQnwBtTSPL9Dad03Vh2n40ePRrjvIXnJho=
-github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
-github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
-github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
-github.com/rs/cors v0.0.0-20160617231935-a62a804a8a00/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU=
-github.com/rs/cors v1.7.0 h1:+88SsELBHx5r+hZ8TCkggzSstaWNbDvThkVK8H6f9ik=
-github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU=
-github.com/rs/xhandler v0.0.0-20160618193221-ed27b6fd6521/go.mod h1:RvLn4FgxWubrpZHtQLnOf6EwhN2hEMusxZOhcW9H3UQ=
-github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ=
-github.com/rs/zerolog v1.20.0 h1:38k9hgtUBdxFwE34yS8rTHmHBa4eN16E4DJlv177LNs=
-github.com/rs/zerolog v1.20.0/go.mod h1:IzD0RJ65iWH0w97OQQebJEvTZYvsCUm9WVLWBQrJRjo=
-github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
-github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
-github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
-github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E=
-github.com/sasha-s/go-deadlock v0.2.0/go.mod h1:StQn567HiB1fF2yJ44N9au7wOhrPS3iZqiDbRupzT10=
-github.com/sasha-s/go-deadlock v0.2.1-0.20190427202633-1595213edefa/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM=
-github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
-github.com/shirou/gopsutil v2.20.5+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA=
-github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
-github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
-github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
-github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88=
-github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
-github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
-github.com/snikch/goodman v0.0.0-20171125024755-10e37e294daa/go.mod h1:oJyF+mSPHbB5mVY2iO9KV3pTt/QbIkGaO8gQ2WrDbP4=
-github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM=
-github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY=
-github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
-github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
-github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ=
-github.com/spf13/afero v1.3.4 h1:8q6vk3hthlpb2SouZcnBVKboxWQWMDNF38bwholZrJc=
-github.com/spf13/afero v1.3.4/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I=
-github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
-github.com/spf13/cast v1.3.1 h1:nFm6S0SMdyzrzcmThSipiEubIDy8WEXKNZ0UOgiRpng=
-github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
-github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
-github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU=
-github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE=
-github.com/spf13/cobra v1.1.1 h1:KfztREH0tPxJJ+geloSLaAkaPkr4ki2Er5quFV1TDo4=
-github.com/spf13/cobra v1.1.1/go.mod h1:WnodtKOvamDL/PwE2M4iKs8aMDBZ5Q5klgD3qfVJQMI=
-github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo=
-github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk=
-github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo=
-github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
-github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
-github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
-github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
-github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s=
-github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE=
-github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg=
-github.com/spf13/viper v1.7.1 h1:pM5oEahlgWv/WnHXpgbKz7iLIxRf65tye2Ci+XFK5sk=
-github.com/spf13/viper v1.7.1/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg=
-github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q=
-github.com/steakknife/bloomfilter v0.0.0-20180922174646-6819c0d2a570/go.mod h1:8OR4w3TdeIHIh1g6EMY5p0gVNOovcWC+1vpc7naMuAw=
-github.com/steakknife/hamming v0.0.0-20180906055917-c99c65617cd3/go.mod h1:hpGUWaI9xL8pRQCTXQgocU38Qw1g0Us7n5PxxTwTCYU=
-github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw=
-github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw=
-github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI=
-github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
-github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
-github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE=
-github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
-github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
-github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
-github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
-github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
-github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
-github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
-github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s=
-github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
-github.com/syndtr/goleveldb v1.0.1-0.20200815110645-5c35d600f0ca h1:Ld/zXl5t4+D69SiV4JoN7kkfvJdOWlPpfxrzxpLMoUk=
-github.com/syndtr/goleveldb v1.0.1-0.20200815110645-5c35d600f0ca/go.mod h1:u2MKkTVTVJWe5D1rCvame8WqhBd88EuIwODJZ1VHCPM=
-github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c/go.mod h1:ahpPrc7HpcfEWDQRZEmnXMzHY03mLDYMCxeDzy46i+8=
-github.com/tendermint/btcd v0.1.1 h1:0VcxPfflS2zZ3RiOAHkBiFUcPvbtRj5O7zHmcJWHV7s=
-github.com/tendermint/btcd v0.1.1/go.mod h1:DC6/m53jtQzr/NFmMNEu0rxf18/ktVoVtMrnDD5pN+U=
-github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15 h1:hqAk8riJvK4RMWx1aInLzndwxKalgi5rTqgfXxOxbEI=
-github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15/go.mod h1:z4YtwM70uOnk8h0pjJYlj3zdYwi9l03By6iAIF5j/Pk=
-github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E=
-github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME=
-github.com/tendermint/tendermint v0.34.0-rc4/go.mod h1:yotsojf2C1QBOw4dZrTcxbyxmPUrT4hNuOQWX9XUwB4=
-github.com/tendermint/tendermint v0.34.0-rc6/go.mod h1:ugzyZO5foutZImv0Iyx/gOFCX6mjJTgbLHTwi17VDVg=
-github.com/tendermint/tendermint v0.34.0/go.mod h1:Aj3PIipBFSNO21r+Lq3TtzQ+uKESxkbA3yo/INM4QwQ=
-github.com/tendermint/tendermint v0.34.3 h1:9yEsf3WO5VAwPVwrmM+RffDMiijmNfWaBwNttHm0q5w=
-github.com/tendermint/tendermint v0.34.3/go.mod h1:h57vnXeOlrdvvNFCqPBSaOrpOivl+2swWEtlUAqStYE=
-github.com/tendermint/tendermint v0.34.4 h1:E7qkvFGx27d8ugVLiAY2iWP6DL5cep3l/mpTaWKHyBA=
-github.com/tendermint/tendermint v0.34.4/go.mod h1:JVuu3V1ZexOaZG8VJMRl8lnfrGw6hEB2TVnoUwKRbss=
-github.com/tendermint/tm-db v0.6.2/go.mod h1:GYtQ67SUvATOcoY8/+x6ylk8Qo02BQyLrAs+yAcLvGI=
-github.com/tendermint/tm-db v0.6.3 h1:ZkhQcKnB8/2jr5EaZwGndN4owkPsGezW2fSisS9zGbg=
-github.com/tendermint/tm-db v0.6.3/go.mod h1:lfA1dL9/Y/Y8wwyPp2NMLyn5P5Ptr/gvDFNWtrCWSf8=
-github.com/tendermint/tm-db v0.6.4 h1:3N2jlnYQkXNQclQwd/eKV/NzlqPlfK21cpRRIx80XXQ=
-github.com/tendermint/tm-db v0.6.4/go.mod h1:dptYhIpJ2M5kUuenLr+Yyf3zQOv1SgBZcl8/BmWlMBw=
-github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
-github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
-github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM=
-github.com/tyler-smith/go-bip39 v1.0.1-0.20181017060643-dbb3b84ba2ef/go.mod h1:sJ5fKU0s6JVwZjjcUEX2zFOnvq0ASQ2K9Zr6cf67kNs=
-github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc=
-github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0=
-github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA=
-github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
-github.com/wsddn/go-ecdh v0.0.0-20161211032359-48726bab9208/go.mod h1:IotVbo4F+mw0EzQ08zFqg7pK3FebNXpaMsRy2RT+Ees=
-github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
-github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
-github.com/zondax/hid v0.9.0 h1:eiT3P6vNxAEVxXMw66eZUAAnU2zD33JBkfG/EnfAKl8=
-github.com/zondax/hid v0.9.0/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM=
-go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
-go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
-go.etcd.io/bbolt v1.3.5/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ=
-go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg=
-go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk=
-go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk=
-go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
-go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
-go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
-go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
-go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
-go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
-go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
-go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4=
-go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA=
-go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
-go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM=
-golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
-golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
-golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
-golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
-golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
-golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
-golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
-golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
-golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
-golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
-golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
-golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
-golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
-golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
-golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
-golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
-golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
-golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
-golang.org/x/crypto v0.0.0-20201117144127-c1f2f97bffc9/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I=
-golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad h1:DN0cp81fZ3njFcrLCytUHRSUkqBjfTo4Tx9RJTWs0EY=
-golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I=
-golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
-golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
-golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
-golang.org/x/exp v0.0.0-20190731235908-ec7cb31e5a56/go.mod h1:JhuoJpWY28nO4Vef9tZUw9qufEGTyX1+7lmHxV5q5G4=
-golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek=
-golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY=
-golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw=
-golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
-golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
-golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
-golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
-golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
-golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
-golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
-golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
-golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
-golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
-golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o=
-golang.org/x/mobile v0.0.0-20200801112145-973feb4309de/go.mod h1:skQtrUTUwhdJvXM/2KKJzY8pDgNr9I/FOMqDVRPBUS4=
-golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
-golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY=
-golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
-golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
-golang.org/x/mod v0.1.1-0.20191209134235-331c550502dd/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
-golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20181011144130-49bb7cea24b1/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
-golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
-golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
-golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
-golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
-golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
-golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20191002035440-2ec189313ef0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
-golang.org/x/net v0.0.0-20200421231249-e086a090c8fd/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
-golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
-golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
-golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
-golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
-golang.org/x/net v0.0.0-20201021035429-f5854403a974 h1:IX6qOQeG5uLjB/hjjwjedwfjND0hgjPMMyO1RoIXQNI=
-golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
-golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
-golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
-golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
-golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
-golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20190130150945-aca44879d564/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200420163511-1957bb5e6d1f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200824131525-c12d262b63d8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211 h1:9UQO31fZ+0aKQOFldThf7BKPMJTiBfWycGh/u3UoO88=
-golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/term v0.0.0-20201117132131-f5c789dd3221 h1:/ZHdbVpdR/jk3g30/d4yUL0JU9kksj8+F/bnQUVLGDM=
-golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
-golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
-golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
-golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
-golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k=
-golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
-golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
-golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
-golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
-golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
-golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
-golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
-golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
-golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
-golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
-golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
-golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
-golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
-golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
-golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
-golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
-golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
-golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
-golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
-golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
-golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20190828213141-aed303cbaa74/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
-golang.org/x/tools v0.0.0-20200110213125-a7a6caa82ab2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
-golang.org/x/tools v0.0.0-20200117012304-6edc0a871e69/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
-golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
-golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
-golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
-golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
-golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
-google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk=
-google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE=
-google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M=
-google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
-google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
-google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
-google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
-google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
-google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
-google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
-google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0=
-google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
-google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
-google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
-google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
-google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
-google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
-google.golang.org/genproto v0.0.0-20190530194941-fb225487d101/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s=
-google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
-google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
-google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8=
-google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
-google.golang.org/genproto v0.0.0-20200324203455-a04cca1dde73/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
-google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
-google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
-google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
-google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
-google.golang.org/genproto v0.0.0-20201111145450-ac7456db90a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
-google.golang.org/genproto v0.0.0-20201119123407-9b1e624d6bc4/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
-google.golang.org/genproto v0.0.0-20210114201628-6edceaf6022f h1:izedQ6yVIc5mZsRuXzmSreCOlzI0lCU1HpG8yEdMiKw=
-google.golang.org/genproto v0.0.0-20210114201628-6edceaf6022f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
-google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
-google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
-google.golang.org/grpc v1.19.1/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
-google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM=
-google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
-google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
-google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
-google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
-google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
-google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
-google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
-google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
-google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
-google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60=
-google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk=
-google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
-google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
-google.golang.org/grpc v1.32.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
-google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0=
-google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc=
-google.golang.org/grpc v1.35.0 h1:TwIQcH3es+MojMVojxxfQ3l3OF2KzlRxML2xZq0kRo8=
-google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
-google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
-google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
-google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
-google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
-google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
-google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
-google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
-google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
-google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4=
-google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c=
-google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
-gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
-gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
-gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
-gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
-gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
-gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
-gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw=
-gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
-gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
-gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o=
-gopkg.in/ini.v1 v1.51.0 h1:AQvPpx3LzTDM0AjnIRlVFwFFGC+npRopjZxLJj6gdno=
-gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
-gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce/go.mod h1:5AcXVHNjg+BDxry382+8OKon8SEWiKktQR07RKPsv1c=
-gopkg.in/olebedev/go-duktape.v3 v3.0.0-20200619000410-60c24ae608a6/go.mod h1:uAJfkITjFhyEEuUfm7bsmCZRbW5WRq8s9EY8HZ6hCns=
-gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo=
-gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
-gopkg.in/urfave/cli.v1 v1.20.0/go.mod h1:vuBzUtMdQeixQj8LVd+/98pzhxNGQoyuPBlsXHOQNO0=
-gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI=
-gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74=
-gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
-gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
-gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
-gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
-gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw=
-honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
-honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
-honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
-honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
-honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
-honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
-rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
-sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
-sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU=
diff --git a/packages/plugin-agoric-app/package.json b/packages/plugin-agoric-app/package.json
deleted file mode 100644
index 669a386..0000000
--- a/packages/plugin-agoric-app/package.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "name": "@pledger/plugin-agoric-app",
- "version": "0.1.0",
- "description": "Pledger plugin for Agoric's cryptoeconomy",
- "repository": "https+git://github.com/agoric-labs/Pledger",
- "private": true,
- "workspaces": {
- "nohoist": [
- "**"
- ]
- },
- "scripts": {
- "build": "yarn build:common",
- "build:common": "patch-package&&node scripts/build-sdk.cjs",
- "build:electron": "yarn build:common&&electron-rebuild",
- "lint": "echo \"No linting configured\""
- },
- "keywords": [],
- "author": "Agoric",
- "license": "Apache-2.0",
- "dependencies": {
- "@agoric/cosmic-swingset": "^0.25.1",
- "agoric": "^0.11.2",
- "node-lmdb": "^0.9.4",
- "re2": "^1.15.6"
- },
- "devDependencies": {
- "electron": "~11.5.0",
- "electron-rebuild": "^2.0.3",
- "esm": "^3.2.25",
- "patch-package": "^6.2.2"
- }
-}
diff --git a/packages/plugin-agoric-app/patches/@agoric+cosmic-swingset+0.25.1.patch b/packages/plugin-agoric-app/patches/@agoric+cosmic-swingset+0.25.1.patch
deleted file mode 100644
index e093ffa..0000000
--- a/packages/plugin-agoric-app/patches/@agoric+cosmic-swingset+0.25.1.patch
+++ /dev/null
@@ -1,211 +0,0 @@
-diff --git a/node_modules/@agoric/cosmic-swingset/lib/ag-solo/access-token.js b/node_modules/@agoric/cosmic-swingset/lib/ag-solo/access-token.js
-index a712d1b..39b3afc 100644
---- a/node_modules/@agoric/cosmic-swingset/lib/ag-solo/access-token.js
-+++ b/node_modules/@agoric/cosmic-swingset/lib/ag-solo/access-token.js
-@@ -1,5 +1,6 @@
- import fs from 'fs';
- import crypto from 'crypto';
-+import os from 'os';
- import path from 'path';
-
- import { openSwingStore } from '@agoric/swing-store-simple';
-@@ -27,7 +28,7 @@ export function generateAccessToken({
-
- export async function getAccessToken(port) {
- // Ensure we're protected with a unique accessToken for this basedir.
-- const sharedStateDir = path.join(process.env.HOME || '', '.agoric');
-+ const sharedStateDir = path.join(os.homedir(), '.agoric');
- await fs.promises.mkdir(sharedStateDir, { mode: 0o700, recursive: true });
-
- // Ensure an access token exists.
-diff --git a/node_modules/@agoric/cosmic-swingset/lib/ag-solo/html/main.js b/node_modules/@agoric/cosmic-swingset/lib/ag-solo/html/main.js
-index fa4bdb6..3deef74 100644
---- a/node_modules/@agoric/cosmic-swingset/lib/ag-solo/html/main.js
-+++ b/node_modules/@agoric/cosmic-swingset/lib/ag-solo/html/main.js
-@@ -6,29 +6,48 @@ const RECONNECT_BACKOFF_SECONDS = 3;
- const resetFns = [];
- let inpBackground;
-
--// Fetch the access token from the window's URL.
--let accessTokenParams = `?${window.location.hash.slice(1)}`;
--let hasAccessToken = new URLSearchParams(accessTokenParams).get('accessToken');
--
--try {
-- if (hasAccessToken) {
-- // Store the access token for later use.
-- localStorage.setItem('accessTokenParams', accessTokenParams);
-- } else {
-- // Try reviving it from localStorage.
-- accessTokenParams = localStorage.getItem('accessTokenParams') || '?';
-- hasAccessToken = new URLSearchParams(accessTokenParams).get('accessToken');
-+let accessTokenParams;
-+let hasAccessToken;
-+
-+function getAccessToken() {
-+ // Fetch the access token from the window's URL.
-+ accessTokenParams = `?${window.location.hash.slice(1)}`;
-+ hasAccessToken = new URLSearchParams(accessTokenParams).get('accessToken');
-+
-+ try {
-+ if (hasAccessToken) {
-+ // Store the access token for later use.
-+ localStorage.setItem('accessTokenParams', accessTokenParams);
-+ } else {
-+ // Try reviving it from localStorage.
-+ accessTokenParams = localStorage.getItem('accessTokenParams') || '?';
-+ hasAccessToken = new URLSearchParams(accessTokenParams).get(
-+ 'accessToken',
-+ );
-+ }
-+ } catch (e) {
-+ console.log('Error fetching accessTokenParams', e);
- }
--} catch (e) {
-- console.log('Error fetching accessTokenParams', e);
--}
-
--// Now that we've captured it, clear out the access token from the URL bar.
--window.location.hash = '';
--window.addEventListener('hashchange', _ev => {
-- // Keep it clear.
-+ // Now that we've captured it, clear out the access token from the URL bar.
- window.location.hash = '';
--});
-+ window.addEventListener('hashchange', _ev => {
-+ // See if we should update the access token params.
-+ const atp = `?${window.location.hash.slice(1)}`;
-+ const hat = new URLSearchParams(atp).get('accessToken');
-+
-+ if (hat) {
-+ // We have new params, so replace them.
-+ accessTokenParams = atp;
-+ hasAccessToken = hat;
-+ localStorage.setItem('accessTokenParams', accessTokenParams);
-+ }
-+
-+ // Keep it clear.
-+ window.location.hash = '';
-+ });
-+}
-+getAccessToken();
-
- if (!hasAccessToken) {
- // This is friendly advice to the user who doesn't know.
-diff --git a/node_modules/@agoric/cosmic-swingset/lib/ag-solo/init-basedir.js b/node_modules/@agoric/cosmic-swingset/lib/ag-solo/init-basedir.js
-index 6a17445..530fdab 100644
---- a/node_modules/@agoric/cosmic-swingset/lib/ag-solo/init-basedir.js
-+++ b/node_modules/@agoric/cosmic-swingset/lib/ag-solo/init-basedir.js
-@@ -2,6 +2,7 @@ import fs from 'fs';
- import path from 'path';
- import { execFileSync } from 'child_process';
-
-+import { assert, details as X } from '@agoric/assert';
- import anylogger from 'anylogger';
-
- const log = anylogger('ag-solo:init');
-@@ -20,17 +21,15 @@ export default function initBasedir(
- options.wallet = wallet;
-
- const here = __dirname;
-- try {
-- fs.mkdirSync(basedir, 0o700);
-- } catch (e) {
-- if (!fs.existsSync(path.join(basedir, 'ag-cosmos-helper-address'))) {
-- log.error(
-- `unable to create basedir ${basedir}, it must not already exist`,
-- );
-- throw e;
-- }
-+ if (
-+ fs.existsSync(basedir) &&
-+ !fs.existsSync(path.join(basedir, 'ag-cosmos-helper-address'))
-+ ) {
-+ assert.fail(X`${basedir} must not already exist`);
- }
-
-+ fs.mkdirSync(basedir, { mode: 0o700, recursive: true });
-+
- const connections = [{ type: 'http', port: webport, host: webhost }];
- fs.writeFileSync(
- path.join(basedir, 'connections.json'),
-diff --git a/node_modules/@agoric/cosmic-swingset/lib/ag-solo/start.js b/node_modules/@agoric/cosmic-swingset/lib/ag-solo/start.js
-index 06b4052..5f9dd5e 100644
---- a/node_modules/@agoric/cosmic-swingset/lib/ag-solo/start.js
-+++ b/node_modules/@agoric/cosmic-swingset/lib/ag-solo/start.js
-@@ -1,7 +1,7 @@
- import fs from 'fs';
- import path from 'path';
- import temp from 'temp';
--import { exec } from 'child_process';
-+import { fork } from 'child_process';
- import { promisify } from 'util';
- // import { createHash } from 'crypto';
-
-@@ -380,28 +380,35 @@ export default async function start(basedir, argv) {
- .map(dep => path.resolve(agWallet, dep))
- .join(' ');
-
-- const agoricCli = require.resolve('.bin/agoric');
-+ const agoricCli = require.resolve('agoric/bin/agoric');
-
- // Use the same verbosity as our caller did for us.
- let verbosity;
- if (process.env.DEBUG === undefined) {
-- verbosity = '';
-+ verbosity = [];
- } else if (process.env.DEBUG.includes('agoric')) {
-- verbosity = ' -vv';
-+ verbosity = ['-vv'];
- } else {
-- verbosity = ' -v';
-+ verbosity = ['-v'];
- }
-
-- // Launch the agoric wallet deploys (if any).
-- const cp = exec(
-- `${agoricCli} deploy${verbosity} --provide=wallet --hostport=${hostport} ${agWalletDeploy}`,
-+ // Launch the agoric wallet deploys (if any). The assumption is that the CLI
-+ // runs correctly under the same version of the JS engine we're currently
-+ // using.
-+ fork(
-+ agoricCli,
-+ [
-+ `deploy`,
-+ ...verbosity,
-+ `--provide=wallet`,
-+ `--hostport=${hostport}`,
-+ `${agWalletDeploy}`,
-+ ],
-+ { stdio: 'inherit' },
- err => {
- if (err) {
- console.error(err);
- }
- },
- );
--
-- cp.stderr.pipe(process.stderr);
-- cp.stdout.pipe(process.stdout);
- }
-diff --git a/node_modules/@agoric/cosmic-swingset/lib/chain-main.js b/node_modules/@agoric/cosmic-swingset/lib/chain-main.js
-index 42befb4..e7cb807 100644
---- a/node_modules/@agoric/cosmic-swingset/lib/chain-main.js
-+++ b/node_modules/@agoric/cosmic-swingset/lib/chain-main.js
-@@ -5,6 +5,8 @@ import {
- } from '@agoric/swingset-vat/src/devices/mailbox';
-
- import { assert, details as X } from '@agoric/assert';
-+import os from 'os';
-+
- import { launch } from './launch-chain';
- import makeBlockManager from './block-manager';
- import { getMeterProvider } from './kernel-stats';
-@@ -103,7 +105,7 @@ export default async function main(progname, args, { path, env, agcc }) {
-
- // We try to find the actual cosmos state directory (default=~/.ag-chain-cosmos), which
- // is better than scribbling into the current directory.
-- const cosmosHome = getFlagValue('home', `${env.HOME}/.ag-chain-cosmos`);
-+ const cosmosHome = getFlagValue('home', `${os.homedir()}/.ag-chain-cosmos`);
- const stateDBDir = `${cosmosHome}/data/ag-cosmos-chain-state`;
-
- // console.log('Have AG_COSMOS', agcc);
diff --git a/packages/plugin-agoric-app/patches/@agoric+dapp-svelte-wallet+0.6.2.patch b/packages/plugin-agoric-app/patches/@agoric+dapp-svelte-wallet+0.6.2.patch
deleted file mode 100644
index 1e65140..0000000
--- a/packages/plugin-agoric-app/patches/@agoric+dapp-svelte-wallet+0.6.2.patch
+++ /dev/null
@@ -1,8 +0,0 @@
-diff --git a/node_modules/@agoric/dapp-svelte-wallet/ui/public/wallet/build/bundle.js b/node_modules/@agoric/dapp-svelte-wallet/ui/public/wallet/build/bundle.js
-index a141e70..154b9c5 100644
---- a/node_modules/@agoric/dapp-svelte-wallet/ui/public/wallet/build/bundle.js
-+++ b/node_modules/@agoric/dapp-svelte-wallet/ui/public/wallet/build/bundle.js
-@@ -1,2 +1,2 @@
--var app=function(){"use strict";const{assign:e,create:t,defineProperties:n,entries:r,freeze:o,getOwnPropertyDescriptor:s,getOwnPropertyDescriptors:u,getOwnPropertyNames:a,getPrototypeOf:i,is:l,isExtensible:c,keys:d,prototype:p,seal:f,setPrototypeOf:m,values:$}=Object,g=Object.fromEntries||(e=>{const t={};for(const[n,r]of e)t[n]=r;return t}),D=(e,t,r)=>n(e,{[t]:r}),{apply:y,construct:h,get:C,set:b}=Reflect,{isArray:E,prototype:v}=Array,{revocable:A}=Proxy,{prototype:F}=RegExp,{prototype:w}=String,{prototype:x}=WeakMap,B=e=>(t,...n)=>y(e,t,n),P=B(p.hasOwnProperty),S=(B(v.filter),B(v.join)),k=(B(v.push),B(v.pop)),I=B(v.includes),T=B(F.test),N=(B(w.match),B(w.search)),O=B(w.slice),_=B(w.split),R=(B(x.get),B(x.set),B(x.has),o({__proto__:null}));let j;function M(){if(void 0===j){const e=new WeakSet,t=Function.prototype.toString,n={toString(){const n=y(t,this,[]);return n.endsWith(") { [native code] }")||!e.has(this)?n:`function ${this.name}() { [native code] }`}};D(Function.prototype,"toString",{value:n.toString}),j=o(t=>e.add(t))}return j}const U={Infinity:1/0,NaN:NaN,undefined:void 0},L={isFinite:"isFinite",isNaN:"isNaN",parseFloat:"parseFloat",parseInt:"parseInt",decodeURI:"decodeURI",decodeURIComponent:"decodeURIComponent",encodeURI:"encodeURI",encodeURIComponent:"encodeURIComponent",Array:"Array",ArrayBuffer:"ArrayBuffer",BigInt:"BigInt",BigInt64Array:"BigInt64Array",BigUint64Array:"BigUint64Array",Boolean:"Boolean",DataView:"DataView",EvalError:"EvalError",Float32Array:"Float32Array",Float64Array:"Float64Array",Int8Array:"Int8Array",Int16Array:"Int16Array",Int32Array:"Int32Array",Map:"Map",Number:"Number",Object:"Object",Promise:"Promise",Proxy:"Proxy",RangeError:"RangeError",ReferenceError:"ReferenceError",Set:"Set",String:"String",Symbol:"Symbol",SyntaxError:"SyntaxError",TypeError:"TypeError",Uint8Array:"Uint8Array",Uint8ClampedArray:"Uint8ClampedArray",Uint16Array:"Uint16Array",Uint32Array:"Uint32Array",URIError:"URIError",WeakMap:"WeakMap",WeakSet:"WeakSet",JSON:"JSON",Reflect:"Reflect",escape:"escape",unescape:"unescape",lockdown:"lockdown",harden:"harden",HandledPromise:"HandledPromise",StaticModuleRecord:"StaticModuleRecord"},z={Date:"%InitialDate%",Error:"%InitialError%",RegExp:"%InitialRegExp%",Math:"%InitialMath%",getStackString:"%InitialGetStackString%"},G={Date:"%SharedDate%",Error:"%SharedError%",RegExp:"%SharedRegExp%",Math:"%SharedMath%"},W=[EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError],H={"[[Proto]]":"%FunctionPrototype%",length:"number",name:"string"},q=H,V={get:q,set:"undefined"},J={get:q,set:q};function K(e){return e===V||e===J}function Y(e){return{"[[Proto]]":"%SharedError%",prototype:e}}function Z(e){return{"[[Proto]]":"%ErrorPrototype%",constructor:e,message:"string",name:"string",toString:!1}}function X(e){return{"[[Proto]]":"%TypedArray%",BYTES_PER_ELEMENT:"number",prototype:e}}function Q(e){return{"[[Proto]]":"%TypedArrayPrototype%",BYTES_PER_ELEMENT:"number",constructor:e}}const ee={E:"number",LN10:"number",LN2:"number",LOG10E:"number",LOG2E:"number",PI:"number",SQRT1_2:"number",SQRT2:"number","@@toStringTag":"string",abs:q,acos:q,acosh:q,asin:q,asinh:q,atan:q,atanh:q,atan2:q,cbrt:q,ceil:q,clz32:q,cos:q,cosh:q,exp:q,expm1:q,floor:q,fround:q,hypot:q,imul:q,log:q,log1p:q,log10:q,log2:q,max:q,min:q,pow:q,round:q,sign:q,sin:q,sinh:q,sqrt:q,tan:q,tanh:q,trunc:q,idiv:!1,idivmod:!1,imod:!1,imuldiv:!1,irem:!1,mod:!1},te={"[[Proto]]":null,"%ThrowTypeError%":q,Infinity:"number",NaN:"number",undefined:"undefined","%UniqueEval%":q,isFinite:q,isNaN:q,parseFloat:q,parseInt:q,decodeURI:q,decodeURIComponent:q,encodeURI:q,encodeURIComponent:q,Object:{"[[Proto]]":"%FunctionPrototype%",assign:q,create:q,defineProperties:q,defineProperty:q,entries:q,freeze:q,fromEntries:q,getOwnPropertyDescriptor:q,getOwnPropertyDescriptors:q,getOwnPropertyNames:q,getOwnPropertySymbols:q,getPrototypeOf:q,is:q,isExtensible:q,isFrozen:q,isSealed:q,keys:q,preventExtensions:q,prototype:"%ObjectPrototype%",seal:q,setPrototypeOf:q,values:q},"%ObjectPrototype%":{"[[Proto]]":null,constructor:"Object",hasOwnProperty:q,isPrototypeOf:q,propertyIsEnumerable:q,toLocaleString:q,toString:q,valueOf:q,"--proto--":J,__defineGetter__:q,__defineSetter__:q,__lookupGetter__:q,__lookupSetter__:q},"%UniqueFunction%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%FunctionPrototype%"},"%InertFunction%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%FunctionPrototype%"},"%FunctionPrototype%":{apply:q,bind:q,call:q,constructor:"%InertFunction%",toString:q,"@@hasInstance":q,caller:!1,arguments:!1},Boolean:{"[[Proto]]":"%FunctionPrototype%",prototype:"%BooleanPrototype%"},"%BooleanPrototype%":{constructor:"Boolean",toString:q,valueOf:q},Symbol:{"[[Proto]]":"%FunctionPrototype%",asyncIterator:"symbol",for:q,hasInstance:"symbol",isConcatSpreadable:"symbol",iterator:"symbol",keyFor:q,match:"symbol",matchAll:"symbol",prototype:"%SymbolPrototype%",replace:"symbol",search:"symbol",species:"symbol",split:"symbol",toPrimitive:"symbol",toStringTag:"symbol",unscopables:"symbol"},"%SymbolPrototype%":{constructor:"Symbol",description:V,toString:q,valueOf:q,"@@toPrimitive":q,"@@toStringTag":"string"},"%InitialError%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%ErrorPrototype%",captureStackTrace:q,stackTraceLimit:J,prepareStackTrace:J},"%SharedError%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%ErrorPrototype%",captureStackTrace:q,stackTraceLimit:J,prepareStackTrace:J},"%ErrorPrototype%":{constructor:"%SharedError%",message:"string",name:"string",toString:q},EvalError:Y("%EvalErrorPrototype%"),RangeError:Y("%RangeErrorPrototype%"),ReferenceError:Y("%ReferenceErrorPrototype%"),SyntaxError:Y("%SyntaxErrorPrototype%"),TypeError:Y("%TypeErrorPrototype%"),URIError:Y("%URIErrorPrototype%"),"%EvalErrorPrototype%":Z("EvalError"),"%RangeErrorPrototype%":Z("RangeError"),"%ReferenceErrorPrototype%":Z("ReferenceError"),"%SyntaxErrorPrototype%":Z("SyntaxError"),"%TypeErrorPrototype%":Z("TypeError"),"%URIErrorPrototype%":Z("URIError"),Number:{"[[Proto]]":"%FunctionPrototype%",EPSILON:"number",isFinite:q,isInteger:q,isNaN:q,isSafeInteger:q,MAX_SAFE_INTEGER:"number",MAX_VALUE:"number",MIN_SAFE_INTEGER:"number",MIN_VALUE:"number",NaN:"number",NEGATIVE_INFINITY:"number",parseFloat:q,parseInt:q,POSITIVE_INFINITY:"number",prototype:"%NumberPrototype%"},"%NumberPrototype%":{constructor:"Number",toExponential:q,toFixed:q,toLocaleString:q,toPrecision:q,toString:q,valueOf:q},BigInt:{"[[Proto]]":"%FunctionPrototype%",asIntN:q,asUintN:q,prototype:"%BigIntPrototype%",bitLength:!1,fromArrayBuffer:!1},"%BigIntPrototype%":{constructor:"BigInt",toLocaleString:q,toString:q,valueOf:q,"@@toStringTag":"string"},"%InitialMath%":{...ee,random:q},"%SharedMath%":ee,"%InitialDate%":{"[[Proto]]":"%FunctionPrototype%",now:q,parse:q,prototype:"%DatePrototype%",UTC:q},"%SharedDate%":{"[[Proto]]":"%FunctionPrototype%",now:q,parse:q,prototype:"%DatePrototype%",UTC:q},"%DatePrototype%":{constructor:"%SharedDate%",getDate:q,getDay:q,getFullYear:q,getHours:q,getMilliseconds:q,getMinutes:q,getMonth:q,getSeconds:q,getTime:q,getTimezoneOffset:q,getUTCDate:q,getUTCDay:q,getUTCFullYear:q,getUTCHours:q,getUTCMilliseconds:q,getUTCMinutes:q,getUTCMonth:q,getUTCSeconds:q,setDate:q,setFullYear:q,setHours:q,setMilliseconds:q,setMinutes:q,setMonth:q,setSeconds:q,setTime:q,setUTCDate:q,setUTCFullYear:q,setUTCHours:q,setUTCMilliseconds:q,setUTCMinutes:q,setUTCMonth:q,setUTCSeconds:q,toDateString:q,toISOString:q,toJSON:q,toLocaleDateString:q,toLocaleString:q,toLocaleTimeString:q,toString:q,toTimeString:q,toUTCString:q,valueOf:q,"@@toPrimitive":q,getYear:q,setYear:q,toGMTString:q},String:{"[[Proto]]":"%FunctionPrototype%",fromCharCode:q,fromCodePoint:q,prototype:"%StringPrototype%",raw:q,fromArrayBuffer:!1},"%StringPrototype%":{length:"number",charAt:q,charCodeAt:q,codePointAt:q,concat:q,constructor:"String",endsWith:q,includes:q,indexOf:q,lastIndexOf:q,localeCompare:q,match:q,matchAll:q,normalize:q,padEnd:q,padStart:q,repeat:q,replace:q,replaceAll:q,search:q,slice:q,split:q,startsWith:q,substring:q,toLocaleLowerCase:q,toLocaleUpperCase:q,toLowerCase:q,toString:q,toUpperCase:q,trim:q,trimEnd:q,trimStart:q,valueOf:q,"@@iterator":q,substr:q,anchor:q,big:q,blink:q,bold:q,fixed:q,fontcolor:q,fontsize:q,italics:q,link:q,small:q,strike:q,sub:q,sup:q,trimLeft:q,trimRight:q,compare:!1},"%StringIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:q,"@@toStringTag":"string"},"%InitialRegExp%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%RegExpPrototype%","@@species":V,input:!1,$_:!1,lastMatch:!1,"$&":!1,lastParen:!1,"$+":!1,leftContext:!1,"$`":!1,rightContext:!1,"$'":!1,$1:!1,$2:!1,$3:!1,$4:!1,$5:!1,$6:!1,$7:!1,$8:!1,$9:!1},"%SharedRegExp%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%RegExpPrototype%","@@species":V},"%RegExpPrototype%":{constructor:"%SharedRegExp%",exec:q,dotAll:V,flags:V,global:V,ignoreCase:V,"@@match":q,"@@matchAll":q,multiline:V,"@@replace":q,"@@search":q,source:V,"@@split":q,sticky:V,test:q,toString:q,unicode:V,compile:!1},"%RegExpStringIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:q,"@@toStringTag":"string"},Array:{"[[Proto]]":"%FunctionPrototype%",from:q,isArray:q,of:q,prototype:"%ArrayPrototype%","@@species":V},"%ArrayPrototype%":{length:"number",concat:q,constructor:"Array",copyWithin:q,entries:q,every:q,fill:q,filter:q,find:q,findIndex:q,flat:q,flatMap:q,forEach:q,includes:q,indexOf:q,join:q,keys:q,lastIndexOf:q,map:q,pop:q,push:q,reduce:q,reduceRight:q,reverse:q,shift:q,slice:q,some:q,sort:q,splice:q,toLocaleString:q,toString:q,unshift:q,values:q,"@@iterator":q,"@@unscopables":{"[[Proto]]":null,copyWithin:"boolean",entries:"boolean",fill:"boolean",find:"boolean",findIndex:"boolean",flat:"boolean",flatMap:"boolean",includes:"boolean",keys:"boolean",values:"boolean"}},"%ArrayIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:q,"@@toStringTag":"string"},"%TypedArray%":{"[[Proto]]":"%FunctionPrototype%",from:q,of:q,prototype:"%TypedArrayPrototype%","@@species":V},"%TypedArrayPrototype%":{buffer:V,byteLength:V,byteOffset:V,constructor:"%TypedArray%",copyWithin:q,entries:q,every:q,fill:q,filter:q,find:q,findIndex:q,forEach:q,includes:q,indexOf:q,join:q,keys:q,lastIndexOf:q,length:V,map:q,reduce:q,reduceRight:q,reverse:q,set:q,slice:q,some:q,sort:q,subarray:q,toLocaleString:q,toString:q,values:q,"@@iterator":q,"@@toStringTag":V},BigInt64Array:X("%BigInt64ArrayPrototype%"),BigUint64Array:X("%BigUint64ArrayPrototype%"),Float32Array:X("%Float32ArrayPrototype%"),Float64Array:X("%Float64ArrayPrototype%"),Int16Array:X("%Int16ArrayPrototype%"),Int32Array:X("%Int32ArrayPrototype%"),Int8Array:X("%Int8ArrayPrototype%"),Uint16Array:X("%Uint16ArrayPrototype%"),Uint32Array:X("%Uint32ArrayPrototype%"),Uint8Array:X("%Uint8ArrayPrototype%"),Uint8ClampedArray:X("%Uint8ClampedArrayPrototype%"),"%BigInt64ArrayPrototype%":Q("BigInt64Array"),"%BigUint64ArrayPrototype%":Q("BigUint64Array"),"%Float32ArrayPrototype%":Q("Float32Array"),"%Float64ArrayPrototype%":Q("Float64Array"),"%Int16ArrayPrototype%":Q("Int16Array"),"%Int32ArrayPrototype%":Q("Int32Array"),"%Int8ArrayPrototype%":Q("Int8Array"),"%Uint16ArrayPrototype%":Q("Uint16Array"),"%Uint32ArrayPrototype%":Q("Uint32Array"),"%Uint8ArrayPrototype%":Q("Uint8Array"),"%Uint8ClampedArrayPrototype%":Q("Uint8ClampedArray"),Map:{"[[Proto]]":"%FunctionPrototype%","@@species":V,prototype:"%MapPrototype%"},"%MapPrototype%":{clear:q,constructor:"Map",delete:q,entries:q,forEach:q,get:q,has:q,keys:q,set:q,size:V,values:q,"@@iterator":q,"@@toStringTag":"string"},"%MapIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:q,"@@toStringTag":"string"},Set:{"[[Proto]]":"%FunctionPrototype%",prototype:"%SetPrototype%","@@species":V},"%SetPrototype%":{add:q,clear:q,constructor:"Set",delete:q,entries:q,forEach:q,has:q,keys:q,size:V,values:q,"@@iterator":q,"@@toStringTag":"string"},"%SetIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:q,"@@toStringTag":"string"},WeakMap:{"[[Proto]]":"%FunctionPrototype%",prototype:"%WeakMapPrototype%"},"%WeakMapPrototype%":{constructor:"WeakMap",delete:q,get:q,has:q,set:q,"@@toStringTag":"string"},WeakSet:{"[[Proto]]":"%FunctionPrototype%",prototype:"%WeakSetPrototype%"},"%WeakSetPrototype%":{add:q,constructor:"WeakSet",delete:q,has:q,"@@toStringTag":"string"},ArrayBuffer:{"[[Proto]]":"%FunctionPrototype%",isView:q,prototype:"%ArrayBufferPrototype%","@@species":V,fromString:!1,fromBigInt:!1},"%ArrayBufferPrototype%":{byteLength:V,constructor:"ArrayBuffer",slice:q,"@@toStringTag":"string",concat:!1},SharedArrayBuffer:!1,"%SharedArrayBufferPrototype%":!1,DataView:{"[[Proto]]":"%FunctionPrototype%",prototype:"%DataViewPrototype%"},"%DataViewPrototype%":{buffer:V,byteLength:V,byteOffset:V,constructor:"DataView",getBigInt64:q,getBigUint64:q,getFloat32:q,getFloat64:q,getInt8:q,getInt16:q,getInt32:q,getUint8:q,getUint16:q,getUint32:q,setBigInt64:q,setBigUint64:q,setFloat32:q,setFloat64:q,setInt8:q,setInt16:q,setInt32:q,setUint8:q,setUint16:q,setUint32:q,"@@toStringTag":"string"},Atomics:!1,JSON:{parse:q,stringify:q,"@@toStringTag":"string"},"%IteratorPrototype%":{"@@iterator":q},"%AsyncIteratorPrototype%":{"@@asyncIterator":q},"%InertGeneratorFunction%":{"[[Proto]]":"%InertFunction%",prototype:"%Generator%"},"%Generator%":{"[[Proto]]":"%FunctionPrototype%",constructor:"%InertGeneratorFunction%",prototype:"%GeneratorPrototype%","@@toStringTag":"string"},"%InertAsyncGeneratorFunction%":{"[[Proto]]":"%InertFunction%",prototype:"%AsyncGenerator%"},"%AsyncGenerator%":{"[[Proto]]":"%FunctionPrototype%",constructor:"%InertAsyncGeneratorFunction%",prototype:"%AsyncGeneratorPrototype%","@@toStringTag":"string"},"%GeneratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",constructor:"%Generator%",next:q,return:q,throw:q,"@@toStringTag":"string"},"%AsyncGeneratorPrototype%":{"[[Proto]]":"%AsyncIteratorPrototype%",constructor:"%AsyncGenerator%",next:q,return:q,throw:q,"@@toStringTag":"string"},HandledPromise:{"[[Proto]]":"Promise",applyFunction:q,applyFunctionSendOnly:q,applyMethod:q,applyMethodSendOnly:q,get:q,getSendOnly:q,prototype:"%PromisePrototype%",resolve:q},Promise:{"[[Proto]]":"%FunctionPrototype%",all:q,allSettled:q,any:!1,prototype:"%PromisePrototype%",race:q,reject:q,resolve:q,"@@species":V},"%PromisePrototype%":{catch:q,constructor:"Promise",finally:q,then:q,"@@toStringTag":"string"},"%InertAsyncFunction%":{"[[Proto]]":"%InertFunction%",prototype:"%AsyncFunctionPrototype%"},"%AsyncFunctionPrototype%":{"[[Proto]]":"%FunctionPrototype%",constructor:"%InertAsyncFunction%","@@toStringTag":"string"},Reflect:{apply:q,construct:q,defineProperty:q,deleteProperty:q,get:q,getOwnPropertyDescriptor:q,getPrototypeOf:q,has:q,isExtensible:q,ownKeys:q,preventExtensions:q,set:q,setPrototypeOf:q,"@@toStringTag":"string"},Proxy:{"[[Proto]]":"%FunctionPrototype%",revocable:q},escape:q,unescape:q,"%UniqueCompartment%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%CompartmentPrototype%",toString:q},"%InertCompartment%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%CompartmentPrototype%",toString:q},"%CompartmentPrototype%":{constructor:"%InertCompartment%",evaluate:q,globalThis:V,name:V,toString:q},lockdown:q,harden:q,"%InitialGetStackString%":q};function ne(e,t,n){if(P(e,t)){const r=s(e,t);if(!Object.is(r.value,n.value)||r.get!==n.get||r.set!==n.set||r.writable!==n.writable||r.enumerable!==n.enumerable||r.configurable!==n.configurable)throw new Error("Conflicting definitions of "+t)}D(e,t,n)}function re(e,t){const n={__proto__:null};for(const[o,s]of r(t))P(e,o)&&(n[s]=e[o]);return n}function oe(){const e={__proto__:null};let t;const n={addIntrinsics(t){!function(e,t){for(const[n,o]of r(t))ne(e,n,o)}(e,u(t))},completePrototypes(){for(const[t,n]of r(e)){if(n!==Object(n))continue;if(!P(n,"prototype"))continue;const r=te[t];if("object"!=typeof r)throw new Error("Expected permit object at whitelist."+t);const o=r.prototype;if(!o)throw new Error(t+".prototype property not whitelisted");if("string"!=typeof o||!P(te,o))throw new Error(`Unrecognized ${t}.prototype whitelist entry`);const s=n.prototype;if(P(e,o)){if(e[o]!==s)throw new Error("Conflicting bindings of "+o)}else e[o]=s}},finalIntrinsics:()=>(o(e),t=new WeakSet($(e).filter(e=>"function"==typeof e)),e),isPseudoNative(e){if(!t)throw new Error("isPseudoNative can only be called after finalIntrinsics");return t.has(e)}};return n.addIntrinsics(U),n.addIntrinsics(re(globalThis,L)),n}const se=function(e={},t={},n={}){throw new TypeError("Not available")};function ue(e){return i(e).constructor}const{freeze:ae,getOwnPropertyDescriptors:ie,getPrototypeOf:le}=Object,{ownKeys:ce}=Reflect;const{apply:de,ownKeys:pe}=Reflect,fe=(e=>(t,...n)=>de(e,t,n))(Object.prototype.hasOwnProperty);function me(e,t){if("string"==typeof t)return t;if("symbol"==typeof t)return"@@"+t.toString().slice(14,-1);throw new TypeError(`Unexpected property name type ${e} ${t}`)}function $e(e,t){const n=["undefined","boolean","number","string","symbol"];function r(t,r,o,s){if("object"==typeof s)return a(t,r,s),!0;if(!1===s)return!1;if("string"==typeof s)if("prototype"===o||"constructor"===o){if(fe(e,s)){if(r!==e[s])throw new TypeError("Does not match whitelist "+t);return!0}}else if(n.includes(s)){if(typeof r!==s)throw new TypeError(`At ${t} expected ${s} not ${typeof r}`);return!0}throw new TypeError(`Unexpected whitelist permit ${s} at ${t}`)}function o(e,t,n,o){const u=s(t,n);if(fe(u,"value")){if(K(o))throw new TypeError("Accessor expected at "+e);return r(e,u.value,n,o)}if(!K(o))throw new TypeError("Accessor not expected at "+e);return r(e+"",u.get,n,o.get)&&r(e+"",u.set,n,o.set)}function u(e,n,r){const o="__proto__"===r?"--proto--":r;return fe(n,o)?n[o]:"function"==typeof e&&(t(e),fe(H,o))?H[o]:void 0}function a(t,n,r){if(void 0===n)return;!function(t,n,r){if(n!==Object(n))throw new TypeError(`Object expected: ${t}, ${n}, ${r}`);const o=i(n);if(null!==o||null!==r){if(void 0!==r&&"string"!=typeof r)throw new TypeError(`Malformed whitelist permit ${t}.__proto__`);if(o!==e[r||"%ObjectPrototype%"])throw new Error(`Unexpected intrinsic ${t}.__proto__ at ${r}`)}}(t,n,r["[[Proto]]"]);for(const e of pe(n)){const s=me(t,e),a=`${t}.${s}`,i=u(n,r,s);i&&o(a,n,e,i)||(!1!==i&&console.log("Removing "+a),delete n[e])}}a("intrinsics",e,te)}const ge={"%ObjectPrototype%":{constructor:!0,hasOwnProperty:!0,toString:!0,valueOf:!0},"%ArrayPrototype%":{toString:!0},"%FunctionPrototype%":{constructor:!0,bind:!0,toString:!0},"%ErrorPrototype%":{constructor:!0,message:!0,name:!0,toString:!0},"%TypeErrorPrototype%":{constructor:!0,message:!0,name:!0},"%SyntaxErrorPrototype%":{message:!0},"%RangeErrorPrototype%":{message:!0},"%URIErrorPrototype%":{message:!0},"%EvalErrorPrototype%":{message:!0},"%ReferenceErrorPrototype%":{message:!0},"%PromisePrototype%":{constructor:!0},"%TypedArrayPrototype%":{toString:!0},"%Generator%":{constructor:!0,name:!0,toString:!0},"%IteratorPrototype%":{toString:!0}},De={"%ObjectPrototype%":{toString:!0},"%FunctionPrototype%":{toString:!0},"%ErrorPrototype%":{name:!0}},{ownKeys:ye}=Reflect;function he(e){return null!==e&&"object"==typeof e}const Ce=e=>(e=""+e).length>=1&&"aeiouAEIOU".includes(e[0])?"an "+e:"a "+e;o(Ce);const be=e=>{const t=new Set;return JSON.stringify(e,(e,n)=>{if("object"==typeof n&&null!==n){if(t.has(n))return"<**seen**>";t.add(n)}return n})};o(be);const Ee=new WeakMap,ve=e=>{const t=o({toString:o(()=>be(e))});return Ee.set(t,e),t};o(ve);const Ae=new WeakMap,Fe=(e,...t)=>{const n=o({__proto__:null});return Ae.set(n,{template:e,args:t}),n};o(Fe);const we=({template:e,args:t})=>{const n=[e[0]];for(let r=0;r{"string"==typeof e&&(e=Fe([e]));const n=Ae.get(e);if(void 0===n)throw new Error("unrecognized details "+e);const r=new t((({template:e,args:t})=>{const n=[e[0]];for(let r=0;r{"string"==typeof t&&(t=Fe([t]));const n=Ae.get(t);if(void 0===n)throw new Error("unrecognized details "+t);const r=we(n),o=Se.get(e);if(void 0!==o)for(const t of o)t(e,r);else{const t=Pe.get(e);void 0!==t?t.push(r):Pe.set(e,[r])}};o(ke);const Ie={getStackString:globalThis.getStackString||(e=>{if(!("stack"in e))return"";const t=""+e.stack,n=t.indexOf("\n");return t.startsWith(" ")||-1===n?t:t.slice(n+1)}),takeMessageLogArgs:e=>{const t=xe.get(e);return xe.delete(e),t},takeNoteLogArgsArray:(e,t)=>{const n=Pe.get(e);if(Pe.delete(e),void 0!==t){const n=Se.get(e);n?n.push(t):Se.set(e,[t])}return n||[]}};o(Ie);const Te=t=>{const n=(e=Fe`Assert failed`,n=Error)=>{const r=Be(e,n);throw void 0!==t&&t(r),r};function r(e,t=Fe`Check failed`,r=Error){if(!e)throw n(t,r)}o(n);const s=(e,t,n=Fe`Expected ${e} is same as ${t}`,o=RangeError)=>{r(l(e,t),n,o)};o(s);const u=(e,t,n)=>{r("string"==typeof t,Fe`${ve(t)} must be a string`),void 0===n&&(n=Fe([""," must be "+Ce(t)],e)),s(typeof e,t,n,TypeError)};o(u);const a=e(r,{error:Be,fail:n,equal:s,typeof:u,string:(e,t)=>u(e,"string",t),note:ke,details:Fe,quote:ve});return o(a)};o(Te);const Ne=Te(),{details:Oe,quote:_e}=Ne,Re=/^(\w*[a-z])Locale([A-Z]\w*)$/,je={localeCompare(e){if(null==this)throw new TypeError('Cannot localeCompare with null or undefined "this" value');const t=""+this;return t<(e=""+e)?-1:t>e?1:(Ne(t===e,Oe`expected ${_e(t)} and ${_e(e)} to compare`),0)}}.localeCompare;const Me=["await","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","let","static","enum","implements","package","protected","interface","private","public","await","null","true","false","this","arguments"],Ue=new RegExp("^[a-zA-Z_$][\\w$]*$");function Le(e){return"eval"!==e&&!I(Me,e)&&T(Ue,e)}function ze(e,t){const n=s(e,t);return!1===n.configurable&&!1===n.writable&&P(n,"value")}const{details:Ge,quote:We}=Ne,He=eval,qe=new Proxy(R,{get(e,t){Ne.fail(Ge`Please report unexpected scope handler trap: ${We(String(t))}`)}});const Ve=new RegExp("(?:\\s*//\\s*[@#]\\s*([a-zA-Z][a-zA-Z0-9]*)\\s*=\\s*([^\\s\\*]*)|/\\*\\s*[@#]\\s*([a-zA-Z][a-zA-Z0-9]*)\\s*=\\s*([^\\s\\*]*)\\s*\\*/)\\s*$");function Je(e){let t="";for(;e.length>0;){const n=Ve.exec(e);if(null===n)break;e=e.slice(0,e.length-n[0].length),"sourceURL"===n[3]?t=n[4]:"sourceURL"===n[1]&&(t=n[2])}return t}function Ke(e,t){const n=N(e,t);return n<0?-1:_(O(e,0,n),"\n").length}const Ye=new RegExp("(?:\x3c!--|--\x3e)","g");function Ze(e){return e.replace(Ye,e=>"<"===e[0]?"< ! --":"-- >")}const Xe=new RegExp("\\bimport(\\s*(?:\\(|/[/*]))","g");function Qe(e){return e.replace(Xe,(e,t)=>"__import__"+t)}const et=new RegExp("\\beval(\\s*\\()","g");function tt(e){const t=Ke(e,et);if(t<0)return e;const n=Je(e);throw new SyntaxError(`Possible direct eval expression rejected at ${n}:${t}. (SES_EVAL_REJECTED)`)}function nt(e){return e=function(e){const t=Ke(e,Xe);if(t<0)return e;const n=Je(e);throw new SyntaxError(`Possible import expression rejected at ${n}:${t}. (SES_IMPORT_REJECTED)`)}(e=function(e){const t=Ke(e,Ye);if(t<0)return e;const n=Je(e);throw new SyntaxError(`Possible HTML comment rejected at ${n}:${t}. (SES_HTML_COMMENT_REJECTED)`)}(e))}const rt=Function;function ot(e=[]){const t=function(e){return 0===e.length?"":`const {${S(e,",")}} = this;`}(e);return rt(`\n with (this) {\n ${t}\n return function() {\n 'use strict';\n return eval(arguments[0]);\n };\n }\n `)}const{details:st}=Ne;function ut(e,t,n={},{localTransforms:r=[],globalTransforms:o=[],sloppyGlobalsMode:u=!1}={}){e=function(e,t){for(const n of t)e=n(e);return e}(e,[...r,...o,nt]);const i=function(e,t={},{sloppyGlobalsMode:n=!1}={}){return{__proto__:qe,useUnsafeEvaluator:!1,get(n,r){if("symbol"!=typeof r)return"eval"===r&&!0===this.useUnsafeEvaluator?(this.useUnsafeEvaluator=!1,He):r in t?C(t,r,e):C(e,r)},set(n,r,o){if(r in t){return"value"in s(t,r)?b(t,r,o):b(t,r,o,e)}return b(e,r,o)},has:(r,o)=>!!(n||"eval"===o||o in t||o in e||o in globalThis),getPrototypeOf:()=>null,getOwnPropertyDescriptor(e,t){const n=JSON.stringify(String(t));console.warn("getOwnPropertyDescriptor trap on scopeHandler for "+n,(new Error).stack)}}}(t,n,{sloppyGlobalsMode:u}),l=A(R,i),c=ot(function(e,t={}){const n=a(e),r=a(t),o=r.filter(e=>Le(e)&&ze(t,e));return[...n.filter(t=>!r.includes(t)&&Le(t)&&ze(e,t)),...o]}(t,n)),d=y(c,l.proxy,[]);let p;i.useUnsafeEvaluator=!0;try{return y(d,t,[e])}catch(e){throw p=e,e}finally{!0===i.useUnsafeEvaluator&&(l.revoke(),Ne.fail(st`handler did not revoke useUnsafeEvaluator ${p}`))}}const at=(e,t={})=>n=>"string"!=typeof n?n:ut(n,e,{},t),it=Function;function lt(e,t={}){const r=function(n){const r=""+(k(arguments)||""),o=""+S(arguments,",");new it(o,r);const s=`(function anonymous(${o}\n) {\n${r}\n})`;return ut(s,e,{},t)};return n(r,{prototype:{value:Function.prototype,writable:!1,enumerable:!1,configurable:!1}}),Ne(i(Function)===Function.prototype,"Function prototype is the same accross compartments"),Ne(i(r)===Function.prototype,"Function constructor prototype is the same accross compartments"),r}function ct(e,t,n,o,s,{globalTransforms:u,nativeBrander:a}){for(const[t,n]of r(U))D(e,t,{value:n,writable:!1,enumerable:!1,configurable:!1});for(const[n,o]of r(L))P(t,o)&&D(e,n,{value:t[o],writable:!0,enumerable:!1,configurable:!0});for(const[o,s]of r(n))P(t,s)&&D(e,o,{value:t[s],writable:!0,enumerable:!1,configurable:!0});const i={globalThis:e,eval:at(e,{globalTransforms:u}),Function:lt(e,{globalTransforms:u})};i.Compartment=o(o,t,a);for(const[t,n]of r(i))D(e,t,{value:n,writable:!0,enumerable:!1,configurable:!0}),"function"==typeof n&&a(n)}const dt=o([["debug","debug"],["log","log"],["info","info"],["warn","warn"],["error","error"],["trace","log"],["dirxml","log"],["group","log"],["groupCollapsed","log"]]),pt=o([["assert","error"],["timeLog","log"],["clear",void 0],["count","info"],["countReset",void 0],["dir","log"],["groupEnd","log"],["table","log"],["time","info"],["timeEnd","info"],["profile",void 0],["profileEnd",void 0],["timeStamp",void 0]]),ft=o([...dt,...pt]);o(()=>{let e=[];const t=g(ft.map(([t,n])=>{const r=(...n)=>{e.push([t,...n])};return D(r,"name",{value:t}),[t,o(r)]}));o(t);const n=()=>{const t=o(e);return e=[],t};o(n);return o({loggingConsole:t,takeLog:n})});const mt={NOTE:"ERROR_NOTE:",MESSAGE:"ERROR_MESSAGE:"};o(mt);const $t=(e,t)=>{const{getStackString:n,takeMessageLogArgs:r,takeNoteLogArgsArray:s}=t;let u=0;const a=new WeakMap,i=e=>{let t;return a.has(e)?t=a.get(e):(u+=1,a.set(e,u),t=u),`${e.name}#${t}`},l=(e,t)=>e.map(e=>e instanceof Error?(t.push(e),`(${i(e)})`):e),c=(t,n,r,o)=>{const s=i(t),u=n===mt.MESSAGE?s+":":`${s} ${n}`,a=l(r,o);e.debug(u,...a)},d=(t,n)=>{if(n.length>=1){let r;r=1===n.length?"Nested error":`Nested ${n.length} errors`,void 0!==t&&(r=`${r} under ${t}`),e.group(r);try{for(const e of n)m(e)}finally{e.groupEnd()}}},p=new WeakSet,f=(e,t)=>{const n=[];c(e,mt.NOTE,t,n),d(i(e),n)},m=t=>{if(p.has(t))return;const o=i(t);p.add(t);const u=[],a=r(t),l=s(t,f);void 0===a?e.debug(o+":",t.message):c(t,mt.MESSAGE,a,u);let m=n(t);"string"==typeof m&&m.length>=1&&!m.endsWith("\n")&&(m+="\n"),e.debug("",m);for(const e of l)c(t,mt.NOTE,e,u);d(o,u)},$=dt.map(([t,n])=>{const r=(...n)=>{const r=[],o=l(n,r);e[t](...o),d(void 0,r)};return D(r,"name",{value:t}),[t,o(r)]}),y=pt.filter(([t,n])=>t in e).map(([t,n])=>{const r=(...n)=>{e[t](...n)};return D(r,"name",{value:t}),[t,o(r)]}),h=g([...$,...y]);return o(h)};o($t);o((e,t,n)=>{const r=ft.filter(([t,n])=>t in e).map(([n,r])=>[n,o((...o)=>{(void 0===r||t.canLog(r))&&e[n](...o)})]),s=g(r);return o(s)});const gt=console,Dt=["getTypeName","getFunctionName","getMethodName","getFileName","getLineNumber","getColumnNumber","getEvalOrigin","isToplevel","isEval","isNative","isConstructor","isAsync","getPosition","getScriptNameOrSourceURL","toString"],yt=e=>{const t=g(Dt.map(t=>[t,()=>e[t]()]));return Object.create(t,{})},ht=[/\/node_modules\//,/^(?:node:)?internal\//,/\/packages\/ses\/src\/error\/assert.js$/,/\/packages\/eventual-send\/src\//],Ct=[/^((?:.*[( ])?)[:/\w_-]*\/\.\.\.\/(.+)$/,/^((?:.*[( ])?)[:/\w_-]*\/(packages\/.+)$/];function bt(e,t,r,o){const s=e=>"verbose"===o||(e=>{if(!e)return!0;for(const t of ht)if(t.test(e))return!1;return!0})(e.getFileName()),u=e=>{let t=""+e;return"concise"===o&&(t=(e=>{for(const t of Ct){const n=t.exec(e);if(n)return n.slice(1).join("")}return e})(t)),"\n at "+t},a=(e,t)=>[...t.filter(s).map(u)].join(""),i=new WeakMap,l={captureStackTrace(t,n=l.captureStackTrace){"function"!=typeof e.captureStackTrace?Reflect.set(t,"stack",""):e.captureStackTrace(t,n)},getStackString(e){i.has(e)||e.stack;const t=i.get(e);return t?a(0,t):""},prepareStackTrace(e,t){if(i.set(e,t),"unsafe"===r){return`${e}${a(0,t)}`}return""}},c=l.prepareStackTrace;e.prepareStackTrace=c;const d=new WeakSet([c]),p=e=>{if(d.has(e))return e;const t={prepareStackTrace:(t,n)=>(i.set(t,n),e(t,(e=>e.map(yt))(n)))};return d.add(t.prepareStackTrace),t.prepareStackTrace};return n(t,{captureStackTrace:{value:l.captureStackTrace,writable:!0,enumerable:!1,configurable:!0},stackTraceLimit:{get(){if("number"==typeof e.stackTraceLimit)return e.stackTraceLimit},set(t){"number"!=typeof e.stackTraceLimit||(e.stackTraceLimit=t)},enumerable:!1,configurable:!0},prepareStackTrace:{get:()=>e.prepareStackTrace,set(t){if("function"==typeof t){const n=p(t);e.prepareStackTrace=n}else e.prepareStackTrace=c},enumerable:!1,configurable:!0}}),l.getStackString}const Et={getStackString:e=>""};const{details:vt,quote:At}=Ne;let Ft,wt=!1;const xt=function(){const e=new WeakSet,{harden:t}={harden(t){const n=new Set,r=new WeakMap;function o(t,o){if(Object(t)!==t)return;const s=typeof t;if("object"!==s&&"function"!==s)throw new TypeError("Unexpected typeof: "+s);e.has(t)||n.has(t)||(n.add(t),r.set(t,o))}function s(e){ae(e);const t=r.get(e)||"unknown",n=ie(e);o(le(e),t+".__proto__"),ce(n).forEach(e=>{const r=`${t}.${String(e)}`,s=n[e];"value"in s?o(s.value,""+r):(o(s.get,r+"(get)"),o(s.set,r+"(set)"))})}return o(t),n.forEach(s),n.forEach(e.add,e),t}};return t}(),Bt=()=>!1;function Pt(e,r,o,l={}){l={...Ft,...l};const{dateTaming:c="safe",errorTaming:f="safe",mathTaming:$="safe",regExpTaming:g="safe",localeTaming:C="safe",consoleTaming:b="safe",overrideTaming:E="moderate",stackFiltering:v="concise",...A}=l,F=Reflect.ownKeys(A);if(Ne(0===F.length,vt`lockdown(): non supported option ${At(F)}`),Ft){for(const e of d(Ft))Ne(l[e]===Ft[e],vt`lockdown(): cannot re-invoke with different option ${At(e)}`);return Bt}Ft={dateTaming:c,errorTaming:f,mathTaming:$,regExpTaming:g,localeTaming:C,consoleTaming:b,overrideTaming:E,stackFiltering:v};const w=oe();w.addIntrinsics(function(){try{(0,Function.prototype.constructor)("return 1")}catch(e){return{}}const e={};function t(t,r,o){let s;try{s=(0,eval)(o)}catch(e){if(e instanceof SyntaxError)return;throw e}const u=i(s),a=function(){throw new TypeError("Not available")};n(a,{prototype:{value:u},name:{value:t,writable:!1,enumerable:!1,configurable:!0}}),n(u,{constructor:{value:a}}),a!==Function.prototype.constructor&&m(a,Function.prototype.constructor),e[r]=a}return t("Function","%InertFunction%","(function(){})"),t("GeneratorFunction","%InertGeneratorFunction%","(function*(){})"),t("AsyncFunction","%InertAsyncFunction%","(async function(){})"),t("AsyncGeneratorFunction","%InertAsyncGeneratorFunction%","(async function*(){})"),e}()),w.addIntrinsics(function(e="safe"){if("safe"!==e&&"unsafe"!==e)throw new Error("unrecognized dateTaming "+e);const t=Date,r=t.prototype,o={now:()=>NaN},s=({powers:e="none"}={})=>{let o;return o="original"===e?function(...e){return void 0===new.target?Reflect.apply(t,void 0,e):Reflect.construct(t,e,new.target)}:function(...e){return void 0===new.target?"Invalid Date":(0===e.length&&(e=[NaN]),Reflect.construct(t,e,new.target))},n(o,{length:{value:7},prototype:{value:r,writable:!1,enumerable:!1,configurable:!1},parse:{value:Date.parse,writable:!0,enumerable:!1,configurable:!0},UTC:{value:Date.UTC,writable:!0,enumerable:!1,configurable:!0}}),o},u=s({powers:"original"}),a=s({power:"none"});return n(u,{now:{value:Date.now,writable:!0,enumerable:!1,configurable:!0}}),n(a,{now:{value:o.now,writable:!0,enumerable:!1,configurable:!0}}),n(r,{constructor:{value:a}}),{"%InitialDate%":u,"%SharedDate%":a}}(c)),w.addIntrinsics(function(e="safe",t="concise"){if("safe"!==e&&"unsafe"!==e)throw new Error("unrecognized errorTaming "+e);if("concise"!==t&&"verbose"!==t)throw new Error("unrecognized stackFiltering "+t);const r=Error,o=r.prototype,s="function"==typeof r.captureStackTrace?"v8":"unknown",u=(e={})=>{const t=function(...e){let n;return n=void 0===new.target?y(r,this,e):h(r,e,new.target),"v8"===s&&r.captureStackTrace(n,t),n};return n(t,{length:{value:1},prototype:{value:o,writable:!1,enumerable:!1,configurable:!1}}),t},a=u({powers:"original"}),i=u({powers:"none"});n(o,{constructor:{value:i}});for(const e of W)m(e,i);let l=Et.getStackString;return"v8"===s&&(l=bt(r,a,e,t)),{"%InitialGetStackString%":l,"%InitialError%":a,"%SharedError%":i}}(f,v)),w.addIntrinsics(function(e="safe"){if("safe"!==e&&"unsafe"!==e)throw new Error("unrecognized mathTaming "+e);const n=Math,r=n,{random:o,...s}=u(n);return{"%InitialMath%":r,"%SharedMath%":t(Object.prototype,s)}}($)),w.addIntrinsics(function(e="safe"){if("safe"!==e&&"unsafe"!==e)throw new Error("unrecognized regExpTaming "+e);const t=RegExp,r=t.prototype,o=(e={})=>{const o=function(...e){return void 0===new.target?t(...e):Reflect.construct(t,e,new.target)};return n(o,{length:{value:2},prototype:{value:r,writable:!1,enumerable:!1,configurable:!1},[Symbol.species]:s(t,Symbol.species)}),o},u=o(),a=o();return"unsafe"!==e&&delete r.compile,n(r,{constructor:{value:a}}),{"%InitialRegExp%":u,"%SharedRegExp%":a}}(g)),w.addIntrinsics(o()),w.completePrototypes();const x=w.finalIntrinsics();let B;"unsafe"!==f&&(B=x["%InitialGetStackString%"]);const S=((e="safe",t)=>{if("safe"!==e&&"unsafe"!==e)throw new Error("unrecognized consoleTaming "+e);if("unsafe"===e)return{console:gt};let n;n=void 0===t?Ie:{...Ie,getStackString:t};return{console:$t(gt,n)}})(b,B);globalThis.console=S.console,function(e,t="safe"){if("safe"!==t&&"unsafe"!==t)throw new Error("unrecognized dateTaming "+t);if("unsafe"!==t){D(String.prototype,"localeCompare",{value:je});for(const t of a(e)){const n=e[t];if(n===Object(n))for(const e of a(n)){const t=Re.exec(e);if(t){Ne("function"==typeof n[e],Oe`expected ${_e(e)} to be a function`);const r=`${t[1]}${t[2]}`,o=n[r];Ne("function"==typeof o,Oe`function ${_e(r)} not found`),D(n,e,{value:o})}}}}}(x,C);const k=M();return $e(x,k),function(){try{(0,Object.prototype.__lookupGetter__)("x")}catch(e){return}function e(e){if(null==e)throw new TypeError("can't convert undefined or null to object");return Object(e)}function t(e){return"symbol"==typeof e?e:""+e}function r(e,t){if("function"!=typeof e)throw TypeError(`invalid ${t} usage`);return e}n(p,{__defineGetter__:{value:function(t,n){const o=e(this);D(o,t,{get:r(n,"getter"),enumerable:!0,configurable:!0})}},__defineSetter__:{value:function(t,n){const o=e(this);D(o,t,{set:r(n,"setter"),enumerable:!0,configurable:!0})}},__lookupGetter__:{value:function(n){let r,o=e(this);for(n=t(n);o&&!(r=s(o,n));)o=i(o);return r&&r.get}},__lookupSetter__:{value:function(n){let r,o=e(this);for(n=t(n);o&&!(r=s(o,n));)o=i(o);return r&&r.set}}})}(),ct(globalThis,x,z,e,0,{nativeBrander:k}),function(){return function(e,t){function n(e,t,n,r){if("value"in r&&r.configurable){const{value:s}=r;function o(){return s}D(o,"originalValue",{value:s,writable:!1,enumerable:!1,configurable:!1}),D(t,n,{get:o,set:function(r){if(t===this)throw new TypeError(`Cannot assign to read only property '${String(n)}' of '${e}'`);P(this,n)?this[n]=r:D(this,n,{value:r,writable:!0,enumerable:!0,configurable:!0})},enumerable:r.enumerable,configurable:r.configurable})}}function r(e,t,r){const o=s(t,r);o&&n(e,t,r,o)}function o(e,t){const r=u(t);r&&ye(r).forEach(o=>n(e,t,o,r[o]))}let i;switch(t){case"min":i=De;break;case"moderate":i=ge;break;default:throw new Error("unrecognized overrideTaming "+t)}!function e(t,n,u){for(const i of a(u)){const a=s(n,i);if(!a||a.get||a.set)continue;const l=`${t}.${String(i)}`,c=u[i];if(!0===c)r(l,n,i);else if("*"===c)o(l,a.value);else{if(!he(c))throw new TypeError("Unexpected override enablement plan "+l);e(l,a.value,c)}}}("root",e,i)}(x,E),xt(x),wt=!0,!0}}const St=new WeakMap,kt={constructor:se,get globalThis(){return St.get(this).globalObject},get name(){return St.get(this).name},evaluate(e,r={}){if("string"!=typeof e)throw new TypeError("first argument of evaluate() must be a string");const{transforms:o=[],sloppyGlobalsMode:s=!1,__moduleShimLexicals__:a,__evadeHtmlCommentTest__:i=!1,__evadeImportExpressionTest__:l=!1,__rejectSomeDirectEvalExpressions__:c=!0}=r,d=[...o];!0===i&&d.push(Ze),!0===l&&d.push(Qe),!0===c&&d.push(tt);const p=St.get(this);let{globalTransforms:f}=p;const{globalObject:m,globalLexicals:$}=p;let g=$;return void 0!==a&&(f=void 0,g=t(null,u($)),n(g,u(a))),ut(e,m,g,{globalTransforms:f,localTransforms:d,sloppyGlobalsMode:s})},toString:()=>"[object Compartment]"};n(se,{prototype:{value:kt}});const It=(t,n,r)=>{function s(s={},u={},i={}){if(void 0===new.target)throw new TypeError("Class constructor Compartment cannot be invoked without 'new'");const{name:l="",transforms:c=[],__shimTransforms__:d=[],globalLexicals:p={}}=i,f=[...c,...d],m={};ct(m,n,G,t,this.constructor.prototype,{globalTransforms:f,nativeBrander:r}),e(m,s);const $=a(p).filter(e=>!Le(e));if($.length)throw new Error(`Cannot create compartment with invalid names for global lexicals: ${$.join(", ")}; these names would not be lexically mentionable`);St.set(this,{name:l,globalTransforms:f,globalObject:m,globalLexicals:o({...p})})}return s.prototype=kt,s},Tt=M(),Nt=It(It,function(e){const t=oe();return t.addIntrinsics(re(e,G)),t.finalIntrinsics()}(globalThis),Tt);let Ot;e(globalThis,{harden:e=>(Ne(wt,"Cannot harden before lockdown"),xt(e)),lockdown:((e,t,n)=>(t={})=>Pt(e,0,n,t)())(It,0,(function(){const e=Function.prototype.constructor,t=typeof Symbol&&Symbol.iterator||"@@iterator",n=typeof Symbol&&Symbol.matchAll||"@@matchAll",r=s(arguments,"callee").get,o=(new String)[t](),u=i(o),a=RegExp.prototype[n]&&(new RegExp)[n](),l=a&&i(a),c=(new Array)[t](),d=i(c),p=i(Float32Array),f=(new Map)[t](),m=i(f),$=(new Set)[t](),g=i($),D=i(d);function*y(){}const h=ue(y),C=h.prototype;async function*b(){}const E=ue(b),v=E.prototype,A=v.prototype,F=i(A);async function w(){}const x=ue(w),B={"%InertFunction%":e,"%ArrayIteratorPrototype%":d,"%InertAsyncFunction%":x,"%AsyncGenerator%":v,"%InertAsyncGeneratorFunction%":E,"%AsyncGeneratorPrototype%":A,"%AsyncIteratorPrototype%":F,"%Generator%":C,"%InertGeneratorFunction%":h,"%IteratorPrototype%":D,"%MapIteratorPrototype%":m,"%RegExpStringIteratorPrototype%":l,"%SetIteratorPrototype%":g,"%StringIteratorPrototype%":u,"%ThrowTypeError%":r,"%TypedArray%":p,"%InertCompartment%":se};return B})),Compartment:Nt,assert:Ne});let _t=0,Rt=0;const jt=e=>{if("undefined"==typeof globalThis||!globalThis.assert)return e;const{details:t}=assert;Rt+=1;const n=new Error(`Event: ${_t}.${Rt}`);return void 0!==Ot&&assert.note(n,t`Caused by: ${Ot}`),e.map(e=>e&&((...r)=>{Ot=n,_t+=1,Rt=0;try{let n;try{n=e(...r)}catch(e){throw e instanceof Error&&assert.note(e,t`Thrown from: ${Ot}:${_t}.${Rt}`),e}const o=t`Rejection from: ${Ot}:${_t}.${Rt}`;return Promise.resolve(n).catch(e=>{e instanceof Error&&assert.note(e,o)}),n}finally{Ot=void 0}}))},{defineProperties:Mt,getOwnPropertyDescriptors:Ut,getOwnPropertyDescriptor:Lt,getPrototypeOf:zt,isFrozen:Gt}=Object,Wt=JSON.stringify;function Ht(){}"undefined"==typeof HandledPromise&&(globalThis.HandledPromise=function(){let e,t,n,r,o,s,u;function a(){e||(e=new WeakMap,t=new WeakMap,n=new WeakMap,r=new WeakMap,o=new WeakMap)}function i(e){let t=e;for(;o.has(t);)t=o.get(t);const s=r.get(t);if(s)for(;e!==t;){const t=o.get(e);o.delete(e),n.delete(e),r.set(e,s),e=t}else for(;e!==t;){const r=o.get(e);o.set(e,t),n.delete(e),e=r}return e}function l(s,u){if(void 0===new.target)throw new Error('must be invoked with "new"');let c,d,p,f=!1,m=null,$=()=>{};p=harden(Reflect.construct(Promise,[(e,s)=>{c=s=>{if(f)return m;if(o.has(p))throw TypeError("internal: already forwarded");let u;return s=i(s),n.has(s)||r.has(s)?u=s:(n.delete(p),u=t.get(s)),u&&u!==p?o.set(p,u):o.delete(p),i(p),n.has(p)&&p.then(e=>n.delete(p)),e(s),f=!0,m=s,$(),m},d=e=>{if(!f){if(o.has(p))throw TypeError("internal: already forwarded");n.delete(p),f=!0,s(e),$()}}}],new.target)),a();u||([u,$]=(()=>{let e;const t=new Promise(t=>{e=()=>t()}),n=e=>function(n,...r){return new l((o,s)=>{t.then(t=>{o(l[e](n,...r))}).catch(s)})};return[{get:n("get"),applyMethod:n("applyMethod")},e]})());const g=e=>{if(Object(e)!==e)throw TypeError(`Handler ${e} cannot be a primitive`)};g(u),n.set(p,u);return s((...e)=>{(async(e,t)=>{if(!f){if(o.has(p))throw TypeError("internal: already forwarded");try{if(t)throw TypeError("resolveHandled no longer accepts a handler; use resolveWithPresence");c(e)}catch(e){d(e)}}})(...e)},e=>{if(!f){if(o.has(p))throw TypeError("internal: already forwarded");d(e)}},n=>{if(f)return m;if(o.has(p))throw TypeError("internal: already forwarded");try{return g(n),m=Object.create(null),t.set(m,p),r.set(p,m),e.set(m,n),c(m),m}catch(e){throw d(e),e}}),p}l.prototype=Promise.prototype,Object.setPrototypeOf(l,Promise);const c={get:(e,t)=>u(e,"get",t),getSendOnly(e,t){u(e,"get",t)},applyFunction:(e,t)=>u(e,"applyMethod",void 0,t),applyFunctionSendOnly(e,t){u(e,"applyMethod",void 0,t)},applyMethod:(e,t,n)=>u(e,"applyMethod",t,n),applyMethodSendOnly(e,t,n){u(e,"applyMethod",t,n)},resolve(e){a();let n=t.get(e);if(n||(n=Promise.resolve(e)),harden(n),Gt(r=n)&&zt(r)===Promise.prototype&&Promise.resolve(r)===r&&void 0===Lt(r,"then"))return n;var r;const o=(e,t)=>n.then(e,t);return harden(Promise.resolve().then(e=>new l(o)))}};function d(t,n){return(r,...o)=>{const s=e.get(r);return s&&"function"==typeof s[t]?s[t](r,...o):n(r,...o)}}Mt(l,Ut(c));const p=e=>null===e?"null":typeof e;return s={get:d("get",(e,t)=>e[t]),applyMethod:d("applyMethod",(e,t,n)=>{if(null==t){if(!(e instanceof Function)){const t=p(e);throw TypeError("Cannot invoke target as a function; typeof target is "+Wt(t))}return e(...n)}if(null==e){const n=p(e);throw TypeError(`Cannot deliver ${Wt(t)} to target; typeof target is ${Wt(n)}`)}if(!(e[t]instanceof Function)){const n=p(e[t]);if("undefined"===n){const n=Object.getOwnPropertyNames(e).sort();throw TypeError(`target has no method ${Wt(t)}, has ${Wt(n)}`)}throw TypeError(`invoked method ${Wt(t)} is not a function; it is a ${Wt(n)}`)}return e[t](...n)})},u=(e,t,...o)=>{a();const[u]=jt([(e,n)=>e[t](n,...o,c)]),c=new l((o,a)=>{let c=!1;function d(e,n,r){if(!c){if("function"!=typeof n[t])throw TypeError(`${e}.${t} is not a function`);try{o(u(n,r))}catch(e){a(e)}c=!0}}function p(e){c||(a(e),c=!0)}l.resolve(e).then(e=>d("forwardingHandler",s,e)).catch(p),l.resolve().then(()=>{e=i(e);const o=n.get(e);if(o&&"function"==typeof o[t])d("unsettledHandler",o,e);else if(Object(e)===e&&"then"in e){if(r.has(e)){const t=r.get(e);d("forwardingHandler",s,t)}}else d("forwardingHandler",s,e)}).catch(p)});return c.catch(e=>{}),c},l}()),lockdown({errorTaming:"unsafe"}),Error.stackTraceLimit=1/0;const qt=e=>e;function Vt(e,t){for(const n in t)e[n]=t[n];return e}function Jt(e){return e()}function Kt(){return Object.create(null)}function Yt(e){e.forEach(Jt)}function Zt(e){return"function"==typeof e}function Xt(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function Qt(e,t,n){e.$$.on_destroy.push(function(e,...t){if(null==e)return Ht;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}(t,n))}function en(e,t,n,r){if(e){const o=tn(e,t,n,r);return e[0](o)}}function tn(e,t,n,r){return e[1]&&r?Vt(n.ctx.slice(),e[1](r(t))):n.ctx}function nn(e,t,n,r,o,s,u){const a=function(e,t,n,r){if(e[2]&&r){const o=e[2](r(n));if(void 0===t.dirty)return o;if("object"==typeof o){const e=[],n=Math.max(t.dirty.length,o.length);for(let r=0;rwindow.performance.now():()=>Date.now(),ln=un?e=>requestAnimationFrame(e):Ht;const cn=new Set;function dn(e){cn.forEach(t=>{t.c(e)||(cn.delete(t),t.f())}),0!==cn.size&&ln(dn)}function pn(e){let t;return 0===cn.size&&ln(dn),{promise:new Promise(n=>{cn.add(t={c:e,f:n})}),abort(){cn.delete(t)}}}function fn(e,t){e.appendChild(t)}function mn(e,t,n){e.insertBefore(t,n||null)}function $n(e){e.parentNode.removeChild(e)}function gn(e,t){for(let n=0;ne.removeEventListener(t,n,r)}function vn(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function An(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Fn(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const r in t)null==t[r]?e.removeAttribute(r):"style"===r?e.style.cssText=t[r]:"__value"===r?e.value=e[r]=t[r]:n[r]&&n[r].set?e[r]=t[r]:An(e,r,t[r])}function wn(e,t){for(const n in t)An(e,n,t[n])}function xn(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function Bn(e,t){e.value=null==t?"":t}function Pn(e,t,n,r){e.style.setProperty(t,n,r?"important":"")}function Sn(e,t,n){e.classList[n?"add":"remove"](t)}function kn(e,t){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!1,!1,t),n}const In=new Set;let Tn,Nn=0;function On(e,t,n,r,o,s,u,a=0){const i=16.666/r;let l="{\n";for(let e=0;e<=1;e+=i){const r=t+(n-t)*s(e);l+=100*e+`%{${u(r,1-r)}}\n`}const c=l+`100% {${u(n,1-n)}}\n}`,d=`__svelte_${function(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}(c)}_${a}`,p=e.ownerDocument;In.add(p);const f=p.__svelte_stylesheet||(p.__svelte_stylesheet=p.head.appendChild(Dn("style")).sheet),m=p.__svelte_rules||(p.__svelte_rules={});m[d]||(m[d]=!0,f.insertRule(`@keyframes ${d} ${c}`,f.cssRules.length));const $=e.style.animation||"";return e.style.animation=`${$?$+", ":""}${d} ${r}ms linear ${o}ms 1 both`,Nn+=1,d}function _n(e,t){const n=(e.style.animation||"").split(", "),r=n.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),o=n.length-r.length;o&&(e.style.animation=r.join(", "),Nn-=o,Nn||ln(()=>{Nn||(In.forEach(e=>{const t=e.__svelte_stylesheet;let n=t.cssRules.length;for(;n--;)t.deleteRule(n);e.__svelte_rules={}}),In.clear())}))}function Rn(e){Tn=e}function jn(){if(!Tn)throw new Error("Function called outside component initialization");return Tn}function Mn(e){jn().$$.on_mount.push(e)}function Un(){const e=jn();return(t,n)=>{const r=e.$$.callbacks[t];if(r){const o=kn(t,n);r.slice().forEach(t=>{t.call(e,o)})}}}function Ln(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach(e=>e(t))}const zn=[],Gn=[],Wn=[],Hn=[],qn=Promise.resolve();let Vn=!1;function Jn(e){Wn.push(e)}function Kn(e){Hn.push(e)}let Yn=!1;const Zn=new Set;function Xn(){if(!Yn){Yn=!0;do{for(let e=0;e{er=null})),er}function nr(e,t,n){e.dispatchEvent(kn(`${t?"intro":"outro"}${n}`))}const rr=new Set;let or;function sr(){or={r:0,c:[],p:or}}function ur(){or.r||Yt(or.c),or=or.p}function ar(e,t){e&&e.i&&(rr.delete(e),e.i(t))}function ir(e,t,n,r){if(e&&e.o){if(rr.has(e))return;rr.add(e),or.c.push(()=>{rr.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}}const lr={duration:0};function cr(e,t,n){let r,o,s=t(e,n),u=!1,a=0;function i(){r&&_n(e,r)}function l(){const{delay:t=0,duration:n=300,easing:l=qt,tick:c=Ht,css:d}=s||lr;d&&(r=On(e,0,1,n,t,l,d,a++)),c(0,1);const p=an()+t,f=p+n;o&&o.abort(),u=!0,Jn(()=>nr(e,!0,"start")),o=pn(t=>{if(u){if(t>=f)return c(1,0),nr(e,!0,"end"),i(),u=!1;if(t>=p){const e=l((t-p)/n);c(e,1-e)}}return u})}let c=!1;return{start(){c||(_n(e),Zt(s)?(s=s(),tr().then(l)):l())},invalidate(){c=!1},end(){u&&(i(),u=!1)}}}function dr(e,t,n){let r,o=t(e,n),s=!0;const u=or;function a(){const{delay:t=0,duration:n=300,easing:a=qt,tick:i=Ht,css:l}=o||lr;l&&(r=On(e,1,0,n,t,a,l));const c=an()+t,d=c+n;Jn(()=>nr(e,!1,"start")),pn(t=>{if(s){if(t>=d)return i(0,1),nr(e,!1,"end"),--u.r||Yt(u.c),!1;if(t>=c){const e=a((t-c)/n);i(1-e,e)}}return s})}return u.r+=1,Zt(o)?tr().then(()=>{o=o(),a()}):a(),{end(t){t&&o.tick&&o.tick(1,0),s&&(r&&_n(e,r),s=!1)}}}function pr(e,t,n,r){let o=t(e,n),s=r?0:1,u=null,a=null,i=null;function l(){i&&_n(e,i)}function c(e,t){const n=e.b-s;return t*=Math.abs(n),{a:s,b:e.b,d:n,duration:t,start:e.start,end:e.start+t,group:e.group}}function d(t){const{delay:n=0,duration:r=300,easing:d=qt,tick:p=Ht,css:f}=o||lr,m={start:an()+n,b:t};t||(m.group=or,or.r+=1),u?a=m:(f&&(l(),i=On(e,s,t,r,n,d,f)),t&&p(0,1),u=c(m,r),Jn(()=>nr(e,t,"start")),pn(t=>{if(a&&t>a.start&&(u=c(a,r),a=null,nr(e,u.b,"start"),f&&(l(),i=On(e,s,u.b,u.duration,0,d,o.css))),u)if(t>=u.end)p(s=u.b,1-s),nr(e,u.b,"end"),a||(u.b?l():--u.group.r||Yt(u.group.c)),u=null;else if(t>=u.start){const e=t-u.start;s=u.a+u.d*d(e/u.duration),p(s,1-s)}return!(!u&&!a)}))}return{run(e){Zt(o)?tr().then(()=>{o=o(),d(e)}):d(e)},end(){l(),u=a=null}}}const fr="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function mr(e,t){ir(e,1,1,()=>{t.delete(e.key)})}function $r(e,t){const n={},r={},o={$$scope:1};let s=e.length;for(;s--;){const u=e[s],a=t[s];if(a){for(const e in u)e in a||(r[e]=1);for(const e in a)o[e]||(n[e]=a[e],o[e]=1);e[s]=a}else for(const e in u)o[e]=1}for(const e in r)e in n||(n[e]=void 0);return n}function gr(e){return"object"==typeof e&&null!==e?e:{}}function Dr(e,t,n){const r=e.$$.props[t];void 0!==r&&(e.$$.bound[r]=n,n(e.$$.ctx[r]))}function yr(e){e&&e.c()}function hr(e,t,n){const{fragment:r,on_mount:o,on_destroy:s,after_update:u}=e.$$;r&&r.m(t,n),Jn(()=>{const t=o.map(Jt).filter(Zt);s?s.push(...t):Yt(t),e.$$.on_mount=[]}),u.forEach(Jn)}function Cr(e,t){const n=e.$$;null!==n.fragment&&(Yt(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function br(e,t){-1===e.$$.dirty[0]&&(zn.push(e),Vn||(Vn=!0,qn.then(Xn)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const s=r.length?r[0]:n;return l.ctx&&o(l.ctx[t],l.ctx[t]=s)&&(!l.skip_bound&&l.bound[t]&&l.bound[t](s),c&&br(e,t)),n}):[],l.update(),c=!0,Yt(l.before_update),l.fragment=!!r&&r(l.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);l.fragment&&l.fragment.l(e),e.forEach($n)}else l.fragment&&l.fragment.c();t.intro&&ar(e.$$.fragment),hr(e,t.target,t.anchor),Xn()}Rn(a)}class vr{$destroy(){Cr(this,1),this.$destroy=Ht}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Ar={set:(e,t,n)=>!1,isExtensible:e=>!1,setPrototypeOf:(e,t)=>!1,deleteProperty:(e,t)=>!1};const Fr=HandledPromise,wr=function(e){function t(t){const n=function(e,t){return harden({...Ar,get:(n,r,o)=>(...n)=>harden(t.applyMethod(e,r,n)),apply:(n,r,o=[])=>harden(t.applyFunction(e,o)),has:(e,t)=>!0})}(t,e);return harden(new Proxy(()=>{},n))}return t.G=t=>new Proxy(Object.create(null),{...Ar,has:(e,t)=>!0,get:(n,r)=>harden(e.get(t,r))}),t.resolve=e.resolve,t.sendOnly=t=>{const n=function(e,t){return harden({...Ar,get:(n,r,o)=>(...n)=>{t.applyMethod(e,r,n)},apply(n,r,o=[]){t.applyFunction(e,o)},has:(e,t)=>!0})}(t,e);return harden(new Proxy(()=>{},n))},t.when=(t,n,r)=>{const[o,s]=jt([n,r]);return e.resolve(t).then(o,s)},harden(t)}(HandledPromise);function xr(e){let t,n,r,o,s,u;const a=e[7].default,i=en(a,e,e[6],null);return{c(){t=Dn("i"),i&&i.c(),An(t,"aria-hidden","true"),An(t,"class",n="material-icons icon text-xl "+e[5].class+" duration-200 ease-in svelte-zzky5a"),An(t,"style",r=e[4]?"color: "+e[4]:""),Sn(t,"reverse",e[2]),Sn(t,"tip",e[3]),Sn(t,"text-base",e[0]),Sn(t,"text-xs",e[1])},m(n,r){mn(n,t,r),i&&i.m(t,null),o=!0,s||(u=En(t,"click",e[8]),s=!0)},p(e,[s]){i&&i.p&&64&s&&nn(i,a,e,e[6],s,null,null),(!o||32&s&&n!==(n="material-icons icon text-xl "+e[5].class+" duration-200 ease-in svelte-zzky5a"))&&An(t,"class",n),(!o||16&s&&r!==(r=e[4]?"color: "+e[4]:""))&&An(t,"style",r),36&s&&Sn(t,"reverse",e[2]),40&s&&Sn(t,"tip",e[3]),33&s&&Sn(t,"text-base",e[0]),34&s&&Sn(t,"text-xs",e[1])},i(e){o||(ar(i,e),o=!0)},o(e){ir(i,e),o=!1},d(e){e&&$n(t),i&&i.d(e),s=!1,u()}}}function Br(e,t,n){let{small:r=!1}=t,{xs:o=!1}=t,{reverse:s=!1}=t,{tip:u=!1}=t,{color:a="default"}=t,{$$slots:i={},$$scope:l}=t;return e.$$set=e=>{n(5,t=Vt(Vt({},t),rn(e))),"small"in e&&n(0,r=e.small),"xs"in e&&n(1,o=e.xs),"reverse"in e&&n(2,s=e.reverse),"tip"in e&&n(3,u=e.tip),"color"in e&&n(4,a=e.color),"$$scope"in e&&n(6,l=e.$$scope)},t=rn(t),[r,o,s,u,a,t,l,i,function(t){Ln(e,t)}]}class Pr extends vr{constructor(e){super(),Er(this,e,Br,xr,Xt,{small:0,xs:1,reverse:2,tip:3,color:4})}}const Sr=["white","black","transparent"];function kr(e,t,n,r){return Sr.includes(t)?`${e}-${t}`:`${e}-${t}-${n||r} `}function Ir(e,t=500){return{bg:n=>kr("bg",e,n,t),border:n=>kr("border",e,n,t),txt:n=>kr("text",e,n,t),caret:n=>kr("caret",e,n,t)}}class Tr{constructor(e,t){this.defaults=("function"==typeof e?e(t):e)||t,this.classes=this.defaults}flush(){return this.classes=this.defaults,this}extend(...e){return this}get(){return this.classes}replace(e,t=!0){return t&&e&&(this.classes=Object.keys(e).reduce((t,n)=>t.replace(new RegExp(n,"g"),e[n]),this.classes)),this}remove(e,t=!0){return t&&e&&(this.classes=e.split(" ").reduce((e,t)=>e.replace(new RegExp(t,"g"),""),this.classes)),this}add(e,t=!0,n){if(!t||!e)return this;switch(typeof e){case"string":default:return this.classes+=` ${e} `,this;case"function":return this.classes+=` ${e(n||this.classes)} `,this}}}const Nr=["class","add","remove","replace","value"];function Or(e,t){const n=[...e,...Nr];return Object.keys(t).reduce((e,r)=>r.includes("$$")||r.includes("Class")||n.includes(r)?e:{...e,[r]:t[r]},{})}function _r(e="primary",t=!1){return function(n){const r=function(e,t){return function(n){const r=n.currentTarget,o=document.createElement("span"),s=Math.max(r.clientWidth,r.clientHeight),u=()=>{o.remove(),o.removeEventListener("animationend",u)};o.addEventListener("animationend",u),o.style.width=o.style.height=s+"px";const a=r.getBoundingClientRect();t?o.classList.add("absolute","top-0","left-0","ripple-centered",`bg-${e}-transDark`):(o.style.left=n.clientX-a.left-s/2+"px",o.style.top=n.clientY-a.top-s/2+"px",o.classList.add("ripple-normal",`bg-${e}-trans`)),o.classList.add("ripple"),r.appendChild(o)}}(e,t);return n.addEventListener("mousedown",r),{onDestroy:()=>n.removeEventListener("mousedown",r)}}}function Rr(e){let t,n,r,o,s,u,a=e[3]&&Mr(e);const i=e[29].default,l=en(i,e,e[38],null);let c=[{class:e[1]},e[8],{disabled:e[2]}],d={};for(let e=0;e{a=null}),ur()),l&&l.p&&128&r[1]&&nn(l,i,e,e[38],r,null,null),Fn(t,d=$r(c,[(!o||2&r[0])&&{class:e[1]},e[8],(!o||4&r[0])&&{disabled:e[2]}]))},i(e){o||(ar(a),ar(l,e),o=!0)},o(e){ir(a),ir(l,e),o=!1},d(e){e&&$n(t),a&&a.d(),l&&l.d(e),s=!1,Yt(u)}}}function jr(e){let t,n,r,o,s,u,a,i=e[3]&&Lr(e);const l=e[29].default,c=en(l,e,e[38],null);let d=[{class:e[1]},e[8],{disabled:e[2]}],p={};for(let e=0;e{i=null}),ur()),c&&c.p&&128&o[1]&&nn(c,l,e,e[38],o,null,null),Fn(n,p=$r(d,[(!s||2&o[0])&&{class:e[1]},e[8],(!s||4&o[0])&&{disabled:e[2]}])),Fn(t,m=$r(f,[(!s||32&o[0])&&{href:e[5]},e[8]]))},i(e){s||(ar(i),ar(c,e),s=!0)},o(e){ir(i),ir(c,e),s=!1},d(e){e&&$n(t),i&&i.d(),c&&c.d(e),u=!1,Yt(a)}}}function Mr(e){let t,n;return t=new Pr({props:{class:e[6],small:e[4],$$slots:{default:[Ur]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};64&n[0]&&(r.class=e[6]),16&n[0]&&(r.small=e[4]),8&n[0]|128&n[1]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Ur(e){let t;return{c(){t=hn(e[3])},m(e,n){mn(e,t,n)},p(e,n){8&n[0]&&xn(t,e[3])},d(e){e&&$n(t)}}}function Lr(e){let t,n;return t=new Pr({props:{class:e[6],small:e[4],$$slots:{default:[zr]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};64&n[0]&&(r.class=e[6]),16&n[0]&&(r.small=e[4]),8&n[0]|128&n[1]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function zr(e){let t;return{c(){t=hn(e[3])},m(e,n){mn(e,t,n)},p(e,n){8&n[0]&&xn(t,e[3])},d(e){e&&$n(t)}}}function Gr(e){let t,n,r,o;const s=[jr,Rr],u=[];function a(e,t){return e[5]?0:1}return t=a(e),n=u[t]=s[t](e),{c(){n.c(),r=bn()},m(e,n){u[t].m(e,n),mn(e,r,n),o=!0},p(e,o){let i=t;t=a(e),t===i?u[t].p(e,o):(sr(),ir(u[i],1,1,()=>{u[i]=null}),ur(),n=u[t],n||(n=u[t]=s[t](e),n.c()),ar(n,1),n.m(r.parentNode,r))},i(e){o||(ar(n),o=!0)},o(e){ir(n),o=!1},d(e){u[t].d(e),e&&$n(r)}}}const Wr="py-2 px-4 uppercase text-sm font-medium relative overflow-hidden",Hr="text-white duration-200 ease-in",qr="bg-transparent border border-solid",Vr="bg-transparent border-none px-4 hover:bg-transparent",Jr="p-4 flex items-center select-none",Kr="hover:bg-transparent",Yr="pt-1 pb-1 pl-2 pr-2 text-xs",Zr="bg-gray-300 text-gray-500 dark:bg-dark-400 elevation-none pointer-events-none hover:bg-gray-300 cursor-default",Xr="hover:elevation-5 elevation-3";function Qr(e,t,n){let{value:r=!1}=t,{outlined:o=!1}=t,{text:s=!1}=t,{block:u=!1}=t,{disabled:a=!1}=t,{icon:i=null}=t,{small:l=!1}=t,{light:c=!1}=t,{dark:d=!1}=t,{flat:p=!1}=t,{iconClass:f=""}=t,{color:m="primary"}=t,{href:$=null}=t,{fab:g=!1}=t,{remove:D=""}=t,{add:y=""}=t,{replace:h={}}=t,{classes:C=Wr}=t,{basicClasses:b=Hr}=t,{outlinedClasses:E=qr}=t,{textClasses:v=Vr}=t,{iconClasses:A=Jr}=t,{fabClasses:F=Kr}=t,{smallClasses:w=Yr}=t,{disabledClasses:x=Zr}=t,{elevationClasses:B=Xr}=t;g=g||s&&i;const P=!o&&!s&&!g,S=(P||i)&&!a&&!p&&!s;let k=e=>e,I=0;const{bg:T,border:N,txt:O}=Ir(m),_=new Tr(C,Wr);let R;i&&(R=new Tr(f));const j=_r(s||g||o?m:"white"),M=Or(["outlined","text","color","block","disabled","icon","small","light","dark","flat","add","remove","replace"],t);let{$$slots:U={},$$scope:L}=t;let z,G;return e.$$set=e=>{n(50,t=Vt(Vt({},t),rn(e))),"value"in e&&n(0,r=e.value),"outlined"in e&&n(10,o=e.outlined),"text"in e&&n(11,s=e.text),"block"in e&&n(12,u=e.block),"disabled"in e&&n(2,a=e.disabled),"icon"in e&&n(3,i=e.icon),"small"in e&&n(4,l=e.small),"light"in e&&n(13,c=e.light),"dark"in e&&n(14,d=e.dark),"flat"in e&&n(15,p=e.flat),"iconClass"in e&&n(16,f=e.iconClass),"color"in e&&n(17,m=e.color),"href"in e&&n(5,$=e.href),"fab"in e&&n(9,g=e.fab),"remove"in e&&n(18,D=e.remove),"add"in e&&n(19,y=e.add),"replace"in e&&n(20,h=e.replace),"classes"in e&&n(1,C=e.classes),"basicClasses"in e&&n(21,b=e.basicClasses),"outlinedClasses"in e&&n(22,E=e.outlinedClasses),"textClasses"in e&&n(23,v=e.textClasses),"iconClasses"in e&&n(24,A=e.iconClasses),"fabClasses"in e&&n(25,F=e.fabClasses),"smallClasses"in e&&n(26,w=e.smallClasses),"disabledClasses"in e&&n(27,x=e.disabledClasses),"elevationClasses"in e&&n(28,B=e.elevationClasses),"$$scope"in e&&n(38,L=e.$$scope)},e.$$.update=()=>{24576&e.$$.dirty[0]|256&e.$$.dirty[1]&&(n(39,I=c?200:0),n(39,I=d?-400:I)),256&e.$$.dirty[1]&&n(41,z=500-I),256&e.$$.dirty[1]&&n(42,G=400-I),n(1,C=_.flush().add(b,P,Hr).add(`${T(z)} hover:${T(G)}`,P).add(B,S,Xr).add(E,o,qr).add(`${N(G)} ${O(z)} hover:${T("trans")} dark-hover:${T("transDark")}`,o).add(""+O(G),s).add(v,s,Vr).add(A,i,Jr).remove("py-2",i).remove(O(G),g).add(x,a,Zr).add(w,l,Yr).add("flex items-center justify-center h-8 w-8",l&&i).add("border-solid",o).add("rounded-full",i).add("w-full",u).add("rounded",P||o||s).add("button",!i).add(F,g,Kr).add("hover:"+T("transLight"),g).add(t.class).remove(D).replace(h).add(y).get()),66048&e.$$.dirty[0]|512&e.$$.dirty[1]&&R&&n(6,k=R.flush().add(O(),g&&!f).get())},t=rn(t),[r,C,a,i,l,$,k,j,M,g,o,s,u,c,d,p,f,m,D,y,h,b,E,v,A,F,w,x,B,U,function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},()=>n(0,r=!r),()=>n(0,r=!r),L]}class eo extends vr{constructor(e){super(),Er(this,e,Qr,Gr,Xt,{value:0,outlined:10,text:11,block:12,disabled:2,icon:3,small:4,light:13,dark:14,flat:15,iconClass:16,color:17,href:5,fab:9,remove:18,add:19,replace:20,classes:1,basicClasses:21,outlinedClasses:22,textClasses:23,iconClasses:24,fabClasses:25,smallClasses:26,disabledClasses:27,elevationClasses:28},[-1,-1])}}function to(e){const t=e-1;return t*t*t+1}function no(e){return e*e}function ro(e){return-e*(e-2)}function oo(e,{delay:t=0,duration:n=400,easing:r=qt}){const o=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:r,css:e=>"opacity: "+e*o}}function so(e,{delay:t=0,duration:n=400,easing:r=to,x:o=0,y:s=0,opacity:u=0}){const a=getComputedStyle(e),i=+a.opacity,l="none"===a.transform?"":a.transform,c=i*(1-u);return{delay:t,duration:n,easing:r,css:(e,t)=>`\n\t\t\ttransform: ${l} translate(${(1-e)*o}px, ${(1-e)*s}px);\n\t\t\topacity: ${i-c*t}`}}function uo(e,{delay:t=0,duration:n=400,easing:r=to}){const o=getComputedStyle(e),s=+o.opacity,u=parseFloat(o.height),a=parseFloat(o.paddingTop),i=parseFloat(o.paddingBottom),l=parseFloat(o.marginTop),c=parseFloat(o.marginBottom),d=parseFloat(o.borderTopWidth),p=parseFloat(o.borderBottomWidth);return{delay:t,duration:n,easing:r,css:e=>`overflow: hidden;opacity: ${Math.min(20*e,1)*s};height: ${e*u}px;padding-top: ${e*a}px;padding-bottom: ${e*i}px;margin-top: ${e*l}px;margin-bottom: ${e*c}px;border-top-width: ${e*d}px;border-bottom-width: ${e*p}px;`}}function ao(e,{delay:t=0,duration:n=400,easing:r=to,start:o=0,opacity:s=0}){const u=getComputedStyle(e),a=+u.opacity,i="none"===u.transform?"":u.transform,l=1-o,c=a*(1-s);return{delay:t,duration:n,easing:r,css:(e,t)=>`\n\t\t\ttransform: ${i} scale(${1-l*t});\n\t\t\topacity: ${a-c*t}\n\t\t`}}function io(e){let t,n;return t=new Pr({props:{class:"pr-6",small:e[3],$$slots:{default:[lo]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};8&n&&(r.small=e[3]),4194305&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function lo(e){let t;return{c(){t=hn(e[0])},m(e,n){mn(e,t,n)},p(e,n){1&n&&xn(t,e[0])},d(e){e&&$n(t)}}}function co(e){let t,n;return{c(){t=Dn("div"),n=hn(e[2]),An(t,"class",e[5])},m(e,r){mn(e,t,r),fn(t,n)},p(e,r){4&r&&xn(n,e[2]),32&r&&An(t,"class",e[5])},d(e){e&&$n(t)}}}function po(e){let t,n,r,o,s,u,a,i,l,c,d=e[0]&&io(e);const p=e[20].default,f=en(p,e,e[22],null),m=f||function(e){let t;return{c(){t=hn(e[1])},m(e,n){mn(e,t,n)},p(e,n){2&n&&xn(t,e[1])},d(e){e&&$n(t)}}}(e);let $=e[2]&&co(e);return{c(){t=Dn("li"),d&&d.c(),n=Cn(),r=Dn("div"),o=Dn("div"),m&&m.c(),u=Cn(),$&&$.c(),An(o,"class",s=e[9].class),An(r,"class","flex flex-col p-0"),An(t,"class",e[6]),An(t,"tabindex",e[4])},m(s,p){mn(s,t,p),d&&d.m(t,null),fn(t,n),fn(t,r),fn(r,o),m&&m.m(o,null),fn(r,u),$&&$.m(r,null),i=!0,l||(c=[sn(a=e[7].call(null,t)),En(t,"keypress",e[8]),En(t,"click",e[8]),En(t,"click",e[21])],l=!0)},p(e,[u]){e[0]?d?(d.p(e,u),1&u&&ar(d,1)):(d=io(e),d.c(),ar(d,1),d.m(t,n)):d&&(sr(),ir(d,1,1,()=>{d=null}),ur()),f?f.p&&4194304&u&&nn(f,p,e,e[22],u,null,null):m&&m.p&&2&u&&m.p(e,u),(!i||512&u&&s!==(s=e[9].class))&&An(o,"class",s),e[2]?$?$.p(e,u):($=co(e),$.c(),$.m(r,null)):$&&($.d(1),$=null),(!i||64&u)&&An(t,"class",e[6]),(!i||16&u)&&An(t,"tabindex",e[4])},i(e){i||(ar(d),ar(m,e),i=!0)},o(e){ir(d),ir(m,e),i=!1},d(e){e&&$n(t),d&&d.d(),m&&m.d(e),$&&$.d(),l=!1,Yt(c)}}}const fo="focus:bg-gray-50 dark-focus:bg-gray-700 hover:bg-gray-transDark relative overflow-hidden duration-100 p-4 cursor-pointer text-gray-700 dark:text-gray-100 flex items-center z-10",mo="bg-gray-200 dark:bg-primary-transLight",$o="text-gray-600 p-0 text-sm";function go(e,t,n){let{icon:r=""}=t,{id:o=""}=t,{value:s=""}=t,{text:u=""}=t,{subheading:a=""}=t,{disabled:i=!1}=t,{dense:l=!1}=t,{selected:c=!1}=t,{tabindex:d=null}=t,{selectedClasses:p=mo}=t,{subheadingClasses:f=$o}=t,{to:m=""}=t;const $=_r(),g=Un();let{classes:D=fo}=t;const y=new Tr(D,fo);let h,{$$slots:C={},$$scope:b}=t;return e.$$set=e=>{n(9,t=Vt(Vt({},t),rn(e))),"icon"in e&&n(0,r=e.icon),"id"in e&&n(11,o=e.id),"value"in e&&n(10,s=e.value),"text"in e&&n(1,u=e.text),"subheading"in e&&n(2,a=e.subheading),"disabled"in e&&n(12,i=e.disabled),"dense"in e&&n(3,l=e.dense),"selected"in e&&n(13,c=e.selected),"tabindex"in e&&n(4,d=e.tabindex),"selectedClasses"in e&&n(14,p=e.selectedClasses),"subheadingClasses"in e&&n(5,f=e.subheadingClasses),"to"in e&&n(15,m=e.to),"classes"in e&&n(19,D=e.classes),"$$scope"in e&&n(22,b=e.$$scope)},e.$$.update=()=>{n(6,h=y.flush().add(p,c,mo).add("py-2",l).add("text-gray-600",i).add(t.class).get())},t=rn(t),[r,u,a,l,d,f,h,$,function(){i||(n(10,s=o),g("change",o,m))},t,s,o,i,c,p,m,null,[],null,D,C,function(t){Ln(e,t)},b]}class Do extends vr{constructor(e){super(),Er(this,e,go,po,Xt,{icon:0,id:11,value:10,text:1,subheading:2,disabled:12,dense:3,selected:13,tabindex:4,selectedClasses:14,subheadingClasses:5,to:15,item:16,items:17,level:18,classes:19})}get item(){return this.$$.ctx[16]}get items(){return this.$$.ctx[17]}get level(){return this.$$.ctx[18]}}const yo=e=>({item:2&e,dense:4&e,value:1&e}),ho=e=>({item:e[6],dense:e[2],value:e[0]}),Co=e=>({item:2&e,dense:4&e,value:1&e}),bo=e=>({item:e[6],dense:e[2],value:e[0]});function Eo(e,t,n){const r=e.slice();return r[6]=t[n],r[22]=n,r}function vo(e){let t;const n=e[12].item,r=en(n,e,e[18],ho),o=r||function(e){let t,n,r,o;const s=[{selectedClasses:e[4]},{itemClasses:e[5]},e[6],{tabindex:e[22]+1},{id:So(e[6])},{selected:e[0]===So(e[6])},{dense:e[2]}];function u(t){e[15].call(null,t)}let a={$$slots:{default:[Fo]},$$scope:{ctx:e}};for(let e=0;eDr(t,"value",u)),t.$on("change",e[16]),t.$on("click",e[17]),{c(){yr(t.$$.fragment),r=Cn()},m(e,n){hr(t,e,n),mn(e,r,n),o=!0},p(e,r){const o=55&r?$r(s,[16&r&&{selectedClasses:e[4]},32&r&&{itemClasses:e[5]},2&r&&gr(e[6]),s[3],2&r&&{id:So(e[6])},3&r&&{selected:e[0]===So(e[6])},4&r&&{dense:e[2]}]):{};262146&r&&(o.$$scope={dirty:r,ctx:e}),!n&&1&r&&(n=!0,o.value=e[0],Kn(()=>n=!1)),t.$set(o)},i(e){o||(ar(t.$$.fragment,e),o=!0)},o(e){ir(t.$$.fragment,e),o=!1},d(e){Cr(t,e),e&&$n(r)}}}(e);return{c(){o&&o.c()},m(e,n){o&&o.m(e,n),t=!0},p(e,t){r?r.p&&262151&t&&nn(r,n,e,e[18],t,yo,ho):o&&o.p&&7&t&&o.p(e,t)},i(e){t||(ar(o,e),t=!0)},o(e){ir(o,e),t=!1},d(e){o&&o.d(e)}}}function Ao(e){let t;const n=e[12].item,r=en(n,e,e[18],bo),o=r||function(e){let t,n,r,o,s,u,a;const i=[e[6],{id:So(e[6])},{dense:e[2]}];function l(t){e[13].call(null,t)}let c={$$slots:{default:[wo]},$$scope:{ctx:e}};for(let e=0;eDr(n,"value",l)),n.$on("change",e[14]),{c(){t=Dn("a"),yr(n.$$.fragment),u=Cn(),An(t,"tabindex",o=e[22]+1),An(t,"href",s=e[6].to)},m(e,r){mn(e,t,r),hr(n,t,null),mn(e,u,r),a=!0},p(e,o){const u=6&o?$r(i,[2&o&&gr(e[6]),2&o&&{id:So(e[6])},4&o&&{dense:e[2]}]):{};262146&o&&(u.$$scope={dirty:o,ctx:e}),!r&&1&o&&(r=!0,u.value=e[0],Kn(()=>r=!1)),n.$set(u),(!a||2&o&&s!==(s=e[6].to))&&An(t,"href",s)},i(e){a||(ar(n.$$.fragment,e),a=!0)},o(e){ir(n.$$.fragment,e),a=!1},d(e){e&&$n(t),Cr(n),e&&$n(u)}}}(e);return{c(){o&&o.c()},m(e,n){o&&o.m(e,n),t=!0},p(e,t){r?r.p&&262151&t&&nn(r,n,e,e[18],t,Co,bo):o&&o.p&&7&t&&o.p(e,t)},i(e){t||(ar(o,e),t=!0)},o(e){ir(o,e),t=!1},d(e){o&&o.d(e)}}}function Fo(e){let t,n=ko(e[6])+"";return{c(){t=hn(n)},m(e,n){mn(e,t,n)},p(e,r){2&r&&n!==(n=ko(e[6])+"")&&xn(t,n)},d(e){e&&$n(t)}}}function wo(e){let t,n=e[6].text+"";return{c(){t=hn(n)},m(e,n){mn(e,t,n)},p(e,r){2&r&&n!==(n=e[6].text+"")&&xn(t,n)},d(e){e&&$n(t)}}}function xo(e){let t,n,r,o;const s=[Ao,vo],u=[];function a(e,t){return void 0!==e[6].to?0:1}return t=a(e),n=u[t]=s[t](e),{c(){n.c(),r=bn()},m(e,n){u[t].m(e,n),mn(e,r,n),o=!0},p(e,o){let i=t;t=a(e),t===i?u[t].p(e,o):(sr(),ir(u[i],1,1,()=>{u[i]=null}),ur(),n=u[t],n||(n=u[t]=s[t](e),n.c()),ar(n,1),n.m(r.parentNode,r))},i(e){o||(ar(n),o=!0)},o(e){ir(n),o=!1},d(e){u[t].d(e),e&&$n(r)}}}function Bo(e){let t,n,r=e[1],o=[];for(let t=0;tir(o[e],1,1,()=>{o[e]=null});return{c(){t=Dn("ul");for(let e=0;e{n(20,t=Vt(Vt({},t),rn(e))),"items"in e&&n(1,r=e.items),"value"in e&&n(0,o=e.value),"dense"in e&&n(2,s=e.dense),"select"in e&&n(3,u=e.select),"classes"in e&&n(11,a=e.classes),"$$scope"in e&&n(18,d=e.$$scope)},e.$$.update=()=>{n(7,l=i.flush().add(a,!0,Po).add(t.class).get())},t=rn(t),[o,r,s,u,e=>e,e=>e,{},l,null,"",null,a,c,function(e){o=e,n(0,o)},function(t){Ln(e,t)},function(e){o=e,n(0,o)},function(t){Ln(e,t)},function(t){Ln(e,t)},d]}class To extends vr{constructor(e){super(),Er(this,e,Io,Bo,Xt,{items:1,value:0,dense:2,select:3,level:8,text:9,item:6,to:10,selectedClasses:4,itemClasses:5,classes:11})}get level(){return this.$$.ctx[8]}get text(){return this.$$.ctx[9]}get item(){return this.$$.ctx[6]}get to(){return this.$$.ctx[10]}get selectedClasses(){return this.$$.ctx[4]}get itemClasses(){return this.$$.ctx[5]}}const No=e=>({}),Oo=e=>({}),_o=e=>({}),Ro=e=>({}),jo=e=>({}),Mo=e=>({}),Uo=e=>({}),Lo=e=>({});function zo(e){let t,n,r,o,s,u;const a=e[6].title,i=en(a,e,e[5],Lo),l=e[6].media,c=en(l,e,e[5],Mo),d=e[6].default,p=en(d,e,e[5],null),f=e[6].text,m=en(f,e,e[5],Ro),$=e[6].actions,g=en($,e,e[5],Oo);return{c(){t=Dn("div"),i&&i.c(),n=Cn(),c&&c.c(),r=Cn(),p&&p.c(),o=Cn(),m&&m.c(),s=Cn(),g&&g.c(),An(t,"class",e[0])},m(e,a){mn(e,t,a),i&&i.m(t,null),fn(t,n),c&&c.m(t,null),fn(t,r),p&&p.m(t,null),fn(t,o),m&&m.m(t,null),fn(t,s),g&&g.m(t,null),u=!0},p(e,[n]){i&&i.p&&32&n&&nn(i,a,e,e[5],n,Uo,Lo),c&&c.p&&32&n&&nn(c,l,e,e[5],n,jo,Mo),p&&p.p&&32&n&&nn(p,d,e,e[5],n,null,null),m&&m.p&&32&n&&nn(m,f,e,e[5],n,_o,Ro),g&&g.p&&32&n&&nn(g,$,e,e[5],n,No,Oo),(!u||1&n)&&An(t,"class",e[0])},i(e){u||(ar(i,e),ar(c,e),ar(p,e),ar(m,e),ar(g,e),u=!0)},o(e){ir(i,e),ir(c,e),ir(p,e),ir(m,e),ir(g,e),u=!1},d(e){e&&$n(t),i&&i.d(e),c&&c.d(e),p&&p.d(e),m&&m.d(e),g&&g.d(e)}}}const Go="rounded inline-flex flex-col overflow-hidden duration-200 ease-in";function Wo(e,t,n){let{hover:r=!0}=t,{elevation:o=1}=t,{hoverElevation:s=8}=t,{classes:u=Go}=t;const a=new Tr(u,Go);let i,{$$slots:l={},$$scope:c}=t;return e.$$set=e=>{n(8,t=Vt(Vt({},t),rn(e))),"hover"in e&&n(1,r=e.hover),"elevation"in e&&n(2,o=e.elevation),"hoverElevation"in e&&n(3,s=e.hoverElevation),"classes"in e&&n(4,u=e.classes),"$$scope"in e&&n(5,c=e.$$scope)},e.$$.update=()=>{n(0,i=a.flush().add(`elevation-${o} hover:elevation-${s}`,r).add(u,!0,Go).add(t.class).get())},t=rn(t),[i,r,o,s,u,c,l]}function Ho(e){let t,n,r,o,s,u,a,i,l,c,d;return{c(){t=Dn("div"),n=Dn("div"),r=Dn("img"),s=Cn(),u=Dn("div"),a=Dn("div"),i=hn(e[0]),l=Cn(),c=Dn("div"),d=hn(e[1]),An(r,"class","rounded-full"),An(r,"width","44"),An(r,"height","44"),r.src!==(o=e[2])&&An(r,"src",o),An(r,"alt","avatar"),Sn(r,"hidden",!e[2]),An(a,"class","font-medium text-lg"),Sn(a,"hidden",!e[0]),An(c,"class","text-sm text-gray-600 pt-0"),Sn(c,"hidden",!e[1]),An(u,"class","pl-4 py-2"),An(t,"class",e[3])},m(e,o){mn(e,t,o),fn(t,n),fn(n,r),fn(t,s),fn(t,u),fn(u,a),fn(a,i),fn(u,l),fn(u,c),fn(c,d)},p(e,[n]){4&n&&r.src!==(o=e[2])&&An(r,"src",o),4&n&&Sn(r,"hidden",!e[2]),1&n&&xn(i,e[0]),1&n&&Sn(a,"hidden",!e[0]),2&n&&xn(d,e[1]),2&n&&Sn(c,"hidden",!e[1]),8&n&&An(t,"class",e[3])},i:Ht,o:Ht,d(e){e&&$n(t)}}}const qo="flex px-4 py-2 items-center";function Vo(e,t,n){let{title:r=""}=t,{subheader:o=""}=t,{avatar:s=""}=t,{classes:u=qo}=t;const a=new Tr(u,qo);let i;return e.$$set=e=>{n(7,t=Vt(Vt({},t),rn(e))),"title"in e&&n(0,r=e.title),"subheader"in e&&n(1,o=e.subheader),"avatar"in e&&n(2,s=e.avatar),"classes"in e&&n(5,u=e.classes)},e.$$.update=()=>{n(3,i=a.flush().add(u,!0,qo).add(t.class).get())},t=rn(t),[r,o,s,i,!0,u]}var Jo={Card:class extends vr{constructor(e){super(),Er(this,e,Wo,zo,Xt,{hover:1,elevation:2,hoverElevation:3,classes:4})}},Title:class extends vr{constructor(e){super(),Er(this,e,Vo,Ho,Xt,{hover:4,title:0,subheader:1,avatar:2,classes:5})}get hover(){return this.$$.ctx[4]}}};const Ko=e=>({}),Yo=e=>({}),Zo=e=>({item:1024&e}),Xo=e=>({item:e[10]}),Qo=e=>({item:1024&e}),es=e=>({item:e[10]}),ts=e=>({item:1024&e}),ns=e=>({item:e[10]}),rs=e=>({}),os=e=>({}),ss=e=>({}),us=e=>({});function as(e){let t,n;return t=new To({props:{items:e[0],$$slots:{item:[ps,({item:e})=>({10:e}),({item:e})=>e?1024:0]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.items=e[0]),1286&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function is(e){let t,n;const r=e[6].empty,o=en(r,e,e[8],os),s=o||function(e){let t;return{c(){t=hn("No items.")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}();return{c(){t=Dn("div"),s&&s.c(),An(t,"class","ml-8")},m(e,r){mn(e,t,r),s&&s.m(t,null),n=!0},p(e,t){o&&o.p&&256&t&&nn(o,r,e,e[8],t,rs,os)},i(e){n||(ar(s,e),n=!0)},o(e){ir(s,e),n=!1},d(e){e&&$n(t),s&&s.d(e)}}}function ls(e){let t;return{c(){t=hn(e[1])},m(e,n){mn(e,t,n)},p(e,n){2&n&&xn(t,e[1])},d(e){e&&$n(t)}}}function cs(e){let t,n,r,o;n=new Pr({props:{tip:e[2](e[10].id),$$slots:{default:[ls]},$$scope:{ctx:e}}});const s=e[6]["item-header"],u=en(s,e,e[8],ns),a=u||function(e){let t,n,r=e[10].text+"";return{c(){t=Dn("span"),n=hn(r)},m(e,r){mn(e,t,r),fn(t,n)},p(e,t){1024&t&&r!==(r=e[10].text+"")&&xn(n,r)},d(e){e&&$n(t)}}}(e);return{c(){t=Dn("div"),yr(n.$$.fragment),r=Cn(),a&&a.c(),An(t,"class","flex items-center")},m(e,s){mn(e,t,s),hr(n,t,null),fn(t,r),a&&a.m(t,null),o=!0},p(e,t){const r={};1028&t&&(r.tip=e[2](e[10].id)),258&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r),u?u.p&&1280&t&&nn(u,s,e,e[8],t,ts,ns):a&&a.p&&1024&t&&a.p(e,t)},i(e){o||(ar(n.$$.fragment,e),ar(a,e),o=!0)},o(e){ir(n.$$.fragment,e),ir(a,e),o=!1},d(e){e&&$n(t),Cr(n),a&&a.d(e)}}}function ds(e){let t,n,r;const o=e[6]["item-details"],s=en(o,e,e[8],Xo);return{c(){t=Dn("div"),s&&s.c(),An(t,"class","ml-10")},m(e,n){mn(e,t,n),s&&s.m(t,null),r=!0},p(e,t){s&&s.p&&1280&t&&nn(s,o,e,e[8],t,Zo,Xo)},i(e){r||(ar(s,e),n||Jn(()=>{n=cr(t,uo,{}),n.start()}),r=!0)},o(e){ir(s,e),r=!1},d(e){e&&$n(t),s&&s.d(e)}}}function ps(e){let t,n,r,o,s,u,a,i=e[2](e[10].id);const l=[{dense:!0},{selectedClasses:"bg-primary-trans"},{item:e[10]},e[10]];let c={$$slots:{default:[cs]},$$scope:{ctx:e}};for(let e=0;e{f=null}),ur())},i(e){a||(ar(r.$$.fragment,e),ar(p,e),ar(f),a=!0)},o(e){ir(r.$$.fragment,e),ir(p,e),ir(f),a=!1},d(e){e&&$n(t),Cr(r),p&&p.d(e),f&&f.d()}}}function fs(e){let t,n,r,o,s,u,a,i,l;const c=e[6].title,d=en(c,e,e[8],us),p=e[6].default,f=en(p,e,e[8],null),m=[is,as],$=[];function g(e,t){return 1&t&&(o=!(Array.isArray(e[0])&&0!==e[0].length)),o?0:1}s=g(e,-1),u=$[s]=m[s](e);const D=e[6].actions,y=en(D,e,e[8],Yo);return{c(){t=Dn("section"),d&&d.c(),n=Cn(),f&&f.c(),r=Cn(),u.c(),a=Cn(),i=Dn("div"),y&&y.c(),An(i,"class","actions svelte-h6khze"),An(t,"class","fullwidth px-2 py-2")},m(e,o){mn(e,t,o),d&&d.m(t,null),fn(t,n),f&&f.m(t,null),fn(t,r),$[s].m(t,null),fn(t,a),fn(t,i),y&&y.m(i,null),l=!0},p(e,[n]){d&&d.p&&256&n&&nn(d,c,e,e[8],n,ss,us),f&&f.p&&256&n&&nn(f,p,e,e[8],n,null,null);let r=s;s=g(e,n),s===r?$[s].p(e,n):(sr(),ir($[r],1,1,()=>{$[r]=null}),ur(),u=$[s],u||(u=$[s]=m[s](e),u.c()),ar(u,1),u.m(t,a)),y&&y.p&&256&n&&nn(y,D,e,e[8],n,Ko,Yo)},i(e){l||(ar(d,e),ar(f,e),ar(u),ar(y,e),l=!0)},o(e){ir(d,e),ir(f,e),ir(u),ir(y,e),l=!1},d(e){e&&$n(t),d&&d.d(e),f&&f.d(e),$[s].d(),y&&y.d(e)}}}function ms(e,t,n){let{items:r=[]}=t,{expandIcon:o="arrow_right"}=t,{expandDefault:s=!1}=t,{storeKey:u=""}=t,a=u?JSON.parse(localStorage.getItem("ListCard."+u)||"[]"):[];const i=e=>{a.includes(e)?n(9,a=a.filter(t=>e!==t)):n(9,a=[...a,e]),u&&localStorage.setItem("ListCard."+u,JSON.stringify(a))};let{$$slots:l={},$$scope:c}=t;let d;return e.$$set=e=>{"items"in e&&n(0,r=e.items),"expandIcon"in e&&n(1,o=e.expandIcon),"expandDefault"in e&&n(4,s=e.expandDefault),"storeKey"in e&&n(5,u=e.storeKey),"$$scope"in e&&n(8,c=e.$$scope)},e.$$.update=()=>{528&e.$$.dirty&&n(2,d=e=>a.includes(e)!==s)},[r,o,d,i,s,u,l,e=>i(e.id),c]}class $s extends vr{constructor(e){super(),Er(this,e,ms,fs,Xt,{items:0,expandIcon:1,expandDefault:4,storeKey:5})}}function gs(e){let t,n,r;const o=e[16].default,s=en(o,e,e[15],null);let u=[{class:n=e[0]+" "+e[2].class},e[1]],a={};for(let e=0;ee;const E=Or(["focused","error","outlined","labelOnTop","prepend","color","dense"],t);let{$$slots:v={},$$scope:A}=t;return e.$$set=e=>{n(2,t=Vt(Vt({},t),rn(e))),"focused"in e&&n(3,r=e.focused),"error"in e&&n(4,o=e.error),"outlined"in e&&n(5,s=e.outlined),"labelOnTop"in e&&n(6,u=e.labelOnTop),"prepend"in e&&n(7,a=e.prepend),"color"in e&&n(8,i=e.color),"bgColor"in e&&n(9,l=e.bgColor),"dense"in e&&n(10,c=e.dense),"add"in e&&n(11,p=e.add),"remove"in e&&n(12,f=e.remove),"replace"in e&&n(13,m=e.replace),"labelClasses"in e&&n(14,$=e.labelClasses),"$$scope"in e&&n(15,A=e.$$scope)},e.$$.update=()=>{16120&e.$$.dirty&&n(0,b=C.flush().add(y(),r&&!o).add("text-error-500",r&&o).add("label-top text-xs",u).add("text-xs",r).remove("pt-4 pb-2 px-4 px-1 pt-0",u&&s).add(`ml-3 p-1 pt-0 mt-0 bg-${l} dark:bg-dark-500`,u&&s).remove("px-4",a).add("pr-4 pl-10",a).remove("pt-4",c).add("pt-3",c).add(p).remove(f).replace(m).get())},t=rn(t),[b,E,t,r,o,s,u,a,i,l,c,p,f,m,$,A,v]}class ys extends vr{constructor(e){super(),Er(this,e,Ds,gs,Xt,{focused:3,error:4,outlined:5,labelOnTop:6,prepend:7,color:8,bgColor:9,dense:10,add:11,remove:12,replace:13,labelClasses:14})}}function hs(e){let t,n,r,o,s,u,a=(e[1]||"")+"",i=(e[0]||"")+"";return{c(){t=Dn("div"),n=hn(a),r=Cn(),o=hn(i),An(t,"class",e[3])},m(e,s){mn(e,t,s),fn(t,n),fn(t,r),fn(t,o),u=!0},p(e,[r]){(!u||2&r)&&a!==(a=(e[1]||"")+"")&&xn(n,a),(!u||1&r)&&i!==(i=(e[0]||"")+"")&&xn(o,i),(!u||8&r)&&An(t,"class",e[3])},i(n){u||(Jn(()=>{s||(s=pr(t,so,e[2],!0)),s.run(1)}),u=!0)},o(n){s||(s=pr(t,so,e[2],!1)),s.run(0),u=!1},d(e){e&&$n(t),e&&s&&s.end()}}}function Cs(e,t,n){let{error:r=!1}=t,{hint:o=""}=t,{add:s=""}=t,{remove:u=""}=t,{replace:a=""}=t,{transitionProps:i={y:-10,duration:100,easing:ro}}=t;const l=new Tr(t.class,"text-xs py-1 pl-4 absolute bottom-1 left-0");Or(["error","hint"],t);let c;return e.$$set=e=>{n(10,t=Vt(Vt({},t),rn(e))),"error"in e&&n(0,r=e.error),"hint"in e&&n(1,o=e.hint),"add"in e&&n(4,s=e.add),"remove"in e&&n(5,u=e.remove),"replace"in e&&n(6,a=e.replace),"transitionProps"in e&&n(2,i=e.transitionProps)},e.$$.update=()=>{115&e.$$.dirty&&n(3,c=l.flush().add("text-error-500",r).add("text-gray-600",o).add(s).remove(u).replace(a).get())},t=rn(t),[r,o,i,c,s,u,a]}class bs extends vr{constructor(e){super(),Er(this,e,Cs,hs,Xt,{error:0,hint:1,add:4,remove:5,replace:6,transitionProps:2})}}function Es(e){let t,n,r,o;return{c(){t=Dn("div"),n=Dn("div"),An(n,"class",r=on(e[2])+" svelte-xd9zs6"),Pn(n,"height","2px"),Pn(n,"transition","width .2s ease"),An(t,"class",o="line absolute bottom-0 left-0 w-full bg-gray-600 "+e[3].class+" svelte-xd9zs6"),Sn(t,"hidden",e[0]||e[1])},m(e,r){mn(e,t,r),fn(t,n)},p(e,[s]){4&s&&r!==(r=on(e[2])+" svelte-xd9zs6")&&An(n,"class",r),8&s&&o!==(o="line absolute bottom-0 left-0 w-full bg-gray-600 "+e[3].class+" svelte-xd9zs6")&&An(t,"class",o),11&s&&Sn(t,"hidden",e[0]||e[1])},i:Ht,o:Ht,d(e){e&&$n(t)}}}function vs(e,t,n){let{noUnderline:r=!1}=t,{outlined:o=!1}=t,{focused:s=!1}=t,{error:u=!1}=t,{color:a="primary"}=t,i="mx-auto w-0",{add:l=""}=t,{remove:c=""}=t,{replace:d=""}=t,{lineClasses:p=i}=t;const{bg:f,border:m,txt:$,caret:g}=Ir(a),D=new Tr(p,i);Or(["focused","error","outlined","labelOnTop","prepend","bgcolor","color"],t);let y;return e.$$set=e=>{n(3,t=Vt(Vt({},t),rn(e))),"noUnderline"in e&&n(0,r=e.noUnderline),"outlined"in e&&n(1,o=e.outlined),"focused"in e&&n(4,s=e.focused),"error"in e&&n(5,u=e.error),"color"in e&&n(6,a=e.color),"add"in e&&n(7,l=e.add),"remove"in e&&n(8,c=e.remove),"replace"in e&&n(9,d=e.replace),"lineClasses"in e&&n(10,p=e.lineClasses)},e.$$.update=()=>{944&e.$$.dirty&&n(2,y=D.flush().add($(),s&&!u).add("bg-error-500",u).add("w-full",s||u).add(f(),s).add(l).remove(c).replace(d).get())},t=rn(t),[r,o,y,t,s,u,a,l,c,d,p]}class As extends vr{constructor(e){super(),Er(this,e,vs,Es,Xt,{noUnderline:0,outlined:1,focused:4,error:5,color:6,add:7,remove:8,replace:9,lineClasses:10})}}const Fs=e=>({}),ws=e=>({}),xs=e=>({}),Bs=e=>({}),Ps=e=>({}),Ss=e=>({});function ks(e){let t;const n=e[40].label,r=en(n,e,e[60],Ss),o=r||function(e){let t,n;return t=new ys({props:{labelOnTop:e[25],focused:e[1],error:e[6],outlined:e[2],prepend:e[8],color:e[17],bgColor:e[18],dense:e[12]&&!e[2],$$slots:{default:[Is]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};33554432&n[0]&&(r.labelOnTop=e[25]),2&n[0]&&(r.focused=e[1]),64&n[0]&&(r.error=e[6]),4&n[0]&&(r.outlined=e[2]),256&n[0]&&(r.prepend=e[8]),131072&n[0]&&(r.color=e[17]),262144&n[0]&&(r.bgColor=e[18]),4100&n[0]&&(r.dense=e[12]&&!e[2]),8&n[0]|536870912&n[1]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}(e);return{c(){o&&o.c()},m(e,n){o&&o.m(e,n),t=!0},p(e,t){r?r.p&&536870912&t[1]&&nn(r,n,e,e[60],t,Ps,Ss):o&&o.p&&33952078&t[0]&&o.p(e,t)},i(e){t||(ar(o,e),t=!0)},o(e){ir(o,e),t=!1},d(e){o&&o.d(e)}}}function Is(e){let t;return{c(){t=hn(e[3])},m(e,n){mn(e,t,n)},p(e,n){8&n[0]&&xn(t,e[3])},d(e){e&&$n(t)}}}function Ts(e){let t,n,r;return{c(){t=Dn("input"),t.readOnly=!0,An(t,"class",e[26]),t.disabled=e[20],t.value=e[0]},m(o,s){mn(o,t,s),n||(r=[En(t,"change",e[51]),En(t,"input",e[52]),En(t,"click",e[53]),En(t,"blur",e[54]),En(t,"focus",e[55])],n=!0)},p(e,n){67108864&n[0]&&An(t,"class",e[26]),1048576&n[0]&&(t.disabled=e[20]),1&n[0]&&t.value!==e[0]&&(t.value=e[0])},d(e){e&&$n(t),n=!1,Yt(r)}}}function Ns(e){let t,n,r,o,s=[{rows:e[10]},{"aria-label":e[3]},{class:e[26]},{disabled:e[20]},e[29],{placeholder:n=e[0]?"":e[4]}],u={};for(let e=0;e{l=null}),ur()),d===(d=c(e))&&p?p.p(e,a):(p&&p.d(1),p=d&&d(e),p&&(p.c(),p.m(t,r))),e[7]?f?(f.p(e,a),128&a[0]&&ar(f,1)):(f=_s(e),f.c(),ar(f,1),f.m(t,o)):f&&(sr(),ir(f,1,1,()=>{f=null}),ur()),e[8]?m?(m.p(e,a),256&a[0]&&ar(m,1)):(m=js(e),m.c(),ar(m,1),m.m(t,s)):m&&(sr(),ir(m,1,1,()=>{m=null}),ur());const g={};16384&a[0]&&(g.noUnderline=e[14]),4&a[0]&&(g.outlined=e[2]),2&a[0]&&(g.focused=e[1]),64&a[0]&&(g.error=e[6]),u.$set(g),e[24]?$?($.p(e,a),16777216&a[0]&&ar($,1)):($=Us(e),$.c(),ar($,1),$.m(t,null)):$&&(sr(),ir($,1,1,()=>{$=null}),ur()),(!i||2097152&a[0])&&An(t,"class",e[21])},i(e){i||(ar(l),ar(f),ar(m),ar(u.$$.fragment,e),ar($),i=!0)},o(e){ir(l),ir(f),ir(m),ir(u.$$.fragment,e),ir($),i=!1},d(e){e&&$n(t),l&&l.d(),p&&p.d(),f&&f.d(),m&&m.d(),Cr(u),$&&$.d()}}}const zs="mt-2 mb-6 relative text-gray-600 dark:text-gray-100",Gs="absolute right-0 top-0 pb-2 pr-4 pt-4 text-gray-700 z-10",Ws="absolute left-0 top-0 pb-2 pl-2 pt-4 text-xs text-gray-700 z-10";function Hs(e,t,n){let{outlined:r=!1}=t,{value:o=null}=t,{label:s=""}=t,{placeholder:u=""}=t,{hint:a=""}=t,{error:i=!1}=t,{append:l=""}=t,{prepend:c=""}=t,{persistentHint:d=!1}=t,{textarea:p=!1}=t,{rows:f=5}=t,{select:m=!1}=t,{dense:$=!1}=t,{autocomplete:g=!1}=t,{noUnderline:D=!1}=t,{appendReverse:y=!1}=t,{prependReverse:h=!1}=t,{color:C="primary"}=t,{bgColor:b="white"}=t,{iconClass:E=""}=t,{disabled:v=!1}=t;const A="duration-200 ease-in pb-2 pt-6 px-4 rounded-t text-black dark:text-gray-100 w-full";let{add:F=""}=t,{remove:w=""}=t,{replace:x=""}=t,{inputClasses:B=A}=t,{classes:P=zs}=t,{appendClasses:S=Gs}=t,{prependClasses:k=Ws}=t;const{bg:I,border:T,txt:N,caret:O}=Ir(C),_=new Tr(B,A),R=new Tr(P,zs),j=new Tr(S,Gs),M=new Tr(k,Ws);let{extend:U=(()=>{})}=t,{focused:L=!1}=t,z=e=>e,G=e=>e,W=e=>e;const H=Or(["outlined","label","placeholder","hint","error","append","prepend","persistentHint","textarea","rows","select","autocomplete","noUnderline","appendReverse","prependReverse","color","bgColor","disabled","replace","remove","small"],t),q=Un();let{$$slots:V={},$$scope:J}=t;let K,Y,Z;return e.$$set=e=>{n(69,t=Vt(Vt({},t),rn(e))),"outlined"in e&&n(2,r=e.outlined),"value"in e&&n(0,o=e.value),"label"in e&&n(3,s=e.label),"placeholder"in e&&n(4,u=e.placeholder),"hint"in e&&n(5,a=e.hint),"error"in e&&n(6,i=e.error),"append"in e&&n(7,l=e.append),"prepend"in e&&n(8,c=e.prepend),"persistentHint"in e&&n(31,d=e.persistentHint),"textarea"in e&&n(9,p=e.textarea),"rows"in e&&n(10,f=e.rows),"select"in e&&n(11,m=e.select),"dense"in e&&n(12,$=e.dense),"autocomplete"in e&&n(13,g=e.autocomplete),"noUnderline"in e&&n(14,D=e.noUnderline),"appendReverse"in e&&n(15,y=e.appendReverse),"prependReverse"in e&&n(16,h=e.prependReverse),"color"in e&&n(17,C=e.color),"bgColor"in e&&n(18,b=e.bgColor),"iconClass"in e&&n(19,E=e.iconClass),"disabled"in e&&n(20,v=e.disabled),"add"in e&&n(32,F=e.add),"remove"in e&&n(33,w=e.remove),"replace"in e&&n(34,x=e.replace),"inputClasses"in e&&n(35,B=e.inputClasses),"classes"in e&&n(36,P=e.classes),"appendClasses"in e&&n(37,S=e.appendClasses),"prependClasses"in e&&n(38,k=e.prependClasses),"extend"in e&&n(39,U=e.extend),"focused"in e&&n(1,L=e.focused),"$$scope"in e&&n(60,J=e.$$scope)},e.$$.update=()=>{98&e.$$.dirty[0]|1&e.$$.dirty[1]&&n(24,K=i||(d||L)&&a),19&e.$$.dirty[0]&&n(25,Y=u||L||o||0===o),n(26,Z=_.flush().remove("pt-6 pb-2",r).add("border rounded bg-transparent py-4 duration-200 ease-in",r).add("border-error-500 caret-error-500",i).remove(O(),i).add(O(),!i).add(T(),L&&!i).add("border-gray-600",!i&&!L).add("bg-gray-100 dark:bg-dark-600",!r).add("bg-gray-300 dark:bg-dark-200",L&&!r).remove("px-4",c).add("pr-4 pl-10",c).add(F).remove("pt-6 pb-2",$&&!r).add("pt-4 pb-1",$&&!r).remove("bg-gray-100",v).add("bg-gray-50",v).add("cursor-pointer",m&&!g).add(t.class).remove(w).replace(x).extend(U).get()),1062980&e.$$.dirty[0]&&n(21,z=R.flush().add("select",m||g).add("dense",$&&!r).remove("mb-6 mt-2",$&&!r).add("mb-4 mt-1",$).replace({"text-gray-600":"text-error-500"},i).add("text-gray-200",v).get())},n(22,G=j.flush().get()),n(23,W=M.flush().get()),t=rn(t),[o,L,r,s,u,a,i,l,c,p,f,m,$,g,D,y,h,C,b,E,v,z,G,W,K,Y,Z,N,function(){n(1,L=!L)},H,q,d,F,w,x,B,P,S,k,U,V,function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(){o=this.value,n(0,o)},function(){o=this.value,n(0,o)},()=>q("click-append"),()=>q("click-prepend"),J]}class qs extends vr{constructor(e){super(),Er(this,e,Hs,Ls,Xt,{outlined:2,value:0,label:3,placeholder:4,hint:5,error:6,append:7,prepend:8,persistentHint:31,textarea:9,rows:10,select:11,dense:12,autocomplete:13,noUnderline:14,appendReverse:15,prependReverse:16,color:17,bgColor:18,iconClass:19,disabled:20,add:32,remove:33,replace:34,inputClasses:35,classes:36,appendClasses:37,prependClasses:38,extend:39,focused:1},[-1,-1,-1])}}function Vs(e){let t,n,r,o,s,u;const a=e[6].default,i=en(a,e,e[5],null);return{c(){t=Dn("span"),i&&i.c(),An(t,"class",n="z-40 "+e[3].class+" p-2 rounded-full flex items-center justify-center top-0 left-0 "+(e[0]?"":e[2])+" svelte-1o8z87d")},m(n,a){mn(n,t,a),i&&i.m(t,null),o=!0,s||(u=sn(r=e[1].call(null,t)),s=!0)},p(e,[r]){i&&i.p&&32&r&&nn(i,a,e,e[5],r,null,null),(!o||13&r&&n!==(n="z-40 "+e[3].class+" p-2 rounded-full flex items-center justify-center top-0 left-0 "+(e[0]?"":e[2])+" svelte-1o8z87d"))&&An(t,"class",n)},i(e){o||(ar(i,e),o=!0)},o(e){ir(i,e),o=!1},d(e){e&&$n(t),i&&i.d(e),s=!1,u()}}}function Js(e,t,n){let r,o,{color:s="primary"}=t,{noHover:u=!1}=t,{$$slots:a={},$$scope:i}=t;return e.$$set=e=>{n(3,t=Vt(Vt({},t),rn(e))),"color"in e&&n(4,s=e.color),"noHover"in e&&n(0,u=e.noHover),"$$scope"in e&&n(5,i=e.$$scope)},e.$$.update=()=>{16&e.$$.dirty&&n(1,r=_r(s,!0)),16&e.$$.dirty&&n(2,o=`hover:bg-${s}-transLight`)},t=rn(t),[u,r,o,t,s,i,a]}class Ks extends vr{constructor(e){super(),Er(this,e,Js,Vs,Xt,{color:4,noHover:0})}}function Ys(e){let t,n;return{c(){t=Dn("div"),An(t,"class",e[6]),An(t,"style",n=e[0]?"left: 1.25rem":"")},m(e,n){mn(e,t,n)},p(e,r){64&r&&An(t,"class",e[6]),1&r&&n!==(n=e[0]?"left: 1.25rem":"")&&An(t,"style",n)},d(e){e&&$n(t)}}}function Zs(e){let t,n,r,o,s,u,a,i,l,c,d,p,f;return a=new Ks({props:{color:e[0]&&!e[3]?e[2]:"gray",noHover:!0,$$slots:{default:[Ys]},$$scope:{ctx:e}}}),{c(){t=Dn("div"),n=Dn("input"),r=Cn(),o=Dn("div"),s=Dn("div"),u=Cn(),yr(a.$$.fragment),i=Cn(),l=Dn("label"),c=hn(e[1]),An(n,"class","hidden"),An(n,"type","checkbox"),An(s,"class","w-full h-full absolute"),An(o,"class",e[5]),An(l,"aria-hidden","true"),An(l,"class",e[7]),An(t,"class",e[4])},m(m,$){mn(m,t,$),fn(t,n),Bn(n,e[0]),fn(t,r),fn(t,o),fn(o,s),fn(o,u),hr(a,o,null),fn(t,i),fn(t,l),fn(l,c),d=!0,p||(f=[En(n,"change",e[14]),En(n,"change",e[13]),En(t,"click",e[8])],p=!0)},p(e,[r]){1&r&&Bn(n,e[0]);const s={};13&r&&(s.color=e[0]&&!e[3]?e[2]:"gray"),2097217&r&&(s.$$scope={dirty:r,ctx:e}),a.$set(s),(!d||32&r)&&An(o,"class",e[5]),(!d||2&r)&&xn(c,e[1]),(!d||128&r)&&An(l,"class",e[7]),(!d||16&r)&&An(t,"class",e[4])},i(e){d||(ar(a.$$.fragment,e),d=!0)},o(e){ir(a.$$.fragment,e),d=!1},d(e){e&&$n(t),Cr(a),p=!1,Yt(f)}}}const Xs="relative w-10 h-auto z-0 rounded-full overflow-visible flex items-center justify-center",Qs="rounded-full p-2 w-5 h-5 absolute elevation-3 duration-100",eu="pl-2 cursor-pointer";function tu(e,t,n){const r="inline-flex items-center mb-2 cursor-pointer z-10";let{value:o=!1}=t,{label:s=""}=t,{color:u="primary"}=t,{disabled:a=!1}=t,{trackClasses:i=Xs}=t,{thumbClasses:l=Qs}=t,{labelClasses:c=eu}=t,{classes:d=r}=t;const p=new Tr(d,r),f=new Tr(i,Xs),m=new Tr(l,Qs),$=new Tr(c,eu);let g,D,y,h;return e.$$set=e=>{n(20,t=Vt(Vt({},t),rn(e))),"value"in e&&n(0,o=e.value),"label"in e&&n(1,s=e.label),"color"in e&&n(2,u=e.color),"disabled"in e&&n(3,a=e.disabled),"trackClasses"in e&&n(9,i=e.trackClasses),"thumbClasses"in e&&n(10,l=e.thumbClasses),"labelClasses"in e&&n(11,c=e.labelClasses),"classes"in e&&n(12,d=e.classes)},e.$$.update=()=>{n(4,g=p.flush().add(d,!0,r).add(t.class).get()),517&e.$$.dirty&&n(5,D=f.flush().add("bg-gray-700",!o).add(`bg-${u}-200`,o).add(i,!0,Xs).get()),1029&e.$$.dirty&&n(6,y=m.flush().add(l,!0,Qs).add("bg-white left-0",!o).add(`bg-${u}-400`,o).get()),2056&e.$$.dirty&&n(7,h=$.flush().add(c,!0,eu).add("text-gray-500",a).add("text-gray-700",!a).get())},t=rn(t),[o,s,u,a,g,D,y,h,function(){a||n(0,o=!o)},i,l,c,d,function(t){Ln(e,t)},function(){o=this.value,n(0,o)}]}class nu extends vr{constructor(e){super(),Er(this,e,tu,Zs,Xt,{value:0,label:1,color:2,disabled:3,trackClasses:9,thumbClasses:10,labelClasses:11,classes:12})}}var ru={money:{width:1920,height:1792,paths:[{d:"M768 1152h384v-96h-128v-448h-114l-148 137 77 80q42-37 55-57h2v288h-128v96zM1280 896q0 70-21 142t-59.5 134-101.5 101-138 39-138-39-101.5-101-59.5-134-21-142 21-142 59.5-134 101.5-101 138-39 138 39 101.5 101 59.5 134 21 142zM1792 1152v-512q-106 0-181-75t-75-181h-1152q0 106-75 181t-181 75v512q106 0 181 75t75 181h1152q0-106 75-181t181-75zM1920 320v1152q0 26-19 45t-45 19h-1792q-26 0-45-19t-19-45v-1152q0-26 19-45t45-19h1792q26 0 45 19t19 45z"}]}};function ou(e){let t;return{c(){t=hn(e[5])},m(e,n){mn(e,t,n)},p(e,n){32&n&&xn(t,e[5])},d(e){e&&$n(t)}}}function su(e){let t,n,r,o,s,u,a,i,l,c,d;function p(e,t){return e[3]?au:uu}let f=p(e),m=f(e);function $(t){e[11].call(null,t)}let g={hint:"Alleged name: "+JSON.stringify(e[4]),label:"Dapp petname"};return void 0!==e[2]&&(g.value=e[2]),o=new qs({props:g}),Gn.push(()=>Dr(o,"value",$)),i=new nu({props:{value:e[3],label:"Enabled"}}),{c(){t=Dn("div"),m.c(),n=Cn(),r=Dn("div"),yr(o.$$.fragment),u=Cn(),a=Dn("div"),yr(i.$$.fragment)},m(s,p){mn(s,t,p),m.m(t,null),mn(s,n,p),mn(s,r,p),hr(o,r,null),mn(s,u,p),mn(s,a,p),hr(i,a,null),l=!0,c||(d=[En(r,"keydown",e[9],!0),En(a,"click",vn(e[8]),!0)],c=!0)},p(e,n){f===(f=p(e))&&m?m.p(e,n):(m.d(1),m=f(e),m&&(m.c(),m.m(t,null)));const r={};16&n&&(r.hint="Alleged name: "+JSON.stringify(e[4])),!s&&4&n&&(s=!0,r.value=e[2],Kn(()=>s=!1)),o.$set(r);const u={};8&n&&(u.value=e[3]),i.$set(u)},i(e){l||(ar(o.$$.fragment,e),ar(i.$$.fragment,e),l=!0)},o(e){ir(o.$$.fragment,e),ir(i.$$.fragment,e),l=!1},d(e){e&&$n(t),m.d(),e&&$n(n),e&&$n(r),Cr(o),e&&$n(u),e&&$n(a),Cr(i),c=!1,Yt(d)}}}function uu(e){let t,n,r,o=(e[6]||e[7])+"";return{c(){t=hn("Alleged user interface: "),n=Dn("strikethrough"),r=hn(o)},m(e,o){mn(e,t,o),mn(e,n,o),fn(n,r)},p(e,t){192&t&&o!==(o=(e[6]||e[7])+"")&&xn(r,o)},d(e){e&&$n(t),e&&$n(n)}}}function au(e){let t,n,r,o,s=(e[6]||e[7])+"";return{c(){t=hn("User interface: "),n=Dn("a"),r=hn(s),An(n,"target","_blank"),An(n,"href",o=e[6]||e[7])},m(e,o){mn(e,t,o),mn(e,n,o),fn(n,r)},p(e,t){192&t&&s!==(s=(e[6]||e[7])+"")&&xn(r,s),192&t&&o!==(o=e[6]||e[7])&&An(n,"href",o)},d(e){e&&$n(t),e&&$n(n)}}}function iu(e){let t,n,r,o=e[1]&&ou(e),s=e[0]&&su(e);return{c(){t=Dn("div"),o&&o.c(),n=Cn(),s&&s.c()},m(e,u){mn(e,t,u),o&&o.m(t,null),fn(t,n),s&&s.m(t,null),r=!0},p(e,[r]){e[1]?o?o.p(e,r):(o=ou(e),o.c(),o.m(t,n)):o&&(o.d(1),o=null),e[0]?s?(s.p(e,r),1&r&&ar(s,1)):(s=su(e),s.c(),ar(s,1),s.m(t,null)):s&&(sr(),ir(s,1,1,()=>{s=null}),ur())},i(e){r||(ar(s),r=!0)},o(e){ir(s),r=!1},d(e){e&&$n(t),o&&o.d(),s&&s.d()}}}function lu(e,t,n){let{item:r}=t,{details:o=!0}=t,{summary:s=!0}=t,u=r.petname||r.suggestedPetname;let a,i,l,c,d,p;return e.$$set=e=>{"item"in e&&n(10,r=e.item),"details"in e&&n(0,o=e.details),"summary"in e&&n(1,s=e.summary)},e.$$.update=()=>{1024&e.$$.dirty&&n(3,({enable:a,actions:i,suggestedPetname:l,petname:c,dappOrigin:d,origin:p}=r),a,(n(4,l),n(10,r)),(n(5,c),n(10,r)),(n(6,d),n(10,r)),(n(7,p),n(10,r)))},[o,s,u,a,l,c,d,p,()=>{a?wr(wr(i).setPetname(u)).disable():wr(wr(i).setPetname(u)).enable()},e=>{"Escape"===e.key?(n(2,u=c),e.stopPropagation()):"Enter"===e.key&&(wr(i).setPetname(u),e.stopPropagation())},r,function(e){u=e,n(2,u)}]}class cu extends vr{constructor(e){super(),Er(this,e,lu,iu,Xt,{item:10,details:0,summary:1})}}const du=[];function pu(e,t=Ht){let n;const r=[];function o(t){if(Xt(e,t)&&(e=t,n)){const t=!du.length;for(let t=0;t{const e=r.indexOf(a);-1!==e&&r.splice(e,1),0===r.length&&(n(),n=null)}}}}const fu=globalThis.HandledPromise||Promise,mu=harden(e=>{});function $u(){let e=mu,t=mu;const n=new fu((n,r)=>{e=n,t=r});return n.domain&&delete n.domain,harden({promise:n,resolve:e,reject:t})}function gu(e){return Promise.resolve(e)===e}harden($u),harden(gu);const{freeze:Du}=Object,yu=globalThis.assert;if(void 0===yu)throw new Error("Cannot initialize @agoric/assert, missing globalThis.assert");const hu=["fail","equal","typeof","string","note","details","quote"].filter(e=>void 0===yu[e]);if(hu.length>0)throw new Error("Cannot initialize @agoric/assert, missing globalThis.assert methods "+hu.join(", "));const{details:Cu,quote:bu}=yu;Du((function(e){return(e=""+e).length>=1&&"aeiouAEIOU".includes(e[0])?"an "+e:"a "+e}));const Eu=e=>harden({[Symbol.asyncIterator]:()=>{let t,n;return harden({next:()=>(n||(n=wr(e).getUpdateSince(t).then(({value:e,updateCount:r})=>{t=r;const o=void 0===t;return o||(n=void 0),harden({value:e,done:o})})),n)})}}),vu=(e,t)=>((e,t)=>new Promise(n=>{const r=()=>{wr.when(wr(e).next(),({value:e,done:o})=>{o?(t.finish&&t.finish(e),n()):(t.updateState&&t.updateState(e),r())},e=>{t.fail&&t.fail(e),n()})};r()}))(wr(e)[Symbol.asyncIterator](),t),Au=(e,t)=>vu(Eu(t),e),Fu=e=>{const t=Eu(e);return harden({...t,getSharableNotifierInternals:()=>e})},wu=(...e)=>{let t,n=$u(),r=1;const o=()=>void 0===r,s=harden({getUpdateSince:(e=NaN)=>void 0!==t&&(o()||t&&t.updateCount!==e)?(yu(void 0!==t),Promise.resolve(t)):(yu(n),n.promise)}),u=harden({...Fu(s),...s}),a=harden({updateState(e){if(o())throw new Error("Cannot update state after termination.");yu(n&&r),r+=1,t=harden({value:e,updateCount:r}),n.resolve(t),n=$u()},finish(e){if(o())throw new Error("Cannot finish after termination.");yu(n),r=void 0,t=harden({value:e,updateCount:r}),n.resolve(t),n=void 0},fail(e){if(o())throw new Error("Cannot fail after termination.");yu(n),r=void 0,t=void 0,n.promise.catch(e=>{}),n.reject(e)}});return e.length>=1&&a.updateState(e[0]),harden({notifier:u,updater:a})},xu=e=>harden({[Symbol.asyncIterator]:()=>Bu(e),getSharableSubscriptionInternals:()=>e});harden(xu);const Bu=e=>harden({subscribe:()=>xu(e),[Symbol.asyncIterator]:()=>Bu(e),next:()=>{const t=wr.G(e).head;return e=wr.G(e).tail,t}});harden(()=>{let e;const t=xu(new Fr(t=>e=t)),n=harden({updateState:t=>{if(void 0===e)throw new Error("Cannot update state after termination.");const{promise:n,resolve:r}=$u();e(harden({head:{value:t,done:!1},tail:n})),e=r},finish:t=>{if(void 0===e)throw new Error("Cannot finish after termination.");const n=Fr.reject(new Error("cannot read past end of iteration"));n.catch(e=>{}),e({head:{value:t,done:!0},tail:n}),e=void 0},fail:t=>{if(void 0===e)throw new Error("Cannot fail after termination.");e(Fr.reject(t)),e=void 0}});return harden({publication:n,subscription:t})});const Pu="5000"===location.port?"http://localhost:8000":location;function Su(e,{onOpen:t,onMessage:n,onClose:r}){const[o,s]=function(e,t){const n=pu(e,t);return[{subscribe:n.subscribe},n.set]}(!1),u=new URL(e,Pu);u.protocol=u.protocol.replace(/^http/,"ws"),u.protocol.startsWith("ws")||(u.protocol="ws");let a;function i(){console.log("Reconnecting in 3 seconds"),a=setTimeout(d,3e3)}let l=null,c=null;function d(){l||(clearTimeout(a),l=new WebSocket(""+u),c=i,l.addEventListener("open",e=>{s(!0),t(e)}),l.addEventListener("message",n),l.addEventListener("error",e=>{console.log("ws.error",e),l.close()}),l.addEventListener("close",e=>{l=null,s(!1),r&&r(),c&&c()}))}return{connected:{...o,connect:d,disconnect:function(){c=null,l&&l.close()}},sendMessage:e=>{l&&l.readyState<=1&&l.send(JSON.stringify(e))}}}function ku(e){if(!Number.isSafeInteger(e))throw new RangeError("not a safe integer");if(e<0)throw new RangeError("negative");return e}const{getPrototypeOf:Iu,setPrototypeOf:Tu,getOwnPropertyDescriptors:Nu,defineProperties:Ou,is:_u,isFrozen:Ru,fromEntries:ju,prototype:Mu}=Object,{ownKeys:Uu}=Reflect,Lu=Symbol.for("passStyle");function zu(e){if("object"!=typeof e||null===e)return;if("presence"!==e[Lu])return;yu(Ru(e),Cu`Remotable ${e} must be frozen`,TypeError);const t=e[Symbol.toStringTag];return yu.typeof(t,"string",Cu`Remotable interface currently can only be a string`),t}function Gu(e,t=new WeakMap){const n=Ku(e);switch(n){case"bigint":case"boolean":case"null":case"number":case"string":case"undefined":case"symbol":return e;case"copyArray":case"copyRecord":{const r=e;if(t.has(r))return t.get(r);const o="copyArray"===n?[]:{};return t.set(r,o),Object.entries(r).forEach(([e,n])=>{o[e]=Gu(n,t)}),harden(o)}case"copyError":{const n=e;if(t.has(n))return t.get(n);const{name:r,message:o}=n,s=Hu(""+r)||Error,u=harden(new s(""+o));t.set(n,u);return harden(u)}case"presence":yu.fail(Cu`Input value ${bu(n)} cannot be copied as it must be passed by reference`,TypeError);case"promise":yu.fail(Cu`Promises cannot be copied`,TypeError);default:yu.fail(Cu`Input value ${bu(n)} is not recognized as data`,TypeError)}}harden(Gu);const Wu=new Map([["Error",Error],["EvalError",EvalError],["RangeError",RangeError],["ReferenceError",ReferenceError],["SyntaxError",SyntaxError],["TypeError",TypeError],["URIError",URIError]]);function Hu(e){return Wu.get(e)}function qu(e){yu.typeof(e,"object",Cu`cannot serialize non-objects like ${e}`),yu(!Array.isArray(e),Cu`Arrays cannot be pass-by-remote`),yu(null!==e,Cu`null cannot be pass-by-remote`);const t=Nu(e);Uu(t).forEach(n=>{yu(!("get"in t[n]),Cu`cannot serialize objects with getters like ${bu(String(n))} in ${e}`),yu.typeof(e[n],"function",Cu`cannot serialize objects with non-methods like ${bu(String(n))} in ${e}`)})}function Vu(e){yu(Ru(e),Cu`cannot serialize non-frozen objects like ${e}`),qu(e);const t=Iu(e);null!==t&&t!==Mu&&(e=>{yu.typeof(e,"object",Cu`cannot serialize non-objects like ${e}`),yu(!Array.isArray(e),Cu`Arrays cannot be pass-by-remote`),yu(null!==e,Cu`null cannot be pass-by-remote`);const t=Iu(e);yu(t===Mu||null===t,Cu`The Remotable Proto marker cannot inherit from anything unusual`),yu(Ru(e),Cu`The Remotable proto must be frozen`);const{[Lu]:{value:n},toString:{value:r},[Symbol.toStringTag]:{value:o},...s}=Nu(e);yu(0===Uu(s).length,Cu`Unexpect properties on Remotable Proto ${Uu(s)}`),yu("presence"===n,Cu`Expected ${bu("presence")}, not ${bu(n)}`),yu.typeof(r,"function",Cu`toString must be a function`),yu.typeof(o,"string",Cu`@@toStringTag must be a string`)})(t)}function Ju(e,t){return e===t||_u(e,t)}function Ku(e){const t=typeof e;switch(t){case"object":return zu(e)?"presence":null===e?"null":(yu(Ru(e),Cu`Cannot pass non-frozen objects like ${e}. Use harden()`),gu(e)?"promise":(yu("function"!=typeof e.then,Cu`Cannot pass non-promise thenables`),function(e){if(!(e instanceof Error))return!1;const t=Iu(e),{name:n}=e,r=Hu(n);r&&r.prototype===t||yu.note(e,Cu`Errors must inherit from an error class .prototype ${e}`);const{message:o,stack:s,...u}=Nu(e);return Uu(u).length>=1&&yu.note(e,Cu`Passed Error has extra unpassed properties ${u}`),o&&("string"!=typeof o.value&&yu.note(e,Cu`Passed Error "message" ${o} must be a string-valued data property.`),o.enumerable&&yu.note(e,Cu`Passed Error "message" ${o} must not be enumerable`)),!0}(e)?"copyError":function(e){if(!Array.isArray(e))return!1;yu(Iu(e)===Array.prototype,Cu`Malformed array: ${e}`,TypeError);const t=e.length,n=Nu(e);for(let e=0;ee,Xu=(e,t)=>e;function Qu(e=Zu,t=Xu,{marshalName:n="anon-marshal",errorTagging:r="on"}={}){yu.typeof(n,"string"),yu("on"===r||"off"===r,Cu`The errorTagging option can only be "on" or "off" ${r}`);let o=0;function s(t,n,r,o){let s;if(r.has(t))s=r.get(t);else{const o=e(t);s=n.length,n.push(o),r.set(t,s)}return void 0===o?harden({[Yu]:"slot",index:s}):harden({[Yu]:"slot",iface:o,index:s})}function u(e,n){const r=function(e){const t=[],n=new WeakSet;return harden({get(r){const o=ku(r);yu(o(t.push(e),e),start:e=>(t.push(e),n.add(e),e),finish:e=>(n.delete(e),e)})}(n);return function n(o){if(Object(o)!==o)return o;if(!(Yu in o)){if(Array.isArray(o)){const e=r.start([]),t=o.length;for(let r=0;r{const t=[],u=new Map,a=function(){const e=new Map;let t=0;return harden({has:t=>e.has(t),get:t=>e.get(t),add(n){e.set(n,t),t+=1}})}(),i=e=>{const l=Ku(e);switch(l){case"null":return null;case"undefined":return harden({[Yu]:"undefined"});case"string":case"boolean":return e;case"number":return Number.isNaN(e)?harden({[Yu]:"NaN"}):_u(e,-0)?0:e===1/0?harden({[Yu]:"Infinity"}):e===-1/0?harden({[Yu]:"-Infinity"}):e;case"bigint":return harden({[Yu]:"bigint",digits:String(e)});case"symbol":switch(e){case Symbol.asyncIterator:return harden({[Yu]:"@@asyncIterator"});default:yu.fail(Cu`Unsupported symbol ${bu(String(e))}`)}default:if(a.has(e))return harden({[Yu]:"ibid",index:a.get(e)});switch(a.add(e),l){case"copyRecord":{if(Yu in e){const{[Yu]:t,...n}=e;return 0===Uu(n).length?harden({[Yu]:"hilbert",original:i(t)}):harden({[Yu]:"hilbert",original:i(t),rest:i(harden(n))})}const t=Uu(e).sort();return ju(t.map(t=>[t,i(e[t])]))}case"copyArray":return e.map(i);case"copyError":if("on"===r){const t=(o+=1,`error:${n}#${o}`);return yu.note(e,Cu`Sent as ${t}`),console.log("Temporary logging of sent error",e),harden({[Yu]:"error",errorId:t,message:""+e.message,name:""+e.name})}return harden({[Yu]:"error",message:""+e.message,name:""+e.name});case"presence":{const n=zu(e);return s(e,t,u,n)}case"promise":return s(e,t,u);default:yu.fail(Cu`unrecognized passStyle ${bu(l)}`,TypeError)}}},l=i(e);return harden({body:JSON.stringify(l),slots:t})},unserialize:function(e,t="forbidCycles"){yu.typeof(e.body,"string",Cu`unserialize() given non-capdata (.body is ${e.body}, not string)`),yu(Array.isArray(e.slots),Cu`unserialize() given non-capdata (.slots are not Array)`);const n=harden(JSON.parse(e.body)),r=u(e.slots,t);return harden(r(n))}})}function ea(e="Remotable",t,n={}){yu.typeof(e,"string",Cu`Interface ${e} must be a string; unimplemented`),yu("Remotable"===e||e.startsWith("Alleged: "),Cu`For now, iface ${bu(e)} must be "Remotable" or begin with "Alleged: "; unimplemented`);const r=e=Gu(harden(e));yu(void 0===t,Cu`Remotable props not yet implemented ${t}`),qu(n),yu(!(Lu in n),Cu`Remotable ${n} is already marked as a ${bu(n[Lu])}`);const o=((e,t)=>{yu(e===Mu||null===e,Cu`For now, remotables cannot inherit from anything unusual`);return harden({__proto__:e,[Lu]:"presence",toString:()=>`[${t}]`,[Symbol.toStringTag]:t})})(Iu(n),r),s=e=>{Tu(e,o),harden(e),qu(e)};return s({}),s(n),yu(void 0!==e),n}harden(ea);const ta=(e,t={})=>ea("Alleged: "+e,void 0,t);harden(ta);const na=harden({get:(e,t,n)=>{if("length"===t)return 0;yu.fail(Cu`Marshal's parse must not encode any slot positions ${t}`)}}),ra=harden(new Proxy(harden([]),na)),{serialize:oa,unserialize:sa}=Qu(e=>yu.fail(Cu`Marshal's stringify rejects presences and promises ${e}`),(e,t)=>yu.fail(Cu`Marshal's parse must not encode any slots ${e}`),{errorTagging:"off"});harden(e=>oa(e).body);harden(e=>sa(harden({body:e,slots:ra})));let ua="?"+window.location.hash.slice(1),aa=new URLSearchParams(ua).get("accessToken");try{aa?localStorage.setItem("accessTokenParams",ua):(ua=localStorage.getItem("accessTokenParams")||"?",aa=new URLSearchParams(ua).get("accessToken"))}catch(e){console.log("Error fetching accessTokenParams",e)}window.location.hash="",window.addEventListener("hashchange",e=>{window.location.hash=""}),aa||confirm("You must open the Agoric wallet with the\n agoric open\ncommand line executable.\n\nSee the documentation?")&&(window.location.href="https://agoric.com/documentation/getting-started/agoric-cli-guide.html#agoric-open");const{connected:ia,makeStableForwarder:la}=function(e,{onReset:t}){let n,r,o=$u();const s=e({onOpen:async function(e){const{abort:t,dispatch:s,getBootstrap:a}=function(e,t,n,r={}){const{onReject:o=(t=>console.error("CapTP",e,"exception:",t)),Remotable:s=ea,makeMarshal:u=Qu,epoch:a=0}=r,i=e=>Error(JSON.stringify(e)+" connection closed");let l=!1;async function c(e,t=!0){if(!o||!1!==l&&e===l||void 0===e||o(e),!t)return Promise.resolve();const n=Promise.reject(e);return n.catch(e=>{}),n}function d(e){!1===l&&t(e)}const{serialize:p,unserialize:f}=u((function(e){if(!m.has(e)){let t;if(gu(e)){g+=1;const n=g;t="p+"+n,e.then(e=>d({type:"CTP_RESOLVE",promiseID:n,res:p(harden(e))}),e=>d({type:"CTP_RESOLVE",promiseID:n,rej:p(harden(e))}))}else{D+=1;t="o+"+D}m.set(e,t),$.set(t,e)}return m.get(e)}),(function(t,n){let r;const o="+"===t[1]?"-":"+",u=`${t[0]}${o}${t.slice(2)}`;if(!$.has(u)){const t=v(u);if("o"===u[0]){const o=t.resPres();void 0===n&&(n=`Alleged: Presence ${e} ${u}`),r=s(n,void 0,o)}else b.set(Number(u.slice(2)),t),r=t.p;$.set(u,r),m.set(r,u)}return $.get(u)}),{marshalName:"captp:"+e}),m=new WeakMap,$=new Map;let g=0,D=0,y=0;const h=new Map,C=new Map,b=new Map;function E(){y+=1;const e=y,t=v(e);return h.set(e,t),[e,t]}function v(e){const t={get(t,n){if(!1!==l)return c(l);const[r,o]=E();return d({type:"CTP_CALL",epoch:a,questionID:r,target:e,method:p(harden([n]))}),harden(o.p)},applyMethod(t,n,r){if(!1!==l)return c(l);const[o,s]=E();return d({type:"CTP_CALL",epoch:a,questionID:o,target:e,method:p(harden([n,r]))}),harden(s.p)}},n={};return n.p=new Fr((e,r,o)=>{n.rej=r,n.resPres=()=>o(t),n.res=e},t),n.p.catch(e=>c(e,!1)),harden(n)}const A={async CTP_BOOTSTRAP(e){const{questionID:t}=e,r="function"==typeof n?n(e):n;wr.when(r,e=>(C.set(t,e),d({type:"CTP_RETURN",epoch:a,answerID:t,result:p(e)})))},async CTP_CALL(e){const{questionID:t,target:n}=e,[r,o]=f(e.method);let s;s=C.has(n)?C.get(n):f({body:JSON.stringify({[Yu]:"slot",index:0}),slots:[n]});const u=o?Fr.applyMethod(s,r,o):Fr.get(s,r);return C.set(t,u),u.then(e=>d({type:"CTP_RETURN",epoch:a,answerID:t,result:p(harden(e))})).catch(e=>d({type:"CTP_RETURN",epoch:a,answerID:t,exception:p(harden(e))})).catch(e=>c(e,!1))},async CTP_RETURN(e){const{result:t,exception:n,answerID:r}=e,o=h.get(r);"exception"in e?o.rej(f(n)):o.res(f(t))},async CTP_RESOLVE(e){const{promiseID:t,res:n,rej:r}=e,o=b.get(t);"rej"in e?o.rej(f(r)):o.res(f(n)),b.delete(t)},async CTP_DISCONNECT(n){const{reason:r=i(e)}=n;!1===l&&(c(n.reason,!1),l=r,t(n));for(const e of h.values())e.rej(r);for(const e of b.values())e.rej(r)}};harden(A);const F=e=>{try{if(!1!==l)return!1;const t=A[e.type];return!!t&&(t(e).catch(e=>c(e,!1)),!0)}catch(e){return c(e,!1),!1}};return harden({abort:e=>{F({type:"CTP_DISCONNECT",epoch:a,reason:e})},dispatch:F,getBootstrap:async()=>{if(!1!==l)return c(l);const[e,t]=E();return d({type:"CTP_BOOTSTRAP",epoch:a,questionID:e}),harden(t.p)},serialize:p,unserialize:f})}("@agoric/dapp-svelte-wallet-ui",u);let i;for(r=t,n=s;;){const e=await wr(wr.G(a()).loadingNotifier).getUpdateSince(i);if(console.log("waiting for wallet"),i=e.updateCount,!e.value.includes("wallet"))break}o.resolve(a())},onMessage:function(e){const t=JSON.parse(e.data);n(t)},onClose:function(e){o=$u(),t(o.promise.then(e=>!0)),r&&r()}}),{sendMessage:u}=s;return setTimeout(()=>t(o.promise),1),{makeStableForwarder:function(e=(e=>e)){return new HandledPromise((t,n,r)=>{r({applyMethod:(t,n,r)=>wr(e(o.promise))[n](...r),get:(t,n)=>wr(e(o.promise))[n]})})},...s}}(e=>Su("/private/captp"+ua,e),{onReset:function(e){ma(!1),e.then(()=>pa.forEach(e=>e())),wr(ca).getSelfContact().then(e=>wa({contactPetname:"Self",...Sa("Self",e)})),Au({updateState(e){ga(e.map(e=>({...e,offerId:e.id,id:`${e.requestContext.date}-${e.requestContext.dappOrigin}-${e.id}`})).sort((e,t)=>Pa(t.id,e.id)))}},wr(ca).getOffersNotifier()),Au({updateState(e){ya(e.map(e=>Sa({pursePetname:e.pursePetname},e)).sort((e,t)=>Pa(e.brandPetname,t.brandPetname)||Pa(e.pursePetname,t.pursePetname)))}},wr(ca).getPursesNotifier()),Au({updateState(e){Ca(e.map(e=>({...e,id:e.origin})).sort((e,t)=>Pa(e.petname,t.petname)||Pa(e.id,t.id)))}},wr(ca).getDappsNotifier()),Au({updateState(e){Aa(e.map(([e,t])=>Sa({contactPetname:e},t)).sort((e,t)=>Pa(e.contactPetname,t.contactPetname)||Pa(e.id,t.id)))}},wr(ca).getContactsNotifier()),Au({updateState:Ea},wr(ca).getPaymentsNotifier()),Au({updateState(e){Ba(e.map(([e,t])=>Sa({issuerPetname:e},t)).sort((e,t)=>Pa(e.id,t.id)))}},wr(ca).getIssuersNotifier())}}),ca=la(e=>wr(wr.G(e).wallet).getAdminFacet()),da=la(e=>wr.G(e).board),pa=[],[fa,ma]=ka(!1,!0),[$a,ga]=ka([]),[Da,ya]=ka([]),[ha,Ca]=ka([]),[ba,Ea]=ka([]),[va,Aa]=ka([]),[Fa,wa]=ka(void 0),[xa,Ba]=ka([]);function Pa(e,t){return en.set(t)),[{subscribe:n.subscribe},n.set]}function Ia(e){let t,n,r;return n=new Jo.Title({props:{title:"Dapps"}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","title")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p:Ht,i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function Ta(e){let t;return{c(){t=Dn("div"),t.textContent="No Dapps.",An(t,"slot","empty")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Na(e){let t,n,r;return n=new cu({props:{item:e[2],details:!1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-header")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function Oa(e){let t,n,r;return n=new cu({props:{item:e[2],summary:!1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-details")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function _a(e){let t,n,r;return{c(){t=Cn(),n=Cn(),r=Cn()},m(e,o){mn(e,t,o),mn(e,n,o),mn(e,r,o)},p:Ht,i:Ht,o:Ht,d(e){e&&$n(t),e&&$n(n),e&&$n(r)}}}function Ra(e){let t,n;return t=new $s({props:{items:e[1],storeKey:"dapps-"+e[0],expandDefault:e[0],$$slots:{default:[_a],"item-details":[Oa,({item:e})=>({2:e}),({item:e})=>e?4:0],"item-header":[Na,({item:e})=>({2:e}),({item:e})=>e?4:0],empty:[Ta],title:[Ia]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,[n]){const r={};2&n&&(r.items=e[1]),1&n&&(r.storeKey="dapps-"+e[0]),1&n&&(r.expandDefault=e[0]),12&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function ja(e,t,n){let r;Qt(e,ha,e=>n(1,r=e));let{expandDefault:o=!0}=t;return e.$$set=e=>{"expandDefault"in e&&n(0,o=e.expandDefault)},[o,r]}class Ma extends vr{constructor(e){super(),Er(this,e,ja,Ra,Xt,{expandDefault:0})}}const Ua=e=>({}),La=e=>({}),za=e=>({item:1&e}),Ga=e=>({item:e[5]});function Wa(e,t,n){const r=e.slice();return r[5]=t[n],r}const Ha=e=>({}),qa=e=>({});function Va(e){let t,n,r=[],o=new Map,s=e[0];const u=e=>e[1](e[5]);for(let t=0;ty.get(o)?(C.add(r),b(t)):(h.add(o),p--):(i(n,u),p--)}for(;p--;){const t=e[p];D.has(t.key)||i(t,u)}for(;f;)b(g[f-1]);return g}(r,n,u,1,e,s,o,t,mr,Ka,null,Wa),ur()}},i(e){if(!n){for(let e=0;e{c[n]=null}),ur(),o=c[r],o||(o=c[r]=l[r](e),o.c()),ar(o,1),o.m(s.parentNode,s)),f&&f.p&&8&t&&nn(f,p,e,e[3],t,Ua,La)},i(e){u||(ar(i,e),ar(o),ar(f,e),u=!0)},o(e){ir(i,e),ir(o),ir(f,e),u=!1},d(e){i&&i.d(e),e&&$n(t),c[r].d(e),e&&$n(s),f&&f.d(e)}}}function Za(e,t,n){let{items:r}=t,{idFn:o=(e=>e.id||e)}=t,{horizontal:s=!1}=t,{$$slots:u={},$$scope:a}=t;return e.$$set=e=>{"items"in e&&n(0,r=e.items),"idFn"in e&&n(1,o=e.idFn),"horizontal"in e&&n(2,s=e.horizontal),"$$scope"in e&&n(3,a=e.$$scope)},[r,o,s,a,u]}class Xa extends vr{constructor(e){super(),Er(this,e,Za,Ya,Xt,{items:0,idFn:1,horizontal:2})}}function Qa(e,t,n){const r=e.slice();return r[4]=t[n],r}function ei(e){let t,n,r,o,s=e[2]&&ni(),u=e[1]&&ri(e);return{c(){t=Dn("span"),n=hn(e[0]),s&&s.c(),r=Cn(),u&&u.c(),o=bn(),An(t,"class","confirmedPetname"),Sn(t,"color",e[3])},m(e,a){mn(e,t,a),fn(t,n),s&&s.m(t,null),mn(e,r,a),u&&u.m(e,a),mn(e,o,a)},p(e,r){1&r&&xn(n,e[0]),e[2]?s||(s=ni(),s.c(),s.m(t,null)):s&&(s.d(1),s=null),8&r&&Sn(t,"color",e[3]),e[1]?u?u.p(e,r):(u=ri(e),u.c(),u.m(o.parentNode,o)):u&&(u.d(1),u=null)},d(e){e&&$n(t),s&&s.d(),e&&$n(r),u&&u.d(e),e&&$n(o)}}}function ti(e){let t,n,r,o,s=e[0][0]+"",u=e[0].slice(1),a=[];for(let t=0;t{"name"in e&&n(0,r=e.name),"board"in e&&n(1,o=e.board),"plural"in e&&n(2,s=e.plural),"color"in e&&n(3,u=e.color)},[r,o,s,u]}class ii extends vr{constructor(e){super(),Er(this,e,ai,ui,Xt,{name:0,board:1,plural:2,color:3})}}const li=e=>({}),ci=e=>({});function di(e){let t,n,r,o,s;const u=e[9].default,a=en(u,e,e[8],null);return{c(){t=Dn("div"),a&&a.c(),An(t,"class",n=on(e[3])+" svelte-1n6auy7")},m(e,n){mn(e,t,n),a&&a.m(t,null),s=!0},p(e,r){a&&a.p&&256&r&&nn(a,u,e,e[8],r,null,null),(!s||8&r&&n!==(n=on(e[3])+" svelte-1n6auy7"))&&An(t,"class",n)},i(e){s||(ar(a,e),Jn(()=>{o&&o.end(1),r||(r=cr(t,ao,{duration:150})),r.start()}),s=!0)},o(e){ir(a,e),r&&r.invalidate(),o=dr(t,ao,{duration:150,delay:100}),s=!1},d(e){e&&$n(t),a&&a.d(e),e&&o&&o.end()}}}function pi(e){let t,n,r,o,s,u;const a=e[9].activator,i=en(a,e,e[8],ci);let l=e[0]&&di(e);return{c(){t=Dn("div"),n=Dn("div"),i&&i.c(),r=Cn(),l&&l.c(),An(t,"class","relative inline-block")},m(a,c){mn(a,t,c),fn(t,n),i&&i.m(n,null),fn(t,r),l&&l.m(t,null),o=!0,s||(u=[En(n,"mouseenter",(function(){Zt(mi(e[4],e[2]))&&mi(e[4],e[2]).apply(this,arguments)})),En(n,"mouseleave",(function(){Zt(mi(e[5],e[1]))&&mi(e[5],e[1]).apply(this,arguments)})),En(n,"mouseenter",e[10]),En(n,"mouseleave",e[11]),En(n,"mouseover",e[12]),En(n,"mouseout",e[13])],s=!0)},p(n,[r]){e=n,i&&i.p&&256&r&&nn(i,a,e,e[8],r,li,ci),e[0]?l?(l.p(e,r),1&r&&ar(l,1)):(l=di(e),l.c(),ar(l,1),l.m(t,null)):l&&(sr(),ir(l,1,1,()=>{l=null}),ur())},i(e){o||(ar(i,e),ar(l),o=!0)},o(e){ir(i,e),ir(l),o=!1},d(e){e&&$n(t),i&&i.d(e),l&&l.d(),s=!1,Yt(u)}}}const fi="tooltip whitespace-no-wrap text-xs absolute mt-2 bg-gray-600 text-gray-50 rounded md:px-2 md:py-2 py-4 px-3 z-30";function mi(e,t,n){let r;return function(){let o=this,s=arguments,u=function(){r=null,n||e.apply(o,s)},a=n&&!r;clearTimeout(r),r=setTimeout(u,t),a&&e.apply(o,s)}}function $i(e,t,n){let{classes:r=fi}=t,{show:o=!1}=t,{timeout:s=null}=t,{delayHide:u=100}=t,{delayShow:a=100}=t;const i=new Tr(r,fi);let l,{$$slots:c={},$$scope:d}=t;return e.$$set=e=>{n(15,t=Vt(Vt({},t),rn(e))),"classes"in e&&n(7,r=e.classes),"show"in e&&n(0,o=e.show),"timeout"in e&&n(6,s=e.timeout),"delayHide"in e&&n(1,u=e.delayHide),"delayShow"in e&&n(2,a=e.delayShow),"$$scope"in e&&n(8,d=e.$$scope)},e.$$.update=()=>{n(3,l=i.flush().add(r,!0,fi).add(t.class).get())},t=rn(t),[o,u,a,l,function(){o||(n(0,o=!0),s&&n(6,s=setTimeout(()=>{n(0,o=!1)},s)))},function(){o&&(n(0,o=!1),clearTimeout(s))},s,r,d,c,function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)}]}class gi extends vr{constructor(e){super(),Er(this,e,$i,pi,Xt,{classes:7,show:0,timeout:6,delayHide:1,delayShow:2})}}var Di={Space_Separator:/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ID_Start:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},yi={isSpaceSeparator:e=>"string"==typeof e&&Di.Space_Separator.test(e),isIdStartChar:e=>"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||"$"===e||"_"===e||Di.ID_Start.test(e)),isIdContinueChar:e=>"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"$"===e||"_"===e||""===e||""===e||Di.ID_Continue.test(e)),isDigit:e=>"string"==typeof e&&/[0-9]/.test(e),isHexDigit:e=>"string"==typeof e&&/[0-9A-Fa-f]/.test(e)};let hi,Ci,bi,Ei,vi,Ai,Fi,wi,xi;let Bi,Pi,Si,ki,Ii;function Ti(){for(Bi="default",Pi="",Si=!1,ki=1;;){Ii=Ni();const e=_i[Bi]();if(e)return e}}function Ni(){if(hi[Ei])return String.fromCodePoint(hi.codePointAt(Ei))}function Oi(){const e=Ni();return"\n"===e?(vi++,Ai=0):e?Ai+=e.length:Ai++,e&&(Ei+=e.length),e}const _i={default(){switch(Ii){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":return void Oi();case"/":return Oi(),void(Bi="comment");case void 0:return Oi(),Ri("eof")}if(!yi.isSpaceSeparator(Ii))return _i[Ci]();Oi()},comment(){switch(Ii){case"*":return Oi(),void(Bi="multiLineComment");case"/":return Oi(),void(Bi="singleLineComment")}throw Gi(Oi())},multiLineComment(){switch(Ii){case"*":return Oi(),void(Bi="multiLineCommentAsterisk");case void 0:throw Gi(Oi())}Oi()},multiLineCommentAsterisk(){switch(Ii){case"*":return void Oi();case"/":return Oi(),void(Bi="default");case void 0:throw Gi(Oi())}Oi(),Bi="multiLineComment"},singleLineComment(){switch(Ii){case"\n":case"\r":case"\u2028":case"\u2029":return Oi(),void(Bi="default");case void 0:return Oi(),Ri("eof")}Oi()},value(){switch(Ii){case"{":case"[":return Ri("punctuator",Oi());case"n":return Oi(),ji("ull"),Ri("null",null);case"t":return Oi(),ji("rue"),Ri("boolean",!0);case"f":return Oi(),ji("alse"),Ri("boolean",!1);case"-":case"+":return"-"===Oi()&&(ki=-1),void(Bi="sign");case".":return Pi=Oi(),void(Bi="decimalPointLeading");case"0":return Pi=Oi(),void(Bi="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return Pi=Oi(),void(Bi="decimalInteger");case"I":return Oi(),ji("nfinity"),Ri("numeric",1/0);case"N":return Oi(),ji("aN"),Ri("numeric",NaN);case'"':case"'":return Si='"'===Oi(),Pi="",void(Bi="string")}throw Gi(Oi())},identifierNameStartEscape(){if("u"!==Ii)throw Gi(Oi());Oi();const e=Mi();switch(e){case"$":case"_":break;default:if(!yi.isIdStartChar(e))throw Hi()}Pi+=e,Bi="identifierName"},identifierName(){switch(Ii){case"$":case"_":case"":case"":return void(Pi+=Oi());case"\\":return Oi(),void(Bi="identifierNameEscape")}if(!yi.isIdContinueChar(Ii))return Ri("identifier",Pi);Pi+=Oi()},identifierNameEscape(){if("u"!==Ii)throw Gi(Oi());Oi();const e=Mi();switch(e){case"$":case"_":case"":case"":break;default:if(!yi.isIdContinueChar(e))throw Hi()}Pi+=e,Bi="identifierName"},sign(){switch(Ii){case".":return Pi=Oi(),void(Bi="decimalPointLeading");case"0":return Pi=Oi(),void(Bi="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return Pi=Oi(),void(Bi="decimalInteger");case"I":return Oi(),ji("nfinity"),Ri("numeric",ki*(1/0));case"N":return Oi(),ji("aN"),Ri("numeric",NaN)}throw Gi(Oi())},zero(){switch(Ii){case".":return Pi+=Oi(),void(Bi="decimalPoint");case"e":case"E":return Pi+=Oi(),void(Bi="decimalExponent");case"x":case"X":return Pi+=Oi(),void(Bi="hexadecimal")}return Ri("numeric",0*ki)},decimalInteger(){switch(Ii){case".":return Pi+=Oi(),void(Bi="decimalPoint");case"e":case"E":return Pi+=Oi(),void(Bi="decimalExponent")}if(!yi.isDigit(Ii))return Ri("numeric",ki*Number(Pi));Pi+=Oi()},decimalPointLeading(){if(yi.isDigit(Ii))return Pi+=Oi(),void(Bi="decimalFraction");throw Gi(Oi())},decimalPoint(){switch(Ii){case"e":case"E":return Pi+=Oi(),void(Bi="decimalExponent")}return yi.isDigit(Ii)?(Pi+=Oi(),void(Bi="decimalFraction")):Ri("numeric",ki*Number(Pi))},decimalFraction(){switch(Ii){case"e":case"E":return Pi+=Oi(),void(Bi="decimalExponent")}if(!yi.isDigit(Ii))return Ri("numeric",ki*Number(Pi));Pi+=Oi()},decimalExponent(){switch(Ii){case"+":case"-":return Pi+=Oi(),void(Bi="decimalExponentSign")}if(yi.isDigit(Ii))return Pi+=Oi(),void(Bi="decimalExponentInteger");throw Gi(Oi())},decimalExponentSign(){if(yi.isDigit(Ii))return Pi+=Oi(),void(Bi="decimalExponentInteger");throw Gi(Oi())},decimalExponentInteger(){if(!yi.isDigit(Ii))return Ri("numeric",ki*Number(Pi));Pi+=Oi()},hexadecimal(){if(yi.isHexDigit(Ii))return Pi+=Oi(),void(Bi="hexadecimalInteger");throw Gi(Oi())},hexadecimalInteger(){if(!yi.isHexDigit(Ii))return Ri("numeric",ki*Number(Pi));Pi+=Oi()},string(){switch(Ii){case"\\":return Oi(),void(Pi+=function(){switch(Ni()){case"b":return Oi(),"\b";case"f":return Oi(),"\f";case"n":return Oi(),"\n";case"r":return Oi(),"\r";case"t":return Oi(),"\t";case"v":return Oi(),"\v";case"0":if(Oi(),yi.isDigit(Ni()))throw Gi(Oi());return"\0";case"x":return Oi(),function(){let e="",t=Ni();if(!yi.isHexDigit(t))throw Gi(Oi());if(e+=Oi(),t=Ni(),!yi.isHexDigit(t))throw Gi(Oi());return e+=Oi(),String.fromCodePoint(parseInt(e,16))}();case"u":return Oi(),Mi();case"\n":case"\u2028":case"\u2029":return Oi(),"";case"\r":return Oi(),"\n"===Ni()&&Oi(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case void 0:throw Gi(Oi())}return Oi()}());case'"':return Si?(Oi(),Ri("string",Pi)):void(Pi+=Oi());case"'":return Si?void(Pi+=Oi()):(Oi(),Ri("string",Pi));case"\n":case"\r":throw Gi(Oi());case"\u2028":case"\u2029":!function(e){console.warn(`JSON5: '${qi(e)}' in strings is not valid ECMAScript; consider escaping`)}(Ii);break;case void 0:throw Gi(Oi())}Pi+=Oi()},start(){switch(Ii){case"{":case"[":return Ri("punctuator",Oi())}Bi="value"},beforePropertyName(){switch(Ii){case"$":case"_":return Pi=Oi(),void(Bi="identifierName");case"\\":return Oi(),void(Bi="identifierNameStartEscape");case"}":return Ri("punctuator",Oi());case'"':case"'":return Si='"'===Oi(),void(Bi="string")}if(yi.isIdStartChar(Ii))return Pi+=Oi(),void(Bi="identifierName");throw Gi(Oi())},afterPropertyName(){if(":"===Ii)return Ri("punctuator",Oi());throw Gi(Oi())},beforePropertyValue(){Bi="value"},afterPropertyValue(){switch(Ii){case",":case"}":return Ri("punctuator",Oi())}throw Gi(Oi())},beforeArrayValue(){if("]"===Ii)return Ri("punctuator",Oi());Bi="value"},afterArrayValue(){switch(Ii){case",":case"]":return Ri("punctuator",Oi())}throw Gi(Oi())},end(){throw Gi(Oi())}};function Ri(e,t){return{type:e,value:t,line:vi,column:Ai}}function ji(e){for(const t of e){if(Ni()!==t)throw Gi(Oi());Oi()}}function Mi(){let e="",t=4;for(;t-- >0;){const t=Ni();if(!yi.isHexDigit(t))throw Gi(Oi());e+=Oi()}return String.fromCodePoint(parseInt(e,16))}const Ui={start(){if("eof"===Fi.type)throw Wi();Li()},beforePropertyName(){switch(Fi.type){case"identifier":case"string":return wi=Fi.value,void(Ci="afterPropertyName");case"punctuator":return void zi();case"eof":throw Wi()}},afterPropertyName(){if("eof"===Fi.type)throw Wi();Ci="beforePropertyValue"},beforePropertyValue(){if("eof"===Fi.type)throw Wi();Li()},beforeArrayValue(){if("eof"===Fi.type)throw Wi();"punctuator"!==Fi.type||"]"!==Fi.value?Li():zi()},afterPropertyValue(){if("eof"===Fi.type)throw Wi();switch(Fi.value){case",":return void(Ci="beforePropertyName");case"}":zi()}},afterArrayValue(){if("eof"===Fi.type)throw Wi();switch(Fi.value){case",":return void(Ci="beforeArrayValue");case"]":zi()}},end(){}};function Li(){let e;switch(Fi.type){case"punctuator":switch(Fi.value){case"{":e={};break;case"[":e=[]}break;case"null":case"boolean":case"numeric":case"string":e=Fi.value}if(void 0===xi)xi=e;else{const t=bi[bi.length-1];Array.isArray(t)?t.push(e):t[wi]=e}if(null!==e&&"object"==typeof e)bi.push(e),Ci=Array.isArray(e)?"beforeArrayValue":"beforePropertyName";else{const e=bi[bi.length-1];Ci=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}}function zi(){bi.pop();const e=bi[bi.length-1];Ci=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}function Gi(e){return Vi(void 0===e?`JSON5: invalid end of input at ${vi}:${Ai}`:`JSON5: invalid character '${qi(e)}' at ${vi}:${Ai}`)}function Wi(){return Vi(`JSON5: invalid end of input at ${vi}:${Ai}`)}function Hi(){return Ai-=5,Vi(`JSON5: invalid identifier character at ${vi}:${Ai}`)}function qi(e){const t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){const t=e.charCodeAt(0).toString(16);return"\\x"+("00"+t).substring(t.length)}return e}function Vi(e){const t=new SyntaxError(e);return t.lineNumber=vi,t.columnNumber=Ai,t}var Ji={parse:function(e,t){hi=String(e),Ci="start",bi=[],Ei=0,vi=1,Ai=0,Fi=void 0,wi=void 0,xi=void 0;do{Fi=Ti(),Ui[Ci]()}while("eof"!==Fi.type);return"function"==typeof t?function e(t,n,r){const o=t[n];if(null!=o&&"object"==typeof o)for(const t in o){const n=e(o,t,r);void 0===n?delete o[t]:o[t]=n}return r.call(t,n,o)}({"":xi},"",t):xi},stringify:function(e,t,n){const r=[];let o,s,u,a="",i="";if(null==t||"object"!=typeof t||Array.isArray(t)||(n=t.space,u=t.quote,t=t.replacer),"function"==typeof t)s=t;else if(Array.isArray(t)){o=[];for(const e of t){let t;"string"==typeof e?t=e:("number"==typeof e||e instanceof String||e instanceof Number)&&(t=String(e)),void 0!==t&&o.indexOf(t)<0&&o.push(t)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),"number"==typeof n?n>0&&(n=Math.min(10,Math.floor(n)),i=" ".substr(0,n)):"string"==typeof n&&(i=n.substr(0,10)),l("",{"":e});function l(e,t){let n=t[e];switch(null!=n&&("function"==typeof n.toJSON5?n=n.toJSON5(e):"function"==typeof n.toJSON&&(n=n.toJSON(e))),s&&(n=s.call(t,e,n)),n instanceof Number?n=Number(n):n instanceof String?n=String(n):n instanceof Boolean&&(n=n.valueOf()),n){case null:return"null";case!0:return"true";case!1:return"false"}return"string"==typeof n?c(n):"number"==typeof n?String(n):"object"==typeof n?Array.isArray(n)?function(e){if(r.indexOf(e)>=0)throw TypeError("Converting circular structure to JSON5");r.push(e);let t=a;a+=i;let n,o=[];for(let t=0;t=0)throw TypeError("Converting circular structure to JSON5");r.push(e);let t=a;a+=i;let n,s=o||Object.keys(e),u=[];for(const t of s){const n=l(t,e);if(void 0!==n){let e=d(t)+":";""!==i&&(e+=" "),e+=n,u.push(e)}}if(0===u.length)n="{}";else{let e;if(""===i)e=u.join(","),n="{"+e+"}";else{let r=",\n"+a;e=u.join(r),n="{\n"+a+e+",\n"+t+"}"}}return r.pop(),a=t,n}(n):void 0}function c(e){const t={"'":.1,'"':.2},n={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let r="";for(let o=0;ot[e]e(t));case"copyArray":{const n=t.map(t=>e(t));return Promise.all(n).then(e=>harden(e))}case"copyRecord":{const n=Object.getOwnPropertyNames(t),r=n.map(n=>e(t[n]));return Promise.all(r).then(e=>harden(function(e){const t={};for(const n of e){if(Object(n)!==n)throw new TypeError("iterable for fromEntries should yield objects");const{0:e,1:r}=n;Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r})}return t}(e.map((e,t)=>[n[t],e]))))}default:yu.fail(Cu`unrecognized passStyle ${n}`,TypeError)}})),harden(Ki),harden(Zi);const Xi=harden({doCoerce:ku,doGetEmpty:e=>0,doIsEmpty:e=>0===e,doIsGTE:(e,t)=>e>=t,doIsEqual:(e,t)=>e===t,doAdd:(e,t)=>ku(e+t),doSubtract:(e,t)=>ku(e-t)});harden(Xi);const Qi=harden([]),el=harden({doCoerce:e=>(yu("copyArray"===Ku(e),"value must be an array"),e.forEach(e=>yu.typeof(e,"string")),(e=>{const t=new Set(e);yu(t.size===e.length,Cu`value has duplicates: ${e}`)})(e),e),doGetEmpty:e=>Qi,doIsEmpty:e=>"copyArray"===Ku(e)&&0===e.length,doIsGTE:(e,t)=>{const n=new Set(e);return t.every(e=>n.has(e))},doIsEqual:(e,t)=>{const n=new Set(e);return e.length===t.length&&t.every(e=>n.has(e))},doAdd:(e,t)=>{const n=new Set(e);return t.forEach(e=>{yu(!n.has(e),Cu`left and right have same element ${e}`),n.add(e)}),harden(Array.from(n))},doSubtract:(e,t)=>{const n=new Set(e),r=t.every(e=>n.delete(e));return yu(r,Cu`some of the elements in right (${t}) were not present in left (${e})`),harden(Array.from(n))}});harden(el);const tl=harden([]),nl=e=>{const t=Object.getOwnPropertyNames(e);t.sort();const n=Object.values(e).filter(e=>"string"==typeof e);return n.sort(),[...t,...n].join()},rl=e=>{const t=new Map;return e.forEach(e=>{const n=nl(e);t.has(n)||t.set(n,[]);t.get(n).push(e)}),t},ol=e=>{for(const t of e.values())for(let e=0;e{const n=nl(t);if(!e.has(n))return!1;return e.get(n).some(e=>Ki(e,t))},ul=harden({doCoerce:e=>(yu("copyArray"===Ku(e),"list must be an array"),ol(rl(e)),e),doGetEmpty:e=>tl,doIsEmpty:e=>"copyArray"===Ku(e)&&0===e.length,doIsGTE:(e,t)=>{const n=rl(e);return t.every(e=>sl(n,e))},doIsEqual:(e,t)=>e.length===t.length&&ul.doIsGTE(e,t),doAdd:(e,t)=>{const n=harden([...e,...t]);return ol(rl(n)),n},doSubtract:(e,t)=>{const n=rl(e),r=rl(t);t.forEach(e=>{yu(sl(n,e),Cu`right element ${e} was not in left`)});return harden(e.filter(e=>!sl(r,e)))}});harden(ul);const al={NAT:"nat",SET:"set",STRING_SET:"strSet"};function il(e,t){var n;Zi(n=e,n,"not comparable"),yu.typeof(t,"string");const r={nat:Xi,strSet:el,set:ul}[t];yu(void 0!==r,Cu`unrecognized amountMathKind: ${t}`);const o=new WeakSet,s=ta("amountMath",{getBrand:()=>e,getAmountMathKind:()=>t,make:t=>{const n=r.doCoerce(t),s=harden({brand:e,value:n});return o.add(s),s},coerce:t=>{if(o.has(t))return t;const{brand:n,value:r}=t;return yu(void 0!==n,Cu`The brand in allegedAmount ${t} is undefined. Did you pass a value rather than an amount?`),yu(e===n,Cu`The brand in the allegedAmount ${t} in 'coerce' didn't match the amountMath brand ${e}.`),s.make(r)},getValue:e=>s.coerce(e).value,getEmpty:()=>u,isEmpty:e=>r.doIsEmpty(s.getValue(e)),isGTE:(e,t)=>r.doIsGTE(s.getValue(e),s.getValue(t)),isEqual:(e,t)=>r.doIsEqual(s.getValue(e),s.getValue(t)),add:(e,t)=>s.make(r.doAdd(s.getValue(e),s.getValue(t))),subtract:(e,t)=>s.make(r.doSubtract(s.getValue(e),s.getValue(t)))}),u=s.make(r.doGetEmpty());return s}function ll(e="key"){const t=new WeakMap,n=n=>yu(t.has(n),Cu`${bu(e)} not found: ${n}`);return harden({has:e=>t.has(e),init:(n,r)=>{(n=>{yu(!t.has(n),Cu`${bu(e)} already registered: ${n}`)})(n),t.set(n,r)},get:e=>(n(e),t.get(e)),set:(e,r)=>{n(e),t.set(e,r)},delete:e=>{n(e),t.delete(e)}})}function cl(e,t){return harden({makeInstance:t,makeWeakStore:()=>ll(e)})}harden(al),harden(il),harden((function(e="key"){const t=new Map,n=n=>yu(t.has(n),Cu`${bu(e)} not found: ${n}`);return harden({has:e=>t.has(e),init:(n,r)=>{(n=>{yu(!t.has(n),Cu`${bu(e)} already registered: ${n}`)})(n),t.set(n,r)},get:e=>(n(e),t.get(e)),set:(e,r)=>{n(e),t.set(e,r)},delete:e=>{n(e),t.delete(e)},keys:()=>Array.from(t.keys()),values:()=>Array.from(t.values()),entries:()=>Array.from(t.entries())})})),harden(ll),harden(cl);const dl=cl,pl="issuer",fl="brand",ml="purse",$l="payment",gl="mint",Dl="depositFacet",yl=(e,t)=>`${e} ${t}`,hl=(e,t)=>{const n=Object.getOwnPropertyNames(t);var r;r=e,n.forEach(e=>{yu.typeof(e,"string"),yu(r.includes(e),Cu`key ${bu(e)} was not one of the expected keys ${bu(r)}`)}),yu(0===Object.getOwnPropertySymbols(t).length,Cu`no symbol properties allowed`)},Cl=e=>"presence"===Ku(e)?(yu(Object.isFrozen(e)),yu.equal(Reflect.ownKeys(e).length,0),yu.equal(Object.getPrototypeOf(e),Object.prototype),yu.equal(zu(e),void 0),harden({})):((e=>{if(void 0===e)return;const t=harden(["decimalPlaces"]);hl(t,e)})(e=Gu(e)),e);harden((function(e,t=al.NAT,n){yu.typeof(e,"string"),n=Cl(n);const r=ta(yl(e,fl),{isMyIssuer:e=>wr.when(e,e=>e===$),getAllegedName:()=>e,getDisplayInfo:()=>n}),o=il(r,t),{add:s}=o,u=o.getEmpty(),{makeInstance:a,makeWeakStore:i}=dl("payment",()=>ta(yl(e,$l),{getAllegedBrand:()=>r})),l=i();function c(t){yu(l.has(t),Cu`payment not found for ${e}`)}const d=(e,t)=>{void 0!==t&&yu(o.isEqual(t,e),Cu`payment balance ${e} must equal amount ${t}`)},{makeInstance:p}=dl("depositFacet",t=>ta(yl(e,Dl),{receive:t.deposit})),{makeInstance:f}=dl("purse",()=>{let t=o.getEmpty();const{notifier:n,updater:s}=wu(t),u=ta(yl(e,ml),{deposit:(e,n)=>{if(gu(e))throw new TypeError("deposit does not accept promises as first argument. Instead of passing the promise (deposit(paymentPromise)), consider unwrapping the promise first: paymentPromise.then(actualPayment => deposit(actualPayment))");c(e);const r=l.get(e);d(r,n);const u=o.add(r,t);return l.delete(e),t=u,s.updateState(t),r},withdraw:e=>{e=o.coerce(e);const n=o.subtract(t,e),r=a();return t=n,s.updateState(t),l.init(r,e),r},getCurrentAmount:()=>t,getCurrentAmountNotifier:()=>n,getAllegedBrand:()=>r,getDepositFacet:()=>i}),i=p(u);return u}),m=(e,t)=>{if(e.length>1){const t=new Set;e.forEach(e=>{if(t.has(e))throw new Error("same payment seen twice");t.add(e)})}const n=e.map(l.get).reduce(s,u),r=t.reduce(s,u);yu(o.isEqual(n,r),"rights were not conserved"),e.forEach(e=>l.delete(e));const i=t.map(e=>{const t=a();return l.init(t,e),t});return harden(i)},$=ta(yl(e,pl),{getBrand:()=>r,getAllegedName:()=>e,getAmountMathKind:()=>t,makeEmptyPurse:f,isLive:e=>wr.when(e,e=>l.has(e)),getAmountOf:e=>wr.when(e,e=>(c(e),l.get(e))),burn:(e,t)=>wr.when(e,e=>{c(e);const n=l.get(e);return d(n,t),l.delete(e),n}),claim:(e,t)=>wr.when(e,e=>{c(e);const n=l.get(e);d(n,t);const[r]=m([e],[n]);return r}),combine:(e,t)=>Promise.all(e).then(e=>{e.every(c);const n=e.map(l.get).reduce(s,u);d(n,t);const[r]=m(e,[n]);return r}),split:(e,t)=>wr.when(e,e=>{t=o.coerce(t),c(e);const n=l.get(e),r=o.subtract(n,t);return m([e],[t,r])}),splitMany:(e,t)=>wr.when(e,e=>{c(e),t=t.map(o.coerce);return m([e],t)})}),g=ta(yl(e,gl),{getIssuer:()=>$,mintPayment:e=>{e=o.coerce(e);const t=a();return l.init(t,e),t}});return harden({mint:g,issuer:$,amountMath:o,brand:r})}));harden(async e=>{const[t,n]=await Promise.all([wr(e).getBrand(),wr(e).getAmountMathKind()]);return il(t,n)});function bl(e,t,n){const r=e.slice();return r[6]=t[n].instance.petname,r[7]=t[n].description,r}function El(e){let t,n,r,o,s,u=e[2](e[1])+"";return o=new ii({props:{name:e[0].petname}}),{c(){t=Dn("b"),n=hn(u),r=Cn(),yr(o.$$.fragment)},m(e,u){mn(e,t,u),fn(t,n),fn(t,r),hr(o,t,null),s=!0},p(e,t){(!s||2&t)&&u!==(u=e[2](e[1])+"")&&xn(n,u);const r={};1&t&&(r.name=e[0].petname),o.$set(r)},i(e){s||(ar(o.$$.fragment,e),s=!0)},o(e){ir(o.$$.fragment,e),s=!1},d(e){e&&$n(t),Cr(o)}}}function vl(e){let t,n;return t=new gi({props:{$$slots:{default:[Bl],activator:[Al]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};1027&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Al(e){let t,n,r,o,s,u,a=e[1].length+"";return s=new ii({props:{name:e[0].petname}}),{c(){t=Dn("div"),n=Dn("b"),r=hn(a),o=Cn(),yr(s.$$.fragment),An(n,"class","dotted-underline svelte-1i4p3if"),An(t,"slot","activator")},m(e,a){mn(e,t,a),fn(t,n),fn(n,r),fn(n,o),hr(s,n,null),u=!0},p(e,t){(!u||2&t)&&a!==(a=e[1].length+"")&&xn(r,a);const n={};1&t&&(n.name=e[0].petname),s.$set(n)},i(e){u||(ar(s.$$.fragment,e),u=!0)},o(e){ir(s.$$.fragment,e),u=!1},d(e){e&&$n(t),Cr(s)}}}function Fl(e){let t,n=e[1].map(e[5]).join(", ")+"";return{c(){t=hn(n)},m(e,n){mn(e,t,n)},p(e,r){2&r&&n!==(n=e[1].map(e[5]).join(", ")+"")&&xn(t,n)},i:Ht,o:Ht,d(e){e&&$n(t)}}}function wl(e){let t,n,r=e[1],o=[];for(let t=0;tir(o[e],1,1,()=>{o[e]=null});return{c(){for(let e=0;e{a[s]=null}),ur(),r=a[n],r||(r=a[n]=u[n](e),r.c()),ar(r,1),r.m(o.parentNode,o))},i(e){s||(ar(r),s=!0)},o(e){ir(r),s=!1},d(e){e&&$n(t),a[n].d(e),e&&$n(o)}}}function Pl(e){let t,n,r,o,s;const u=[vl,El],a=[];function i(e,t){return 2&t&&(n=!(!Array.isArray(e[1])||0===e[1].length)),n?0:1}return r=i(e,-1),o=a[r]=u[r](e),{c(){t=Dn("div"),o.c()},m(e,n){mn(e,t,n),a[r].m(t,null),s=!0},p(e,[n]){let s=r;r=i(e,n),r===s?a[r].p(e,n):(sr(),ir(a[s],1,1,()=>{a[s]=null}),ur(),o=a[r],o||(o=a[r]=u[r](e),o.c()),ar(o,1),o.m(t,null))},i(e){s||(ar(o),s=!0)},o(e){ir(o),s=!1},d(e){e&&$n(t),a[r].d()}}}function Sl(e,t,n){let{amount:r}=t,{displayInfo:o}=t;let s,u;return e.$$set=e=>{"amount"in e&&n(3,r=e.amount),"displayInfo"in e&&n(4,o=e.displayInfo)},e.$$.update=()=>{8&e.$$.dirty&&n(0,({brand:s,value:u}=r),s,(n(1,u),n(3,r)))},[s,u,e=>function(e,t){const{amountMathKind:n=al.NAT,decimalPlaces:r=0}=t||{};if(n!==al.NAT)return""+e.length;const o=BigInt(e);if(!r)return""+o;const s=10n**BigInt(r),u=""+o/s,a=(""+BigInt(o%s)).padStart(r,"0").replace(/0+$/,"").padEnd(2,"0");return a?`${u}.${a}`:""+u}(e,o),r,o,e=>JSON.stringify(e)]}class kl extends vr{constructor(e){super(),Er(this,e,Sl,Pl,Xt,{amount:3,displayInfo:4})}}function Il(e){let t,n,r=[{key:n="path-"+e[0]},e[1]],o={};for(let e=0;e{"id"in e&&n(0,r=e.id),"data"in e&&n(1,o=e.data)},[r,o]}class Nl extends vr{constructor(e){super(),Er(this,e,Tl,Il,Xt,{id:0,data:1})}}function Ol(e){let t,n,r=[{key:n="polygon-"+e[0]},e[1]],o={};for(let e=0;e{"id"in e&&n(0,r=e.id),"data"in e&&n(1,o=e.data)},[r,o]}class Rl extends vr{constructor(e){super(),Er(this,e,_l,Ol,Xt,{id:0,data:1})}}function jl(e){let t;return{c(){t=yn("g")},m(n,r){mn(n,t,r),t.innerHTML=e[0]},p(e,[n]){1&n&&(t.innerHTML=e[0])},i:Ht,o:Ht,d(e){e&&$n(t)}}}function Ml(e,t,n){let r,o=870711;let{data:s}=t;function u(e){if(!e||!e.raw)return null;let t=e.raw;const n={};return t=t.replace(/\s(?:xml:)?id=["']?([^"')\s]+)/g,(e,t)=>{const r=(o+=1,"fa-"+o.toString(16));return n[t]=r,` id="${r}"`}),t=t.replace(/#(?:([^'")\s]+)|xpointer\(id\((['"]?)([^')]+)\2\)\))/g,(e,t,r,o)=>{const s=t||o;return s&&n[s]?"#"+n[s]:e}),t}return e.$$set=e=>{"data"in e&&n(1,s=e.data)},e.$$.update=()=>{2&e.$$.dirty&&n(0,r=u(s))},[r,s]}class Ul extends vr{constructor(e){super(),Er(this,e,Ml,jl,Xt,{data:1})}}function Ll(e){let t,n,r,o;const s=e[13].default,u=en(s,e,e[12],null);return{c(){t=yn("svg"),u&&u.c(),An(t,"version","1.1"),An(t,"class",n="fa-icon "+e[0]+" svelte-1dof0an"),An(t,"x",e[8]),An(t,"y",e[9]),An(t,"width",e[1]),An(t,"height",e[2]),An(t,"aria-label",e[11]),An(t,"role",r=e[11]?"img":"presentation"),An(t,"viewBox",e[3]),An(t,"style",e[10]),Sn(t,"fa-spin",e[4]),Sn(t,"fa-pulse",e[6]),Sn(t,"fa-inverse",e[5]),Sn(t,"fa-flip-horizontal","horizontal"===e[7]),Sn(t,"fa-flip-vertical","vertical"===e[7])},m(e,n){mn(e,t,n),u&&u.m(t,null),o=!0},p(e,[a]){u&&u.p&&4096&a&&nn(u,s,e,e[12],a,null,null),(!o||1&a&&n!==(n="fa-icon "+e[0]+" svelte-1dof0an"))&&An(t,"class",n),(!o||256&a)&&An(t,"x",e[8]),(!o||512&a)&&An(t,"y",e[9]),(!o||2&a)&&An(t,"width",e[1]),(!o||4&a)&&An(t,"height",e[2]),(!o||2048&a)&&An(t,"aria-label",e[11]),(!o||2048&a&&r!==(r=e[11]?"img":"presentation"))&&An(t,"role",r),(!o||8&a)&&An(t,"viewBox",e[3]),(!o||1024&a)&&An(t,"style",e[10]),17&a&&Sn(t,"fa-spin",e[4]),65&a&&Sn(t,"fa-pulse",e[6]),33&a&&Sn(t,"fa-inverse",e[5]),129&a&&Sn(t,"fa-flip-horizontal","horizontal"===e[7]),129&a&&Sn(t,"fa-flip-vertical","vertical"===e[7])},i(e){o||(ar(u,e),o=!0)},o(e){ir(u,e),o=!1},d(e){e&&$n(t),u&&u.d(e)}}}function zl(e,t,n){let{class:r}=t,{width:o}=t,{height:s}=t,{box:u}=t,{spin:a=!1}=t,{inverse:i=!1}=t,{pulse:l=!1}=t,{flip:c=null}=t,{x:d}=t,{y:p}=t,{style:f}=t,{label:m}=t,{$$slots:$={},$$scope:g}=t;return e.$$set=e=>{"class"in e&&n(0,r=e.class),"width"in e&&n(1,o=e.width),"height"in e&&n(2,s=e.height),"box"in e&&n(3,u=e.box),"spin"in e&&n(4,a=e.spin),"inverse"in e&&n(5,i=e.inverse),"pulse"in e&&n(6,l=e.pulse),"flip"in e&&n(7,c=e.flip),"x"in e&&n(8,d=e.x),"y"in e&&n(9,p=e.y),"style"in e&&n(10,f=e.style),"label"in e&&n(11,m=e.label),"$$scope"in e&&n(12,g=e.$$scope)},[r,o,s,u,a,i,l,c,d,p,f,m,g,$]}class Gl extends vr{constructor(e){super(),Er(this,e,zl,Ll,Xt,{class:0,width:1,height:2,box:3,spin:4,inverse:5,pulse:6,flip:7,x:8,y:9,style:10,label:11})}}function Wl(e,t,n){const r=e.slice();return r[24]=t[n],r[26]=n,r}function Hl(e,t,n){const r=e.slice();return r[27]=t[n],r[26]=n,r}function ql(e){let t,n,r,o,s=e[0].paths&&Vl(e),u=e[0].polygons&&Kl(e),a=e[0].raw&&Zl(e);return{c(){s&&s.c(),t=Cn(),u&&u.c(),n=Cn(),a&&a.c(),r=bn()},m(e,i){s&&s.m(e,i),mn(e,t,i),u&&u.m(e,i),mn(e,n,i),a&&a.m(e,i),mn(e,r,i),o=!0},p(e,o){e[0].paths?s?(s.p(e,o),1&o&&ar(s,1)):(s=Vl(e),s.c(),ar(s,1),s.m(t.parentNode,t)):s&&(sr(),ir(s,1,1,()=>{s=null}),ur()),e[0].polygons?u?(u.p(e,o),1&o&&ar(u,1)):(u=Kl(e),u.c(),ar(u,1),u.m(n.parentNode,n)):u&&(sr(),ir(u,1,1,()=>{u=null}),ur()),e[0].raw?a?(a.p(e,o),1&o&&ar(a,1)):(a=Zl(e),a.c(),ar(a,1),a.m(r.parentNode,r)):a&&(sr(),ir(a,1,1,()=>{a=null}),ur())},i(e){o||(ar(s),ar(u),ar(a),o=!0)},o(e){ir(s),ir(u),ir(a),o=!1},d(e){s&&s.d(e),e&&$n(t),u&&u.d(e),e&&$n(n),a&&a.d(e),e&&$n(r)}}}function Vl(e){let t,n,r=e[0].paths,o=[];for(let t=0;tir(o[e],1,1,()=>{o[e]=null});return{c(){for(let e=0;eir(o[e],1,1,()=>{o[e]=null});return{c(){for(let e=0;eDr(t,"data",o)),{c(){yr(t.$$.fragment)},m(e,n){hr(t,e,n),r=!0},p(e,r){const o={};!n&&1&r&&(n=!0,o.data=e[0],Kn(()=>n=!1)),t.$set(o)},i(e){r||(ar(t.$$.fragment,e),r=!0)},o(e){ir(t.$$.fragment,e),r=!1},d(e){Cr(t,e)}}}function Xl(e){let t;const n=e[14].default,r=en(n,e,e[16],null),o=r||function(e){let t,n,r=e[0]&&ql(e);return{c(){r&&r.c(),t=bn()},m(e,o){r&&r.m(e,o),mn(e,t,o),n=!0},p(e,n){e[0]?r?(r.p(e,n),1&n&&ar(r,1)):(r=ql(e),r.c(),ar(r,1),r.m(t.parentNode,t)):r&&(sr(),ir(r,1,1,()=>{r=null}),ur())},i(e){n||(ar(r),n=!0)},o(e){ir(r),n=!1},d(e){r&&r.d(e),e&&$n(t)}}}(e);return{c(){o&&o.c()},m(e,n){o&&o.m(e,n),t=!0},p(e,t){r?r.p&&65536&t&&nn(r,n,e,e[16],t,null,null):o&&o.p&&1&t&&o.p(e,t)},i(e){t||(ar(o,e),t=!0)},o(e){ir(o,e),t=!1},d(e){o&&o.d(e)}}}function Ql(e){let t,n;return t=new Gl({props:{label:e[6],width:e[7],height:e[8],box:e[10],style:e[9],spin:e[2],flip:e[5],inverse:e[3],pulse:e[4],class:e[1],$$slots:{default:[Xl]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,[n]){const r={};64&n&&(r.label=e[6]),128&n&&(r.width=e[7]),256&n&&(r.height=e[8]),1024&n&&(r.box=e[10]),512&n&&(r.style=e[9]),4&n&&(r.spin=e[2]),32&n&&(r.flip=e[5]),8&n&&(r.inverse=e[3]),16&n&&(r.pulse=e[4]),2&n&&(r.class=e[1]),65537&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function ec(e,t,n){let r,o,s,u,{class:a=""}=t,{data:i}=t,{scale:l=1}=t,{spin:c=!1}=t,{inverse:d=!1}=t,{pulse:p=!1}=t,{flip:f=null}=t,{label:m=null}=t,{self:$=null}=t,{style:g=null}=t;function D(){let e=1;return void 0!==l&&(e=Number(l)),isNaN(e)||e<=0?(console.warn('Invalid prop: prop "scale" should be a number over 0.'),1):1*e}function y(){return $?Math.max($.width,$.height)/16:1}let{$$slots:h={},$$scope:C}=t;return e.$$set=e=>{"class"in e&&n(1,a=e.class),"data"in e&&n(11,i=e.data),"scale"in e&&n(12,l=e.scale),"spin"in e&&n(2,c=e.spin),"inverse"in e&&n(3,d=e.inverse),"pulse"in e&&n(4,p=e.pulse),"flip"in e&&n(5,f=e.flip),"label"in e&&n(6,m=e.label),"self"in e&&n(0,$=e.self),"style"in e&&n(13,g=e.style),"$$scope"in e&&n(16,C=e.$$scope)},e.$$.update=()=>{14336&e.$$.dirty&&(!function(){if(void 0===i)return;const e=function(e){if("iconName"in e&&"icon"in e){let t={},n=e.icon,r=e.iconName,o={width:n[0],height:n[1],paths:[{d:n[4]}]};return t[r]=o,t}return e}(i),[t]=Object.keys(e),r=e[t];r.paths||(r.paths=[]),r.d&&r.paths.push({d:r.d}),r.polygons||(r.polygons=[]),r.points&&r.polygons.push({points:r.points}),n(0,$=r)}(),n(7,r=$?$.width/y()*D():0),n(8,o=$?$.height/y()*D():0),n(9,s=function(){let e="";null!==g&&(e+=g);let t=D();return 1===t?e:(""===e||e.endsWith(";")||(e+="; "),`${e}font-size: ${t}em`)}()),n(10,u=$?`0 0 ${$.width} ${$.height}`:`0 0 ${r} ${o}`))},[$,a,c,d,p,f,m,r,o,s,u,i,l,g,h,function(e){$=e,n(0,$)},C]}class tc extends vr{constructor(e){super(),Er(this,e,ec,Ql,Xt,{class:1,data:11,scale:12,spin:2,inverse:3,pulse:4,flip:5,label:6,self:0,style:13})}}function nc(e){let t,n,r,o,s,u;return{c(){t=Dn("div"),An(t,"class","bg-black fixed top-0 left-0 z-10 w-full h-full"),Pn(t,"opacity",e[0])},m(n,r){mn(n,t,r),o=!0,s||(u=En(t,"click",e[3]),s=!0)},p(e,[n]){(!o||1&n)&&Pn(t,"opacity",e[0])},i(s){o||(Jn(()=>{r&&r.end(1),n||(n=cr(t,oo,e[1])),n.start()}),o=!0)},o(s){n&&n.invalidate(),r=dr(t,oo,e[2]),o=!1},d(e){e&&$n(t),e&&r&&r.end(),s=!1,u()}}}function rc(e,t,n){let{opacity:r=.5}=t,{inProps:o={duration:200,easing:no}}=t,{outProps:s={duration:200,easing:ro}}=t;return e.$$set=e=>{"opacity"in e&&n(0,r=e.opacity),"inProps"in e&&n(1,o=e.inProps),"outProps"in e&&n(2,s=e.outProps)},[r,o,s,function(t){Ln(e,t)}]}const oc=class extends vr{constructor(e){super(),Er(this,e,rc,nc,Xt,{opacity:0,inProps:1,outProps:2})}},sc=e=>({}),uc=e=>({}),ac=e=>({}),ic=e=>({});function lc(e){let t,n,r,o,s,u,a,i,l,c,d;n=new oc({props:{opacity:e[1]}}),n.$on("click",e[12]);const p=e[11].title,f=en(p,e,e[10],ic),m=e[11].default,$=en(m,e,e[10],null),g=e[11].actions,D=en(g,e,e[10],uc);return{c(){t=Dn("div"),yr(n.$$.fragment),r=Cn(),o=Dn("div"),s=Dn("div"),u=Dn("div"),f&&f.c(),a=Cn(),$&&$.c(),i=Cn(),l=Dn("div"),D&&D.c(),An(u,"class",e[5]),An(l,"class",e[6]),An(s,"class",e[4]),An(o,"class","h-full w-full absolute flex items-center justify-center"),An(t,"class","fixed w-full h-full top-0 left-0 z-30")},m(e,c){mn(e,t,c),hr(n,t,null),fn(t,r),fn(t,o),fn(o,s),fn(s,u),f&&f.m(u,null),fn(s,a),$&&$.m(s,null),fn(s,i),fn(s,l),D&&D.m(l,null),d=!0},p(e,t){const r={};2&t&&(r.opacity=e[1]),n.$set(r),f&&f.p&&1024&t&&nn(f,p,e,e[10],t,ac,ic),(!d||32&t)&&An(u,"class",e[5]),$&&$.p&&1024&t&&nn($,m,e,e[10],t,null,null),D&&D.p&&1024&t&&nn(D,g,e,e[10],t,sc,uc),(!d||64&t)&&An(l,"class",e[6]),(!d||16&t)&&An(s,"class",e[4])},i(t){d||(ar(n.$$.fragment,t),ar(f,t),ar($,t),ar(D,t),c||Jn(()=>{c=cr(s,ao,e[3]),c.start()}),d=!0)},o(e){ir(n.$$.fragment,e),ir(f,e),ir($,e),ir(D,e),d=!1},d(e){e&&$n(t),Cr(n),f&&f.d(e),$&&$.d(e),D&&D.d(e)}}}function cc(e){let t,n,r=e[0]&&lc(e);return{c(){r&&r.c(),t=bn()},m(e,o){r&&r.m(e,o),mn(e,t,o),n=!0},p(e,[n]){e[0]?r?(r.p(e,n),1&n&&ar(r,1)):(r=lc(e),r.c(),ar(r,1),r.m(t.parentNode,t)):r&&(sr(),ir(r,1,1,()=>{r=null}),ur())},i(e){n||(ar(r),n=!0)},o(e){ir(r),n=!1},d(e){r&&r.d(e),e&&$n(t)}}}const dc="items-center z-50 rounded bg-white dark:bg-dark-400 p-4 elevation-4",pc="text-lg font-bold pb-4",fc="flex w-full justify-end pt-4";function mc(e,t,n){let{value:r}=t,{classes:o=dc}=t,{titleClasses:s=pc}=t,{actionsClasses:u=fc}=t,{opacity:a=.5}=t,{persistent:i=!1}=t,{transitionProps:l={duration:150,easing:no,delay:150}}=t;const c=new Tr(o,dc),d=new Tr(s,pc),p=new Tr(u,fc);let{$$slots:f={},$$scope:m}=t;let $,g,D;return e.$$set=e=>{n(16,t=Vt(Vt({},t),rn(e))),"value"in e&&n(0,r=e.value),"classes"in e&&n(7,o=e.classes),"titleClasses"in e&&n(8,s=e.titleClasses),"actionsClasses"in e&&n(9,u=e.actionsClasses),"opacity"in e&&n(1,a=e.opacity),"persistent"in e&&n(2,i=e.persistent),"transitionProps"in e&&n(3,l=e.transitionProps),"$$scope"in e&&n(10,m=e.$$scope)},e.$$.update=()=>{n(4,$=c.flush().add(o,!0,dc).add(t.class).get()),256&e.$$.dirty&&n(5,g=d.flush().add(s,!0,fc).get()),512&e.$$.dirty&&n(6,D=p.flush().add(u,!0,fc).get())},t=rn(t),[r,a,i,l,$,g,D,o,s,u,m,f,()=>!i&&n(0,r=!1)]}class $c extends vr{constructor(e){super(),Er(this,e,mc,cc,Xt,{value:0,classes:7,titleClasses:8,actionsClasses:9,opacity:1,persistent:2,transitionProps:3})}}function gc(e){let t;return{c(){t=hn("Cancel")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Dc(e){let t,n,r,o;return t=new eo({props:{text:!0,color:"secondary",$$slots:{default:[gc]},$$scope:{ctx:e}}}),t.$on("click",e[3]),{c(){yr(t.$$.fragment)},m(s,u){hr(t,s,u),n=!0,r||(o=En(window,"keydown",e[1]),r=!0)},p(e,[n]){const r={};16&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e),r=!1,o()}}}function yc(e,t,n){const r=Un();let{isDefault:o=!1}=t;return e.$$set=e=>{"isDefault"in e&&n(2,o=e.isDefault)},[r,e=>{if("Escape"!==e.key)return o&&"Enter"===e.key?(e.stopPropagation(),e.preventDefault(),void r("click")):void 0;r("click")},o,e=>{e.stopPropagation(),r("click")}]}class hc extends vr{constructor(e){super(),Er(this,e,yc,Dc,Xt,{isDefault:2})}}function Cc(e){let t,n;return{c(){t=Dn("h2"),n=hn(e[0]),An(t,"slot","title")},m(e,r){mn(e,t,r),fn(t,n)},p(e,t){1&t&&xn(n,e[0])},d(e){e&&$n(t)}}}function bc(e){let t,n,r;return n=new hc({props:{isDefault:!0}}),n.$on("click",e[5]),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","actions"),An(t,"class","svelte-1cnvmmn")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p:Ht,i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function Ec(e){let t,n,r,o;return{c(){t=Cn(),n=Dn("pre"),r=hn(e[2]),o=Cn(),An(n,"class","svelte-1cnvmmn")},m(e,s){mn(e,t,s),mn(e,n,s),fn(n,r),mn(e,o,s)},p(e,t){xn(r,e[2])},i:Ht,o:Ht,d(e){e&&$n(t),e&&$n(n),e&&$n(o)}}}function vc(e){let t,n,r,o,s,u;function a(t){e[6].call(null,t)}n=new eo({props:{class:"right",icon:"code",small:!0,text:!0,fab:!0,flat:!0}}),n.$on("click",e[4]);let i={class:Ac,$$slots:{default:[Ec],actions:[bc],title:[Cc]},$$scope:{ctx:e}};return void 0!==e[1]&&(i.value=e[1]),o=new $c({props:i}),Gn.push(()=>Dr(o,"value",a)),{c(){t=Dn("div"),yr(n.$$.fragment),r=Cn(),yr(o.$$.fragment),An(t,"class","svelte-1cnvmmn")},m(e,s){mn(e,t,s),hr(n,t,null),mn(e,r,s),hr(o,e,s),u=!0},p(e,[t]){const r={};128&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r);const u={};135&t&&(u.$$scope={dirty:t,ctx:e}),!s&&2&t&&(s=!0,u.value=e[1],Kn(()=>s=!1)),o.$set(u)},i(e){u||(ar(n.$$.fragment,e),ar(o.$$.fragment,e),u=!0)},o(e){ir(n.$$.fragment,e),ir(o.$$.fragment,e),u=!1},d(e){e&&$n(t),Cr(n),e&&$n(r),Cr(o,e)}}}const Ac=e=>e+"patchModal";function Fc(e,t,n){let{title:r="Debug Info"}=t,{target:o}=t,s=!1;let u;return e.$$set=e=>{"title"in e&&n(0,r=e.title),"target"in e&&n(3,o=e.target)},e.$$.update=()=>{8&e.$$.dirty&&n(2,u=function e(t,n,r,o=new WeakSet,s=0){if(Object(t)!==t)return"bigint"==typeof t?t+"n":JSON.stringify(t,null,n);if("function"==typeof t)return`[Function ${t.name||""}]`;if(gu(t))return"[Promise]";if(t instanceof Error)return JSON.stringify(`${t.name}: ${t.message}`);if(o.has(t))return"[Circular]";o.add(t);let u="";const a=void 0===n?"":" ".repeat(n);if(r&&void 0!==r(t))u+=""+t;else if(Array.isArray(t)){u+="[";let i="";for(let l=0;l0?" ":""}`,u+=e(t[l],n,r,o,s+1),i=",";return""!==i&&""!==a&&(u+="\n"+a.repeat(s)),u+="}",o.delete(t),u}(o,2))},[r,s,u,o,()=>n(1,s=!0),()=>n(1,s=!1),function(e){s=e,n(1,s)}]}class wc extends vr{constructor(e){super(),Er(this,e,Fc,vc,Xt,{title:0,target:3})}}function xc(e){let t,n;return t=new eo({props:{$$slots:{default:[Pc]},$$scope:{ctx:e}}}),t.$on("click",(function(){Zt(e[1])&&e[1].apply(this,arguments)})),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(n,r){e=n;const o={};4&r&&(o.$$scope={dirty:r,ctx:e}),t.$set(o)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Bc(e){let t,n,r,o,s;return{c(){t=hn("("),n=Dn("b"),r=hn("board:"),o=hn(e[0]),s=hn(")")},m(e,u){mn(e,t,u),mn(e,n,u),fn(n,r),fn(n,o),mn(e,s,u)},p(e,t){1&t&&xn(o,e[0])},i:Ht,o:Ht,d(e){e&&$n(t),e&&$n(n),e&&$n(s)}}}function Pc(e){let t;return{c(){t=hn("Publish")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Sc(e){let t,n,r,o;const s=[Bc,xc],u=[];function a(e,t){return e[0]?0:e[1]?1:-1}return~(t=a(e))&&(n=u[t]=s[t](e)),{c(){n&&n.c(),r=bn()},m(e,n){~t&&u[t].m(e,n),mn(e,r,n),o=!0},p(e,[o]){let i=t;t=a(e),t===i?~t&&u[t].p(e,o):(n&&(sr(),ir(u[i],1,1,()=>{u[i]=null}),ur()),~t?(n=u[t],n||(n=u[t]=s[t](e),n.c()),ar(n,1),n.m(r.parentNode,r)):n=null)},i(e){o||(ar(n),o=!0)},o(e){ir(n),o=!1},d(e){~t&&u[t].d(e),e&&$n(r)}}}function kc(e,t,n){let{id:r}=t,{onPublish:o}=t;return e.$$set=e=>{"id"in e&&n(0,r=e.id),"onPublish"in e&&n(1,o=e.onPublish)},[r,o]}class Ic extends vr{constructor(e){super(),Er(this,e,kc,Sc,Xt,{id:0,onPublish:1})}}function Tc(e,t){const n=n=>{e.contains(n.target)||t()};return window.addEventListener("click",n),{destroy:()=>{window.removeEventListener("click",n)}}}const Nc=e=>({}),Oc=e=>({}),_c=e=>({}),Rc=e=>({});function jc(e){let t;const n=e[38].options,r=en(n,e,e[37],Oc),o=r||function(e){let t,n,r,o,s,u;function a(t){e[41].call(null,t)}let i={class:e[18],selectedClasses:e[19],itemClasses:e[20],select:!0,dense:e[10],items:e[25]};void 0!==e[0]&&(i.value=e[0]);return n=new To({props:i}),Gn.push(()=>Dr(n,"value",a)),n.$on("change",e[42]),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"class",e[27])},m(r,a){mn(r,t,a),hr(n,t,null),o=!0,s||(u=En(t,"click",e[43]),s=!0)},p(e,s){const u={};262144&s[0]&&(u.class=e[18]),524288&s[0]&&(u.selectedClasses=e[19]),1048576&s[0]&&(u.itemClasses=e[20]),1024&s[0]&&(u.dense=e[10]),33554432&s[0]&&(u.items=e[25]),!r&&1&s[0]&&(r=!0,u.value=e[0],Kn(()=>r=!1)),n.$set(u),(!o||134217728&s[0])&&An(t,"class",e[27])},i(e){o||(ar(n.$$.fragment,e),o=!0)},o(e){ir(n.$$.fragment,e),o=!1},d(e){e&&$n(t),Cr(n),s=!1,u()}}}(e);return{c(){o&&o.c()},m(e,n){o&&o.m(e,n),t=!0},p(e,t){r?r.p&&64&t[1]&&nn(r,n,e,e[37],t,Nc,Oc):o&&o.p&&169608195&t[0]&&o.p(e,t)},i(e){t||(ar(o,e),t=!0)},o(e){ir(o,e),t=!1},d(e){o&&o.d(e)}}}function Mc(e){let t,n,r,o,s,u;const a=e[38].select,i=en(a,e,e[37],Rc),l=i||function(e){let t,n;return t=new qs({props:{select:!0,dense:e[10],focused:e[1],autocomplete:e[12],value:e[24],outlined:e[5],label:e[3],placeholder:e[6],hint:e[7],error:e[8],append:e[9],persistentHint:e[11],color:e[4],add:e[21],remove:e[22],replace:e[23],noUnderline:e[13],class:e[14],appendClasses:e[2],labelClasses:e[15],inputClasses:e[16],prependClasses:e[17],appendReverse:e[1]}}),t.$on("click",e[30]),t.$on("click-append",e[39]),t.$on("click",e[40]),t.$on("input",e[29]),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};1024&n[0]&&(r.dense=e[10]),2&n[0]&&(r.focused=e[1]),4096&n[0]&&(r.autocomplete=e[12]),16777216&n[0]&&(r.value=e[24]),32&n[0]&&(r.outlined=e[5]),8&n[0]&&(r.label=e[3]),64&n[0]&&(r.placeholder=e[6]),128&n[0]&&(r.hint=e[7]),256&n[0]&&(r.error=e[8]),512&n[0]&&(r.append=e[9]),2048&n[0]&&(r.persistentHint=e[11]),16&n[0]&&(r.color=e[4]),2097152&n[0]&&(r.add=e[21]),4194304&n[0]&&(r.remove=e[22]),8388608&n[0]&&(r.replace=e[23]),8192&n[0]&&(r.noUnderline=e[13]),16384&n[0]&&(r.class=e[14]),4&n[0]&&(r.appendClasses=e[2]),32768&n[0]&&(r.labelClasses=e[15]),65536&n[0]&&(r.inputClasses=e[16]),131072&n[0]&&(r.prependClasses=e[17]),2&n[0]&&(r.appendReverse=e[1]),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}(e);let c=e[1]&&jc(e);return{c(){t=Dn("div"),l&&l.c(),n=Cn(),c&&c.c(),An(t,"class",e[26])},m(a,i){mn(a,t,i),l&&l.m(t,null),fn(t,n),c&&c.m(t,null),o=!0,s||(u=sn(r=Tc.call(null,t,e[31])),s=!0)},p(e,n){i?i.p&&64&n[1]&&nn(i,a,e,e[37],n,_c,Rc):l&&l.p&&31719422&n[0]&&l.p(e,n),e[1]?c?(c.p(e,n),2&n[0]&&ar(c,1)):(c=jc(e),c.c(),ar(c,1),c.m(t,null)):c&&(sr(),ir(c,1,1,()=>{c=null}),ur()),(!o||67108864&n[0])&&An(t,"class",e[26])},i(e){o||(ar(l,e),ar(c),o=!0)},o(e){ir(l,e),ir(c),o=!1},d(e){e&&$n(t),l&&l.d(e),c&&c.d(),s=!1,u()}}}const Uc="absolute left-0 bg-white rounded elevation-3 w-full z-20 dark:bg-dark-500",Lc="cursor-pointer relative pb-4";function zc(e,t,n){const r=e=>e;let{items:o=[]}=t,{value:s=""}=t;let{label:u=""}=t,{selectedLabel:a}=t,{color:i="primary"}=t,{outlined:l=!1}=t,{placeholder:c=""}=t,{hint:d=""}=t,{error:p=!1}=t,{append:f="arrow_drop_down"}=t,{dense:m=!1}=t,{persistentHint:$=!1}=t,{autocomplete:g=!1}=t,{noUnderline:D=!1}=t,{showList:y=!1}=t,{classes:h=Lc}=t,{optionsClasses:C=Uc}=t,{inputWrapperClasses:b=r}=t,{appendClasses:E=r}=t,{labelClasses:v=r}=t,{inputClasses:A=r}=t,{prependClasses:F=r}=t,{listClasses:w=r}=t,{selectedClasses:x=r}=t,{itemClasses:B=r}=t,{add:P=""}=t,{remove:S=""}=t,{replace:k=""}=t,I=[];const T=Un();let N="",O=null;const _=new Tr(h,Lc),R=new Tr(C,Uc);let{$$slots:j={},$$scope:M}=t;let U,L,z;return e.$$set=e=>{n(49,t=Vt(Vt({},t),rn(e))),"items"in e&&n(32,o=e.items),"value"in e&&n(0,s=e.value),"label"in e&&n(3,u=e.label),"selectedLabel"in e&&n(34,a=e.selectedLabel),"color"in e&&n(4,i=e.color),"outlined"in e&&n(5,l=e.outlined),"placeholder"in e&&n(6,c=e.placeholder),"hint"in e&&n(7,d=e.hint),"error"in e&&n(8,p=e.error),"append"in e&&n(9,f=e.append),"dense"in e&&n(10,m=e.dense),"persistentHint"in e&&n(11,$=e.persistentHint),"autocomplete"in e&&n(12,g=e.autocomplete),"noUnderline"in e&&n(13,D=e.noUnderline),"showList"in e&&n(1,y=e.showList),"classes"in e&&n(35,h=e.classes),"optionsClasses"in e&&n(36,C=e.optionsClasses),"inputWrapperClasses"in e&&n(14,b=e.inputWrapperClasses),"appendClasses"in e&&n(2,E=e.appendClasses),"labelClasses"in e&&n(15,v=e.labelClasses),"inputClasses"in e&&n(16,A=e.inputClasses),"prependClasses"in e&&n(17,F=e.prependClasses),"listClasses"in e&&n(18,w=e.listClasses),"selectedClasses"in e&&n(19,x=e.selectedClasses),"itemClasses"in e&&n(20,B=e.itemClasses),"add"in e&&n(21,P=e.add),"remove"in e&&n(22,S=e.remove),"replace"in e&&n(23,k=e.replace),"$$scope"in e&&n(37,M=e.$$scope)},e.$$.update=()=>{if(2&e.$$.dirty[1]&&n(44,I=o.map(e=>"object"!=typeof e?{value:e,text:e}:e)),1&e.$$.dirty[0]|8200&e.$$.dirty[1])if(void 0!==a)n(24,N=a);else if(void 0!==s){let e=I.find(e=>e.value===s);n(24,N=e?e.text:"")}else n(24,N="");24576&e.$$.dirty[1]&&n(25,U=I.filter(e=>!O||e.text.toLowerCase().includes(O))),n(26,L=_.flush().add(h,!0,Lc).add(t.class).get()),32&e.$$.dirty[0]|32&e.$$.dirty[1]&&n(27,z=R.flush().add(C,!0,Uc).add("rounded-t-none",!l).get()),1024&e.$$.dirty[0]&&m&&n(2,E=e=>e.replace("pt-4","pt-3"))},t=rn(t),[s,y,E,u,i,l,c,d,p,f,m,$,g,D,b,v,A,F,w,x,B,P,S,k,N,U,L,z,T,function({target:e}){n(45,O=e.value.toLowerCase())},function(){n(1,y=!!g||!y)},()=>n(1,y=!1),o,"",a,h,C,M,j,e=>n(1,y=!y),function(t){Ln(e,t)},function(e){s=e,n(0,s)},({detail:e})=>{T("change",e)},()=>n(1,y=!1)]}class Gc extends vr{constructor(e){super(),Er(this,e,zc,Mc,Xt,{items:32,value:0,text:33,label:3,selectedLabel:34,color:4,outlined:5,placeholder:6,hint:7,error:8,append:9,dense:10,persistentHint:11,autocomplete:12,noUnderline:13,showList:1,classes:35,optionsClasses:36,inputWrapperClasses:14,appendClasses:2,labelClasses:15,inputClasses:16,prependClasses:17,listClasses:18,selectedClasses:19,itemClasses:20,add:21,remove:22,replace:23},[-1,-1])}get text(){return this.$$.ctx[33]}}function Wc(e){let t;return{c(){t=hn("Unknown brand. This payment cannot be verified.")},m(e,n){mn(e,t,n)},p:Ht,i:Ht,o:Ht,d(e){e&&$n(t)}}}function Hc(e){let t,n,r,o=e[1]&&Vc(e),s=e[3]&&Yc(e);return{c(){o&&o.c(),t=Cn(),s&&s.c(),n=bn()},m(e,u){o&&o.m(e,u),mn(e,t,u),s&&s.m(e,u),mn(e,n,u),r=!0},p(e,r){e[1]?o?(o.p(e,r),2&r&&ar(o,1)):(o=Vc(e),o.c(),ar(o,1),o.m(t.parentNode,t)):o&&(sr(),ir(o,1,1,()=>{o=null}),ur()),e[3]?s?(s.p(e,r),8&r&&ar(s,1)):(s=Yc(e),s.c(),ar(s,1),s.m(n.parentNode,n)):s&&(sr(),ir(s,1,1,()=>{s=null}),ur())},i(e){r||(ar(o),ar(s),r=!0)},o(e){ir(o),ir(s),r=!1},d(e){o&&o.d(e),e&&$n(t),s&&s.d(e),e&&$n(n)}}}function qc(e){let t,n,r=e[1]&&ed(e);return{c(){r&&r.c(),t=bn()},m(e,o){r&&r.m(e,o),mn(e,t,o),n=!0},p(e,n){e[1]?r?(r.p(e,n),2&n&&ar(r,1)):(r=ed(e),r.c(),ar(r,1),r.m(t.parentNode,t)):r&&(sr(),ir(r,1,1,()=>{r=null}),ur())},i(e){n||(ar(r),n=!0)},o(e){ir(r),n=!1},d(e){r&&r.d(e),e&&$n(t)}}}function Vc(e){let t,n,r,o=(!e[2]||1===e[2])&&Jc(),s=e[0].lastAmount&&(!e[2]||2===e[2])&&Kc(e);return{c(){o&&o.c(),t=Cn(),s&&s.c(),n=bn()},m(e,u){o&&o.m(e,u),mn(e,t,u),s&&s.m(e,u),mn(e,n,u),r=!0},p(e,r){e[2]&&1!==e[2]?o&&(o.d(1),o=null):o||(o=Jc(),o.c(),o.m(t.parentNode,t)),!e[0].lastAmount||e[2]&&2!==e[2]?s&&(sr(),ir(s,1,1,()=>{s=null}),ur()):s?(s.p(e,r),5&r&&ar(s,1)):(s=Kc(e),s.c(),ar(s,1),s.m(n.parentNode,n))},i(e){r||(ar(s),r=!0)},o(e){ir(s),r=!1},d(e){o&&o.d(e),e&&$n(t),s&&s.d(e),e&&$n(n)}}}function Jc(e){let t;return{c(){t=hn("Payment amount")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Kc(e){let t,n;return t=new kl({props:{amount:e[0].displayPayment.lastAmount,displayInfo:e[0].displayPayment.displayInfo}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.amount=e[0].displayPayment.lastAmount),1&n&&(r.displayInfo=e[0].displayPayment.displayInfo),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Yc(e){let t,n,r,o,s,u,a=e[7]&&Zc(e);return r=new eo({props:{$$slots:{default:[Xc]},$$scope:{ctx:e}}}),r.$on("click",e[9]),s=new eo({props:{$$slots:{default:[Qc]},$$scope:{ctx:e}}}),s.$on("click",(function(){Zt(e[5])&&e[5].apply(this,arguments)})),{c(){a&&a.c(),t=Cn(),n=Dn("div"),yr(r.$$.fragment),o=Cn(),yr(s.$$.fragment)},m(e,i){a&&a.m(e,i),mn(e,t,i),mn(e,n,i),hr(r,n,null),fn(n,o),hr(s,n,null),u=!0},p(n,o){(e=n)[7]?a?(a.p(e,o),128&o&&ar(a,1)):(a=Zc(e),a.c(),ar(a,1),a.m(t.parentNode,t)):a&&(sr(),ir(a,1,1,()=>{a=null}),ur());const u={};1024&o&&(u.$$scope={dirty:o,ctx:e}),r.$set(u);const i={};1024&o&&(i.$$scope={dirty:o,ctx:e}),s.$set(i)},i(e){u||(ar(a),ar(r.$$.fragment,e),ar(s.$$.fragment,e),u=!0)},o(e){ir(a),ir(r.$$.fragment,e),ir(s.$$.fragment,e),u=!1},d(e){a&&a.d(e),e&&$n(t),e&&$n(n),Cr(r),Cr(s)}}}function Zc(e){let t,n,r;function o(t){e[8].call(null,t)}let s={items:e[6],label:"Deposit to"};return void 0!==e[4]&&(s.value=e[4]),t=new Gc({props:s}),Gn.push(()=>Dr(t,"value",o)),{c(){yr(t.$$.fragment)},m(e,n){hr(t,e,n),r=!0},p(e,r){const o={};64&r&&(o.items=e[6]),!n&&16&r&&(n=!0,o.value=e[4],Kn(()=>n=!1)),t.$set(o)},i(e){r||(ar(t.$$.fragment,e),r=!0)},o(e){ir(t.$$.fragment,e),r=!1},d(e){Cr(t,e)}}}function Xc(e){let t;return{c(){t=hn("Refresh")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Qc(e){let t;return{c(){t=hn("Deposit")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function ed(e){let t,n,r;return n=new kl({props:{amount:e[0].displayPayment.depositedAmount,displayInfo:e[0].displayPayment.displayInfo}}),{c(){t=hn("Deposited "),yr(n.$$.fragment)},m(e,o){mn(e,t,o),hr(n,e,o),r=!0},p(e,t){const r={};1&t&&(r.amount=e[0].displayPayment.depositedAmount),1&t&&(r.displayInfo=e[0].displayPayment.displayInfo),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n,e)}}}function td(e){let t,n;return t=new wc({props:{title:"Payment Detail",target:e[0]}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.target=e[0]),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function nd(e){let t,n,r,o,s,u;const a=[qc,Hc,Wc],i=[];function l(e,t){return"deposited"===e[0].status?0:e[0].issuer?1:!e[1]||e[2]&&1!==e[2]?-1:2}~(r=l(e))&&(o=i[r]=a[r](e));let c=e[3]&&td(e);return{c(){t=Dn("section"),n=Dn("div"),o&&o.c(),s=Cn(),c&&c.c()},m(e,o){mn(e,t,o),fn(t,n),~r&&i[r].m(n,null),fn(n,s),c&&c.m(n,null),u=!0},p(e,[t]){let u=r;r=l(e),r===u?~r&&i[r].p(e,t):(o&&(sr(),ir(i[u],1,1,()=>{i[u]=null}),ur()),~r?(o=i[r],o||(o=i[r]=a[r](e),o.c()),ar(o,1),o.m(n,s)):o=null),e[3]?c?(c.p(e,t),8&t&&ar(c,1)):(c=td(e),c.c(),ar(c,1),c.m(n,null)):c&&(sr(),ir(c,1,1,()=>{c=null}),ur())},i(e){u||(ar(o),ar(c),u=!0)},o(e){ir(o),ir(c),u=!1},d(e){e&&$n(t),~r&&i[r].d(),c&&c.d()}}}function rd(e,t,n){let r;Qt(e,Da,e=>n(7,r=e));let{item:o}=t,{summary:s=!0}=t,{summaryLine:u=0}=t,{details:a=!0}=t,i=null;let l,c;return e.$$set=e=>{"item"in e&&n(0,o=e.item),"summary"in e&&n(1,s=e.summary),"summaryLine"in e&&n(2,u=e.summaryLine),"details"in e&&n(3,a=e.details)},e.$$.update=()=>{17&e.$$.dirty&&n(5,l=()=>wr(o.actions).deposit(i?i.purse:void 0)),129&e.$$.dirty&&n(6,c=[{value:null,text:"Automatic"},...r.filter(({brand:e})=>e===o.brand).map(e=>({value:e,text:e.text}))])},[o,s,u,a,i,l,c,r,function(e){i=e,n(4,i)},()=>wr(o.actions).getAmountOf()]}class od extends vr{constructor(e){super(),Er(this,e,rd,nd,Xt,{item:0,summary:1,summaryLine:2,details:3})}}function sd(e){let t,n,r;return n=new Jo.Title({props:{title:"Incoming Payments"}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","title")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p:Ht,i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function ud(e){let t;return{c(){t=Dn("div"),t.textContent="No incoming payments.",An(t,"slot","empty")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function ad(e){let t,n,r;return n=new od({props:{item:e[2],details:!1,summaryLine:1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-header")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function id(e){let t,n,r;return n=new od({props:{item:e[2],details:!1,summaryLine:2}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-header-rest")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function ld(e){let t,n,r;return n=new od({props:{item:e[2],summary:!1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-details")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function cd(e){let t,n,r,o;return{c(){t=Cn(),n=Cn(),r=Cn(),o=Cn()},m(e,s){mn(e,t,s),mn(e,n,s),mn(e,r,s),mn(e,o,s)},p:Ht,i:Ht,o:Ht,d(e){e&&$n(t),e&&$n(n),e&&$n(r),e&&$n(o)}}}function dd(e){let t,n;return t=new $s({props:{items:e[0],storeKey:"payments.true",expandDefault:!0,$$slots:{default:[cd],"item-details":[ld,({item:e})=>({2:e}),({item:e})=>e?4:0],"item-header-rest":[id,({item:e})=>({2:e}),({item:e})=>e?4:0],"item-header":[ad,({item:e})=>({2:e}),({item:e})=>e?4:0],empty:[ud],title:[sd]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,[n]){const r={};1&n&&(r.items=e[0]),12&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function pd(e,t,n){let r,o;return Qt(e,ba,e=>n(1,r=e)),e.$$.update=()=>{2&e.$$.dirty&&n(0,o=r.filter(e=>"deposited"!==e.status))},[o]}class fd extends vr{constructor(e){super(),Er(this,e,pd,dd,Xt,{})}}function md(e){let t;const n=e[2].default,r=en(n,e,e[4],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,t){r&&r.p&&16&t&&nn(r,n,e,e[4],t,null,null)},i(e){t||(ar(r,e),t=!0)},o(e){ir(r,e),t=!1},d(e){r&&r.d(e)}}}function $d(e){let t,n,r,o;return t=new eo({props:{text:!0,$$slots:{default:[md]},$$scope:{ctx:e}}}),t.$on("click",e[3]),{c(){yr(t.$$.fragment)},m(s,u){hr(t,s,u),n=!0,r||(o=En(window,"keydown",e[1]),r=!0)},p(e,[n]){const r={};16&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e),r=!1,o()}}}function gd(e,t,n){const r=Un();let{$$slots:o={},$$scope:s}=t;return e.$$set=e=>{"$$scope"in e&&n(4,s=e.$$scope)},[r,e=>{"Enter"!==e.key||r("click")},o,e=>{e.stopPropagation(),r("click")},s]}class Dd extends vr{constructor(e){super(),Er(this,e,gd,$d,Xt,{})}}function yd(e){let t;const n=e[5].default,r=en(n,e,e[12],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,t){r&&r.p&&4096&t&&nn(r,n,e,e[12],t,null,null)},i(e){t||(ar(r,e),t=!0)},o(e){ir(r,e),t=!1},d(e){r&&r.d(e)}}}function hd(e){let t;return{c(){t=Dn("h5"),t.textContent="Create New Purse",An(t,"slot","title")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Cd(e){let t,n,r;function o(t){e[7].call(null,t)}let s={label:"Issuer",items:e[4]};return void 0!==e[1]&&(s.value=e[1]),t=new Gc({props:s}),Gn.push(()=>Dr(t,"value",o)),{c(){yr(t.$$.fragment)},m(e,n){hr(t,e,n),r=!0},p(e,r){const o={};16&r&&(o.items=e[4]),!n&&2&r&&(n=!0,o.value=e[1],Kn(()=>n=!1)),t.$set(o)},i(e){r||(ar(t.$$.fragment,e),r=!0)},o(e){ir(t.$$.fragment,e),r=!1},d(e){Cr(t,e)}}}function bd(e){let t;return{c(){t=hn("Create")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Ed(e){let t,n,r,o,s;return n=new Dd({props:{$$slots:{default:[bd]},$$scope:{ctx:e}}}),n.$on("click",e[9]),o=new hc({}),o.$on("click",e[10]),{c(){t=Dn("div"),yr(n.$$.fragment),r=Cn(),yr(o.$$.fragment),An(t,"slot","actions")},m(e,u){mn(e,t,u),hr(n,t,null),fn(t,r),hr(o,t,null),s=!0},p(e,t){const r={};4096&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){s||(ar(n.$$.fragment,e),ar(o.$$.fragment,e),s=!0)},o(e){ir(n.$$.fragment,e),ir(o.$$.fragment,e),s=!1},d(e){e&&$n(t),Cr(n),Cr(o)}}}function vd(e){let t,n,r,o,s,u,a=!e[0]&&Cd(e);function i(t){e[8].call(null,t)}let l={label:"Purse petname",hint:`My ${e[1]} Purse`};return void 0!==e[2]&&(l.value=e[2]),r=new qs({props:l}),Gn.push(()=>Dr(r,"value",i)),{c(){t=Cn(),a&&a.c(),n=Cn(),yr(r.$$.fragment),s=Cn()},m(e,o){mn(e,t,o),a&&a.m(e,o),mn(e,n,o),hr(r,e,o),mn(e,s,o),u=!0},p(e,t){e[0]?a&&(sr(),ir(a,1,1,()=>{a=null}),ur()):a?(a.p(e,t),1&t&&ar(a,1)):(a=Cd(e),a.c(),ar(a,1),a.m(n.parentNode,n));const s={};2&t&&(s.hint=`My ${e[1]} Purse`),!o&&4&t&&(o=!0,s.value=e[2],Kn(()=>o=!1)),r.$set(s)},i(e){u||(ar(a),ar(r.$$.fragment,e),u=!0)},o(e){ir(a),ir(r.$$.fragment,e),u=!1},d(e){e&&$n(t),a&&a.d(e),e&&$n(n),Cr(r,e),e&&$n(s)}}}function Ad(e){let t,n,r,o,s;function u(t){e[11].call(null,t)}t=new eo({props:{$$slots:{default:[yd]},$$scope:{ctx:e}}}),t.$on("click",e[6]);let a={$$slots:{default:[vd],actions:[Ed],title:[hd]},$$scope:{ctx:e}};return void 0!==e[3]&&(a.value=e[3]),r=new $c({props:a}),Gn.push(()=>Dr(r,"value",u)),{c(){yr(t.$$.fragment),n=Cn(),yr(r.$$.fragment)},m(e,o){hr(t,e,o),mn(e,n,o),hr(r,e,o),s=!0},p(e,[n]){const s={};4096&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s);const u={};4127&n&&(u.$$scope={dirty:n,ctx:e}),!o&&8&n&&(o=!0,u.value=e[3],Kn(()=>o=!1)),r.$set(u)},i(e){s||(ar(t.$$.fragment,e),ar(r.$$.fragment,e),s=!0)},o(e){ir(t.$$.fragment,e),ir(r.$$.fragment,e),s=!1},d(e){Cr(t,e),e&&$n(n),Cr(r,e)}}}function Fd(e,t,n){let r;Qt(e,xa,e=>n(4,r=e));let{issuerPetname:o=""}=t,s=o,u="",a=!1,{$$slots:i={},$$scope:l}=t;return e.$$set=e=>{"issuerPetname"in e&&n(0,o=e.issuerPetname),"$$scope"in e&&n(12,l=e.$$scope)},[o,s,u,a,r,i,()=>n(3,a=!0),function(e){s=e,n(1,s)},function(e){u=e,n(2,u)},async()=>{try{yu(o,Cu`Need to specify an Issuer`,TypeError),n(2,u=u.trim()),yu(u,Cu`Need to specify a ${"Purse"} petname`,TypeError),await wr(ca).makeEmptyPurse(o,u),n(3,a=!1)}catch(e){alert("Cannot create purse: "+e)}},()=>n(3,a=!1),function(e){a=e,n(3,a)},l]}class wd extends vr{constructor(e){super(),Er(this,e,Fd,Ad,Xt,{issuerPetname:0})}}function xd(e){let t,n;return t=new ii({props:{name:e[0].issuerPetname}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.name=e[0].issuerPetname),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Bd(e){let t,n,r,o,s,u;return r=new Ic({props:{onPublish:e[3],id:e[0].issuerBoardId}}),s=new wd({props:{issuerPetname:e[0].issuerPetname,$$slots:{default:[Pd]},$$scope:{ctx:e}}}),{c(){t=Dn("div"),n=hn("Board ID:\n "),yr(r.$$.fragment),o=Cn(),yr(s.$$.fragment)},m(e,a){mn(e,t,a),fn(t,n),hr(r,t,null),mn(e,o,a),hr(s,e,a),u=!0},p(e,t){const n={};1&t&&(n.onPublish=e[3]),1&t&&(n.id=e[0].issuerBoardId),r.$set(n);const o={};1&t&&(o.issuerPetname=e[0].issuerPetname),16&t&&(o.$$scope={dirty:t,ctx:e}),s.$set(o)},i(e){u||(ar(r.$$.fragment,e),ar(s.$$.fragment,e),u=!0)},o(e){ir(r.$$.fragment,e),ir(s.$$.fragment,e),u=!1},d(e){e&&$n(t),Cr(r),e&&$n(o),Cr(s,e)}}}function Pd(e){let t;return{c(){t=hn("Make Purse")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Sd(e){let t,n,r,o=e[1]&&xd(e),s=e[2]&&Bd(e);return{c(){t=Dn("section"),o&&o.c(),n=Cn(),s&&s.c()},m(e,u){mn(e,t,u),o&&o.m(t,null),fn(t,n),s&&s.m(t,null),r=!0},p(e,[r]){e[1]?o?(o.p(e,r),2&r&&ar(o,1)):(o=xd(e),o.c(),ar(o,1),o.m(t,n)):o&&(sr(),ir(o,1,1,()=>{o=null}),ur()),e[2]?s?(s.p(e,r),4&r&&ar(s,1)):(s=Bd(e),s.c(),ar(s,1),s.m(t,null)):s&&(sr(),ir(s,1,1,()=>{s=null}),ur())},i(e){r||(ar(o),ar(s),r=!0)},o(e){ir(o),ir(s),r=!1},d(e){e&&$n(t),o&&o.d(),s&&s.d()}}}function kd(e,t,n){let{item:r}=t,{summary:o=!0}=t,{details:s=!0}=t;return e.$$set=e=>{"item"in e&&n(0,r=e.item),"summary"in e&&n(1,o=e.summary),"details"in e&&n(2,s=e.details)},[r,o,s,()=>wr(ca).publishIssuer(r.brand)]}class Id extends vr{constructor(e){super(),Er(this,e,kd,Sd,Xt,{item:0,summary:1,details:2})}}function Td(e){let t;const n=e[7].default,r=en(n,e,e[14],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,t){r&&r.p&&16384&t&&nn(r,n,e,e[14],t,null,null)},i(e){t||(ar(r,e),t=!0)},o(e){ir(r,e),t=!1},d(e){r&&r.d(e)}}}function Nd(e){let t,n,r;return{c(){t=Dn("h5"),n=hn("Import "),r=hn(e[0]),An(t,"slot","title")},m(e,o){mn(e,t,o),fn(t,n),fn(t,r)},p(e,t){1&t&&xn(r,e[0])},d(e){e&&$n(t)}}}function Od(e){let t;return{c(){t=hn("Import")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function _d(e){let t,n,r,o,s;return n=new Dd({props:{$$slots:{default:[Od]},$$scope:{ctx:e}}}),n.$on("click",e[11]),o=new hc({}),o.$on("click",e[12]),{c(){t=Dn("div"),yr(n.$$.fragment),r=Cn(),yr(o.$$.fragment),An(t,"slot","actions")},m(e,u){mn(e,t,u),hr(n,t,null),fn(t,r),hr(o,t,null),s=!0},p(e,t){const r={};16384&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){s||(ar(n.$$.fragment,e),ar(o.$$.fragment,e),s=!0)},o(e){ir(n.$$.fragment,e),ir(o.$$.fragment,e),s=!1},d(e){e&&$n(t),Cr(n),Cr(o)}}}function Rd(e){let t,n,r,o,s,u,a,i;function l(t){e[9].call(null,t)}let c={label:e[0]+" petname",hint:e[1]};function d(t){e[10].call(null,t)}void 0!==e[6]&&(c.value=e[6]),n=new qs({props:c}),Gn.push(()=>Dr(n,"value",l));let p={label:"Board ID",hint:"An ID you got from a trusted source"};return void 0!==e[5]&&(p.value=e[5]),s=new qs({props:p}),Gn.push(()=>Dr(s,"value",d)),{c(){t=Cn(),yr(n.$$.fragment),o=Cn(),yr(s.$$.fragment),a=Cn()},m(e,r){mn(e,t,r),hr(n,e,r),mn(e,o,r),hr(s,e,r),mn(e,a,r),i=!0},p(e,t){const o={};1&t&&(o.label=e[0]+" petname"),2&t&&(o.hint=e[1]),!r&&64&t&&(r=!0,o.value=e[6],Kn(()=>r=!1)),n.$set(o);const a={};!u&&32&t&&(u=!0,a.value=e[5],Kn(()=>u=!1)),s.$set(a)},i(e){i||(ar(n.$$.fragment,e),ar(s.$$.fragment,e),i=!0)},o(e){ir(n.$$.fragment,e),ir(s.$$.fragment,e),i=!1},d(e){e&&$n(t),Cr(n,e),e&&$n(o),Cr(s,e),e&&$n(a)}}}function jd(e){let t,n,r,o,s;function u(t){e[13].call(null,t)}t=new eo({props:{$$slots:{default:[Td]},$$scope:{ctx:e}}}),t.$on("click",e[8]);let a={$$slots:{default:[Rd],actions:[_d],title:[Nd]},$$scope:{ctx:e}};return void 0!==e[4]&&(a.value=e[4]),r=new $c({props:a}),Gn.push(()=>Dr(r,"value",u)),{c(){yr(t.$$.fragment),n=Cn(),yr(r.$$.fragment)},m(e,o){hr(t,e,o),mn(e,n,o),hr(r,e,o),s=!0},p(e,[n]){const s={};16384&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s);const u={};16511&n&&(u.$$scope={dirty:n,ctx:e}),!o&&16&n&&(o=!0,u.value=e[4],Kn(()=>o=!1)),r.$set(u)},i(e){s||(ar(t.$$.fragment,e),ar(r.$$.fragment,e),s=!0)},o(e){ir(t.$$.fragment,e),ir(r.$$.fragment,e),s=!1},d(e){Cr(t,e),e&&$n(n),Cr(r,e)}}}function Md(e,t,n){let r=!1,{name:o}=t,{hint:s="My "+o}=t,{adder:u}=t,{prefix:a="board:"}=t,i=a,l="",{$$slots:c={},$$scope:d}=t;return e.$$set=e=>{"name"in e&&n(0,o=e.name),"hint"in e&&n(1,s=e.hint),"adder"in e&&n(2,u=e.adder),"prefix"in e&&n(3,a=e.prefix),"$$scope"in e&&n(14,d=e.$$scope)},[o,s,u,a,r,i,l,c,()=>n(4,r=!0),function(e){l=e,n(6,l)},function(e){i=e,n(5,i)},async()=>{try{n(6,l=l.trim()),yu(l,Cu`Need to specify a ${o} petname`,TypeError),n(5,i=i.trim()),yu(i,Cu`Need to specify a ${o} "board:..."" ID`,TypeError);const e=i.startsWith(a)?i.slice(a.length):i,t=await wr(da).getValue(e);await u(l,t),n(4,r=!1)}catch(e){alert(""+e)}},()=>n(4,r=!1),function(e){r=e,n(4,r)},d]}class Ud extends vr{constructor(e){super(),Er(this,e,Md,jd,Xt,{name:0,hint:1,adder:2,prefix:3})}}function Ld(e){let t,n,r;return n=new Jo.Title({props:{title:"Issuers"}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","title")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p:Ht,i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function zd(e){let t;return{c(){t=Dn("div"),t.textContent="No issuers.",An(t,"slot","empty")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Gd(e){let t,n,r;return n=new Id({props:{item:e[2],details:!1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-header")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function Wd(e){let t,n,r;return n=new Id({props:{item:e[2],summary:!1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-details")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function Hd(e){let t;return{c(){t=hn("Import")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function qd(e){let t,n,r;return n=new Ud({props:{name:"Issuer",adder:e[1],$$slots:{default:[Hd]},$$scope:{ctx:e}}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","actions")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};8&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function Vd(e){let t,n,r,o;return{c(){t=Cn(),n=Cn(),r=Cn(),o=Cn()},m(e,s){mn(e,t,s),mn(e,n,s),mn(e,r,s),mn(e,o,s)},p:Ht,i:Ht,o:Ht,d(e){e&&$n(t),e&&$n(n),e&&$n(r),e&&$n(o)}}}function Jd(e){let t,n;return t=new $s({props:{items:e[0],storeKey:"issuers",$$slots:{default:[Vd],actions:[qd],"item-details":[Wd,({item:e})=>({2:e}),({item:e})=>e?4:0],"item-header":[Gd,({item:e})=>({2:e}),({item:e})=>e?4:0],empty:[zd],title:[Ld]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,[n]){const r={};1&n&&(r.items=e[0]),12&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Kd(e,t,n){let r;Qt(e,xa,e=>n(0,r=e));return[r,(e,t)=>wr(ca).addIssuer(e,t,!0)]}class Yd extends vr{constructor(e){super(),Er(this,e,Kd,Jd,Xt,{})}}function Zd(e){let t,n;return t=new ii({props:{name:e[0].contactPetname}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.name=e[0].contactPetname),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Xd(e){let t,n;return t=new Ic({props:{id:e[0].depositBoardId}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.id=e[0].depositBoardId),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Qd(e){let t,n,r,o=e[1]&&Zd(e),s=e[2]&&Xd(e);return{c(){t=Dn("section"),o&&o.c(),n=Cn(),s&&s.c()},m(e,u){mn(e,t,u),o&&o.m(t,null),fn(t,n),s&&s.m(t,null),r=!0},p(e,[r]){e[1]?o?(o.p(e,r),2&r&&ar(o,1)):(o=Zd(e),o.c(),ar(o,1),o.m(t,n)):o&&(sr(),ir(o,1,1,()=>{o=null}),ur()),e[2]?s?(s.p(e,r),4&r&&ar(s,1)):(s=Xd(e),s.c(),ar(s,1),s.m(t,null)):s&&(sr(),ir(s,1,1,()=>{s=null}),ur())},i(e){r||(ar(o),ar(s),r=!0)},o(e){ir(o),ir(s),r=!1},d(e){e&&$n(t),o&&o.d(),s&&s.d()}}}function ep(e,t,n){let{item:r}=t,{summary:o=!0}=t,{details:s=!0}=t;return e.$$set=e=>{"item"in e&&n(0,r=e.item),"summary"in e&&n(1,o=e.summary),"details"in e&&n(2,s=e.details)},[r,o,s]}class tp extends vr{constructor(e){super(),Er(this,e,ep,Qd,Xt,{item:0,summary:1,details:2})}}function np(e){let t,n,r;return n=new Jo.Title({props:{title:"Contacts"}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","title")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p:Ht,i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function rp(e){let t;return{c(){t=Dn("div"),t.textContent="No contacts.",An(t,"slot","empty")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function op(e){let t,n,r;return n=new tp({props:{item:e[2],details:!1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-header")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function sp(e){let t,n,r;return n=new tp({props:{item:e[2],summary:!1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-details")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function up(e){let t;return{c(){t=hn("Import")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function ap(e){let t,n,r;return n=new Ud({props:{name:"Contact",adder:e[1],$$slots:{default:[up]},$$scope:{ctx:e}}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","actions")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};8&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function ip(e){let t,n,r,o;return{c(){t=Cn(),n=Cn(),r=Cn(),o=Cn()},m(e,s){mn(e,t,s),mn(e,n,s),mn(e,r,s),mn(e,o,s)},p:Ht,i:Ht,o:Ht,d(e){e&&$n(t),e&&$n(n),e&&$n(r),e&&$n(o)}}}function lp(e){let t,n;return t=new $s({props:{storeKey:"contacts",items:e[0],$$slots:{default:[ip],actions:[ap],"item-details":[sp,({item:e})=>({2:e}),({item:e})=>e?4:0],"item-header":[op,({item:e})=>({2:e}),({item:e})=>e?4:0],empty:[rp],title:[np]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,[n]){const r={};1&n&&(r.items=e[0]),12&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function cp(e,t,n){let r;Qt(e,va,e=>n(0,r=e));return[r,(e,t)=>wr(ca).addContact(e,t)]}class dp extends vr{constructor(e){super(),Er(this,e,cp,lp,Xt,{})}}function pp(e){let t,n;const r=e[7].default,o=en(r,e,e[6],null),s=o||function(e){let t;return{c(){t=hn(e[0])},m(e,n){mn(e,t,n)},p(e,n){1&n&&xn(t,e[0])},d(e){e&&$n(t)}}}(e);let u=[{"aria-hidden":"true"},e[2],{class:e[1]}],a={};for(let e=0;e{n(2,t=Vt(Vt({},t),rn(e))),"classes"in e&&n(3,r=e.classes),"label"in e&&n(0,o=e.label),"disabled"in e&&n(4,s=e.disabled),"disabledClasses"in e&&n(5,u=e.disabledClasses),"$$scope"in e&&n(6,c=e.$$scope)},e.$$.update=()=>{n(1,i=a.flush().add(r,!0,fp).add(u,s).add(t.class).get())},t=rn(t),[o,i,t,r,s,u,c,l]}class $p extends vr{constructor(e){super(),Er(this,e,mp,pp,Xt,{classes:3,label:0,disabled:4,disabledClasses:5})}}const gp=e=>({}),Dp=e=>({});function yp(e){let t,n;return t=new Pr({props:{class:e[3]?"text-gray-500 dark:text-gray-600":"text-gray-600",$$slots:{default:[Cp]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};8&n&&(r.class=e[3]?"text-gray-500 dark:text-gray-600":"text-gray-600"),4096&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function hp(e){let t,n;return t=new Pr({props:{class:"text-"+(e[3]?"gray":e[2])+"-500",$$slots:{default:[bp]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};12&n&&(r.class="text-"+(e[3]?"gray":e[2])+"-500"),4096&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Cp(e){let t;return{c(){t=hn("radio_button_unchecked")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function bp(e){let t;return{c(){t=hn("radio_button_checked")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Ep(e){let t,n,r,o;const s=[hp,yp],u=[];function a(e,t){return e[0]===e[5]?0:1}return t=a(e),n=u[t]=s[t](e),{c(){n.c(),r=bn()},m(e,n){u[t].m(e,n),mn(e,r,n),o=!0},p(e,o){let i=t;t=a(e),t===i?u[t].p(e,o):(sr(),ir(u[i],1,1,()=>{u[i]=null}),ur(),n=u[t],n||(n=u[t]=s[t](e),n.c()),ar(n,1),n.m(r.parentNode,r))},i(e){o||(ar(n),o=!0)},o(e){ir(n),o=!1},d(e){u[t].d(e),e&&$n(r)}}}function vp(e){let t,n,r,o,s,u,a,i,l,c;u=new Ks({props:{color:e[8],$$slots:{default:[Ep]},$$scope:{ctx:e}}});const d=e[11].label,p=en(d,e,e[12],Dp),f=p||function(e){let t,n;return t=new $p({props:{disabled:e[3],label:e[1],class:e[6]}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};8&n&&(r.disabled=e[3]),2&n&&(r.label=e[1]),64&n&&(r.class=e[6]),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}(e);return{c(){t=Dn("div"),n=Dn("input"),o=Cn(),s=Dn("div"),yr(u.$$.fragment),a=Cn(),f&&f.c(),An(n,"aria-label",e[1]),An(n,"class","hidden"),An(n,"type","radio"),An(n,"role","radio"),An(n,"name",e[4]),An(n,"selected",r=e[0]===e[5]),An(s,"class","relative"),An(t,"class",e[7])},m(r,d){mn(r,t,d),fn(t,n),fn(t,o),fn(t,s),hr(u,s,null),fn(t,a),f&&f.m(t,null),i=!0,l||(c=En(t,"click",e[9]),l=!0)},p(e,[o]){(!i||2&o)&&An(n,"aria-label",e[1]),(!i||16&o)&&An(n,"name",e[4]),(!i||33&o&&r!==(r=e[0]===e[5]))&&An(n,"selected",r);const s={};256&o&&(s.color=e[8]),4141&o&&(s.$$scope={dirty:o,ctx:e}),u.$set(s),p?p.p&&4096&o&&nn(p,d,e,e[12],o,gp,Dp):f&&f.p&&74&o&&f.p(e,o),(!i||128&o)&&An(t,"class",e[7])},i(e){i||(ar(u.$$.fragment,e),ar(f,e),i=!0)},o(e){ir(u.$$.fragment,e),ir(f,e),i=!1},d(e){e&&$n(t),Cr(u),f&&f.d(e),l=!1,c()}}}const Ap="inline-flex block items-center mb-2 cursor-pointer z-0";function Fp(e,t,n){let{selected:r=""}=t,{label:o=""}=t,{color:s="primary"}=t,{disabled:u=!1}=t,{name:a=""}=t,{value:i=""}=t,{classes:l=Ap}=t,{labelClasses:c=(e=>e)}=t;const d=new Tr(l,Ap);let p,f,{$$slots:m={},$$scope:$}=t;return e.$$set=e=>{n(14,t=Vt(Vt({},t),rn(e))),"selected"in e&&n(0,r=e.selected),"label"in e&&n(1,o=e.label),"color"in e&&n(2,s=e.color),"disabled"in e&&n(3,u=e.disabled),"name"in e&&n(4,a=e.name),"value"in e&&n(5,i=e.value),"classes"in e&&n(10,l=e.classes),"labelClasses"in e&&n(6,c=e.labelClasses),"$$scope"in e&&n(12,$=e.$$scope)},e.$$.update=()=>{n(7,p=d.flush().add(l,!0,Ap).add(t.class).get()),44&e.$$.dirty&&n(8,f=i&&!u?s:"gray")},t=rn(t),[r,o,s,u,a,i,c,p,f,function(){u||n(0,r=i)},l,m,$]}class wp extends vr{constructor(e){super(),Er(this,e,Fp,vp,Xt,{selected:0,label:1,color:2,disabled:3,name:4,value:5,classes:10,labelClasses:6})}}function xp(e){let t,n,r;return t=new tc({props:{data:ru,label:e[9],scale:"1"}}),{c(){yr(t.$$.fragment),n=hn(" Send")},m(e,o){hr(t,e,o),mn(e,n,o),r=!0},p:Ht,i(e){r||(ar(t.$$.fragment,e),r=!0)},o(e){ir(t.$$.fragment,e),r=!1},d(e){Cr(t,e),e&&$n(n)}}}function Bp(e){let t;return{c(){t=Dn("h2"),t.textContent=""+e[9],An(t,"slot","title")},m(e,n){mn(e,t,n)},p:Ht,d(e){e&&$n(t)}}}function Pp(e){let t,n,r,o,s,u;function a(t){e[13].call(null,t)}let i={label:"To my own purse",disabled:!e[2],items:e[7]};return void 0!==e[4]&&(i.value=e[4]),o=new Gc({props:i}),Gn.push(()=>Dr(o,"value",a)),{c(){t=Dn("div"),n=Dn("h5"),n.textContent="Transfer within wallet",r=Cn(),yr(o.$$.fragment),An(t,"slot","label"),An(t,"class","fullwidth")},m(e,s){mn(e,t,s),fn(t,n),fn(t,r),hr(o,t,null),u=!0},p(e,t){const n={};4&t&&(n.disabled=!e[2]),128&t&&(n.items=e[7]),!s&&16&t&&(s=!0,n.value=e[4],Kn(()=>s=!1)),o.$set(n)},i(e){u||(ar(o.$$.fragment,e),u=!0)},o(e){ir(o.$$.fragment,e),u=!1},d(e){e&&$n(t),Cr(o)}}}function Sp(e){let t,n,r,o,s,u;function a(t){e[15].call(null,t)}let i={label:"To contact",disabled:e[2],items:e[6]};return void 0!==e[5]&&(i.value=e[5]),o=new Gc({props:i}),Gn.push(()=>Dr(o,"value",a)),{c(){t=Dn("div"),n=Dn("h5"),n.textContent="Irrevocable one-way",r=Cn(),yr(o.$$.fragment),An(t,"slot","label"),An(t,"class","fullwidth")},m(e,s){mn(e,t,s),fn(t,n),fn(t,r),hr(o,t,null),u=!0},p(e,t){const n={};4&t&&(n.disabled=e[2]),64&t&&(n.items=e[6]),!s&&32&t&&(s=!0,n.value=e[5],Kn(()=>s=!1)),o.$set(n)},i(e){u||(ar(o.$$.fragment,e),u=!0)},o(e){ir(o.$$.fragment,e),u=!1},d(e){e&&$n(t),Cr(o)}}}function kp(e){let t;return{c(){t=hn("Send")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Ip(e){let t,n,r,o,s;return n=new Dd({props:{$$slots:{default:[kp]},$$scope:{ctx:e}}}),n.$on("click",e[17]),o=new hc({}),o.$on("click",e[18]),{c(){t=Dn("div"),yr(n.$$.fragment),r=Cn(),yr(o.$$.fragment),An(t,"slot","actions")},m(e,u){mn(e,t,u),hr(n,t,null),fn(t,r),hr(o,t,null),s=!0},p(e,t){const r={};4194304&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){s||(ar(n.$$.fragment,e),ar(o.$$.fragment,e),s=!0)},o(e){ir(n.$$.fragment,e),ir(o.$$.fragment,e),s=!1},d(e){e&&$n(t),Cr(n),Cr(o)}}}function Tp(e){let t,n,r,o,s,u,a,i,l,c,d,p,f,m,$;function g(t){e[12].call(null,t)}n=new kl({props:{amount:e[0].currentAmount,displayInfo:e[0].displayInfo}});let D={label:"Send amount"};function y(t){e[14].call(null,t)}void 0!==e[3]&&(D.value=e[3]),o=new qs({props:D}),Gn.push(()=>Dr(o,"value",g));let h={name:e[8],class:"fullwidth",value:!0,$$slots:{label:[Pp]},$$scope:{ctx:e}};function C(t){e[16].call(null,t)}void 0!==e[2]&&(h.selected=e[2]),l=new wp({props:h}),Gn.push(()=>Dr(l,"selected",y));let b={name:e[8],class:"fullwidth",value:!1,$$slots:{label:[Sp]},$$scope:{ctx:e}};return void 0!==e[2]&&(b.selected=e[2]),p=new wp({props:b}),Gn.push(()=>Dr(p,"selected",C)),{c(){t=hn("\n Current balance: "),yr(n.$$.fragment),r=Cn(),yr(o.$$.fragment),u=Cn(),a=Dn("table"),a.innerHTML="
",i=Cn(),yr(l.$$.fragment),d=Cn(),yr(p.$$.fragment),m=Cn()},m(e,s){mn(e,t,s),hr(n,e,s),mn(e,r,s),hr(o,e,s),mn(e,u,s),mn(e,a,s),mn(e,i,s),hr(l,e,s),mn(e,d,s),hr(p,e,s),mn(e,m,s),$=!0},p(e,t){const r={};1&t&&(r.amount=e[0].currentAmount),1&t&&(r.displayInfo=e[0].displayInfo),n.$set(r);const u={};!s&&8&t&&(s=!0,u.value=e[3],Kn(()=>s=!1)),o.$set(u);const a={};4194452&t&&(a.$$scope={dirty:t,ctx:e}),!c&&4&t&&(c=!0,a.selected=e[2],Kn(()=>c=!1)),l.$set(a);const i={};4194404&t&&(i.$$scope={dirty:t,ctx:e}),!f&&4&t&&(f=!0,i.selected=e[2],Kn(()=>f=!1)),p.$set(i)},i(e){$||(ar(n.$$.fragment,e),ar(o.$$.fragment,e),ar(l.$$.fragment,e),ar(p.$$.fragment,e),$=!0)},o(e){ir(n.$$.fragment,e),ir(o.$$.fragment,e),ir(l.$$.fragment,e),ir(p.$$.fragment,e),$=!1},d(e){e&&$n(t),Cr(n,e),e&&$n(r),Cr(o,e),e&&$n(u),e&&$n(a),e&&$n(i),Cr(l,e),e&&$n(d),Cr(p,e),e&&$n(m)}}}function Np(e){let t,n,r,o,s,u;function a(t){e[19].call(null,t)}n=new eo({props:{class:"right",dense:!0,$$slots:{default:[xp]},$$scope:{ctx:e}}}),n.$on("click",e[11]);let i={$$slots:{default:[Tp],actions:[Ip],title:[Bp]},$$scope:{ctx:e}};return void 0!==e[1]&&(i.value=e[1]),o=new $c({props:i}),Gn.push(()=>Dr(o,"value",a)),{c(){t=Dn("div"),yr(n.$$.fragment),r=Cn(),yr(o.$$.fragment)},m(e,s){mn(e,t,s),hr(n,t,null),mn(e,r,s),hr(o,e,s),u=!0},p(e,[t]){const r={};4194304&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r);const u={};4194559&t&&(u.$$scope={dirty:t,ctx:e}),!s&&2&t&&(s=!0,u.value=e[1],Kn(()=>s=!1)),o.$set(u)},i(e){u||(ar(n.$$.fragment,e),ar(o.$$.fragment,e),u=!0)},o(e){ir(n.$$.fragment,e),ir(o.$$.fragment,e),u=!1},d(e){e&&$n(t),Cr(n),e&&$n(r),Cr(o,e)}}}function Op(e,t,n){let r,o;Qt(e,va,e=>n(20,r=e)),Qt(e,Da,e=>n(21,o=e));let{source:s}=t;const u="xfer-"+Math.random(),a="Transfer from "+s.pursePetname;let i=!1,l=!0,c="0",d=s,p=void 0;const f=async e=>{try{const t=function(e,t){const{amountMathKind:n=al.NAT,decimalPlaces:r=0}=t||{};if(yu.typeof(e,"string",Cu`valueString ${e} is not a string`),n!==al.NAT)return Ji.parse(e);const o=e.match(/^0*(\d+)(\.(\d*[1-9])?0*)?$/);yu(o,Cu`${e} must be a non-negative decimal number`);const s=o[1],u=(o[3]||"").padEnd(r,"0");return yu(u.length<=r,Cu`${e} exceeds ${r} decimal places`),parseInt(`${s}${u}`,10)}(c,s.displayInfo);n(1,i=!1),await wr(s.actions).send(e.actions,t)}catch(e){alert("Cannot send: "+e)}};let m,$;return e.$$set=e=>{"source"in e&&n(0,s=e.source)},e.$$.update=()=>{1048576&e.$$.dirty&&n(6,m=r.map(({value:e,text:t})=>({value:e,text:t}))),2097153&e.$$.dirty&&n(7,$=o.filter(({brand:e})=>e===s.brand).map(e=>({value:e,text:e.text})))},[s,i,l,c,d,p,m,$,u,a,f,()=>n(1,i=!0),function(e){c=e,n(3,c)},function(e){d=e,n(4,d)},function(e){l=e,n(2,l)},function(e){p=e,n(5,p)},function(e){l=e,n(2,l)},()=>f(l?d:p),()=>n(1,i=!1),function(e){i=e,n(1,i)}]}class _p extends vr{constructor(e){super(),Er(this,e,Op,Np,Xt,{source:0})}}function Rp(e){let t,n,r,o=(!e[1]||1===e[1])&&jp(e),s=(!e[1]||2===e[1])&&Mp(e);return{c(){t=Dn("div"),o&&o.c(),n=Cn(),s&&s.c(),An(t,"class","fullwidth")},m(e,u){mn(e,t,u),o&&o.m(t,null),fn(t,n),s&&s.m(t,null),r=!0},p(e,r){e[1]&&1!==e[1]?o&&(sr(),ir(o,1,1,()=>{o=null}),ur()):o?(o.p(e,r),2&r&&ar(o,1)):(o=jp(e),o.c(),ar(o,1),o.m(t,n)),e[1]&&2!==e[1]?s&&(sr(),ir(s,1,1,()=>{s=null}),ur()):s?(s.p(e,r),2&r&&ar(s,1)):(s=Mp(e),s.c(),ar(s,1),s.m(t,null))},i(e){r||(ar(o),ar(s),r=!0)},o(e){ir(o),ir(s),r=!1},d(e){e&&$n(t),o&&o.d(),s&&s.d()}}}function jp(e){let t,n;return t=new ii({props:{name:e[3].pursePetname}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};8&n&&(r.name=e[3].pursePetname),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Mp(e){let t,n;return t=new kl({props:{amount:e[3].currentAmount,displayInfo:e[3].displayInfo}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};8&n&&(r.amount=e[3].currentAmount),8&n&&(r.displayInfo=e[3].displayInfo),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Up(e){let t,n,r,o,s,u,a,i,l,c,d,p;r=new nu({props:{value:!!e[3].depositBoardId,label:"AutoDeposit"}}),s=new wc({props:{title:"Amount Detail",target:e[3].currentAmount}});let f=e[3].depositBoardId&&(!e[4]||e[3].depositBoardId!==e[4].depositBoardId)&&Lp(e);return l=new _p({props:{source:e[3]}}),{c(){t=Dn("div"),n=Dn("div"),yr(r.$$.fragment),o=Cn(),yr(s.$$.fragment),u=Cn(),a=Dn("div"),f&&f.c(),i=Cn(),yr(l.$$.fragment),An(t,"class","py-2"),An(a,"class","mb-3")},m(m,$){mn(m,t,$),fn(t,n),hr(r,n,null),fn(t,o),hr(s,t,null),mn(m,u,$),mn(m,a,$),f&&f.m(a,null),fn(a,i),hr(l,a,null),c=!0,d||(p=En(n,"click",vn(e[5]),!0),d=!0)},p(e,t){const n={};8&t&&(n.value=!!e[3].depositBoardId),r.$set(n);const o={};8&t&&(o.target=e[3].currentAmount),s.$set(o),!e[3].depositBoardId||e[4]&&e[3].depositBoardId===e[4].depositBoardId?f&&(sr(),ir(f,1,1,()=>{f=null}),ur()):f?(f.p(e,t),24&t&&ar(f,1)):(f=Lp(e),f.c(),ar(f,1),f.m(a,i));const u={};8&t&&(u.source=e[3]),l.$set(u)},i(e){c||(ar(r.$$.fragment,e),ar(s.$$.fragment,e),ar(f),ar(l.$$.fragment,e),c=!0)},o(e){ir(r.$$.fragment,e),ir(s.$$.fragment,e),ir(f),ir(l.$$.fragment,e),c=!1},d(e){e&&$n(t),Cr(r),Cr(s),e&&$n(u),e&&$n(a),f&&f.d(),Cr(l),d=!1,p()}}}function Lp(e){let t,n,r,o;return n=new Ic({props:{id:e[3].depositBoardId}}),{c(){t=hn("(\n "),yr(n.$$.fragment),r=hn("\n )")},m(e,s){mn(e,t,s),hr(n,e,s),mn(e,r,s),o=!0},p(e,t){const r={};8&t&&(r.id=e[3].depositBoardId),n.$set(r)},i(e){o||(ar(n.$$.fragment,e),o=!0)},o(e){ir(n.$$.fragment,e),o=!1},d(e){e&&$n(t),Cr(n,e),e&&$n(r)}}}function zp(e){let t,n,r,o=e[0]&&Rp(e),s=e[2]&&Up(e);return{c(){t=Dn("section"),o&&o.c(),n=Cn(),s&&s.c()},m(e,u){mn(e,t,u),o&&o.m(t,null),fn(t,n),s&&s.m(t,null),r=!0},p(e,[r]){e[0]?o?(o.p(e,r),1&r&&ar(o,1)):(o=Rp(e),o.c(),ar(o,1),o.m(t,n)):o&&(sr(),ir(o,1,1,()=>{o=null}),ur()),e[2]?s?(s.p(e,r),4&r&&ar(s,1)):(s=Up(e),s.c(),ar(s,1),s.m(t,null)):s&&(sr(),ir(s,1,1,()=>{s=null}),ur())},i(e){r||(ar(o),ar(s),r=!0)},o(e){ir(o),ir(s),r=!1},d(e){e&&$n(t),o&&o.d(),s&&s.d()}}}function Gp(e,t,n){let r;Qt(e,Fa,e=>n(4,r=e));let{summary:o=!0}=t,{summaryLine:s=0}=t,{details:u=!0}=t,{item:a}=t;return e.$$set=e=>{"summary"in e&&n(0,o=e.summary),"summaryLine"in e&&n(1,s=e.summaryLine),"details"in e&&n(2,u=e.details),"item"in e&&n(3,a=e.item)},[o,s,u,a,r,function(e){return a.depositBoardId?wr(ca).disableAutoDeposit(a.pursePetname):wr(ca).enableAutoDeposit(a.pursePetname),!1}]}class Wp extends vr{constructor(e){super(),Er(this,e,Gp,zp,Xt,{summary:0,summaryLine:1,details:2,item:3})}}function Hp(e){let t,n,r;return n=new Jo.Title({props:{title:"Purses"}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","title")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p:Ht,i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function qp(e){let t;return{c(){t=Dn("div"),t.textContent="No purses.",An(t,"slot","empty")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Vp(e){let t,n,r;return n=new Wp({props:{item:e[1],details:!1,summaryLine:1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-header")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};2&t&&(r.item=e[1]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function Jp(e){let t,n,r;return n=new Wp({props:{item:e[1],details:!1,summaryLine:2}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-header-rest")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};2&t&&(r.item=e[1]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function Kp(e){let t,n,r;return n=new Wp({props:{item:e[1],summary:!1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-details")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};2&t&&(r.item=e[1]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function Yp(e){let t,n,r,o;return{c(){t=Cn(),n=Cn(),r=Cn(),o=Cn()},m(e,s){mn(e,t,s),mn(e,n,s),mn(e,r,s),mn(e,o,s)},p:Ht,i:Ht,o:Ht,d(e){e&&$n(t),e&&$n(n),e&&$n(r),e&&$n(o)}}}function Zp(e){let t,n;return t=new $s({props:{items:e[0],storeKey:"purses",$$slots:{default:[Yp],"item-details":[Kp,({item:e})=>({1:e}),({item:e})=>e?2:0],"item-header-rest":[Jp,({item:e})=>({1:e}),({item:e})=>e?2:0],"item-header":[Vp,({item:e})=>({1:e}),({item:e})=>e?2:0],empty:[qp],title:[Hp]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,[n]){const r={};1&n&&(r.items=e[0]),6&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Xp(e,t,n){let r;return Qt(e,Da,e=>n(0,r=e)),[r]}class Qp extends vr{constructor(e){super(),Er(this,e,Xp,Zp,Xt,{})}}class ef extends vr{constructor(e){super(),Er(this,e,null,null,Xt,{})}}function tf(e){let t,n,r,o,s,u,a,i,l,c,d,p=e[2]&&nf(e);const f=e[18].default,m=en(f,e,e[20],null);let $=e[1]&&of(e),g=[{class:e[6]},e[11]],D={};for(let e=0;e{p=null}),ur()),m&&m.p&&1048576&o&&nn(m,f,e,e[20],o,null,null),e[1]?$?($.p(e,o),2&o&&ar($,1)):($=of(e),$.c(),ar($,1),$.m(n,null)):$&&(sr(),ir($,1,1,()=>{$=null}),ur()),Fn(n,D=$r(g,[(!l||64&o)&&{class:e[6]},e[11]])),Sn(n,"svelte-ixci48",!0),(!l||256&o&&a!==(a=e[8]+" mx-1 inline-block svelte-ixci48"))&&An(t,"class",a)},i(e){l||(ar(p),ar(m,e),ar($),i&&i.end(1),l=!0)},o(e){ir(p),ir(m,e),ir($),i=dr(t,ao,{duration:100}),l=!1},d(e){e&&$n(t),p&&p.d(),m&&m.d(e),$&&$.d(),e&&i&&i.end(),c=!1,Yt(d)}}}function nf(e){let t,n;return t=new Pr({props:{small:!0,class:e[0]?e[5](400):"text-gray-600",$$slots:{default:[rf]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};33&n&&(r.class=e[0]?e[5](400):"text-gray-600"),1048580&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function rf(e){let t;return{c(){t=hn(e[2])},m(e,n){mn(e,t,n)},p(e,n){4&n&&xn(t,e[2])},d(e){e&&$n(t)}}}function of(e){let t,n,r,o,s,u;return n=new Pr({props:{class:"text-white dark:text-white",xs:!0,$$slots:{default:[sf]},$$scope:{ctx:e}}}),{c(){t=Dn("span"),yr(n.$$.fragment),An(t,"class",r="rounded-full p-1/2 inline-flex items-center cursor-pointer "+e[7]+" svelte-ixci48")},m(r,a){mn(r,t,a),hr(n,t,null),o=!0,s||(u=En(t,"click",vn(e[9])),s=!0)},p(e,s){const u={};1048576&s&&(u.$$scope={dirty:s,ctx:e}),n.$set(u),(!o||128&s&&r!==(r="rounded-full p-1/2 inline-flex items-center cursor-pointer "+e[7]+" svelte-ixci48"))&&An(t,"class",r)},i(e){o||(ar(n.$$.fragment,e),o=!0)},o(e){ir(n.$$.fragment,e),o=!1},d(e){e&&$n(t),Cr(n),s=!1,u()}}}function sf(e){let t;return{c(){t=hn("clear")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function uf(e){let t,n,r=e[3]&&tf(e);return{c(){r&&r.c(),t=bn()},m(e,o){r&&r.m(e,o),mn(e,t,o),n=!0},p(e,[n]){e[3]?r?(r.p(e,n),8&n&&ar(r,1)):(r=tf(e),r.c(),ar(r,1),r.m(t.parentNode,t)):r&&(sr(),ir(r,1,1,()=>{r=null}),ur())},i(e){n||(ar(r),n=!0)},o(e){ir(r),n=!1},d(e){r&&r.d(e),e&&$n(t)}}}function af(e,t,n){let{removable:r=!1}=t,{icon:o=""}=t,{outlined:s=!1}=t,{selected:u=!1}=t,{selectable:a=!0}=t,{color:i="primary"}=t,{remove:l=""}=t,{add:c=""}=t,{replace:d={}}=t,p=!0;const f=Un();const m=new Tr,$=Or(["removable","icon","outlined","selected","selectable","color"],t);let g,D,y,h,C,b,E,{$$slots:v={},$$scope:A}=t;return e.$$set=e=>{n(25,t=Vt(Vt({},t),rn(e))),"removable"in e&&n(1,r=e.removable),"icon"in e&&n(2,o=e.icon),"outlined"in e&&n(12,s=e.outlined),"selected"in e&&n(0,u=e.selected),"selectable"in e&&n(13,a=e.selectable),"color"in e&&n(14,i=e.color),"remove"in e&&n(15,l=e.remove),"add"in e&&n(16,c=e.add),"replace"in e&&n(17,d=e.replace),"$$scope"in e&&n(20,A=e.$$scope)},e.$$.update=()=>{16384&e.$$.dirty&&n(4,g=_r(i)),16384&e.$$.dirty&&n(21,({bg:D,txt:y,border:h}=Ir(i)),D,(n(5,y),n(14,i)),(n(22,h),n(14,i))),6524961&e.$$.dirty&&n(6,C=m.flush().add("relative overflow-hidden flex items-center rounded-full px-2 py-1").add("bg-transparent border",s).add("border-gray-400 border-solid hover:bg-gray-50 dark-hover:bg-dark-400 bg-gray-300 dark:bg-dark-600",!u).add(`${h()} dark:${h("800")} ${y()} ${D(100)} hover:${D(50)}`,u).remove(l).replace(d).add(c).get()),2097153&e.$$.dirty&&n(7,b=u?`hover:${D(300)} ${D(400)}`:"hover:bg-gray-400 bg-gray-500 dark:bg-gray-800"),n(8,E=m.flush().add(t.class).get())},t=rn(t),[u,r,o,p,g,y,C,b,E,function(){f("close"),n(3,p=!1)},function(){a&&n(0,u=!0)},$,s,a,i,l,c,d,v,function(t){Ln(e,t)},A]}class lf extends vr{constructor(e){super(),Er(this,e,af,uf,Xt,{removable:1,icon:2,outlined:12,selected:0,selectable:13,color:14,remove:15,add:16,replace:17})}}function cf(e,t,n){const r=e.slice();return r[21]=t[n][0],r[22]=t[n][1].amount,r[23]=t[n][1].displayInfo,r[24]=t[n][1].pursePetname,r[26]=n,r}function df(e,t,n){const r=e.slice();return r[21]=t[n][0],r[22]=t[n][1].amount,r[24]=t[n][1].pursePetname,r[26]=n,r}function pf(e){let t,n,r,o=(!e[2]||1===e[2])&&ff(e),s=(!e[2]||2===e[2])&&$f(e);return{c(){o&&o.c(),t=Cn(),s&&s.c(),n=bn()},m(e,u){o&&o.m(e,u),mn(e,t,u),s&&s.m(e,u),mn(e,n,u),r=!0},p(e,r){e[2]&&1!==e[2]?o&&(sr(),ir(o,1,1,()=>{o=null}),ur()):o?(o.p(e,r),4&r&&ar(o,1)):(o=ff(e),o.c(),ar(o,1),o.m(t.parentNode,t)),e[2]&&2!==e[2]?s&&(sr(),ir(s,1,1,()=>{s=null}),ur()):s?(s.p(e,r),4&r&&ar(s,1)):(s=$f(e),s.c(),ar(s,1),s.m(n.parentNode,n))},i(e){r||(ar(o),ar(s),r=!0)},o(e){ir(o),ir(s),r=!1},d(e){o&&o.d(e),e&&$n(t),s&&s.d(e),e&&$n(n)}}}function ff(e){let t,n,r,o,s=e[13](e[7])+"";return r=new lf({props:{outline:!0,selected:!0,color:e[16][e[12]],$$slots:{default:[mf]},$$scope:{ctx:e}}}),{c(){t=hn(s),n=Cn(),yr(r.$$.fragment)},m(e,s){mn(e,t,s),mn(e,n,s),hr(r,e,s),o=!0},p(e,n){(!o||128&n)&&s!==(s=e[13](e[7])+"")&&xn(t,s);const u={};4096&n&&(u.color=e[16][e[12]]),268439552&n&&(u.$$scope={dirty:n,ctx:e}),r.$set(u)},i(e){o||(ar(r.$$.fragment,e),o=!0)},o(e){ir(r.$$.fragment,e),o=!1},d(e){e&&$n(t),e&&$n(n),Cr(r,e)}}}function mf(e){let t,n=e[15][e[12]]+"";return{c(){t=hn(n)},m(e,n){mn(e,t,n)},p(e,r){4096&r&&n!==(n=e[15][e[12]]+"")&&xn(t,n)},d(e){e&&$n(t)}}}function $f(e){let t,n,r,o,s,u=(e[8]||e[9])+"";return t=new ii({props:{name:e[4],board:e[5]}}),{c(){yr(t.$$.fragment),n=hn(" via ("),r=hn(u),o=hn(")")},m(e,u){hr(t,e,u),mn(e,n,u),mn(e,r,u),mn(e,o,u),s=!0},p(e,n){const o={};16&n&&(o.name=e[4]),32&n&&(o.board=e[5]),t.$set(o),(!s||768&n)&&u!==(u=(e[8]||e[9])+"")&&xn(r,u)},i(e){s||(ar(t.$$.fragment,e),s=!0)},o(e){ir(t.$$.fragment,e),s=!1},d(e){Cr(t,e),e&&$n(n),e&&$n(r),e&&$n(o)}}}function gf(e){let t,n,r,o,s,u,a,i,l;n=new wc({props:{title:"Offer Detail",target:e[0]}});let c=Object.entries(e[10]),d=[];for(let t=0;tir(d[e],1,1,()=>{d[e]=null});let f=Object.entries(e[11]),m=[];for(let t=0;tir(m[e],1,1,()=>{m[e]=null});let g="pending"===e[12]&&hf(e),D="proposed"===e[12]&&bf(e);return{c(){t=Dn("div"),yr(n.$$.fragment),r=Cn(),o=Dn("div");for(let e=0;e{g=null}),ur()),"proposed"===e[12]?D?(D.p(e,t),4096&t&&ar(D,1)):(D=bf(e),D.c(),ar(D,1),D.m(a,null)):D&&(sr(),ir(D,1,1,()=>{D=null}),ur())},i(e){if(!l){ar(n.$$.fragment,e);for(let e=0;e{o=null}),ur()),e[3]?s?(s.p(e,r),8&r&&ar(s,1)):(s=gf(e),s.c(),ar(s,1),s.m(t,null)):s&&(sr(),ir(s,1,1,()=>{s=null}),ur())},i(e){r||(ar(o),ar(s),r=!0)},o(e){ir(o),ir(s),r=!1},d(e){e&&$n(t),o&&o.d(),s&&s.d()}}}function Ff(e,t,n){let{item:r}=t,{summary:o=!0}=t,{summaryLine:s=0}=t,{details:u=!0}=t;const a=e=>function(t){console.error(e,t)};let i,l,c,d,p,f,m,$,g,D;return e.$$set=e=>{"item"in e&&n(0,r=e.item),"summary"in e&&n(1,o=e.summary),"summaryLine"in e&&n(2,s=e.summaryLine),"details"in e&&n(3,u=e.details)},e.$$.update=()=>{1&e.$$.dirty&&n(4,({instancePetname:i,instanceHandleBoardId:l,installationHandleBoardId:c,offerId:d,requestContext:{date:p,dappOrigin:f,origin:m="unknown origin"}={},proposalForDisplay:{give:$={},want:g={}}={}}=r),i,(n(5,l),n(0,r)),(n(6,d),n(0,r)),(n(7,p),n(0,r)),(n(8,f),n(0,r)),(n(9,m),n(0,r)),(n(10,$),n(0,r)),(n(11,g),n(0,r))),1&e.$$.dirty&&n(12,D=r.status||"proposed")},[r,o,s,u,i,l,d,p,f,m,$,g,D,function(e){if(!e)return"unknown time";const t=new Date(e),n=t.getTime()-60*t.getTimezoneOffset()*1e3,r=new Date(n).toISOString().match(/^(.*)T(.*)\..*/);return`${r[1]} ${r[2]}`},a,{decline:"Declined",rejected:"Rejected",accept:"Accepted",pending:"Pending",proposed:"Proposed"},{accept:"success",rejected:"error",decline:"error",pending:"alert",proposed:"grey"},()=>wr(ca).cancelOffer(d).catch(a("Cannot cancel")),()=>wr(ca).acceptOffer(d).catch(a("Cannot accept")),()=>wr(ca).declineOffer(d).catch(a("Cannot decline"))]}class wf extends vr{constructor(e){super(),Er(this,e,Ff,Af,Xt,{item:0,summary:1,summaryLine:2,details:3})}}function xf(e){let t,n,r;return n=new Jo.Title({props:{title:"Offers"}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","title")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p:Ht,i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function Bf(e){let t;return{c(){t=Dn("div"),t.textContent="No offers.",An(t,"slot","empty")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Pf(e){let t,n,r;return n=new wf({props:{item:e[2],details:!1,summaryLine:1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-header")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function Sf(e){let t,n,r;return n=new wf({props:{item:e[2],details:!1,summaryLine:2}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-header-rest")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function kf(e){let t,n,r;return n=new wf({props:{item:e[2],summary:!1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-details")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function If(e){let t,n,r,o;return{c(){t=Cn(),n=Cn(),r=Cn(),o=Cn()},m(e,s){mn(e,t,s),mn(e,n,s),mn(e,r,s),mn(e,o,s)},p:Ht,i:Ht,o:Ht,d(e){e&&$n(t),e&&$n(n),e&&$n(r),e&&$n(o)}}}function Tf(e){let t,n;return t=new $s({props:{items:(e[0]||[]).filter(e[1]),storeKey:"inbox",expandDefault:!0,$$slots:{default:[If],"item-details":[kf,({item:e})=>({2:e}),({item:e})=>e?4:0],"item-header-rest":[Sf,({item:e})=>({2:e}),({item:e})=>e?4:0],"item-header":[Pf,({item:e})=>({2:e}),({item:e})=>e?4:0],empty:[Bf],title:[xf]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,[n]){const r={};1&n&&(r.items=(e[0]||[]).filter(e[1])),12&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Nf(e,t,n){let r;Qt(e,$a,e=>n(0,r=e));return[r,({status:e})=>void 0===e||"pending"===e]}class Of extends vr{constructor(e){super(),Er(this,e,Nf,Tf,Xt,{})}}function _f(e){let t,n,r,o,s,u,a=e[3]&&jf(e);const i=e[29].default,l=en(i,e,e[38],null);let c=[{class:e[1]},e[8],{disabled:e[2]}],d={};for(let e=0;e{a=null}),ur()),l&&l.p&&128&r[1]&&nn(l,i,e,e[38],r,null,null),Fn(t,d=$r(c,[(!o||2&r[0])&&{class:e[1]},e[8],(!o||4&r[0])&&{disabled:e[2]}]))},i(e){o||(ar(a),ar(l,e),o=!0)},o(e){ir(a),ir(l,e),o=!1},d(e){e&&$n(t),a&&a.d(),l&&l.d(e),s=!1,Yt(u)}}}function Rf(e){let t,n,r,o,s,u,a,i=e[3]&&Uf(e);const l=e[29].default,c=en(l,e,e[38],null);let d=[{class:e[1]},e[8],{disabled:e[2]}],p={};for(let e=0;e{i=null}),ur()),c&&c.p&&128&o[1]&&nn(c,l,e,e[38],o,null,null),Fn(n,p=$r(d,[(!s||2&o[0])&&{class:e[1]},e[8],(!s||4&o[0])&&{disabled:e[2]}])),Fn(t,m=$r(f,[(!s||32&o[0])&&{href:e[5]},e[8]]))},i(e){s||(ar(i),ar(c,e),s=!0)},o(e){ir(i),ir(c,e),s=!1},d(e){e&&$n(t),i&&i.d(),c&&c.d(e),u=!1,Yt(a)}}}function jf(e){let t,n;return t=new Pr({props:{class:e[6],small:e[4],$$slots:{default:[Mf]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};64&n[0]&&(r.class=e[6]),16&n[0]&&(r.small=e[4]),8&n[0]|128&n[1]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Mf(e){let t;return{c(){t=hn(e[3])},m(e,n){mn(e,t,n)},p(e,n){8&n[0]&&xn(t,e[3])},d(e){e&&$n(t)}}}function Uf(e){let t,n;return t=new Pr({props:{class:e[6],small:e[4],$$slots:{default:[Lf]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};64&n[0]&&(r.class=e[6]),16&n[0]&&(r.small=e[4]),8&n[0]|128&n[1]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Lf(e){let t;return{c(){t=hn(e[3])},m(e,n){mn(e,t,n)},p(e,n){8&n[0]&&xn(t,e[3])},d(e){e&&$n(t)}}}function zf(e){let t,n,r,o;const s=[Rf,_f],u=[];function a(e,t){return e[5]?0:1}return t=a(e),n=u[t]=s[t](e),{c(){n.c(),r=bn()},m(e,n){u[t].m(e,n),mn(e,r,n),o=!0},p(e,o){let i=t;t=a(e),t===i?u[t].p(e,o):(sr(),ir(u[i],1,1,()=>{u[i]=null}),ur(),n=u[t],n||(n=u[t]=s[t](e),n.c()),ar(n,1),n.m(r.parentNode,r))},i(e){o||(ar(n),o=!0)},o(e){ir(n),o=!1},d(e){u[t].d(e),e&&$n(r)}}}const Gf="py-2 px-4 uppercase text-sm font-medium relative overflow-hidden",Wf="text-white duration-200 ease-in",Hf="bg-transparent border border-solid",qf="bg-transparent border-none px-4 hover:bg-transparent",Vf="p-4 flex items-center select-none",Jf="hover:bg-transparent",Kf="pt-1 pb-1 pl-2 pr-2 text-xs",Yf="bg-gray-300 text-gray-500 dark:bg-dark-400 elevation-none pointer-events-none hover:bg-gray-300 cursor-default",Zf="hover:elevation-5 elevation-3";function Xf(e,t,n){let{value:r=!1}=t,{outlined:o=!1}=t,{text:s=!1}=t,{block:u=!1}=t,{disabled:a=!1}=t,{icon:i=null}=t,{small:l=!1}=t,{light:c=!1}=t,{dark:d=!1}=t,{flat:p=!1}=t,{iconClass:f=""}=t,{color:m="primary"}=t,{href:$=null}=t,{fab:g=!1}=t,{remove:D=""}=t,{add:y=""}=t,{replace:h={}}=t,{classes:C=Gf}=t,{basicClasses:b=Wf}=t,{outlinedClasses:E=Hf}=t,{textClasses:v=qf}=t,{iconClasses:A=Vf}=t,{fabClasses:F=Jf}=t,{smallClasses:w=Kf}=t,{disabledClasses:x=Yf}=t,{elevationClasses:B=Zf}=t;g=g||s&&i;const P=!o&&!s&&!g,S=(P||i)&&!a&&!p&&!s;let k=e=>e,I=0;const T=new Tr(C,Gf);let N;i&&(N=new Tr(f));const O=_r(s||g||o?m:"white"),_=Or(["outlined","text","color","block","disabled","icon","small","light","dark","flat","add","remove","replace"],t);let{$$slots:R={},$$scope:j}=t;let M,U,L,z,G;return e.$$set=e=>{n(50,t=Vt(Vt({},t),rn(e))),"value"in e&&n(0,r=e.value),"outlined"in e&&n(10,o=e.outlined),"text"in e&&n(11,s=e.text),"block"in e&&n(12,u=e.block),"disabled"in e&&n(2,a=e.disabled),"icon"in e&&n(3,i=e.icon),"small"in e&&n(4,l=e.small),"light"in e&&n(13,c=e.light),"dark"in e&&n(14,d=e.dark),"flat"in e&&n(15,p=e.flat),"iconClass"in e&&n(16,f=e.iconClass),"color"in e&&n(17,m=e.color),"href"in e&&n(5,$=e.href),"fab"in e&&n(9,g=e.fab),"remove"in e&&n(18,D=e.remove),"add"in e&&n(19,y=e.add),"replace"in e&&n(20,h=e.replace),"classes"in e&&n(1,C=e.classes),"basicClasses"in e&&n(21,b=e.basicClasses),"outlinedClasses"in e&&n(22,E=e.outlinedClasses),"textClasses"in e&&n(23,v=e.textClasses),"iconClasses"in e&&n(24,A=e.iconClasses),"fabClasses"in e&&n(25,F=e.fabClasses),"smallClasses"in e&&n(26,w=e.smallClasses),"disabledClasses"in e&&n(27,x=e.disabledClasses),"elevationClasses"in e&&n(28,B=e.elevationClasses),"$$scope"in e&&n(38,j=e.$$scope)},e.$$.update=()=>{24576&e.$$.dirty[0]|256&e.$$.dirty[1]&&(n(39,I=c?200:0),n(39,I=d?-400:I)),256&e.$$.dirty[1]&&n(41,M=500-I),256&e.$$.dirty[1]&&n(42,U=400-I),131072&e.$$.dirty[0]&&n(43,({bg:L,border:z,txt:G}=Ir(m)),L,(n(44,z),n(17,m)),(n(45,G),n(17,m))),n(1,C=T.flush().add(b,P,Wf).add(`${L(M)} hover:${L(U)}`,P).add(B,S,Zf).add(E,o,Hf).add(`${z(U)} ${G(M)} hover:${L("trans")} dark-hover:${L("transDark")}`,o).add(""+G(U),s).add(v,s,qf).add(A,i,Vf).remove("py-2",i).remove(G(U),g).add(x,a,Yf).add(w,l,Kf).add("flex items-center justify-center h-8 w-8",l&&i).add("border-solid",o).add("rounded-full",i).add("w-full",u).add("rounded",P||o||s).add("button",!i).add(F,g,Jf).add("hover:"+L("transLight"),g).add(t.class).remove(D).replace(h).add(y).get()),66048&e.$$.dirty[0]|16896&e.$$.dirty[1]&&N&&n(6,k=N.flush().add(G(),g&&!f).get())},t=rn(t),[r,C,a,i,l,$,k,O,_,g,o,s,u,c,d,p,f,m,D,y,h,b,E,v,A,F,w,x,B,R,function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},()=>n(0,r=!r),()=>n(0,r=!r),j]}class Qf extends vr{constructor(e){super(),Er(this,e,Xf,zf,Xt,{value:0,outlined:10,text:11,block:12,disabled:2,icon:3,small:4,light:13,dark:14,flat:15,iconClass:16,color:17,href:5,fab:9,remove:18,add:19,replace:20,classes:1,basicClasses:21,outlinedClasses:22,textClasses:23,iconClasses:24,fabClasses:25,smallClasses:26,disabledClasses:27,elevationClasses:28},[-1,-1])}}function em(e){let t;const n=e[4].default,r=en(n,e,e[6],null),o=r||function(e){let t;return{c(){t=hn(e[1])},m(e,n){mn(e,t,n)},p(e,n){2&n&&xn(t,e[1])},d(e){e&&$n(t)}}}(e);return{c(){o&&o.c()},m(e,n){o&&o.m(e,n),t=!0},p(e,t){r?r.p&&64&t&&nn(r,n,e,e[6],t,null,null):o&&o.p&&2&t&&o.p(e,t)},i(e){t||(ar(o,e),t=!0)},o(e){ir(o,e),t=!1},d(e){o&&o.d(e)}}}function tm(e){let t,n;return t=new Qf({props:{outlined:e[2]===e[0],text:!0,fab:!0,flat:!0,color:e[0]===e[2]?"secondary":e[3],$$slots:{default:[em]},$$scope:{ctx:e}}}),t.$on("click",e[5]),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,[n]){const r={};5&n&&(r.outlined=e[2]===e[0]),13&n&&(r.color=e[0]===e[2]?"secondary":e[3]),66&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function nm(e,t,n){let{text:r=""}=t,{id:o}=t,{value:s}=t,{color:u}=t,{$$slots:a={},$$scope:i}=t;return e.$$set=e=>{"text"in e&&n(1,r=e.text),"id"in e&&n(2,o=e.id),"value"in e&&n(0,s=e.value),"color"in e&&n(3,u=e.color),"$$scope"in e&&n(6,i=e.$$scope)},e.$$.update=()=>{e.$$.dirty},[s,r,o,u,a,()=>n(0,s=o),i]}class rm extends vr{constructor(e){super(),Er(this,e,nm,tm,Xt,{text:1,id:2,value:0,color:3})}}const om=[{name:"light",colors:{text:"#282230",background:"#f1f1f1",primary:"#01796f",primary_dark:"#016159",secondary:"#562931"}},{name:"dark",colors:{text:"#f1f1f1",background:"#27323a",primary:"#01978b",primary_dark:"#00887c",secondary:"#fe8690"}},{name:"forest",colors:{background:"#3b6c4c",text:"#f9f2cf",primary:"#efdc7e",primary_dark:"#e4d589",secondary:"#4a875f"}},{name:"discord",colors:{background:"#2C2F33",text:"#FFFFFF",primary:"#7289DA",primary_dark:"#7289DA",secondary:"#99AAB5"}}];function sm(e){let t;const n=e[4].default,r=en(n,e,e[3],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,[t]){r&&r.p&&8&t&&nn(r,n,e,e[3],t,null,null)},i(e){t||(ar(r,e),t=!0)},o(e){ir(r,e),t=!1},d(e){r&&r.d(e)}}}function um(e,t,n){let{themes:r=[...om]}=t,{storageKey:o="__svelte-themer__theme"}=t,s=r[0].name,{base:u={colors:{text:"#282230"},prefix:"base"}}=(r[0].name,t);const a=e=>r.find(t=>t.name===e);let i=pu(a(s));!function(e,t){jn().$$.context.set(e,t)}("theme",{theme:i,toggle:()=>{let e=r.findIndex(e=>e.name===s);s=r[e===r.length-1?0:e+=1].name,i.update(e=>({...e,...a(s)})),localStorage.setItem(o,s),l(a(s))}}),Mn(()=>{let e=localStorage.getItem(o);e?a(e)&&isNaN(parseInt(e))&&a(e)&&(i.set(a(e)),s=e):localStorage.setItem(o,s),l(u),l(a(s))});const l=e=>{for(let[t,n]of Object.entries(e.colors)){let r="--theme-"+t;e.prefix&&(r=`--theme-${e.prefix}-${t}`),document.documentElement.style.setProperty(r,n)}document.documentElement.style.setProperty("--theme-name",e.name)};let{$$slots:c={},$$scope:d}=t;return e.$$set=e=>{"themes"in e&&n(0,r=e.themes),"storageKey"in e&&n(1,o=e.storageKey),"base"in e&&n(2,u=e.base),"$$scope"in e&&n(3,d=e.$$scope)},[r,o,u,d,c]}class am extends vr{constructor(e){super(),Er(this,e,um,sm,Xt,{themes:0,storageKey:1,base:2})}}const{document:im}=fr;function lm(e){let t,n,r,o;function s(t){e[6].call(null,t)}let u={id:e[10].id,text:e[10].text,color:"primary"};return void 0!==e[0]&&(u.value=e[0]),n=new rm({props:u}),Gn.push(()=>Dr(n,"value",s)),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item")},m(e,r){mn(e,t,r),hr(n,t,null),o=!0},p(e,t){const o={};1024&t&&(o.id=e[10].id),1024&t&&(o.text=e[10].text),!r&&1&t&&(r=!0,o.value=e[0],Kn(()=>r=!1)),n.$set(o)},i(e){o||(ar(n.$$.fragment,e),o=!0)},o(e){ir(n.$$.fragment,e),o=!1},d(e){e&&$n(t),Cr(n)}}}function cm(e){let t;return{c(){t=hn(e[2])},m(e,n){mn(e,t,n)},p(e,n){4&n&&xn(t,e[2])},d(e){e&&$n(t)}}}function dm(e){let t,n,r;return{c(){t=Dn("div"),An(t,"class","disconnected-background svelte-1jvkw5e")},m(e,o){mn(e,t,o),n||(r=En(t,"click",vn(function(e){return function(t){return t.preventDefault(),e.call(this,t)}}(Dm))),n=!0)},d(e){e&&$n(t),n=!1,r()}}}function pm(e){let t,n,r,o,s,u,a,i,l,c,d,p;return n=new Of({}),s=new fd({}),i=new Ma({}),d=new Qp({}),{c(){t=Dn("div"),yr(n.$$.fragment),r=Cn(),o=Dn("div"),yr(s.$$.fragment),u=Cn(),a=Dn("div"),yr(i.$$.fragment),l=Cn(),c=Dn("div"),yr(d.$$.fragment),An(t,"class","full svelte-1jvkw5e"),An(o,"class","payments"),An(a,"class","dapps"),An(c,"class","transfers")},m(e,f){mn(e,t,f),hr(n,t,null),mn(e,r,f),mn(e,o,f),hr(s,o,null),mn(e,u,f),mn(e,a,f),hr(i,a,null),mn(e,l,f),mn(e,c,f),hr(d,c,null),p=!0},i(e){p||(ar(n.$$.fragment,e),ar(s.$$.fragment,e),ar(i.$$.fragment,e),ar(d.$$.fragment,e),p=!0)},o(e){ir(n.$$.fragment,e),ir(s.$$.fragment,e),ir(i.$$.fragment,e),ir(d.$$.fragment,e),p=!1},d(e){e&&$n(t),Cr(n),e&&$n(r),e&&$n(o),Cr(s),e&&$n(u),e&&$n(a),Cr(i),e&&$n(l),e&&$n(c),Cr(d)}}}function fm(e){let t,n,r,o,s,u,a,i,l;return n=new Ma({}),s=new Yd({}),i=new dp({}),{c(){t=Dn("div"),yr(n.$$.fragment),r=Cn(),o=Dn("div"),yr(s.$$.fragment),u=Cn(),a=Dn("div"),yr(i.$$.fragment),An(t,"class","dapps"),An(o,"class","issuers"),An(a,"class","full svelte-1jvkw5e")},m(e,c){mn(e,t,c),hr(n,t,null),mn(e,r,c),mn(e,o,c),hr(s,o,null),mn(e,u,c),mn(e,a,c),hr(i,a,null),l=!0},i(e){l||(ar(n.$$.fragment,e),ar(s.$$.fragment,e),ar(i.$$.fragment,e),l=!0)},o(e){ir(n.$$.fragment,e),ir(s.$$.fragment,e),ir(i.$$.fragment,e),l=!1},d(e){e&&$n(t),Cr(n),e&&$n(r),e&&$n(o),Cr(s),e&&$n(u),e&&$n(a),Cr(i)}}}function mm(e){let t,n,r,o,s,u;return n=new Qp({}),s=new dp({}),{c(){t=Dn("div"),yr(n.$$.fragment),r=Cn(),o=Dn("div"),yr(s.$$.fragment),An(t,"class","full svelte-1jvkw5e"),An(o,"class","full svelte-1jvkw5e")},m(e,a){mn(e,t,a),hr(n,t,null),mn(e,r,a),mn(e,o,a),hr(s,o,null),u=!0},i(e){u||(ar(n.$$.fragment,e),ar(s.$$.fragment,e),u=!0)},o(e){ir(n.$$.fragment,e),ir(s.$$.fragment,e),u=!1},d(e){e&&$n(t),Cr(n),e&&$n(r),e&&$n(o),Cr(s)}}}function $m(e){let t,n,r,o,s,u,a,i,l,c,d,p,f,m,$,g,D,y,h,C,b,E,v;u=new Xa({props:{horizontal:!0,items:e[5],$$slots:{item:[lm,({item:e})=>({10:e}),({item:e})=>e?1024:0]},$$scope:{ctx:e}}}),u.$on("change",e[7]),p=new eo({props:{small:!0,text:!0,fab:!0,flat:!0,title:e[2],$$slots:{default:[cm]},$$scope:{ctx:e}}}),p.$on("click",(function(){Zt(e[3])&&e[3].apply(this,arguments)}));let A=!e[4]&&dm();const F=[mm,fm,pm],w=[];function x(e,t){return"transfers"===e[0]?0:"setup"===e[0]?1:2}return g=x(e),D=w[g]=F[g](e),b=new ef({}),{c(){t=Dn("div"),n=Dn("header"),r=Dn("a"),r.innerHTML='',o=Cn(),s=Dn("nav"),yr(u.$$.fragment),a=Cn(),i=Dn("div"),l=Dn("h6"),c=hn(e[1]),d=Cn(),yr(p.$$.fragment),f=Cn(),A&&A.c(),m=Cn(),$=Dn("main"),D.c(),y=Cn(),h=Dn("footer"),C=Dn("div"),yr(b.$$.fragment),An(r,"href","https://agoric.com"),An(r,"class","flex items-center"),An(l,"class","svelte-1jvkw5e"),An(i,"class","connector svelte-1jvkw5e"),An(s,"class","svelte-1jvkw5e"),An(n,"class","topmost svelte-1jvkw5e"),An(t,"class","header-wrapper svelte-1jvkw5e"),An($,"class","svelte-1jvkw5e"),An(C,"class",E=on("setup"===e[0]?"theme":"theme-hidden")+" svelte-1jvkw5e"),An(h,"class","svelte-1jvkw5e")},m(e,D){mn(e,t,D),fn(t,n),fn(n,r),fn(n,o),fn(n,s),hr(u,s,null),fn(s,a),fn(s,i),fn(i,l),fn(l,c),fn(i,d),hr(p,i,null),mn(e,f,D),A&&A.m(e,D),mn(e,m,D),mn(e,$,D),w[g].m($,null),mn(e,y,D),mn(e,h,D),fn(h,C),hr(b,C,null),v=!0},p(t,n){e=t;const r={};3073&n&&(r.$$scope={dirty:n,ctx:e}),u.$set(r),(!v||2&n)&&xn(c,e[1]);const o={};4&n&&(o.title=e[2]),2052&n&&(o.$$scope={dirty:n,ctx:e}),p.$set(o),e[4]?A&&(A.d(1),A=null):A||(A=dm(),A.c(),A.m(m.parentNode,m));let s=g;g=x(e),g!==s&&(sr(),ir(w[s],1,1,()=>{w[s]=null}),ur(),D=w[g],D||(D=w[g]=F[g](e),D.c()),ar(D,1),D.m($,null)),(!v||1&n&&E!==(E=on("setup"===e[0]?"theme":"theme-hidden")+" svelte-1jvkw5e"))&&An(C,"class",E)},i(e){v||(ar(u.$$.fragment,e),ar(p.$$.fragment,e),ar(D),ar(b.$$.fragment,e),v=!0)},o(e){ir(u.$$.fragment,e),ir(p.$$.fragment,e),ir(D),ir(b.$$.fragment,e),v=!1},d(e){e&&$n(t),Cr(u),Cr(p),e&&$n(f),A&&A.d(e),e&&$n(m),e&&$n($),w[g].d(),e&&$n(y),e&&$n(h),Cr(b)}}}function gm(e){let t,n,r;return n=new am({props:{$$slots:{default:[$m]},$$scope:{ctx:e}}}),{c(){t=Cn(),yr(n.$$.fragment),im.title="Agoric Wallet"},m(e,o){mn(e,t,o),hr(n,e,o),r=!0},p(e,[t]){const r={};2079&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n,e)}}}const Dm=()=>{};function ym(e,t,n){let r,o;Qt(e,ia,e=>n(8,r=e)),Qt(e,fa,e=>n(4,o=e));let s="inbox";ia.connect();const u=()=>{const e=document.querySelector("header.topmost").clientHeight;document.documentElement.style.setProperty("--banner-height",e+"px")};let a,i,l;return Mn(()=>(window.addEventListener("resize",u),()=>{window.removeEventListener("resize",u)})),function(e){jn().$$.after_update.push(e)}(u),e.$$.update=()=>{256&e.$$.dirty&&n(1,a=r?"Connected":"Disconnected"),256&e.$$.dirty&&n(2,i=r?"Disconnect":"Connect"),256&e.$$.dirty&&n(3,l=r?ia.disconnect:ia.connect)},[s,a,i,l,o,[{id:"inbox",text:"Inbox"},{id:"transfers",text:"Transfers"},{id:"setup",text:"Setup"}],function(e){s=e,n(0,s)},function(t){Ln(e,t)}]}return new class extends vr{constructor(e){super(),Er(this,e,ym,gm,Xt,{})}}({target:document.body,props:{}})}();
-+var app=function(){"use strict";const{assign:e,create:t,defineProperties:n,entries:r,freeze:o,getOwnPropertyDescriptor:s,getOwnPropertyDescriptors:u,getOwnPropertyNames:a,getPrototypeOf:i,is:l,isExtensible:c,keys:d,prototype:p,seal:f,setPrototypeOf:m,values:$}=Object,g=Object.fromEntries||(e=>{const t={};for(const[n,r]of e)t[n]=r;return t}),D=(e,t,r)=>n(e,{[t]:r}),{apply:y,construct:h,get:C,set:b}=Reflect,{isArray:E,prototype:v}=Array,{revocable:A}=Proxy,{prototype:F}=RegExp,{prototype:w}=String,{prototype:x}=WeakMap,B=e=>(t,...n)=>y(e,t,n),P=B(p.hasOwnProperty),S=(B(v.filter),B(v.join)),k=(B(v.push),B(v.pop)),I=B(v.includes),T=B(F.test),N=(B(w.match),B(w.search)),O=B(w.slice),_=B(w.split),R=(B(x.get),B(x.set),B(x.has),o({__proto__:null}));let j;function M(){if(void 0===j){const e=new WeakSet,t=Function.prototype.toString,n={toString(){const n=y(t,this,[]);return n.endsWith(") { [native code] }")||!e.has(this)?n:`function ${this.name}() { [native code] }`}};D(Function.prototype,"toString",{value:n.toString}),j=o(t=>e.add(t))}return j}const U={Infinity:1/0,NaN:NaN,undefined:void 0},L={isFinite:"isFinite",isNaN:"isNaN",parseFloat:"parseFloat",parseInt:"parseInt",decodeURI:"decodeURI",decodeURIComponent:"decodeURIComponent",encodeURI:"encodeURI",encodeURIComponent:"encodeURIComponent",Array:"Array",ArrayBuffer:"ArrayBuffer",BigInt:"BigInt",BigInt64Array:"BigInt64Array",BigUint64Array:"BigUint64Array",Boolean:"Boolean",DataView:"DataView",EvalError:"EvalError",Float32Array:"Float32Array",Float64Array:"Float64Array",Int8Array:"Int8Array",Int16Array:"Int16Array",Int32Array:"Int32Array",Map:"Map",Number:"Number",Object:"Object",Promise:"Promise",Proxy:"Proxy",RangeError:"RangeError",ReferenceError:"ReferenceError",Set:"Set",String:"String",Symbol:"Symbol",SyntaxError:"SyntaxError",TypeError:"TypeError",Uint8Array:"Uint8Array",Uint8ClampedArray:"Uint8ClampedArray",Uint16Array:"Uint16Array",Uint32Array:"Uint32Array",URIError:"URIError",WeakMap:"WeakMap",WeakSet:"WeakSet",JSON:"JSON",Reflect:"Reflect",escape:"escape",unescape:"unescape",lockdown:"lockdown",harden:"harden",HandledPromise:"HandledPromise",StaticModuleRecord:"StaticModuleRecord"},z={Date:"%InitialDate%",Error:"%InitialError%",RegExp:"%InitialRegExp%",Math:"%InitialMath%",getStackString:"%InitialGetStackString%"},G={Date:"%SharedDate%",Error:"%SharedError%",RegExp:"%SharedRegExp%",Math:"%SharedMath%"},W=[EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError],H={"[[Proto]]":"%FunctionPrototype%",length:"number",name:"string"},q=H,V={get:q,set:"undefined"},J={get:q,set:q};function K(e){return e===V||e===J}function Y(e){return{"[[Proto]]":"%SharedError%",prototype:e}}function Z(e){return{"[[Proto]]":"%ErrorPrototype%",constructor:e,message:"string",name:"string",toString:!1}}function X(e){return{"[[Proto]]":"%TypedArray%",BYTES_PER_ELEMENT:"number",prototype:e}}function Q(e){return{"[[Proto]]":"%TypedArrayPrototype%",BYTES_PER_ELEMENT:"number",constructor:e}}const ee={E:"number",LN10:"number",LN2:"number",LOG10E:"number",LOG2E:"number",PI:"number",SQRT1_2:"number",SQRT2:"number","@@toStringTag":"string",abs:q,acos:q,acosh:q,asin:q,asinh:q,atan:q,atanh:q,atan2:q,cbrt:q,ceil:q,clz32:q,cos:q,cosh:q,exp:q,expm1:q,floor:q,fround:q,hypot:q,imul:q,log:q,log1p:q,log10:q,log2:q,max:q,min:q,pow:q,round:q,sign:q,sin:q,sinh:q,sqrt:q,tan:q,tanh:q,trunc:q,idiv:!1,idivmod:!1,imod:!1,imuldiv:!1,irem:!1,mod:!1},te={"[[Proto]]":null,"%ThrowTypeError%":q,Infinity:"number",NaN:"number",undefined:"undefined","%UniqueEval%":q,isFinite:q,isNaN:q,parseFloat:q,parseInt:q,decodeURI:q,decodeURIComponent:q,encodeURI:q,encodeURIComponent:q,Object:{"[[Proto]]":"%FunctionPrototype%",assign:q,create:q,defineProperties:q,defineProperty:q,entries:q,freeze:q,fromEntries:q,getOwnPropertyDescriptor:q,getOwnPropertyDescriptors:q,getOwnPropertyNames:q,getOwnPropertySymbols:q,getPrototypeOf:q,is:q,isExtensible:q,isFrozen:q,isSealed:q,keys:q,preventExtensions:q,prototype:"%ObjectPrototype%",seal:q,setPrototypeOf:q,values:q},"%ObjectPrototype%":{"[[Proto]]":null,constructor:"Object",hasOwnProperty:q,isPrototypeOf:q,propertyIsEnumerable:q,toLocaleString:q,toString:q,valueOf:q,"--proto--":J,__defineGetter__:q,__defineSetter__:q,__lookupGetter__:q,__lookupSetter__:q},"%UniqueFunction%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%FunctionPrototype%"},"%InertFunction%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%FunctionPrototype%"},"%FunctionPrototype%":{apply:q,bind:q,call:q,constructor:"%InertFunction%",toString:q,"@@hasInstance":q,caller:!1,arguments:!1},Boolean:{"[[Proto]]":"%FunctionPrototype%",prototype:"%BooleanPrototype%"},"%BooleanPrototype%":{constructor:"Boolean",toString:q,valueOf:q},Symbol:{"[[Proto]]":"%FunctionPrototype%",asyncIterator:"symbol",for:q,hasInstance:"symbol",isConcatSpreadable:"symbol",iterator:"symbol",keyFor:q,match:"symbol",matchAll:"symbol",prototype:"%SymbolPrototype%",replace:"symbol",search:"symbol",species:"symbol",split:"symbol",toPrimitive:"symbol",toStringTag:"symbol",unscopables:"symbol"},"%SymbolPrototype%":{constructor:"Symbol",description:V,toString:q,valueOf:q,"@@toPrimitive":q,"@@toStringTag":"string"},"%InitialError%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%ErrorPrototype%",captureStackTrace:q,stackTraceLimit:J,prepareStackTrace:J},"%SharedError%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%ErrorPrototype%",captureStackTrace:q,stackTraceLimit:J,prepareStackTrace:J},"%ErrorPrototype%":{constructor:"%SharedError%",message:"string",name:"string",toString:q},EvalError:Y("%EvalErrorPrototype%"),RangeError:Y("%RangeErrorPrototype%"),ReferenceError:Y("%ReferenceErrorPrototype%"),SyntaxError:Y("%SyntaxErrorPrototype%"),TypeError:Y("%TypeErrorPrototype%"),URIError:Y("%URIErrorPrototype%"),"%EvalErrorPrototype%":Z("EvalError"),"%RangeErrorPrototype%":Z("RangeError"),"%ReferenceErrorPrototype%":Z("ReferenceError"),"%SyntaxErrorPrototype%":Z("SyntaxError"),"%TypeErrorPrototype%":Z("TypeError"),"%URIErrorPrototype%":Z("URIError"),Number:{"[[Proto]]":"%FunctionPrototype%",EPSILON:"number",isFinite:q,isInteger:q,isNaN:q,isSafeInteger:q,MAX_SAFE_INTEGER:"number",MAX_VALUE:"number",MIN_SAFE_INTEGER:"number",MIN_VALUE:"number",NaN:"number",NEGATIVE_INFINITY:"number",parseFloat:q,parseInt:q,POSITIVE_INFINITY:"number",prototype:"%NumberPrototype%"},"%NumberPrototype%":{constructor:"Number",toExponential:q,toFixed:q,toLocaleString:q,toPrecision:q,toString:q,valueOf:q},BigInt:{"[[Proto]]":"%FunctionPrototype%",asIntN:q,asUintN:q,prototype:"%BigIntPrototype%",bitLength:!1,fromArrayBuffer:!1},"%BigIntPrototype%":{constructor:"BigInt",toLocaleString:q,toString:q,valueOf:q,"@@toStringTag":"string"},"%InitialMath%":{...ee,random:q},"%SharedMath%":ee,"%InitialDate%":{"[[Proto]]":"%FunctionPrototype%",now:q,parse:q,prototype:"%DatePrototype%",UTC:q},"%SharedDate%":{"[[Proto]]":"%FunctionPrototype%",now:q,parse:q,prototype:"%DatePrototype%",UTC:q},"%DatePrototype%":{constructor:"%SharedDate%",getDate:q,getDay:q,getFullYear:q,getHours:q,getMilliseconds:q,getMinutes:q,getMonth:q,getSeconds:q,getTime:q,getTimezoneOffset:q,getUTCDate:q,getUTCDay:q,getUTCFullYear:q,getUTCHours:q,getUTCMilliseconds:q,getUTCMinutes:q,getUTCMonth:q,getUTCSeconds:q,setDate:q,setFullYear:q,setHours:q,setMilliseconds:q,setMinutes:q,setMonth:q,setSeconds:q,setTime:q,setUTCDate:q,setUTCFullYear:q,setUTCHours:q,setUTCMilliseconds:q,setUTCMinutes:q,setUTCMonth:q,setUTCSeconds:q,toDateString:q,toISOString:q,toJSON:q,toLocaleDateString:q,toLocaleString:q,toLocaleTimeString:q,toString:q,toTimeString:q,toUTCString:q,valueOf:q,"@@toPrimitive":q,getYear:q,setYear:q,toGMTString:q},String:{"[[Proto]]":"%FunctionPrototype%",fromCharCode:q,fromCodePoint:q,prototype:"%StringPrototype%",raw:q,fromArrayBuffer:!1},"%StringPrototype%":{length:"number",charAt:q,charCodeAt:q,codePointAt:q,concat:q,constructor:"String",endsWith:q,includes:q,indexOf:q,lastIndexOf:q,localeCompare:q,match:q,matchAll:q,normalize:q,padEnd:q,padStart:q,repeat:q,replace:q,replaceAll:q,search:q,slice:q,split:q,startsWith:q,substring:q,toLocaleLowerCase:q,toLocaleUpperCase:q,toLowerCase:q,toString:q,toUpperCase:q,trim:q,trimEnd:q,trimStart:q,valueOf:q,"@@iterator":q,substr:q,anchor:q,big:q,blink:q,bold:q,fixed:q,fontcolor:q,fontsize:q,italics:q,link:q,small:q,strike:q,sub:q,sup:q,trimLeft:q,trimRight:q,compare:!1},"%StringIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:q,"@@toStringTag":"string"},"%InitialRegExp%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%RegExpPrototype%","@@species":V,input:!1,$_:!1,lastMatch:!1,"$&":!1,lastParen:!1,"$+":!1,leftContext:!1,"$`":!1,rightContext:!1,"$'":!1,$1:!1,$2:!1,$3:!1,$4:!1,$5:!1,$6:!1,$7:!1,$8:!1,$9:!1},"%SharedRegExp%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%RegExpPrototype%","@@species":V},"%RegExpPrototype%":{constructor:"%SharedRegExp%",exec:q,dotAll:V,flags:V,global:V,ignoreCase:V,"@@match":q,"@@matchAll":q,multiline:V,"@@replace":q,"@@search":q,source:V,"@@split":q,sticky:V,test:q,toString:q,unicode:V,compile:!1},"%RegExpStringIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:q,"@@toStringTag":"string"},Array:{"[[Proto]]":"%FunctionPrototype%",from:q,isArray:q,of:q,prototype:"%ArrayPrototype%","@@species":V},"%ArrayPrototype%":{length:"number",concat:q,constructor:"Array",copyWithin:q,entries:q,every:q,fill:q,filter:q,find:q,findIndex:q,flat:q,flatMap:q,forEach:q,includes:q,indexOf:q,join:q,keys:q,lastIndexOf:q,map:q,pop:q,push:q,reduce:q,reduceRight:q,reverse:q,shift:q,slice:q,some:q,sort:q,splice:q,toLocaleString:q,toString:q,unshift:q,values:q,"@@iterator":q,"@@unscopables":{"[[Proto]]":null,copyWithin:"boolean",entries:"boolean",fill:"boolean",find:"boolean",findIndex:"boolean",flat:"boolean",flatMap:"boolean",includes:"boolean",keys:"boolean",values:"boolean"}},"%ArrayIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:q,"@@toStringTag":"string"},"%TypedArray%":{"[[Proto]]":"%FunctionPrototype%",from:q,of:q,prototype:"%TypedArrayPrototype%","@@species":V},"%TypedArrayPrototype%":{buffer:V,byteLength:V,byteOffset:V,constructor:"%TypedArray%",copyWithin:q,entries:q,every:q,fill:q,filter:q,find:q,findIndex:q,forEach:q,includes:q,indexOf:q,join:q,keys:q,lastIndexOf:q,length:V,map:q,reduce:q,reduceRight:q,reverse:q,set:q,slice:q,some:q,sort:q,subarray:q,toLocaleString:q,toString:q,values:q,"@@iterator":q,"@@toStringTag":V},BigInt64Array:X("%BigInt64ArrayPrototype%"),BigUint64Array:X("%BigUint64ArrayPrototype%"),Float32Array:X("%Float32ArrayPrototype%"),Float64Array:X("%Float64ArrayPrototype%"),Int16Array:X("%Int16ArrayPrototype%"),Int32Array:X("%Int32ArrayPrototype%"),Int8Array:X("%Int8ArrayPrototype%"),Uint16Array:X("%Uint16ArrayPrototype%"),Uint32Array:X("%Uint32ArrayPrototype%"),Uint8Array:X("%Uint8ArrayPrototype%"),Uint8ClampedArray:X("%Uint8ClampedArrayPrototype%"),"%BigInt64ArrayPrototype%":Q("BigInt64Array"),"%BigUint64ArrayPrototype%":Q("BigUint64Array"),"%Float32ArrayPrototype%":Q("Float32Array"),"%Float64ArrayPrototype%":Q("Float64Array"),"%Int16ArrayPrototype%":Q("Int16Array"),"%Int32ArrayPrototype%":Q("Int32Array"),"%Int8ArrayPrototype%":Q("Int8Array"),"%Uint16ArrayPrototype%":Q("Uint16Array"),"%Uint32ArrayPrototype%":Q("Uint32Array"),"%Uint8ArrayPrototype%":Q("Uint8Array"),"%Uint8ClampedArrayPrototype%":Q("Uint8ClampedArray"),Map:{"[[Proto]]":"%FunctionPrototype%","@@species":V,prototype:"%MapPrototype%"},"%MapPrototype%":{clear:q,constructor:"Map",delete:q,entries:q,forEach:q,get:q,has:q,keys:q,set:q,size:V,values:q,"@@iterator":q,"@@toStringTag":"string"},"%MapIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:q,"@@toStringTag":"string"},Set:{"[[Proto]]":"%FunctionPrototype%",prototype:"%SetPrototype%","@@species":V},"%SetPrototype%":{add:q,clear:q,constructor:"Set",delete:q,entries:q,forEach:q,has:q,keys:q,size:V,values:q,"@@iterator":q,"@@toStringTag":"string"},"%SetIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:q,"@@toStringTag":"string"},WeakMap:{"[[Proto]]":"%FunctionPrototype%",prototype:"%WeakMapPrototype%"},"%WeakMapPrototype%":{constructor:"WeakMap",delete:q,get:q,has:q,set:q,"@@toStringTag":"string"},WeakSet:{"[[Proto]]":"%FunctionPrototype%",prototype:"%WeakSetPrototype%"},"%WeakSetPrototype%":{add:q,constructor:"WeakSet",delete:q,has:q,"@@toStringTag":"string"},ArrayBuffer:{"[[Proto]]":"%FunctionPrototype%",isView:q,prototype:"%ArrayBufferPrototype%","@@species":V,fromString:!1,fromBigInt:!1},"%ArrayBufferPrototype%":{byteLength:V,constructor:"ArrayBuffer",slice:q,"@@toStringTag":"string",concat:!1},SharedArrayBuffer:!1,"%SharedArrayBufferPrototype%":!1,DataView:{"[[Proto]]":"%FunctionPrototype%",prototype:"%DataViewPrototype%"},"%DataViewPrototype%":{buffer:V,byteLength:V,byteOffset:V,constructor:"DataView",getBigInt64:q,getBigUint64:q,getFloat32:q,getFloat64:q,getInt8:q,getInt16:q,getInt32:q,getUint8:q,getUint16:q,getUint32:q,setBigInt64:q,setBigUint64:q,setFloat32:q,setFloat64:q,setInt8:q,setInt16:q,setInt32:q,setUint8:q,setUint16:q,setUint32:q,"@@toStringTag":"string"},Atomics:!1,JSON:{parse:q,stringify:q,"@@toStringTag":"string"},"%IteratorPrototype%":{"@@iterator":q},"%AsyncIteratorPrototype%":{"@@asyncIterator":q},"%InertGeneratorFunction%":{"[[Proto]]":"%InertFunction%",prototype:"%Generator%"},"%Generator%":{"[[Proto]]":"%FunctionPrototype%",constructor:"%InertGeneratorFunction%",prototype:"%GeneratorPrototype%","@@toStringTag":"string"},"%InertAsyncGeneratorFunction%":{"[[Proto]]":"%InertFunction%",prototype:"%AsyncGenerator%"},"%AsyncGenerator%":{"[[Proto]]":"%FunctionPrototype%",constructor:"%InertAsyncGeneratorFunction%",prototype:"%AsyncGeneratorPrototype%","@@toStringTag":"string"},"%GeneratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",constructor:"%Generator%",next:q,return:q,throw:q,"@@toStringTag":"string"},"%AsyncGeneratorPrototype%":{"[[Proto]]":"%AsyncIteratorPrototype%",constructor:"%AsyncGenerator%",next:q,return:q,throw:q,"@@toStringTag":"string"},HandledPromise:{"[[Proto]]":"Promise",applyFunction:q,applyFunctionSendOnly:q,applyMethod:q,applyMethodSendOnly:q,get:q,getSendOnly:q,prototype:"%PromisePrototype%",resolve:q},Promise:{"[[Proto]]":"%FunctionPrototype%",all:q,allSettled:q,any:!1,prototype:"%PromisePrototype%",race:q,reject:q,resolve:q,"@@species":V},"%PromisePrototype%":{catch:q,constructor:"Promise",finally:q,then:q,"@@toStringTag":"string"},"%InertAsyncFunction%":{"[[Proto]]":"%InertFunction%",prototype:"%AsyncFunctionPrototype%"},"%AsyncFunctionPrototype%":{"[[Proto]]":"%FunctionPrototype%",constructor:"%InertAsyncFunction%","@@toStringTag":"string"},Reflect:{apply:q,construct:q,defineProperty:q,deleteProperty:q,get:q,getOwnPropertyDescriptor:q,getPrototypeOf:q,has:q,isExtensible:q,ownKeys:q,preventExtensions:q,set:q,setPrototypeOf:q,"@@toStringTag":"string"},Proxy:{"[[Proto]]":"%FunctionPrototype%",revocable:q},escape:q,unescape:q,"%UniqueCompartment%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%CompartmentPrototype%",toString:q},"%InertCompartment%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%CompartmentPrototype%",toString:q},"%CompartmentPrototype%":{constructor:"%InertCompartment%",evaluate:q,globalThis:V,name:V,toString:q},lockdown:q,harden:q,"%InitialGetStackString%":q};function ne(e,t,n){if(P(e,t)){const r=s(e,t);if(!Object.is(r.value,n.value)||r.get!==n.get||r.set!==n.set||r.writable!==n.writable||r.enumerable!==n.enumerable||r.configurable!==n.configurable)throw new Error("Conflicting definitions of "+t)}D(e,t,n)}function re(e,t){const n={__proto__:null};for(const[o,s]of r(t))P(e,o)&&(n[s]=e[o]);return n}function oe(){const e={__proto__:null};let t;const n={addIntrinsics(t){!function(e,t){for(const[n,o]of r(t))ne(e,n,o)}(e,u(t))},completePrototypes(){for(const[t,n]of r(e)){if(n!==Object(n))continue;if(!P(n,"prototype"))continue;const r=te[t];if("object"!=typeof r)throw new Error("Expected permit object at whitelist."+t);const o=r.prototype;if(!o)throw new Error(t+".prototype property not whitelisted");if("string"!=typeof o||!P(te,o))throw new Error(`Unrecognized ${t}.prototype whitelist entry`);const s=n.prototype;if(P(e,o)){if(e[o]!==s)throw new Error("Conflicting bindings of "+o)}else e[o]=s}},finalIntrinsics:()=>(o(e),t=new WeakSet($(e).filter(e=>"function"==typeof e)),e),isPseudoNative(e){if(!t)throw new Error("isPseudoNative can only be called after finalIntrinsics");return t.has(e)}};return n.addIntrinsics(U),n.addIntrinsics(re(globalThis,L)),n}const se=function(e={},t={},n={}){throw new TypeError("Not available")};function ue(e){return i(e).constructor}const{freeze:ae,getOwnPropertyDescriptors:ie,getPrototypeOf:le}=Object,{ownKeys:ce}=Reflect;const{apply:de,ownKeys:pe}=Reflect,fe=(e=>(t,...n)=>de(e,t,n))(Object.prototype.hasOwnProperty);function me(e,t){if("string"==typeof t)return t;if("symbol"==typeof t)return"@@"+t.toString().slice(14,-1);throw new TypeError(`Unexpected property name type ${e} ${t}`)}function $e(e,t){const n=["undefined","boolean","number","string","symbol"];function r(t,r,o,s){if("object"==typeof s)return a(t,r,s),!0;if(!1===s)return!1;if("string"==typeof s)if("prototype"===o||"constructor"===o){if(fe(e,s)){if(r!==e[s])throw new TypeError("Does not match whitelist "+t);return!0}}else if(n.includes(s)){if(typeof r!==s)throw new TypeError(`At ${t} expected ${s} not ${typeof r}`);return!0}throw new TypeError(`Unexpected whitelist permit ${s} at ${t}`)}function o(e,t,n,o){const u=s(t,n);if(fe(u,"value")){if(K(o))throw new TypeError("Accessor expected at "+e);return r(e,u.value,n,o)}if(!K(o))throw new TypeError("Accessor not expected at "+e);return r(e+"",u.get,n,o.get)&&r(e+"",u.set,n,o.set)}function u(e,n,r){const o="__proto__"===r?"--proto--":r;return fe(n,o)?n[o]:"function"==typeof e&&(t(e),fe(H,o))?H[o]:void 0}function a(t,n,r){if(void 0===n)return;!function(t,n,r){if(n!==Object(n))throw new TypeError(`Object expected: ${t}, ${n}, ${r}`);const o=i(n);if(null!==o||null!==r){if(void 0!==r&&"string"!=typeof r)throw new TypeError(`Malformed whitelist permit ${t}.__proto__`);if(o!==e[r||"%ObjectPrototype%"])throw new Error(`Unexpected intrinsic ${t}.__proto__ at ${r}`)}}(t,n,r["[[Proto]]"]);for(const e of pe(n)){const s=me(t,e),a=`${t}.${s}`,i=u(n,r,s);i&&o(a,n,e,i)||(!1!==i&&console.log("Removing "+a),delete n[e])}}a("intrinsics",e,te)}const ge={"%ObjectPrototype%":{constructor:!0,hasOwnProperty:!0,toString:!0,valueOf:!0},"%ArrayPrototype%":{toString:!0},"%FunctionPrototype%":{constructor:!0,bind:!0,toString:!0},"%ErrorPrototype%":{constructor:!0,message:!0,name:!0,toString:!0},"%TypeErrorPrototype%":{constructor:!0,message:!0,name:!0},"%SyntaxErrorPrototype%":{message:!0},"%RangeErrorPrototype%":{message:!0},"%URIErrorPrototype%":{message:!0},"%EvalErrorPrototype%":{message:!0},"%ReferenceErrorPrototype%":{message:!0},"%PromisePrototype%":{constructor:!0},"%TypedArrayPrototype%":{toString:!0},"%Generator%":{constructor:!0,name:!0,toString:!0},"%IteratorPrototype%":{toString:!0}},De={"%ObjectPrototype%":{toString:!0},"%FunctionPrototype%":{toString:!0},"%ErrorPrototype%":{name:!0}},{ownKeys:ye}=Reflect;function he(e){return null!==e&&"object"==typeof e}const Ce=e=>(e=""+e).length>=1&&"aeiouAEIOU".includes(e[0])?"an "+e:"a "+e;o(Ce);const be=e=>{const t=new Set;return JSON.stringify(e,(e,n)=>{if("object"==typeof n&&null!==n){if(t.has(n))return"<**seen**>";t.add(n)}return n})};o(be);const Ee=new WeakMap,ve=e=>{const t=o({toString:o(()=>be(e))});return Ee.set(t,e),t};o(ve);const Ae=new WeakMap,Fe=(e,...t)=>{const n=o({__proto__:null});return Ae.set(n,{template:e,args:t}),n};o(Fe);const we=({template:e,args:t})=>{const n=[e[0]];for(let r=0;r{"string"==typeof e&&(e=Fe([e]));const n=Ae.get(e);if(void 0===n)throw new Error("unrecognized details "+e);const r=new t((({template:e,args:t})=>{const n=[e[0]];for(let r=0;r{"string"==typeof t&&(t=Fe([t]));const n=Ae.get(t);if(void 0===n)throw new Error("unrecognized details "+t);const r=we(n),o=Se.get(e);if(void 0!==o)for(const t of o)t(e,r);else{const t=Pe.get(e);void 0!==t?t.push(r):Pe.set(e,[r])}};o(ke);const Ie={getStackString:globalThis.getStackString||(e=>{if(!("stack"in e))return"";const t=""+e.stack,n=t.indexOf("\n");return t.startsWith(" ")||-1===n?t:t.slice(n+1)}),takeMessageLogArgs:e=>{const t=xe.get(e);return xe.delete(e),t},takeNoteLogArgsArray:(e,t)=>{const n=Pe.get(e);if(Pe.delete(e),void 0!==t){const n=Se.get(e);n?n.push(t):Se.set(e,[t])}return n||[]}};o(Ie);const Te=t=>{const n=(e=Fe`Assert failed`,n=Error)=>{const r=Be(e,n);throw void 0!==t&&t(r),r};function r(e,t=Fe`Check failed`,r=Error){if(!e)throw n(t,r)}o(n);const s=(e,t,n=Fe`Expected ${e} is same as ${t}`,o=RangeError)=>{r(l(e,t),n,o)};o(s);const u=(e,t,n)=>{r("string"==typeof t,Fe`${ve(t)} must be a string`),void 0===n&&(n=Fe([""," must be "+Ce(t)],e)),s(typeof e,t,n,TypeError)};o(u);const a=e(r,{error:Be,fail:n,equal:s,typeof:u,string:(e,t)=>u(e,"string",t),note:ke,details:Fe,quote:ve});return o(a)};o(Te);const Ne=Te(),{details:Oe,quote:_e}=Ne,Re=/^(\w*[a-z])Locale([A-Z]\w*)$/,je={localeCompare(e){if(null==this)throw new TypeError('Cannot localeCompare with null or undefined "this" value');const t=""+this;return t<(e=""+e)?-1:t>e?1:(Ne(t===e,Oe`expected ${_e(t)} and ${_e(e)} to compare`),0)}}.localeCompare;const Me=["await","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","let","static","enum","implements","package","protected","interface","private","public","await","null","true","false","this","arguments"],Ue=new RegExp("^[a-zA-Z_$][\\w$]*$");function Le(e){return"eval"!==e&&!I(Me,e)&&T(Ue,e)}function ze(e,t){const n=s(e,t);return!1===n.configurable&&!1===n.writable&&P(n,"value")}const{details:Ge,quote:We}=Ne,He=eval,qe=new Proxy(R,{get(e,t){Ne.fail(Ge`Please report unexpected scope handler trap: ${We(String(t))}`)}});const Ve=new RegExp("(?:\\s*//\\s*[@#]\\s*([a-zA-Z][a-zA-Z0-9]*)\\s*=\\s*([^\\s\\*]*)|/\\*\\s*[@#]\\s*([a-zA-Z][a-zA-Z0-9]*)\\s*=\\s*([^\\s\\*]*)\\s*\\*/)\\s*$");function Je(e){let t="";for(;e.length>0;){const n=Ve.exec(e);if(null===n)break;e=e.slice(0,e.length-n[0].length),"sourceURL"===n[3]?t=n[4]:"sourceURL"===n[1]&&(t=n[2])}return t}function Ke(e,t){const n=N(e,t);return n<0?-1:_(O(e,0,n),"\n").length}const Ye=new RegExp("(?:\x3c!--|--\x3e)","g");function Ze(e){return e.replace(Ye,e=>"<"===e[0]?"< ! --":"-- >")}const Xe=new RegExp("\\bimport(\\s*(?:\\(|/[/*]))","g");function Qe(e){return e.replace(Xe,(e,t)=>"__import__"+t)}const et=new RegExp("\\beval(\\s*\\()","g");function tt(e){const t=Ke(e,et);if(t<0)return e;const n=Je(e);throw new SyntaxError(`Possible direct eval expression rejected at ${n}:${t}. (SES_EVAL_REJECTED)`)}function nt(e){return e=function(e){const t=Ke(e,Xe);if(t<0)return e;const n=Je(e);throw new SyntaxError(`Possible import expression rejected at ${n}:${t}. (SES_IMPORT_REJECTED)`)}(e=function(e){const t=Ke(e,Ye);if(t<0)return e;const n=Je(e);throw new SyntaxError(`Possible HTML comment rejected at ${n}:${t}. (SES_HTML_COMMENT_REJECTED)`)}(e))}const rt=Function;function ot(e=[]){const t=function(e){return 0===e.length?"":`const {${S(e,",")}} = this;`}(e);return rt(`\n with (this) {\n ${t}\n return function() {\n 'use strict';\n return eval(arguments[0]);\n };\n }\n `)}const{details:st}=Ne;function ut(e,t,n={},{localTransforms:r=[],globalTransforms:o=[],sloppyGlobalsMode:u=!1}={}){e=function(e,t){for(const n of t)e=n(e);return e}(e,[...r,...o,nt]);const i=function(e,t={},{sloppyGlobalsMode:n=!1}={}){return{__proto__:qe,useUnsafeEvaluator:!1,get(n,r){if("symbol"!=typeof r)return"eval"===r&&!0===this.useUnsafeEvaluator?(this.useUnsafeEvaluator=!1,He):r in t?C(t,r,e):C(e,r)},set(n,r,o){if(r in t){return"value"in s(t,r)?b(t,r,o):b(t,r,o,e)}return b(e,r,o)},has:(r,o)=>!!(n||"eval"===o||o in t||o in e||o in globalThis),getPrototypeOf:()=>null,getOwnPropertyDescriptor(e,t){const n=JSON.stringify(String(t));console.warn("getOwnPropertyDescriptor trap on scopeHandler for "+n,(new Error).stack)}}}(t,n,{sloppyGlobalsMode:u}),l=A(R,i),c=ot(function(e,t={}){const n=a(e),r=a(t),o=r.filter(e=>Le(e)&&ze(t,e));return[...n.filter(t=>!r.includes(t)&&Le(t)&&ze(e,t)),...o]}(t,n)),d=y(c,l.proxy,[]);let p;i.useUnsafeEvaluator=!0;try{return y(d,t,[e])}catch(e){throw p=e,e}finally{!0===i.useUnsafeEvaluator&&(l.revoke(),Ne.fail(st`handler did not revoke useUnsafeEvaluator ${p}`))}}const at=(e,t={})=>n=>"string"!=typeof n?n:ut(n,e,{},t),it=Function;function lt(e,t={}){const r=function(n){const r=""+(k(arguments)||""),o=""+S(arguments,",");new it(o,r);const s=`(function anonymous(${o}\n) {\n${r}\n})`;return ut(s,e,{},t)};return n(r,{prototype:{value:Function.prototype,writable:!1,enumerable:!1,configurable:!1}}),Ne(i(Function)===Function.prototype,"Function prototype is the same accross compartments"),Ne(i(r)===Function.prototype,"Function constructor prototype is the same accross compartments"),r}function ct(e,t,n,o,s,{globalTransforms:u,nativeBrander:a}){for(const[t,n]of r(U))D(e,t,{value:n,writable:!1,enumerable:!1,configurable:!1});for(const[n,o]of r(L))P(t,o)&&D(e,n,{value:t[o],writable:!0,enumerable:!1,configurable:!0});for(const[o,s]of r(n))P(t,s)&&D(e,o,{value:t[s],writable:!0,enumerable:!1,configurable:!0});const i={globalThis:e,eval:at(e,{globalTransforms:u}),Function:lt(e,{globalTransforms:u})};i.Compartment=o(o,t,a);for(const[t,n]of r(i))D(e,t,{value:n,writable:!0,enumerable:!1,configurable:!0}),"function"==typeof n&&a(n)}const dt=o([["debug","debug"],["log","log"],["info","info"],["warn","warn"],["error","error"],["trace","log"],["dirxml","log"],["group","log"],["groupCollapsed","log"]]),pt=o([["assert","error"],["timeLog","log"],["clear",void 0],["count","info"],["countReset",void 0],["dir","log"],["groupEnd","log"],["table","log"],["time","info"],["timeEnd","info"],["profile",void 0],["profileEnd",void 0],["timeStamp",void 0]]),ft=o([...dt,...pt]);o(()=>{let e=[];const t=g(ft.map(([t,n])=>{const r=(...n)=>{e.push([t,...n])};return D(r,"name",{value:t}),[t,o(r)]}));o(t);const n=()=>{const t=o(e);return e=[],t};o(n);return o({loggingConsole:t,takeLog:n})});const mt={NOTE:"ERROR_NOTE:",MESSAGE:"ERROR_MESSAGE:"};o(mt);const $t=(e,t)=>{const{getStackString:n,takeMessageLogArgs:r,takeNoteLogArgsArray:s}=t;let u=0;const a=new WeakMap,i=e=>{let t;return a.has(e)?t=a.get(e):(u+=1,a.set(e,u),t=u),`${e.name}#${t}`},l=(e,t)=>e.map(e=>e instanceof Error?(t.push(e),`(${i(e)})`):e),c=(t,n,r,o)=>{const s=i(t),u=n===mt.MESSAGE?s+":":`${s} ${n}`,a=l(r,o);e.debug(u,...a)},d=(t,n)=>{if(n.length>=1){let r;r=1===n.length?"Nested error":`Nested ${n.length} errors`,void 0!==t&&(r=`${r} under ${t}`),e.group(r);try{for(const e of n)m(e)}finally{e.groupEnd()}}},p=new WeakSet,f=(e,t)=>{const n=[];c(e,mt.NOTE,t,n),d(i(e),n)},m=t=>{if(p.has(t))return;const o=i(t);p.add(t);const u=[],a=r(t),l=s(t,f);void 0===a?e.debug(o+":",t.message):c(t,mt.MESSAGE,a,u);let m=n(t);"string"==typeof m&&m.length>=1&&!m.endsWith("\n")&&(m+="\n"),e.debug("",m);for(const e of l)c(t,mt.NOTE,e,u);d(o,u)},$=dt.map(([t,n])=>{const r=(...n)=>{const r=[],o=l(n,r);e[t](...o),d(void 0,r)};return D(r,"name",{value:t}),[t,o(r)]}),y=pt.filter(([t,n])=>t in e).map(([t,n])=>{const r=(...n)=>{e[t](...n)};return D(r,"name",{value:t}),[t,o(r)]}),h=g([...$,...y]);return o(h)};o($t);o((e,t,n)=>{const r=ft.filter(([t,n])=>t in e).map(([n,r])=>[n,o((...o)=>{(void 0===r||t.canLog(r))&&e[n](...o)})]),s=g(r);return o(s)});const gt=console,Dt=["getTypeName","getFunctionName","getMethodName","getFileName","getLineNumber","getColumnNumber","getEvalOrigin","isToplevel","isEval","isNative","isConstructor","isAsync","getPosition","getScriptNameOrSourceURL","toString"],yt=e=>{const t=g(Dt.map(t=>[t,()=>e[t]()]));return Object.create(t,{})},ht=[/\/node_modules\//,/^(?:node:)?internal\//,/\/packages\/ses\/src\/error\/assert.js$/,/\/packages\/eventual-send\/src\//],Ct=[/^((?:.*[( ])?)[:/\w_-]*\/\.\.\.\/(.+)$/,/^((?:.*[( ])?)[:/\w_-]*\/(packages\/.+)$/];function bt(e,t,r,o){const s=e=>"verbose"===o||(e=>{if(!e)return!0;for(const t of ht)if(t.test(e))return!1;return!0})(e.getFileName()),u=e=>{let t=""+e;return"concise"===o&&(t=(e=>{for(const t of Ct){const n=t.exec(e);if(n)return n.slice(1).join("")}return e})(t)),"\n at "+t},a=(e,t)=>[...t.filter(s).map(u)].join(""),i=new WeakMap,l={captureStackTrace(t,n=l.captureStackTrace){"function"!=typeof e.captureStackTrace?Reflect.set(t,"stack",""):e.captureStackTrace(t,n)},getStackString(e){i.has(e)||e.stack;const t=i.get(e);return t?a(0,t):""},prepareStackTrace(e,t){if(i.set(e,t),"unsafe"===r){return`${e}${a(0,t)}`}return""}},c=l.prepareStackTrace;e.prepareStackTrace=c;const d=new WeakSet([c]),p=e=>{if(d.has(e))return e;const t={prepareStackTrace:(t,n)=>(i.set(t,n),e(t,(e=>e.map(yt))(n)))};return d.add(t.prepareStackTrace),t.prepareStackTrace};return n(t,{captureStackTrace:{value:l.captureStackTrace,writable:!0,enumerable:!1,configurable:!0},stackTraceLimit:{get(){if("number"==typeof e.stackTraceLimit)return e.stackTraceLimit},set(t){"number"!=typeof e.stackTraceLimit||(e.stackTraceLimit=t)},enumerable:!1,configurable:!0},prepareStackTrace:{get:()=>e.prepareStackTrace,set(t){if("function"==typeof t){const n=p(t);e.prepareStackTrace=n}else e.prepareStackTrace=c},enumerable:!1,configurable:!0}}),l.getStackString}const Et={getStackString:e=>""};const{details:vt,quote:At}=Ne;let Ft,wt=!1;const xt=function(){const e=new WeakSet,{harden:t}={harden(t){const n=new Set,r=new WeakMap;function o(t,o){if(Object(t)!==t)return;const s=typeof t;if("object"!==s&&"function"!==s)throw new TypeError("Unexpected typeof: "+s);e.has(t)||n.has(t)||(n.add(t),r.set(t,o))}function s(e){ae(e);const t=r.get(e)||"unknown",n=ie(e);o(le(e),t+".__proto__"),ce(n).forEach(e=>{const r=`${t}.${String(e)}`,s=n[e];"value"in s?o(s.value,""+r):(o(s.get,r+"(get)"),o(s.set,r+"(set)"))})}return o(t),n.forEach(s),n.forEach(e.add,e),t}};return t}(),Bt=()=>!1;function Pt(e,r,o,l={}){l={...Ft,...l};const{dateTaming:c="safe",errorTaming:f="safe",mathTaming:$="safe",regExpTaming:g="safe",localeTaming:C="safe",consoleTaming:b="safe",overrideTaming:E="moderate",stackFiltering:v="concise",...A}=l,F=Reflect.ownKeys(A);if(Ne(0===F.length,vt`lockdown(): non supported option ${At(F)}`),Ft){for(const e of d(Ft))Ne(l[e]===Ft[e],vt`lockdown(): cannot re-invoke with different option ${At(e)}`);return Bt}Ft={dateTaming:c,errorTaming:f,mathTaming:$,regExpTaming:g,localeTaming:C,consoleTaming:b,overrideTaming:E,stackFiltering:v};const w=oe();w.addIntrinsics(function(){try{(0,Function.prototype.constructor)("return 1")}catch(e){return{}}const e={};function t(t,r,o){let s;try{s=(0,eval)(o)}catch(e){if(e instanceof SyntaxError)return;throw e}const u=i(s),a=function(){throw new TypeError("Not available")};n(a,{prototype:{value:u},name:{value:t,writable:!1,enumerable:!1,configurable:!0}}),n(u,{constructor:{value:a}}),a!==Function.prototype.constructor&&m(a,Function.prototype.constructor),e[r]=a}return t("Function","%InertFunction%","(function(){})"),t("GeneratorFunction","%InertGeneratorFunction%","(function*(){})"),t("AsyncFunction","%InertAsyncFunction%","(async function(){})"),t("AsyncGeneratorFunction","%InertAsyncGeneratorFunction%","(async function*(){})"),e}()),w.addIntrinsics(function(e="safe"){if("safe"!==e&&"unsafe"!==e)throw new Error("unrecognized dateTaming "+e);const t=Date,r=t.prototype,o={now:()=>NaN},s=({powers:e="none"}={})=>{let o;return o="original"===e?function(...e){return void 0===new.target?Reflect.apply(t,void 0,e):Reflect.construct(t,e,new.target)}:function(...e){return void 0===new.target?"Invalid Date":(0===e.length&&(e=[NaN]),Reflect.construct(t,e,new.target))},n(o,{length:{value:7},prototype:{value:r,writable:!1,enumerable:!1,configurable:!1},parse:{value:Date.parse,writable:!0,enumerable:!1,configurable:!0},UTC:{value:Date.UTC,writable:!0,enumerable:!1,configurable:!0}}),o},u=s({powers:"original"}),a=s({power:"none"});return n(u,{now:{value:Date.now,writable:!0,enumerable:!1,configurable:!0}}),n(a,{now:{value:o.now,writable:!0,enumerable:!1,configurable:!0}}),n(r,{constructor:{value:a}}),{"%InitialDate%":u,"%SharedDate%":a}}(c)),w.addIntrinsics(function(e="safe",t="concise"){if("safe"!==e&&"unsafe"!==e)throw new Error("unrecognized errorTaming "+e);if("concise"!==t&&"verbose"!==t)throw new Error("unrecognized stackFiltering "+t);const r=Error,o=r.prototype,s="function"==typeof r.captureStackTrace?"v8":"unknown",u=(e={})=>{const t=function(...e){let n;return n=void 0===new.target?y(r,this,e):h(r,e,new.target),"v8"===s&&r.captureStackTrace(n,t),n};return n(t,{length:{value:1},prototype:{value:o,writable:!1,enumerable:!1,configurable:!1}}),t},a=u({powers:"original"}),i=u({powers:"none"});n(o,{constructor:{value:i}});for(const e of W)m(e,i);let l=Et.getStackString;return"v8"===s&&(l=bt(r,a,e,t)),{"%InitialGetStackString%":l,"%InitialError%":a,"%SharedError%":i}}(f,v)),w.addIntrinsics(function(e="safe"){if("safe"!==e&&"unsafe"!==e)throw new Error("unrecognized mathTaming "+e);const n=Math,r=n,{random:o,...s}=u(n);return{"%InitialMath%":r,"%SharedMath%":t(Object.prototype,s)}}($)),w.addIntrinsics(function(e="safe"){if("safe"!==e&&"unsafe"!==e)throw new Error("unrecognized regExpTaming "+e);const t=RegExp,r=t.prototype,o=(e={})=>{const o=function(...e){return void 0===new.target?t(...e):Reflect.construct(t,e,new.target)};return n(o,{length:{value:2},prototype:{value:r,writable:!1,enumerable:!1,configurable:!1},[Symbol.species]:s(t,Symbol.species)}),o},u=o(),a=o();return"unsafe"!==e&&delete r.compile,n(r,{constructor:{value:a}}),{"%InitialRegExp%":u,"%SharedRegExp%":a}}(g)),w.addIntrinsics(o()),w.completePrototypes();const x=w.finalIntrinsics();let B;"unsafe"!==f&&(B=x["%InitialGetStackString%"]);const S=((e="safe",t)=>{if("safe"!==e&&"unsafe"!==e)throw new Error("unrecognized consoleTaming "+e);if("unsafe"===e)return{console:gt};let n;n=void 0===t?Ie:{...Ie,getStackString:t};return{console:$t(gt,n)}})(b,B);globalThis.console=S.console,function(e,t="safe"){if("safe"!==t&&"unsafe"!==t)throw new Error("unrecognized dateTaming "+t);if("unsafe"!==t){D(String.prototype,"localeCompare",{value:je});for(const t of a(e)){const n=e[t];if(n===Object(n))for(const e of a(n)){const t=Re.exec(e);if(t){Ne("function"==typeof n[e],Oe`expected ${_e(e)} to be a function`);const r=`${t[1]}${t[2]}`,o=n[r];Ne("function"==typeof o,Oe`function ${_e(r)} not found`),D(n,e,{value:o})}}}}}(x,C);const k=M();return $e(x,k),function(){try{(0,Object.prototype.__lookupGetter__)("x")}catch(e){return}function e(e){if(null==e)throw new TypeError("can't convert undefined or null to object");return Object(e)}function t(e){return"symbol"==typeof e?e:""+e}function r(e,t){if("function"!=typeof e)throw TypeError(`invalid ${t} usage`);return e}n(p,{__defineGetter__:{value:function(t,n){const o=e(this);D(o,t,{get:r(n,"getter"),enumerable:!0,configurable:!0})}},__defineSetter__:{value:function(t,n){const o=e(this);D(o,t,{set:r(n,"setter"),enumerable:!0,configurable:!0})}},__lookupGetter__:{value:function(n){let r,o=e(this);for(n=t(n);o&&!(r=s(o,n));)o=i(o);return r&&r.get}},__lookupSetter__:{value:function(n){let r,o=e(this);for(n=t(n);o&&!(r=s(o,n));)o=i(o);return r&&r.set}}})}(),ct(globalThis,x,z,e,0,{nativeBrander:k}),function(){return function(e,t){function n(e,t,n,r){if("value"in r&&r.configurable){const{value:s}=r;function o(){return s}D(o,"originalValue",{value:s,writable:!1,enumerable:!1,configurable:!1}),D(t,n,{get:o,set:function(r){if(t===this)throw new TypeError(`Cannot assign to read only property '${String(n)}' of '${e}'`);P(this,n)?this[n]=r:D(this,n,{value:r,writable:!0,enumerable:!0,configurable:!0})},enumerable:r.enumerable,configurable:r.configurable})}}function r(e,t,r){const o=s(t,r);o&&n(e,t,r,o)}function o(e,t){const r=u(t);r&&ye(r).forEach(o=>n(e,t,o,r[o]))}let i;switch(t){case"min":i=De;break;case"moderate":i=ge;break;default:throw new Error("unrecognized overrideTaming "+t)}!function e(t,n,u){for(const i of a(u)){const a=s(n,i);if(!a||a.get||a.set)continue;const l=`${t}.${String(i)}`,c=u[i];if(!0===c)r(l,n,i);else if("*"===c)o(l,a.value);else{if(!he(c))throw new TypeError("Unexpected override enablement plan "+l);e(l,a.value,c)}}}("root",e,i)}(x,E),xt(x),wt=!0,!0}}const St=new WeakMap,kt={constructor:se,get globalThis(){return St.get(this).globalObject},get name(){return St.get(this).name},evaluate(e,r={}){if("string"!=typeof e)throw new TypeError("first argument of evaluate() must be a string");const{transforms:o=[],sloppyGlobalsMode:s=!1,__moduleShimLexicals__:a,__evadeHtmlCommentTest__:i=!1,__evadeImportExpressionTest__:l=!1,__rejectSomeDirectEvalExpressions__:c=!0}=r,d=[...o];!0===i&&d.push(Ze),!0===l&&d.push(Qe),!0===c&&d.push(tt);const p=St.get(this);let{globalTransforms:f}=p;const{globalObject:m,globalLexicals:$}=p;let g=$;return void 0!==a&&(f=void 0,g=t(null,u($)),n(g,u(a))),ut(e,m,g,{globalTransforms:f,localTransforms:d,sloppyGlobalsMode:s})},toString:()=>"[object Compartment]"};n(se,{prototype:{value:kt}});const It=(t,n,r)=>{function s(s={},u={},i={}){if(void 0===new.target)throw new TypeError("Class constructor Compartment cannot be invoked without 'new'");const{name:l="",transforms:c=[],__shimTransforms__:d=[],globalLexicals:p={}}=i,f=[...c,...d],m={};ct(m,n,G,t,this.constructor.prototype,{globalTransforms:f,nativeBrander:r}),e(m,s);const $=a(p).filter(e=>!Le(e));if($.length)throw new Error(`Cannot create compartment with invalid names for global lexicals: ${$.join(", ")}; these names would not be lexically mentionable`);St.set(this,{name:l,globalTransforms:f,globalObject:m,globalLexicals:o({...p})})}return s.prototype=kt,s},Tt=M(),Nt=It(It,function(e){const t=oe();return t.addIntrinsics(re(e,G)),t.finalIntrinsics()}(globalThis),Tt);let Ot;e(globalThis,{harden:e=>(Ne(wt,"Cannot harden before lockdown"),xt(e)),lockdown:((e,t,n)=>(t={})=>Pt(e,0,n,t)())(It,0,(function(){const e=Function.prototype.constructor,t=typeof Symbol&&Symbol.iterator||"@@iterator",n=typeof Symbol&&Symbol.matchAll||"@@matchAll",r=s(arguments,"callee").get,o=(new String)[t](),u=i(o),a=RegExp.prototype[n]&&(new RegExp)[n](),l=a&&i(a),c=(new Array)[t](),d=i(c),p=i(Float32Array),f=(new Map)[t](),m=i(f),$=(new Set)[t](),g=i($),D=i(d);function*y(){}const h=ue(y),C=h.prototype;async function*b(){}const E=ue(b),v=E.prototype,A=v.prototype,F=i(A);async function w(){}const x=ue(w),B={"%InertFunction%":e,"%ArrayIteratorPrototype%":d,"%InertAsyncFunction%":x,"%AsyncGenerator%":v,"%InertAsyncGeneratorFunction%":E,"%AsyncGeneratorPrototype%":A,"%AsyncIteratorPrototype%":F,"%Generator%":C,"%InertGeneratorFunction%":h,"%IteratorPrototype%":D,"%MapIteratorPrototype%":m,"%RegExpStringIteratorPrototype%":l,"%SetIteratorPrototype%":g,"%StringIteratorPrototype%":u,"%ThrowTypeError%":r,"%TypedArray%":p,"%InertCompartment%":se};return B})),Compartment:Nt,assert:Ne});let _t=0,Rt=0;const jt=e=>{if("undefined"==typeof globalThis||!globalThis.assert)return e;const{details:t}=assert;Rt+=1;const n=new Error(`Event: ${_t}.${Rt}`);return void 0!==Ot&&assert.note(n,t`Caused by: ${Ot}`),e.map(e=>e&&((...r)=>{Ot=n,_t+=1,Rt=0;try{let n;try{n=e(...r)}catch(e){throw e instanceof Error&&assert.note(e,t`Thrown from: ${Ot}:${_t}.${Rt}`),e}const o=t`Rejection from: ${Ot}:${_t}.${Rt}`;return Promise.resolve(n).catch(e=>{e instanceof Error&&assert.note(e,o)}),n}finally{Ot=void 0}}))},{defineProperties:Mt,getOwnPropertyDescriptors:Ut,getOwnPropertyDescriptor:Lt,getPrototypeOf:zt,isFrozen:Gt}=Object,Wt=JSON.stringify;function Ht(){}"undefined"==typeof HandledPromise&&(globalThis.HandledPromise=function(){let e,t,n,r,o,s,u;function a(){e||(e=new WeakMap,t=new WeakMap,n=new WeakMap,r=new WeakMap,o=new WeakMap)}function i(e){let t=e;for(;o.has(t);)t=o.get(t);const s=r.get(t);if(s)for(;e!==t;){const t=o.get(e);o.delete(e),n.delete(e),r.set(e,s),e=t}else for(;e!==t;){const r=o.get(e);o.set(e,t),n.delete(e),e=r}return e}function l(s,u){if(void 0===new.target)throw new Error('must be invoked with "new"');let c,d,p,f=!1,m=null,$=()=>{};p=harden(Reflect.construct(Promise,[(e,s)=>{c=s=>{if(f)return m;if(o.has(p))throw TypeError("internal: already forwarded");let u;return s=i(s),n.has(s)||r.has(s)?u=s:(n.delete(p),u=t.get(s)),u&&u!==p?o.set(p,u):o.delete(p),i(p),n.has(p)&&p.then(e=>n.delete(p)),e(s),f=!0,m=s,$(),m},d=e=>{if(!f){if(o.has(p))throw TypeError("internal: already forwarded");n.delete(p),f=!0,s(e),$()}}}],new.target)),a();u||([u,$]=(()=>{let e;const t=new Promise(t=>{e=()=>t()}),n=e=>function(n,...r){return new l((o,s)=>{t.then(t=>{o(l[e](n,...r))}).catch(s)})};return[{get:n("get"),applyMethod:n("applyMethod")},e]})());const g=e=>{if(Object(e)!==e)throw TypeError(`Handler ${e} cannot be a primitive`)};g(u),n.set(p,u);return s((...e)=>{(async(e,t)=>{if(!f){if(o.has(p))throw TypeError("internal: already forwarded");try{if(t)throw TypeError("resolveHandled no longer accepts a handler; use resolveWithPresence");c(e)}catch(e){d(e)}}})(...e)},e=>{if(!f){if(o.has(p))throw TypeError("internal: already forwarded");d(e)}},n=>{if(f)return m;if(o.has(p))throw TypeError("internal: already forwarded");try{return g(n),m=Object.create(null),t.set(m,p),r.set(p,m),e.set(m,n),c(m),m}catch(e){throw d(e),e}}),p}l.prototype=Promise.prototype,Object.setPrototypeOf(l,Promise);const c={get:(e,t)=>u(e,"get",t),getSendOnly(e,t){u(e,"get",t)},applyFunction:(e,t)=>u(e,"applyMethod",void 0,t),applyFunctionSendOnly(e,t){u(e,"applyMethod",void 0,t)},applyMethod:(e,t,n)=>u(e,"applyMethod",t,n),applyMethodSendOnly(e,t,n){u(e,"applyMethod",t,n)},resolve(e){a();let n=t.get(e);if(n||(n=Promise.resolve(e)),harden(n),Gt(r=n)&&zt(r)===Promise.prototype&&Promise.resolve(r)===r&&void 0===Lt(r,"then"))return n;var r;const o=(e,t)=>n.then(e,t);return harden(Promise.resolve().then(e=>new l(o)))}};function d(t,n){return(r,...o)=>{const s=e.get(r);return s&&"function"==typeof s[t]?s[t](r,...o):n(r,...o)}}Mt(l,Ut(c));const p=e=>null===e?"null":typeof e;return s={get:d("get",(e,t)=>e[t]),applyMethod:d("applyMethod",(e,t,n)=>{if(null==t){if(!(e instanceof Function)){const t=p(e);throw TypeError("Cannot invoke target as a function; typeof target is "+Wt(t))}return e(...n)}if(null==e){const n=p(e);throw TypeError(`Cannot deliver ${Wt(t)} to target; typeof target is ${Wt(n)}`)}if(!(e[t]instanceof Function)){const n=p(e[t]);if("undefined"===n){const n=Object.getOwnPropertyNames(e).sort();throw TypeError(`target has no method ${Wt(t)}, has ${Wt(n)}`)}throw TypeError(`invoked method ${Wt(t)} is not a function; it is a ${Wt(n)}`)}return e[t](...n)})},u=(e,t,...o)=>{a();const[u]=jt([(e,n)=>e[t](n,...o,c)]),c=new l((o,a)=>{let c=!1;function d(e,n,r){if(!c){if("function"!=typeof n[t])throw TypeError(`${e}.${t} is not a function`);try{o(u(n,r))}catch(e){a(e)}c=!0}}function p(e){c||(a(e),c=!0)}l.resolve(e).then(e=>d("forwardingHandler",s,e)).catch(p),l.resolve().then(()=>{e=i(e);const o=n.get(e);if(o&&"function"==typeof o[t])d("unsettledHandler",o,e);else if(Object(e)===e&&"then"in e){if(r.has(e)){const t=r.get(e);d("forwardingHandler",s,t)}}else d("forwardingHandler",s,e)}).catch(p)});return c.catch(e=>{}),c},l}()),lockdown({errorTaming:"unsafe"}),/*Error.stackTraceLimit=1*/0;const qt=e=>e;function Vt(e,t){for(const n in t)e[n]=t[n];return e}function Jt(e){return e()}function Kt(){return Object.create(null)}function Yt(e){e.forEach(Jt)}function Zt(e){return"function"==typeof e}function Xt(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function Qt(e,t,n){e.$$.on_destroy.push(function(e,...t){if(null==e)return Ht;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}(t,n))}function en(e,t,n,r){if(e){const o=tn(e,t,n,r);return e[0](o)}}function tn(e,t,n,r){return e[1]&&r?Vt(n.ctx.slice(),e[1](r(t))):n.ctx}function nn(e,t,n,r,o,s,u){const a=function(e,t,n,r){if(e[2]&&r){const o=e[2](r(n));if(void 0===t.dirty)return o;if("object"==typeof o){const e=[],n=Math.max(t.dirty.length,o.length);for(let r=0;rwindow.performance.now():()=>Date.now(),ln=un?e=>requestAnimationFrame(e):Ht;const cn=new Set;function dn(e){cn.forEach(t=>{t.c(e)||(cn.delete(t),t.f())}),0!==cn.size&&ln(dn)}function pn(e){let t;return 0===cn.size&&ln(dn),{promise:new Promise(n=>{cn.add(t={c:e,f:n})}),abort(){cn.delete(t)}}}function fn(e,t){e.appendChild(t)}function mn(e,t,n){e.insertBefore(t,n||null)}function $n(e){e.parentNode.removeChild(e)}function gn(e,t){for(let n=0;ne.removeEventListener(t,n,r)}function vn(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function An(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Fn(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const r in t)null==t[r]?e.removeAttribute(r):"style"===r?e.style.cssText=t[r]:"__value"===r?e.value=e[r]=t[r]:n[r]&&n[r].set?e[r]=t[r]:An(e,r,t[r])}function wn(e,t){for(const n in t)An(e,n,t[n])}function xn(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function Bn(e,t){e.value=null==t?"":t}function Pn(e,t,n,r){e.style.setProperty(t,n,r?"important":"")}function Sn(e,t,n){e.classList[n?"add":"remove"](t)}function kn(e,t){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!1,!1,t),n}const In=new Set;let Tn,Nn=0;function On(e,t,n,r,o,s,u,a=0){const i=16.666/r;let l="{\n";for(let e=0;e<=1;e+=i){const r=t+(n-t)*s(e);l+=100*e+`%{${u(r,1-r)}}\n`}const c=l+`100% {${u(n,1-n)}}\n}`,d=`__svelte_${function(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}(c)}_${a}`,p=e.ownerDocument;In.add(p);const f=p.__svelte_stylesheet||(p.__svelte_stylesheet=p.head.appendChild(Dn("style")).sheet),m=p.__svelte_rules||(p.__svelte_rules={});m[d]||(m[d]=!0,f.insertRule(`@keyframes ${d} ${c}`,f.cssRules.length));const $=e.style.animation||"";return e.style.animation=`${$?$+", ":""}${d} ${r}ms linear ${o}ms 1 both`,Nn+=1,d}function _n(e,t){const n=(e.style.animation||"").split(", "),r=n.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),o=n.length-r.length;o&&(e.style.animation=r.join(", "),Nn-=o,Nn||ln(()=>{Nn||(In.forEach(e=>{const t=e.__svelte_stylesheet;let n=t.cssRules.length;for(;n--;)t.deleteRule(n);e.__svelte_rules={}}),In.clear())}))}function Rn(e){Tn=e}function jn(){if(!Tn)throw new Error("Function called outside component initialization");return Tn}function Mn(e){jn().$$.on_mount.push(e)}function Un(){const e=jn();return(t,n)=>{const r=e.$$.callbacks[t];if(r){const o=kn(t,n);r.slice().forEach(t=>{t.call(e,o)})}}}function Ln(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach(e=>e(t))}const zn=[],Gn=[],Wn=[],Hn=[],qn=Promise.resolve();let Vn=!1;function Jn(e){Wn.push(e)}function Kn(e){Hn.push(e)}let Yn=!1;const Zn=new Set;function Xn(){if(!Yn){Yn=!0;do{for(let e=0;e{er=null})),er}function nr(e,t,n){e.dispatchEvent(kn(`${t?"intro":"outro"}${n}`))}const rr=new Set;let or;function sr(){or={r:0,c:[],p:or}}function ur(){or.r||Yt(or.c),or=or.p}function ar(e,t){e&&e.i&&(rr.delete(e),e.i(t))}function ir(e,t,n,r){if(e&&e.o){if(rr.has(e))return;rr.add(e),or.c.push(()=>{rr.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}}const lr={duration:0};function cr(e,t,n){let r,o,s=t(e,n),u=!1,a=0;function i(){r&&_n(e,r)}function l(){const{delay:t=0,duration:n=300,easing:l=qt,tick:c=Ht,css:d}=s||lr;d&&(r=On(e,0,1,n,t,l,d,a++)),c(0,1);const p=an()+t,f=p+n;o&&o.abort(),u=!0,Jn(()=>nr(e,!0,"start")),o=pn(t=>{if(u){if(t>=f)return c(1,0),nr(e,!0,"end"),i(),u=!1;if(t>=p){const e=l((t-p)/n);c(e,1-e)}}return u})}let c=!1;return{start(){c||(_n(e),Zt(s)?(s=s(),tr().then(l)):l())},invalidate(){c=!1},end(){u&&(i(),u=!1)}}}function dr(e,t,n){let r,o=t(e,n),s=!0;const u=or;function a(){const{delay:t=0,duration:n=300,easing:a=qt,tick:i=Ht,css:l}=o||lr;l&&(r=On(e,1,0,n,t,a,l));const c=an()+t,d=c+n;Jn(()=>nr(e,!1,"start")),pn(t=>{if(s){if(t>=d)return i(0,1),nr(e,!1,"end"),--u.r||Yt(u.c),!1;if(t>=c){const e=a((t-c)/n);i(1-e,e)}}return s})}return u.r+=1,Zt(o)?tr().then(()=>{o=o(),a()}):a(),{end(t){t&&o.tick&&o.tick(1,0),s&&(r&&_n(e,r),s=!1)}}}function pr(e,t,n,r){let o=t(e,n),s=r?0:1,u=null,a=null,i=null;function l(){i&&_n(e,i)}function c(e,t){const n=e.b-s;return t*=Math.abs(n),{a:s,b:e.b,d:n,duration:t,start:e.start,end:e.start+t,group:e.group}}function d(t){const{delay:n=0,duration:r=300,easing:d=qt,tick:p=Ht,css:f}=o||lr,m={start:an()+n,b:t};t||(m.group=or,or.r+=1),u?a=m:(f&&(l(),i=On(e,s,t,r,n,d,f)),t&&p(0,1),u=c(m,r),Jn(()=>nr(e,t,"start")),pn(t=>{if(a&&t>a.start&&(u=c(a,r),a=null,nr(e,u.b,"start"),f&&(l(),i=On(e,s,u.b,u.duration,0,d,o.css))),u)if(t>=u.end)p(s=u.b,1-s),nr(e,u.b,"end"),a||(u.b?l():--u.group.r||Yt(u.group.c)),u=null;else if(t>=u.start){const e=t-u.start;s=u.a+u.d*d(e/u.duration),p(s,1-s)}return!(!u&&!a)}))}return{run(e){Zt(o)?tr().then(()=>{o=o(),d(e)}):d(e)},end(){l(),u=a=null}}}const fr="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function mr(e,t){ir(e,1,1,()=>{t.delete(e.key)})}function $r(e,t){const n={},r={},o={$$scope:1};let s=e.length;for(;s--;){const u=e[s],a=t[s];if(a){for(const e in u)e in a||(r[e]=1);for(const e in a)o[e]||(n[e]=a[e],o[e]=1);e[s]=a}else for(const e in u)o[e]=1}for(const e in r)e in n||(n[e]=void 0);return n}function gr(e){return"object"==typeof e&&null!==e?e:{}}function Dr(e,t,n){const r=e.$$.props[t];void 0!==r&&(e.$$.bound[r]=n,n(e.$$.ctx[r]))}function yr(e){e&&e.c()}function hr(e,t,n){const{fragment:r,on_mount:o,on_destroy:s,after_update:u}=e.$$;r&&r.m(t,n),Jn(()=>{const t=o.map(Jt).filter(Zt);s?s.push(...t):Yt(t),e.$$.on_mount=[]}),u.forEach(Jn)}function Cr(e,t){const n=e.$$;null!==n.fragment&&(Yt(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function br(e,t){-1===e.$$.dirty[0]&&(zn.push(e),Vn||(Vn=!0,qn.then(Xn)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const s=r.length?r[0]:n;return l.ctx&&o(l.ctx[t],l.ctx[t]=s)&&(!l.skip_bound&&l.bound[t]&&l.bound[t](s),c&&br(e,t)),n}):[],l.update(),c=!0,Yt(l.before_update),l.fragment=!!r&&r(l.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);l.fragment&&l.fragment.l(e),e.forEach($n)}else l.fragment&&l.fragment.c();t.intro&&ar(e.$$.fragment),hr(e,t.target,t.anchor),Xn()}Rn(a)}class vr{$destroy(){Cr(this,1),this.$destroy=Ht}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Ar={set:(e,t,n)=>!1,isExtensible:e=>!1,setPrototypeOf:(e,t)=>!1,deleteProperty:(e,t)=>!1};const Fr=HandledPromise,wr=function(e){function t(t){const n=function(e,t){return harden({...Ar,get:(n,r,o)=>(...n)=>harden(t.applyMethod(e,r,n)),apply:(n,r,o=[])=>harden(t.applyFunction(e,o)),has:(e,t)=>!0})}(t,e);return harden(new Proxy(()=>{},n))}return t.G=t=>new Proxy(Object.create(null),{...Ar,has:(e,t)=>!0,get:(n,r)=>harden(e.get(t,r))}),t.resolve=e.resolve,t.sendOnly=t=>{const n=function(e,t){return harden({...Ar,get:(n,r,o)=>(...n)=>{t.applyMethod(e,r,n)},apply(n,r,o=[]){t.applyFunction(e,o)},has:(e,t)=>!0})}(t,e);return harden(new Proxy(()=>{},n))},t.when=(t,n,r)=>{const[o,s]=jt([n,r]);return e.resolve(t).then(o,s)},harden(t)}(HandledPromise);function xr(e){let t,n,r,o,s,u;const a=e[7].default,i=en(a,e,e[6],null);return{c(){t=Dn("i"),i&&i.c(),An(t,"aria-hidden","true"),An(t,"class",n="material-icons icon text-xl "+e[5].class+" duration-200 ease-in svelte-zzky5a"),An(t,"style",r=e[4]?"color: "+e[4]:""),Sn(t,"reverse",e[2]),Sn(t,"tip",e[3]),Sn(t,"text-base",e[0]),Sn(t,"text-xs",e[1])},m(n,r){mn(n,t,r),i&&i.m(t,null),o=!0,s||(u=En(t,"click",e[8]),s=!0)},p(e,[s]){i&&i.p&&64&s&&nn(i,a,e,e[6],s,null,null),(!o||32&s&&n!==(n="material-icons icon text-xl "+e[5].class+" duration-200 ease-in svelte-zzky5a"))&&An(t,"class",n),(!o||16&s&&r!==(r=e[4]?"color: "+e[4]:""))&&An(t,"style",r),36&s&&Sn(t,"reverse",e[2]),40&s&&Sn(t,"tip",e[3]),33&s&&Sn(t,"text-base",e[0]),34&s&&Sn(t,"text-xs",e[1])},i(e){o||(ar(i,e),o=!0)},o(e){ir(i,e),o=!1},d(e){e&&$n(t),i&&i.d(e),s=!1,u()}}}function Br(e,t,n){let{small:r=!1}=t,{xs:o=!1}=t,{reverse:s=!1}=t,{tip:u=!1}=t,{color:a="default"}=t,{$$slots:i={},$$scope:l}=t;return e.$$set=e=>{n(5,t=Vt(Vt({},t),rn(e))),"small"in e&&n(0,r=e.small),"xs"in e&&n(1,o=e.xs),"reverse"in e&&n(2,s=e.reverse),"tip"in e&&n(3,u=e.tip),"color"in e&&n(4,a=e.color),"$$scope"in e&&n(6,l=e.$$scope)},t=rn(t),[r,o,s,u,a,t,l,i,function(t){Ln(e,t)}]}class Pr extends vr{constructor(e){super(),Er(this,e,Br,xr,Xt,{small:0,xs:1,reverse:2,tip:3,color:4})}}const Sr=["white","black","transparent"];function kr(e,t,n,r){return Sr.includes(t)?`${e}-${t}`:`${e}-${t}-${n||r} `}function Ir(e,t=500){return{bg:n=>kr("bg",e,n,t),border:n=>kr("border",e,n,t),txt:n=>kr("text",e,n,t),caret:n=>kr("caret",e,n,t)}}class Tr{constructor(e,t){this.defaults=("function"==typeof e?e(t):e)||t,this.classes=this.defaults}flush(){return this.classes=this.defaults,this}extend(...e){return this}get(){return this.classes}replace(e,t=!0){return t&&e&&(this.classes=Object.keys(e).reduce((t,n)=>t.replace(new RegExp(n,"g"),e[n]),this.classes)),this}remove(e,t=!0){return t&&e&&(this.classes=e.split(" ").reduce((e,t)=>e.replace(new RegExp(t,"g"),""),this.classes)),this}add(e,t=!0,n){if(!t||!e)return this;switch(typeof e){case"string":default:return this.classes+=` ${e} `,this;case"function":return this.classes+=` ${e(n||this.classes)} `,this}}}const Nr=["class","add","remove","replace","value"];function Or(e,t){const n=[...e,...Nr];return Object.keys(t).reduce((e,r)=>r.includes("$$")||r.includes("Class")||n.includes(r)?e:{...e,[r]:t[r]},{})}function _r(e="primary",t=!1){return function(n){const r=function(e,t){return function(n){const r=n.currentTarget,o=document.createElement("span"),s=Math.max(r.clientWidth,r.clientHeight),u=()=>{o.remove(),o.removeEventListener("animationend",u)};o.addEventListener("animationend",u),o.style.width=o.style.height=s+"px";const a=r.getBoundingClientRect();t?o.classList.add("absolute","top-0","left-0","ripple-centered",`bg-${e}-transDark`):(o.style.left=n.clientX-a.left-s/2+"px",o.style.top=n.clientY-a.top-s/2+"px",o.classList.add("ripple-normal",`bg-${e}-trans`)),o.classList.add("ripple"),r.appendChild(o)}}(e,t);return n.addEventListener("mousedown",r),{onDestroy:()=>n.removeEventListener("mousedown",r)}}}function Rr(e){let t,n,r,o,s,u,a=e[3]&&Mr(e);const i=e[29].default,l=en(i,e,e[38],null);let c=[{class:e[1]},e[8],{disabled:e[2]}],d={};for(let e=0;e{a=null}),ur()),l&&l.p&&128&r[1]&&nn(l,i,e,e[38],r,null,null),Fn(t,d=$r(c,[(!o||2&r[0])&&{class:e[1]},e[8],(!o||4&r[0])&&{disabled:e[2]}]))},i(e){o||(ar(a),ar(l,e),o=!0)},o(e){ir(a),ir(l,e),o=!1},d(e){e&&$n(t),a&&a.d(),l&&l.d(e),s=!1,Yt(u)}}}function jr(e){let t,n,r,o,s,u,a,i=e[3]&&Lr(e);const l=e[29].default,c=en(l,e,e[38],null);let d=[{class:e[1]},e[8],{disabled:e[2]}],p={};for(let e=0;e{i=null}),ur()),c&&c.p&&128&o[1]&&nn(c,l,e,e[38],o,null,null),Fn(n,p=$r(d,[(!s||2&o[0])&&{class:e[1]},e[8],(!s||4&o[0])&&{disabled:e[2]}])),Fn(t,m=$r(f,[(!s||32&o[0])&&{href:e[5]},e[8]]))},i(e){s||(ar(i),ar(c,e),s=!0)},o(e){ir(i),ir(c,e),s=!1},d(e){e&&$n(t),i&&i.d(),c&&c.d(e),u=!1,Yt(a)}}}function Mr(e){let t,n;return t=new Pr({props:{class:e[6],small:e[4],$$slots:{default:[Ur]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};64&n[0]&&(r.class=e[6]),16&n[0]&&(r.small=e[4]),8&n[0]|128&n[1]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Ur(e){let t;return{c(){t=hn(e[3])},m(e,n){mn(e,t,n)},p(e,n){8&n[0]&&xn(t,e[3])},d(e){e&&$n(t)}}}function Lr(e){let t,n;return t=new Pr({props:{class:e[6],small:e[4],$$slots:{default:[zr]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};64&n[0]&&(r.class=e[6]),16&n[0]&&(r.small=e[4]),8&n[0]|128&n[1]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function zr(e){let t;return{c(){t=hn(e[3])},m(e,n){mn(e,t,n)},p(e,n){8&n[0]&&xn(t,e[3])},d(e){e&&$n(t)}}}function Gr(e){let t,n,r,o;const s=[jr,Rr],u=[];function a(e,t){return e[5]?0:1}return t=a(e),n=u[t]=s[t](e),{c(){n.c(),r=bn()},m(e,n){u[t].m(e,n),mn(e,r,n),o=!0},p(e,o){let i=t;t=a(e),t===i?u[t].p(e,o):(sr(),ir(u[i],1,1,()=>{u[i]=null}),ur(),n=u[t],n||(n=u[t]=s[t](e),n.c()),ar(n,1),n.m(r.parentNode,r))},i(e){o||(ar(n),o=!0)},o(e){ir(n),o=!1},d(e){u[t].d(e),e&&$n(r)}}}const Wr="py-2 px-4 uppercase text-sm font-medium relative overflow-hidden",Hr="text-white duration-200 ease-in",qr="bg-transparent border border-solid",Vr="bg-transparent border-none px-4 hover:bg-transparent",Jr="p-4 flex items-center select-none",Kr="hover:bg-transparent",Yr="pt-1 pb-1 pl-2 pr-2 text-xs",Zr="bg-gray-300 text-gray-500 dark:bg-dark-400 elevation-none pointer-events-none hover:bg-gray-300 cursor-default",Xr="hover:elevation-5 elevation-3";function Qr(e,t,n){let{value:r=!1}=t,{outlined:o=!1}=t,{text:s=!1}=t,{block:u=!1}=t,{disabled:a=!1}=t,{icon:i=null}=t,{small:l=!1}=t,{light:c=!1}=t,{dark:d=!1}=t,{flat:p=!1}=t,{iconClass:f=""}=t,{color:m="primary"}=t,{href:$=null}=t,{fab:g=!1}=t,{remove:D=""}=t,{add:y=""}=t,{replace:h={}}=t,{classes:C=Wr}=t,{basicClasses:b=Hr}=t,{outlinedClasses:E=qr}=t,{textClasses:v=Vr}=t,{iconClasses:A=Jr}=t,{fabClasses:F=Kr}=t,{smallClasses:w=Yr}=t,{disabledClasses:x=Zr}=t,{elevationClasses:B=Xr}=t;g=g||s&&i;const P=!o&&!s&&!g,S=(P||i)&&!a&&!p&&!s;let k=e=>e,I=0;const{bg:T,border:N,txt:O}=Ir(m),_=new Tr(C,Wr);let R;i&&(R=new Tr(f));const j=_r(s||g||o?m:"white"),M=Or(["outlined","text","color","block","disabled","icon","small","light","dark","flat","add","remove","replace"],t);let{$$slots:U={},$$scope:L}=t;let z,G;return e.$$set=e=>{n(50,t=Vt(Vt({},t),rn(e))),"value"in e&&n(0,r=e.value),"outlined"in e&&n(10,o=e.outlined),"text"in e&&n(11,s=e.text),"block"in e&&n(12,u=e.block),"disabled"in e&&n(2,a=e.disabled),"icon"in e&&n(3,i=e.icon),"small"in e&&n(4,l=e.small),"light"in e&&n(13,c=e.light),"dark"in e&&n(14,d=e.dark),"flat"in e&&n(15,p=e.flat),"iconClass"in e&&n(16,f=e.iconClass),"color"in e&&n(17,m=e.color),"href"in e&&n(5,$=e.href),"fab"in e&&n(9,g=e.fab),"remove"in e&&n(18,D=e.remove),"add"in e&&n(19,y=e.add),"replace"in e&&n(20,h=e.replace),"classes"in e&&n(1,C=e.classes),"basicClasses"in e&&n(21,b=e.basicClasses),"outlinedClasses"in e&&n(22,E=e.outlinedClasses),"textClasses"in e&&n(23,v=e.textClasses),"iconClasses"in e&&n(24,A=e.iconClasses),"fabClasses"in e&&n(25,F=e.fabClasses),"smallClasses"in e&&n(26,w=e.smallClasses),"disabledClasses"in e&&n(27,x=e.disabledClasses),"elevationClasses"in e&&n(28,B=e.elevationClasses),"$$scope"in e&&n(38,L=e.$$scope)},e.$$.update=()=>{24576&e.$$.dirty[0]|256&e.$$.dirty[1]&&(n(39,I=c?200:0),n(39,I=d?-400:I)),256&e.$$.dirty[1]&&n(41,z=500-I),256&e.$$.dirty[1]&&n(42,G=400-I),n(1,C=_.flush().add(b,P,Hr).add(`${T(z)} hover:${T(G)}`,P).add(B,S,Xr).add(E,o,qr).add(`${N(G)} ${O(z)} hover:${T("trans")} dark-hover:${T("transDark")}`,o).add(""+O(G),s).add(v,s,Vr).add(A,i,Jr).remove("py-2",i).remove(O(G),g).add(x,a,Zr).add(w,l,Yr).add("flex items-center justify-center h-8 w-8",l&&i).add("border-solid",o).add("rounded-full",i).add("w-full",u).add("rounded",P||o||s).add("button",!i).add(F,g,Kr).add("hover:"+T("transLight"),g).add(t.class).remove(D).replace(h).add(y).get()),66048&e.$$.dirty[0]|512&e.$$.dirty[1]&&R&&n(6,k=R.flush().add(O(),g&&!f).get())},t=rn(t),[r,C,a,i,l,$,k,j,M,g,o,s,u,c,d,p,f,m,D,y,h,b,E,v,A,F,w,x,B,U,function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},()=>n(0,r=!r),()=>n(0,r=!r),L]}class eo extends vr{constructor(e){super(),Er(this,e,Qr,Gr,Xt,{value:0,outlined:10,text:11,block:12,disabled:2,icon:3,small:4,light:13,dark:14,flat:15,iconClass:16,color:17,href:5,fab:9,remove:18,add:19,replace:20,classes:1,basicClasses:21,outlinedClasses:22,textClasses:23,iconClasses:24,fabClasses:25,smallClasses:26,disabledClasses:27,elevationClasses:28},[-1,-1])}}function to(e){const t=e-1;return t*t*t+1}function no(e){return e*e}function ro(e){return-e*(e-2)}function oo(e,{delay:t=0,duration:n=400,easing:r=qt}){const o=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:r,css:e=>"opacity: "+e*o}}function so(e,{delay:t=0,duration:n=400,easing:r=to,x:o=0,y:s=0,opacity:u=0}){const a=getComputedStyle(e),i=+a.opacity,l="none"===a.transform?"":a.transform,c=i*(1-u);return{delay:t,duration:n,easing:r,css:(e,t)=>`\n\t\t\ttransform: ${l} translate(${(1-e)*o}px, ${(1-e)*s}px);\n\t\t\topacity: ${i-c*t}`}}function uo(e,{delay:t=0,duration:n=400,easing:r=to}){const o=getComputedStyle(e),s=+o.opacity,u=parseFloat(o.height),a=parseFloat(o.paddingTop),i=parseFloat(o.paddingBottom),l=parseFloat(o.marginTop),c=parseFloat(o.marginBottom),d=parseFloat(o.borderTopWidth),p=parseFloat(o.borderBottomWidth);return{delay:t,duration:n,easing:r,css:e=>`overflow: hidden;opacity: ${Math.min(20*e,1)*s};height: ${e*u}px;padding-top: ${e*a}px;padding-bottom: ${e*i}px;margin-top: ${e*l}px;margin-bottom: ${e*c}px;border-top-width: ${e*d}px;border-bottom-width: ${e*p}px;`}}function ao(e,{delay:t=0,duration:n=400,easing:r=to,start:o=0,opacity:s=0}){const u=getComputedStyle(e),a=+u.opacity,i="none"===u.transform?"":u.transform,l=1-o,c=a*(1-s);return{delay:t,duration:n,easing:r,css:(e,t)=>`\n\t\t\ttransform: ${i} scale(${1-l*t});\n\t\t\topacity: ${a-c*t}\n\t\t`}}function io(e){let t,n;return t=new Pr({props:{class:"pr-6",small:e[3],$$slots:{default:[lo]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};8&n&&(r.small=e[3]),4194305&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function lo(e){let t;return{c(){t=hn(e[0])},m(e,n){mn(e,t,n)},p(e,n){1&n&&xn(t,e[0])},d(e){e&&$n(t)}}}function co(e){let t,n;return{c(){t=Dn("div"),n=hn(e[2]),An(t,"class",e[5])},m(e,r){mn(e,t,r),fn(t,n)},p(e,r){4&r&&xn(n,e[2]),32&r&&An(t,"class",e[5])},d(e){e&&$n(t)}}}function po(e){let t,n,r,o,s,u,a,i,l,c,d=e[0]&&io(e);const p=e[20].default,f=en(p,e,e[22],null),m=f||function(e){let t;return{c(){t=hn(e[1])},m(e,n){mn(e,t,n)},p(e,n){2&n&&xn(t,e[1])},d(e){e&&$n(t)}}}(e);let $=e[2]&&co(e);return{c(){t=Dn("li"),d&&d.c(),n=Cn(),r=Dn("div"),o=Dn("div"),m&&m.c(),u=Cn(),$&&$.c(),An(o,"class",s=e[9].class),An(r,"class","flex flex-col p-0"),An(t,"class",e[6]),An(t,"tabindex",e[4])},m(s,p){mn(s,t,p),d&&d.m(t,null),fn(t,n),fn(t,r),fn(r,o),m&&m.m(o,null),fn(r,u),$&&$.m(r,null),i=!0,l||(c=[sn(a=e[7].call(null,t)),En(t,"keypress",e[8]),En(t,"click",e[8]),En(t,"click",e[21])],l=!0)},p(e,[u]){e[0]?d?(d.p(e,u),1&u&&ar(d,1)):(d=io(e),d.c(),ar(d,1),d.m(t,n)):d&&(sr(),ir(d,1,1,()=>{d=null}),ur()),f?f.p&&4194304&u&&nn(f,p,e,e[22],u,null,null):m&&m.p&&2&u&&m.p(e,u),(!i||512&u&&s!==(s=e[9].class))&&An(o,"class",s),e[2]?$?$.p(e,u):($=co(e),$.c(),$.m(r,null)):$&&($.d(1),$=null),(!i||64&u)&&An(t,"class",e[6]),(!i||16&u)&&An(t,"tabindex",e[4])},i(e){i||(ar(d),ar(m,e),i=!0)},o(e){ir(d),ir(m,e),i=!1},d(e){e&&$n(t),d&&d.d(),m&&m.d(e),$&&$.d(),l=!1,Yt(c)}}}const fo="focus:bg-gray-50 dark-focus:bg-gray-700 hover:bg-gray-transDark relative overflow-hidden duration-100 p-4 cursor-pointer text-gray-700 dark:text-gray-100 flex items-center z-10",mo="bg-gray-200 dark:bg-primary-transLight",$o="text-gray-600 p-0 text-sm";function go(e,t,n){let{icon:r=""}=t,{id:o=""}=t,{value:s=""}=t,{text:u=""}=t,{subheading:a=""}=t,{disabled:i=!1}=t,{dense:l=!1}=t,{selected:c=!1}=t,{tabindex:d=null}=t,{selectedClasses:p=mo}=t,{subheadingClasses:f=$o}=t,{to:m=""}=t;const $=_r(),g=Un();let{classes:D=fo}=t;const y=new Tr(D,fo);let h,{$$slots:C={},$$scope:b}=t;return e.$$set=e=>{n(9,t=Vt(Vt({},t),rn(e))),"icon"in e&&n(0,r=e.icon),"id"in e&&n(11,o=e.id),"value"in e&&n(10,s=e.value),"text"in e&&n(1,u=e.text),"subheading"in e&&n(2,a=e.subheading),"disabled"in e&&n(12,i=e.disabled),"dense"in e&&n(3,l=e.dense),"selected"in e&&n(13,c=e.selected),"tabindex"in e&&n(4,d=e.tabindex),"selectedClasses"in e&&n(14,p=e.selectedClasses),"subheadingClasses"in e&&n(5,f=e.subheadingClasses),"to"in e&&n(15,m=e.to),"classes"in e&&n(19,D=e.classes),"$$scope"in e&&n(22,b=e.$$scope)},e.$$.update=()=>{n(6,h=y.flush().add(p,c,mo).add("py-2",l).add("text-gray-600",i).add(t.class).get())},t=rn(t),[r,u,a,l,d,f,h,$,function(){i||(n(10,s=o),g("change",o,m))},t,s,o,i,c,p,m,null,[],null,D,C,function(t){Ln(e,t)},b]}class Do extends vr{constructor(e){super(),Er(this,e,go,po,Xt,{icon:0,id:11,value:10,text:1,subheading:2,disabled:12,dense:3,selected:13,tabindex:4,selectedClasses:14,subheadingClasses:5,to:15,item:16,items:17,level:18,classes:19})}get item(){return this.$$.ctx[16]}get items(){return this.$$.ctx[17]}get level(){return this.$$.ctx[18]}}const yo=e=>({item:2&e,dense:4&e,value:1&e}),ho=e=>({item:e[6],dense:e[2],value:e[0]}),Co=e=>({item:2&e,dense:4&e,value:1&e}),bo=e=>({item:e[6],dense:e[2],value:e[0]});function Eo(e,t,n){const r=e.slice();return r[6]=t[n],r[22]=n,r}function vo(e){let t;const n=e[12].item,r=en(n,e,e[18],ho),o=r||function(e){let t,n,r,o;const s=[{selectedClasses:e[4]},{itemClasses:e[5]},e[6],{tabindex:e[22]+1},{id:So(e[6])},{selected:e[0]===So(e[6])},{dense:e[2]}];function u(t){e[15].call(null,t)}let a={$$slots:{default:[Fo]},$$scope:{ctx:e}};for(let e=0;eDr(t,"value",u)),t.$on("change",e[16]),t.$on("click",e[17]),{c(){yr(t.$$.fragment),r=Cn()},m(e,n){hr(t,e,n),mn(e,r,n),o=!0},p(e,r){const o=55&r?$r(s,[16&r&&{selectedClasses:e[4]},32&r&&{itemClasses:e[5]},2&r&&gr(e[6]),s[3],2&r&&{id:So(e[6])},3&r&&{selected:e[0]===So(e[6])},4&r&&{dense:e[2]}]):{};262146&r&&(o.$$scope={dirty:r,ctx:e}),!n&&1&r&&(n=!0,o.value=e[0],Kn(()=>n=!1)),t.$set(o)},i(e){o||(ar(t.$$.fragment,e),o=!0)},o(e){ir(t.$$.fragment,e),o=!1},d(e){Cr(t,e),e&&$n(r)}}}(e);return{c(){o&&o.c()},m(e,n){o&&o.m(e,n),t=!0},p(e,t){r?r.p&&262151&t&&nn(r,n,e,e[18],t,yo,ho):o&&o.p&&7&t&&o.p(e,t)},i(e){t||(ar(o,e),t=!0)},o(e){ir(o,e),t=!1},d(e){o&&o.d(e)}}}function Ao(e){let t;const n=e[12].item,r=en(n,e,e[18],bo),o=r||function(e){let t,n,r,o,s,u,a;const i=[e[6],{id:So(e[6])},{dense:e[2]}];function l(t){e[13].call(null,t)}let c={$$slots:{default:[wo]},$$scope:{ctx:e}};for(let e=0;eDr(n,"value",l)),n.$on("change",e[14]),{c(){t=Dn("a"),yr(n.$$.fragment),u=Cn(),An(t,"tabindex",o=e[22]+1),An(t,"href",s=e[6].to)},m(e,r){mn(e,t,r),hr(n,t,null),mn(e,u,r),a=!0},p(e,o){const u=6&o?$r(i,[2&o&&gr(e[6]),2&o&&{id:So(e[6])},4&o&&{dense:e[2]}]):{};262146&o&&(u.$$scope={dirty:o,ctx:e}),!r&&1&o&&(r=!0,u.value=e[0],Kn(()=>r=!1)),n.$set(u),(!a||2&o&&s!==(s=e[6].to))&&An(t,"href",s)},i(e){a||(ar(n.$$.fragment,e),a=!0)},o(e){ir(n.$$.fragment,e),a=!1},d(e){e&&$n(t),Cr(n),e&&$n(u)}}}(e);return{c(){o&&o.c()},m(e,n){o&&o.m(e,n),t=!0},p(e,t){r?r.p&&262151&t&&nn(r,n,e,e[18],t,Co,bo):o&&o.p&&7&t&&o.p(e,t)},i(e){t||(ar(o,e),t=!0)},o(e){ir(o,e),t=!1},d(e){o&&o.d(e)}}}function Fo(e){let t,n=ko(e[6])+"";return{c(){t=hn(n)},m(e,n){mn(e,t,n)},p(e,r){2&r&&n!==(n=ko(e[6])+"")&&xn(t,n)},d(e){e&&$n(t)}}}function wo(e){let t,n=e[6].text+"";return{c(){t=hn(n)},m(e,n){mn(e,t,n)},p(e,r){2&r&&n!==(n=e[6].text+"")&&xn(t,n)},d(e){e&&$n(t)}}}function xo(e){let t,n,r,o;const s=[Ao,vo],u=[];function a(e,t){return void 0!==e[6].to?0:1}return t=a(e),n=u[t]=s[t](e),{c(){n.c(),r=bn()},m(e,n){u[t].m(e,n),mn(e,r,n),o=!0},p(e,o){let i=t;t=a(e),t===i?u[t].p(e,o):(sr(),ir(u[i],1,1,()=>{u[i]=null}),ur(),n=u[t],n||(n=u[t]=s[t](e),n.c()),ar(n,1),n.m(r.parentNode,r))},i(e){o||(ar(n),o=!0)},o(e){ir(n),o=!1},d(e){u[t].d(e),e&&$n(r)}}}function Bo(e){let t,n,r=e[1],o=[];for(let t=0;tir(o[e],1,1,()=>{o[e]=null});return{c(){t=Dn("ul");for(let e=0;e{n(20,t=Vt(Vt({},t),rn(e))),"items"in e&&n(1,r=e.items),"value"in e&&n(0,o=e.value),"dense"in e&&n(2,s=e.dense),"select"in e&&n(3,u=e.select),"classes"in e&&n(11,a=e.classes),"$$scope"in e&&n(18,d=e.$$scope)},e.$$.update=()=>{n(7,l=i.flush().add(a,!0,Po).add(t.class).get())},t=rn(t),[o,r,s,u,e=>e,e=>e,{},l,null,"",null,a,c,function(e){o=e,n(0,o)},function(t){Ln(e,t)},function(e){o=e,n(0,o)},function(t){Ln(e,t)},function(t){Ln(e,t)},d]}class To extends vr{constructor(e){super(),Er(this,e,Io,Bo,Xt,{items:1,value:0,dense:2,select:3,level:8,text:9,item:6,to:10,selectedClasses:4,itemClasses:5,classes:11})}get level(){return this.$$.ctx[8]}get text(){return this.$$.ctx[9]}get item(){return this.$$.ctx[6]}get to(){return this.$$.ctx[10]}get selectedClasses(){return this.$$.ctx[4]}get itemClasses(){return this.$$.ctx[5]}}const No=e=>({}),Oo=e=>({}),_o=e=>({}),Ro=e=>({}),jo=e=>({}),Mo=e=>({}),Uo=e=>({}),Lo=e=>({});function zo(e){let t,n,r,o,s,u;const a=e[6].title,i=en(a,e,e[5],Lo),l=e[6].media,c=en(l,e,e[5],Mo),d=e[6].default,p=en(d,e,e[5],null),f=e[6].text,m=en(f,e,e[5],Ro),$=e[6].actions,g=en($,e,e[5],Oo);return{c(){t=Dn("div"),i&&i.c(),n=Cn(),c&&c.c(),r=Cn(),p&&p.c(),o=Cn(),m&&m.c(),s=Cn(),g&&g.c(),An(t,"class",e[0])},m(e,a){mn(e,t,a),i&&i.m(t,null),fn(t,n),c&&c.m(t,null),fn(t,r),p&&p.m(t,null),fn(t,o),m&&m.m(t,null),fn(t,s),g&&g.m(t,null),u=!0},p(e,[n]){i&&i.p&&32&n&&nn(i,a,e,e[5],n,Uo,Lo),c&&c.p&&32&n&&nn(c,l,e,e[5],n,jo,Mo),p&&p.p&&32&n&&nn(p,d,e,e[5],n,null,null),m&&m.p&&32&n&&nn(m,f,e,e[5],n,_o,Ro),g&&g.p&&32&n&&nn(g,$,e,e[5],n,No,Oo),(!u||1&n)&&An(t,"class",e[0])},i(e){u||(ar(i,e),ar(c,e),ar(p,e),ar(m,e),ar(g,e),u=!0)},o(e){ir(i,e),ir(c,e),ir(p,e),ir(m,e),ir(g,e),u=!1},d(e){e&&$n(t),i&&i.d(e),c&&c.d(e),p&&p.d(e),m&&m.d(e),g&&g.d(e)}}}const Go="rounded inline-flex flex-col overflow-hidden duration-200 ease-in";function Wo(e,t,n){let{hover:r=!0}=t,{elevation:o=1}=t,{hoverElevation:s=8}=t,{classes:u=Go}=t;const a=new Tr(u,Go);let i,{$$slots:l={},$$scope:c}=t;return e.$$set=e=>{n(8,t=Vt(Vt({},t),rn(e))),"hover"in e&&n(1,r=e.hover),"elevation"in e&&n(2,o=e.elevation),"hoverElevation"in e&&n(3,s=e.hoverElevation),"classes"in e&&n(4,u=e.classes),"$$scope"in e&&n(5,c=e.$$scope)},e.$$.update=()=>{n(0,i=a.flush().add(`elevation-${o} hover:elevation-${s}`,r).add(u,!0,Go).add(t.class).get())},t=rn(t),[i,r,o,s,u,c,l]}function Ho(e){let t,n,r,o,s,u,a,i,l,c,d;return{c(){t=Dn("div"),n=Dn("div"),r=Dn("img"),s=Cn(),u=Dn("div"),a=Dn("div"),i=hn(e[0]),l=Cn(),c=Dn("div"),d=hn(e[1]),An(r,"class","rounded-full"),An(r,"width","44"),An(r,"height","44"),r.src!==(o=e[2])&&An(r,"src",o),An(r,"alt","avatar"),Sn(r,"hidden",!e[2]),An(a,"class","font-medium text-lg"),Sn(a,"hidden",!e[0]),An(c,"class","text-sm text-gray-600 pt-0"),Sn(c,"hidden",!e[1]),An(u,"class","pl-4 py-2"),An(t,"class",e[3])},m(e,o){mn(e,t,o),fn(t,n),fn(n,r),fn(t,s),fn(t,u),fn(u,a),fn(a,i),fn(u,l),fn(u,c),fn(c,d)},p(e,[n]){4&n&&r.src!==(o=e[2])&&An(r,"src",o),4&n&&Sn(r,"hidden",!e[2]),1&n&&xn(i,e[0]),1&n&&Sn(a,"hidden",!e[0]),2&n&&xn(d,e[1]),2&n&&Sn(c,"hidden",!e[1]),8&n&&An(t,"class",e[3])},i:Ht,o:Ht,d(e){e&&$n(t)}}}const qo="flex px-4 py-2 items-center";function Vo(e,t,n){let{title:r=""}=t,{subheader:o=""}=t,{avatar:s=""}=t,{classes:u=qo}=t;const a=new Tr(u,qo);let i;return e.$$set=e=>{n(7,t=Vt(Vt({},t),rn(e))),"title"in e&&n(0,r=e.title),"subheader"in e&&n(1,o=e.subheader),"avatar"in e&&n(2,s=e.avatar),"classes"in e&&n(5,u=e.classes)},e.$$.update=()=>{n(3,i=a.flush().add(u,!0,qo).add(t.class).get())},t=rn(t),[r,o,s,i,!0,u]}var Jo={Card:class extends vr{constructor(e){super(),Er(this,e,Wo,zo,Xt,{hover:1,elevation:2,hoverElevation:3,classes:4})}},Title:class extends vr{constructor(e){super(),Er(this,e,Vo,Ho,Xt,{hover:4,title:0,subheader:1,avatar:2,classes:5})}get hover(){return this.$$.ctx[4]}}};const Ko=e=>({}),Yo=e=>({}),Zo=e=>({item:1024&e}),Xo=e=>({item:e[10]}),Qo=e=>({item:1024&e}),es=e=>({item:e[10]}),ts=e=>({item:1024&e}),ns=e=>({item:e[10]}),rs=e=>({}),os=e=>({}),ss=e=>({}),us=e=>({});function as(e){let t,n;return t=new To({props:{items:e[0],$$slots:{item:[ps,({item:e})=>({10:e}),({item:e})=>e?1024:0]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.items=e[0]),1286&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function is(e){let t,n;const r=e[6].empty,o=en(r,e,e[8],os),s=o||function(e){let t;return{c(){t=hn("No items.")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}();return{c(){t=Dn("div"),s&&s.c(),An(t,"class","ml-8")},m(e,r){mn(e,t,r),s&&s.m(t,null),n=!0},p(e,t){o&&o.p&&256&t&&nn(o,r,e,e[8],t,rs,os)},i(e){n||(ar(s,e),n=!0)},o(e){ir(s,e),n=!1},d(e){e&&$n(t),s&&s.d(e)}}}function ls(e){let t;return{c(){t=hn(e[1])},m(e,n){mn(e,t,n)},p(e,n){2&n&&xn(t,e[1])},d(e){e&&$n(t)}}}function cs(e){let t,n,r,o;n=new Pr({props:{tip:e[2](e[10].id),$$slots:{default:[ls]},$$scope:{ctx:e}}});const s=e[6]["item-header"],u=en(s,e,e[8],ns),a=u||function(e){let t,n,r=e[10].text+"";return{c(){t=Dn("span"),n=hn(r)},m(e,r){mn(e,t,r),fn(t,n)},p(e,t){1024&t&&r!==(r=e[10].text+"")&&xn(n,r)},d(e){e&&$n(t)}}}(e);return{c(){t=Dn("div"),yr(n.$$.fragment),r=Cn(),a&&a.c(),An(t,"class","flex items-center")},m(e,s){mn(e,t,s),hr(n,t,null),fn(t,r),a&&a.m(t,null),o=!0},p(e,t){const r={};1028&t&&(r.tip=e[2](e[10].id)),258&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r),u?u.p&&1280&t&&nn(u,s,e,e[8],t,ts,ns):a&&a.p&&1024&t&&a.p(e,t)},i(e){o||(ar(n.$$.fragment,e),ar(a,e),o=!0)},o(e){ir(n.$$.fragment,e),ir(a,e),o=!1},d(e){e&&$n(t),Cr(n),a&&a.d(e)}}}function ds(e){let t,n,r;const o=e[6]["item-details"],s=en(o,e,e[8],Xo);return{c(){t=Dn("div"),s&&s.c(),An(t,"class","ml-10")},m(e,n){mn(e,t,n),s&&s.m(t,null),r=!0},p(e,t){s&&s.p&&1280&t&&nn(s,o,e,e[8],t,Zo,Xo)},i(e){r||(ar(s,e),n||Jn(()=>{n=cr(t,uo,{}),n.start()}),r=!0)},o(e){ir(s,e),r=!1},d(e){e&&$n(t),s&&s.d(e)}}}function ps(e){let t,n,r,o,s,u,a,i=e[2](e[10].id);const l=[{dense:!0},{selectedClasses:"bg-primary-trans"},{item:e[10]},e[10]];let c={$$slots:{default:[cs]},$$scope:{ctx:e}};for(let e=0;e{f=null}),ur())},i(e){a||(ar(r.$$.fragment,e),ar(p,e),ar(f),a=!0)},o(e){ir(r.$$.fragment,e),ir(p,e),ir(f),a=!1},d(e){e&&$n(t),Cr(r),p&&p.d(e),f&&f.d()}}}function fs(e){let t,n,r,o,s,u,a,i,l;const c=e[6].title,d=en(c,e,e[8],us),p=e[6].default,f=en(p,e,e[8],null),m=[is,as],$=[];function g(e,t){return 1&t&&(o=!(Array.isArray(e[0])&&0!==e[0].length)),o?0:1}s=g(e,-1),u=$[s]=m[s](e);const D=e[6].actions,y=en(D,e,e[8],Yo);return{c(){t=Dn("section"),d&&d.c(),n=Cn(),f&&f.c(),r=Cn(),u.c(),a=Cn(),i=Dn("div"),y&&y.c(),An(i,"class","actions svelte-h6khze"),An(t,"class","fullwidth px-2 py-2")},m(e,o){mn(e,t,o),d&&d.m(t,null),fn(t,n),f&&f.m(t,null),fn(t,r),$[s].m(t,null),fn(t,a),fn(t,i),y&&y.m(i,null),l=!0},p(e,[n]){d&&d.p&&256&n&&nn(d,c,e,e[8],n,ss,us),f&&f.p&&256&n&&nn(f,p,e,e[8],n,null,null);let r=s;s=g(e,n),s===r?$[s].p(e,n):(sr(),ir($[r],1,1,()=>{$[r]=null}),ur(),u=$[s],u||(u=$[s]=m[s](e),u.c()),ar(u,1),u.m(t,a)),y&&y.p&&256&n&&nn(y,D,e,e[8],n,Ko,Yo)},i(e){l||(ar(d,e),ar(f,e),ar(u),ar(y,e),l=!0)},o(e){ir(d,e),ir(f,e),ir(u),ir(y,e),l=!1},d(e){e&&$n(t),d&&d.d(e),f&&f.d(e),$[s].d(),y&&y.d(e)}}}function ms(e,t,n){let{items:r=[]}=t,{expandIcon:o="arrow_right"}=t,{expandDefault:s=!1}=t,{storeKey:u=""}=t,a=u?JSON.parse(localStorage.getItem("ListCard."+u)||"[]"):[];const i=e=>{a.includes(e)?n(9,a=a.filter(t=>e!==t)):n(9,a=[...a,e]),u&&localStorage.setItem("ListCard."+u,JSON.stringify(a))};let{$$slots:l={},$$scope:c}=t;let d;return e.$$set=e=>{"items"in e&&n(0,r=e.items),"expandIcon"in e&&n(1,o=e.expandIcon),"expandDefault"in e&&n(4,s=e.expandDefault),"storeKey"in e&&n(5,u=e.storeKey),"$$scope"in e&&n(8,c=e.$$scope)},e.$$.update=()=>{528&e.$$.dirty&&n(2,d=e=>a.includes(e)!==s)},[r,o,d,i,s,u,l,e=>i(e.id),c]}class $s extends vr{constructor(e){super(),Er(this,e,ms,fs,Xt,{items:0,expandIcon:1,expandDefault:4,storeKey:5})}}function gs(e){let t,n,r;const o=e[16].default,s=en(o,e,e[15],null);let u=[{class:n=e[0]+" "+e[2].class},e[1]],a={};for(let e=0;ee;const E=Or(["focused","error","outlined","labelOnTop","prepend","color","dense"],t);let{$$slots:v={},$$scope:A}=t;return e.$$set=e=>{n(2,t=Vt(Vt({},t),rn(e))),"focused"in e&&n(3,r=e.focused),"error"in e&&n(4,o=e.error),"outlined"in e&&n(5,s=e.outlined),"labelOnTop"in e&&n(6,u=e.labelOnTop),"prepend"in e&&n(7,a=e.prepend),"color"in e&&n(8,i=e.color),"bgColor"in e&&n(9,l=e.bgColor),"dense"in e&&n(10,c=e.dense),"add"in e&&n(11,p=e.add),"remove"in e&&n(12,f=e.remove),"replace"in e&&n(13,m=e.replace),"labelClasses"in e&&n(14,$=e.labelClasses),"$$scope"in e&&n(15,A=e.$$scope)},e.$$.update=()=>{16120&e.$$.dirty&&n(0,b=C.flush().add(y(),r&&!o).add("text-error-500",r&&o).add("label-top text-xs",u).add("text-xs",r).remove("pt-4 pb-2 px-4 px-1 pt-0",u&&s).add(`ml-3 p-1 pt-0 mt-0 bg-${l} dark:bg-dark-500`,u&&s).remove("px-4",a).add("pr-4 pl-10",a).remove("pt-4",c).add("pt-3",c).add(p).remove(f).replace(m).get())},t=rn(t),[b,E,t,r,o,s,u,a,i,l,c,p,f,m,$,A,v]}class ys extends vr{constructor(e){super(),Er(this,e,Ds,gs,Xt,{focused:3,error:4,outlined:5,labelOnTop:6,prepend:7,color:8,bgColor:9,dense:10,add:11,remove:12,replace:13,labelClasses:14})}}function hs(e){let t,n,r,o,s,u,a=(e[1]||"")+"",i=(e[0]||"")+"";return{c(){t=Dn("div"),n=hn(a),r=Cn(),o=hn(i),An(t,"class",e[3])},m(e,s){mn(e,t,s),fn(t,n),fn(t,r),fn(t,o),u=!0},p(e,[r]){(!u||2&r)&&a!==(a=(e[1]||"")+"")&&xn(n,a),(!u||1&r)&&i!==(i=(e[0]||"")+"")&&xn(o,i),(!u||8&r)&&An(t,"class",e[3])},i(n){u||(Jn(()=>{s||(s=pr(t,so,e[2],!0)),s.run(1)}),u=!0)},o(n){s||(s=pr(t,so,e[2],!1)),s.run(0),u=!1},d(e){e&&$n(t),e&&s&&s.end()}}}function Cs(e,t,n){let{error:r=!1}=t,{hint:o=""}=t,{add:s=""}=t,{remove:u=""}=t,{replace:a=""}=t,{transitionProps:i={y:-10,duration:100,easing:ro}}=t;const l=new Tr(t.class,"text-xs py-1 pl-4 absolute bottom-1 left-0");Or(["error","hint"],t);let c;return e.$$set=e=>{n(10,t=Vt(Vt({},t),rn(e))),"error"in e&&n(0,r=e.error),"hint"in e&&n(1,o=e.hint),"add"in e&&n(4,s=e.add),"remove"in e&&n(5,u=e.remove),"replace"in e&&n(6,a=e.replace),"transitionProps"in e&&n(2,i=e.transitionProps)},e.$$.update=()=>{115&e.$$.dirty&&n(3,c=l.flush().add("text-error-500",r).add("text-gray-600",o).add(s).remove(u).replace(a).get())},t=rn(t),[r,o,i,c,s,u,a]}class bs extends vr{constructor(e){super(),Er(this,e,Cs,hs,Xt,{error:0,hint:1,add:4,remove:5,replace:6,transitionProps:2})}}function Es(e){let t,n,r,o;return{c(){t=Dn("div"),n=Dn("div"),An(n,"class",r=on(e[2])+" svelte-xd9zs6"),Pn(n,"height","2px"),Pn(n,"transition","width .2s ease"),An(t,"class",o="line absolute bottom-0 left-0 w-full bg-gray-600 "+e[3].class+" svelte-xd9zs6"),Sn(t,"hidden",e[0]||e[1])},m(e,r){mn(e,t,r),fn(t,n)},p(e,[s]){4&s&&r!==(r=on(e[2])+" svelte-xd9zs6")&&An(n,"class",r),8&s&&o!==(o="line absolute bottom-0 left-0 w-full bg-gray-600 "+e[3].class+" svelte-xd9zs6")&&An(t,"class",o),11&s&&Sn(t,"hidden",e[0]||e[1])},i:Ht,o:Ht,d(e){e&&$n(t)}}}function vs(e,t,n){let{noUnderline:r=!1}=t,{outlined:o=!1}=t,{focused:s=!1}=t,{error:u=!1}=t,{color:a="primary"}=t,i="mx-auto w-0",{add:l=""}=t,{remove:c=""}=t,{replace:d=""}=t,{lineClasses:p=i}=t;const{bg:f,border:m,txt:$,caret:g}=Ir(a),D=new Tr(p,i);Or(["focused","error","outlined","labelOnTop","prepend","bgcolor","color"],t);let y;return e.$$set=e=>{n(3,t=Vt(Vt({},t),rn(e))),"noUnderline"in e&&n(0,r=e.noUnderline),"outlined"in e&&n(1,o=e.outlined),"focused"in e&&n(4,s=e.focused),"error"in e&&n(5,u=e.error),"color"in e&&n(6,a=e.color),"add"in e&&n(7,l=e.add),"remove"in e&&n(8,c=e.remove),"replace"in e&&n(9,d=e.replace),"lineClasses"in e&&n(10,p=e.lineClasses)},e.$$.update=()=>{944&e.$$.dirty&&n(2,y=D.flush().add($(),s&&!u).add("bg-error-500",u).add("w-full",s||u).add(f(),s).add(l).remove(c).replace(d).get())},t=rn(t),[r,o,y,t,s,u,a,l,c,d,p]}class As extends vr{constructor(e){super(),Er(this,e,vs,Es,Xt,{noUnderline:0,outlined:1,focused:4,error:5,color:6,add:7,remove:8,replace:9,lineClasses:10})}}const Fs=e=>({}),ws=e=>({}),xs=e=>({}),Bs=e=>({}),Ps=e=>({}),Ss=e=>({});function ks(e){let t;const n=e[40].label,r=en(n,e,e[60],Ss),o=r||function(e){let t,n;return t=new ys({props:{labelOnTop:e[25],focused:e[1],error:e[6],outlined:e[2],prepend:e[8],color:e[17],bgColor:e[18],dense:e[12]&&!e[2],$$slots:{default:[Is]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};33554432&n[0]&&(r.labelOnTop=e[25]),2&n[0]&&(r.focused=e[1]),64&n[0]&&(r.error=e[6]),4&n[0]&&(r.outlined=e[2]),256&n[0]&&(r.prepend=e[8]),131072&n[0]&&(r.color=e[17]),262144&n[0]&&(r.bgColor=e[18]),4100&n[0]&&(r.dense=e[12]&&!e[2]),8&n[0]|536870912&n[1]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}(e);return{c(){o&&o.c()},m(e,n){o&&o.m(e,n),t=!0},p(e,t){r?r.p&&536870912&t[1]&&nn(r,n,e,e[60],t,Ps,Ss):o&&o.p&&33952078&t[0]&&o.p(e,t)},i(e){t||(ar(o,e),t=!0)},o(e){ir(o,e),t=!1},d(e){o&&o.d(e)}}}function Is(e){let t;return{c(){t=hn(e[3])},m(e,n){mn(e,t,n)},p(e,n){8&n[0]&&xn(t,e[3])},d(e){e&&$n(t)}}}function Ts(e){let t,n,r;return{c(){t=Dn("input"),t.readOnly=!0,An(t,"class",e[26]),t.disabled=e[20],t.value=e[0]},m(o,s){mn(o,t,s),n||(r=[En(t,"change",e[51]),En(t,"input",e[52]),En(t,"click",e[53]),En(t,"blur",e[54]),En(t,"focus",e[55])],n=!0)},p(e,n){67108864&n[0]&&An(t,"class",e[26]),1048576&n[0]&&(t.disabled=e[20]),1&n[0]&&t.value!==e[0]&&(t.value=e[0])},d(e){e&&$n(t),n=!1,Yt(r)}}}function Ns(e){let t,n,r,o,s=[{rows:e[10]},{"aria-label":e[3]},{class:e[26]},{disabled:e[20]},e[29],{placeholder:n=e[0]?"":e[4]}],u={};for(let e=0;e{l=null}),ur()),d===(d=c(e))&&p?p.p(e,a):(p&&p.d(1),p=d&&d(e),p&&(p.c(),p.m(t,r))),e[7]?f?(f.p(e,a),128&a[0]&&ar(f,1)):(f=_s(e),f.c(),ar(f,1),f.m(t,o)):f&&(sr(),ir(f,1,1,()=>{f=null}),ur()),e[8]?m?(m.p(e,a),256&a[0]&&ar(m,1)):(m=js(e),m.c(),ar(m,1),m.m(t,s)):m&&(sr(),ir(m,1,1,()=>{m=null}),ur());const g={};16384&a[0]&&(g.noUnderline=e[14]),4&a[0]&&(g.outlined=e[2]),2&a[0]&&(g.focused=e[1]),64&a[0]&&(g.error=e[6]),u.$set(g),e[24]?$?($.p(e,a),16777216&a[0]&&ar($,1)):($=Us(e),$.c(),ar($,1),$.m(t,null)):$&&(sr(),ir($,1,1,()=>{$=null}),ur()),(!i||2097152&a[0])&&An(t,"class",e[21])},i(e){i||(ar(l),ar(f),ar(m),ar(u.$$.fragment,e),ar($),i=!0)},o(e){ir(l),ir(f),ir(m),ir(u.$$.fragment,e),ir($),i=!1},d(e){e&&$n(t),l&&l.d(),p&&p.d(),f&&f.d(),m&&m.d(),Cr(u),$&&$.d()}}}const zs="mt-2 mb-6 relative text-gray-600 dark:text-gray-100",Gs="absolute right-0 top-0 pb-2 pr-4 pt-4 text-gray-700 z-10",Ws="absolute left-0 top-0 pb-2 pl-2 pt-4 text-xs text-gray-700 z-10";function Hs(e,t,n){let{outlined:r=!1}=t,{value:o=null}=t,{label:s=""}=t,{placeholder:u=""}=t,{hint:a=""}=t,{error:i=!1}=t,{append:l=""}=t,{prepend:c=""}=t,{persistentHint:d=!1}=t,{textarea:p=!1}=t,{rows:f=5}=t,{select:m=!1}=t,{dense:$=!1}=t,{autocomplete:g=!1}=t,{noUnderline:D=!1}=t,{appendReverse:y=!1}=t,{prependReverse:h=!1}=t,{color:C="primary"}=t,{bgColor:b="white"}=t,{iconClass:E=""}=t,{disabled:v=!1}=t;const A="duration-200 ease-in pb-2 pt-6 px-4 rounded-t text-black dark:text-gray-100 w-full";let{add:F=""}=t,{remove:w=""}=t,{replace:x=""}=t,{inputClasses:B=A}=t,{classes:P=zs}=t,{appendClasses:S=Gs}=t,{prependClasses:k=Ws}=t;const{bg:I,border:T,txt:N,caret:O}=Ir(C),_=new Tr(B,A),R=new Tr(P,zs),j=new Tr(S,Gs),M=new Tr(k,Ws);let{extend:U=(()=>{})}=t,{focused:L=!1}=t,z=e=>e,G=e=>e,W=e=>e;const H=Or(["outlined","label","placeholder","hint","error","append","prepend","persistentHint","textarea","rows","select","autocomplete","noUnderline","appendReverse","prependReverse","color","bgColor","disabled","replace","remove","small"],t),q=Un();let{$$slots:V={},$$scope:J}=t;let K,Y,Z;return e.$$set=e=>{n(69,t=Vt(Vt({},t),rn(e))),"outlined"in e&&n(2,r=e.outlined),"value"in e&&n(0,o=e.value),"label"in e&&n(3,s=e.label),"placeholder"in e&&n(4,u=e.placeholder),"hint"in e&&n(5,a=e.hint),"error"in e&&n(6,i=e.error),"append"in e&&n(7,l=e.append),"prepend"in e&&n(8,c=e.prepend),"persistentHint"in e&&n(31,d=e.persistentHint),"textarea"in e&&n(9,p=e.textarea),"rows"in e&&n(10,f=e.rows),"select"in e&&n(11,m=e.select),"dense"in e&&n(12,$=e.dense),"autocomplete"in e&&n(13,g=e.autocomplete),"noUnderline"in e&&n(14,D=e.noUnderline),"appendReverse"in e&&n(15,y=e.appendReverse),"prependReverse"in e&&n(16,h=e.prependReverse),"color"in e&&n(17,C=e.color),"bgColor"in e&&n(18,b=e.bgColor),"iconClass"in e&&n(19,E=e.iconClass),"disabled"in e&&n(20,v=e.disabled),"add"in e&&n(32,F=e.add),"remove"in e&&n(33,w=e.remove),"replace"in e&&n(34,x=e.replace),"inputClasses"in e&&n(35,B=e.inputClasses),"classes"in e&&n(36,P=e.classes),"appendClasses"in e&&n(37,S=e.appendClasses),"prependClasses"in e&&n(38,k=e.prependClasses),"extend"in e&&n(39,U=e.extend),"focused"in e&&n(1,L=e.focused),"$$scope"in e&&n(60,J=e.$$scope)},e.$$.update=()=>{98&e.$$.dirty[0]|1&e.$$.dirty[1]&&n(24,K=i||(d||L)&&a),19&e.$$.dirty[0]&&n(25,Y=u||L||o||0===o),n(26,Z=_.flush().remove("pt-6 pb-2",r).add("border rounded bg-transparent py-4 duration-200 ease-in",r).add("border-error-500 caret-error-500",i).remove(O(),i).add(O(),!i).add(T(),L&&!i).add("border-gray-600",!i&&!L).add("bg-gray-100 dark:bg-dark-600",!r).add("bg-gray-300 dark:bg-dark-200",L&&!r).remove("px-4",c).add("pr-4 pl-10",c).add(F).remove("pt-6 pb-2",$&&!r).add("pt-4 pb-1",$&&!r).remove("bg-gray-100",v).add("bg-gray-50",v).add("cursor-pointer",m&&!g).add(t.class).remove(w).replace(x).extend(U).get()),1062980&e.$$.dirty[0]&&n(21,z=R.flush().add("select",m||g).add("dense",$&&!r).remove("mb-6 mt-2",$&&!r).add("mb-4 mt-1",$).replace({"text-gray-600":"text-error-500"},i).add("text-gray-200",v).get())},n(22,G=j.flush().get()),n(23,W=M.flush().get()),t=rn(t),[o,L,r,s,u,a,i,l,c,p,f,m,$,g,D,y,h,C,b,E,v,z,G,W,K,Y,Z,N,function(){n(1,L=!L)},H,q,d,F,w,x,B,P,S,k,U,V,function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(){o=this.value,n(0,o)},function(){o=this.value,n(0,o)},()=>q("click-append"),()=>q("click-prepend"),J]}class qs extends vr{constructor(e){super(),Er(this,e,Hs,Ls,Xt,{outlined:2,value:0,label:3,placeholder:4,hint:5,error:6,append:7,prepend:8,persistentHint:31,textarea:9,rows:10,select:11,dense:12,autocomplete:13,noUnderline:14,appendReverse:15,prependReverse:16,color:17,bgColor:18,iconClass:19,disabled:20,add:32,remove:33,replace:34,inputClasses:35,classes:36,appendClasses:37,prependClasses:38,extend:39,focused:1},[-1,-1,-1])}}function Vs(e){let t,n,r,o,s,u;const a=e[6].default,i=en(a,e,e[5],null);return{c(){t=Dn("span"),i&&i.c(),An(t,"class",n="z-40 "+e[3].class+" p-2 rounded-full flex items-center justify-center top-0 left-0 "+(e[0]?"":e[2])+" svelte-1o8z87d")},m(n,a){mn(n,t,a),i&&i.m(t,null),o=!0,s||(u=sn(r=e[1].call(null,t)),s=!0)},p(e,[r]){i&&i.p&&32&r&&nn(i,a,e,e[5],r,null,null),(!o||13&r&&n!==(n="z-40 "+e[3].class+" p-2 rounded-full flex items-center justify-center top-0 left-0 "+(e[0]?"":e[2])+" svelte-1o8z87d"))&&An(t,"class",n)},i(e){o||(ar(i,e),o=!0)},o(e){ir(i,e),o=!1},d(e){e&&$n(t),i&&i.d(e),s=!1,u()}}}function Js(e,t,n){let r,o,{color:s="primary"}=t,{noHover:u=!1}=t,{$$slots:a={},$$scope:i}=t;return e.$$set=e=>{n(3,t=Vt(Vt({},t),rn(e))),"color"in e&&n(4,s=e.color),"noHover"in e&&n(0,u=e.noHover),"$$scope"in e&&n(5,i=e.$$scope)},e.$$.update=()=>{16&e.$$.dirty&&n(1,r=_r(s,!0)),16&e.$$.dirty&&n(2,o=`hover:bg-${s}-transLight`)},t=rn(t),[u,r,o,t,s,i,a]}class Ks extends vr{constructor(e){super(),Er(this,e,Js,Vs,Xt,{color:4,noHover:0})}}function Ys(e){let t,n;return{c(){t=Dn("div"),An(t,"class",e[6]),An(t,"style",n=e[0]?"left: 1.25rem":"")},m(e,n){mn(e,t,n)},p(e,r){64&r&&An(t,"class",e[6]),1&r&&n!==(n=e[0]?"left: 1.25rem":"")&&An(t,"style",n)},d(e){e&&$n(t)}}}function Zs(e){let t,n,r,o,s,u,a,i,l,c,d,p,f;return a=new Ks({props:{color:e[0]&&!e[3]?e[2]:"gray",noHover:!0,$$slots:{default:[Ys]},$$scope:{ctx:e}}}),{c(){t=Dn("div"),n=Dn("input"),r=Cn(),o=Dn("div"),s=Dn("div"),u=Cn(),yr(a.$$.fragment),i=Cn(),l=Dn("label"),c=hn(e[1]),An(n,"class","hidden"),An(n,"type","checkbox"),An(s,"class","w-full h-full absolute"),An(o,"class",e[5]),An(l,"aria-hidden","true"),An(l,"class",e[7]),An(t,"class",e[4])},m(m,$){mn(m,t,$),fn(t,n),Bn(n,e[0]),fn(t,r),fn(t,o),fn(o,s),fn(o,u),hr(a,o,null),fn(t,i),fn(t,l),fn(l,c),d=!0,p||(f=[En(n,"change",e[14]),En(n,"change",e[13]),En(t,"click",e[8])],p=!0)},p(e,[r]){1&r&&Bn(n,e[0]);const s={};13&r&&(s.color=e[0]&&!e[3]?e[2]:"gray"),2097217&r&&(s.$$scope={dirty:r,ctx:e}),a.$set(s),(!d||32&r)&&An(o,"class",e[5]),(!d||2&r)&&xn(c,e[1]),(!d||128&r)&&An(l,"class",e[7]),(!d||16&r)&&An(t,"class",e[4])},i(e){d||(ar(a.$$.fragment,e),d=!0)},o(e){ir(a.$$.fragment,e),d=!1},d(e){e&&$n(t),Cr(a),p=!1,Yt(f)}}}const Xs="relative w-10 h-auto z-0 rounded-full overflow-visible flex items-center justify-center",Qs="rounded-full p-2 w-5 h-5 absolute elevation-3 duration-100",eu="pl-2 cursor-pointer";function tu(e,t,n){const r="inline-flex items-center mb-2 cursor-pointer z-10";let{value:o=!1}=t,{label:s=""}=t,{color:u="primary"}=t,{disabled:a=!1}=t,{trackClasses:i=Xs}=t,{thumbClasses:l=Qs}=t,{labelClasses:c=eu}=t,{classes:d=r}=t;const p=new Tr(d,r),f=new Tr(i,Xs),m=new Tr(l,Qs),$=new Tr(c,eu);let g,D,y,h;return e.$$set=e=>{n(20,t=Vt(Vt({},t),rn(e))),"value"in e&&n(0,o=e.value),"label"in e&&n(1,s=e.label),"color"in e&&n(2,u=e.color),"disabled"in e&&n(3,a=e.disabled),"trackClasses"in e&&n(9,i=e.trackClasses),"thumbClasses"in e&&n(10,l=e.thumbClasses),"labelClasses"in e&&n(11,c=e.labelClasses),"classes"in e&&n(12,d=e.classes)},e.$$.update=()=>{n(4,g=p.flush().add(d,!0,r).add(t.class).get()),517&e.$$.dirty&&n(5,D=f.flush().add("bg-gray-700",!o).add(`bg-${u}-200`,o).add(i,!0,Xs).get()),1029&e.$$.dirty&&n(6,y=m.flush().add(l,!0,Qs).add("bg-white left-0",!o).add(`bg-${u}-400`,o).get()),2056&e.$$.dirty&&n(7,h=$.flush().add(c,!0,eu).add("text-gray-500",a).add("text-gray-700",!a).get())},t=rn(t),[o,s,u,a,g,D,y,h,function(){a||n(0,o=!o)},i,l,c,d,function(t){Ln(e,t)},function(){o=this.value,n(0,o)}]}class nu extends vr{constructor(e){super(),Er(this,e,tu,Zs,Xt,{value:0,label:1,color:2,disabled:3,trackClasses:9,thumbClasses:10,labelClasses:11,classes:12})}}var ru={money:{width:1920,height:1792,paths:[{d:"M768 1152h384v-96h-128v-448h-114l-148 137 77 80q42-37 55-57h2v288h-128v96zM1280 896q0 70-21 142t-59.5 134-101.5 101-138 39-138-39-101.5-101-59.5-134-21-142 21-142 59.5-134 101.5-101 138-39 138 39 101.5 101 59.5 134 21 142zM1792 1152v-512q-106 0-181-75t-75-181h-1152q0 106-75 181t-181 75v512q106 0 181 75t75 181h1152q0-106 75-181t181-75zM1920 320v1152q0 26-19 45t-45 19h-1792q-26 0-45-19t-19-45v-1152q0-26 19-45t45-19h1792q26 0 45 19t19 45z"}]}};function ou(e){let t;return{c(){t=hn(e[5])},m(e,n){mn(e,t,n)},p(e,n){32&n&&xn(t,e[5])},d(e){e&&$n(t)}}}function su(e){let t,n,r,o,s,u,a,i,l,c,d;function p(e,t){return e[3]?au:uu}let f=p(e),m=f(e);function $(t){e[11].call(null,t)}let g={hint:"Alleged name: "+JSON.stringify(e[4]),label:"Dapp petname"};return void 0!==e[2]&&(g.value=e[2]),o=new qs({props:g}),Gn.push(()=>Dr(o,"value",$)),i=new nu({props:{value:e[3],label:"Enabled"}}),{c(){t=Dn("div"),m.c(),n=Cn(),r=Dn("div"),yr(o.$$.fragment),u=Cn(),a=Dn("div"),yr(i.$$.fragment)},m(s,p){mn(s,t,p),m.m(t,null),mn(s,n,p),mn(s,r,p),hr(o,r,null),mn(s,u,p),mn(s,a,p),hr(i,a,null),l=!0,c||(d=[En(r,"keydown",e[9],!0),En(a,"click",vn(e[8]),!0)],c=!0)},p(e,n){f===(f=p(e))&&m?m.p(e,n):(m.d(1),m=f(e),m&&(m.c(),m.m(t,null)));const r={};16&n&&(r.hint="Alleged name: "+JSON.stringify(e[4])),!s&&4&n&&(s=!0,r.value=e[2],Kn(()=>s=!1)),o.$set(r);const u={};8&n&&(u.value=e[3]),i.$set(u)},i(e){l||(ar(o.$$.fragment,e),ar(i.$$.fragment,e),l=!0)},o(e){ir(o.$$.fragment,e),ir(i.$$.fragment,e),l=!1},d(e){e&&$n(t),m.d(),e&&$n(n),e&&$n(r),Cr(o),e&&$n(u),e&&$n(a),Cr(i),c=!1,Yt(d)}}}function uu(e){let t,n,r,o=(e[6]||e[7])+"";return{c(){t=hn("Alleged user interface: "),n=Dn("strikethrough"),r=hn(o)},m(e,o){mn(e,t,o),mn(e,n,o),fn(n,r)},p(e,t){192&t&&o!==(o=(e[6]||e[7])+"")&&xn(r,o)},d(e){e&&$n(t),e&&$n(n)}}}function au(e){let t,n,r,o,s=(e[6]||e[7])+"";return{c(){t=hn("User interface: "),n=Dn("a"),r=hn(s),An(n,"target","_blank"),An(n,"href",o=e[6]||e[7])},m(e,o){mn(e,t,o),mn(e,n,o),fn(n,r)},p(e,t){192&t&&s!==(s=(e[6]||e[7])+"")&&xn(r,s),192&t&&o!==(o=e[6]||e[7])&&An(n,"href",o)},d(e){e&&$n(t),e&&$n(n)}}}function iu(e){let t,n,r,o=e[1]&&ou(e),s=e[0]&&su(e);return{c(){t=Dn("div"),o&&o.c(),n=Cn(),s&&s.c()},m(e,u){mn(e,t,u),o&&o.m(t,null),fn(t,n),s&&s.m(t,null),r=!0},p(e,[r]){e[1]?o?o.p(e,r):(o=ou(e),o.c(),o.m(t,n)):o&&(o.d(1),o=null),e[0]?s?(s.p(e,r),1&r&&ar(s,1)):(s=su(e),s.c(),ar(s,1),s.m(t,null)):s&&(sr(),ir(s,1,1,()=>{s=null}),ur())},i(e){r||(ar(s),r=!0)},o(e){ir(s),r=!1},d(e){e&&$n(t),o&&o.d(),s&&s.d()}}}function lu(e,t,n){let{item:r}=t,{details:o=!0}=t,{summary:s=!0}=t,u=r.petname||r.suggestedPetname;let a,i,l,c,d,p;return e.$$set=e=>{"item"in e&&n(10,r=e.item),"details"in e&&n(0,o=e.details),"summary"in e&&n(1,s=e.summary)},e.$$.update=()=>{1024&e.$$.dirty&&n(3,({enable:a,actions:i,suggestedPetname:l,petname:c,dappOrigin:d,origin:p}=r),a,(n(4,l),n(10,r)),(n(5,c),n(10,r)),(n(6,d),n(10,r)),(n(7,p),n(10,r)))},[o,s,u,a,l,c,d,p,()=>{a?wr(wr(i).setPetname(u)).disable():wr(wr(i).setPetname(u)).enable()},e=>{"Escape"===e.key?(n(2,u=c),e.stopPropagation()):"Enter"===e.key&&(wr(i).setPetname(u),e.stopPropagation())},r,function(e){u=e,n(2,u)}]}class cu extends vr{constructor(e){super(),Er(this,e,lu,iu,Xt,{item:10,details:0,summary:1})}}const du=[];function pu(e,t=Ht){let n;const r=[];function o(t){if(Xt(e,t)&&(e=t,n)){const t=!du.length;for(let t=0;t{const e=r.indexOf(a);-1!==e&&r.splice(e,1),0===r.length&&(n(),n=null)}}}}const fu=globalThis.HandledPromise||Promise,mu=harden(e=>{});function $u(){let e=mu,t=mu;const n=new fu((n,r)=>{e=n,t=r});return n.domain&&delete n.domain,harden({promise:n,resolve:e,reject:t})}function gu(e){return Promise.resolve(e)===e}harden($u),harden(gu);const{freeze:Du}=Object,yu=globalThis.assert;if(void 0===yu)throw new Error("Cannot initialize @agoric/assert, missing globalThis.assert");const hu=["fail","equal","typeof","string","note","details","quote"].filter(e=>void 0===yu[e]);if(hu.length>0)throw new Error("Cannot initialize @agoric/assert, missing globalThis.assert methods "+hu.join(", "));const{details:Cu,quote:bu}=yu;Du((function(e){return(e=""+e).length>=1&&"aeiouAEIOU".includes(e[0])?"an "+e:"a "+e}));const Eu=e=>harden({[Symbol.asyncIterator]:()=>{let t,n;return harden({next:()=>(n||(n=wr(e).getUpdateSince(t).then(({value:e,updateCount:r})=>{t=r;const o=void 0===t;return o||(n=void 0),harden({value:e,done:o})})),n)})}}),vu=(e,t)=>((e,t)=>new Promise(n=>{const r=()=>{wr.when(wr(e).next(),({value:e,done:o})=>{o?(t.finish&&t.finish(e),n()):(t.updateState&&t.updateState(e),r())},e=>{t.fail&&t.fail(e),n()})};r()}))(wr(e)[Symbol.asyncIterator](),t),Au=(e,t)=>vu(Eu(t),e),Fu=e=>{const t=Eu(e);return harden({...t,getSharableNotifierInternals:()=>e})},wu=(...e)=>{let t,n=$u(),r=1;const o=()=>void 0===r,s=harden({getUpdateSince:(e=NaN)=>void 0!==t&&(o()||t&&t.updateCount!==e)?(yu(void 0!==t),Promise.resolve(t)):(yu(n),n.promise)}),u=harden({...Fu(s),...s}),a=harden({updateState(e){if(o())throw new Error("Cannot update state after termination.");yu(n&&r),r+=1,t=harden({value:e,updateCount:r}),n.resolve(t),n=$u()},finish(e){if(o())throw new Error("Cannot finish after termination.");yu(n),r=void 0,t=harden({value:e,updateCount:r}),n.resolve(t),n=void 0},fail(e){if(o())throw new Error("Cannot fail after termination.");yu(n),r=void 0,t=void 0,n.promise.catch(e=>{}),n.reject(e)}});return e.length>=1&&a.updateState(e[0]),harden({notifier:u,updater:a})},xu=e=>harden({[Symbol.asyncIterator]:()=>Bu(e),getSharableSubscriptionInternals:()=>e});harden(xu);const Bu=e=>harden({subscribe:()=>xu(e),[Symbol.asyncIterator]:()=>Bu(e),next:()=>{const t=wr.G(e).head;return e=wr.G(e).tail,t}});harden(()=>{let e;const t=xu(new Fr(t=>e=t)),n=harden({updateState:t=>{if(void 0===e)throw new Error("Cannot update state after termination.");const{promise:n,resolve:r}=$u();e(harden({head:{value:t,done:!1},tail:n})),e=r},finish:t=>{if(void 0===e)throw new Error("Cannot finish after termination.");const n=Fr.reject(new Error("cannot read past end of iteration"));n.catch(e=>{}),e({head:{value:t,done:!0},tail:n}),e=void 0},fail:t=>{if(void 0===e)throw new Error("Cannot fail after termination.");e(Fr.reject(t)),e=void 0}});return harden({publication:n,subscription:t})});const Pu="5000"===location.port?"http://localhost:8000":location;function Su(e,{onOpen:t,onMessage:n,onClose:r}){const[o,s]=function(e,t){const n=pu(e,t);return[{subscribe:n.subscribe},n.set]}(!1),u=new URL(e,Pu);u.protocol=u.protocol.replace(/^http/,"ws"),u.protocol.startsWith("ws")||(u.protocol="ws");let a;function i(){console.log("Reconnecting in 3 seconds"),a=setTimeout(d,3e3)}let l=null,c=null;function d(){l||(clearTimeout(a),l=new WebSocket(""+u),c=i,l.addEventListener("open",e=>{s(!0),t(e)}),l.addEventListener("message",n),l.addEventListener("error",e=>{console.log("ws.error",e),l.close()}),l.addEventListener("close",e=>{l=null,s(!1),r&&r(),c&&c()}))}return{connected:{...o,connect:d,disconnect:function(){c=null,l&&l.close()}},sendMessage:e=>{l&&l.readyState<=1&&l.send(JSON.stringify(e))}}}function ku(e){if(!Number.isSafeInteger(e))throw new RangeError("not a safe integer");if(e<0)throw new RangeError("negative");return e}const{getPrototypeOf:Iu,setPrototypeOf:Tu,getOwnPropertyDescriptors:Nu,defineProperties:Ou,is:_u,isFrozen:Ru,fromEntries:ju,prototype:Mu}=Object,{ownKeys:Uu}=Reflect,Lu=Symbol.for("passStyle");function zu(e){if("object"!=typeof e||null===e)return;if("presence"!==e[Lu])return;yu(Ru(e),Cu`Remotable ${e} must be frozen`,TypeError);const t=e[Symbol.toStringTag];return yu.typeof(t,"string",Cu`Remotable interface currently can only be a string`),t}function Gu(e,t=new WeakMap){const n=Ku(e);switch(n){case"bigint":case"boolean":case"null":case"number":case"string":case"undefined":case"symbol":return e;case"copyArray":case"copyRecord":{const r=e;if(t.has(r))return t.get(r);const o="copyArray"===n?[]:{};return t.set(r,o),Object.entries(r).forEach(([e,n])=>{o[e]=Gu(n,t)}),harden(o)}case"copyError":{const n=e;if(t.has(n))return t.get(n);const{name:r,message:o}=n,s=Hu(""+r)||Error,u=harden(new s(""+o));t.set(n,u);return harden(u)}case"presence":yu.fail(Cu`Input value ${bu(n)} cannot be copied as it must be passed by reference`,TypeError);case"promise":yu.fail(Cu`Promises cannot be copied`,TypeError);default:yu.fail(Cu`Input value ${bu(n)} is not recognized as data`,TypeError)}}harden(Gu);const Wu=new Map([["Error",Error],["EvalError",EvalError],["RangeError",RangeError],["ReferenceError",ReferenceError],["SyntaxError",SyntaxError],["TypeError",TypeError],["URIError",URIError]]);function Hu(e){return Wu.get(e)}function qu(e){yu.typeof(e,"object",Cu`cannot serialize non-objects like ${e}`),yu(!Array.isArray(e),Cu`Arrays cannot be pass-by-remote`),yu(null!==e,Cu`null cannot be pass-by-remote`);const t=Nu(e);Uu(t).forEach(n=>{yu(!("get"in t[n]),Cu`cannot serialize objects with getters like ${bu(String(n))} in ${e}`),yu.typeof(e[n],"function",Cu`cannot serialize objects with non-methods like ${bu(String(n))} in ${e}`)})}function Vu(e){yu(Ru(e),Cu`cannot serialize non-frozen objects like ${e}`),qu(e);const t=Iu(e);null!==t&&t!==Mu&&(e=>{yu.typeof(e,"object",Cu`cannot serialize non-objects like ${e}`),yu(!Array.isArray(e),Cu`Arrays cannot be pass-by-remote`),yu(null!==e,Cu`null cannot be pass-by-remote`);const t=Iu(e);yu(t===Mu||null===t,Cu`The Remotable Proto marker cannot inherit from anything unusual`),yu(Ru(e),Cu`The Remotable proto must be frozen`);const{[Lu]:{value:n},toString:{value:r},[Symbol.toStringTag]:{value:o},...s}=Nu(e);yu(0===Uu(s).length,Cu`Unexpect properties on Remotable Proto ${Uu(s)}`),yu("presence"===n,Cu`Expected ${bu("presence")}, not ${bu(n)}`),yu.typeof(r,"function",Cu`toString must be a function`),yu.typeof(o,"string",Cu`@@toStringTag must be a string`)})(t)}function Ju(e,t){return e===t||_u(e,t)}function Ku(e){const t=typeof e;switch(t){case"object":return zu(e)?"presence":null===e?"null":(yu(Ru(e),Cu`Cannot pass non-frozen objects like ${e}. Use harden()`),gu(e)?"promise":(yu("function"!=typeof e.then,Cu`Cannot pass non-promise thenables`),function(e){if(!(e instanceof Error))return!1;const t=Iu(e),{name:n}=e,r=Hu(n);r&&r.prototype===t||yu.note(e,Cu`Errors must inherit from an error class .prototype ${e}`);const{message:o,stack:s,...u}=Nu(e);return Uu(u).length>=1&&yu.note(e,Cu`Passed Error has extra unpassed properties ${u}`),o&&("string"!=typeof o.value&&yu.note(e,Cu`Passed Error "message" ${o} must be a string-valued data property.`),o.enumerable&&yu.note(e,Cu`Passed Error "message" ${o} must not be enumerable`)),!0}(e)?"copyError":function(e){if(!Array.isArray(e))return!1;yu(Iu(e)===Array.prototype,Cu`Malformed array: ${e}`,TypeError);const t=e.length,n=Nu(e);for(let e=0;ee,Xu=(e,t)=>e;function Qu(e=Zu,t=Xu,{marshalName:n="anon-marshal",errorTagging:r="on"}={}){yu.typeof(n,"string"),yu("on"===r||"off"===r,Cu`The errorTagging option can only be "on" or "off" ${r}`);let o=0;function s(t,n,r,o){let s;if(r.has(t))s=r.get(t);else{const o=e(t);s=n.length,n.push(o),r.set(t,s)}return void 0===o?harden({[Yu]:"slot",index:s}):harden({[Yu]:"slot",iface:o,index:s})}function u(e,n){const r=function(e){const t=[],n=new WeakSet;return harden({get(r){const o=ku(r);yu(o(t.push(e),e),start:e=>(t.push(e),n.add(e),e),finish:e=>(n.delete(e),e)})}(n);return function n(o){if(Object(o)!==o)return o;if(!(Yu in o)){if(Array.isArray(o)){const e=r.start([]),t=o.length;for(let r=0;r{const t=[],u=new Map,a=function(){const e=new Map;let t=0;return harden({has:t=>e.has(t),get:t=>e.get(t),add(n){e.set(n,t),t+=1}})}(),i=e=>{const l=Ku(e);switch(l){case"null":return null;case"undefined":return harden({[Yu]:"undefined"});case"string":case"boolean":return e;case"number":return Number.isNaN(e)?harden({[Yu]:"NaN"}):_u(e,-0)?0:e===1/0?harden({[Yu]:"Infinity"}):e===-1/0?harden({[Yu]:"-Infinity"}):e;case"bigint":return harden({[Yu]:"bigint",digits:String(e)});case"symbol":switch(e){case Symbol.asyncIterator:return harden({[Yu]:"@@asyncIterator"});default:yu.fail(Cu`Unsupported symbol ${bu(String(e))}`)}default:if(a.has(e))return harden({[Yu]:"ibid",index:a.get(e)});switch(a.add(e),l){case"copyRecord":{if(Yu in e){const{[Yu]:t,...n}=e;return 0===Uu(n).length?harden({[Yu]:"hilbert",original:i(t)}):harden({[Yu]:"hilbert",original:i(t),rest:i(harden(n))})}const t=Uu(e).sort();return ju(t.map(t=>[t,i(e[t])]))}case"copyArray":return e.map(i);case"copyError":if("on"===r){const t=(o+=1,`error:${n}#${o}`);return yu.note(e,Cu`Sent as ${t}`),console.log("Temporary logging of sent error",e),harden({[Yu]:"error",errorId:t,message:""+e.message,name:""+e.name})}return harden({[Yu]:"error",message:""+e.message,name:""+e.name});case"presence":{const n=zu(e);return s(e,t,u,n)}case"promise":return s(e,t,u);default:yu.fail(Cu`unrecognized passStyle ${bu(l)}`,TypeError)}}},l=i(e);return harden({body:JSON.stringify(l),slots:t})},unserialize:function(e,t="forbidCycles"){yu.typeof(e.body,"string",Cu`unserialize() given non-capdata (.body is ${e.body}, not string)`),yu(Array.isArray(e.slots),Cu`unserialize() given non-capdata (.slots are not Array)`);const n=harden(JSON.parse(e.body)),r=u(e.slots,t);return harden(r(n))}})}function ea(e="Remotable",t,n={}){yu.typeof(e,"string",Cu`Interface ${e} must be a string; unimplemented`),yu("Remotable"===e||e.startsWith("Alleged: "),Cu`For now, iface ${bu(e)} must be "Remotable" or begin with "Alleged: "; unimplemented`);const r=e=Gu(harden(e));yu(void 0===t,Cu`Remotable props not yet implemented ${t}`),qu(n),yu(!(Lu in n),Cu`Remotable ${n} is already marked as a ${bu(n[Lu])}`);const o=((e,t)=>{yu(e===Mu||null===e,Cu`For now, remotables cannot inherit from anything unusual`);return harden({__proto__:e,[Lu]:"presence",toString:()=>`[${t}]`,[Symbol.toStringTag]:t})})(Iu(n),r),s=e=>{Tu(e,o),harden(e),qu(e)};return s({}),s(n),yu(void 0!==e),n}harden(ea);const ta=(e,t={})=>ea("Alleged: "+e,void 0,t);harden(ta);const na=harden({get:(e,t,n)=>{if("length"===t)return 0;yu.fail(Cu`Marshal's parse must not encode any slot positions ${t}`)}}),ra=harden(new Proxy(harden([]),na)),{serialize:oa,unserialize:sa}=Qu(e=>yu.fail(Cu`Marshal's stringify rejects presences and promises ${e}`),(e,t)=>yu.fail(Cu`Marshal's parse must not encode any slots ${e}`),{errorTagging:"off"});harden(e=>oa(e).body);harden(e=>sa(harden({body:e,slots:ra})));let ua="?"+window.location.hash.slice(1),aa=new URLSearchParams(ua).get("accessToken");try{aa?localStorage.setItem("accessTokenParams",ua):(ua=localStorage.getItem("accessTokenParams")||"?",aa=new URLSearchParams(ua).get("accessToken"))}catch(e){console.log("Error fetching accessTokenParams",e)}window.location.hash="",window.addEventListener("hashchange",e=>{window.location.hash=""}),aa||confirm("You must open the Agoric wallet with the\n agoric open\ncommand line executable.\n\nSee the documentation?")&&(window.location.href="https://agoric.com/documentation/getting-started/agoric-cli-guide.html#agoric-open");const{connected:ia,makeStableForwarder:la}=function(e,{onReset:t}){let n,r,o=$u();const s=e({onOpen:async function(e){const{abort:t,dispatch:s,getBootstrap:a}=function(e,t,n,r={}){const{onReject:o=(t=>console.error("CapTP",e,"exception:",t)),Remotable:s=ea,makeMarshal:u=Qu,epoch:a=0}=r,i=e=>Error(JSON.stringify(e)+" connection closed");let l=!1;async function c(e,t=!0){if(!o||!1!==l&&e===l||void 0===e||o(e),!t)return Promise.resolve();const n=Promise.reject(e);return n.catch(e=>{}),n}function d(e){!1===l&&t(e)}const{serialize:p,unserialize:f}=u((function(e){if(!m.has(e)){let t;if(gu(e)){g+=1;const n=g;t="p+"+n,e.then(e=>d({type:"CTP_RESOLVE",promiseID:n,res:p(harden(e))}),e=>d({type:"CTP_RESOLVE",promiseID:n,rej:p(harden(e))}))}else{D+=1;t="o+"+D}m.set(e,t),$.set(t,e)}return m.get(e)}),(function(t,n){let r;const o="+"===t[1]?"-":"+",u=`${t[0]}${o}${t.slice(2)}`;if(!$.has(u)){const t=v(u);if("o"===u[0]){const o=t.resPres();void 0===n&&(n=`Alleged: Presence ${e} ${u}`),r=s(n,void 0,o)}else b.set(Number(u.slice(2)),t),r=t.p;$.set(u,r),m.set(r,u)}return $.get(u)}),{marshalName:"captp:"+e}),m=new WeakMap,$=new Map;let g=0,D=0,y=0;const h=new Map,C=new Map,b=new Map;function E(){y+=1;const e=y,t=v(e);return h.set(e,t),[e,t]}function v(e){const t={get(t,n){if(!1!==l)return c(l);const[r,o]=E();return d({type:"CTP_CALL",epoch:a,questionID:r,target:e,method:p(harden([n]))}),harden(o.p)},applyMethod(t,n,r){if(!1!==l)return c(l);const[o,s]=E();return d({type:"CTP_CALL",epoch:a,questionID:o,target:e,method:p(harden([n,r]))}),harden(s.p)}},n={};return n.p=new Fr((e,r,o)=>{n.rej=r,n.resPres=()=>o(t),n.res=e},t),n.p.catch(e=>c(e,!1)),harden(n)}const A={async CTP_BOOTSTRAP(e){const{questionID:t}=e,r="function"==typeof n?n(e):n;wr.when(r,e=>(C.set(t,e),d({type:"CTP_RETURN",epoch:a,answerID:t,result:p(e)})))},async CTP_CALL(e){const{questionID:t,target:n}=e,[r,o]=f(e.method);let s;s=C.has(n)?C.get(n):f({body:JSON.stringify({[Yu]:"slot",index:0}),slots:[n]});const u=o?Fr.applyMethod(s,r,o):Fr.get(s,r);return C.set(t,u),u.then(e=>d({type:"CTP_RETURN",epoch:a,answerID:t,result:p(harden(e))})).catch(e=>d({type:"CTP_RETURN",epoch:a,answerID:t,exception:p(harden(e))})).catch(e=>c(e,!1))},async CTP_RETURN(e){const{result:t,exception:n,answerID:r}=e,o=h.get(r);"exception"in e?o.rej(f(n)):o.res(f(t))},async CTP_RESOLVE(e){const{promiseID:t,res:n,rej:r}=e,o=b.get(t);"rej"in e?o.rej(f(r)):o.res(f(n)),b.delete(t)},async CTP_DISCONNECT(n){const{reason:r=i(e)}=n;!1===l&&(c(n.reason,!1),l=r,t(n));for(const e of h.values())e.rej(r);for(const e of b.values())e.rej(r)}};harden(A);const F=e=>{try{if(!1!==l)return!1;const t=A[e.type];return!!t&&(t(e).catch(e=>c(e,!1)),!0)}catch(e){return c(e,!1),!1}};return harden({abort:e=>{F({type:"CTP_DISCONNECT",epoch:a,reason:e})},dispatch:F,getBootstrap:async()=>{if(!1!==l)return c(l);const[e,t]=E();return d({type:"CTP_BOOTSTRAP",epoch:a,questionID:e}),harden(t.p)},serialize:p,unserialize:f})}("@agoric/dapp-svelte-wallet-ui",u);let i;for(r=t,n=s;;){const e=await wr(wr.G(a()).loadingNotifier).getUpdateSince(i);if(console.log("waiting for wallet"),i=e.updateCount,!e.value.includes("wallet"))break}o.resolve(a())},onMessage:function(e){const t=JSON.parse(e.data);n(t)},onClose:function(e){o=$u(),t(o.promise.then(e=>!0)),r&&r()}}),{sendMessage:u}=s;return setTimeout(()=>t(o.promise),1),{makeStableForwarder:function(e=(e=>e)){return new HandledPromise((t,n,r)=>{r({applyMethod:(t,n,r)=>wr(e(o.promise))[n](...r),get:(t,n)=>wr(e(o.promise))[n]})})},...s}}(e=>Su("/private/captp"+ua,e),{onReset:function(e){ma(!1),e.then(()=>pa.forEach(e=>e())),wr(ca).getSelfContact().then(e=>wa({contactPetname:"Self",...Sa("Self",e)})),Au({updateState(e){ga(e.map(e=>({...e,offerId:e.id,id:`${e.requestContext.date}-${e.requestContext.dappOrigin}-${e.id}`})).sort((e,t)=>Pa(t.id,e.id)))}},wr(ca).getOffersNotifier()),Au({updateState(e){ya(e.map(e=>Sa({pursePetname:e.pursePetname},e)).sort((e,t)=>Pa(e.brandPetname,t.brandPetname)||Pa(e.pursePetname,t.pursePetname)))}},wr(ca).getPursesNotifier()),Au({updateState(e){Ca(e.map(e=>({...e,id:e.origin})).sort((e,t)=>Pa(e.petname,t.petname)||Pa(e.id,t.id)))}},wr(ca).getDappsNotifier()),Au({updateState(e){Aa(e.map(([e,t])=>Sa({contactPetname:e},t)).sort((e,t)=>Pa(e.contactPetname,t.contactPetname)||Pa(e.id,t.id)))}},wr(ca).getContactsNotifier()),Au({updateState:Ea},wr(ca).getPaymentsNotifier()),Au({updateState(e){Ba(e.map(([e,t])=>Sa({issuerPetname:e},t)).sort((e,t)=>Pa(e.id,t.id)))}},wr(ca).getIssuersNotifier())}}),ca=la(e=>wr(wr.G(e).wallet).getAdminFacet()),da=la(e=>wr.G(e).board),pa=[],[fa,ma]=ka(!1,!0),[$a,ga]=ka([]),[Da,ya]=ka([]),[ha,Ca]=ka([]),[ba,Ea]=ka([]),[va,Aa]=ka([]),[Fa,wa]=ka(void 0),[xa,Ba]=ka([]);function Pa(e,t){return en.set(t)),[{subscribe:n.subscribe},n.set]}function Ia(e){let t,n,r;return n=new Jo.Title({props:{title:"Dapps"}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","title")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p:Ht,i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function Ta(e){let t;return{c(){t=Dn("div"),t.textContent="No Dapps.",An(t,"slot","empty")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Na(e){let t,n,r;return n=new cu({props:{item:e[2],details:!1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-header")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function Oa(e){let t,n,r;return n=new cu({props:{item:e[2],summary:!1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-details")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function _a(e){let t,n,r;return{c(){t=Cn(),n=Cn(),r=Cn()},m(e,o){mn(e,t,o),mn(e,n,o),mn(e,r,o)},p:Ht,i:Ht,o:Ht,d(e){e&&$n(t),e&&$n(n),e&&$n(r)}}}function Ra(e){let t,n;return t=new $s({props:{items:e[1],storeKey:"dapps-"+e[0],expandDefault:e[0],$$slots:{default:[_a],"item-details":[Oa,({item:e})=>({2:e}),({item:e})=>e?4:0],"item-header":[Na,({item:e})=>({2:e}),({item:e})=>e?4:0],empty:[Ta],title:[Ia]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,[n]){const r={};2&n&&(r.items=e[1]),1&n&&(r.storeKey="dapps-"+e[0]),1&n&&(r.expandDefault=e[0]),12&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function ja(e,t,n){let r;Qt(e,ha,e=>n(1,r=e));let{expandDefault:o=!0}=t;return e.$$set=e=>{"expandDefault"in e&&n(0,o=e.expandDefault)},[o,r]}class Ma extends vr{constructor(e){super(),Er(this,e,ja,Ra,Xt,{expandDefault:0})}}const Ua=e=>({}),La=e=>({}),za=e=>({item:1&e}),Ga=e=>({item:e[5]});function Wa(e,t,n){const r=e.slice();return r[5]=t[n],r}const Ha=e=>({}),qa=e=>({});function Va(e){let t,n,r=[],o=new Map,s=e[0];const u=e=>e[1](e[5]);for(let t=0;ty.get(o)?(C.add(r),b(t)):(h.add(o),p--):(i(n,u),p--)}for(;p--;){const t=e[p];D.has(t.key)||i(t,u)}for(;f;)b(g[f-1]);return g}(r,n,u,1,e,s,o,t,mr,Ka,null,Wa),ur()}},i(e){if(!n){for(let e=0;e{c[n]=null}),ur(),o=c[r],o||(o=c[r]=l[r](e),o.c()),ar(o,1),o.m(s.parentNode,s)),f&&f.p&&8&t&&nn(f,p,e,e[3],t,Ua,La)},i(e){u||(ar(i,e),ar(o),ar(f,e),u=!0)},o(e){ir(i,e),ir(o),ir(f,e),u=!1},d(e){i&&i.d(e),e&&$n(t),c[r].d(e),e&&$n(s),f&&f.d(e)}}}function Za(e,t,n){let{items:r}=t,{idFn:o=(e=>e.id||e)}=t,{horizontal:s=!1}=t,{$$slots:u={},$$scope:a}=t;return e.$$set=e=>{"items"in e&&n(0,r=e.items),"idFn"in e&&n(1,o=e.idFn),"horizontal"in e&&n(2,s=e.horizontal),"$$scope"in e&&n(3,a=e.$$scope)},[r,o,s,a,u]}class Xa extends vr{constructor(e){super(),Er(this,e,Za,Ya,Xt,{items:0,idFn:1,horizontal:2})}}function Qa(e,t,n){const r=e.slice();return r[4]=t[n],r}function ei(e){let t,n,r,o,s=e[2]&&ni(),u=e[1]&&ri(e);return{c(){t=Dn("span"),n=hn(e[0]),s&&s.c(),r=Cn(),u&&u.c(),o=bn(),An(t,"class","confirmedPetname"),Sn(t,"color",e[3])},m(e,a){mn(e,t,a),fn(t,n),s&&s.m(t,null),mn(e,r,a),u&&u.m(e,a),mn(e,o,a)},p(e,r){1&r&&xn(n,e[0]),e[2]?s||(s=ni(),s.c(),s.m(t,null)):s&&(s.d(1),s=null),8&r&&Sn(t,"color",e[3]),e[1]?u?u.p(e,r):(u=ri(e),u.c(),u.m(o.parentNode,o)):u&&(u.d(1),u=null)},d(e){e&&$n(t),s&&s.d(),e&&$n(r),u&&u.d(e),e&&$n(o)}}}function ti(e){let t,n,r,o,s=e[0][0]+"",u=e[0].slice(1),a=[];for(let t=0;t{"name"in e&&n(0,r=e.name),"board"in e&&n(1,o=e.board),"plural"in e&&n(2,s=e.plural),"color"in e&&n(3,u=e.color)},[r,o,s,u]}class ii extends vr{constructor(e){super(),Er(this,e,ai,ui,Xt,{name:0,board:1,plural:2,color:3})}}const li=e=>({}),ci=e=>({});function di(e){let t,n,r,o,s;const u=e[9].default,a=en(u,e,e[8],null);return{c(){t=Dn("div"),a&&a.c(),An(t,"class",n=on(e[3])+" svelte-1n6auy7")},m(e,n){mn(e,t,n),a&&a.m(t,null),s=!0},p(e,r){a&&a.p&&256&r&&nn(a,u,e,e[8],r,null,null),(!s||8&r&&n!==(n=on(e[3])+" svelte-1n6auy7"))&&An(t,"class",n)},i(e){s||(ar(a,e),Jn(()=>{o&&o.end(1),r||(r=cr(t,ao,{duration:150})),r.start()}),s=!0)},o(e){ir(a,e),r&&r.invalidate(),o=dr(t,ao,{duration:150,delay:100}),s=!1},d(e){e&&$n(t),a&&a.d(e),e&&o&&o.end()}}}function pi(e){let t,n,r,o,s,u;const a=e[9].activator,i=en(a,e,e[8],ci);let l=e[0]&&di(e);return{c(){t=Dn("div"),n=Dn("div"),i&&i.c(),r=Cn(),l&&l.c(),An(t,"class","relative inline-block")},m(a,c){mn(a,t,c),fn(t,n),i&&i.m(n,null),fn(t,r),l&&l.m(t,null),o=!0,s||(u=[En(n,"mouseenter",(function(){Zt(mi(e[4],e[2]))&&mi(e[4],e[2]).apply(this,arguments)})),En(n,"mouseleave",(function(){Zt(mi(e[5],e[1]))&&mi(e[5],e[1]).apply(this,arguments)})),En(n,"mouseenter",e[10]),En(n,"mouseleave",e[11]),En(n,"mouseover",e[12]),En(n,"mouseout",e[13])],s=!0)},p(n,[r]){e=n,i&&i.p&&256&r&&nn(i,a,e,e[8],r,li,ci),e[0]?l?(l.p(e,r),1&r&&ar(l,1)):(l=di(e),l.c(),ar(l,1),l.m(t,null)):l&&(sr(),ir(l,1,1,()=>{l=null}),ur())},i(e){o||(ar(i,e),ar(l),o=!0)},o(e){ir(i,e),ir(l),o=!1},d(e){e&&$n(t),i&&i.d(e),l&&l.d(),s=!1,Yt(u)}}}const fi="tooltip whitespace-no-wrap text-xs absolute mt-2 bg-gray-600 text-gray-50 rounded md:px-2 md:py-2 py-4 px-3 z-30";function mi(e,t,n){let r;return function(){let o=this,s=arguments,u=function(){r=null,n||e.apply(o,s)},a=n&&!r;clearTimeout(r),r=setTimeout(u,t),a&&e.apply(o,s)}}function $i(e,t,n){let{classes:r=fi}=t,{show:o=!1}=t,{timeout:s=null}=t,{delayHide:u=100}=t,{delayShow:a=100}=t;const i=new Tr(r,fi);let l,{$$slots:c={},$$scope:d}=t;return e.$$set=e=>{n(15,t=Vt(Vt({},t),rn(e))),"classes"in e&&n(7,r=e.classes),"show"in e&&n(0,o=e.show),"timeout"in e&&n(6,s=e.timeout),"delayHide"in e&&n(1,u=e.delayHide),"delayShow"in e&&n(2,a=e.delayShow),"$$scope"in e&&n(8,d=e.$$scope)},e.$$.update=()=>{n(3,l=i.flush().add(r,!0,fi).add(t.class).get())},t=rn(t),[o,u,a,l,function(){o||(n(0,o=!0),s&&n(6,s=setTimeout(()=>{n(0,o=!1)},s)))},function(){o&&(n(0,o=!1),clearTimeout(s))},s,r,d,c,function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)}]}class gi extends vr{constructor(e){super(),Er(this,e,$i,pi,Xt,{classes:7,show:0,timeout:6,delayHide:1,delayShow:2})}}var Di={Space_Separator:/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ID_Start:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},yi={isSpaceSeparator:e=>"string"==typeof e&&Di.Space_Separator.test(e),isIdStartChar:e=>"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||"$"===e||"_"===e||Di.ID_Start.test(e)),isIdContinueChar:e=>"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"$"===e||"_"===e||""===e||""===e||Di.ID_Continue.test(e)),isDigit:e=>"string"==typeof e&&/[0-9]/.test(e),isHexDigit:e=>"string"==typeof e&&/[0-9A-Fa-f]/.test(e)};let hi,Ci,bi,Ei,vi,Ai,Fi,wi,xi;let Bi,Pi,Si,ki,Ii;function Ti(){for(Bi="default",Pi="",Si=!1,ki=1;;){Ii=Ni();const e=_i[Bi]();if(e)return e}}function Ni(){if(hi[Ei])return String.fromCodePoint(hi.codePointAt(Ei))}function Oi(){const e=Ni();return"\n"===e?(vi++,Ai=0):e?Ai+=e.length:Ai++,e&&(Ei+=e.length),e}const _i={default(){switch(Ii){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":return void Oi();case"/":return Oi(),void(Bi="comment");case void 0:return Oi(),Ri("eof")}if(!yi.isSpaceSeparator(Ii))return _i[Ci]();Oi()},comment(){switch(Ii){case"*":return Oi(),void(Bi="multiLineComment");case"/":return Oi(),void(Bi="singleLineComment")}throw Gi(Oi())},multiLineComment(){switch(Ii){case"*":return Oi(),void(Bi="multiLineCommentAsterisk");case void 0:throw Gi(Oi())}Oi()},multiLineCommentAsterisk(){switch(Ii){case"*":return void Oi();case"/":return Oi(),void(Bi="default");case void 0:throw Gi(Oi())}Oi(),Bi="multiLineComment"},singleLineComment(){switch(Ii){case"\n":case"\r":case"\u2028":case"\u2029":return Oi(),void(Bi="default");case void 0:return Oi(),Ri("eof")}Oi()},value(){switch(Ii){case"{":case"[":return Ri("punctuator",Oi());case"n":return Oi(),ji("ull"),Ri("null",null);case"t":return Oi(),ji("rue"),Ri("boolean",!0);case"f":return Oi(),ji("alse"),Ri("boolean",!1);case"-":case"+":return"-"===Oi()&&(ki=-1),void(Bi="sign");case".":return Pi=Oi(),void(Bi="decimalPointLeading");case"0":return Pi=Oi(),void(Bi="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return Pi=Oi(),void(Bi="decimalInteger");case"I":return Oi(),ji("nfinity"),Ri("numeric",1/0);case"N":return Oi(),ji("aN"),Ri("numeric",NaN);case'"':case"'":return Si='"'===Oi(),Pi="",void(Bi="string")}throw Gi(Oi())},identifierNameStartEscape(){if("u"!==Ii)throw Gi(Oi());Oi();const e=Mi();switch(e){case"$":case"_":break;default:if(!yi.isIdStartChar(e))throw Hi()}Pi+=e,Bi="identifierName"},identifierName(){switch(Ii){case"$":case"_":case"":case"":return void(Pi+=Oi());case"\\":return Oi(),void(Bi="identifierNameEscape")}if(!yi.isIdContinueChar(Ii))return Ri("identifier",Pi);Pi+=Oi()},identifierNameEscape(){if("u"!==Ii)throw Gi(Oi());Oi();const e=Mi();switch(e){case"$":case"_":case"":case"":break;default:if(!yi.isIdContinueChar(e))throw Hi()}Pi+=e,Bi="identifierName"},sign(){switch(Ii){case".":return Pi=Oi(),void(Bi="decimalPointLeading");case"0":return Pi=Oi(),void(Bi="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return Pi=Oi(),void(Bi="decimalInteger");case"I":return Oi(),ji("nfinity"),Ri("numeric",ki*(1/0));case"N":return Oi(),ji("aN"),Ri("numeric",NaN)}throw Gi(Oi())},zero(){switch(Ii){case".":return Pi+=Oi(),void(Bi="decimalPoint");case"e":case"E":return Pi+=Oi(),void(Bi="decimalExponent");case"x":case"X":return Pi+=Oi(),void(Bi="hexadecimal")}return Ri("numeric",0*ki)},decimalInteger(){switch(Ii){case".":return Pi+=Oi(),void(Bi="decimalPoint");case"e":case"E":return Pi+=Oi(),void(Bi="decimalExponent")}if(!yi.isDigit(Ii))return Ri("numeric",ki*Number(Pi));Pi+=Oi()},decimalPointLeading(){if(yi.isDigit(Ii))return Pi+=Oi(),void(Bi="decimalFraction");throw Gi(Oi())},decimalPoint(){switch(Ii){case"e":case"E":return Pi+=Oi(),void(Bi="decimalExponent")}return yi.isDigit(Ii)?(Pi+=Oi(),void(Bi="decimalFraction")):Ri("numeric",ki*Number(Pi))},decimalFraction(){switch(Ii){case"e":case"E":return Pi+=Oi(),void(Bi="decimalExponent")}if(!yi.isDigit(Ii))return Ri("numeric",ki*Number(Pi));Pi+=Oi()},decimalExponent(){switch(Ii){case"+":case"-":return Pi+=Oi(),void(Bi="decimalExponentSign")}if(yi.isDigit(Ii))return Pi+=Oi(),void(Bi="decimalExponentInteger");throw Gi(Oi())},decimalExponentSign(){if(yi.isDigit(Ii))return Pi+=Oi(),void(Bi="decimalExponentInteger");throw Gi(Oi())},decimalExponentInteger(){if(!yi.isDigit(Ii))return Ri("numeric",ki*Number(Pi));Pi+=Oi()},hexadecimal(){if(yi.isHexDigit(Ii))return Pi+=Oi(),void(Bi="hexadecimalInteger");throw Gi(Oi())},hexadecimalInteger(){if(!yi.isHexDigit(Ii))return Ri("numeric",ki*Number(Pi));Pi+=Oi()},string(){switch(Ii){case"\\":return Oi(),void(Pi+=function(){switch(Ni()){case"b":return Oi(),"\b";case"f":return Oi(),"\f";case"n":return Oi(),"\n";case"r":return Oi(),"\r";case"t":return Oi(),"\t";case"v":return Oi(),"\v";case"0":if(Oi(),yi.isDigit(Ni()))throw Gi(Oi());return"\0";case"x":return Oi(),function(){let e="",t=Ni();if(!yi.isHexDigit(t))throw Gi(Oi());if(e+=Oi(),t=Ni(),!yi.isHexDigit(t))throw Gi(Oi());return e+=Oi(),String.fromCodePoint(parseInt(e,16))}();case"u":return Oi(),Mi();case"\n":case"\u2028":case"\u2029":return Oi(),"";case"\r":return Oi(),"\n"===Ni()&&Oi(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case void 0:throw Gi(Oi())}return Oi()}());case'"':return Si?(Oi(),Ri("string",Pi)):void(Pi+=Oi());case"'":return Si?void(Pi+=Oi()):(Oi(),Ri("string",Pi));case"\n":case"\r":throw Gi(Oi());case"\u2028":case"\u2029":!function(e){console.warn(`JSON5: '${qi(e)}' in strings is not valid ECMAScript; consider escaping`)}(Ii);break;case void 0:throw Gi(Oi())}Pi+=Oi()},start(){switch(Ii){case"{":case"[":return Ri("punctuator",Oi())}Bi="value"},beforePropertyName(){switch(Ii){case"$":case"_":return Pi=Oi(),void(Bi="identifierName");case"\\":return Oi(),void(Bi="identifierNameStartEscape");case"}":return Ri("punctuator",Oi());case'"':case"'":return Si='"'===Oi(),void(Bi="string")}if(yi.isIdStartChar(Ii))return Pi+=Oi(),void(Bi="identifierName");throw Gi(Oi())},afterPropertyName(){if(":"===Ii)return Ri("punctuator",Oi());throw Gi(Oi())},beforePropertyValue(){Bi="value"},afterPropertyValue(){switch(Ii){case",":case"}":return Ri("punctuator",Oi())}throw Gi(Oi())},beforeArrayValue(){if("]"===Ii)return Ri("punctuator",Oi());Bi="value"},afterArrayValue(){switch(Ii){case",":case"]":return Ri("punctuator",Oi())}throw Gi(Oi())},end(){throw Gi(Oi())}};function Ri(e,t){return{type:e,value:t,line:vi,column:Ai}}function ji(e){for(const t of e){if(Ni()!==t)throw Gi(Oi());Oi()}}function Mi(){let e="",t=4;for(;t-- >0;){const t=Ni();if(!yi.isHexDigit(t))throw Gi(Oi());e+=Oi()}return String.fromCodePoint(parseInt(e,16))}const Ui={start(){if("eof"===Fi.type)throw Wi();Li()},beforePropertyName(){switch(Fi.type){case"identifier":case"string":return wi=Fi.value,void(Ci="afterPropertyName");case"punctuator":return void zi();case"eof":throw Wi()}},afterPropertyName(){if("eof"===Fi.type)throw Wi();Ci="beforePropertyValue"},beforePropertyValue(){if("eof"===Fi.type)throw Wi();Li()},beforeArrayValue(){if("eof"===Fi.type)throw Wi();"punctuator"!==Fi.type||"]"!==Fi.value?Li():zi()},afterPropertyValue(){if("eof"===Fi.type)throw Wi();switch(Fi.value){case",":return void(Ci="beforePropertyName");case"}":zi()}},afterArrayValue(){if("eof"===Fi.type)throw Wi();switch(Fi.value){case",":return void(Ci="beforeArrayValue");case"]":zi()}},end(){}};function Li(){let e;switch(Fi.type){case"punctuator":switch(Fi.value){case"{":e={};break;case"[":e=[]}break;case"null":case"boolean":case"numeric":case"string":e=Fi.value}if(void 0===xi)xi=e;else{const t=bi[bi.length-1];Array.isArray(t)?t.push(e):t[wi]=e}if(null!==e&&"object"==typeof e)bi.push(e),Ci=Array.isArray(e)?"beforeArrayValue":"beforePropertyName";else{const e=bi[bi.length-1];Ci=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}}function zi(){bi.pop();const e=bi[bi.length-1];Ci=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}function Gi(e){return Vi(void 0===e?`JSON5: invalid end of input at ${vi}:${Ai}`:`JSON5: invalid character '${qi(e)}' at ${vi}:${Ai}`)}function Wi(){return Vi(`JSON5: invalid end of input at ${vi}:${Ai}`)}function Hi(){return Ai-=5,Vi(`JSON5: invalid identifier character at ${vi}:${Ai}`)}function qi(e){const t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){const t=e.charCodeAt(0).toString(16);return"\\x"+("00"+t).substring(t.length)}return e}function Vi(e){const t=new SyntaxError(e);return t.lineNumber=vi,t.columnNumber=Ai,t}var Ji={parse:function(e,t){hi=String(e),Ci="start",bi=[],Ei=0,vi=1,Ai=0,Fi=void 0,wi=void 0,xi=void 0;do{Fi=Ti(),Ui[Ci]()}while("eof"!==Fi.type);return"function"==typeof t?function e(t,n,r){const o=t[n];if(null!=o&&"object"==typeof o)for(const t in o){const n=e(o,t,r);void 0===n?delete o[t]:o[t]=n}return r.call(t,n,o)}({"":xi},"",t):xi},stringify:function(e,t,n){const r=[];let o,s,u,a="",i="";if(null==t||"object"!=typeof t||Array.isArray(t)||(n=t.space,u=t.quote,t=t.replacer),"function"==typeof t)s=t;else if(Array.isArray(t)){o=[];for(const e of t){let t;"string"==typeof e?t=e:("number"==typeof e||e instanceof String||e instanceof Number)&&(t=String(e)),void 0!==t&&o.indexOf(t)<0&&o.push(t)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),"number"==typeof n?n>0&&(n=Math.min(10,Math.floor(n)),i=" ".substr(0,n)):"string"==typeof n&&(i=n.substr(0,10)),l("",{"":e});function l(e,t){let n=t[e];switch(null!=n&&("function"==typeof n.toJSON5?n=n.toJSON5(e):"function"==typeof n.toJSON&&(n=n.toJSON(e))),s&&(n=s.call(t,e,n)),n instanceof Number?n=Number(n):n instanceof String?n=String(n):n instanceof Boolean&&(n=n.valueOf()),n){case null:return"null";case!0:return"true";case!1:return"false"}return"string"==typeof n?c(n):"number"==typeof n?String(n):"object"==typeof n?Array.isArray(n)?function(e){if(r.indexOf(e)>=0)throw TypeError("Converting circular structure to JSON5");r.push(e);let t=a;a+=i;let n,o=[];for(let t=0;t=0)throw TypeError("Converting circular structure to JSON5");r.push(e);let t=a;a+=i;let n,s=o||Object.keys(e),u=[];for(const t of s){const n=l(t,e);if(void 0!==n){let e=d(t)+":";""!==i&&(e+=" "),e+=n,u.push(e)}}if(0===u.length)n="{}";else{let e;if(""===i)e=u.join(","),n="{"+e+"}";else{let r=",\n"+a;e=u.join(r),n="{\n"+a+e+",\n"+t+"}"}}return r.pop(),a=t,n}(n):void 0}function c(e){const t={"'":.1,'"':.2},n={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let r="";for(let o=0;ot[e]e(t));case"copyArray":{const n=t.map(t=>e(t));return Promise.all(n).then(e=>harden(e))}case"copyRecord":{const n=Object.getOwnPropertyNames(t),r=n.map(n=>e(t[n]));return Promise.all(r).then(e=>harden(function(e){const t={};for(const n of e){if(Object(n)!==n)throw new TypeError("iterable for fromEntries should yield objects");const{0:e,1:r}=n;Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r})}return t}(e.map((e,t)=>[n[t],e]))))}default:yu.fail(Cu`unrecognized passStyle ${n}`,TypeError)}})),harden(Ki),harden(Zi);const Xi=harden({doCoerce:ku,doGetEmpty:e=>0,doIsEmpty:e=>0===e,doIsGTE:(e,t)=>e>=t,doIsEqual:(e,t)=>e===t,doAdd:(e,t)=>ku(e+t),doSubtract:(e,t)=>ku(e-t)});harden(Xi);const Qi=harden([]),el=harden({doCoerce:e=>(yu("copyArray"===Ku(e),"value must be an array"),e.forEach(e=>yu.typeof(e,"string")),(e=>{const t=new Set(e);yu(t.size===e.length,Cu`value has duplicates: ${e}`)})(e),e),doGetEmpty:e=>Qi,doIsEmpty:e=>"copyArray"===Ku(e)&&0===e.length,doIsGTE:(e,t)=>{const n=new Set(e);return t.every(e=>n.has(e))},doIsEqual:(e,t)=>{const n=new Set(e);return e.length===t.length&&t.every(e=>n.has(e))},doAdd:(e,t)=>{const n=new Set(e);return t.forEach(e=>{yu(!n.has(e),Cu`left and right have same element ${e}`),n.add(e)}),harden(Array.from(n))},doSubtract:(e,t)=>{const n=new Set(e),r=t.every(e=>n.delete(e));return yu(r,Cu`some of the elements in right (${t}) were not present in left (${e})`),harden(Array.from(n))}});harden(el);const tl=harden([]),nl=e=>{const t=Object.getOwnPropertyNames(e);t.sort();const n=Object.values(e).filter(e=>"string"==typeof e);return n.sort(),[...t,...n].join()},rl=e=>{const t=new Map;return e.forEach(e=>{const n=nl(e);t.has(n)||t.set(n,[]);t.get(n).push(e)}),t},ol=e=>{for(const t of e.values())for(let e=0;e{const n=nl(t);if(!e.has(n))return!1;return e.get(n).some(e=>Ki(e,t))},ul=harden({doCoerce:e=>(yu("copyArray"===Ku(e),"list must be an array"),ol(rl(e)),e),doGetEmpty:e=>tl,doIsEmpty:e=>"copyArray"===Ku(e)&&0===e.length,doIsGTE:(e,t)=>{const n=rl(e);return t.every(e=>sl(n,e))},doIsEqual:(e,t)=>e.length===t.length&&ul.doIsGTE(e,t),doAdd:(e,t)=>{const n=harden([...e,...t]);return ol(rl(n)),n},doSubtract:(e,t)=>{const n=rl(e),r=rl(t);t.forEach(e=>{yu(sl(n,e),Cu`right element ${e} was not in left`)});return harden(e.filter(e=>!sl(r,e)))}});harden(ul);const al={NAT:"nat",SET:"set",STRING_SET:"strSet"};function il(e,t){var n;Zi(n=e,n,"not comparable"),yu.typeof(t,"string");const r={nat:Xi,strSet:el,set:ul}[t];yu(void 0!==r,Cu`unrecognized amountMathKind: ${t}`);const o=new WeakSet,s=ta("amountMath",{getBrand:()=>e,getAmountMathKind:()=>t,make:t=>{const n=r.doCoerce(t),s=harden({brand:e,value:n});return o.add(s),s},coerce:t=>{if(o.has(t))return t;const{brand:n,value:r}=t;return yu(void 0!==n,Cu`The brand in allegedAmount ${t} is undefined. Did you pass a value rather than an amount?`),yu(e===n,Cu`The brand in the allegedAmount ${t} in 'coerce' didn't match the amountMath brand ${e}.`),s.make(r)},getValue:e=>s.coerce(e).value,getEmpty:()=>u,isEmpty:e=>r.doIsEmpty(s.getValue(e)),isGTE:(e,t)=>r.doIsGTE(s.getValue(e),s.getValue(t)),isEqual:(e,t)=>r.doIsEqual(s.getValue(e),s.getValue(t)),add:(e,t)=>s.make(r.doAdd(s.getValue(e),s.getValue(t))),subtract:(e,t)=>s.make(r.doSubtract(s.getValue(e),s.getValue(t)))}),u=s.make(r.doGetEmpty());return s}function ll(e="key"){const t=new WeakMap,n=n=>yu(t.has(n),Cu`${bu(e)} not found: ${n}`);return harden({has:e=>t.has(e),init:(n,r)=>{(n=>{yu(!t.has(n),Cu`${bu(e)} already registered: ${n}`)})(n),t.set(n,r)},get:e=>(n(e),t.get(e)),set:(e,r)=>{n(e),t.set(e,r)},delete:e=>{n(e),t.delete(e)}})}function cl(e,t){return harden({makeInstance:t,makeWeakStore:()=>ll(e)})}harden(al),harden(il),harden((function(e="key"){const t=new Map,n=n=>yu(t.has(n),Cu`${bu(e)} not found: ${n}`);return harden({has:e=>t.has(e),init:(n,r)=>{(n=>{yu(!t.has(n),Cu`${bu(e)} already registered: ${n}`)})(n),t.set(n,r)},get:e=>(n(e),t.get(e)),set:(e,r)=>{n(e),t.set(e,r)},delete:e=>{n(e),t.delete(e)},keys:()=>Array.from(t.keys()),values:()=>Array.from(t.values()),entries:()=>Array.from(t.entries())})})),harden(ll),harden(cl);const dl=cl,pl="issuer",fl="brand",ml="purse",$l="payment",gl="mint",Dl="depositFacet",yl=(e,t)=>`${e} ${t}`,hl=(e,t)=>{const n=Object.getOwnPropertyNames(t);var r;r=e,n.forEach(e=>{yu.typeof(e,"string"),yu(r.includes(e),Cu`key ${bu(e)} was not one of the expected keys ${bu(r)}`)}),yu(0===Object.getOwnPropertySymbols(t).length,Cu`no symbol properties allowed`)},Cl=e=>"presence"===Ku(e)?(yu(Object.isFrozen(e)),yu.equal(Reflect.ownKeys(e).length,0),yu.equal(Object.getPrototypeOf(e),Object.prototype),yu.equal(zu(e),void 0),harden({})):((e=>{if(void 0===e)return;const t=harden(["decimalPlaces"]);hl(t,e)})(e=Gu(e)),e);harden((function(e,t=al.NAT,n){yu.typeof(e,"string"),n=Cl(n);const r=ta(yl(e,fl),{isMyIssuer:e=>wr.when(e,e=>e===$),getAllegedName:()=>e,getDisplayInfo:()=>n}),o=il(r,t),{add:s}=o,u=o.getEmpty(),{makeInstance:a,makeWeakStore:i}=dl("payment",()=>ta(yl(e,$l),{getAllegedBrand:()=>r})),l=i();function c(t){yu(l.has(t),Cu`payment not found for ${e}`)}const d=(e,t)=>{void 0!==t&&yu(o.isEqual(t,e),Cu`payment balance ${e} must equal amount ${t}`)},{makeInstance:p}=dl("depositFacet",t=>ta(yl(e,Dl),{receive:t.deposit})),{makeInstance:f}=dl("purse",()=>{let t=o.getEmpty();const{notifier:n,updater:s}=wu(t),u=ta(yl(e,ml),{deposit:(e,n)=>{if(gu(e))throw new TypeError("deposit does not accept promises as first argument. Instead of passing the promise (deposit(paymentPromise)), consider unwrapping the promise first: paymentPromise.then(actualPayment => deposit(actualPayment))");c(e);const r=l.get(e);d(r,n);const u=o.add(r,t);return l.delete(e),t=u,s.updateState(t),r},withdraw:e=>{e=o.coerce(e);const n=o.subtract(t,e),r=a();return t=n,s.updateState(t),l.init(r,e),r},getCurrentAmount:()=>t,getCurrentAmountNotifier:()=>n,getAllegedBrand:()=>r,getDepositFacet:()=>i}),i=p(u);return u}),m=(e,t)=>{if(e.length>1){const t=new Set;e.forEach(e=>{if(t.has(e))throw new Error("same payment seen twice");t.add(e)})}const n=e.map(l.get).reduce(s,u),r=t.reduce(s,u);yu(o.isEqual(n,r),"rights were not conserved"),e.forEach(e=>l.delete(e));const i=t.map(e=>{const t=a();return l.init(t,e),t});return harden(i)},$=ta(yl(e,pl),{getBrand:()=>r,getAllegedName:()=>e,getAmountMathKind:()=>t,makeEmptyPurse:f,isLive:e=>wr.when(e,e=>l.has(e)),getAmountOf:e=>wr.when(e,e=>(c(e),l.get(e))),burn:(e,t)=>wr.when(e,e=>{c(e);const n=l.get(e);return d(n,t),l.delete(e),n}),claim:(e,t)=>wr.when(e,e=>{c(e);const n=l.get(e);d(n,t);const[r]=m([e],[n]);return r}),combine:(e,t)=>Promise.all(e).then(e=>{e.every(c);const n=e.map(l.get).reduce(s,u);d(n,t);const[r]=m(e,[n]);return r}),split:(e,t)=>wr.when(e,e=>{t=o.coerce(t),c(e);const n=l.get(e),r=o.subtract(n,t);return m([e],[t,r])}),splitMany:(e,t)=>wr.when(e,e=>{c(e),t=t.map(o.coerce);return m([e],t)})}),g=ta(yl(e,gl),{getIssuer:()=>$,mintPayment:e=>{e=o.coerce(e);const t=a();return l.init(t,e),t}});return harden({mint:g,issuer:$,amountMath:o,brand:r})}));harden(async e=>{const[t,n]=await Promise.all([wr(e).getBrand(),wr(e).getAmountMathKind()]);return il(t,n)});function bl(e,t,n){const r=e.slice();return r[6]=t[n].instance.petname,r[7]=t[n].description,r}function El(e){let t,n,r,o,s,u=e[2](e[1])+"";return o=new ii({props:{name:e[0].petname}}),{c(){t=Dn("b"),n=hn(u),r=Cn(),yr(o.$$.fragment)},m(e,u){mn(e,t,u),fn(t,n),fn(t,r),hr(o,t,null),s=!0},p(e,t){(!s||2&t)&&u!==(u=e[2](e[1])+"")&&xn(n,u);const r={};1&t&&(r.name=e[0].petname),o.$set(r)},i(e){s||(ar(o.$$.fragment,e),s=!0)},o(e){ir(o.$$.fragment,e),s=!1},d(e){e&&$n(t),Cr(o)}}}function vl(e){let t,n;return t=new gi({props:{$$slots:{default:[Bl],activator:[Al]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};1027&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Al(e){let t,n,r,o,s,u,a=e[1].length+"";return s=new ii({props:{name:e[0].petname}}),{c(){t=Dn("div"),n=Dn("b"),r=hn(a),o=Cn(),yr(s.$$.fragment),An(n,"class","dotted-underline svelte-1i4p3if"),An(t,"slot","activator")},m(e,a){mn(e,t,a),fn(t,n),fn(n,r),fn(n,o),hr(s,n,null),u=!0},p(e,t){(!u||2&t)&&a!==(a=e[1].length+"")&&xn(r,a);const n={};1&t&&(n.name=e[0].petname),s.$set(n)},i(e){u||(ar(s.$$.fragment,e),u=!0)},o(e){ir(s.$$.fragment,e),u=!1},d(e){e&&$n(t),Cr(s)}}}function Fl(e){let t,n=e[1].map(e[5]).join(", ")+"";return{c(){t=hn(n)},m(e,n){mn(e,t,n)},p(e,r){2&r&&n!==(n=e[1].map(e[5]).join(", ")+"")&&xn(t,n)},i:Ht,o:Ht,d(e){e&&$n(t)}}}function wl(e){let t,n,r=e[1],o=[];for(let t=0;tir(o[e],1,1,()=>{o[e]=null});return{c(){for(let e=0;e{a[s]=null}),ur(),r=a[n],r||(r=a[n]=u[n](e),r.c()),ar(r,1),r.m(o.parentNode,o))},i(e){s||(ar(r),s=!0)},o(e){ir(r),s=!1},d(e){e&&$n(t),a[n].d(e),e&&$n(o)}}}function Pl(e){let t,n,r,o,s;const u=[vl,El],a=[];function i(e,t){return 2&t&&(n=!(!Array.isArray(e[1])||0===e[1].length)),n?0:1}return r=i(e,-1),o=a[r]=u[r](e),{c(){t=Dn("div"),o.c()},m(e,n){mn(e,t,n),a[r].m(t,null),s=!0},p(e,[n]){let s=r;r=i(e,n),r===s?a[r].p(e,n):(sr(),ir(a[s],1,1,()=>{a[s]=null}),ur(),o=a[r],o||(o=a[r]=u[r](e),o.c()),ar(o,1),o.m(t,null))},i(e){s||(ar(o),s=!0)},o(e){ir(o),s=!1},d(e){e&&$n(t),a[r].d()}}}function Sl(e,t,n){let{amount:r}=t,{displayInfo:o}=t;let s,u;return e.$$set=e=>{"amount"in e&&n(3,r=e.amount),"displayInfo"in e&&n(4,o=e.displayInfo)},e.$$.update=()=>{8&e.$$.dirty&&n(0,({brand:s,value:u}=r),s,(n(1,u),n(3,r)))},[s,u,e=>function(e,t){const{amountMathKind:n=al.NAT,decimalPlaces:r=0}=t||{};if(n!==al.NAT)return""+e.length;const o=BigInt(e);if(!r)return""+o;const s=10n**BigInt(r),u=""+o/s,a=(""+BigInt(o%s)).padStart(r,"0").replace(/0+$/,"").padEnd(2,"0");return a?`${u}.${a}`:""+u}(e,o),r,o,e=>JSON.stringify(e)]}class kl extends vr{constructor(e){super(),Er(this,e,Sl,Pl,Xt,{amount:3,displayInfo:4})}}function Il(e){let t,n,r=[{key:n="path-"+e[0]},e[1]],o={};for(let e=0;e{"id"in e&&n(0,r=e.id),"data"in e&&n(1,o=e.data)},[r,o]}class Nl extends vr{constructor(e){super(),Er(this,e,Tl,Il,Xt,{id:0,data:1})}}function Ol(e){let t,n,r=[{key:n="polygon-"+e[0]},e[1]],o={};for(let e=0;e{"id"in e&&n(0,r=e.id),"data"in e&&n(1,o=e.data)},[r,o]}class Rl extends vr{constructor(e){super(),Er(this,e,_l,Ol,Xt,{id:0,data:1})}}function jl(e){let t;return{c(){t=yn("g")},m(n,r){mn(n,t,r),t.innerHTML=e[0]},p(e,[n]){1&n&&(t.innerHTML=e[0])},i:Ht,o:Ht,d(e){e&&$n(t)}}}function Ml(e,t,n){let r,o=870711;let{data:s}=t;function u(e){if(!e||!e.raw)return null;let t=e.raw;const n={};return t=t.replace(/\s(?:xml:)?id=["']?([^"')\s]+)/g,(e,t)=>{const r=(o+=1,"fa-"+o.toString(16));return n[t]=r,` id="${r}"`}),t=t.replace(/#(?:([^'")\s]+)|xpointer\(id\((['"]?)([^')]+)\2\)\))/g,(e,t,r,o)=>{const s=t||o;return s&&n[s]?"#"+n[s]:e}),t}return e.$$set=e=>{"data"in e&&n(1,s=e.data)},e.$$.update=()=>{2&e.$$.dirty&&n(0,r=u(s))},[r,s]}class Ul extends vr{constructor(e){super(),Er(this,e,Ml,jl,Xt,{data:1})}}function Ll(e){let t,n,r,o;const s=e[13].default,u=en(s,e,e[12],null);return{c(){t=yn("svg"),u&&u.c(),An(t,"version","1.1"),An(t,"class",n="fa-icon "+e[0]+" svelte-1dof0an"),An(t,"x",e[8]),An(t,"y",e[9]),An(t,"width",e[1]),An(t,"height",e[2]),An(t,"aria-label",e[11]),An(t,"role",r=e[11]?"img":"presentation"),An(t,"viewBox",e[3]),An(t,"style",e[10]),Sn(t,"fa-spin",e[4]),Sn(t,"fa-pulse",e[6]),Sn(t,"fa-inverse",e[5]),Sn(t,"fa-flip-horizontal","horizontal"===e[7]),Sn(t,"fa-flip-vertical","vertical"===e[7])},m(e,n){mn(e,t,n),u&&u.m(t,null),o=!0},p(e,[a]){u&&u.p&&4096&a&&nn(u,s,e,e[12],a,null,null),(!o||1&a&&n!==(n="fa-icon "+e[0]+" svelte-1dof0an"))&&An(t,"class",n),(!o||256&a)&&An(t,"x",e[8]),(!o||512&a)&&An(t,"y",e[9]),(!o||2&a)&&An(t,"width",e[1]),(!o||4&a)&&An(t,"height",e[2]),(!o||2048&a)&&An(t,"aria-label",e[11]),(!o||2048&a&&r!==(r=e[11]?"img":"presentation"))&&An(t,"role",r),(!o||8&a)&&An(t,"viewBox",e[3]),(!o||1024&a)&&An(t,"style",e[10]),17&a&&Sn(t,"fa-spin",e[4]),65&a&&Sn(t,"fa-pulse",e[6]),33&a&&Sn(t,"fa-inverse",e[5]),129&a&&Sn(t,"fa-flip-horizontal","horizontal"===e[7]),129&a&&Sn(t,"fa-flip-vertical","vertical"===e[7])},i(e){o||(ar(u,e),o=!0)},o(e){ir(u,e),o=!1},d(e){e&&$n(t),u&&u.d(e)}}}function zl(e,t,n){let{class:r}=t,{width:o}=t,{height:s}=t,{box:u}=t,{spin:a=!1}=t,{inverse:i=!1}=t,{pulse:l=!1}=t,{flip:c=null}=t,{x:d}=t,{y:p}=t,{style:f}=t,{label:m}=t,{$$slots:$={},$$scope:g}=t;return e.$$set=e=>{"class"in e&&n(0,r=e.class),"width"in e&&n(1,o=e.width),"height"in e&&n(2,s=e.height),"box"in e&&n(3,u=e.box),"spin"in e&&n(4,a=e.spin),"inverse"in e&&n(5,i=e.inverse),"pulse"in e&&n(6,l=e.pulse),"flip"in e&&n(7,c=e.flip),"x"in e&&n(8,d=e.x),"y"in e&&n(9,p=e.y),"style"in e&&n(10,f=e.style),"label"in e&&n(11,m=e.label),"$$scope"in e&&n(12,g=e.$$scope)},[r,o,s,u,a,i,l,c,d,p,f,m,g,$]}class Gl extends vr{constructor(e){super(),Er(this,e,zl,Ll,Xt,{class:0,width:1,height:2,box:3,spin:4,inverse:5,pulse:6,flip:7,x:8,y:9,style:10,label:11})}}function Wl(e,t,n){const r=e.slice();return r[24]=t[n],r[26]=n,r}function Hl(e,t,n){const r=e.slice();return r[27]=t[n],r[26]=n,r}function ql(e){let t,n,r,o,s=e[0].paths&&Vl(e),u=e[0].polygons&&Kl(e),a=e[0].raw&&Zl(e);return{c(){s&&s.c(),t=Cn(),u&&u.c(),n=Cn(),a&&a.c(),r=bn()},m(e,i){s&&s.m(e,i),mn(e,t,i),u&&u.m(e,i),mn(e,n,i),a&&a.m(e,i),mn(e,r,i),o=!0},p(e,o){e[0].paths?s?(s.p(e,o),1&o&&ar(s,1)):(s=Vl(e),s.c(),ar(s,1),s.m(t.parentNode,t)):s&&(sr(),ir(s,1,1,()=>{s=null}),ur()),e[0].polygons?u?(u.p(e,o),1&o&&ar(u,1)):(u=Kl(e),u.c(),ar(u,1),u.m(n.parentNode,n)):u&&(sr(),ir(u,1,1,()=>{u=null}),ur()),e[0].raw?a?(a.p(e,o),1&o&&ar(a,1)):(a=Zl(e),a.c(),ar(a,1),a.m(r.parentNode,r)):a&&(sr(),ir(a,1,1,()=>{a=null}),ur())},i(e){o||(ar(s),ar(u),ar(a),o=!0)},o(e){ir(s),ir(u),ir(a),o=!1},d(e){s&&s.d(e),e&&$n(t),u&&u.d(e),e&&$n(n),a&&a.d(e),e&&$n(r)}}}function Vl(e){let t,n,r=e[0].paths,o=[];for(let t=0;tir(o[e],1,1,()=>{o[e]=null});return{c(){for(let e=0;eir(o[e],1,1,()=>{o[e]=null});return{c(){for(let e=0;eDr(t,"data",o)),{c(){yr(t.$$.fragment)},m(e,n){hr(t,e,n),r=!0},p(e,r){const o={};!n&&1&r&&(n=!0,o.data=e[0],Kn(()=>n=!1)),t.$set(o)},i(e){r||(ar(t.$$.fragment,e),r=!0)},o(e){ir(t.$$.fragment,e),r=!1},d(e){Cr(t,e)}}}function Xl(e){let t;const n=e[14].default,r=en(n,e,e[16],null),o=r||function(e){let t,n,r=e[0]&&ql(e);return{c(){r&&r.c(),t=bn()},m(e,o){r&&r.m(e,o),mn(e,t,o),n=!0},p(e,n){e[0]?r?(r.p(e,n),1&n&&ar(r,1)):(r=ql(e),r.c(),ar(r,1),r.m(t.parentNode,t)):r&&(sr(),ir(r,1,1,()=>{r=null}),ur())},i(e){n||(ar(r),n=!0)},o(e){ir(r),n=!1},d(e){r&&r.d(e),e&&$n(t)}}}(e);return{c(){o&&o.c()},m(e,n){o&&o.m(e,n),t=!0},p(e,t){r?r.p&&65536&t&&nn(r,n,e,e[16],t,null,null):o&&o.p&&1&t&&o.p(e,t)},i(e){t||(ar(o,e),t=!0)},o(e){ir(o,e),t=!1},d(e){o&&o.d(e)}}}function Ql(e){let t,n;return t=new Gl({props:{label:e[6],width:e[7],height:e[8],box:e[10],style:e[9],spin:e[2],flip:e[5],inverse:e[3],pulse:e[4],class:e[1],$$slots:{default:[Xl]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,[n]){const r={};64&n&&(r.label=e[6]),128&n&&(r.width=e[7]),256&n&&(r.height=e[8]),1024&n&&(r.box=e[10]),512&n&&(r.style=e[9]),4&n&&(r.spin=e[2]),32&n&&(r.flip=e[5]),8&n&&(r.inverse=e[3]),16&n&&(r.pulse=e[4]),2&n&&(r.class=e[1]),65537&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function ec(e,t,n){let r,o,s,u,{class:a=""}=t,{data:i}=t,{scale:l=1}=t,{spin:c=!1}=t,{inverse:d=!1}=t,{pulse:p=!1}=t,{flip:f=null}=t,{label:m=null}=t,{self:$=null}=t,{style:g=null}=t;function D(){let e=1;return void 0!==l&&(e=Number(l)),isNaN(e)||e<=0?(console.warn('Invalid prop: prop "scale" should be a number over 0.'),1):1*e}function y(){return $?Math.max($.width,$.height)/16:1}let{$$slots:h={},$$scope:C}=t;return e.$$set=e=>{"class"in e&&n(1,a=e.class),"data"in e&&n(11,i=e.data),"scale"in e&&n(12,l=e.scale),"spin"in e&&n(2,c=e.spin),"inverse"in e&&n(3,d=e.inverse),"pulse"in e&&n(4,p=e.pulse),"flip"in e&&n(5,f=e.flip),"label"in e&&n(6,m=e.label),"self"in e&&n(0,$=e.self),"style"in e&&n(13,g=e.style),"$$scope"in e&&n(16,C=e.$$scope)},e.$$.update=()=>{14336&e.$$.dirty&&(!function(){if(void 0===i)return;const e=function(e){if("iconName"in e&&"icon"in e){let t={},n=e.icon,r=e.iconName,o={width:n[0],height:n[1],paths:[{d:n[4]}]};return t[r]=o,t}return e}(i),[t]=Object.keys(e),r=e[t];r.paths||(r.paths=[]),r.d&&r.paths.push({d:r.d}),r.polygons||(r.polygons=[]),r.points&&r.polygons.push({points:r.points}),n(0,$=r)}(),n(7,r=$?$.width/y()*D():0),n(8,o=$?$.height/y()*D():0),n(9,s=function(){let e="";null!==g&&(e+=g);let t=D();return 1===t?e:(""===e||e.endsWith(";")||(e+="; "),`${e}font-size: ${t}em`)}()),n(10,u=$?`0 0 ${$.width} ${$.height}`:`0 0 ${r} ${o}`))},[$,a,c,d,p,f,m,r,o,s,u,i,l,g,h,function(e){$=e,n(0,$)},C]}class tc extends vr{constructor(e){super(),Er(this,e,ec,Ql,Xt,{class:1,data:11,scale:12,spin:2,inverse:3,pulse:4,flip:5,label:6,self:0,style:13})}}function nc(e){let t,n,r,o,s,u;return{c(){t=Dn("div"),An(t,"class","bg-black fixed top-0 left-0 z-10 w-full h-full"),Pn(t,"opacity",e[0])},m(n,r){mn(n,t,r),o=!0,s||(u=En(t,"click",e[3]),s=!0)},p(e,[n]){(!o||1&n)&&Pn(t,"opacity",e[0])},i(s){o||(Jn(()=>{r&&r.end(1),n||(n=cr(t,oo,e[1])),n.start()}),o=!0)},o(s){n&&n.invalidate(),r=dr(t,oo,e[2]),o=!1},d(e){e&&$n(t),e&&r&&r.end(),s=!1,u()}}}function rc(e,t,n){let{opacity:r=.5}=t,{inProps:o={duration:200,easing:no}}=t,{outProps:s={duration:200,easing:ro}}=t;return e.$$set=e=>{"opacity"in e&&n(0,r=e.opacity),"inProps"in e&&n(1,o=e.inProps),"outProps"in e&&n(2,s=e.outProps)},[r,o,s,function(t){Ln(e,t)}]}const oc=class extends vr{constructor(e){super(),Er(this,e,rc,nc,Xt,{opacity:0,inProps:1,outProps:2})}},sc=e=>({}),uc=e=>({}),ac=e=>({}),ic=e=>({});function lc(e){let t,n,r,o,s,u,a,i,l,c,d;n=new oc({props:{opacity:e[1]}}),n.$on("click",e[12]);const p=e[11].title,f=en(p,e,e[10],ic),m=e[11].default,$=en(m,e,e[10],null),g=e[11].actions,D=en(g,e,e[10],uc);return{c(){t=Dn("div"),yr(n.$$.fragment),r=Cn(),o=Dn("div"),s=Dn("div"),u=Dn("div"),f&&f.c(),a=Cn(),$&&$.c(),i=Cn(),l=Dn("div"),D&&D.c(),An(u,"class",e[5]),An(l,"class",e[6]),An(s,"class",e[4]),An(o,"class","h-full w-full absolute flex items-center justify-center"),An(t,"class","fixed w-full h-full top-0 left-0 z-30")},m(e,c){mn(e,t,c),hr(n,t,null),fn(t,r),fn(t,o),fn(o,s),fn(s,u),f&&f.m(u,null),fn(s,a),$&&$.m(s,null),fn(s,i),fn(s,l),D&&D.m(l,null),d=!0},p(e,t){const r={};2&t&&(r.opacity=e[1]),n.$set(r),f&&f.p&&1024&t&&nn(f,p,e,e[10],t,ac,ic),(!d||32&t)&&An(u,"class",e[5]),$&&$.p&&1024&t&&nn($,m,e,e[10],t,null,null),D&&D.p&&1024&t&&nn(D,g,e,e[10],t,sc,uc),(!d||64&t)&&An(l,"class",e[6]),(!d||16&t)&&An(s,"class",e[4])},i(t){d||(ar(n.$$.fragment,t),ar(f,t),ar($,t),ar(D,t),c||Jn(()=>{c=cr(s,ao,e[3]),c.start()}),d=!0)},o(e){ir(n.$$.fragment,e),ir(f,e),ir($,e),ir(D,e),d=!1},d(e){e&&$n(t),Cr(n),f&&f.d(e),$&&$.d(e),D&&D.d(e)}}}function cc(e){let t,n,r=e[0]&&lc(e);return{c(){r&&r.c(),t=bn()},m(e,o){r&&r.m(e,o),mn(e,t,o),n=!0},p(e,[n]){e[0]?r?(r.p(e,n),1&n&&ar(r,1)):(r=lc(e),r.c(),ar(r,1),r.m(t.parentNode,t)):r&&(sr(),ir(r,1,1,()=>{r=null}),ur())},i(e){n||(ar(r),n=!0)},o(e){ir(r),n=!1},d(e){r&&r.d(e),e&&$n(t)}}}const dc="items-center z-50 rounded bg-white dark:bg-dark-400 p-4 elevation-4",pc="text-lg font-bold pb-4",fc="flex w-full justify-end pt-4";function mc(e,t,n){let{value:r}=t,{classes:o=dc}=t,{titleClasses:s=pc}=t,{actionsClasses:u=fc}=t,{opacity:a=.5}=t,{persistent:i=!1}=t,{transitionProps:l={duration:150,easing:no,delay:150}}=t;const c=new Tr(o,dc),d=new Tr(s,pc),p=new Tr(u,fc);let{$$slots:f={},$$scope:m}=t;let $,g,D;return e.$$set=e=>{n(16,t=Vt(Vt({},t),rn(e))),"value"in e&&n(0,r=e.value),"classes"in e&&n(7,o=e.classes),"titleClasses"in e&&n(8,s=e.titleClasses),"actionsClasses"in e&&n(9,u=e.actionsClasses),"opacity"in e&&n(1,a=e.opacity),"persistent"in e&&n(2,i=e.persistent),"transitionProps"in e&&n(3,l=e.transitionProps),"$$scope"in e&&n(10,m=e.$$scope)},e.$$.update=()=>{n(4,$=c.flush().add(o,!0,dc).add(t.class).get()),256&e.$$.dirty&&n(5,g=d.flush().add(s,!0,fc).get()),512&e.$$.dirty&&n(6,D=p.flush().add(u,!0,fc).get())},t=rn(t),[r,a,i,l,$,g,D,o,s,u,m,f,()=>!i&&n(0,r=!1)]}class $c extends vr{constructor(e){super(),Er(this,e,mc,cc,Xt,{value:0,classes:7,titleClasses:8,actionsClasses:9,opacity:1,persistent:2,transitionProps:3})}}function gc(e){let t;return{c(){t=hn("Cancel")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Dc(e){let t,n,r,o;return t=new eo({props:{text:!0,color:"secondary",$$slots:{default:[gc]},$$scope:{ctx:e}}}),t.$on("click",e[3]),{c(){yr(t.$$.fragment)},m(s,u){hr(t,s,u),n=!0,r||(o=En(window,"keydown",e[1]),r=!0)},p(e,[n]){const r={};16&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e),r=!1,o()}}}function yc(e,t,n){const r=Un();let{isDefault:o=!1}=t;return e.$$set=e=>{"isDefault"in e&&n(2,o=e.isDefault)},[r,e=>{if("Escape"!==e.key)return o&&"Enter"===e.key?(e.stopPropagation(),e.preventDefault(),void r("click")):void 0;r("click")},o,e=>{e.stopPropagation(),r("click")}]}class hc extends vr{constructor(e){super(),Er(this,e,yc,Dc,Xt,{isDefault:2})}}function Cc(e){let t,n;return{c(){t=Dn("h2"),n=hn(e[0]),An(t,"slot","title")},m(e,r){mn(e,t,r),fn(t,n)},p(e,t){1&t&&xn(n,e[0])},d(e){e&&$n(t)}}}function bc(e){let t,n,r;return n=new hc({props:{isDefault:!0}}),n.$on("click",e[5]),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","actions"),An(t,"class","svelte-1cnvmmn")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p:Ht,i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function Ec(e){let t,n,r,o;return{c(){t=Cn(),n=Dn("pre"),r=hn(e[2]),o=Cn(),An(n,"class","svelte-1cnvmmn")},m(e,s){mn(e,t,s),mn(e,n,s),fn(n,r),mn(e,o,s)},p(e,t){xn(r,e[2])},i:Ht,o:Ht,d(e){e&&$n(t),e&&$n(n),e&&$n(o)}}}function vc(e){let t,n,r,o,s,u;function a(t){e[6].call(null,t)}n=new eo({props:{class:"right",icon:"code",small:!0,text:!0,fab:!0,flat:!0}}),n.$on("click",e[4]);let i={class:Ac,$$slots:{default:[Ec],actions:[bc],title:[Cc]},$$scope:{ctx:e}};return void 0!==e[1]&&(i.value=e[1]),o=new $c({props:i}),Gn.push(()=>Dr(o,"value",a)),{c(){t=Dn("div"),yr(n.$$.fragment),r=Cn(),yr(o.$$.fragment),An(t,"class","svelte-1cnvmmn")},m(e,s){mn(e,t,s),hr(n,t,null),mn(e,r,s),hr(o,e,s),u=!0},p(e,[t]){const r={};128&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r);const u={};135&t&&(u.$$scope={dirty:t,ctx:e}),!s&&2&t&&(s=!0,u.value=e[1],Kn(()=>s=!1)),o.$set(u)},i(e){u||(ar(n.$$.fragment,e),ar(o.$$.fragment,e),u=!0)},o(e){ir(n.$$.fragment,e),ir(o.$$.fragment,e),u=!1},d(e){e&&$n(t),Cr(n),e&&$n(r),Cr(o,e)}}}const Ac=e=>e+"patchModal";function Fc(e,t,n){let{title:r="Debug Info"}=t,{target:o}=t,s=!1;let u;return e.$$set=e=>{"title"in e&&n(0,r=e.title),"target"in e&&n(3,o=e.target)},e.$$.update=()=>{8&e.$$.dirty&&n(2,u=function e(t,n,r,o=new WeakSet,s=0){if(Object(t)!==t)return"bigint"==typeof t?t+"n":JSON.stringify(t,null,n);if("function"==typeof t)return`[Function ${t.name||""}]`;if(gu(t))return"[Promise]";if(t instanceof Error)return JSON.stringify(`${t.name}: ${t.message}`);if(o.has(t))return"[Circular]";o.add(t);let u="";const a=void 0===n?"":" ".repeat(n);if(r&&void 0!==r(t))u+=""+t;else if(Array.isArray(t)){u+="[";let i="";for(let l=0;l0?" ":""}`,u+=e(t[l],n,r,o,s+1),i=",";return""!==i&&""!==a&&(u+="\n"+a.repeat(s)),u+="}",o.delete(t),u}(o,2))},[r,s,u,o,()=>n(1,s=!0),()=>n(1,s=!1),function(e){s=e,n(1,s)}]}class wc extends vr{constructor(e){super(),Er(this,e,Fc,vc,Xt,{title:0,target:3})}}function xc(e){let t,n;return t=new eo({props:{$$slots:{default:[Pc]},$$scope:{ctx:e}}}),t.$on("click",(function(){Zt(e[1])&&e[1].apply(this,arguments)})),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(n,r){e=n;const o={};4&r&&(o.$$scope={dirty:r,ctx:e}),t.$set(o)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Bc(e){let t,n,r,o,s;return{c(){t=hn("("),n=Dn("b"),r=hn("board:"),o=hn(e[0]),s=hn(")")},m(e,u){mn(e,t,u),mn(e,n,u),fn(n,r),fn(n,o),mn(e,s,u)},p(e,t){1&t&&xn(o,e[0])},i:Ht,o:Ht,d(e){e&&$n(t),e&&$n(n),e&&$n(s)}}}function Pc(e){let t;return{c(){t=hn("Publish")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Sc(e){let t,n,r,o;const s=[Bc,xc],u=[];function a(e,t){return e[0]?0:e[1]?1:-1}return~(t=a(e))&&(n=u[t]=s[t](e)),{c(){n&&n.c(),r=bn()},m(e,n){~t&&u[t].m(e,n),mn(e,r,n),o=!0},p(e,[o]){let i=t;t=a(e),t===i?~t&&u[t].p(e,o):(n&&(sr(),ir(u[i],1,1,()=>{u[i]=null}),ur()),~t?(n=u[t],n||(n=u[t]=s[t](e),n.c()),ar(n,1),n.m(r.parentNode,r)):n=null)},i(e){o||(ar(n),o=!0)},o(e){ir(n),o=!1},d(e){~t&&u[t].d(e),e&&$n(r)}}}function kc(e,t,n){let{id:r}=t,{onPublish:o}=t;return e.$$set=e=>{"id"in e&&n(0,r=e.id),"onPublish"in e&&n(1,o=e.onPublish)},[r,o]}class Ic extends vr{constructor(e){super(),Er(this,e,kc,Sc,Xt,{id:0,onPublish:1})}}function Tc(e,t){const n=n=>{e.contains(n.target)||t()};return window.addEventListener("click",n),{destroy:()=>{window.removeEventListener("click",n)}}}const Nc=e=>({}),Oc=e=>({}),_c=e=>({}),Rc=e=>({});function jc(e){let t;const n=e[38].options,r=en(n,e,e[37],Oc),o=r||function(e){let t,n,r,o,s,u;function a(t){e[41].call(null,t)}let i={class:e[18],selectedClasses:e[19],itemClasses:e[20],select:!0,dense:e[10],items:e[25]};void 0!==e[0]&&(i.value=e[0]);return n=new To({props:i}),Gn.push(()=>Dr(n,"value",a)),n.$on("change",e[42]),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"class",e[27])},m(r,a){mn(r,t,a),hr(n,t,null),o=!0,s||(u=En(t,"click",e[43]),s=!0)},p(e,s){const u={};262144&s[0]&&(u.class=e[18]),524288&s[0]&&(u.selectedClasses=e[19]),1048576&s[0]&&(u.itemClasses=e[20]),1024&s[0]&&(u.dense=e[10]),33554432&s[0]&&(u.items=e[25]),!r&&1&s[0]&&(r=!0,u.value=e[0],Kn(()=>r=!1)),n.$set(u),(!o||134217728&s[0])&&An(t,"class",e[27])},i(e){o||(ar(n.$$.fragment,e),o=!0)},o(e){ir(n.$$.fragment,e),o=!1},d(e){e&&$n(t),Cr(n),s=!1,u()}}}(e);return{c(){o&&o.c()},m(e,n){o&&o.m(e,n),t=!0},p(e,t){r?r.p&&64&t[1]&&nn(r,n,e,e[37],t,Nc,Oc):o&&o.p&&169608195&t[0]&&o.p(e,t)},i(e){t||(ar(o,e),t=!0)},o(e){ir(o,e),t=!1},d(e){o&&o.d(e)}}}function Mc(e){let t,n,r,o,s,u;const a=e[38].select,i=en(a,e,e[37],Rc),l=i||function(e){let t,n;return t=new qs({props:{select:!0,dense:e[10],focused:e[1],autocomplete:e[12],value:e[24],outlined:e[5],label:e[3],placeholder:e[6],hint:e[7],error:e[8],append:e[9],persistentHint:e[11],color:e[4],add:e[21],remove:e[22],replace:e[23],noUnderline:e[13],class:e[14],appendClasses:e[2],labelClasses:e[15],inputClasses:e[16],prependClasses:e[17],appendReverse:e[1]}}),t.$on("click",e[30]),t.$on("click-append",e[39]),t.$on("click",e[40]),t.$on("input",e[29]),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};1024&n[0]&&(r.dense=e[10]),2&n[0]&&(r.focused=e[1]),4096&n[0]&&(r.autocomplete=e[12]),16777216&n[0]&&(r.value=e[24]),32&n[0]&&(r.outlined=e[5]),8&n[0]&&(r.label=e[3]),64&n[0]&&(r.placeholder=e[6]),128&n[0]&&(r.hint=e[7]),256&n[0]&&(r.error=e[8]),512&n[0]&&(r.append=e[9]),2048&n[0]&&(r.persistentHint=e[11]),16&n[0]&&(r.color=e[4]),2097152&n[0]&&(r.add=e[21]),4194304&n[0]&&(r.remove=e[22]),8388608&n[0]&&(r.replace=e[23]),8192&n[0]&&(r.noUnderline=e[13]),16384&n[0]&&(r.class=e[14]),4&n[0]&&(r.appendClasses=e[2]),32768&n[0]&&(r.labelClasses=e[15]),65536&n[0]&&(r.inputClasses=e[16]),131072&n[0]&&(r.prependClasses=e[17]),2&n[0]&&(r.appendReverse=e[1]),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}(e);let c=e[1]&&jc(e);return{c(){t=Dn("div"),l&&l.c(),n=Cn(),c&&c.c(),An(t,"class",e[26])},m(a,i){mn(a,t,i),l&&l.m(t,null),fn(t,n),c&&c.m(t,null),o=!0,s||(u=sn(r=Tc.call(null,t,e[31])),s=!0)},p(e,n){i?i.p&&64&n[1]&&nn(i,a,e,e[37],n,_c,Rc):l&&l.p&&31719422&n[0]&&l.p(e,n),e[1]?c?(c.p(e,n),2&n[0]&&ar(c,1)):(c=jc(e),c.c(),ar(c,1),c.m(t,null)):c&&(sr(),ir(c,1,1,()=>{c=null}),ur()),(!o||67108864&n[0])&&An(t,"class",e[26])},i(e){o||(ar(l,e),ar(c),o=!0)},o(e){ir(l,e),ir(c),o=!1},d(e){e&&$n(t),l&&l.d(e),c&&c.d(),s=!1,u()}}}const Uc="absolute left-0 bg-white rounded elevation-3 w-full z-20 dark:bg-dark-500",Lc="cursor-pointer relative pb-4";function zc(e,t,n){const r=e=>e;let{items:o=[]}=t,{value:s=""}=t;let{label:u=""}=t,{selectedLabel:a}=t,{color:i="primary"}=t,{outlined:l=!1}=t,{placeholder:c=""}=t,{hint:d=""}=t,{error:p=!1}=t,{append:f="arrow_drop_down"}=t,{dense:m=!1}=t,{persistentHint:$=!1}=t,{autocomplete:g=!1}=t,{noUnderline:D=!1}=t,{showList:y=!1}=t,{classes:h=Lc}=t,{optionsClasses:C=Uc}=t,{inputWrapperClasses:b=r}=t,{appendClasses:E=r}=t,{labelClasses:v=r}=t,{inputClasses:A=r}=t,{prependClasses:F=r}=t,{listClasses:w=r}=t,{selectedClasses:x=r}=t,{itemClasses:B=r}=t,{add:P=""}=t,{remove:S=""}=t,{replace:k=""}=t,I=[];const T=Un();let N="",O=null;const _=new Tr(h,Lc),R=new Tr(C,Uc);let{$$slots:j={},$$scope:M}=t;let U,L,z;return e.$$set=e=>{n(49,t=Vt(Vt({},t),rn(e))),"items"in e&&n(32,o=e.items),"value"in e&&n(0,s=e.value),"label"in e&&n(3,u=e.label),"selectedLabel"in e&&n(34,a=e.selectedLabel),"color"in e&&n(4,i=e.color),"outlined"in e&&n(5,l=e.outlined),"placeholder"in e&&n(6,c=e.placeholder),"hint"in e&&n(7,d=e.hint),"error"in e&&n(8,p=e.error),"append"in e&&n(9,f=e.append),"dense"in e&&n(10,m=e.dense),"persistentHint"in e&&n(11,$=e.persistentHint),"autocomplete"in e&&n(12,g=e.autocomplete),"noUnderline"in e&&n(13,D=e.noUnderline),"showList"in e&&n(1,y=e.showList),"classes"in e&&n(35,h=e.classes),"optionsClasses"in e&&n(36,C=e.optionsClasses),"inputWrapperClasses"in e&&n(14,b=e.inputWrapperClasses),"appendClasses"in e&&n(2,E=e.appendClasses),"labelClasses"in e&&n(15,v=e.labelClasses),"inputClasses"in e&&n(16,A=e.inputClasses),"prependClasses"in e&&n(17,F=e.prependClasses),"listClasses"in e&&n(18,w=e.listClasses),"selectedClasses"in e&&n(19,x=e.selectedClasses),"itemClasses"in e&&n(20,B=e.itemClasses),"add"in e&&n(21,P=e.add),"remove"in e&&n(22,S=e.remove),"replace"in e&&n(23,k=e.replace),"$$scope"in e&&n(37,M=e.$$scope)},e.$$.update=()=>{if(2&e.$$.dirty[1]&&n(44,I=o.map(e=>"object"!=typeof e?{value:e,text:e}:e)),1&e.$$.dirty[0]|8200&e.$$.dirty[1])if(void 0!==a)n(24,N=a);else if(void 0!==s){let e=I.find(e=>e.value===s);n(24,N=e?e.text:"")}else n(24,N="");24576&e.$$.dirty[1]&&n(25,U=I.filter(e=>!O||e.text.toLowerCase().includes(O))),n(26,L=_.flush().add(h,!0,Lc).add(t.class).get()),32&e.$$.dirty[0]|32&e.$$.dirty[1]&&n(27,z=R.flush().add(C,!0,Uc).add("rounded-t-none",!l).get()),1024&e.$$.dirty[0]&&m&&n(2,E=e=>e.replace("pt-4","pt-3"))},t=rn(t),[s,y,E,u,i,l,c,d,p,f,m,$,g,D,b,v,A,F,w,x,B,P,S,k,N,U,L,z,T,function({target:e}){n(45,O=e.value.toLowerCase())},function(){n(1,y=!!g||!y)},()=>n(1,y=!1),o,"",a,h,C,M,j,e=>n(1,y=!y),function(t){Ln(e,t)},function(e){s=e,n(0,s)},({detail:e})=>{T("change",e)},()=>n(1,y=!1)]}class Gc extends vr{constructor(e){super(),Er(this,e,zc,Mc,Xt,{items:32,value:0,text:33,label:3,selectedLabel:34,color:4,outlined:5,placeholder:6,hint:7,error:8,append:9,dense:10,persistentHint:11,autocomplete:12,noUnderline:13,showList:1,classes:35,optionsClasses:36,inputWrapperClasses:14,appendClasses:2,labelClasses:15,inputClasses:16,prependClasses:17,listClasses:18,selectedClasses:19,itemClasses:20,add:21,remove:22,replace:23},[-1,-1])}get text(){return this.$$.ctx[33]}}function Wc(e){let t;return{c(){t=hn("Unknown brand. This payment cannot be verified.")},m(e,n){mn(e,t,n)},p:Ht,i:Ht,o:Ht,d(e){e&&$n(t)}}}function Hc(e){let t,n,r,o=e[1]&&Vc(e),s=e[3]&&Yc(e);return{c(){o&&o.c(),t=Cn(),s&&s.c(),n=bn()},m(e,u){o&&o.m(e,u),mn(e,t,u),s&&s.m(e,u),mn(e,n,u),r=!0},p(e,r){e[1]?o?(o.p(e,r),2&r&&ar(o,1)):(o=Vc(e),o.c(),ar(o,1),o.m(t.parentNode,t)):o&&(sr(),ir(o,1,1,()=>{o=null}),ur()),e[3]?s?(s.p(e,r),8&r&&ar(s,1)):(s=Yc(e),s.c(),ar(s,1),s.m(n.parentNode,n)):s&&(sr(),ir(s,1,1,()=>{s=null}),ur())},i(e){r||(ar(o),ar(s),r=!0)},o(e){ir(o),ir(s),r=!1},d(e){o&&o.d(e),e&&$n(t),s&&s.d(e),e&&$n(n)}}}function qc(e){let t,n,r=e[1]&&ed(e);return{c(){r&&r.c(),t=bn()},m(e,o){r&&r.m(e,o),mn(e,t,o),n=!0},p(e,n){e[1]?r?(r.p(e,n),2&n&&ar(r,1)):(r=ed(e),r.c(),ar(r,1),r.m(t.parentNode,t)):r&&(sr(),ir(r,1,1,()=>{r=null}),ur())},i(e){n||(ar(r),n=!0)},o(e){ir(r),n=!1},d(e){r&&r.d(e),e&&$n(t)}}}function Vc(e){let t,n,r,o=(!e[2]||1===e[2])&&Jc(),s=e[0].lastAmount&&(!e[2]||2===e[2])&&Kc(e);return{c(){o&&o.c(),t=Cn(),s&&s.c(),n=bn()},m(e,u){o&&o.m(e,u),mn(e,t,u),s&&s.m(e,u),mn(e,n,u),r=!0},p(e,r){e[2]&&1!==e[2]?o&&(o.d(1),o=null):o||(o=Jc(),o.c(),o.m(t.parentNode,t)),!e[0].lastAmount||e[2]&&2!==e[2]?s&&(sr(),ir(s,1,1,()=>{s=null}),ur()):s?(s.p(e,r),5&r&&ar(s,1)):(s=Kc(e),s.c(),ar(s,1),s.m(n.parentNode,n))},i(e){r||(ar(s),r=!0)},o(e){ir(s),r=!1},d(e){o&&o.d(e),e&&$n(t),s&&s.d(e),e&&$n(n)}}}function Jc(e){let t;return{c(){t=hn("Payment amount")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Kc(e){let t,n;return t=new kl({props:{amount:e[0].displayPayment.lastAmount,displayInfo:e[0].displayPayment.displayInfo}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.amount=e[0].displayPayment.lastAmount),1&n&&(r.displayInfo=e[0].displayPayment.displayInfo),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Yc(e){let t,n,r,o,s,u,a=e[7]&&Zc(e);return r=new eo({props:{$$slots:{default:[Xc]},$$scope:{ctx:e}}}),r.$on("click",e[9]),s=new eo({props:{$$slots:{default:[Qc]},$$scope:{ctx:e}}}),s.$on("click",(function(){Zt(e[5])&&e[5].apply(this,arguments)})),{c(){a&&a.c(),t=Cn(),n=Dn("div"),yr(r.$$.fragment),o=Cn(),yr(s.$$.fragment)},m(e,i){a&&a.m(e,i),mn(e,t,i),mn(e,n,i),hr(r,n,null),fn(n,o),hr(s,n,null),u=!0},p(n,o){(e=n)[7]?a?(a.p(e,o),128&o&&ar(a,1)):(a=Zc(e),a.c(),ar(a,1),a.m(t.parentNode,t)):a&&(sr(),ir(a,1,1,()=>{a=null}),ur());const u={};1024&o&&(u.$$scope={dirty:o,ctx:e}),r.$set(u);const i={};1024&o&&(i.$$scope={dirty:o,ctx:e}),s.$set(i)},i(e){u||(ar(a),ar(r.$$.fragment,e),ar(s.$$.fragment,e),u=!0)},o(e){ir(a),ir(r.$$.fragment,e),ir(s.$$.fragment,e),u=!1},d(e){a&&a.d(e),e&&$n(t),e&&$n(n),Cr(r),Cr(s)}}}function Zc(e){let t,n,r;function o(t){e[8].call(null,t)}let s={items:e[6],label:"Deposit to"};return void 0!==e[4]&&(s.value=e[4]),t=new Gc({props:s}),Gn.push(()=>Dr(t,"value",o)),{c(){yr(t.$$.fragment)},m(e,n){hr(t,e,n),r=!0},p(e,r){const o={};64&r&&(o.items=e[6]),!n&&16&r&&(n=!0,o.value=e[4],Kn(()=>n=!1)),t.$set(o)},i(e){r||(ar(t.$$.fragment,e),r=!0)},o(e){ir(t.$$.fragment,e),r=!1},d(e){Cr(t,e)}}}function Xc(e){let t;return{c(){t=hn("Refresh")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Qc(e){let t;return{c(){t=hn("Deposit")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function ed(e){let t,n,r;return n=new kl({props:{amount:e[0].displayPayment.depositedAmount,displayInfo:e[0].displayPayment.displayInfo}}),{c(){t=hn("Deposited "),yr(n.$$.fragment)},m(e,o){mn(e,t,o),hr(n,e,o),r=!0},p(e,t){const r={};1&t&&(r.amount=e[0].displayPayment.depositedAmount),1&t&&(r.displayInfo=e[0].displayPayment.displayInfo),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n,e)}}}function td(e){let t,n;return t=new wc({props:{title:"Payment Detail",target:e[0]}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.target=e[0]),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function nd(e){let t,n,r,o,s,u;const a=[qc,Hc,Wc],i=[];function l(e,t){return"deposited"===e[0].status?0:e[0].issuer?1:!e[1]||e[2]&&1!==e[2]?-1:2}~(r=l(e))&&(o=i[r]=a[r](e));let c=e[3]&&td(e);return{c(){t=Dn("section"),n=Dn("div"),o&&o.c(),s=Cn(),c&&c.c()},m(e,o){mn(e,t,o),fn(t,n),~r&&i[r].m(n,null),fn(n,s),c&&c.m(n,null),u=!0},p(e,[t]){let u=r;r=l(e),r===u?~r&&i[r].p(e,t):(o&&(sr(),ir(i[u],1,1,()=>{i[u]=null}),ur()),~r?(o=i[r],o||(o=i[r]=a[r](e),o.c()),ar(o,1),o.m(n,s)):o=null),e[3]?c?(c.p(e,t),8&t&&ar(c,1)):(c=td(e),c.c(),ar(c,1),c.m(n,null)):c&&(sr(),ir(c,1,1,()=>{c=null}),ur())},i(e){u||(ar(o),ar(c),u=!0)},o(e){ir(o),ir(c),u=!1},d(e){e&&$n(t),~r&&i[r].d(),c&&c.d()}}}function rd(e,t,n){let r;Qt(e,Da,e=>n(7,r=e));let{item:o}=t,{summary:s=!0}=t,{summaryLine:u=0}=t,{details:a=!0}=t,i=null;let l,c;return e.$$set=e=>{"item"in e&&n(0,o=e.item),"summary"in e&&n(1,s=e.summary),"summaryLine"in e&&n(2,u=e.summaryLine),"details"in e&&n(3,a=e.details)},e.$$.update=()=>{17&e.$$.dirty&&n(5,l=()=>wr(o.actions).deposit(i?i.purse:void 0)),129&e.$$.dirty&&n(6,c=[{value:null,text:"Automatic"},...r.filter(({brand:e})=>e===o.brand).map(e=>({value:e,text:e.text}))])},[o,s,u,a,i,l,c,r,function(e){i=e,n(4,i)},()=>wr(o.actions).getAmountOf()]}class od extends vr{constructor(e){super(),Er(this,e,rd,nd,Xt,{item:0,summary:1,summaryLine:2,details:3})}}function sd(e){let t,n,r;return n=new Jo.Title({props:{title:"Incoming Payments"}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","title")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p:Ht,i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function ud(e){let t;return{c(){t=Dn("div"),t.textContent="No incoming payments.",An(t,"slot","empty")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function ad(e){let t,n,r;return n=new od({props:{item:e[2],details:!1,summaryLine:1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-header")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function id(e){let t,n,r;return n=new od({props:{item:e[2],details:!1,summaryLine:2}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-header-rest")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function ld(e){let t,n,r;return n=new od({props:{item:e[2],summary:!1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-details")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function cd(e){let t,n,r,o;return{c(){t=Cn(),n=Cn(),r=Cn(),o=Cn()},m(e,s){mn(e,t,s),mn(e,n,s),mn(e,r,s),mn(e,o,s)},p:Ht,i:Ht,o:Ht,d(e){e&&$n(t),e&&$n(n),e&&$n(r),e&&$n(o)}}}function dd(e){let t,n;return t=new $s({props:{items:e[0],storeKey:"payments.true",expandDefault:!0,$$slots:{default:[cd],"item-details":[ld,({item:e})=>({2:e}),({item:e})=>e?4:0],"item-header-rest":[id,({item:e})=>({2:e}),({item:e})=>e?4:0],"item-header":[ad,({item:e})=>({2:e}),({item:e})=>e?4:0],empty:[ud],title:[sd]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,[n]){const r={};1&n&&(r.items=e[0]),12&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function pd(e,t,n){let r,o;return Qt(e,ba,e=>n(1,r=e)),e.$$.update=()=>{2&e.$$.dirty&&n(0,o=r.filter(e=>"deposited"!==e.status))},[o]}class fd extends vr{constructor(e){super(),Er(this,e,pd,dd,Xt,{})}}function md(e){let t;const n=e[2].default,r=en(n,e,e[4],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,t){r&&r.p&&16&t&&nn(r,n,e,e[4],t,null,null)},i(e){t||(ar(r,e),t=!0)},o(e){ir(r,e),t=!1},d(e){r&&r.d(e)}}}function $d(e){let t,n,r,o;return t=new eo({props:{text:!0,$$slots:{default:[md]},$$scope:{ctx:e}}}),t.$on("click",e[3]),{c(){yr(t.$$.fragment)},m(s,u){hr(t,s,u),n=!0,r||(o=En(window,"keydown",e[1]),r=!0)},p(e,[n]){const r={};16&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e),r=!1,o()}}}function gd(e,t,n){const r=Un();let{$$slots:o={},$$scope:s}=t;return e.$$set=e=>{"$$scope"in e&&n(4,s=e.$$scope)},[r,e=>{"Enter"!==e.key||r("click")},o,e=>{e.stopPropagation(),r("click")},s]}class Dd extends vr{constructor(e){super(),Er(this,e,gd,$d,Xt,{})}}function yd(e){let t;const n=e[5].default,r=en(n,e,e[12],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,t){r&&r.p&&4096&t&&nn(r,n,e,e[12],t,null,null)},i(e){t||(ar(r,e),t=!0)},o(e){ir(r,e),t=!1},d(e){r&&r.d(e)}}}function hd(e){let t;return{c(){t=Dn("h5"),t.textContent="Create New Purse",An(t,"slot","title")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Cd(e){let t,n,r;function o(t){e[7].call(null,t)}let s={label:"Issuer",items:e[4]};return void 0!==e[1]&&(s.value=e[1]),t=new Gc({props:s}),Gn.push(()=>Dr(t,"value",o)),{c(){yr(t.$$.fragment)},m(e,n){hr(t,e,n),r=!0},p(e,r){const o={};16&r&&(o.items=e[4]),!n&&2&r&&(n=!0,o.value=e[1],Kn(()=>n=!1)),t.$set(o)},i(e){r||(ar(t.$$.fragment,e),r=!0)},o(e){ir(t.$$.fragment,e),r=!1},d(e){Cr(t,e)}}}function bd(e){let t;return{c(){t=hn("Create")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Ed(e){let t,n,r,o,s;return n=new Dd({props:{$$slots:{default:[bd]},$$scope:{ctx:e}}}),n.$on("click",e[9]),o=new hc({}),o.$on("click",e[10]),{c(){t=Dn("div"),yr(n.$$.fragment),r=Cn(),yr(o.$$.fragment),An(t,"slot","actions")},m(e,u){mn(e,t,u),hr(n,t,null),fn(t,r),hr(o,t,null),s=!0},p(e,t){const r={};4096&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){s||(ar(n.$$.fragment,e),ar(o.$$.fragment,e),s=!0)},o(e){ir(n.$$.fragment,e),ir(o.$$.fragment,e),s=!1},d(e){e&&$n(t),Cr(n),Cr(o)}}}function vd(e){let t,n,r,o,s,u,a=!e[0]&&Cd(e);function i(t){e[8].call(null,t)}let l={label:"Purse petname",hint:`My ${e[1]} Purse`};return void 0!==e[2]&&(l.value=e[2]),r=new qs({props:l}),Gn.push(()=>Dr(r,"value",i)),{c(){t=Cn(),a&&a.c(),n=Cn(),yr(r.$$.fragment),s=Cn()},m(e,o){mn(e,t,o),a&&a.m(e,o),mn(e,n,o),hr(r,e,o),mn(e,s,o),u=!0},p(e,t){e[0]?a&&(sr(),ir(a,1,1,()=>{a=null}),ur()):a?(a.p(e,t),1&t&&ar(a,1)):(a=Cd(e),a.c(),ar(a,1),a.m(n.parentNode,n));const s={};2&t&&(s.hint=`My ${e[1]} Purse`),!o&&4&t&&(o=!0,s.value=e[2],Kn(()=>o=!1)),r.$set(s)},i(e){u||(ar(a),ar(r.$$.fragment,e),u=!0)},o(e){ir(a),ir(r.$$.fragment,e),u=!1},d(e){e&&$n(t),a&&a.d(e),e&&$n(n),Cr(r,e),e&&$n(s)}}}function Ad(e){let t,n,r,o,s;function u(t){e[11].call(null,t)}t=new eo({props:{$$slots:{default:[yd]},$$scope:{ctx:e}}}),t.$on("click",e[6]);let a={$$slots:{default:[vd],actions:[Ed],title:[hd]},$$scope:{ctx:e}};return void 0!==e[3]&&(a.value=e[3]),r=new $c({props:a}),Gn.push(()=>Dr(r,"value",u)),{c(){yr(t.$$.fragment),n=Cn(),yr(r.$$.fragment)},m(e,o){hr(t,e,o),mn(e,n,o),hr(r,e,o),s=!0},p(e,[n]){const s={};4096&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s);const u={};4127&n&&(u.$$scope={dirty:n,ctx:e}),!o&&8&n&&(o=!0,u.value=e[3],Kn(()=>o=!1)),r.$set(u)},i(e){s||(ar(t.$$.fragment,e),ar(r.$$.fragment,e),s=!0)},o(e){ir(t.$$.fragment,e),ir(r.$$.fragment,e),s=!1},d(e){Cr(t,e),e&&$n(n),Cr(r,e)}}}function Fd(e,t,n){let r;Qt(e,xa,e=>n(4,r=e));let{issuerPetname:o=""}=t,s=o,u="",a=!1,{$$slots:i={},$$scope:l}=t;return e.$$set=e=>{"issuerPetname"in e&&n(0,o=e.issuerPetname),"$$scope"in e&&n(12,l=e.$$scope)},[o,s,u,a,r,i,()=>n(3,a=!0),function(e){s=e,n(1,s)},function(e){u=e,n(2,u)},async()=>{try{yu(o,Cu`Need to specify an Issuer`,TypeError),n(2,u=u.trim()),yu(u,Cu`Need to specify a ${"Purse"} petname`,TypeError),await wr(ca).makeEmptyPurse(o,u),n(3,a=!1)}catch(e){alert("Cannot create purse: "+e)}},()=>n(3,a=!1),function(e){a=e,n(3,a)},l]}class wd extends vr{constructor(e){super(),Er(this,e,Fd,Ad,Xt,{issuerPetname:0})}}function xd(e){let t,n;return t=new ii({props:{name:e[0].issuerPetname}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.name=e[0].issuerPetname),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Bd(e){let t,n,r,o,s,u;return r=new Ic({props:{onPublish:e[3],id:e[0].issuerBoardId}}),s=new wd({props:{issuerPetname:e[0].issuerPetname,$$slots:{default:[Pd]},$$scope:{ctx:e}}}),{c(){t=Dn("div"),n=hn("Board ID:\n "),yr(r.$$.fragment),o=Cn(),yr(s.$$.fragment)},m(e,a){mn(e,t,a),fn(t,n),hr(r,t,null),mn(e,o,a),hr(s,e,a),u=!0},p(e,t){const n={};1&t&&(n.onPublish=e[3]),1&t&&(n.id=e[0].issuerBoardId),r.$set(n);const o={};1&t&&(o.issuerPetname=e[0].issuerPetname),16&t&&(o.$$scope={dirty:t,ctx:e}),s.$set(o)},i(e){u||(ar(r.$$.fragment,e),ar(s.$$.fragment,e),u=!0)},o(e){ir(r.$$.fragment,e),ir(s.$$.fragment,e),u=!1},d(e){e&&$n(t),Cr(r),e&&$n(o),Cr(s,e)}}}function Pd(e){let t;return{c(){t=hn("Make Purse")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Sd(e){let t,n,r,o=e[1]&&xd(e),s=e[2]&&Bd(e);return{c(){t=Dn("section"),o&&o.c(),n=Cn(),s&&s.c()},m(e,u){mn(e,t,u),o&&o.m(t,null),fn(t,n),s&&s.m(t,null),r=!0},p(e,[r]){e[1]?o?(o.p(e,r),2&r&&ar(o,1)):(o=xd(e),o.c(),ar(o,1),o.m(t,n)):o&&(sr(),ir(o,1,1,()=>{o=null}),ur()),e[2]?s?(s.p(e,r),4&r&&ar(s,1)):(s=Bd(e),s.c(),ar(s,1),s.m(t,null)):s&&(sr(),ir(s,1,1,()=>{s=null}),ur())},i(e){r||(ar(o),ar(s),r=!0)},o(e){ir(o),ir(s),r=!1},d(e){e&&$n(t),o&&o.d(),s&&s.d()}}}function kd(e,t,n){let{item:r}=t,{summary:o=!0}=t,{details:s=!0}=t;return e.$$set=e=>{"item"in e&&n(0,r=e.item),"summary"in e&&n(1,o=e.summary),"details"in e&&n(2,s=e.details)},[r,o,s,()=>wr(ca).publishIssuer(r.brand)]}class Id extends vr{constructor(e){super(),Er(this,e,kd,Sd,Xt,{item:0,summary:1,details:2})}}function Td(e){let t;const n=e[7].default,r=en(n,e,e[14],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,t){r&&r.p&&16384&t&&nn(r,n,e,e[14],t,null,null)},i(e){t||(ar(r,e),t=!0)},o(e){ir(r,e),t=!1},d(e){r&&r.d(e)}}}function Nd(e){let t,n,r;return{c(){t=Dn("h5"),n=hn("Import "),r=hn(e[0]),An(t,"slot","title")},m(e,o){mn(e,t,o),fn(t,n),fn(t,r)},p(e,t){1&t&&xn(r,e[0])},d(e){e&&$n(t)}}}function Od(e){let t;return{c(){t=hn("Import")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function _d(e){let t,n,r,o,s;return n=new Dd({props:{$$slots:{default:[Od]},$$scope:{ctx:e}}}),n.$on("click",e[11]),o=new hc({}),o.$on("click",e[12]),{c(){t=Dn("div"),yr(n.$$.fragment),r=Cn(),yr(o.$$.fragment),An(t,"slot","actions")},m(e,u){mn(e,t,u),hr(n,t,null),fn(t,r),hr(o,t,null),s=!0},p(e,t){const r={};16384&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){s||(ar(n.$$.fragment,e),ar(o.$$.fragment,e),s=!0)},o(e){ir(n.$$.fragment,e),ir(o.$$.fragment,e),s=!1},d(e){e&&$n(t),Cr(n),Cr(o)}}}function Rd(e){let t,n,r,o,s,u,a,i;function l(t){e[9].call(null,t)}let c={label:e[0]+" petname",hint:e[1]};function d(t){e[10].call(null,t)}void 0!==e[6]&&(c.value=e[6]),n=new qs({props:c}),Gn.push(()=>Dr(n,"value",l));let p={label:"Board ID",hint:"An ID you got from a trusted source"};return void 0!==e[5]&&(p.value=e[5]),s=new qs({props:p}),Gn.push(()=>Dr(s,"value",d)),{c(){t=Cn(),yr(n.$$.fragment),o=Cn(),yr(s.$$.fragment),a=Cn()},m(e,r){mn(e,t,r),hr(n,e,r),mn(e,o,r),hr(s,e,r),mn(e,a,r),i=!0},p(e,t){const o={};1&t&&(o.label=e[0]+" petname"),2&t&&(o.hint=e[1]),!r&&64&t&&(r=!0,o.value=e[6],Kn(()=>r=!1)),n.$set(o);const a={};!u&&32&t&&(u=!0,a.value=e[5],Kn(()=>u=!1)),s.$set(a)},i(e){i||(ar(n.$$.fragment,e),ar(s.$$.fragment,e),i=!0)},o(e){ir(n.$$.fragment,e),ir(s.$$.fragment,e),i=!1},d(e){e&&$n(t),Cr(n,e),e&&$n(o),Cr(s,e),e&&$n(a)}}}function jd(e){let t,n,r,o,s;function u(t){e[13].call(null,t)}t=new eo({props:{$$slots:{default:[Td]},$$scope:{ctx:e}}}),t.$on("click",e[8]);let a={$$slots:{default:[Rd],actions:[_d],title:[Nd]},$$scope:{ctx:e}};return void 0!==e[4]&&(a.value=e[4]),r=new $c({props:a}),Gn.push(()=>Dr(r,"value",u)),{c(){yr(t.$$.fragment),n=Cn(),yr(r.$$.fragment)},m(e,o){hr(t,e,o),mn(e,n,o),hr(r,e,o),s=!0},p(e,[n]){const s={};16384&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s);const u={};16511&n&&(u.$$scope={dirty:n,ctx:e}),!o&&16&n&&(o=!0,u.value=e[4],Kn(()=>o=!1)),r.$set(u)},i(e){s||(ar(t.$$.fragment,e),ar(r.$$.fragment,e),s=!0)},o(e){ir(t.$$.fragment,e),ir(r.$$.fragment,e),s=!1},d(e){Cr(t,e),e&&$n(n),Cr(r,e)}}}function Md(e,t,n){let r=!1,{name:o}=t,{hint:s="My "+o}=t,{adder:u}=t,{prefix:a="board:"}=t,i=a,l="",{$$slots:c={},$$scope:d}=t;return e.$$set=e=>{"name"in e&&n(0,o=e.name),"hint"in e&&n(1,s=e.hint),"adder"in e&&n(2,u=e.adder),"prefix"in e&&n(3,a=e.prefix),"$$scope"in e&&n(14,d=e.$$scope)},[o,s,u,a,r,i,l,c,()=>n(4,r=!0),function(e){l=e,n(6,l)},function(e){i=e,n(5,i)},async()=>{try{n(6,l=l.trim()),yu(l,Cu`Need to specify a ${o} petname`,TypeError),n(5,i=i.trim()),yu(i,Cu`Need to specify a ${o} "board:..."" ID`,TypeError);const e=i.startsWith(a)?i.slice(a.length):i,t=await wr(da).getValue(e);await u(l,t),n(4,r=!1)}catch(e){alert(""+e)}},()=>n(4,r=!1),function(e){r=e,n(4,r)},d]}class Ud extends vr{constructor(e){super(),Er(this,e,Md,jd,Xt,{name:0,hint:1,adder:2,prefix:3})}}function Ld(e){let t,n,r;return n=new Jo.Title({props:{title:"Issuers"}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","title")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p:Ht,i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function zd(e){let t;return{c(){t=Dn("div"),t.textContent="No issuers.",An(t,"slot","empty")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Gd(e){let t,n,r;return n=new Id({props:{item:e[2],details:!1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-header")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function Wd(e){let t,n,r;return n=new Id({props:{item:e[2],summary:!1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-details")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function Hd(e){let t;return{c(){t=hn("Import")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function qd(e){let t,n,r;return n=new Ud({props:{name:"Issuer",adder:e[1],$$slots:{default:[Hd]},$$scope:{ctx:e}}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","actions")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};8&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function Vd(e){let t,n,r,o;return{c(){t=Cn(),n=Cn(),r=Cn(),o=Cn()},m(e,s){mn(e,t,s),mn(e,n,s),mn(e,r,s),mn(e,o,s)},p:Ht,i:Ht,o:Ht,d(e){e&&$n(t),e&&$n(n),e&&$n(r),e&&$n(o)}}}function Jd(e){let t,n;return t=new $s({props:{items:e[0],storeKey:"issuers",$$slots:{default:[Vd],actions:[qd],"item-details":[Wd,({item:e})=>({2:e}),({item:e})=>e?4:0],"item-header":[Gd,({item:e})=>({2:e}),({item:e})=>e?4:0],empty:[zd],title:[Ld]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,[n]){const r={};1&n&&(r.items=e[0]),12&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Kd(e,t,n){let r;Qt(e,xa,e=>n(0,r=e));return[r,(e,t)=>wr(ca).addIssuer(e,t,!0)]}class Yd extends vr{constructor(e){super(),Er(this,e,Kd,Jd,Xt,{})}}function Zd(e){let t,n;return t=new ii({props:{name:e[0].contactPetname}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.name=e[0].contactPetname),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Xd(e){let t,n;return t=new Ic({props:{id:e[0].depositBoardId}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.id=e[0].depositBoardId),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Qd(e){let t,n,r,o=e[1]&&Zd(e),s=e[2]&&Xd(e);return{c(){t=Dn("section"),o&&o.c(),n=Cn(),s&&s.c()},m(e,u){mn(e,t,u),o&&o.m(t,null),fn(t,n),s&&s.m(t,null),r=!0},p(e,[r]){e[1]?o?(o.p(e,r),2&r&&ar(o,1)):(o=Zd(e),o.c(),ar(o,1),o.m(t,n)):o&&(sr(),ir(o,1,1,()=>{o=null}),ur()),e[2]?s?(s.p(e,r),4&r&&ar(s,1)):(s=Xd(e),s.c(),ar(s,1),s.m(t,null)):s&&(sr(),ir(s,1,1,()=>{s=null}),ur())},i(e){r||(ar(o),ar(s),r=!0)},o(e){ir(o),ir(s),r=!1},d(e){e&&$n(t),o&&o.d(),s&&s.d()}}}function ep(e,t,n){let{item:r}=t,{summary:o=!0}=t,{details:s=!0}=t;return e.$$set=e=>{"item"in e&&n(0,r=e.item),"summary"in e&&n(1,o=e.summary),"details"in e&&n(2,s=e.details)},[r,o,s]}class tp extends vr{constructor(e){super(),Er(this,e,ep,Qd,Xt,{item:0,summary:1,details:2})}}function np(e){let t,n,r;return n=new Jo.Title({props:{title:"Contacts"}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","title")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p:Ht,i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function rp(e){let t;return{c(){t=Dn("div"),t.textContent="No contacts.",An(t,"slot","empty")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function op(e){let t,n,r;return n=new tp({props:{item:e[2],details:!1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-header")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function sp(e){let t,n,r;return n=new tp({props:{item:e[2],summary:!1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-details")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function up(e){let t;return{c(){t=hn("Import")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function ap(e){let t,n,r;return n=new Ud({props:{name:"Contact",adder:e[1],$$slots:{default:[up]},$$scope:{ctx:e}}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","actions")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};8&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function ip(e){let t,n,r,o;return{c(){t=Cn(),n=Cn(),r=Cn(),o=Cn()},m(e,s){mn(e,t,s),mn(e,n,s),mn(e,r,s),mn(e,o,s)},p:Ht,i:Ht,o:Ht,d(e){e&&$n(t),e&&$n(n),e&&$n(r),e&&$n(o)}}}function lp(e){let t,n;return t=new $s({props:{storeKey:"contacts",items:e[0],$$slots:{default:[ip],actions:[ap],"item-details":[sp,({item:e})=>({2:e}),({item:e})=>e?4:0],"item-header":[op,({item:e})=>({2:e}),({item:e})=>e?4:0],empty:[rp],title:[np]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,[n]){const r={};1&n&&(r.items=e[0]),12&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function cp(e,t,n){let r;Qt(e,va,e=>n(0,r=e));return[r,(e,t)=>wr(ca).addContact(e,t)]}class dp extends vr{constructor(e){super(),Er(this,e,cp,lp,Xt,{})}}function pp(e){let t,n;const r=e[7].default,o=en(r,e,e[6],null),s=o||function(e){let t;return{c(){t=hn(e[0])},m(e,n){mn(e,t,n)},p(e,n){1&n&&xn(t,e[0])},d(e){e&&$n(t)}}}(e);let u=[{"aria-hidden":"true"},e[2],{class:e[1]}],a={};for(let e=0;e{n(2,t=Vt(Vt({},t),rn(e))),"classes"in e&&n(3,r=e.classes),"label"in e&&n(0,o=e.label),"disabled"in e&&n(4,s=e.disabled),"disabledClasses"in e&&n(5,u=e.disabledClasses),"$$scope"in e&&n(6,c=e.$$scope)},e.$$.update=()=>{n(1,i=a.flush().add(r,!0,fp).add(u,s).add(t.class).get())},t=rn(t),[o,i,t,r,s,u,c,l]}class $p extends vr{constructor(e){super(),Er(this,e,mp,pp,Xt,{classes:3,label:0,disabled:4,disabledClasses:5})}}const gp=e=>({}),Dp=e=>({});function yp(e){let t,n;return t=new Pr({props:{class:e[3]?"text-gray-500 dark:text-gray-600":"text-gray-600",$$slots:{default:[Cp]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};8&n&&(r.class=e[3]?"text-gray-500 dark:text-gray-600":"text-gray-600"),4096&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function hp(e){let t,n;return t=new Pr({props:{class:"text-"+(e[3]?"gray":e[2])+"-500",$$slots:{default:[bp]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};12&n&&(r.class="text-"+(e[3]?"gray":e[2])+"-500"),4096&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Cp(e){let t;return{c(){t=hn("radio_button_unchecked")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function bp(e){let t;return{c(){t=hn("radio_button_checked")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Ep(e){let t,n,r,o;const s=[hp,yp],u=[];function a(e,t){return e[0]===e[5]?0:1}return t=a(e),n=u[t]=s[t](e),{c(){n.c(),r=bn()},m(e,n){u[t].m(e,n),mn(e,r,n),o=!0},p(e,o){let i=t;t=a(e),t===i?u[t].p(e,o):(sr(),ir(u[i],1,1,()=>{u[i]=null}),ur(),n=u[t],n||(n=u[t]=s[t](e),n.c()),ar(n,1),n.m(r.parentNode,r))},i(e){o||(ar(n),o=!0)},o(e){ir(n),o=!1},d(e){u[t].d(e),e&&$n(r)}}}function vp(e){let t,n,r,o,s,u,a,i,l,c;u=new Ks({props:{color:e[8],$$slots:{default:[Ep]},$$scope:{ctx:e}}});const d=e[11].label,p=en(d,e,e[12],Dp),f=p||function(e){let t,n;return t=new $p({props:{disabled:e[3],label:e[1],class:e[6]}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};8&n&&(r.disabled=e[3]),2&n&&(r.label=e[1]),64&n&&(r.class=e[6]),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}(e);return{c(){t=Dn("div"),n=Dn("input"),o=Cn(),s=Dn("div"),yr(u.$$.fragment),a=Cn(),f&&f.c(),An(n,"aria-label",e[1]),An(n,"class","hidden"),An(n,"type","radio"),An(n,"role","radio"),An(n,"name",e[4]),An(n,"selected",r=e[0]===e[5]),An(s,"class","relative"),An(t,"class",e[7])},m(r,d){mn(r,t,d),fn(t,n),fn(t,o),fn(t,s),hr(u,s,null),fn(t,a),f&&f.m(t,null),i=!0,l||(c=En(t,"click",e[9]),l=!0)},p(e,[o]){(!i||2&o)&&An(n,"aria-label",e[1]),(!i||16&o)&&An(n,"name",e[4]),(!i||33&o&&r!==(r=e[0]===e[5]))&&An(n,"selected",r);const s={};256&o&&(s.color=e[8]),4141&o&&(s.$$scope={dirty:o,ctx:e}),u.$set(s),p?p.p&&4096&o&&nn(p,d,e,e[12],o,gp,Dp):f&&f.p&&74&o&&f.p(e,o),(!i||128&o)&&An(t,"class",e[7])},i(e){i||(ar(u.$$.fragment,e),ar(f,e),i=!0)},o(e){ir(u.$$.fragment,e),ir(f,e),i=!1},d(e){e&&$n(t),Cr(u),f&&f.d(e),l=!1,c()}}}const Ap="inline-flex block items-center mb-2 cursor-pointer z-0";function Fp(e,t,n){let{selected:r=""}=t,{label:o=""}=t,{color:s="primary"}=t,{disabled:u=!1}=t,{name:a=""}=t,{value:i=""}=t,{classes:l=Ap}=t,{labelClasses:c=(e=>e)}=t;const d=new Tr(l,Ap);let p,f,{$$slots:m={},$$scope:$}=t;return e.$$set=e=>{n(14,t=Vt(Vt({},t),rn(e))),"selected"in e&&n(0,r=e.selected),"label"in e&&n(1,o=e.label),"color"in e&&n(2,s=e.color),"disabled"in e&&n(3,u=e.disabled),"name"in e&&n(4,a=e.name),"value"in e&&n(5,i=e.value),"classes"in e&&n(10,l=e.classes),"labelClasses"in e&&n(6,c=e.labelClasses),"$$scope"in e&&n(12,$=e.$$scope)},e.$$.update=()=>{n(7,p=d.flush().add(l,!0,Ap).add(t.class).get()),44&e.$$.dirty&&n(8,f=i&&!u?s:"gray")},t=rn(t),[r,o,s,u,a,i,c,p,f,function(){u||n(0,r=i)},l,m,$]}class wp extends vr{constructor(e){super(),Er(this,e,Fp,vp,Xt,{selected:0,label:1,color:2,disabled:3,name:4,value:5,classes:10,labelClasses:6})}}function xp(e){let t,n,r;return t=new tc({props:{data:ru,label:e[9],scale:"1"}}),{c(){yr(t.$$.fragment),n=hn(" Send")},m(e,o){hr(t,e,o),mn(e,n,o),r=!0},p:Ht,i(e){r||(ar(t.$$.fragment,e),r=!0)},o(e){ir(t.$$.fragment,e),r=!1},d(e){Cr(t,e),e&&$n(n)}}}function Bp(e){let t;return{c(){t=Dn("h2"),t.textContent=""+e[9],An(t,"slot","title")},m(e,n){mn(e,t,n)},p:Ht,d(e){e&&$n(t)}}}function Pp(e){let t,n,r,o,s,u;function a(t){e[13].call(null,t)}let i={label:"To my own purse",disabled:!e[2],items:e[7]};return void 0!==e[4]&&(i.value=e[4]),o=new Gc({props:i}),Gn.push(()=>Dr(o,"value",a)),{c(){t=Dn("div"),n=Dn("h5"),n.textContent="Transfer within wallet",r=Cn(),yr(o.$$.fragment),An(t,"slot","label"),An(t,"class","fullwidth")},m(e,s){mn(e,t,s),fn(t,n),fn(t,r),hr(o,t,null),u=!0},p(e,t){const n={};4&t&&(n.disabled=!e[2]),128&t&&(n.items=e[7]),!s&&16&t&&(s=!0,n.value=e[4],Kn(()=>s=!1)),o.$set(n)},i(e){u||(ar(o.$$.fragment,e),u=!0)},o(e){ir(o.$$.fragment,e),u=!1},d(e){e&&$n(t),Cr(o)}}}function Sp(e){let t,n,r,o,s,u;function a(t){e[15].call(null,t)}let i={label:"To contact",disabled:e[2],items:e[6]};return void 0!==e[5]&&(i.value=e[5]),o=new Gc({props:i}),Gn.push(()=>Dr(o,"value",a)),{c(){t=Dn("div"),n=Dn("h5"),n.textContent="Irrevocable one-way",r=Cn(),yr(o.$$.fragment),An(t,"slot","label"),An(t,"class","fullwidth")},m(e,s){mn(e,t,s),fn(t,n),fn(t,r),hr(o,t,null),u=!0},p(e,t){const n={};4&t&&(n.disabled=e[2]),64&t&&(n.items=e[6]),!s&&32&t&&(s=!0,n.value=e[5],Kn(()=>s=!1)),o.$set(n)},i(e){u||(ar(o.$$.fragment,e),u=!0)},o(e){ir(o.$$.fragment,e),u=!1},d(e){e&&$n(t),Cr(o)}}}function kp(e){let t;return{c(){t=hn("Send")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Ip(e){let t,n,r,o,s;return n=new Dd({props:{$$slots:{default:[kp]},$$scope:{ctx:e}}}),n.$on("click",e[17]),o=new hc({}),o.$on("click",e[18]),{c(){t=Dn("div"),yr(n.$$.fragment),r=Cn(),yr(o.$$.fragment),An(t,"slot","actions")},m(e,u){mn(e,t,u),hr(n,t,null),fn(t,r),hr(o,t,null),s=!0},p(e,t){const r={};4194304&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){s||(ar(n.$$.fragment,e),ar(o.$$.fragment,e),s=!0)},o(e){ir(n.$$.fragment,e),ir(o.$$.fragment,e),s=!1},d(e){e&&$n(t),Cr(n),Cr(o)}}}function Tp(e){let t,n,r,o,s,u,a,i,l,c,d,p,f,m,$;function g(t){e[12].call(null,t)}n=new kl({props:{amount:e[0].currentAmount,displayInfo:e[0].displayInfo}});let D={label:"Send amount"};function y(t){e[14].call(null,t)}void 0!==e[3]&&(D.value=e[3]),o=new qs({props:D}),Gn.push(()=>Dr(o,"value",g));let h={name:e[8],class:"fullwidth",value:!0,$$slots:{label:[Pp]},$$scope:{ctx:e}};function C(t){e[16].call(null,t)}void 0!==e[2]&&(h.selected=e[2]),l=new wp({props:h}),Gn.push(()=>Dr(l,"selected",y));let b={name:e[8],class:"fullwidth",value:!1,$$slots:{label:[Sp]},$$scope:{ctx:e}};return void 0!==e[2]&&(b.selected=e[2]),p=new wp({props:b}),Gn.push(()=>Dr(p,"selected",C)),{c(){t=hn("\n Current balance: "),yr(n.$$.fragment),r=Cn(),yr(o.$$.fragment),u=Cn(),a=Dn("table"),a.innerHTML="
",i=Cn(),yr(l.$$.fragment),d=Cn(),yr(p.$$.fragment),m=Cn()},m(e,s){mn(e,t,s),hr(n,e,s),mn(e,r,s),hr(o,e,s),mn(e,u,s),mn(e,a,s),mn(e,i,s),hr(l,e,s),mn(e,d,s),hr(p,e,s),mn(e,m,s),$=!0},p(e,t){const r={};1&t&&(r.amount=e[0].currentAmount),1&t&&(r.displayInfo=e[0].displayInfo),n.$set(r);const u={};!s&&8&t&&(s=!0,u.value=e[3],Kn(()=>s=!1)),o.$set(u);const a={};4194452&t&&(a.$$scope={dirty:t,ctx:e}),!c&&4&t&&(c=!0,a.selected=e[2],Kn(()=>c=!1)),l.$set(a);const i={};4194404&t&&(i.$$scope={dirty:t,ctx:e}),!f&&4&t&&(f=!0,i.selected=e[2],Kn(()=>f=!1)),p.$set(i)},i(e){$||(ar(n.$$.fragment,e),ar(o.$$.fragment,e),ar(l.$$.fragment,e),ar(p.$$.fragment,e),$=!0)},o(e){ir(n.$$.fragment,e),ir(o.$$.fragment,e),ir(l.$$.fragment,e),ir(p.$$.fragment,e),$=!1},d(e){e&&$n(t),Cr(n,e),e&&$n(r),Cr(o,e),e&&$n(u),e&&$n(a),e&&$n(i),Cr(l,e),e&&$n(d),Cr(p,e),e&&$n(m)}}}function Np(e){let t,n,r,o,s,u;function a(t){e[19].call(null,t)}n=new eo({props:{class:"right",dense:!0,$$slots:{default:[xp]},$$scope:{ctx:e}}}),n.$on("click",e[11]);let i={$$slots:{default:[Tp],actions:[Ip],title:[Bp]},$$scope:{ctx:e}};return void 0!==e[1]&&(i.value=e[1]),o=new $c({props:i}),Gn.push(()=>Dr(o,"value",a)),{c(){t=Dn("div"),yr(n.$$.fragment),r=Cn(),yr(o.$$.fragment)},m(e,s){mn(e,t,s),hr(n,t,null),mn(e,r,s),hr(o,e,s),u=!0},p(e,[t]){const r={};4194304&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r);const u={};4194559&t&&(u.$$scope={dirty:t,ctx:e}),!s&&2&t&&(s=!0,u.value=e[1],Kn(()=>s=!1)),o.$set(u)},i(e){u||(ar(n.$$.fragment,e),ar(o.$$.fragment,e),u=!0)},o(e){ir(n.$$.fragment,e),ir(o.$$.fragment,e),u=!1},d(e){e&&$n(t),Cr(n),e&&$n(r),Cr(o,e)}}}function Op(e,t,n){let r,o;Qt(e,va,e=>n(20,r=e)),Qt(e,Da,e=>n(21,o=e));let{source:s}=t;const u="xfer-"+Math.random(),a="Transfer from "+s.pursePetname;let i=!1,l=!0,c="0",d=s,p=void 0;const f=async e=>{try{const t=function(e,t){const{amountMathKind:n=al.NAT,decimalPlaces:r=0}=t||{};if(yu.typeof(e,"string",Cu`valueString ${e} is not a string`),n!==al.NAT)return Ji.parse(e);const o=e.match(/^0*(\d+)(\.(\d*[1-9])?0*)?$/);yu(o,Cu`${e} must be a non-negative decimal number`);const s=o[1],u=(o[3]||"").padEnd(r,"0");return yu(u.length<=r,Cu`${e} exceeds ${r} decimal places`),parseInt(`${s}${u}`,10)}(c,s.displayInfo);n(1,i=!1),await wr(s.actions).send(e.actions,t)}catch(e){alert("Cannot send: "+e)}};let m,$;return e.$$set=e=>{"source"in e&&n(0,s=e.source)},e.$$.update=()=>{1048576&e.$$.dirty&&n(6,m=r.map(({value:e,text:t})=>({value:e,text:t}))),2097153&e.$$.dirty&&n(7,$=o.filter(({brand:e})=>e===s.brand).map(e=>({value:e,text:e.text})))},[s,i,l,c,d,p,m,$,u,a,f,()=>n(1,i=!0),function(e){c=e,n(3,c)},function(e){d=e,n(4,d)},function(e){l=e,n(2,l)},function(e){p=e,n(5,p)},function(e){l=e,n(2,l)},()=>f(l?d:p),()=>n(1,i=!1),function(e){i=e,n(1,i)}]}class _p extends vr{constructor(e){super(),Er(this,e,Op,Np,Xt,{source:0})}}function Rp(e){let t,n,r,o=(!e[1]||1===e[1])&&jp(e),s=(!e[1]||2===e[1])&&Mp(e);return{c(){t=Dn("div"),o&&o.c(),n=Cn(),s&&s.c(),An(t,"class","fullwidth")},m(e,u){mn(e,t,u),o&&o.m(t,null),fn(t,n),s&&s.m(t,null),r=!0},p(e,r){e[1]&&1!==e[1]?o&&(sr(),ir(o,1,1,()=>{o=null}),ur()):o?(o.p(e,r),2&r&&ar(o,1)):(o=jp(e),o.c(),ar(o,1),o.m(t,n)),e[1]&&2!==e[1]?s&&(sr(),ir(s,1,1,()=>{s=null}),ur()):s?(s.p(e,r),2&r&&ar(s,1)):(s=Mp(e),s.c(),ar(s,1),s.m(t,null))},i(e){r||(ar(o),ar(s),r=!0)},o(e){ir(o),ir(s),r=!1},d(e){e&&$n(t),o&&o.d(),s&&s.d()}}}function jp(e){let t,n;return t=new ii({props:{name:e[3].pursePetname}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};8&n&&(r.name=e[3].pursePetname),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Mp(e){let t,n;return t=new kl({props:{amount:e[3].currentAmount,displayInfo:e[3].displayInfo}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};8&n&&(r.amount=e[3].currentAmount),8&n&&(r.displayInfo=e[3].displayInfo),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Up(e){let t,n,r,o,s,u,a,i,l,c,d,p;r=new nu({props:{value:!!e[3].depositBoardId,label:"AutoDeposit"}}),s=new wc({props:{title:"Amount Detail",target:e[3].currentAmount}});let f=e[3].depositBoardId&&(!e[4]||e[3].depositBoardId!==e[4].depositBoardId)&&Lp(e);return l=new _p({props:{source:e[3]}}),{c(){t=Dn("div"),n=Dn("div"),yr(r.$$.fragment),o=Cn(),yr(s.$$.fragment),u=Cn(),a=Dn("div"),f&&f.c(),i=Cn(),yr(l.$$.fragment),An(t,"class","py-2"),An(a,"class","mb-3")},m(m,$){mn(m,t,$),fn(t,n),hr(r,n,null),fn(t,o),hr(s,t,null),mn(m,u,$),mn(m,a,$),f&&f.m(a,null),fn(a,i),hr(l,a,null),c=!0,d||(p=En(n,"click",vn(e[5]),!0),d=!0)},p(e,t){const n={};8&t&&(n.value=!!e[3].depositBoardId),r.$set(n);const o={};8&t&&(o.target=e[3].currentAmount),s.$set(o),!e[3].depositBoardId||e[4]&&e[3].depositBoardId===e[4].depositBoardId?f&&(sr(),ir(f,1,1,()=>{f=null}),ur()):f?(f.p(e,t),24&t&&ar(f,1)):(f=Lp(e),f.c(),ar(f,1),f.m(a,i));const u={};8&t&&(u.source=e[3]),l.$set(u)},i(e){c||(ar(r.$$.fragment,e),ar(s.$$.fragment,e),ar(f),ar(l.$$.fragment,e),c=!0)},o(e){ir(r.$$.fragment,e),ir(s.$$.fragment,e),ir(f),ir(l.$$.fragment,e),c=!1},d(e){e&&$n(t),Cr(r),Cr(s),e&&$n(u),e&&$n(a),f&&f.d(),Cr(l),d=!1,p()}}}function Lp(e){let t,n,r,o;return n=new Ic({props:{id:e[3].depositBoardId}}),{c(){t=hn("(\n "),yr(n.$$.fragment),r=hn("\n )")},m(e,s){mn(e,t,s),hr(n,e,s),mn(e,r,s),o=!0},p(e,t){const r={};8&t&&(r.id=e[3].depositBoardId),n.$set(r)},i(e){o||(ar(n.$$.fragment,e),o=!0)},o(e){ir(n.$$.fragment,e),o=!1},d(e){e&&$n(t),Cr(n,e),e&&$n(r)}}}function zp(e){let t,n,r,o=e[0]&&Rp(e),s=e[2]&&Up(e);return{c(){t=Dn("section"),o&&o.c(),n=Cn(),s&&s.c()},m(e,u){mn(e,t,u),o&&o.m(t,null),fn(t,n),s&&s.m(t,null),r=!0},p(e,[r]){e[0]?o?(o.p(e,r),1&r&&ar(o,1)):(o=Rp(e),o.c(),ar(o,1),o.m(t,n)):o&&(sr(),ir(o,1,1,()=>{o=null}),ur()),e[2]?s?(s.p(e,r),4&r&&ar(s,1)):(s=Up(e),s.c(),ar(s,1),s.m(t,null)):s&&(sr(),ir(s,1,1,()=>{s=null}),ur())},i(e){r||(ar(o),ar(s),r=!0)},o(e){ir(o),ir(s),r=!1},d(e){e&&$n(t),o&&o.d(),s&&s.d()}}}function Gp(e,t,n){let r;Qt(e,Fa,e=>n(4,r=e));let{summary:o=!0}=t,{summaryLine:s=0}=t,{details:u=!0}=t,{item:a}=t;return e.$$set=e=>{"summary"in e&&n(0,o=e.summary),"summaryLine"in e&&n(1,s=e.summaryLine),"details"in e&&n(2,u=e.details),"item"in e&&n(3,a=e.item)},[o,s,u,a,r,function(e){return a.depositBoardId?wr(ca).disableAutoDeposit(a.pursePetname):wr(ca).enableAutoDeposit(a.pursePetname),!1}]}class Wp extends vr{constructor(e){super(),Er(this,e,Gp,zp,Xt,{summary:0,summaryLine:1,details:2,item:3})}}function Hp(e){let t,n,r;return n=new Jo.Title({props:{title:"Purses"}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","title")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p:Ht,i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function qp(e){let t;return{c(){t=Dn("div"),t.textContent="No purses.",An(t,"slot","empty")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Vp(e){let t,n,r;return n=new Wp({props:{item:e[1],details:!1,summaryLine:1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-header")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};2&t&&(r.item=e[1]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function Jp(e){let t,n,r;return n=new Wp({props:{item:e[1],details:!1,summaryLine:2}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-header-rest")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};2&t&&(r.item=e[1]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function Kp(e){let t,n,r;return n=new Wp({props:{item:e[1],summary:!1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-details")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};2&t&&(r.item=e[1]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function Yp(e){let t,n,r,o;return{c(){t=Cn(),n=Cn(),r=Cn(),o=Cn()},m(e,s){mn(e,t,s),mn(e,n,s),mn(e,r,s),mn(e,o,s)},p:Ht,i:Ht,o:Ht,d(e){e&&$n(t),e&&$n(n),e&&$n(r),e&&$n(o)}}}function Zp(e){let t,n;return t=new $s({props:{items:e[0],storeKey:"purses",$$slots:{default:[Yp],"item-details":[Kp,({item:e})=>({1:e}),({item:e})=>e?2:0],"item-header-rest":[Jp,({item:e})=>({1:e}),({item:e})=>e?2:0],"item-header":[Vp,({item:e})=>({1:e}),({item:e})=>e?2:0],empty:[qp],title:[Hp]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,[n]){const r={};1&n&&(r.items=e[0]),6&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Xp(e,t,n){let r;return Qt(e,Da,e=>n(0,r=e)),[r]}class Qp extends vr{constructor(e){super(),Er(this,e,Xp,Zp,Xt,{})}}class ef extends vr{constructor(e){super(),Er(this,e,null,null,Xt,{})}}function tf(e){let t,n,r,o,s,u,a,i,l,c,d,p=e[2]&&nf(e);const f=e[18].default,m=en(f,e,e[20],null);let $=e[1]&&of(e),g=[{class:e[6]},e[11]],D={};for(let e=0;e{p=null}),ur()),m&&m.p&&1048576&o&&nn(m,f,e,e[20],o,null,null),e[1]?$?($.p(e,o),2&o&&ar($,1)):($=of(e),$.c(),ar($,1),$.m(n,null)):$&&(sr(),ir($,1,1,()=>{$=null}),ur()),Fn(n,D=$r(g,[(!l||64&o)&&{class:e[6]},e[11]])),Sn(n,"svelte-ixci48",!0),(!l||256&o&&a!==(a=e[8]+" mx-1 inline-block svelte-ixci48"))&&An(t,"class",a)},i(e){l||(ar(p),ar(m,e),ar($),i&&i.end(1),l=!0)},o(e){ir(p),ir(m,e),ir($),i=dr(t,ao,{duration:100}),l=!1},d(e){e&&$n(t),p&&p.d(),m&&m.d(e),$&&$.d(),e&&i&&i.end(),c=!1,Yt(d)}}}function nf(e){let t,n;return t=new Pr({props:{small:!0,class:e[0]?e[5](400):"text-gray-600",$$slots:{default:[rf]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};33&n&&(r.class=e[0]?e[5](400):"text-gray-600"),1048580&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function rf(e){let t;return{c(){t=hn(e[2])},m(e,n){mn(e,t,n)},p(e,n){4&n&&xn(t,e[2])},d(e){e&&$n(t)}}}function of(e){let t,n,r,o,s,u;return n=new Pr({props:{class:"text-white dark:text-white",xs:!0,$$slots:{default:[sf]},$$scope:{ctx:e}}}),{c(){t=Dn("span"),yr(n.$$.fragment),An(t,"class",r="rounded-full p-1/2 inline-flex items-center cursor-pointer "+e[7]+" svelte-ixci48")},m(r,a){mn(r,t,a),hr(n,t,null),o=!0,s||(u=En(t,"click",vn(e[9])),s=!0)},p(e,s){const u={};1048576&s&&(u.$$scope={dirty:s,ctx:e}),n.$set(u),(!o||128&s&&r!==(r="rounded-full p-1/2 inline-flex items-center cursor-pointer "+e[7]+" svelte-ixci48"))&&An(t,"class",r)},i(e){o||(ar(n.$$.fragment,e),o=!0)},o(e){ir(n.$$.fragment,e),o=!1},d(e){e&&$n(t),Cr(n),s=!1,u()}}}function sf(e){let t;return{c(){t=hn("clear")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function uf(e){let t,n,r=e[3]&&tf(e);return{c(){r&&r.c(),t=bn()},m(e,o){r&&r.m(e,o),mn(e,t,o),n=!0},p(e,[n]){e[3]?r?(r.p(e,n),8&n&&ar(r,1)):(r=tf(e),r.c(),ar(r,1),r.m(t.parentNode,t)):r&&(sr(),ir(r,1,1,()=>{r=null}),ur())},i(e){n||(ar(r),n=!0)},o(e){ir(r),n=!1},d(e){r&&r.d(e),e&&$n(t)}}}function af(e,t,n){let{removable:r=!1}=t,{icon:o=""}=t,{outlined:s=!1}=t,{selected:u=!1}=t,{selectable:a=!0}=t,{color:i="primary"}=t,{remove:l=""}=t,{add:c=""}=t,{replace:d={}}=t,p=!0;const f=Un();const m=new Tr,$=Or(["removable","icon","outlined","selected","selectable","color"],t);let g,D,y,h,C,b,E,{$$slots:v={},$$scope:A}=t;return e.$$set=e=>{n(25,t=Vt(Vt({},t),rn(e))),"removable"in e&&n(1,r=e.removable),"icon"in e&&n(2,o=e.icon),"outlined"in e&&n(12,s=e.outlined),"selected"in e&&n(0,u=e.selected),"selectable"in e&&n(13,a=e.selectable),"color"in e&&n(14,i=e.color),"remove"in e&&n(15,l=e.remove),"add"in e&&n(16,c=e.add),"replace"in e&&n(17,d=e.replace),"$$scope"in e&&n(20,A=e.$$scope)},e.$$.update=()=>{16384&e.$$.dirty&&n(4,g=_r(i)),16384&e.$$.dirty&&n(21,({bg:D,txt:y,border:h}=Ir(i)),D,(n(5,y),n(14,i)),(n(22,h),n(14,i))),6524961&e.$$.dirty&&n(6,C=m.flush().add("relative overflow-hidden flex items-center rounded-full px-2 py-1").add("bg-transparent border",s).add("border-gray-400 border-solid hover:bg-gray-50 dark-hover:bg-dark-400 bg-gray-300 dark:bg-dark-600",!u).add(`${h()} dark:${h("800")} ${y()} ${D(100)} hover:${D(50)}`,u).remove(l).replace(d).add(c).get()),2097153&e.$$.dirty&&n(7,b=u?`hover:${D(300)} ${D(400)}`:"hover:bg-gray-400 bg-gray-500 dark:bg-gray-800"),n(8,E=m.flush().add(t.class).get())},t=rn(t),[u,r,o,p,g,y,C,b,E,function(){f("close"),n(3,p=!1)},function(){a&&n(0,u=!0)},$,s,a,i,l,c,d,v,function(t){Ln(e,t)},A]}class lf extends vr{constructor(e){super(),Er(this,e,af,uf,Xt,{removable:1,icon:2,outlined:12,selected:0,selectable:13,color:14,remove:15,add:16,replace:17})}}function cf(e,t,n){const r=e.slice();return r[21]=t[n][0],r[22]=t[n][1].amount,r[23]=t[n][1].displayInfo,r[24]=t[n][1].pursePetname,r[26]=n,r}function df(e,t,n){const r=e.slice();return r[21]=t[n][0],r[22]=t[n][1].amount,r[24]=t[n][1].pursePetname,r[26]=n,r}function pf(e){let t,n,r,o=(!e[2]||1===e[2])&&ff(e),s=(!e[2]||2===e[2])&&$f(e);return{c(){o&&o.c(),t=Cn(),s&&s.c(),n=bn()},m(e,u){o&&o.m(e,u),mn(e,t,u),s&&s.m(e,u),mn(e,n,u),r=!0},p(e,r){e[2]&&1!==e[2]?o&&(sr(),ir(o,1,1,()=>{o=null}),ur()):o?(o.p(e,r),4&r&&ar(o,1)):(o=ff(e),o.c(),ar(o,1),o.m(t.parentNode,t)),e[2]&&2!==e[2]?s&&(sr(),ir(s,1,1,()=>{s=null}),ur()):s?(s.p(e,r),4&r&&ar(s,1)):(s=$f(e),s.c(),ar(s,1),s.m(n.parentNode,n))},i(e){r||(ar(o),ar(s),r=!0)},o(e){ir(o),ir(s),r=!1},d(e){o&&o.d(e),e&&$n(t),s&&s.d(e),e&&$n(n)}}}function ff(e){let t,n,r,o,s=e[13](e[7])+"";return r=new lf({props:{outline:!0,selected:!0,color:e[16][e[12]],$$slots:{default:[mf]},$$scope:{ctx:e}}}),{c(){t=hn(s),n=Cn(),yr(r.$$.fragment)},m(e,s){mn(e,t,s),mn(e,n,s),hr(r,e,s),o=!0},p(e,n){(!o||128&n)&&s!==(s=e[13](e[7])+"")&&xn(t,s);const u={};4096&n&&(u.color=e[16][e[12]]),268439552&n&&(u.$$scope={dirty:n,ctx:e}),r.$set(u)},i(e){o||(ar(r.$$.fragment,e),o=!0)},o(e){ir(r.$$.fragment,e),o=!1},d(e){e&&$n(t),e&&$n(n),Cr(r,e)}}}function mf(e){let t,n=e[15][e[12]]+"";return{c(){t=hn(n)},m(e,n){mn(e,t,n)},p(e,r){4096&r&&n!==(n=e[15][e[12]]+"")&&xn(t,n)},d(e){e&&$n(t)}}}function $f(e){let t,n,r,o,s,u=(e[8]||e[9])+"";return t=new ii({props:{name:e[4],board:e[5]}}),{c(){yr(t.$$.fragment),n=hn(" via ("),r=hn(u),o=hn(")")},m(e,u){hr(t,e,u),mn(e,n,u),mn(e,r,u),mn(e,o,u),s=!0},p(e,n){const o={};16&n&&(o.name=e[4]),32&n&&(o.board=e[5]),t.$set(o),(!s||768&n)&&u!==(u=(e[8]||e[9])+"")&&xn(r,u)},i(e){s||(ar(t.$$.fragment,e),s=!0)},o(e){ir(t.$$.fragment,e),s=!1},d(e){Cr(t,e),e&&$n(n),e&&$n(r),e&&$n(o)}}}function gf(e){let t,n,r,o,s,u,a,i,l;n=new wc({props:{title:"Offer Detail",target:e[0]}});let c=Object.entries(e[10]),d=[];for(let t=0;tir(d[e],1,1,()=>{d[e]=null});let f=Object.entries(e[11]),m=[];for(let t=0;tir(m[e],1,1,()=>{m[e]=null});let g="pending"===e[12]&&hf(e),D="proposed"===e[12]&&bf(e);return{c(){t=Dn("div"),yr(n.$$.fragment),r=Cn(),o=Dn("div");for(let e=0;e{g=null}),ur()),"proposed"===e[12]?D?(D.p(e,t),4096&t&&ar(D,1)):(D=bf(e),D.c(),ar(D,1),D.m(a,null)):D&&(sr(),ir(D,1,1,()=>{D=null}),ur())},i(e){if(!l){ar(n.$$.fragment,e);for(let e=0;e{o=null}),ur()),e[3]?s?(s.p(e,r),8&r&&ar(s,1)):(s=gf(e),s.c(),ar(s,1),s.m(t,null)):s&&(sr(),ir(s,1,1,()=>{s=null}),ur())},i(e){r||(ar(o),ar(s),r=!0)},o(e){ir(o),ir(s),r=!1},d(e){e&&$n(t),o&&o.d(),s&&s.d()}}}function Ff(e,t,n){let{item:r}=t,{summary:o=!0}=t,{summaryLine:s=0}=t,{details:u=!0}=t;const a=e=>function(t){console.error(e,t)};let i,l,c,d,p,f,m,$,g,D;return e.$$set=e=>{"item"in e&&n(0,r=e.item),"summary"in e&&n(1,o=e.summary),"summaryLine"in e&&n(2,s=e.summaryLine),"details"in e&&n(3,u=e.details)},e.$$.update=()=>{1&e.$$.dirty&&n(4,({instancePetname:i,instanceHandleBoardId:l,installationHandleBoardId:c,offerId:d,requestContext:{date:p,dappOrigin:f,origin:m="unknown origin"}={},proposalForDisplay:{give:$={},want:g={}}={}}=r),i,(n(5,l),n(0,r)),(n(6,d),n(0,r)),(n(7,p),n(0,r)),(n(8,f),n(0,r)),(n(9,m),n(0,r)),(n(10,$),n(0,r)),(n(11,g),n(0,r))),1&e.$$.dirty&&n(12,D=r.status||"proposed")},[r,o,s,u,i,l,d,p,f,m,$,g,D,function(e){if(!e)return"unknown time";const t=new Date(e),n=t.getTime()-60*t.getTimezoneOffset()*1e3,r=new Date(n).toISOString().match(/^(.*)T(.*)\..*/);return`${r[1]} ${r[2]}`},a,{decline:"Declined",rejected:"Rejected",accept:"Accepted",pending:"Pending",proposed:"Proposed"},{accept:"success",rejected:"error",decline:"error",pending:"alert",proposed:"grey"},()=>wr(ca).cancelOffer(d).catch(a("Cannot cancel")),()=>wr(ca).acceptOffer(d).catch(a("Cannot accept")),()=>wr(ca).declineOffer(d).catch(a("Cannot decline"))]}class wf extends vr{constructor(e){super(),Er(this,e,Ff,Af,Xt,{item:0,summary:1,summaryLine:2,details:3})}}function xf(e){let t,n,r;return n=new Jo.Title({props:{title:"Offers"}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","title")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p:Ht,i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function Bf(e){let t;return{c(){t=Dn("div"),t.textContent="No offers.",An(t,"slot","empty")},m(e,n){mn(e,t,n)},d(e){e&&$n(t)}}}function Pf(e){let t,n,r;return n=new wf({props:{item:e[2],details:!1,summaryLine:1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-header")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function Sf(e){let t,n,r;return n=new wf({props:{item:e[2],details:!1,summaryLine:2}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-header-rest")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function kf(e){let t,n,r;return n=new wf({props:{item:e[2],summary:!1}}),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item-details")},m(e,o){mn(e,t,o),hr(n,t,null),r=!0},p(e,t){const r={};4&t&&(r.item=e[2]),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n)}}}function If(e){let t,n,r,o;return{c(){t=Cn(),n=Cn(),r=Cn(),o=Cn()},m(e,s){mn(e,t,s),mn(e,n,s),mn(e,r,s),mn(e,o,s)},p:Ht,i:Ht,o:Ht,d(e){e&&$n(t),e&&$n(n),e&&$n(r),e&&$n(o)}}}function Tf(e){let t,n;return t=new $s({props:{items:(e[0]||[]).filter(e[1]),storeKey:"inbox",expandDefault:!0,$$slots:{default:[If],"item-details":[kf,({item:e})=>({2:e}),({item:e})=>e?4:0],"item-header-rest":[Sf,({item:e})=>({2:e}),({item:e})=>e?4:0],"item-header":[Pf,({item:e})=>({2:e}),({item:e})=>e?4:0],empty:[Bf],title:[xf]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,[n]){const r={};1&n&&(r.items=(e[0]||[]).filter(e[1])),12&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Nf(e,t,n){let r;Qt(e,$a,e=>n(0,r=e));return[r,({status:e})=>void 0===e||"pending"===e]}class Of extends vr{constructor(e){super(),Er(this,e,Nf,Tf,Xt,{})}}function _f(e){let t,n,r,o,s,u,a=e[3]&&jf(e);const i=e[29].default,l=en(i,e,e[38],null);let c=[{class:e[1]},e[8],{disabled:e[2]}],d={};for(let e=0;e{a=null}),ur()),l&&l.p&&128&r[1]&&nn(l,i,e,e[38],r,null,null),Fn(t,d=$r(c,[(!o||2&r[0])&&{class:e[1]},e[8],(!o||4&r[0])&&{disabled:e[2]}]))},i(e){o||(ar(a),ar(l,e),o=!0)},o(e){ir(a),ir(l,e),o=!1},d(e){e&&$n(t),a&&a.d(),l&&l.d(e),s=!1,Yt(u)}}}function Rf(e){let t,n,r,o,s,u,a,i=e[3]&&Uf(e);const l=e[29].default,c=en(l,e,e[38],null);let d=[{class:e[1]},e[8],{disabled:e[2]}],p={};for(let e=0;e{i=null}),ur()),c&&c.p&&128&o[1]&&nn(c,l,e,e[38],o,null,null),Fn(n,p=$r(d,[(!s||2&o[0])&&{class:e[1]},e[8],(!s||4&o[0])&&{disabled:e[2]}])),Fn(t,m=$r(f,[(!s||32&o[0])&&{href:e[5]},e[8]]))},i(e){s||(ar(i),ar(c,e),s=!0)},o(e){ir(i),ir(c,e),s=!1},d(e){e&&$n(t),i&&i.d(),c&&c.d(e),u=!1,Yt(a)}}}function jf(e){let t,n;return t=new Pr({props:{class:e[6],small:e[4],$$slots:{default:[Mf]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};64&n[0]&&(r.class=e[6]),16&n[0]&&(r.small=e[4]),8&n[0]|128&n[1]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Mf(e){let t;return{c(){t=hn(e[3])},m(e,n){mn(e,t,n)},p(e,n){8&n[0]&&xn(t,e[3])},d(e){e&&$n(t)}}}function Uf(e){let t,n;return t=new Pr({props:{class:e[6],small:e[4],$$slots:{default:[Lf]},$$scope:{ctx:e}}}),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,n){const r={};64&n[0]&&(r.class=e[6]),16&n[0]&&(r.small=e[4]),8&n[0]|128&n[1]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function Lf(e){let t;return{c(){t=hn(e[3])},m(e,n){mn(e,t,n)},p(e,n){8&n[0]&&xn(t,e[3])},d(e){e&&$n(t)}}}function zf(e){let t,n,r,o;const s=[Rf,_f],u=[];function a(e,t){return e[5]?0:1}return t=a(e),n=u[t]=s[t](e),{c(){n.c(),r=bn()},m(e,n){u[t].m(e,n),mn(e,r,n),o=!0},p(e,o){let i=t;t=a(e),t===i?u[t].p(e,o):(sr(),ir(u[i],1,1,()=>{u[i]=null}),ur(),n=u[t],n||(n=u[t]=s[t](e),n.c()),ar(n,1),n.m(r.parentNode,r))},i(e){o||(ar(n),o=!0)},o(e){ir(n),o=!1},d(e){u[t].d(e),e&&$n(r)}}}const Gf="py-2 px-4 uppercase text-sm font-medium relative overflow-hidden",Wf="text-white duration-200 ease-in",Hf="bg-transparent border border-solid",qf="bg-transparent border-none px-4 hover:bg-transparent",Vf="p-4 flex items-center select-none",Jf="hover:bg-transparent",Kf="pt-1 pb-1 pl-2 pr-2 text-xs",Yf="bg-gray-300 text-gray-500 dark:bg-dark-400 elevation-none pointer-events-none hover:bg-gray-300 cursor-default",Zf="hover:elevation-5 elevation-3";function Xf(e,t,n){let{value:r=!1}=t,{outlined:o=!1}=t,{text:s=!1}=t,{block:u=!1}=t,{disabled:a=!1}=t,{icon:i=null}=t,{small:l=!1}=t,{light:c=!1}=t,{dark:d=!1}=t,{flat:p=!1}=t,{iconClass:f=""}=t,{color:m="primary"}=t,{href:$=null}=t,{fab:g=!1}=t,{remove:D=""}=t,{add:y=""}=t,{replace:h={}}=t,{classes:C=Gf}=t,{basicClasses:b=Wf}=t,{outlinedClasses:E=Hf}=t,{textClasses:v=qf}=t,{iconClasses:A=Vf}=t,{fabClasses:F=Jf}=t,{smallClasses:w=Kf}=t,{disabledClasses:x=Yf}=t,{elevationClasses:B=Zf}=t;g=g||s&&i;const P=!o&&!s&&!g,S=(P||i)&&!a&&!p&&!s;let k=e=>e,I=0;const T=new Tr(C,Gf);let N;i&&(N=new Tr(f));const O=_r(s||g||o?m:"white"),_=Or(["outlined","text","color","block","disabled","icon","small","light","dark","flat","add","remove","replace"],t);let{$$slots:R={},$$scope:j}=t;let M,U,L,z,G;return e.$$set=e=>{n(50,t=Vt(Vt({},t),rn(e))),"value"in e&&n(0,r=e.value),"outlined"in e&&n(10,o=e.outlined),"text"in e&&n(11,s=e.text),"block"in e&&n(12,u=e.block),"disabled"in e&&n(2,a=e.disabled),"icon"in e&&n(3,i=e.icon),"small"in e&&n(4,l=e.small),"light"in e&&n(13,c=e.light),"dark"in e&&n(14,d=e.dark),"flat"in e&&n(15,p=e.flat),"iconClass"in e&&n(16,f=e.iconClass),"color"in e&&n(17,m=e.color),"href"in e&&n(5,$=e.href),"fab"in e&&n(9,g=e.fab),"remove"in e&&n(18,D=e.remove),"add"in e&&n(19,y=e.add),"replace"in e&&n(20,h=e.replace),"classes"in e&&n(1,C=e.classes),"basicClasses"in e&&n(21,b=e.basicClasses),"outlinedClasses"in e&&n(22,E=e.outlinedClasses),"textClasses"in e&&n(23,v=e.textClasses),"iconClasses"in e&&n(24,A=e.iconClasses),"fabClasses"in e&&n(25,F=e.fabClasses),"smallClasses"in e&&n(26,w=e.smallClasses),"disabledClasses"in e&&n(27,x=e.disabledClasses),"elevationClasses"in e&&n(28,B=e.elevationClasses),"$$scope"in e&&n(38,j=e.$$scope)},e.$$.update=()=>{24576&e.$$.dirty[0]|256&e.$$.dirty[1]&&(n(39,I=c?200:0),n(39,I=d?-400:I)),256&e.$$.dirty[1]&&n(41,M=500-I),256&e.$$.dirty[1]&&n(42,U=400-I),131072&e.$$.dirty[0]&&n(43,({bg:L,border:z,txt:G}=Ir(m)),L,(n(44,z),n(17,m)),(n(45,G),n(17,m))),n(1,C=T.flush().add(b,P,Wf).add(`${L(M)} hover:${L(U)}`,P).add(B,S,Zf).add(E,o,Hf).add(`${z(U)} ${G(M)} hover:${L("trans")} dark-hover:${L("transDark")}`,o).add(""+G(U),s).add(v,s,qf).add(A,i,Vf).remove("py-2",i).remove(G(U),g).add(x,a,Yf).add(w,l,Kf).add("flex items-center justify-center h-8 w-8",l&&i).add("border-solid",o).add("rounded-full",i).add("w-full",u).add("rounded",P||o||s).add("button",!i).add(F,g,Jf).add("hover:"+L("transLight"),g).add(t.class).remove(D).replace(h).add(y).get()),66048&e.$$.dirty[0]|16896&e.$$.dirty[1]&&N&&n(6,k=N.flush().add(G(),g&&!f).get())},t=rn(t),[r,C,a,i,l,$,k,O,_,g,o,s,u,c,d,p,f,m,D,y,h,b,E,v,A,F,w,x,B,R,function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},function(t){Ln(e,t)},()=>n(0,r=!r),()=>n(0,r=!r),j]}class Qf extends vr{constructor(e){super(),Er(this,e,Xf,zf,Xt,{value:0,outlined:10,text:11,block:12,disabled:2,icon:3,small:4,light:13,dark:14,flat:15,iconClass:16,color:17,href:5,fab:9,remove:18,add:19,replace:20,classes:1,basicClasses:21,outlinedClasses:22,textClasses:23,iconClasses:24,fabClasses:25,smallClasses:26,disabledClasses:27,elevationClasses:28},[-1,-1])}}function em(e){let t;const n=e[4].default,r=en(n,e,e[6],null),o=r||function(e){let t;return{c(){t=hn(e[1])},m(e,n){mn(e,t,n)},p(e,n){2&n&&xn(t,e[1])},d(e){e&&$n(t)}}}(e);return{c(){o&&o.c()},m(e,n){o&&o.m(e,n),t=!0},p(e,t){r?r.p&&64&t&&nn(r,n,e,e[6],t,null,null):o&&o.p&&2&t&&o.p(e,t)},i(e){t||(ar(o,e),t=!0)},o(e){ir(o,e),t=!1},d(e){o&&o.d(e)}}}function tm(e){let t,n;return t=new Qf({props:{outlined:e[2]===e[0],text:!0,fab:!0,flat:!0,color:e[0]===e[2]?"secondary":e[3],$$slots:{default:[em]},$$scope:{ctx:e}}}),t.$on("click",e[5]),{c(){yr(t.$$.fragment)},m(e,r){hr(t,e,r),n=!0},p(e,[n]){const r={};5&n&&(r.outlined=e[2]===e[0]),13&n&&(r.color=e[0]===e[2]?"secondary":e[3]),66&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(ar(t.$$.fragment,e),n=!0)},o(e){ir(t.$$.fragment,e),n=!1},d(e){Cr(t,e)}}}function nm(e,t,n){let{text:r=""}=t,{id:o}=t,{value:s}=t,{color:u}=t,{$$slots:a={},$$scope:i}=t;return e.$$set=e=>{"text"in e&&n(1,r=e.text),"id"in e&&n(2,o=e.id),"value"in e&&n(0,s=e.value),"color"in e&&n(3,u=e.color),"$$scope"in e&&n(6,i=e.$$scope)},e.$$.update=()=>{e.$$.dirty},[s,r,o,u,a,()=>n(0,s=o),i]}class rm extends vr{constructor(e){super(),Er(this,e,nm,tm,Xt,{text:1,id:2,value:0,color:3})}}const om=[{name:"light",colors:{text:"#282230",background:"#f1f1f1",primary:"#01796f",primary_dark:"#016159",secondary:"#562931"}},{name:"dark",colors:{text:"#f1f1f1",background:"#27323a",primary:"#01978b",primary_dark:"#00887c",secondary:"#fe8690"}},{name:"forest",colors:{background:"#3b6c4c",text:"#f9f2cf",primary:"#efdc7e",primary_dark:"#e4d589",secondary:"#4a875f"}},{name:"discord",colors:{background:"#2C2F33",text:"#FFFFFF",primary:"#7289DA",primary_dark:"#7289DA",secondary:"#99AAB5"}}];function sm(e){let t;const n=e[4].default,r=en(n,e,e[3],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,[t]){r&&r.p&&8&t&&nn(r,n,e,e[3],t,null,null)},i(e){t||(ar(r,e),t=!0)},o(e){ir(r,e),t=!1},d(e){r&&r.d(e)}}}function um(e,t,n){let{themes:r=[...om]}=t,{storageKey:o="__svelte-themer__theme"}=t,s=r[0].name,{base:u={colors:{text:"#282230"},prefix:"base"}}=(r[0].name,t);const a=e=>r.find(t=>t.name===e);let i=pu(a(s));!function(e,t){jn().$$.context.set(e,t)}("theme",{theme:i,toggle:()=>{let e=r.findIndex(e=>e.name===s);s=r[e===r.length-1?0:e+=1].name,i.update(e=>({...e,...a(s)})),localStorage.setItem(o,s),l(a(s))}}),Mn(()=>{let e=localStorage.getItem(o);e?a(e)&&isNaN(parseInt(e))&&a(e)&&(i.set(a(e)),s=e):localStorage.setItem(o,s),l(u),l(a(s))});const l=e=>{for(let[t,n]of Object.entries(e.colors)){let r="--theme-"+t;e.prefix&&(r=`--theme-${e.prefix}-${t}`),document.documentElement.style.setProperty(r,n)}document.documentElement.style.setProperty("--theme-name",e.name)};let{$$slots:c={},$$scope:d}=t;return e.$$set=e=>{"themes"in e&&n(0,r=e.themes),"storageKey"in e&&n(1,o=e.storageKey),"base"in e&&n(2,u=e.base),"$$scope"in e&&n(3,d=e.$$scope)},[r,o,u,d,c]}class am extends vr{constructor(e){super(),Er(this,e,um,sm,Xt,{themes:0,storageKey:1,base:2})}}const{document:im}=fr;function lm(e){let t,n,r,o;function s(t){e[6].call(null,t)}let u={id:e[10].id,text:e[10].text,color:"primary"};return void 0!==e[0]&&(u.value=e[0]),n=new rm({props:u}),Gn.push(()=>Dr(n,"value",s)),{c(){t=Dn("div"),yr(n.$$.fragment),An(t,"slot","item")},m(e,r){mn(e,t,r),hr(n,t,null),o=!0},p(e,t){const o={};1024&t&&(o.id=e[10].id),1024&t&&(o.text=e[10].text),!r&&1&t&&(r=!0,o.value=e[0],Kn(()=>r=!1)),n.$set(o)},i(e){o||(ar(n.$$.fragment,e),o=!0)},o(e){ir(n.$$.fragment,e),o=!1},d(e){e&&$n(t),Cr(n)}}}function cm(e){let t;return{c(){t=hn(e[2])},m(e,n){mn(e,t,n)},p(e,n){4&n&&xn(t,e[2])},d(e){e&&$n(t)}}}function dm(e){let t,n,r;return{c(){t=Dn("div"),An(t,"class","disconnected-background svelte-1jvkw5e")},m(e,o){mn(e,t,o),n||(r=En(t,"click",vn(function(e){return function(t){return t.preventDefault(),e.call(this,t)}}(Dm))),n=!0)},d(e){e&&$n(t),n=!1,r()}}}function pm(e){let t,n,r,o,s,u,a,i,l,c,d,p;return n=new Of({}),s=new fd({}),i=new Ma({}),d=new Qp({}),{c(){t=Dn("div"),yr(n.$$.fragment),r=Cn(),o=Dn("div"),yr(s.$$.fragment),u=Cn(),a=Dn("div"),yr(i.$$.fragment),l=Cn(),c=Dn("div"),yr(d.$$.fragment),An(t,"class","full svelte-1jvkw5e"),An(o,"class","payments"),An(a,"class","dapps"),An(c,"class","transfers")},m(e,f){mn(e,t,f),hr(n,t,null),mn(e,r,f),mn(e,o,f),hr(s,o,null),mn(e,u,f),mn(e,a,f),hr(i,a,null),mn(e,l,f),mn(e,c,f),hr(d,c,null),p=!0},i(e){p||(ar(n.$$.fragment,e),ar(s.$$.fragment,e),ar(i.$$.fragment,e),ar(d.$$.fragment,e),p=!0)},o(e){ir(n.$$.fragment,e),ir(s.$$.fragment,e),ir(i.$$.fragment,e),ir(d.$$.fragment,e),p=!1},d(e){e&&$n(t),Cr(n),e&&$n(r),e&&$n(o),Cr(s),e&&$n(u),e&&$n(a),Cr(i),e&&$n(l),e&&$n(c),Cr(d)}}}function fm(e){let t,n,r,o,s,u,a,i,l;return n=new Ma({}),s=new Yd({}),i=new dp({}),{c(){t=Dn("div"),yr(n.$$.fragment),r=Cn(),o=Dn("div"),yr(s.$$.fragment),u=Cn(),a=Dn("div"),yr(i.$$.fragment),An(t,"class","dapps"),An(o,"class","issuers"),An(a,"class","full svelte-1jvkw5e")},m(e,c){mn(e,t,c),hr(n,t,null),mn(e,r,c),mn(e,o,c),hr(s,o,null),mn(e,u,c),mn(e,a,c),hr(i,a,null),l=!0},i(e){l||(ar(n.$$.fragment,e),ar(s.$$.fragment,e),ar(i.$$.fragment,e),l=!0)},o(e){ir(n.$$.fragment,e),ir(s.$$.fragment,e),ir(i.$$.fragment,e),l=!1},d(e){e&&$n(t),Cr(n),e&&$n(r),e&&$n(o),Cr(s),e&&$n(u),e&&$n(a),Cr(i)}}}function mm(e){let t,n,r,o,s,u;return n=new Qp({}),s=new dp({}),{c(){t=Dn("div"),yr(n.$$.fragment),r=Cn(),o=Dn("div"),yr(s.$$.fragment),An(t,"class","full svelte-1jvkw5e"),An(o,"class","full svelte-1jvkw5e")},m(e,a){mn(e,t,a),hr(n,t,null),mn(e,r,a),mn(e,o,a),hr(s,o,null),u=!0},i(e){u||(ar(n.$$.fragment,e),ar(s.$$.fragment,e),u=!0)},o(e){ir(n.$$.fragment,e),ir(s.$$.fragment,e),u=!1},d(e){e&&$n(t),Cr(n),e&&$n(r),e&&$n(o),Cr(s)}}}function $m(e){let t,n,r,o,s,u,a,i,l,c,d,p,f,m,$,g,D,y,h,C,b,E,v;u=new Xa({props:{horizontal:!0,items:e[5],$$slots:{item:[lm,({item:e})=>({10:e}),({item:e})=>e?1024:0]},$$scope:{ctx:e}}}),u.$on("change",e[7]),p=new eo({props:{small:!0,text:!0,fab:!0,flat:!0,title:e[2],$$slots:{default:[cm]},$$scope:{ctx:e}}}),p.$on("click",(function(){Zt(e[3])&&e[3].apply(this,arguments)}));let A=!e[4]&&dm();const F=[mm,fm,pm],w=[];function x(e,t){return"transfers"===e[0]?0:"setup"===e[0]?1:2}return g=x(e),D=w[g]=F[g](e),b=new ef({}),{c(){t=Dn("div"),n=Dn("header"),r=Dn("a"),r.innerHTML='',o=Cn(),s=Dn("nav"),yr(u.$$.fragment),a=Cn(),i=Dn("div"),l=Dn("h6"),c=hn(e[1]),d=Cn(),yr(p.$$.fragment),f=Cn(),A&&A.c(),m=Cn(),$=Dn("main"),D.c(),y=Cn(),h=Dn("footer"),C=Dn("div"),yr(b.$$.fragment),An(r,"href","https://agoric.com"),An(r,"class","flex items-center"),An(l,"class","svelte-1jvkw5e"),An(i,"class","connector svelte-1jvkw5e"),An(s,"class","svelte-1jvkw5e"),An(n,"class","topmost svelte-1jvkw5e"),An(t,"class","header-wrapper svelte-1jvkw5e"),An($,"class","svelte-1jvkw5e"),An(C,"class",E=on("setup"===e[0]?"theme":"theme-hidden")+" svelte-1jvkw5e"),An(h,"class","svelte-1jvkw5e")},m(e,D){mn(e,t,D),fn(t,n),fn(n,r),fn(n,o),fn(n,s),hr(u,s,null),fn(s,a),fn(s,i),fn(i,l),fn(l,c),fn(i,d),hr(p,i,null),mn(e,f,D),A&&A.m(e,D),mn(e,m,D),mn(e,$,D),w[g].m($,null),mn(e,y,D),mn(e,h,D),fn(h,C),hr(b,C,null),v=!0},p(t,n){e=t;const r={};3073&n&&(r.$$scope={dirty:n,ctx:e}),u.$set(r),(!v||2&n)&&xn(c,e[1]);const o={};4&n&&(o.title=e[2]),2052&n&&(o.$$scope={dirty:n,ctx:e}),p.$set(o),e[4]?A&&(A.d(1),A=null):A||(A=dm(),A.c(),A.m(m.parentNode,m));let s=g;g=x(e),g!==s&&(sr(),ir(w[s],1,1,()=>{w[s]=null}),ur(),D=w[g],D||(D=w[g]=F[g](e),D.c()),ar(D,1),D.m($,null)),(!v||1&n&&E!==(E=on("setup"===e[0]?"theme":"theme-hidden")+" svelte-1jvkw5e"))&&An(C,"class",E)},i(e){v||(ar(u.$$.fragment,e),ar(p.$$.fragment,e),ar(D),ar(b.$$.fragment,e),v=!0)},o(e){ir(u.$$.fragment,e),ir(p.$$.fragment,e),ir(D),ir(b.$$.fragment,e),v=!1},d(e){e&&$n(t),Cr(u),Cr(p),e&&$n(f),A&&A.d(e),e&&$n(m),e&&$n($),w[g].d(),e&&$n(y),e&&$n(h),Cr(b)}}}function gm(e){let t,n,r;return n=new am({props:{$$slots:{default:[$m]},$$scope:{ctx:e}}}),{c(){t=Cn(),yr(n.$$.fragment),im.title="Agoric Wallet"},m(e,o){mn(e,t,o),hr(n,e,o),r=!0},p(e,[t]){const r={};2079&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){r||(ar(n.$$.fragment,e),r=!0)},o(e){ir(n.$$.fragment,e),r=!1},d(e){e&&$n(t),Cr(n,e)}}}const Dm=()=>{};function ym(e,t,n){let r,o;Qt(e,ia,e=>n(8,r=e)),Qt(e,fa,e=>n(4,o=e));let s="inbox";ia.connect();const u=()=>{const e=document.querySelector("header.topmost").clientHeight;document.documentElement.style.setProperty("--banner-height",e+"px")};let a,i,l;return Mn(()=>(window.addEventListener("resize",u),()=>{window.removeEventListener("resize",u)})),function(e){jn().$$.after_update.push(e)}(u),e.$$.update=()=>{256&e.$$.dirty&&n(1,a=r?"Connected":"Disconnected"),256&e.$$.dirty&&n(2,i=r?"Disconnect":"Connect"),256&e.$$.dirty&&n(3,l=r?ia.disconnect:ia.connect)},[s,a,i,l,o,[{id:"inbox",text:"Inbox"},{id:"transfers",text:"Transfers"},{id:"setup",text:"Setup"}],function(e){s=e,n(0,s)},function(t){Ln(e,t)}]}return new class extends vr{constructor(e){super(),Er(this,e,ym,gm,Xt,{})}}({target:document.body,props:{}})}();
- //# sourceMappingURL=bundle.js.map
diff --git a/packages/plugin-agoric-app/patches/agoric+0.11.2.patch b/packages/plugin-agoric-app/patches/agoric+0.11.2.patch
deleted file mode 100644
index 0dc644d..0000000
--- a/packages/plugin-agoric-app/patches/agoric+0.11.2.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-diff --git a/node_modules/agoric/lib/open.js b/node_modules/agoric/lib/open.js
-index d222dde..44dbea8 100644
---- a/node_modules/agoric/lib/open.js
-+++ b/node_modules/agoric/lib/open.js
-@@ -2,6 +2,7 @@ import { promises as defaultFs } from 'fs';
- import opener from 'opener';
- import crypto from 'crypto';
- import path from 'path';
-+import os from 'os';
-
- import { openSwingStore } from '@agoric/swing-store-simple';
-
-@@ -37,7 +38,7 @@ export async function getAccessToken(port, powers = {}) {
- }
-
- // Ensure we're protected with a unique accessToken for this basedir.
-- const sharedStateDir = path.join(process.env.HOME || '', '.agoric');
-+ const sharedStateDir = path.join(os.homedir(), '.agoric');
- await fs.mkdir(sharedStateDir, { mode: 0o700, recursive: true });
-
- // Ensure an access token exists.
diff --git a/packages/plugin-agoric-app/patches/depd+1.1.2.patch b/packages/plugin-agoric-app/patches/depd+1.1.2.patch
deleted file mode 100644
index 102ea2d..0000000
--- a/packages/plugin-agoric-app/patches/depd+1.1.2.patch
+++ /dev/null
@@ -1,529 +0,0 @@
-diff --git a/node_modules/depd/index.js b/node_modules/depd/index.js
-index d758d3c..dbff6c9 100644
---- a/node_modules/depd/index.js
-+++ b/node_modules/depd/index.js
-@@ -1,522 +1 @@
--/*!
-- * depd
-- * Copyright(c) 2014-2017 Douglas Christopher Wilson
-- * MIT Licensed
-- */
--
--/**
-- * Module dependencies.
-- */
--
--var callSiteToString = require('./lib/compat').callSiteToString
--var eventListenerCount = require('./lib/compat').eventListenerCount
--var relative = require('path').relative
--
--/**
-- * Module exports.
-- */
--
--module.exports = depd
--
--/**
-- * Get the path to base files on.
-- */
--
--var basePath = process.cwd()
--
--/**
-- * Determine if namespace is contained in the string.
-- */
--
--function containsNamespace (str, namespace) {
-- var vals = str.split(/[ ,]+/)
-- var ns = String(namespace).toLowerCase()
--
-- for (var i = 0; i < vals.length; i++) {
-- var val = vals[i]
--
-- // namespace contained
-- if (val && (val === '*' || val.toLowerCase() === ns)) {
-- return true
-- }
-- }
--
-- return false
--}
--
--/**
-- * Convert a data descriptor to accessor descriptor.
-- */
--
--function convertDataDescriptorToAccessor (obj, prop, message) {
-- var descriptor = Object.getOwnPropertyDescriptor(obj, prop)
-- var value = descriptor.value
--
-- descriptor.get = function getter () { return value }
--
-- if (descriptor.writable) {
-- descriptor.set = function setter (val) { return (value = val) }
-- }
--
-- delete descriptor.value
-- delete descriptor.writable
--
-- Object.defineProperty(obj, prop, descriptor)
--
-- return descriptor
--}
--
--/**
-- * Create arguments string to keep arity.
-- */
--
--function createArgumentsString (arity) {
-- var str = ''
--
-- for (var i = 0; i < arity; i++) {
-- str += ', arg' + i
-- }
--
-- return str.substr(2)
--}
--
--/**
-- * Create stack string from stack.
-- */
--
--function createStackString (stack) {
-- var str = this.name + ': ' + this.namespace
--
-- if (this.message) {
-- str += ' deprecated ' + this.message
-- }
--
-- for (var i = 0; i < stack.length; i++) {
-- str += '\n at ' + callSiteToString(stack[i])
-- }
--
-- return str
--}
--
--/**
-- * Create deprecate for namespace in caller.
-- */
--
--function depd (namespace) {
-- if (!namespace) {
-- throw new TypeError('argument namespace is required')
-- }
--
-- var stack = getStack()
-- var site = callSiteLocation(stack[1])
-- var file = site[0]
--
-- function deprecate (message) {
-- // call to self as log
-- log.call(deprecate, message)
-- }
--
-- deprecate._file = file
-- deprecate._ignored = isignored(namespace)
-- deprecate._namespace = namespace
-- deprecate._traced = istraced(namespace)
-- deprecate._warned = Object.create(null)
--
-- deprecate.function = wrapfunction
-- deprecate.property = wrapproperty
--
-- return deprecate
--}
--
--/**
-- * Determine if namespace is ignored.
-- */
--
--function isignored (namespace) {
-- /* istanbul ignore next: tested in a child processs */
-- if (process.noDeprecation) {
-- // --no-deprecation support
-- return true
-- }
--
-- var str = process.env.NO_DEPRECATION || ''
--
-- // namespace ignored
-- return containsNamespace(str, namespace)
--}
--
--/**
-- * Determine if namespace is traced.
-- */
--
--function istraced (namespace) {
-- /* istanbul ignore next: tested in a child processs */
-- if (process.traceDeprecation) {
-- // --trace-deprecation support
-- return true
-- }
--
-- var str = process.env.TRACE_DEPRECATION || ''
--
-- // namespace traced
-- return containsNamespace(str, namespace)
--}
--
--/**
-- * Display deprecation message.
-- */
--
--function log (message, site) {
-- var haslisteners = eventListenerCount(process, 'deprecation') !== 0
--
-- // abort early if no destination
-- if (!haslisteners && this._ignored) {
-- return
-- }
--
-- var caller
-- var callFile
-- var callSite
-- var depSite
-- var i = 0
-- var seen = false
-- var stack = getStack()
-- var file = this._file
--
-- if (site) {
-- // provided site
-- depSite = site
-- callSite = callSiteLocation(stack[1])
-- callSite.name = depSite.name
-- file = callSite[0]
-- } else {
-- // get call site
-- i = 2
-- depSite = callSiteLocation(stack[i])
-- callSite = depSite
-- }
--
-- // get caller of deprecated thing in relation to file
-- for (; i < stack.length; i++) {
-- caller = callSiteLocation(stack[i])
-- callFile = caller[0]
--
-- if (callFile === file) {
-- seen = true
-- } else if (callFile === this._file) {
-- file = this._file
-- } else if (seen) {
-- break
-- }
-- }
--
-- var key = caller
-- ? depSite.join(':') + '__' + caller.join(':')
-- : undefined
--
-- if (key !== undefined && key in this._warned) {
-- // already warned
-- return
-- }
--
-- this._warned[key] = true
--
-- // generate automatic message from call site
-- var msg = message
-- if (!msg) {
-- msg = callSite === depSite || !callSite.name
-- ? defaultMessage(depSite)
-- : defaultMessage(callSite)
-- }
--
-- // emit deprecation if listeners exist
-- if (haslisteners) {
-- var err = DeprecationError(this._namespace, msg, stack.slice(i))
-- process.emit('deprecation', err)
-- return
-- }
--
-- // format and write message
-- var format = process.stderr.isTTY
-- ? formatColor
-- : formatPlain
-- var output = format.call(this, msg, caller, stack.slice(i))
-- process.stderr.write(output + '\n', 'utf8')
--}
--
--/**
-- * Get call site location as array.
-- */
--
--function callSiteLocation (callSite) {
-- var file = callSite.getFileName() || ''
-- var line = callSite.getLineNumber()
-- var colm = callSite.getColumnNumber()
--
-- if (callSite.isEval()) {
-- file = callSite.getEvalOrigin() + ', ' + file
-- }
--
-- var site = [file, line, colm]
--
-- site.callSite = callSite
-- site.name = callSite.getFunctionName()
--
-- return site
--}
--
--/**
-- * Generate a default message from the site.
-- */
--
--function defaultMessage (site) {
-- var callSite = site.callSite
-- var funcName = site.name
--
-- // make useful anonymous name
-- if (!funcName) {
-- funcName = ''
-- }
--
-- var context = callSite.getThis()
-- var typeName = context && callSite.getTypeName()
--
-- // ignore useless type name
-- if (typeName === 'Object') {
-- typeName = undefined
-- }
--
-- // make useful type name
-- if (typeName === 'Function') {
-- typeName = context.name || typeName
-- }
--
-- return typeName && callSite.getMethodName()
-- ? typeName + '.' + funcName
-- : funcName
--}
--
--/**
-- * Format deprecation message without color.
-- */
--
--function formatPlain (msg, caller, stack) {
-- var timestamp = new Date().toUTCString()
--
-- var formatted = timestamp +
-- ' ' + this._namespace +
-- ' deprecated ' + msg
--
-- // add stack trace
-- if (this._traced) {
-- for (var i = 0; i < stack.length; i++) {
-- formatted += '\n at ' + callSiteToString(stack[i])
-- }
--
-- return formatted
-- }
--
-- if (caller) {
-- formatted += ' at ' + formatLocation(caller)
-- }
--
-- return formatted
--}
--
--/**
-- * Format deprecation message with color.
-- */
--
--function formatColor (msg, caller, stack) {
-- var formatted = '\x1b[36;1m' + this._namespace + '\x1b[22;39m' + // bold cyan
-- ' \x1b[33;1mdeprecated\x1b[22;39m' + // bold yellow
-- ' \x1b[0m' + msg + '\x1b[39m' // reset
--
-- // add stack trace
-- if (this._traced) {
-- for (var i = 0; i < stack.length; i++) {
-- formatted += '\n \x1b[36mat ' + callSiteToString(stack[i]) + '\x1b[39m' // cyan
-- }
--
-- return formatted
-- }
--
-- if (caller) {
-- formatted += ' \x1b[36m' + formatLocation(caller) + '\x1b[39m' // cyan
-- }
--
-- return formatted
--}
--
--/**
-- * Format call site location.
-- */
--
--function formatLocation (callSite) {
-- return relative(basePath, callSite[0]) +
-- ':' + callSite[1] +
-- ':' + callSite[2]
--}
--
--/**
-- * Get the stack as array of call sites.
-- */
--
--function getStack () {
-- var limit = Error.stackTraceLimit
-- var obj = {}
-- var prep = Error.prepareStackTrace
--
-- Error.prepareStackTrace = prepareObjectStackTrace
-- Error.stackTraceLimit = Math.max(10, limit)
--
-- // capture the stack
-- Error.captureStackTrace(obj)
--
-- // slice this function off the top
-- var stack = obj.stack.slice(1)
--
-- Error.prepareStackTrace = prep
-- Error.stackTraceLimit = limit
--
-- return stack
--}
--
--/**
-- * Capture call site stack from v8.
-- */
--
--function prepareObjectStackTrace (obj, stack) {
-- return stack
--}
--
--/**
-- * Return a wrapped function in a deprecation message.
-- */
--
--function wrapfunction (fn, message) {
-- if (typeof fn !== 'function') {
-- throw new TypeError('argument fn must be a function')
-- }
--
-- var args = createArgumentsString(fn.length)
-- var deprecate = this // eslint-disable-line no-unused-vars
-- var stack = getStack()
-- var site = callSiteLocation(stack[1])
--
-- site.name = fn.name
--
-- // eslint-disable-next-line no-eval
-- var deprecatedfn = eval('(function (' + args + ') {\n' +
-- '"use strict"\n' +
-- 'log.call(deprecate, message, site)\n' +
-- 'return fn.apply(this, arguments)\n' +
-- '})')
--
-- return deprecatedfn
--}
--
--/**
-- * Wrap property in a deprecation message.
-- */
--
--function wrapproperty (obj, prop, message) {
-- if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
-- throw new TypeError('argument obj must be object')
-- }
--
-- var descriptor = Object.getOwnPropertyDescriptor(obj, prop)
--
-- if (!descriptor) {
-- throw new TypeError('must call property on owner object')
-- }
--
-- if (!descriptor.configurable) {
-- throw new TypeError('property must be configurable')
-- }
--
-- var deprecate = this
-- var stack = getStack()
-- var site = callSiteLocation(stack[1])
--
-- // set site name
-- site.name = prop
--
-- // convert data descriptor
-- if ('value' in descriptor) {
-- descriptor = convertDataDescriptorToAccessor(obj, prop, message)
-- }
--
-- var get = descriptor.get
-- var set = descriptor.set
--
-- // wrap getter
-- if (typeof get === 'function') {
-- descriptor.get = function getter () {
-- log.call(deprecate, message, site)
-- return get.apply(this, arguments)
-- }
-- }
--
-- // wrap setter
-- if (typeof set === 'function') {
-- descriptor.set = function setter () {
-- log.call(deprecate, message, site)
-- return set.apply(this, arguments)
-- }
-- }
--
-- Object.defineProperty(obj, prop, descriptor)
--}
--
--/**
-- * Create DeprecationError for deprecation
-- */
--
--function DeprecationError (namespace, message, stack) {
-- var error = new Error()
-- var stackString
--
-- Object.defineProperty(error, 'constructor', {
-- value: DeprecationError
-- })
--
-- Object.defineProperty(error, 'message', {
-- configurable: true,
-- enumerable: false,
-- value: message,
-- writable: true
-- })
--
-- Object.defineProperty(error, 'name', {
-- enumerable: false,
-- configurable: true,
-- value: 'DeprecationError',
-- writable: true
-- })
--
-- Object.defineProperty(error, 'namespace', {
-- configurable: true,
-- enumerable: false,
-- value: namespace,
-- writable: true
-- })
--
-- Object.defineProperty(error, 'stack', {
-- configurable: true,
-- enumerable: false,
-- get: function () {
-- if (stackString !== undefined) {
-- return stackString
-- }
--
-- // prepare stack trace
-- return (stackString = createStackString.call(this, stack))
-- },
-- set: function setter (val) {
-- stackString = val
-- }
-- })
--
-- return error
--}
-+module.exports = require('./lib/browser/index.js')
-\ No newline at end of file
diff --git a/packages/plugin-agoric-app/patches/node-lmdb+0.9.4.patch b/packages/plugin-agoric-app/patches/node-lmdb+0.9.4.patch
deleted file mode 100644
index 84de285..0000000
--- a/packages/plugin-agoric-app/patches/node-lmdb+0.9.4.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-diff --git a/node_modules/node-lmdb/binding.gyp b/node_modules/node-lmdb/binding.gyp
-index 325a9aa..fe775fc 100644
---- a/node_modules/node-lmdb/binding.gyp
-+++ b/node_modules/node-lmdb/binding.gyp
-@@ -7,7 +7,7 @@
- "targets": [
- {
- "target_name": "node-lmdb",
-- "win_delay_load_hook": "false",
-+ "win_delay_load_hook": "true",
- "sources": [
- "dependencies/lmdb/libraries/liblmdb/mdb.c",
- "dependencies/lmdb/libraries/liblmdb/midl.c",
-@@ -58,7 +58,21 @@
- }
- }],
- ["OS=='win'", {
-- "libraries": ["ntdll.lib"]
-+ "libraries": ["ntdll.lib"],
-+ "configurations": {
-+ "Release": {
-+ "msvs_settings": {
-+ "VCLinkerTool": {
-+ "AdditionalOptions": [
-+ "/LTCG:OFF"
-+ ]
-+ },
-+ "VCCLCompilerTool": {
-+ "WholeProgramOptimization": "false"
-+ }
-+ }
-+ }
-+ }
- }],
- ["use_fixed_size=='true'", {
- "defines": ["MDB_FIXEDSIZE"],
diff --git a/packages/plugin-agoric-app/scripts/build-sdk.cjs b/packages/plugin-agoric-app/scripts/build-sdk.cjs
deleted file mode 100755
index 9297f00..0000000
--- a/packages/plugin-agoric-app/scripts/build-sdk.cjs
+++ /dev/null
@@ -1,91 +0,0 @@
-#! /usr/bin/env node
-const { spawnSync } = require('child_process');
-const os = require('os');
-const path = require('path');
-const fs = require('fs');
-
-// process.env.GOPATH = `${process.cwd()}/gopath`;
-// process.env.GO111MODULE = 'on';
-
-function linkAllElectrons() {
- for (const [_src, dst] of [
- ['../../../../node_modules/electron', 'node_modules/electron'],
- ['../../../node_modules/electron', '../../app-electron/node_modules/electron']
- ]) {
- const src = `${__dirname}/../../../../node_modules/electron`;
- console.log('linking', src, 'to', dst);
- try {
- fs.unlinkSync(dst);
- } catch (e) {
- if (e.code !== 'ENOENT') {
- throw e;
- }
- }
- fs.mkdirSync(path.dirname(dst), { recursive: true });
- fs.symlinkSync(src, dst, 'junction');
- }
-}
-// linkAllElectrons();
-
-console.log('rename morgan/node_modules/depd out of the way');
-try {
- fs.renameSync('node_modules/morgan/node_modules/depd', 'node_modules/morgan/node_modules/depd.old');
-} catch (e) {
- if (e.code !== 'ENOENT') {
- throw e;
- }
-}
-
-const pjson = require('@agoric/cosmic-swingset/package.json');
-const goMod = `github.com/Agoric/agoric-sdk`;
-
-// Note that the version.Name must be alphanumeric only.
-// Otherwise, generated "os" keyrings on Ubuntu 20.04 can't be read.
-const VersionName = pjson.name.replace(/[^A-Za-z0-9]/g, '');
-
-function fetchGitHead(gitHead) {
- if (!gitHead) {
- throw Error(`Specify git head to fetch`);
- }
-
- console.log(`Go getting ${goMod}@${gitHead}`);
- const goGet = spawnSync('go', ['get', '-v', `${goMod}@${gitHead}`],
- {
- stdio: ['inherit', 'inherit', 'inherit'],
- });
- if (goGet.error) {
- throw goGet.error;
- }
-}
-
-const gitHead = process.argv[2] || pjson.gitHead;
-// fetchGitHead(gitHead);
-const build_tags = 'ledger';
-const build_tags_comma_sep = build_tags.replace(/ +/, ',');
-
-const exeExt = os.type() === 'Windows_NT' ? '.exe' : '';
-
-console.log('Compiling bin/ag-cosmos-helper with Go...');
-const ret = spawnSync('go', ['build', '-v', '-ldflags', `\
- -X github.com/cosmos/cosmos-sdk/version.Name=${VersionName}\
- -X github.com/cosmos/cosmos-sdk/version.AppName=ag-cosmos-server\
- -X github.com/cosmos/cosmos-sdk/version.Version=${pjson.version}\
- -X github.com/cosmos/cosmos-sdk/version.Commit=${gitHead}\
- -X "github.com/cosmos/cosmos-sdk/version.BuildTags=${build_tags_comma_sep}"\
-`,
- '-buildmode=exe', '-tags', build_tags,
- '-o', `${__dirname}/../bin/ag-cosmos-helper${exeExt}`,
- `${goMod}/golang/cosmos/cmd/helper`
- ],
- {
- // cwd: css,
- stdio: ['inherit', 'inherit', 'inherit'],
- },
-);
-
-if (ret.error) {
- throw ret.error;
-}
-
-
-
diff --git a/packages/plugin-agoric-app/src/forks/ag-solo.cjs b/packages/plugin-agoric-app/src/forks/ag-solo.cjs
deleted file mode 100644
index 99a6c49..0000000
--- a/packages/plugin-agoric-app/src/forks/ag-solo.cjs
+++ /dev/null
@@ -1,11 +0,0 @@
-// ag-solo entrypoint
-const esmRequire = require('esm')(module);
-const path = require('path');
-const os = require('os');
-
-// Add our bin directory to the path, so we can find our ag-cosmos-helper
-process.env.PATH = `${path.join(__dirname, '..', '..', 'bin')}${path.delimiter}${process.env.PATH}`;
-
-process.env.AG_SOLO_BASEDIR = `${os.homedir()}/.agoric/basedir`;
-
-esmRequire('@agoric/cosmic-swingset/lib/ag-solo/entrypoint.js');
diff --git a/packages/plugin-agoric-app/src/forks/agoric-cli.cjs b/packages/plugin-agoric-app/src/forks/agoric-cli.cjs
deleted file mode 100644
index a0e5825..0000000
--- a/packages/plugin-agoric-app/src/forks/agoric-cli.cjs
+++ /dev/null
@@ -1,4 +0,0 @@
-// agoric-cli entrypoint
-const esmRequire = require('esm')(module);
-
-esmRequire('agoric/lib/entrypoint.js');
diff --git a/packages/plugin-agoric-app/src/forks/cat.cjs b/packages/plugin-agoric-app/src/forks/cat.cjs
deleted file mode 100644
index bc6fc64..0000000
--- a/packages/plugin-agoric-app/src/forks/cat.cjs
+++ /dev/null
@@ -1 +0,0 @@
-process.stdin.on('data', data => process.stdout.write(data));
diff --git a/packages/plugin-agoric-app/src/server.js b/packages/plugin-agoric-app/src/server.js
deleted file mode 100644
index abe3bce..0000000
--- a/packages/plugin-agoric-app/src/server.js
+++ /dev/null
@@ -1,76 +0,0 @@
-import { E } from '@agoric/eventual-send';
-
-import { fork } from 'child_process';
-import path from 'path';
-import { makeNotifierKit } from '@agoric/notifier';
-import { getAccessToken } from '@agoric/cosmic-swingset/lib/ag-solo/access-token.js';
-
-export const bootPlugin = ({ getState, setState }) => {
- const idToChild = new Map();
- return harden({
- hello(nickname) {
- return `Hello again, ${nickname}!`;
- },
- getAccessToken,
- fork(id, progname, ...restArgs) {
- if (idToChild.has(id)) {
- return idToChild.get(id);
- }
- const base = path.basename(progname);
- const entrypoint = path.join(__dirname, 'forks', `${base}.cjs`);
- const cp = fork(entrypoint, restArgs, { stdio: 'pipe' });
-
- const consoleData = [];
- const { notifier, updater } = makeNotifierKit([...consoleData]);
-
- const addToConsole = (source, data) => {
- const obj = {
- type: source,
- data,
- };
- consoleData.push(obj);
- updater.updateState([...consoleData]);
- };
-
- cp.on('close', (code, signal) => {
- idToChild.delete(id);
- addToConsole('exit', { code, signal });
- // Allow the finisher to freeze the data.
- updater.finish([...consoleData]);
- });
-
- cp.stderr.on('data', chunk => addToConsole('stderr', chunk.toString('latin1')));
- cp.stdout.on('data', chunk => addToConsole('stdout', chunk.toString('latin1')));
- const child = harden({
- kill(sig = 'SIGTERM') {
- process.kill(cp.pid, sig);
- },
- write(data) {
- return new Promise((resolve, reject) => {
- addToConsole('stdin', data);
- cp.stdin.write(data, err => {
- if (err) {
- console.error('have error', err);
- return reject(err);
- }
- return resolve();
- });
- });
- },
- getNotifier() {
- return notifier;
- },
- });
- idToChild.set(id, child);
- return child;
- },
- getUiIndex() {
- return path.join(__dirname, '../../plugin-agoric-ui/public/index.html');
- },
- dispose() {
- for (const child of idToChild.values()) {
- E(child).kill();
- }
- }
- });
-};
diff --git a/packages/plugin-agoric-ui/.gitignore b/packages/plugin-agoric-ui/.gitignore
deleted file mode 100644
index da93220..0000000
--- a/packages/plugin-agoric-ui/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-/node_modules/
-/public/build/
-
-.DS_Store
diff --git a/packages/plugin-agoric-ui/CHANGELOG.md b/packages/plugin-agoric-ui/CHANGELOG.md
deleted file mode 100644
index e458b5e..0000000
--- a/packages/plugin-agoric-ui/CHANGELOG.md
+++ /dev/null
@@ -1,83 +0,0 @@
-# Change Log
-
-All notable changes to this project will be documented in this file.
-See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
-
-## [1.2.1-dev.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/dapp-svelte-wallet-ui@1.2.1-dev.1...@agoric/dapp-svelte-wallet-ui@1.2.1-dev.2) (2020-09-18)
-
-**Note:** Version bump only for package @agoric/dapp-svelte-wallet-ui
-
-
-
-
-
-## [1.2.1-dev.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/dapp-svelte-wallet-ui@1.2.1-dev.0...@agoric/dapp-svelte-wallet-ui@1.2.1-dev.1) (2020-09-18)
-
-**Note:** Version bump only for package @agoric/dapp-svelte-wallet-ui
-
-
-
-
-
-## [1.2.1-dev.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/dapp-svelte-wallet-ui@1.2.0...@agoric/dapp-svelte-wallet-ui@1.2.1-dev.0) (2020-09-18)
-
-**Note:** Version bump only for package @agoric/dapp-svelte-wallet-ui
-
-
-
-
-
-# [1.2.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/dapp-svelte-wallet-ui@1.1.1...@agoric/dapp-svelte-wallet-ui@1.2.0) (2020-09-16)
-
-
-### Bug Fixes
-
-* change webkey -> accessToken and polish usage ([0362abe](https://github.com/Agoric/agoric-sdk/commit/0362abe1f6aa1322d50826e77c052881d940f72e))
-* implement robust plugin persistence model ([2de552e](https://github.com/Agoric/agoric-sdk/commit/2de552ed4a4b25e5fcc641ff5e80afd5af1d167d))
-* SECURITY: use a private on-disk webkey for trusted auth ([f769d95](https://github.com/Agoric/agoric-sdk/commit/f769d95031f8e0b2003d31f0554dce17d6440f1b))
-
-
-### Features
-
-* provide a button to activate the wallet from the bridge ([18f1cb2](https://github.com/Agoric/agoric-sdk/commit/18f1cb2793f9a3db25fcab09882fb6421e2e364b))
-
-
-
-
-
-## [1.1.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/dapp-svelte-wallet-ui@1.1.0...@agoric/dapp-svelte-wallet-ui@1.1.1) (2020-08-31)
-
-**Note:** Version bump only for package @agoric/dapp-svelte-wallet-ui
-
-
-
-
-
-# 1.1.0 (2020-08-31)
-
-
-### Bug Fixes
-
-* don't pluralise anything but the last path element ([e173dbc](https://github.com/Agoric/agoric-sdk/commit/e173dbc9744e80bdc3fcd50d9530a2144e717bf1))
-* highlight selected menu ([4c3c169](https://github.com/Agoric/agoric-sdk/commit/4c3c1690f92992634a64d5bbc05d4ccd3ba1b1c1))
-* introduce summaryLine to allow tooltip with ripple ([08393a8](https://github.com/Agoric/agoric-sdk/commit/08393a8edd64efaa831c29f341d4b4bedb93302f))
-* make MenuButton more subtle ([3cd6315](https://github.com/Agoric/agoric-sdk/commit/3cd63150bb7a8cb2347f9625e855321fe173d2bf))
-* more cleanups ([b2cff30](https://github.com/Agoric/agoric-sdk/commit/b2cff30167f4646ae3ff3aa47afcc5534ae03155))
-* more UI cleanups ([ac1d2f7](https://github.com/Agoric/agoric-sdk/commit/ac1d2f72a0365ea9bc912daf0454819e25f7752d))
-* rely on HandledPromise shim ([5eb8e30](https://github.com/Agoric/agoric-sdk/commit/5eb8e30d0b726b596173d9ce00a6df46fdeac51d))
-* style payments ([b7e6176](https://github.com/Agoric/agoric-sdk/commit/b7e6176eb3a4c674d67e7c26069568a55b0b1659))
-* tooltips within ListCards now work ([e389dd1](https://github.com/Agoric/agoric-sdk/commit/e389dd1338c50a2fc1ef53e116954058ddf0546a))
-* upgrade to SES 0.10.0 ([bf8ceff](https://github.com/Agoric/agoric-sdk/commit/bf8ceff03ebb790728c18a131b6305ca7f7f4a4f))
-* use petname for zoe invite display, too ([2559e0d](https://github.com/Agoric/agoric-sdk/commit/2559e0d514fd7dbb2f088b2cc48175be60938474))
-
-
-### Features
-
-* add HandledPromise shim before lockdown() ([5574462](https://github.com/Agoric/agoric-sdk/commit/55744622a7ff5909b6cc296cdf6ab0f2a6ee2e0c))
-* add nav and paging, and improve formatting ([9a22fc0](https://github.com/Agoric/agoric-sdk/commit/9a22fc06343a5400436f9d60a524b691589ca5ca))
-* add the Svelte wallet ([f950400](https://github.com/Agoric/agoric-sdk/commit/f950400eeb9323729616012ff1c319d05e087e93))
-* introduce a $ready store for when captp is initialised ([d9d73d2](https://github.com/Agoric/agoric-sdk/commit/d9d73d240aa73a81b770c1d3ced7a9750c50b0fa))
-* much better formatting ([f331df0](https://github.com/Agoric/agoric-sdk/commit/f331df0006867a4409e974aad5885e649abf2172))
-* style the offers ([c74ec50](https://github.com/Agoric/agoric-sdk/commit/c74ec50f180dd9d2973ab1a6c4c2f7afb89546a8))
-* use ListCard for Issuers ([a7ec550](https://github.com/Agoric/agoric-sdk/commit/a7ec5508ef740d8d230f7fb5dd8ce9f0d3df68e9))
-* use SES for the wallet frontend ([3ba89dc](https://github.com/Agoric/agoric-sdk/commit/3ba89dc4b2f5cf1d3a2cf60b3c7694a2dbf456c9))
diff --git a/packages/plugin-agoric-ui/README.md b/packages/plugin-agoric-ui/README.md
deleted file mode 100644
index 54bca49..0000000
--- a/packages/plugin-agoric-ui/README.md
+++ /dev/null
@@ -1,104 +0,0 @@
-*Looking for a shareable component template? Go here --> [sveltejs/component-template](https://github.com/sveltejs/component-template)*
-
----
-
-# svelte app
-
-This is a project template for [Svelte](https://svelte.dev) apps. It lives at https://github.com/sveltejs/template.
-
-To create a new project based on this template using [degit](https://github.com/Rich-Harris/degit):
-
-```bash
-npx degit sveltejs/template svelte-app
-cd svelte-app
-```
-
-*Note that you will need to have [Node.js](https://nodejs.org) installed.*
-
-
-## Get started
-
-Install the dependencies...
-
-```bash
-cd svelte-app
-npm install
-```
-
-...then start [Rollup](https://rollupjs.org):
-
-```bash
-npm run dev
-```
-
-Navigate to [localhost:5000](http://localhost:5000). You should see your app running. Edit a component file in `src`, save it, and reload the page to see your changes.
-
-By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the `sirv` commands in package.json to include the option `--host 0.0.0.0`.
-
-
-## Building and running in production mode
-
-To create an optimised version of the app:
-
-```bash
-npm run build
-```
-
-You can run the newly built app with `npm run start`. This uses [sirv](https://github.com/lukeed/sirv), which is included in your package.json's `dependencies` so that the app will work when you deploy to platforms like [Heroku](https://heroku.com).
-
-
-## Single-page app mode
-
-By default, sirv will only respond to requests that match files in `public`. This is to maximise compatibility with static fileservers, allowing you to deploy your app anywhere.
-
-If you're building a single-page app (SPA) with multiple routes, sirv needs to be able to respond to requests for *any* path. You can make it so by editing the `"start"` command in package.json:
-
-```js
-"start": "sirv public --single"
-```
-
-## Using TypeScript
-
-This template comes with a script to set up a TypeScript development environment, you can run it immediately after cloning the template with:
-
-```bash
-node scripts/setupTypeScript.js
-```
-
-Or remove the script via:
-
-```bash
-rm scripts/setupTypeScript.js
-```
-
-## Deploying to the web
-
-### With [Vercel](https://vercel.com)
-
-Install `vercel` if you haven't already:
-
-```bash
-npm install -g vercel
-```
-
-Then, from within your project folder:
-
-```bash
-cd public
-vercel deploy --name my-project
-```
-
-### With [surge](https://surge.sh/)
-
-Install `surge` if you haven't already:
-
-```bash
-npm install -g surge
-```
-
-Then, from within your project folder:
-
-```bash
-npm run build
-surge public my-project.surge.sh
-```
diff --git a/packages/plugin-agoric-ui/lib/Button.svelte b/packages/plugin-agoric-ui/lib/Button.svelte
deleted file mode 100644
index 734e915..0000000
--- a/packages/plugin-agoric-ui/lib/Button.svelte
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-
-{#if href}
-
-
-
-{:else}
-
-{/if}
diff --git a/packages/plugin-agoric-ui/lib/CancelButton.svelte b/packages/plugin-agoric-ui/lib/CancelButton.svelte
deleted file mode 100644
index 915096e..0000000
--- a/packages/plugin-agoric-ui/lib/CancelButton.svelte
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
diff --git a/packages/plugin-agoric-ui/lib/Card.svelte b/packages/plugin-agoric-ui/lib/Card.svelte
deleted file mode 100644
index 376f7ba..0000000
--- a/packages/plugin-agoric-ui/lib/Card.svelte
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-