diff --git a/pkg/Library/Core/arcs.js.map b/pkg/Library/Core/arcs.js.map index e4793f74..d701c0ed 100644 --- a/pkg/Library/Core/arcs.js.map +++ b/pkg/Library/Core/arcs.js.map @@ -2,6 +2,6 @@ "version": 3, "sources": ["../../../core/js/core/Particle.js", "../../../core/js/core/EventEmitter.js", "../../../core/js/utils/types.js", "../../../core/js/utils/log.js", "../../../core/js/core/Arc.js", "../../../core/js/utils/object.js", "../../../core/js/utils/rand.js", "../../../core/js/core/Decorator.js", "../../../core/js/core/Host.js", "../../../core/js/core/Store.js", "../../../core/js/utils/id.js", "../../../core/js/Runtime.js", "../../../core/js/recipe/RecipeParser.js", "../../../core/js/utils/matching.js", "../../../core/js/recipe/StoreCook.js", "../../../core/js/recipe/ParticleCook.js", "../../../core/js/recipe/Chef.js", "../../../core/js/utils/paths.js", "../../../core/js/isolation/code.js", "../../../core/js/isolation/vanilla.js", "../../../core/js/utils/utils.js", "../../../core/js/utils/date.js", "../../../core/js/utils/task.js", "../../../core/src/arcs.ts"], "sourcesContent": ["/**\n * @license\n * Copyright 2022 Google LLC\n *\n * Use of this source code is governed by a BSD-style\n * license that can be found in the LICENSE file or at\n * https://developers.google.com/open-source/licenses/bsd\n */\n/*\n * PSA: code in this file is subject to isolation restrictions, including runtime processing.\n * Particle module interfaces with 3p code, and is often loaded into isolation contexts.\n**/\nconst { create, assign, keys, values, entries, defineProperty, setPrototypeOf } = Object;\nconst scope = globalThis['scope'] ?? {};\nconst { log, timeout } = scope;\nconst nob = () => create(null);\n// yay lambda, he gets a semi-colon ... named classes not so much\nconst storePrototype = new class {\n get empty() {\n return this.length === 0;\n }\n get data() {\n return this;\n }\n get pojo() {\n return this.data;\n }\n get json() {\n return JSON.stringify(this.pojo);\n }\n get pretty() {\n return JSON.stringify(this.pojo, null, ' ');\n }\n get keys() {\n return keys(this.data);\n }\n get length() {\n return keys(this.data).length;\n }\n get values() {\n return values(this.data);\n }\n get entries() {\n return entries(this.data);\n }\n set(key, value) {\n this.data[key] = value;\n }\n setByIndex(index, value) {\n this.data[this.keys[index]] = value;\n }\n add(...values) {\n values.forEach(value => this.data[scope.makeKey()] = value);\n }\n push(...values) {\n this.add(...values);\n }\n remove(value) {\n entries(this.data).find(([key, entry]) => {\n if (entry === value) {\n delete this.data[key];\n return true;\n }\n });\n }\n has(key) {\n return this.data[key] !== undefined;\n }\n get(key) {\n return this.getByKey(key);\n }\n getByKey(key) {\n return this.data[key];\n }\n getByIndex(index) {\n return this.data[this.keys[index]];\n }\n delete(key) {\n delete this.data[key];\n }\n deleteByIndex(index) {\n delete this.data[this.keys[index]];\n }\n assign(dictionary) {\n assign(this.data, dictionary);\n }\n map(mapFunc) {\n return this.values.map(mapFunc);\n }\n toString() {\n return this.pretty;\n }\n};\n/**\n * ParticleAPI functions are called at various points in the particle's lifecycle.\n * Developers should override these functions as needed to give a particle\n * functionality.\n */\nexport class ParticleApi {\n /**\n * Particles that render on a surface should provide a template. The template\n * can include double curly bracketed keys that will be interpolated at\n * runtime.\n *\n * To dynamically change the template, we double curly braced keys must be\n * the only thing inside a div or span:\n * ```\n * {{key}}.\n *
{{key}}
\n * ```\n *\n * The value for each key is returned from the {@link render | render method}.\n *\n * Double curly bracketed keys can also be placed inside div definitions to\n * change attributes. In this instance we place them inside quotation marks.\n * For example:\n * ```\n *