UNPKG

271 kBSource Map (JSON)View Raw
1{"version":3,"file":"firetruss.umd.js","sources":["../src/angularCompatibility.js","../src/utils/LruCache.js","../src/utils/paths.js","../src/Bridge.js","../src/Reference.js","../src/utils/utils.js","../node_modules/performance-now/lib/performance-now.js","../src/utils/stats.js","../src/Connector.js","../src/utils/promises.js","../src/Dispatcher.js","../src/KeyGenerator.js","../src/MetaTree.js","../src/Modeler.js","../src/Coupler.js","../src/Tree.js","../src/Truss.js"],"sourcesContent":["import _ from 'lodash';\nimport Vue from 'vue';\n\n\nlet vue;\nlet lastDigestRequest = 0, digestInProgress = false;\nconst bareDigest = function() {\n if (vue.digestRequest > lastDigestRequest) return;\n vue.digestRequest = lastDigestRequest + 1;\n};\n\nconst angularProxy = {\n active: typeof window !== 'undefined' && window.angular\n};\n\nif (angularProxy.active) {\n initAngular();\n} else {\n _.forEach(['digest', 'watch', 'defineModule', 'debounceDigest'], method => {\n angularProxy[method] = _.noop;\n });\n}\n\nfunction initAngular() {\n const module = window.angular.module('firetruss', []);\n angularProxy.digest = bareDigest;\n angularProxy.watch = function() {throw new Error('Angular watch proxy not yet initialized');};\n angularProxy.defineModule = function(Truss) {\n module.constant('Truss', Truss);\n };\n angularProxy.debounceDigest = function(wait) {\n if (wait) {\n const debouncedDigest = _.debounce(bareDigest, wait);\n angularProxy.digest = function() {\n if (vue.digestRequest > lastDigestRequest) return;\n if (digestInProgress) bareDigest(); else debouncedDigest();\n };\n } else {\n angularProxy.digest = bareDigest;\n }\n };\n\n module.config(['$provide', function($provide) {\n $provide.decorator('$rootScope', ['$delegate', '$exceptionHandler',\n function($delegate, $exceptionHandler) {\n const rootScope = $delegate;\n angularProxy.watch = rootScope.$watch.bind(rootScope);\n const proto = Object.getPrototypeOf(rootScope);\n const angularDigest = proto.$digest;\n proto.$digest = bareDigest;\n proto.$digest.original = angularDigest;\n vue = new Vue({data: {digestRequest: 0}});\n vue.$watch(() => vue.digestRequest, () => {\n if (vue.digestRequest > lastDigestRequest) {\n // Make sure we execute the digest outside the Vue task queue, because otherwise if the\n // client replaced Promise with angular.$q all Truss.nextTick().then() functions will be\n // executed inside the Angular digest and hence inside the Vue task queue. But\n // Truss.nextTick() is used precisely to avoid that. Note that it's OK to use\n // Vue.nextTick() here because even though it will schedule a flush via Promise.then()\n // it only uses the native Promise, before it could've been monkey-patched by the app.\n Vue.nextTick(() => {\n if (vue.digestRequest <= lastDigestRequest) return;\n digestInProgress = true;\n rootScope.$digest.original.call(rootScope);\n lastDigestRequest = vue.digestRequest = vue.digestRequest + 1;\n });\n } else {\n digestInProgress = false;\n }\n });\n _.last(vue._watchers).id = Infinity; // make sure watcher is scheduled last\n patchRenderWatcherGet(Object.getPrototypeOf(_.last(vue._watchers)));\n return rootScope;\n }\n ]);\n }]);\n}\n\n// This is a kludge that catches errors that get through render watchers and end up killing the\n// entire Vue event loop (e.g., errors raised in transition callbacks). The state of the DOM may\n// not be consistent after such an error is caught, but the global error handler should stop the\n// world anyway. May be related to https://github.com/vuejs/vue/issues/7653.\nfunction patchRenderWatcherGet(prototype) {\n const originalGet = prototype.get;\n prototype.get = function get() {\n try {\n return originalGet.call(this);\n } catch (e) {\n if (this.vm._watcher === this && Vue.config.errorHandler) {\n Vue.config.errorHandler(e, this.vm, 'uncaught render error');\n } else {\n throw e;\n }\n }\n };\n}\n\nexport default angularProxy;\n","import _ from 'lodash';\n\n\nclass LruCacheItem {\n constructor(key, value) {\n this.key = key;\n this.value = value;\n this.touch();\n }\n\n touch() {\n this.timestamp = Date.now();\n }\n}\n\n\nexport default class LruCache {\n constructor(maxSize, pruningSize) {\n this._items = Object.create(null);\n this._size = 0;\n this._maxSize = maxSize;\n this._pruningSize = pruningSize || Math.ceil(maxSize * 0.10);\n }\n\n has(key) {\n return Boolean(this._items[key]);\n }\n\n get(key) {\n const item = this._items[key];\n if (!item) return;\n item.touch();\n return item.value;\n }\n\n set(key, value) {\n const item = this._items[key];\n if (item) {\n item.value = value;\n } else {\n if (this._size >= this._maxSize) this._prune();\n this._items[key] = new LruCacheItem(key, value);\n this._size += 1;\n }\n }\n\n delete(key) {\n const item = this._items[key];\n if (!item) return;\n delete this._items[key];\n this._size -= 1;\n }\n\n _prune() {\n const itemsToPrune =\n _(this._items).toArray().sortBy('timestamp').take(this._pruningSize).value();\n for (const item of itemsToPrune) this.delete(item.key);\n }\n}\n","import LruCache from './LruCache.js';\nimport _ from 'lodash';\n\n\nconst pathSegments = new LruCache(1000);\nconst pathMatchers = {};\nconst maxNumPathMatchers = 1000;\n\n\nexport function escapeKey(key) {\n if (!key) return key;\n // eslint-disable-next-line no-control-regex\n return key.toString().replace(/[\\x00-\\x1f\\\\.$#[\\]\\x7f/]/g, function(char) {\n return '\\\\' + _.padStart(char.charCodeAt(0).toString(16), 2, '0');\n });\n}\n\nexport function unescapeKey(key) {\n if (!key) return key;\n return key.toString().replace(/\\\\[0-9a-f]{2}/gi, function(code) {\n return String.fromCharCode(parseInt(code.slice(1), 16));\n });\n}\n\nexport function escapeKeys(object) {\n // isExtensible check avoids trying to escape references to Firetruss internals.\n if (!(_.isObject(object) && Object.isExtensible(object))) return object;\n let result = object;\n for (const key in object) {\n if (!object.hasOwnProperty(key)) continue;\n const value = object[key];\n const escapedKey = escapeKey(key);\n const escapedValue = escapeKeys(value);\n if (escapedKey !== key || escapedValue !== value) {\n if (result === object) result = _.clone(object);\n result[escapedKey] = escapedValue;\n if (result[key] === value) delete result[key];\n }\n }\n return result;\n}\n\nexport function joinPath() {\n const segments = [];\n for (let segment of arguments) {\n if (!_.isString(segment)) segment = '' + segment;\n if (segment.charAt(0) === '/') segments.splice(0, segments.length);\n segments.push(segment);\n }\n if (segments[0] === '/') segments[0] = '';\n return segments.join('/');\n}\n\nexport function splitPath(path, leaveSegmentsEscaped) {\n const key = (leaveSegmentsEscaped ? 'esc:' : '') + path;\n let segments = pathSegments.get(key);\n if (!segments) {\n segments = path.split('/');\n if (!leaveSegmentsEscaped) segments = _.map(segments, unescapeKey);\n pathSegments.set(key, segments);\n }\n return segments;\n}\n\n\nclass PathMatcher {\n constructor(pattern) {\n this.variables = [];\n const prefixMatch = _.endsWith(pattern, '/$*');\n if (prefixMatch) pattern = pattern.slice(0, -3);\n const pathTemplate = pattern.replace(/\\/\\$[^/]*/g, match => {\n if (match.length > 1) this.variables.push(match.slice(1));\n return '\\u0001';\n });\n Object.freeze(this.variables);\n if (/[.$#[\\]]|\\\\(?![0-9a-f][0-9a-f])/i.test(pathTemplate)) {\n throw new Error('Path pattern has unescaped keys: ' + pattern);\n }\n this._regex = new RegExp(\n // eslint-disable-next-line no-control-regex\n '^' + pathTemplate.replace(/\\u0001/g, '/([^/]+)') + (prefixMatch ? '($|/)' : '$'));\n }\n\n match(path) {\n this._regex.lastIndex = 0;\n const match = this._regex.exec(path);\n if (!match) return;\n const bindings = {};\n for (let i = 0; i < this.variables.length; i++) {\n bindings[this.variables[i]] = unescapeKey(match[i + 1]);\n }\n return bindings;\n }\n\n test(path) {\n return this._regex.test(path);\n }\n\n toString() {\n return this._regex.toString();\n }\n}\n\nexport function makePathMatcher(pattern) {\n let matcher = pathMatchers[pattern];\n if (!matcher) {\n matcher = new PathMatcher(pattern);\n // Minimal pseudo-LRU behavior, since we don't expect to actually fill up the cache.\n if (_.size(pathMatchers) === maxNumPathMatchers) delete pathMatchers[_.keys(pathMatchers)[0]];\n pathMatchers[pattern] = matcher;\n }\n return matcher;\n}\n","import {unescapeKey} from './utils/paths.js';\nimport _ from 'lodash';\n\nconst MIN_WORKER_VERSION = '2.2.0';\n\n\nclass Snapshot {\n constructor({path, value, exists, writeSerial}) {\n this._path = path;\n this._value = value;\n this._exists = value === undefined ? exists || false : value !== null;\n this._writeSerial = writeSerial;\n }\n\n get path() {\n return this._path;\n }\n\n get exists() {\n return this._exists;\n }\n\n get value() {\n if (this._value === undefined) throw new Error('Value omitted from snapshot');\n return this._value;\n }\n\n get key() {\n if (this._key === undefined) this._key = unescapeKey(this._path.replace(/.*\\//, ''));\n return this._key;\n }\n\n get writeSerial() {\n return this._writeSerial;\n }\n}\n\n\nexport default class Bridge {\n constructor(webWorker) {\n this._idCounter = 0;\n this._deferreds = {};\n this._suspended = false;\n this._servers = {};\n this._callbacks = {};\n this._log = _.noop;\n this._inboundMessages = [];\n this._outboundMessages = [];\n this._flushMessageQueue = this._flushMessageQueue.bind(this);\n this._port = webWorker.port || webWorker;\n this._shared = !!webWorker.port;\n Object.seal(this);\n this._port.onmessage = this._receive.bind(this);\n window.addEventListener('unload', () => {this._send({msg: 'destroy'});});\n }\n\n init(webWorker, config) {\n const items = [];\n try {\n const storage = window.localStorage || window.sessionStorage;\n if (!storage) throw new Error('localStorage and sessionStorage not available');\n for (let i = 0; i < storage.length; i++) {\n const key = storage.key(i);\n items.push({key, value: storage.getItem(key)});\n }\n } catch (e) {\n // Some browsers don't like us accessing local storage -- nothing we can do.\n }\n return this._send({msg: 'init', storage: items, config}).then(response => {\n const workerVersion = response.version.match(/^(\\d+)\\.(\\d+)\\.(\\d+)(-.*)?$/);\n if (workerVersion) {\n const minVersion = MIN_WORKER_VERSION.match(/^(\\d+)\\.(\\d+)\\.(\\d+)(-.*)?$/);\n // Major version must match precisely, minor and patch must be greater than or equal.\n const sufficient = workerVersion[1] === minVersion[1] && (\n workerVersion[2] > minVersion[2] ||\n workerVersion[2] === minVersion[2] && workerVersion[3] >= minVersion[3]\n );\n if (!sufficient) {\n return Promise.reject(new Error(\n `Incompatible Firetruss worker version: ${response.version} ` +\n `(${MIN_WORKER_VERSION} or better required)`\n ));\n }\n }\n return response;\n });\n }\n\n suspend(suspended) {\n if (suspended === undefined) suspended = true;\n if (this._suspended === suspended) return;\n this._suspended = suspended;\n if (!suspended) {\n this._receiveMessages(this._inboundMessages);\n this._inboundMessages = [];\n if (this._outboundMessages.length) Promise.resolve().then(this._flushMessageQueue);\n }\n }\n\n enableLogging(fn) {\n if (fn) {\n if (fn === true) fn = console.log.bind(console);\n this._log = fn;\n } else {\n this._log = _.noop;\n }\n }\n\n _send(message) {\n message.id = ++this._idCounter;\n let promise;\n if (message.oneWay) {\n promise = Promise.resolve();\n } else {\n promise = new Promise((resolve, reject) => {\n this._deferreds[message.id] = {resolve, reject};\n });\n const deferred = this._deferreds[message.id];\n deferred.promise = promise;\n promise.sent = new Promise(resolve => {\n deferred.resolveSent = resolve;\n });\n deferred.params = message;\n }\n if (!this._outboundMessages.length && !this._suspended) {\n Promise.resolve().then(this._flushMessageQueue);\n }\n this._log('send:', message);\n this._outboundMessages.push(message);\n return promise;\n }\n\n _flushMessageQueue() {\n try {\n this._port.postMessage(this._outboundMessages);\n this._outboundMessages = [];\n } catch (e) {\n e.extra = {messages: this._outboundMessages};\n throw e;\n }\n }\n\n _receive(event) {\n if (this._suspended) {\n this._inboundMessages = this._inboundMessages.concat(event.data);\n } else {\n this._receiveMessages(event.data);\n }\n }\n\n _receiveMessages(messages) {\n for (const message of messages) {\n this._log('recv:', message);\n const fn = this[message.msg];\n if (!_.isFunction(fn)) throw new Error('Unknown message: ' + message.msg);\n fn.call(this, message);\n }\n }\n\n bindExposedFunction(name) {\n return (function() {\n return this._send({msg: 'call', name, args: Array.prototype.slice.call(arguments)});\n }).bind(this);\n }\n\n resolve(message) {\n const deferred = this._deferreds[message.id];\n if (!deferred) throw new Error('Received resolution to inexistent Firebase call');\n delete this._deferreds[message.id];\n deferred.resolve(message.result);\n }\n\n reject(message) {\n const deferred = this._deferreds[message.id];\n if (!deferred) throw new Error('Received rejection of inexistent Firebase call');\n delete this._deferreds[message.id];\n deferred.reject(errorFromJson(message.error, deferred.params));\n }\n\n updateLocalStorage({items}) {\n try {\n const storage = window.localStorage || window.sessionStorage;\n for (const item of items) {\n if (item.value === null) {\n storage.removeItem(item.key);\n } else {\n storage.setItem(item.key, item.value);\n }\n }\n } catch (e) {\n // If we're denied access, there's nothing we can do.\n }\n }\n\n trackServer(rootUrl) {\n if (this._servers.hasOwnProperty(rootUrl)) return Promise.resolve();\n const server = this._servers[rootUrl] = {authListeners: []};\n const authCallbackId = this._registerCallback(this._authCallback.bind(this, server));\n this._send({msg: 'onAuth', url: rootUrl, callbackId: authCallbackId});\n }\n\n _authCallback(server, auth) {\n server.auth = auth;\n for (const listener of server.authListeners) listener(auth);\n }\n\n onAuth(rootUrl, callback, context) {\n const listener = callback.bind(context);\n listener.callback = callback;\n listener.context = context;\n this._servers[rootUrl].authListeners.push(listener);\n listener(this.getAuth(rootUrl));\n }\n\n offAuth(rootUrl, callback, context) {\n const authListeners = this._servers[rootUrl].authListeners;\n for (let i = 0; i < authListeners.length; i++) {\n const listener = authListeners[i];\n if (listener.callback === callback && listener.context === context) {\n authListeners.splice(i, 1);\n break;\n }\n }\n }\n\n getAuth(rootUrl) {\n return this._servers[rootUrl].auth;\n }\n\n authWithCustomToken(url, authToken) {\n return this._send({msg: 'authWithCustomToken', url, authToken});\n }\n\n authAnonymously(url) {\n return this._send({msg: 'authAnonymously', url});\n }\n\n unauth(url) {\n return this._send({msg: 'unauth', url});\n }\n\n set(url, value, writeSerial) {return this._send({msg: 'set', url, value, writeSerial});}\n update(url, value, writeSerial) {return this._send({msg: 'update', url, value, writeSerial});}\n\n once(url, writeSerial) {\n return this._send({msg: 'once', url, writeSerial}).then(snapshot => new Snapshot(snapshot));\n }\n\n on(listenerKey, url, spec, eventType, snapshotCallback, cancelCallback, context, options) {\n const handle = {\n listenerKey, eventType, snapshotCallback, cancelCallback, context,\n params: {msg: 'on', listenerKey, url, spec, eventType, options}\n };\n const callback = this._onCallback.bind(this, handle);\n this._registerCallback(callback, handle);\n // Keep multiple IDs to allow the same snapshotCallback to be reused.\n snapshotCallback.__callbackIds = snapshotCallback.__callbackIds || [];\n snapshotCallback.__callbackIds.push(handle.id);\n this._send({\n msg: 'on', listenerKey, url, spec, eventType, callbackId: handle.id, options\n }).catch(error => {\n callback(error);\n });\n }\n\n off(listenerKey, url, spec, eventType, snapshotCallback, context) {\n const idsToDeregister = [];\n let callbackId;\n if (snapshotCallback) {\n callbackId = this._findAndRemoveCallbackId(\n snapshotCallback, handle => _.isMatch(handle, {listenerKey, eventType, context})\n );\n if (!callbackId) return Promise.resolve(); // no-op, never registered or already deregistered\n idsToDeregister.push(callbackId);\n } else {\n for (const id of _.keys(this._callbacks)) {\n const handle = this._callbacks[id];\n if (handle.listenerKey === listenerKey && (!eventType || handle.eventType === eventType)) {\n idsToDeregister.push(id);\n }\n }\n }\n // Nullify callbacks first, then deregister after off() is complete. We don't want any\n // callbacks in flight from the worker to be invoked while the off() is processing, but we don't\n // want them to throw an exception either.\n for (const id of idsToDeregister) this._nullifyCallback(id);\n return this._send({msg: 'off', listenerKey, url, spec, eventType, callbackId}).then(() => {\n for (const id of idsToDeregister) this._deregisterCallback(id);\n });\n }\n\n _onCallback(handle, error, snapshotJson) {\n if (error) {\n this._deregisterCallback(handle.id);\n const e = errorFromJson(error, handle.params);\n if (handle.cancelCallback) {\n handle.cancelCallback.call(handle.context, e);\n } else {\n console.error(e);\n }\n } else {\n handle.snapshotCallback.call(handle.context, new Snapshot(snapshotJson));\n }\n }\n\n transaction(url, oldValue, relativeUpdates, writeSerial) {\n return this._send(\n {msg: 'transaction', url, oldValue, relativeUpdates, writeSerial}\n ).then(result => {\n if (result.snapshots) {\n result.snapshots = _.map(result.snapshots, jsonSnapshot => new Snapshot(jsonSnapshot));\n }\n return result;\n });\n }\n\n onDisconnect(url, method, value) {\n return this._send({msg: 'onDisconnect', url, method, value});\n }\n\n bounceConnection() {\n return this._send({msg: 'bounceConnection'});\n }\n\n callback({id, args}) {\n const handle = this._callbacks[id];\n if (!handle) throw new Error('Unregistered callback: ' + id);\n handle.callback.apply(null, args);\n }\n\n _registerCallback(callback, handle) {\n handle = handle || {};\n handle.callback = callback;\n handle.id = `cb${++this._idCounter}`;\n this._callbacks[handle.id] = handle;\n return handle.id;\n }\n\n _nullifyCallback(id) {\n this._callbacks[id].callback = _.noop;\n }\n\n _deregisterCallback(id) {\n delete this._callbacks[id];\n }\n\n _findAndRemoveCallbackId(callback, predicate) {\n if (!callback.__callbackIds) return;\n let i = 0;\n while (i < callback.__callbackIds.length) {\n const id = callback.__callbackIds[i];\n const handle = this._callbacks[id];\n if (!handle) {\n callback.__callbackIds.splice(i, 1);\n continue;\n }\n if (predicate(handle)) {\n callback.__callbackIds.splice(i, 1);\n return id;\n }\n i += 1;\n }\n }\n}\n\n\nfunction errorFromJson(json, params) {\n if (!json || _.isError(json)) return json;\n const error = new Error(json.message);\n error.params = params;\n for (const propertyName in json) {\n if (propertyName === 'message' || !json.hasOwnProperty(propertyName)) continue;\n try {\n error[propertyName] = json[propertyName];\n } catch (e) {\n error.extra = error.extra || {};\n error.extra[propertyName] = json[propertyName];\n }\n }\n return error;\n}\n","import {escapeKey, unescapeKey, makePathMatcher} from './utils/paths.js';\n\nimport _ from 'lodash';\n\n/* eslint-disable no-use-before-define */\n\nconst EMPTY_ANNOTATIONS = {};\nObject.freeze(EMPTY_ANNOTATIONS);\n\n\nexport class Handle {\n constructor(tree, path, annotations) {\n this._tree = tree;\n this._path = path.replace(/^\\/*/, '/').replace(/\\/$/, '') || '/';\n if (annotations) {\n this._annotations = annotations;\n Object.freeze(annotations);\n }\n }\n\n get $ref() {return this;}\n get key() {\n if (!this._key) this._key = unescapeKey(this._path.replace(/.*\\//, ''));\n return this._key;\n }\n get path() {return this._path;}\n get _pathPrefix() {return this._path === '/' ? '' : this._path;}\n get parent() {\n return new Reference(this._tree, this._path.replace(/\\/[^/]*$/, ''), this._annotations);\n }\n\n get annotations() {\n return this._annotations || EMPTY_ANNOTATIONS;\n }\n\n child() {\n if (!arguments.length) return this;\n const segments = [];\n for (const key of arguments) {\n if (_.isNil(key)) return;\n segments.push(escapeKey(key));\n }\n return new Reference(\n this._tree, `${this._pathPrefix}/${segments.join('/')}`,\n this._annotations\n );\n }\n\n children() {\n if (!arguments.length) return this;\n const escapedKeys = [];\n for (let i = 0; i < arguments.length; i++) {\n const arg = arguments[i];\n if (_.isArray(arg)) {\n const mapping = {};\n const subPath = this._pathPrefix + (escapedKeys.length ? `/${escapedKeys.join('/')}` : '');\n const rest = _.slice(arguments, i + 1);\n for (const key of arg) {\n const subRef =\n new Reference(this._tree, `${subPath}/${escapeKey(key)}`, this._annotations);\n const subMapping = subRef.children.apply(subRef, rest);\n if (subMapping) mapping[key] = subMapping;\n }\n return mapping;\n }\n if (_.isNil(arg)) return;\n escapedKeys.push(escapeKey(arg));\n }\n return new Reference(\n this._tree, `${this._pathPrefix}/${escapedKeys.join('/')}`, this._annotations);\n }\n\n peek(callback) {\n return this._tree.truss.peek(this, callback);\n }\n\n match(pattern) {\n return makePathMatcher(pattern).match(this.path);\n }\n\n test(pattern) {\n return makePathMatcher(pattern).test(this.path);\n }\n\n isEqual(that) {\n if (!(that instanceof Handle)) return false;\n return this._tree === that._tree && this.toString() === that.toString() &&\n _.isEqual(this._annotations, that._annotations);\n }\n\n belongsTo(truss) {\n return this._tree.truss === truss;\n }\n}\n\n\nexport class Query extends Handle {\n constructor(tree, path, spec, annotations) {\n super(tree, path, annotations);\n this._spec = this._copyAndValidateSpec(spec);\n const queryTerms = _(this._spec)\n .map((value, key) => `${key}=${encodeURIComponent(JSON.stringify(value))}`)\n .sortBy()\n .join('&');\n this._string = `${this._path}?${queryTerms}`;\n Object.freeze(this);\n }\n\n // Vue-bound\n get ready() {\n return this._tree.isQueryReady(this);\n }\n\n get constraints() {\n return this._spec;\n }\n\n annotate(annotations) {\n return new Query(\n this._tree, this._path, this._spec, _.assign({}, this._annotations, annotations));\n }\n\n _copyAndValidateSpec(spec) {\n if (!spec.by) throw new Error('Query needs \"by\" clause: ' + JSON.stringify(spec));\n if (('at' in spec) + ('from' in spec) + ('to' in spec) > 1) {\n throw new Error(\n 'Query must contain at most one of \"at\", \"from\", or \"to\" clauses: ' + JSON.stringify(spec));\n }\n if (('first' in spec) + ('last' in spec) > 1) {\n throw new Error(\n 'Query must contain at most one of \"first\" or \"last\" clauses: ' + JSON.stringify(spec));\n }\n if (!_.some(['at', 'from', 'to', 'first', 'last'], clause => clause in spec)) {\n throw new Error(\n 'Query must contain at least one of \"at\", \"from\", \"to\", \"first\", or \"last\" clauses: ' +\n JSON.stringify(spec));\n }\n spec = _.clone(spec);\n if (spec.by !== '$key' && spec.by !== '$value') {\n if (!(spec.by instanceof Reference)) {\n throw new Error('Query \"by\" value must be a reference: ' + spec.by);\n }\n let childPath = spec.by.toString();\n if (!_.startsWith(childPath, this._path)) {\n throw new Error(\n 'Query \"by\" value must be a descendant of target reference: ' + spec.by);\n }\n childPath = childPath.slice(this._path.length).replace(/^\\/?/, '');\n if (!_.includes(childPath, '/')) {\n throw new Error(\n 'Query \"by\" value must not be a direct child of target reference: ' + spec.by);\n }\n spec.by = childPath.replace(/.*?\\//, '');\n }\n Object.freeze(spec);\n return spec;\n }\n\n\n toString() {\n return this._string;\n }\n}\n\n\nexport class Reference extends Handle {\n\n constructor(tree, path, annotations) {\n super(tree, path, annotations);\n Object.freeze(this);\n }\n\n get ready() {return this._tree.isReferenceReady(this);} // Vue-bound\n get value() {return this._tree.getObject(this.path);} // Vue-bound\n toString() {return this._path;}\n\n annotate(annotations) {\n return new Reference(this._tree, this._path, _.assign({}, this._annotations, annotations));\n }\n\n query(spec) {\n return new Query(this._tree, this._path, spec, this._annotations);\n }\n\n set(value) {\n this._checkForUndefinedPath();\n return this._tree.update(this, 'set', {[this.path]: value});\n }\n\n update(values) {\n this._checkForUndefinedPath();\n return this._tree.update(this, 'update', values);\n }\n\n override(value) {\n this._checkForUndefinedPath();\n return this._tree.update(this, 'override', {[this.path]: value});\n }\n\n commit(updateFunction) {\n this._checkForUndefinedPath();\n return this._tree.commit(this, updateFunction);\n }\n\n _checkForUndefinedPath() {\n if (this.path === '/undefined') throw new Error('Invalid path for operation: ' + this.path);\n }\n}\n\nexport default Reference;\n","import _ from 'lodash';\n\n\nexport const SERVER_TIMESTAMP = Object.freeze({'.sv': 'timestamp'});\n\nexport function isTrussEqual(a, b) {\n return _.isEqualWith(a, b, isTrussValueEqual);\n}\n\nfunction isTrussValueEqual(a, b) {\n if (a === b || a === undefined || a === null || b === undefined || b === null ||\n a.$truss || b.$truss) return a === b;\n if (a.isEqual) return a.isEqual(b);\n}\n\nexport function copyPrototype(a, b) {\n for (const prop of Object.getOwnPropertyNames(a.prototype)) {\n if (prop === 'constructor') continue;\n Object.defineProperty(b.prototype, prop, Object.getOwnPropertyDescriptor(a.prototype, prop));\n }\n}\n","// Generated by CoffeeScript 1.12.2\n(function() {\n var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime;\n\n if ((typeof performance !== \"undefined\" && performance !== null) && performance.now) {\n module.exports = function() {\n return performance.now();\n };\n } else if ((typeof process !== \"undefined\" && process !== null) && process.hrtime) {\n module.exports = function() {\n return (getNanoSeconds() - nodeLoadTime) / 1e6;\n };\n hrtime = process.hrtime;\n getNanoSeconds = function() {\n var hr;\n hr = hrtime();\n return hr[0] * 1e9 + hr[1];\n };\n moduleLoadTime = getNanoSeconds();\n upTime = process.uptime() * 1e9;\n nodeLoadTime = moduleLoadTime - upTime;\n } else if (Date.now) {\n module.exports = function() {\n return Date.now() - loadTime;\n };\n loadTime = Date.now();\n } else {\n module.exports = function() {\n return new Date().getTime() - loadTime;\n };\n loadTime = new Date().getTime();\n }\n\n}).call(this);\n\n//# sourceMappingURL=performance-now.js.map\n","import {isTrussEqual} from './utils.js';\n\nimport _ from 'lodash';\nimport performanceNow from 'performance-now';\n\n\nclass StatItem {\n constructor(name) {\n _.assign(this, {name, numRecomputes: 0, numUpdates: 0, runtime: 0});\n }\n\n add(item) {\n this.runtime += item.runtime;\n this.numUpdates += item.numUpdates;\n this.numRecomputes += item.numRecomputes;\n }\n\n get runtimePerRecompute() {\n return this.numRecomputes ? this.runtime / this.numRecomputes : 0;\n }\n\n toLogParts(totals) {\n return [\n `${this.name}:`, ` ${(this.runtime / 1000).toFixed(2)}s`,\n `(${(this.runtime / totals.runtime * 100).toFixed(1)}%)`,\n ` ${this.numUpdates} upd /`, `${this.numRecomputes} runs`,\n `(${(this.numUpdates / this.numRecomputes * 100).toFixed(1)}%)`,\n ` ${this.runtimePerRecompute.toFixed(2)}ms / run`\n ];\n }\n}\n\nclass Stats {\n constructor() {\n this._items = {};\n }\n\n for(name) {\n if (!this._items[name]) this._items[name] = new StatItem(name);\n return this._items[name];\n }\n\n get list() {\n return _(this._items).values().sortBy(item => -item.runtime).value();\n }\n\n log(n = 10) {\n let stats = this.list;\n if (!stats.length) return;\n const totals = new StatItem('=== Total');\n _.forEach(stats, stat => {totals.add(stat);});\n stats = _.take(stats, n);\n const above = new StatItem('--- Above');\n _.forEach(stats, stat => {above.add(stat);});\n const lines = _.map(stats, item => item.toLogParts(totals));\n lines.push(above.toLogParts(totals));\n lines.push(totals.toLogParts(totals));\n const widths = _.map(_.range(lines[0].length), i => _(lines).map(line => line[i].length).max());\n _.forEach(lines, line => {\n console.log(_.map(line, (column, i) => _.padStart(column, widths[i])).join(' '));\n });\n }\n\n wrap(getter, className, propName) {\n const item = this.for(`${className}.${propName}`);\n return function() {\n /* eslint-disable no-invalid-this */\n const startTime = performanceNow();\n const oldValue = this._computedWatchers && this._computedWatchers[propName].value;\n try {\n const newValue = getter.call(this);\n if (!isTrussEqual(oldValue, newValue)) item.numUpdates += 1;\n return newValue;\n } finally {\n item.runtime += performanceNow() - startTime;\n item.numRecomputes += 1;\n }\n };\n }\n}\n\nexport default new Stats();\n","import {Handle, Query, Reference} from './Reference.js';\nimport angular from './angularCompatibility.js';\nimport stats from './utils/stats.js';\nimport {isTrussEqual} from './utils/utils.js';\n\nimport _ from 'lodash';\nimport performanceNow from 'performance-now';\nimport Vue from 'vue';\n\n\nexport default class Connector {\n constructor(scope, connections, tree, method, refs) {\n Object.freeze(connections);\n this._scope = scope;\n this._connections = connections;\n this._tree = tree;\n this._method = method;\n\n this._subConnectors = {};\n this._disconnects = {};\n this._angularUnwatches = undefined;\n this._data = {};\n this._vue = new Vue({data: {\n descriptors: {},\n refs: refs || {},\n values: _.mapValues(connections, _.constant(undefined))\n }});\n // allow instance-level overrides of destroy() method\n this.destroy = this.destroy; // eslint-disable-line no-self-assign\n Object.seal(this);\n\n this._linkScopeProperties();\n\n _.forEach(connections, (descriptor, key) => {\n if (_.isFunction(descriptor)) {\n this._bindComputedConnection(key, descriptor);\n } else {\n this._connect(key, descriptor);\n }\n });\n\n if (angular.active && scope && scope.$on && scope.$id) {\n scope.$on('$destroy', () => {this.destroy();});\n }\n }\n\n get ready() {\n return _.every(this._connections, (ignored, key) => {\n const descriptor = this._vue.descriptors[key];\n if (!descriptor) return false;\n if (descriptor instanceof Handle) return descriptor.ready;\n return this._subConnectors[key].ready;\n });\n }\n\n get at() {\n return this._vue.refs;\n }\n\n get data() {\n return this._data;\n }\n\n destroy() {\n this._unlinkScopeProperties();\n _.forEach(this._angularUnwatches, unwatch => {unwatch();});\n _.forEach(this._connections, (descriptor, key) => {this._disconnect(key);});\n this._vue.$destroy();\n }\n\n _linkScopeProperties() {\n const dataProperties = _.mapValues(this._connections, (unused, key) => ({\n configurable: true, enumerable: false, get: () => {\n const descriptor = this._vue.descriptors[key];\n if (descriptor instanceof Reference) return descriptor.value;\n return this._vue.values[key];\n }\n }));\n Object.defineProperties(this._data, dataProperties);\n if (this._scope) {\n for (const key in this._connections) {\n if (key in this._scope) {\n throw new Error(`Property already defined on connection target: ${key}`);\n }\n }\n Object.defineProperties(this._scope, dataProperties);\n if (this._scope.__ob__) this._scope.__ob__.dep.notify();\n }\n }\n\n _unlinkScopeProperties() {\n if (!this._scope) return;\n _.forEach(this._connections, (descriptor, key) => {\n delete this._scope[key];\n });\n }\n\n _bindComputedConnection(key, fn) {\n const connectionStats = stats.for(`connection.at.${key}`);\n const getter = this._computeConnection.bind(this, fn, connectionStats);\n const update = this._updateComputedConnection.bind(this, key, fn, connectionStats);\n const angularWatch = angular.active && !fn.angularWatchSuppressed;\n // Use this._vue.$watch instead of truss.observe here so that we can disable the immediate\n // callback if we'll get one from Angular anyway.\n this._vue.$watch(getter, update, {immediate: !angularWatch});\n if (angularWatch) {\n if (!this._angularUnwatches) this._angularUnwatches = [];\n this._angularUnwatches.push(angular.watch(getter, update, true));\n }\n }\n\n _computeConnection(fn, connectionStats) {\n const startTime = performanceNow();\n try {\n return flattenRefs(fn.call(this._scope));\n } finally {\n connectionStats.runtime += performanceNow() - startTime;\n connectionStats.numRecomputes += 1;\n }\n }\n\n _updateComputedConnection(key, value, connectionStats) {\n const newDescriptor = _.isFunction(value) ? value(this._scope) : value;\n const oldDescriptor = this._vue.descriptors[key];\n const descriptorChanged = !isTrussEqual(oldDescriptor, newDescriptor);\n if (!descriptorChanged) return;\n if (connectionStats && descriptorChanged) connectionStats.numUpdates += 1;\n if (!newDescriptor) {\n this._disconnect(key);\n return;\n }\n if (newDescriptor instanceof Handle || !_.has(this._subConnectors, key)) {\n this._disconnect(key);\n this._connect(key, newDescriptor);\n } else {\n this._subConnectors[key]._updateConnections(newDescriptor);\n }\n Vue.set(this._vue.descriptors, key, newDescriptor);\n angular.digest();\n }\n\n _updateConnections(connections) {\n _.forEach(connections, (descriptor, key) => {\n this._updateComputedConnection(key, descriptor);\n });\n _.forEach(this._connections, (descriptor, key) => {\n if (!_.has(connections, key)) this._updateComputedConnection(key);\n });\n this._connections = connections;\n }\n\n _connect(key, descriptor) {\n Vue.set(this._vue.descriptors, key, descriptor);\n angular.digest();\n if (!descriptor) return;\n Vue.set(this._vue.values, key, undefined);\n if (descriptor instanceof Reference) {\n Vue.set(this._vue.refs, key, descriptor);\n this._disconnects[key] = this._tree.connectReference(descriptor, this._method);\n } else if (descriptor instanceof Query) {\n Vue.set(this._vue.refs, key, descriptor);\n const updateFn = this._updateQueryValue.bind(this, key);\n this._disconnects[key] = this._tree.connectQuery(descriptor, updateFn, this._method);\n } else {\n const subScope = {}, subRefs = {};\n Vue.set(this._vue.refs, key, subRefs);\n const subConnector = this._subConnectors[key] =\n new Connector(subScope, descriptor, this._tree, this._method, subRefs);\n // Use a truss.observe here instead of this._vue.$watch so that the \"immediate\" execution\n // actually takes place after we've captured the unwatch function, in case the subConnector\n // is ready immediately.\n const unobserve = this._disconnects[key] = this._tree.truss.observe(\n () => subConnector.ready,\n subReady => {\n if (!subReady) return;\n unobserve();\n delete this._disconnects[key];\n Vue.set(this._vue.values, key, subScope);\n angular.digest();\n }\n );\n }\n }\n\n _disconnect(key) {\n Vue.delete(this._vue.refs, key);\n this._updateRefValue(key, undefined);\n if (_.has(this._subConnectors, key)) {\n this._subConnectors[key].destroy();\n delete this._subConnectors[key];\n }\n if (this._disconnects[key]) this._disconnects[key]();\n delete this._disconnects[key];\n Vue.delete(this._vue.descriptors, key);\n angular.digest();\n }\n\n _updateRefValue(key, value) {\n if (this._vue.values[key] !== value) {\n Vue.set(this._vue.values, key, value);\n angular.digest();\n }\n }\n\n _updateQueryValue(key, childKeys) {\n if (!this._vue.values[key]) {\n Vue.set(this._vue.values, key, {});\n angular.digest();\n }\n const subScope = this._vue.values[key];\n for (const childKey in subScope) {\n if (!subScope.hasOwnProperty(childKey)) continue;\n if (!_.includes(childKeys, childKey)) {\n Vue.delete(subScope, childKey);\n angular.digest();\n }\n }\n const object = this._tree.getObject(this._vue.descriptors[key].path);\n for (const childKey of childKeys) {\n if (subScope.hasOwnProperty(childKey)) continue;\n Vue.set(subScope, childKey, object[childKey]);\n angular.digest();\n }\n }\n\n}\n\nfunction flattenRefs(refs) {\n if (!refs) return;\n if (refs instanceof Handle) return refs.toString();\n return _.mapValues(refs, flattenRefs);\n}\n\n","export function wrapPromiseCallback(callback) {\n return function() {\n try {\n // eslint-disable-next-line no-invalid-this\n return Promise.resolve(callback.apply(this, arguments));\n } catch (e) {\n return Promise.reject(e);\n }\n };\n}\n\nexport function promiseCancel(promise, cancel) {\n promise = promiseFinally(promise, () => {cancel = null;});\n promise.cancel = () => {\n if (!cancel) return;\n cancel();\n cancel = null;\n };\n propagatePromiseProperty(promise, 'cancel');\n return promise;\n}\n\nfunction propagatePromiseProperty(promise, propertyName) {\n const originalThen = promise.then, originalCatch = promise.catch;\n promise.then = (onResolved, onRejected) => {\n const derivedPromise = originalThen.call(promise, onResolved, onRejected);\n derivedPromise[propertyName] = promise[propertyName];\n propagatePromiseProperty(derivedPromise, propertyName);\n return derivedPromise;\n };\n promise.catch = onRejected => {\n const derivedPromise = originalCatch.call(promise, onRejected);\n derivedPromise[propertyName] = promise[propertyName];\n propagatePromiseProperty(derivedPromise, propertyName);\n return derivedPromise;\n };\n return promise;\n}\n\nexport function promiseFinally(promise, onFinally) {\n if (!onFinally) return promise;\n onFinally = wrapPromiseCallback(onFinally);\n return promise.then(result => {\n return onFinally().then(() => result);\n }, error => {\n return onFinally().then(() => Promise.reject(error));\n });\n}\n","import _ from 'lodash';\nimport Reference from './Reference.js';\nimport {wrapPromiseCallback} from './utils/promises.js';\nimport {joinPath} from './utils/paths.js';\n\n\nconst INTERCEPT_KEYS = [\n 'read', 'write', 'auth', 'set', 'update', 'commit', 'connect', 'peek', 'authenticate',\n 'unathenticate', 'certify', 'all'\n];\n\nconst EMPTY_ARRAY = [];\n\n\nclass SlowHandle {\n constructor(operation, delay, callback) {\n this._operation = operation;\n this._delay = delay;\n this._callback = callback;\n this._fired = false;\n }\n\n initiate() {\n this.cancel();\n this._fired = false;\n const elapsed = Date.now() - this._operation._startTimestamp;\n this._timeoutId = setTimeout(() => {\n this._fired = true;\n this._callback(this._operation);\n }, this._delay - elapsed);\n }\n\n cancel() {\n if (this._fired) this._callback(this._operation);\n if (this._timeoutId) clearTimeout(this._timeoutId);\n }\n}\n\n\nclass Operation {\n constructor(type, method, target, operand) {\n this._type = type;\n this._method = method;\n this._target = target;\n this._operand = operand;\n this._ready = false;\n this._running = false;\n this._ended = false;\n this._tries = 0;\n this._startTimestamp = Date.now();\n this._slowHandles = [];\n }\n\n get type() {return this._type;}\n get method() {return this._method;}\n get target() {return this._target;}\n get targets() {\n if (this._method !== 'update') return [this._target];\n return _.map(this._operand, (value, escapedPathFragment) => {\n return new Reference(\n this._target._tree, joinPath(this._target.path, escapedPathFragment),\n this._target._annotations);\n });\n }\n get operand() {return this._operand;}\n get ready() {return this._ready;}\n get running() {return this._running;}\n get ended() {return this._ended;}\n get tries() {return this._tries;}\n get error() {return this._error;}\n\n onSlow(delay, callback) {\n const handle = new SlowHandle(this, delay, callback);\n this._slowHandles.push(handle);\n handle.initiate();\n }\n\n _setRunning(value) {\n this._running = value;\n }\n\n _setEnded(value) {\n this._ended = value;\n }\n\n _markReady(ending) {\n this._ready = true;\n if (!ending) this._tries = 0;\n _.forEach(this._slowHandles, handle => handle.cancel());\n }\n\n _clearReady() {\n this._ready = false;\n this._startTimestamp = Date.now();\n _.forEach(this._slowHandles, handle => handle.initiate());\n }\n\n _incrementTries() {\n this._tries++;\n }\n}\n\n\nexport default class Dispatcher {\n constructor(bridge) {\n this._bridge = bridge;\n this._callbacks = {};\n Object.freeze(this);\n }\n\n intercept(interceptKey, callbacks) {\n if (!_.includes(INTERCEPT_KEYS, interceptKey)) {\n throw new Error('Unknown intercept operation type: ' + interceptKey);\n }\n const badCallbackKeys =\n _.difference(_.keys(callbacks), ['onBefore', 'onAfter', 'onError', 'onFailure']);\n if (badCallbackKeys.length) {\n throw new Error('Unknown intercept callback types: ' + badCallbackKeys.join(', '));\n }\n const wrappedCallbacks = {\n onBefore: this._addCallback('onBefore', interceptKey, callbacks.onBefore),\n onAfter: this._addCallback('onAfter', interceptKey, callbacks.onAfter),\n onError: this._addCallback('onError', interceptKey, callbacks.onError),\n onFailure: this._addCallback('onFailure', interceptKey, callbacks.onFailure)\n };\n return this._removeCallbacks.bind(this, interceptKey, wrappedCallbacks);\n }\n\n _addCallback(stage, interceptKey, callback) {\n if (!callback) return;\n const key = this._getCallbacksKey(stage, interceptKey);\n const wrappedCallback = wrapPromiseCallback(callback);\n (this._callbacks[key] || (this._callbacks[key] = [])).push(wrappedCallback);\n return wrappedCallback;\n }\n\n _removeCallback(stage, interceptKey, wrappedCallback) {\n if (!wrappedCallback) return;\n const key = this._getCallbacksKey(stage, interceptKey);\n if (this._callbacks[key]) _.pull(this._callbacks[key], wrappedCallback);\n }\n\n _removeCallbacks(interceptKey, wrappedCallbacks) {\n _.forEach(wrappedCallbacks, (wrappedCallback, stage) => {\n this._removeCallback(stage, interceptKey, wrappedCallback);\n });\n }\n\n _getCallbacks(stage, operationType, method) {\n return [].concat(\n this._callbacks[this._getCallbacksKey(stage, method)] || EMPTY_ARRAY,\n this._callbacks[this._getCallbacksKey(stage, operationType)] || EMPTY_ARRAY,\n this._callbacks[this._getCallbacksKey(stage, 'all')] || EMPTY_ARRAY\n );\n }\n\n _getCallbacksKey(stage, interceptKey) {\n return `${stage}_${interceptKey}`;\n }\n\n execute(operationType, method, target, operand, executor) {\n executor = wrapPromiseCallback(executor);\n const operation = this.createOperation(operationType, method, target, operand);\n return this.begin(operation).then(() => {\n const executeWithRetries = () => {\n return executor().catch(e => this._retryOrEnd(operation, e).then(executeWithRetries));\n };\n return executeWithRetries();\n }).then(result => this.end(operation).then(() => result));\n }\n\n createOperation(operationType, method, target, operand) {\n return new Operation(operationType, method, target, operand);\n }\n\n begin(operation) {\n return Promise.all(_.map(\n this._getCallbacks('onBefore', operation.type, operation.method),\n onBefore => onBefore(operation)\n )).then(() => {\n if (!operation.ended) operation._setRunning(true);\n }, e => this.end(operation, e));\n }\n\n markReady(operation) {\n operation._markReady();\n }\n\n clearReady(operation) {\n operation._clearReady();\n }\n\n retry(operation, error) {\n operation._incrementTries();\n operation._error = error;\n return Promise.all(_.map(\n this._getCallbacks('onError', operation.type, operation.method),\n onError => onError(operation, error)\n )).then(results => {\n // If the operation ended in the meantime, bail. This will cause the caller to attempt to\n // fail the operation, but since it's already ended the call to end() with an error will be a\n // no-op.\n if (operation.ended) return;\n const retrying = _.some(results);\n if (retrying) delete operation._error;\n return retrying;\n });\n }\n\n _retryOrEnd(operation, error) {\n return this.retry(operation, error).then(result => {\n if (!result) return this.end(operation, error);\n }, e => this.end(operation, e));\n }\n\n end(operation, error) {\n if (operation.ended) return Promise.resolve();\n operation._setRunning(false);\n operation._setEnded(true);\n if (error) {\n operation._error = error;\n } else {\n // In case we're racing with a retry(), wipe out the error.\n delete operation._error;\n }\n return Promise.all(_.map(\n this._getCallbacks('onAfter', operation.type, operation.method),\n onAfter => onAfter(operation)\n )).then(\n () => this._afterEnd(operation),\n e => {\n operation._error = e;\n return this._afterEnd(operation);\n }\n );\n }\n\n _afterEnd(operation) {\n operation._markReady(true);\n if (!operation.error) return Promise.resolve();\n const onFailureCallbacks = this._getCallbacks('onFailure', operation.type, operation.method);\n if (onFailureCallbacks) {\n setTimeout(() => {\n _.forEach(onFailureCallbacks, onFailure => onFailure(operation));\n }, 0);\n }\n return Promise.reject(operation.error);\n }\n}\n\n","const ALPHABET = '-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz';\n\nconst getRandomValues = window.crypto && window.crypto.getRandomValues &&\n window.crypto.getRandomValues.bind(window.crypto);\n\nexport default class KeyGenerator {\n constructor() {\n this._lastUniqueKeyTime = 0;\n this._lastRandomValues = [];\n }\n\n generateUniqueKey(now) {\n now = now || Date.now();\n const chars = new Array(20);\n let prefix = now;\n for (let i = 7; i >= 0; i--) {\n chars[i] = ALPHABET.charAt(prefix & 0x3f); // eslint-disable-line no-bitwise\n prefix = Math.floor(prefix / 64);\n }\n if (now === this._lastUniqueKeyTime) {\n let i = 11;\n while (i >= 0 && this._lastRandomValues[i] === 63) {\n this._lastRandomValues[i] = 0;\n i -= 1;\n }\n if (i === -1) {\n throw new Error('Internal assertion failure: ran out of unique IDs for this millisecond');\n }\n this._lastRandomValues[i] += 1;\n } else {\n this._lastUniqueKeyTime = now;\n if (getRandomValues) {\n const array = new Uint8Array(12);\n getRandomValues(array);\n for (let i = 0; i < 12; i++) {\n // eslint-disable-next-line no-bitwise\n this._lastRandomValues[i] = array[i] & (i ? 0x3f : 0x0f);\n }\n } else {\n for (let i = 0; i < 12; i++) {\n // Make sure to leave some space for incrementing in the top nibble.\n this._lastRandomValues[i] = Math.floor(Math.random() * (i ? 64 : 16));\n }\n }\n }\n for (let i = 0; i < 12; i++) {\n chars[i + 8] = ALPHABET[this._lastRandomValues[i]];\n }\n return chars.join('');\n }\n}\n","import angular from './angularCompatibility.js';\nimport Vue from 'vue';\nimport Reference from './Reference.js';\n\n\nexport default class MetaTree {\n constructor(rootUrl, tree, bridge, dispatcher) {\n this._rootUrl = rootUrl;\n this._tree = tree;\n this._dispatcher = dispatcher;\n this._bridge = bridge;\n this._vue = new Vue({data: {$root: {\n connected: undefined, timeOffset: 0, user: undefined, userid: undefined,\n nowAtInterval(intervalMillis) {\n const key = 'now' + intervalMillis;\n if (!this.hasOwnProperty(key)) {\n const update = () => {\n Vue.set(this, key, Date.now() + this.timeOffset);\n angular.digest();\n };\n update();\n setInterval(update, intervalMillis);\n }\n return this[key];\n }\n }}});\n\n this._auth = {serial: 0, initialAuthChangeReceived: false};\n\n bridge.onAuth(rootUrl, this._handleAuthChange, this);\n\n this._connectInfoProperty('serverTimeOffset', 'timeOffset');\n this._connectInfoProperty('connected', 'connected');\n Object.freeze(this);\n }\n\n get root() {\n return this._vue.$data.$root;\n }\n\n destroy() {\n this._bridge.offAuth(this._rootUrl, this._handleAuthChange, this);\n this._vue.$destroy();\n }\n\n authenticate(token) {\n this._auth.serial++;\n return this._dispatcher.execute(\n 'auth', 'authenticate', new Reference(this._tree, '/'), token, () => {\n if (token) return this._bridge.authWithCustomToken(this._rootUrl, token);\n return this._bridge.authAnonymously(this._rootUrl);\n }\n );\n }\n\n unauthenticate() {\n // Signal user change to null pre-emptively. This is what the Firebase SDK does as well, since\n // it lets the app tear down user-required connections before the user is actually deauthed,\n // which can prevent spurious permission denied errors.\n this._auth.serial++;\n return this._handleAuthChange(null).then(approved => {\n // Bail if auth change callback initiated another authentication, since it will have already\n // sent the command to the bridge and sending our own now would incorrectly override it.\n if (!approved) return;\n return this._dispatcher.execute(\n 'auth', 'unauthenticate', new Reference(this._tree, '/'), undefined, () => {\n return this._bridge.unauth(this._rootUrl);\n }\n );\n });\n }\n\n _handleAuthChange(user) {\n const supersededChange = !this._auth.initialAuthChangeReceived && this._auth.serial;\n if (user !== undefined) this._auth.initialAuthChangeReceived = true;\n if (supersededChange) return;\n const authSerial = this._auth.serial;\n if (this.root.user === user) return Promise.resolve(false);\n return this._dispatcher.execute('auth', 'certify', new Reference(this._tree, '/'), user, () => {\n if (this.root.user === user || authSerial !== this._auth.serial) return false;\n if (user) Object.freeze(user);\n this.root.user = user;\n this.root.userid = user && user.uid;\n angular.digest();\n return true;\n });\n }\n\n _isAuthChangeStale(user) {\n return this.root.user === user;\n }\n\n _connectInfoProperty(property, attribute) {\n const propertyUrl = `${this._rootUrl}/.info/${property}`;\n this._bridge.on(propertyUrl, propertyUrl, null, 'value', snap => {\n this.root[attribute] = snap.value;\n angular.digest();\n });\n }\n}\n","import {Reference, Handle} from './Reference.js';\nimport angular from './angularCompatibility.js';\nimport stats from './utils/stats.js';\nimport {makePathMatcher, joinPath, splitPath, escapeKey, unescapeKey} from './utils/paths.js';\nimport {isTrussEqual, copyPrototype} from './utils/utils.js';\nimport {promiseFinally} from './utils/promises.js';\n\nimport _ from 'lodash';\nimport performanceNow from 'performance-now';\n\n// These are defined separately for each object so they're not included in Value below.\nconst RESERVED_VALUE_PROPERTY_NAMES = {$$$trussCheck: true, __ob__: true};\n\n// Holds properties that we're going to set on a model object that's being created right now as soon\n// as it's been created, but that we'd like to be accessible in the constructor. The object\n// prototype's getters will pick those up until they get overridden in the instance.\nlet creatingObjectProperties;\n\nlet currentPropertyFrozen;\n\n\nexport class BaseValue {\n get $meta() {return this.$truss.meta;}\n get $store() {return this.$truss.store;} // access indirectly to leave dependency trace\n get $now() {return this.$truss.now;}\n\n $newKey() {return this.$truss.newKey();}\n\n $intercept(actionType, callbacks) {\n if (this.$destroyed) throw new Error('Object already destroyed');\n const unintercept = this.$truss.intercept(actionType, callbacks);\n const uninterceptAndRemoveFinalizer = () => {\n unintercept();\n _.pull(this.$$finalizers, uninterceptAndRemoveFinalizer);\n };\n this.$$finalizers.push(uninterceptAndRemoveFinalizer);\n return uninterceptAndRemoveFinalizer;\n }\n\n $connect(scope, connections) {\n if (this.$destroyed) throw new Error('Object already destroyed');\n if (!connections) {\n connections = scope;\n scope = undefined;\n }\n const connector = this.$truss.connect(scope, wrapConnections(this, connections));\n const originalDestroy = connector.destroy;\n const destroy = () => {\n _.pull(this.$$finalizers, destroy);\n return originalDestroy.call(connector);\n };\n this.$$finalizers.push(destroy);\n connector.destroy = destroy;\n return connector;\n }\n\n $peek(target, callback) {\n if (this.$destroyed) throw new Error('Object already destroyed');\n const promise = promiseFinally(\n this.$truss.peek(target, callback), () => {_.pull(this.$$finalizers, promise.cancel);}\n );\n this.$$finalizers.push(promise.cancel);\n return promise;\n }\n\n $observe(subjectFn, callbackFn, options) {\n if (this.$destroyed) throw new Error('Object already destroyed');\n let unobserveAndRemoveFinalizer;\n\n const unobserve = this.$truss.observe(() => {\n this.$$touchThis();\n return subjectFn.call(this);\n }, callbackFn.bind(this), options);\n\n unobserveAndRemoveFinalizer = () => { // eslint-disable-line prefer-const\n unobserve();\n _.pull(this.$$finalizers, unobserveAndRemoveFinalizer);\n };\n this.$$finalizers.push(unobserveAndRemoveFinalizer);\n return unobserveAndRemoveFinalizer;\n }\n\n $when(expression, options) {\n if (this.$destroyed) throw new Error('Object already destroyed');\n const promise = this.$truss.when(() => {\n this.$$touchThis();\n return expression.call(this);\n }, options);\n promiseFinally(promise, () => {_.pull(this.$$finalizers, promise.cancel);});\n this.$$finalizers.push(promise.cancel);\n return promise;\n }\n\n get $$finalizers() {\n Object.defineProperty(this, '$$finalizers', {\n value: [], writable: false, enumerable: false, configurable: false});\n return this.$$finalizers;\n }\n}\n\n\nclass Value {\n get $parent() {return creatingObjectProperties.$parent.value;}\n get $path() {return creatingObjectProperties.$path.value;}\n get $truss() {\n Object.defineProperty(this, '$truss', {value: this.$parent.$truss});\n return this.$truss;\n }\n get $ref() {\n Object.defineProperty(this, '$ref', {value: new Reference(this.$truss._tree, this.$path)});\n return this.$ref;\n }\n get $refs() {return this.$ref;}\n get $key() {\n Object.defineProperty(\n this, '$key', {value: unescapeKey(this.$path.slice(this.$path.lastIndexOf('/') + 1))});\n return this.$key;\n }\n get $data() {return this;}\n get $hidden() {return false;} // eslint-disable-line lodash/prefer-constant\n get $empty() {return _.isEmpty(this.$data);}\n get $keys() {return _.keys(this.$data);}\n get $values() {return _.values(this.$data);}\n get $ready() {return this.$ref.ready;}\n get $overridden() {return false;} // eslint-disable-line lodash/prefer-constant\n\n $nextTick() {\n if (this.$destroyed) throw new Error('Object already destroyed');\n const promise = this.$truss.nextTick();\n promiseFinally(promise, () => {_.pull(this.$$finalizers, promise.cancel);});\n this.$$finalizers.push(promise.cancel);\n return promise;\n }\n\n $freezeComputedProperty() {\n if (!_.isBoolean(currentPropertyFrozen)) {\n throw new Error('Cannot freeze a computed property outside of its getter function');\n }\n currentPropertyFrozen = true;\n }\n\n $set(value) {return this.$ref.set(value);}\n $update(values) {return this.$ref.update(values);}\n $override(values) {return this.$ref.override(values);}\n $commit(options, updateFn) {return this.$ref.commit(options, updateFn);}\n\n $$touchThis() {\n /* eslint-disable no-unused-expressions */\n if (this.__ob__) {\n this.__ob__.dep.depend();\n } else if (this.$parent) {\n (this.$parent.hasOwnProperty('$data') ? this.$parent.$data : this.$parent)[this.$key];\n } else {\n this.$store;\n }\n /* eslint-enable no-unused-expressions */\n }\n\n get $$initializers() {\n Object.defineProperty(this, '$$initializers', {\n value: [], writable: false, enumerable: false, configurable: true});\n return this.$$initializers;\n }\n\n get $destroyed() { // eslint-disable-line lodash/prefer-constant\n return false;\n }\n}\n\ncopyPrototype(BaseValue, Value);\n\n_.forEach(Value.prototype, (prop, name) => {\n Object.defineProperty(\n Value.prototype, name, {value: prop, enumerable: false, configurable: false, writable: false});\n});\n\n\nclass ErrorWrapper {\n constructor(error) {\n this.error = error;\n }\n}\n\n\nclass FrozenWrapper {\n constructor(value) {\n this.value = value;\n }\n}\n\n\nexport default class Modeler {\n constructor(debug) {\n this._trie = {Class: Value};\n this._debug = debug;\n Object.freeze(this);\n }\n\n init(classes, rootAcceptable) {\n if (_.isPlainObject(classes)) {\n _.forEach(classes, (Class, path) => {\n if (Class.$trussMount) return;\n Class.$$trussMount = Class.$$trussMount || [];\n Class.$$trussMount.push(path);\n });\n classes = _.values(classes);\n _.forEach(classes, Class => {\n if (!Class.$trussMount && Class.$$trussMount) {\n Class.$trussMount = Class.$$trussMount;\n delete Class.$$trussMount;\n }\n });\n }\n classes = _.uniq(classes);\n _.forEach(classes, Class => this._mountClass(Class, rootAcceptable));\n this._decorateTrie(this._trie);\n }\n\n destroy() { // eslint-disable-line no-empty-function\n }\n\n _getMount(path, scaffold, predicate) {\n const segments = splitPath(path, true);\n let node;\n for (const segment of segments) {\n let child = segment ?\n node.children && (node.children[segment] || !scaffold && node.children.$) : this._trie;\n if (!child) {\n if (!scaffold) return;\n node.children = node.children || {};\n child = node.children[segment] = {Class: Value};\n }\n node = child;\n if (predicate && predicate(node)) break;\n }\n return node;\n }\n\n _findMount(predicate, node) {\n if (!node) node = this._trie;\n if (predicate(node)) return node;\n for (const childKey of _.keys(node.children)) {\n const result = this._findMount(predicate, node.children[childKey]);\n if (result) return result;\n }\n }\n\n _decorateTrie(node) {\n _.forEach(node.children, child => {\n this._decorateTrie(child);\n if (child.local || child.localDescendants) node.localDescendants = true;\n });\n }\n\n _augmentClass(Class) {\n let computedProperties;\n let proto = Class.prototype;\n while (proto && proto.constructor !== Object) {\n for (const name of Object.getOwnPropertyNames(proto)) {\n const descriptor = Object.getOwnPropertyDescriptor(proto, name);\n if (name.charAt(0) === '$') {\n if (name === '$finalize') continue;\n if (_.isEqual(descriptor, Object.getOwnPropertyDescriptor(Value.prototype, name))) {\n continue;\n }\n throw new Error(`Property names starting with \"$\" are reserved: ${Class.name}.${name}`);\n }\n if (descriptor.get && !(computedProperties && computedProperties[name])) {\n (computedProperties || (computedProperties = {}))[name] = {\n name, fullName: `${proto.constructor.name}.${name}`, get: descriptor.get,\n set: descriptor.set\n };\n }\n }\n proto = Object.getPrototypeOf(proto);\n }\n for (const name of Object.getOwnPropertyNames(Value.prototype)) {\n if (name === 'constructor' || Class.prototype.hasOwnProperty(name)) continue;\n Object.defineProperty(\n Class.prototype, name, Object.getOwnPropertyDescriptor(Value.prototype, name));\n }\n return computedProperties;\n }\n\n _mountClass(Class, rootAcceptable) {\n const computedProperties = this._augmentClass(Class);\n const allVariables = [];\n let mounts = Class.$trussMount;\n if (!mounts) throw new Error(`Class ${Class.name} lacks a $trussMount static property`);\n if (!_.isArray(mounts)) mounts = [mounts];\n _.forEach(mounts, mount => {\n if (_.isString(mount)) mount = {path: mount};\n if (!rootAcceptable && mount.path === '/') {\n throw new Error('Data root already accessed, too late to mount class');\n }\n const matcher = makePathMatcher(mount.path);\n for (const variable of matcher.variables) {\n if (variable === '$' || variable.charAt(1) === '$') {\n throw new Error(`Invalid variable name: ${variable}`);\n }\n if (variable.charAt(0) === '$' && (\n _.has(Value.prototype, variable) || RESERVED_VALUE_PROPERTY_NAMES[variable]\n )) {\n throw new Error(`Variable name conflicts with built-in property or method: ${variable}`);\n }\n allVariables.push(variable);\n }\n const escapedKey = mount.path.match(/\\/([^/]*)$/)[1];\n if (escapedKey.charAt(0) === '$') {\n if (mount.placeholder) {\n throw new Error(\n `Class ${Class.name} mounted at wildcard ${escapedKey} cannot be a placeholder`);\n }\n } else if (!_.has(mount, 'placeholder')) {\n mount.placeholder = {};\n }\n const targetMount = this._getMount(mount.path.replace(/\\$[^/]*/g, '$'), true);\n if (targetMount.matcher && (\n targetMount.escapedKey === escapedKey ||\n targetMount.escapedKey.charAt(0) === '$' && escapedKey.charAt(0) === '$'\n )) {\n throw new Error(\n `Multiple classes mounted at ${mount.path}: ${targetMount.Class.name}, ${Class.name}`);\n }\n _.assign(\n targetMount, {Class, matcher, computedProperties, escapedKey},\n _.pick(mount, 'placeholder', 'local', 'keysUnsafe', 'hidden'));\n });\n _.forEach(allVariables, variable => {\n if (!Class.prototype[variable]) {\n Object.defineProperty(Class.prototype, variable, {get() {\n return creatingObjectProperties ?\n creatingObjectProperties[variable] && creatingObjectProperties[variable].value :\n undefined;\n }});\n }\n });\n }\n\n /**\n * Creates a Truss object and sets all its basic properties: path segment variables, user-defined\n * properties, and computed properties. The latter two will be enumerable so that Vue will pick\n * them up and make the reactive.\n */\n createObject(path, properties) {\n const mount = this._getMount(path) || {Class: Value};\n try {\n if (mount.matcher) {\n const match = mount.matcher.match(path);\n for (const variable in match) {\n properties[variable] = {value: match[variable]};\n }\n }\n\n creatingObjectProperties = properties;\n const object = new mount.Class();\n creatingObjectProperties = null;\n\n if (angular.active) this._wrapProperties(object);\n\n if (mount.keysUnsafe) {\n properties.$data = {value: Object.create(null), configurable: true, enumerable: true};\n }\n if (mount.hidden) properties.$hidden = {value: true};\n if (mount.computedProperties) {\n _.forEach(mount.computedProperties, prop => {\n properties[prop.name] = this._buildComputedPropertyDescriptor(object, prop);\n });\n }\n\n return object;\n } catch (e) {\n e.extra = _.assign({mount, properties, className: mount.Class && mount.Class.name}, e.extra);\n throw e;\n }\n }\n\n _wrapProperties(object) {\n _.forEach(object, (value, key) => {\n const valueKey = '$_' + key;\n Object.defineProperties(object, {\n [valueKey]: {value, writable: true},\n [key]: {\n get: () => object[valueKey],\n set: arg => {object[valueKey] = arg; angular.digest();},\n enumerable: true, configurable: true\n }\n });\n });\n }\n\n _buildComputedPropertyDescriptor(object, prop) {\n const propertyStats = stats.for(prop.fullName);\n\n let value, pendingPromise;\n let writeAllowed = false;\n\n object.$$initializers.push(vue => {\n let unwatchNow = false;\n const compute = computeValue.bind(object, prop, propertyStats);\n if (this._debug) compute.toString = () => {return prop.fullName;};\n let unwatch = () => {unwatchNow = true;};\n unwatch = vue.$watch(compute, newValue => {\n if (object.$destroyed) {\n unwatch();\n return;\n }\n if (pendingPromise) {\n if (pendingPromise.cancel) pendingPromise.cancel();\n pendingPromise = undefined;\n }\n if (_.isObject(newValue) && _.isFunction(newValue.then)) {\n const promise = newValue.then(finalValue => {\n if (promise === pendingPromise) update(finalValue);\n // No need to angular.digest() here, since if we're running under Angular then we expect\n // promises to be aliased to its $q service, which triggers digest itself.\n }, error => {\n if (promise === pendingPromise && update(new ErrorWrapper(error)) &&\n !error.trussExpectedException) throw error;\n });\n pendingPromise = promise;\n } else if (update(newValue)) {\n angular.digest();\n if (newValue instanceof ErrorWrapper && !newValue.error.trussExpectedException) {\n throw newValue.error;\n }\n }\n }, {immediate: true}); // use immediate:true since watcher will run computeValue anyway\n // Hack to change order of computed property watchers. By flipping their ids to be negative,\n // we ensure that they will settle before all other watchers, and also that children\n // properties will settle before their parents since values are often aggregated upwards.\n const watcher = _.last(vue._watchers);\n watcher.id = -watcher.id;\n\n function update(newValue) {\n if (newValue instanceof FrozenWrapper) {\n newValue = newValue.value;\n unwatch();\n _.pull(object.$$finalizers, unwatch);\n }\n if (isTrussEqual(value, newValue)) return;\n // console.log('updating', object.$key, prop.fullName, 'from', value, 'to', newValue);\n propertyStats.numUpdates += 1;\n writeAllowed = true;\n object[prop.name] = newValue;\n writeAllowed = false;\n // Freeze the computed value so it can't be accidentally modified by a third party. Ideally\n // we'd freeze it before setting it so that Vue wouldn't instrument the object recursively\n // (since it can't change anyway), but we actually need the instrumentation in case a client\n // tries to access an inexistent property off a computed pointer to an unfrozen value (e.g.,\n // a $truss-ified object). When instrumented, Vue will add a dependency on the unfrozen\n // value in case the property is later added. If uninstrumented, the dependency won't be\n // added and we won't be notified. And Vue only instruments extensible objects...\n freeze(newValue);\n return true;\n }\n\n if (unwatchNow) {\n unwatch();\n } else {\n object.$$finalizers.push(unwatch);\n }\n });\n return {\n enumerable: true, configurable: true,\n get() {\n if (!writeAllowed && value instanceof ErrorWrapper) throw value.error;\n return value;\n },\n set(newValue) {\n if (writeAllowed) {\n value = newValue;\n } else if (prop.set) {\n prop.set.call(this, newValue);\n } else {\n throw new Error(`You cannot set a computed property: ${prop.name}`);\n }\n }\n };\n }\n\n destroyObject(object) {\n if (_.has(object, '$$finalizers')) {\n // Some finalizers remove themselves from the array, so clone it before iterating.\n for (const fn of _.clone(object.$$finalizers)) fn();\n }\n if (_.isFunction(object.$finalize)) object.$finalize();\n Object.defineProperty(\n object, '$destroyed', {value: true, enumerable: false, configurable: false});\n }\n\n isPlaceholder(path) {\n const mount = this._getMount(path);\n return mount && mount.placeholder;\n }\n\n isLocal(path, value) {\n // eslint-disable-next-line no-shadow\n const mount = this._getMount(path, false, mount => mount.local);\n if (mount && mount.local) return true;\n if (this._hasLocalProperties(mount, value)) {\n throw new Error('Write on a mix of local and remote tree paths.');\n }\n return false;\n }\n\n _hasLocalProperties(mount, value) {\n if (!mount) return false;\n if (mount.local) return true;\n if (!mount.localDescendants || !_.isObject(value)) return false;\n for (const key in value) {\n const local =\n this._hasLocalProperties(mount.children[escapeKey(key)] || mount.children.$, value[key]);\n if (local) return true;\n }\n return false;\n }\n\n forEachPlaceholderChild(path, iteratee) {\n const mount = this._getMount(path);\n _.forEach(mount && mount.children, child => {\n if (child.placeholder) iteratee(child);\n });\n }\n\n checkVueObject(object, path, checkedObjects) {\n const top = !checkedObjects;\n if (top) checkedObjects = [];\n try {\n for (const key of Object.getOwnPropertyNames(object)) {\n if (RESERVED_VALUE_PROPERTY_NAMES[key] || Value.prototype.hasOwnProperty(key) ||\n /^\\$_/.test(key)) continue;\n // eslint-disable-next-line no-shadow\n const mount = this._findMount(mount => mount.Class === object.constructor);\n if (mount && mount.matcher && _.includes(mount.matcher.variables, key)) continue;\n let value;\n try {\n value = object[key];\n } catch (e) {\n // Ignore any values that hold exceptions, or otherwise throw on access -- we won't be\n // able to check them anyway.\n continue;\n }\n if (!(_.isArray(object) && (/\\d+/.test(key) || key === 'length'))) {\n const descriptor = Object.getOwnPropertyDescriptor(object, key);\n if ('value' in descriptor || !descriptor.get) {\n throw new Error(\n `Value at ${path}, contained in a Firetruss object, has a rogue property: ${key}`);\n }\n if (object.$truss && descriptor.enumerable) {\n try {\n object[key] = value;\n throw new Error(\n `Firetruss object at ${path} has an enumerable non-Firebase property: ${key}`);\n } catch (e) {\n if (e.trussCode !== 'firebase_overwrite') throw e;\n }\n }\n }\n if (_.isObject(value) && !value.$$$trussCheck && Object.isExtensible(value) &&\n !(_.isFunction(value) || value instanceof Promise)) {\n value.$$$trussCheck = true;\n checkedObjects.push(value);\n this.checkVueObject(value, joinPath(path, escapeKey(key)), checkedObjects);\n }\n }\n } finally {\n if (top) {\n for (const item of checkedObjects) delete item.$$$trussCheck;\n }\n }\n }\n}\n\n\nfunction computeValue(prop, propertyStats) {\n /* eslint-disable no-invalid-this */\n if (this.$destroyed) return;\n // Touch this object, since a failed access to a missing property doesn't get captured as a\n // dependency.\n this.$$touchThis();\n\n const oldPropertyFrozen = currentPropertyFrozen;\n currentPropertyFrozen = false;\n const startTime = performanceNow();\n let value;\n try {\n try {\n value = prop.get.call(this);\n } catch (e) {\n value = new ErrorWrapper(e);\n } finally {\n propertyStats.runtime += performanceNow() - startTime;\n propertyStats.numRecomputes += 1;\n }\n if (currentPropertyFrozen) value = new FrozenWrapper(value);\n return value;\n } finally {\n currentPropertyFrozen = oldPropertyFrozen;\n }\n /* eslint-enable no-invalid-this */\n}\n\nfunction wrapConnections(object, connections) {\n if (!connections || connections instanceof Handle) return connections;\n return _.mapValues(connections, descriptor => {\n if (descriptor instanceof Handle) return descriptor;\n if (_.isFunction(descriptor)) {\n const fn = function() {\n /* eslint-disable no-invalid-this */\n object.$$touchThis();\n return wrapConnections(object, descriptor.call(this));\n /* eslint-enable no-invalid-this */\n };\n fn.angularWatchSuppressed = true;\n return fn;\n }\n return wrapConnections(object, descriptor);\n });\n}\n\nfunction freeze(object) {\n if (_.isNil(object) || !_.isObject(object) || Object.isFrozen(object) || object.$truss) {\n return object;\n }\n object = Object.freeze(object);\n if (_.isArray(object)) return _.map(object, value => freeze(value));\n return _.mapValues(object, value => freeze(value));\n}\n","import _ from 'lodash';\nimport Vue from 'vue';\nimport angular from './angularCompatibility.js';\nimport {splitPath} from './utils/paths.js';\n\n\nclass QueryHandler {\n constructor(coupler, query) {\n this._coupler = coupler;\n this._query = query;\n this._listeners = [];\n this._keys = [];\n this._url = this._coupler._rootUrl + query.path;\n this._segments = splitPath(query.path, true);\n this._listening = false;\n this.ready = false;\n }\n\n attach(operation, keysCallback) {\n this._listen();\n this._listeners.push({operation, keysCallback});\n if (keysCallback) keysCallback(this._keys);\n }\n\n detach(operation) {\n const k = _.findIndex(this._listeners, {operation});\n if (k >= 0) this._listeners.splice(k, 1);\n return this._listeners.length;\n }\n\n _listen() {\n if (this._listening) return;\n this._coupler._bridge.on(\n this._query.toString(), this._url, this._query.constraints, 'value',\n this._handleSnapshot, this._handleError, this, {sync: true});\n this._listening = true;\n }\n\n destroy() {\n this._coupler._bridge.off(\n this._query.toString(), this._url, this._query.constraints, 'value', this._handleSnapshot,\n this);\n this._listening = false;\n this.ready = false;\n angular.digest();\n for (const key of this._keys) {\n this._coupler._decoupleSegments(this._segments.concat(key));\n }\n }\n\n _handleSnapshot(snap) {\n this._coupler._queueSnapshotCallback(() => {\n // Order is important here: first couple any new subpaths so _handleSnapshot will update the\n // tree, then tell the client to update its keys, pulling values from the tree.\n if (!this._listeners.length || !this._listening) return;\n const updatedKeys = this._updateKeys(snap);\n this._coupler._applySnapshot(snap);\n if (!this.ready) {\n this.ready = true;\n angular.digest();\n for (const listener of this._listeners) {\n this._coupler._dispatcher.markReady(listener.operation);\n }\n }\n if (updatedKeys) {\n for (const listener of this._listeners) {\n if (listener.keysCallback) listener.keysCallback(updatedKeys);\n }\n }\n });\n }\n\n _updateKeys(snap) {\n let updatedKeys;\n if (snap.path === this._query.path) {\n updatedKeys = _.keys(snap.value);\n updatedKeys.sort();\n if (_.isEqual(this._keys, updatedKeys)) {\n updatedKeys = null;\n } else {\n for (const key of _.difference(updatedKeys, this._keys)) {\n this._coupler._coupleSegments(this._segments.concat(key));\n }\n for (const key of _.difference(this._keys, updatedKeys)) {\n this._coupler._decoupleSegments(this._segments.concat(key));\n }\n this._keys = updatedKeys;\n }\n } else if (snap.path.replace(/\\/[^/]+/, '') === this._query.path) {\n const hasKey = _.includes(this._keys, snap.key);\n if (snap.value) {\n if (!hasKey) {\n this._coupler._coupleSegments(this._segments.concat(snap.key));\n this._keys.push(snap.key);\n this._keys.sort();\n updatedKeys = this._keys;\n }\n } else if (hasKey) {\n this._coupler._decoupleSegments(this._segments.concat(snap.key));\n _.pull(this._keys, snap.key);\n this._keys.sort();\n updatedKeys = this._keys;\n }\n }\n return updatedKeys;\n }\n\n _handleError(error) {\n if (!this._listeners.length || !this._listening) return;\n this._listening = false;\n this.ready = false;\n angular.digest();\n Promise.all(_.map(this._listeners, listener => {\n this._coupler._dispatcher.clearReady(listener.operation);\n return this._coupler._dispatcher.retry(listener.operation, error).catch(e => {\n listener.operation._disconnect(e);\n return false;\n });\n })).then(results => {\n if (_.some(results)) {\n if (this._listeners.length) this._listen();\n } else {\n for (const listener of this._listeners) listener.operation._disconnect(error);\n }\n });\n }\n}\n\n\nclass Node {\n constructor(coupler, path, parent) {\n this._coupler = coupler;\n this.path = path;\n this.parent = parent;\n this.url = this._coupler._rootUrl + path;\n this.operations = [];\n this.queryCount = 0;\n this.listening = false;\n this.ready = false;\n this.children = {};\n }\n\n get active() {\n return this.count || this.queryCount;\n }\n\n get count() {\n return this.operations.length;\n }\n\n listen(skip) {\n if (!skip && this.count) {\n if (this.listening) return;\n _.forEach(this.operations, op => {this._coupler._dispatcher.clearReady(op);});\n this._coupler._bridge.on(\n this.url, this.url, null, 'value', this._handleSnapshot, this._handleError, this,\n {sync: true});\n this.listening = true;\n } else {\n _.forEach(this.children, child => {child.listen();});\n }\n }\n\n unlisten(skip) {\n if (!skip && this.listening) {\n this._coupler._bridge.off(this.url, this.url, null, 'value', this._handleSnapshot, this);\n this.listening = false;\n this._forAllDescendants(node => {\n if (node.listening) return false;\n if (node.ready) {\n node.ready = false;\n angular.digest();\n }\n });\n } else {\n _.forEach(this.children, child => {child.unlisten();});\n }\n }\n\n _handleSnapshot(snap) {\n this._coupler._queueSnapshotCallback(() => {\n if (!this.listening || !this._coupler.isTrunkCoupled(snap.path)) return;\n this._coupler._applySnapshot(snap);\n if (!this.ready && snap.path === this.path) {\n this.ready = true;\n angular.digest();\n this.unlisten(true);\n this._forAllDescendants(node => {\n for (const op of node.operations) this._coupler._dispatcher.markReady(op);\n });\n }\n });\n }\n\n _handleError(error) {\n if (!this.count || !this.listening) return;\n this.listening = false;\n this._forAllDescendants(node => {\n if (node.listening) return false;\n if (node.ready) {\n node.ready = false;\n angular.digest();\n }\n for (const op of node.operations) this._coupler._dispatcher.clearReady(op);\n });\n return Promise.all(_.map(this.operations, op => {\n return this._coupler._dispatcher.retry(op, error).catch(e => {\n op._disconnect(e);\n return false;\n });\n })).then(results => {\n if (_.some(results)) {\n if (this.count) this.listen();\n } else {\n for (const op of this.operations) op._disconnect(error);\n // Pulling all the operations will automatically get us listening on descendants.\n }\n });\n }\n\n _forAllDescendants(iteratee) {\n if (iteratee(this) === false) return;\n _.forEach(this.children, child => child._forAllDescendants(iteratee));\n }\n\n collectCoupledDescendantPaths(paths) {\n if (!paths) paths = {};\n paths[this.path] = this.active;\n if (!this.active) {\n _.forEach(this.children, child => {child.collectCoupledDescendantPaths(paths);});\n }\n return paths;\n }\n}\n\n\nexport default class Coupler {\n constructor(rootUrl, bridge, dispatcher, applySnapshot, prunePath) {\n this._rootUrl = rootUrl;\n this._bridge = bridge;\n this._dispatcher = dispatcher;\n this._applySnapshot = applySnapshot;\n this._pendingSnapshotCallbacks = [];\n this._throttled = {processPendingSnapshots: this._processPendingSnapshots};\n this._prunePath = prunePath;\n this._vue = new Vue({data: {root: undefined, queryHandlers: {}}});\n // Prevent Vue from instrumenting rendering since there's actually nothing to render, and the\n // warnings cause false positives from Lodash primitives when running tests.\n this._vue._renderProxy = this._vue;\n this._nodeIndex = Object.create(null);\n Object.freeze(this);\n // Set root node after freezing Coupler, otherwise it gets vue-ified too.\n this._vue.$data.root = new Node(this, '/');\n this._nodeIndex['/'] = this._root;\n }\n\n get _root() {\n return this._vue.$data.root;\n }\n\n get _queryHandlers() {\n return this._vue.$data.queryHandlers;\n }\n\n destroy() {\n _.forEach(this._queryHandlers, queryHandler => {queryHandler.destroy();});\n this._root.unlisten();\n this._vue.$destroy();\n }\n\n couple(path, operation) {\n return this._coupleSegments(splitPath(path, true), operation);\n }\n\n _coupleSegments(segments, operation) {\n let node;\n let superseded = !operation;\n let ready = false;\n for (const segment of segments) {\n let child = segment ? node.children && node.children[segment] : this._root;\n if (!child) {\n child = new Node(this, `${node.path === '/' ? '' : node.path}/${segment}`, node);\n Vue.set(node.children, segment, child);\n this._nodeIndex[child.path] = child;\n }\n superseded = superseded || child.listening;\n ready = ready || child.ready;\n node = child;\n }\n if (operation) {\n node.operations.push(operation);\n } else {\n node.queryCount++;\n }\n if (superseded) {\n if (operation && ready) this._dispatcher.markReady(operation);\n } else {\n node.listen(); // node will call unlisten() on descendants when ready\n }\n }\n\n decouple(path, operation) {\n return this._decoupleSegments(splitPath(path, true), operation);\n }\n\n _decoupleSegments(segments, operation) {\n const ancestors = [];\n let node;\n for (const segment of segments) {\n node = segment ? node.children && node.children[segment] : this._root;\n if (!node) break;\n ancestors.push(node);\n }\n if (!node || !(operation ? node.count : node.queryCount)) {\n throw new Error(`Path not coupled: ${segments.join('/') || '/'}`);\n }\n if (operation) {\n _.pull(node.operations, operation);\n } else {\n node.queryCount--;\n }\n if (operation && !node.count) {\n // Ideally, we wouldn't resync the full values here since we probably already have the current\n // value for all children. But making sure that's true is tricky in an async system (what if\n // the node's value changes and the update crosses the 'off' call in transit?) and this\n // situation should be sufficiently rare that the optimization is probably not worth it right\n // now.\n node.listen();\n if (node.listening) node.unlisten();\n }\n if (!node.active) {\n for (let i = ancestors.length - 1; i > 0; i--) {\n node = ancestors[i];\n if (node === this._root || node.active || !_.isEmpty(node.children)) break;\n Vue.delete(ancestors[i - 1].children, segments[i]);\n node.ready = undefined;\n delete this._nodeIndex[node.path];\n }\n const path = segments.join('/') || '/';\n this._prunePath(path, this.findCoupledDescendantPaths(path));\n }\n }\n\n subscribe(query, operation, keysCallback) {\n let queryHandler = this._queryHandlers[query.toString()];\n if (!queryHandler) {\n queryHandler = new QueryHandler(this, query);\n Vue.set(this._queryHandlers, query.toString(), queryHandler);\n }\n queryHandler.attach(operation, keysCallback);\n }\n\n unsubscribe(query, operation) {\n const queryHandler = this._queryHandlers[query.toString()];\n if (queryHandler && !queryHandler.detach(operation)) {\n queryHandler.destroy();\n Vue.delete(this._queryHandlers, query.toString());\n }\n }\n\n // Return whether the node at path or any ancestors are coupled.\n isTrunkCoupled(path) {\n const segments = splitPath(path, true);\n let node;\n for (const segment of segments) {\n node = segment ? node.children && node.children[segment] : this._root;\n if (!node) return false;\n if (node.active) return true;\n }\n return false;\n }\n\n findCoupledDescendantPaths(path) {\n let node;\n for (const segment of splitPath(path, true)) {\n node = segment ? node.children && node.children[segment] : this._root;\n if (node && node.active) return {[path]: node.active};\n if (!node) break;\n }\n return node && node.collectCoupledDescendantPaths();\n }\n\n isSubtreeReady(path) {\n let node, childSegment;\n function extractChildSegment(match) {\n childSegment = match.slice(1);\n return '';\n }\n while (!(node = this._nodeIndex[path])) {\n path = path.replace(/\\/[^/]*$/, extractChildSegment) || '/';\n }\n if (childSegment) void node.children; // state an interest in the closest ancestor's children\n while (node) {\n if (node.ready) return true;\n node = node.parent;\n }\n return false;\n }\n\n isQueryReady(query) {\n const queryHandler = this._queryHandlers[query.toString()];\n return queryHandler && queryHandler.ready;\n }\n\n _queueSnapshotCallback(callback) {\n this._pendingSnapshotCallbacks.push(callback);\n this._throttled.processPendingSnapshots.call(this);\n }\n\n _processPendingSnapshots() {\n for (const callback of this._pendingSnapshotCallbacks) callback();\n // Property is frozen, so we need to splice to empty the array.\n this._pendingSnapshotCallbacks.splice(0, Infinity);\n }\n\n throttleSnapshots(delay) {\n if (delay) {\n this._throttled.processPendingSnapshots = _.throttle(this._processPendingSnapshots, delay);\n } else {\n this._throttled.processPendingSnapshots = this._processPendingSnapshots;\n }\n }\n}\n\n","import angular from './angularCompatibility.js';\nimport Coupler from './Coupler.js';\nimport Modeler from './Modeler.js';\nimport Reference from './Reference.js';\nimport {escapeKey, escapeKeys, unescapeKey, joinPath, splitPath} from './utils/paths.js';\nimport {wrapPromiseCallback, promiseFinally} from './utils/promises.js';\nimport {SERVER_TIMESTAMP} from './utils/utils.js';\n\nimport _ from 'lodash';\nimport Vue from 'vue';\n\n\nclass Transaction {\n constructor(ref) {\n this._ref = ref;\n this._outcome = undefined;\n this._values = undefined;\n }\n\n get currentValue() {return this._ref.value;}\n get outcome() {return this._outcome;}\n get values() {return this._values;}\n\n _setOutcome(value) {\n if (this._outcome) throw new Error('Transaction already resolved with ' + this._outcome);\n this._outcome = value;\n }\n\n abort() {\n this._setOutcome('abort');\n }\n\n cancel() {\n this._setOutcome('cancel');\n }\n\n set(value) {\n if (value === undefined) throw new Error('Invalid argument: undefined');\n this._setOutcome('set');\n this._values = {'': value};\n }\n\n update(values) {\n if (values === undefined) throw new Error('Invalid argument: undefined');\n if (_.isEmpty(values)) return this.cancel();\n this._setOutcome('update');\n this._values = values;\n }\n}\n\n\nexport default class Tree {\n constructor(truss, rootUrl, bridge, dispatcher) {\n this._truss = truss;\n this._rootUrl = rootUrl;\n this._bridge = bridge;\n this._dispatcher = dispatcher;\n this._firebasePropertyEditAllowed = false;\n this._writeSerial = 0;\n this._localWrites = {};\n this._localWriteTimestamp = null;\n this._initialized = false;\n this._modeler = new Modeler(truss.constructor.VERSION === 'dev');\n this._coupler = new Coupler(\n rootUrl, bridge, dispatcher, this._integrateSnapshot.bind(this), this._prune.bind(this));\n this._vue = new Vue({data: {$root: undefined}});\n Object.seal(this);\n // Call this.init(classes) to complete initialization; we need two phases so that truss can bind\n // the tree into its own accessors prior to defining computed functions, which may try to\n // access the tree root via truss.\n }\n\n get root() {\n if (!this._vue.$data.$root) {\n this._vue.$data.$root = this._createObject('/');\n this._fixObject(this._vue.$data.$root);\n this._completeCreateObject(this._vue.$data.$root);\n angular.digest();\n }\n return this._vue.$data.$root;\n }\n\n get truss() {\n return this._truss;\n }\n\n init(classes) {\n if (this._initialized) {\n throw new Error('Data objects already created, too late to mount classes');\n }\n this._initialized = true;\n this._modeler.init(classes, !this._vue.$data.$root);\n const createdObjects = [];\n this._plantPlaceholders(this.root, '/', undefined, createdObjects);\n for (const object of createdObjects) this._completeCreateObject(object);\n }\n\n destroy() {\n this._coupler.destroy();\n if (this._modeler) this._modeler.destroy();\n this._vue.$destroy();\n }\n\n connectReference(ref, method) {\n this._checkHandle(ref);\n const operation = this._dispatcher.createOperation('read', method, ref);\n let unwatch;\n operation._disconnect = this._disconnectReference.bind(this, ref, operation, unwatch);\n this._dispatcher.begin(operation).then(() => {\n if (operation.running && !operation._disconnected) {\n this._coupler.couple(ref.path, operation);\n operation._coupled = true;\n }\n }).catch(_.noop); // ignore exception, let onFailure handlers deal with it\n return operation._disconnect;\n }\n\n _disconnectReference(ref, operation, unwatch, error) {\n if (operation._disconnected) return;\n operation._disconnected = true;\n if (unwatch) unwatch();\n if (operation._coupled) {\n this._coupler.decouple(ref.path, operation); // will call back to _prune if necessary\n operation._coupled = false;\n }\n this._dispatcher.end(operation, error).catch(_.noop);\n }\n\n isReferenceReady(ref) {\n this._checkHandle(ref);\n return this._coupler.isSubtreeReady(ref.path);\n }\n\n connectQuery(query, keysCallback, method) {\n this._checkHandle(query);\n const operation = this._dispatcher.createOperation('read', method, query);\n operation._disconnect = this._disconnectQuery.bind(this, query, operation);\n this._dispatcher.begin(operation).then(() => {\n if (operation.running && !operation._disconnected) {\n this._coupler.subscribe(query, operation, keysCallback);\n operation._coupled = true;\n }\n }).catch(_.noop); // ignore exception, let onFailure handlers deal with it\n return operation._disconnect;\n }\n\n _disconnectQuery(query, operation, error) {\n if (operation._disconnected) return;\n operation._disconnected = true;\n if (operation._coupled) {\n this._coupler.unsubscribe(query, operation); // will call back to _prune if necessary\n operation._coupled = false;\n }\n this._dispatcher.end(operation, error).catch(_.noop);\n }\n\n isQueryReady(query) {\n return this._coupler.isQueryReady(query);\n }\n\n _checkHandle(handle) {\n if (!handle.belongsTo(this._truss)) {\n throw new Error('Reference belongs to another Truss instance');\n }\n }\n\n throttleRemoteDataUpdates(delay) {\n this._coupler.throttleSnapshots(delay);\n }\n\n update(ref, method, values) {\n values = _.mapValues(values, value => escapeKeys(value));\n const numValues = _.size(values);\n if (!numValues) return Promise.resolve();\n if (method === 'update' || method === 'override') {\n checkUpdateHasOnlyDescendantsWithNoOverlap(ref.path, values);\n }\n if (this._applyLocalWrite(values, method === 'override')) return Promise.resolve();\n const pathPrefix = extractCommonPathPrefix(values);\n relativizePaths(pathPrefix, values);\n if (pathPrefix !== ref.path) ref = new Reference(ref._tree, pathPrefix, ref._annotations);\n const url = this._rootUrl + pathPrefix;\n const writeSerial = this._writeSerial;\n const set = numValues === 1;\n const operand = set ? values[''] : values;\n return this._dispatcher.execute('write', set ? 'set' : 'update', ref, operand, () => {\n const promise = this._bridge[set ? 'set' : 'update'](url, operand, writeSerial);\n return promise.catch(e => {\n if (!e.immediateFailure) return Promise.reject(e);\n return promiseFinally(this._repair(ref, values), () => Promise.reject(e));\n });\n });\n }\n\n commit(ref, updateFunction) {\n let tries = 0;\n updateFunction = wrapPromiseCallback(updateFunction);\n\n const attemptTransaction = () => {\n if (tries++ >= 25) {\n return Promise.reject(new Error('Transaction needed too many retries, giving up'));\n }\n const txn = new Transaction(ref);\n let oldValue;\n // Ensure that Vue's watcher queue gets emptied and computed properties are up to date before\n // running the updateFunction.\n return Vue.nextTick().then(() => {\n oldValue = toFirebaseJson(txn.currentValue);\n return updateFunction(txn);\n }).then(() => {\n if (!_.isEqual(oldValue, toFirebaseJson(txn.currentValue))) return attemptTransaction();\n if (txn.outcome === 'abort') return txn; // early return to save time\n const values = _.mapValues(txn.values, value => escapeKeys(value));\n switch (txn.outcome) {\n case 'cancel':\n break;\n case 'set':\n if (this._applyLocalWrite({[ref.path]: values['']})) return Promise.resolve();\n break;\n case 'update':\n checkUpdateHasOnlyDescendantsWithNoOverlap(ref.path, values);\n if (this._applyLocalWrite(values)) return Promise.resolve();\n relativizePaths(ref.path, values);\n break;\n default:\n throw new Error('Invalid transaction outcome: ' + (txn.outcome || 'none'));\n }\n return this._bridge.transaction(\n this._rootUrl + ref.path, oldValue, values, this._writeSerial\n ).then(result => {\n _.forEach(result.snapshots, snapshot => this._integrateSnapshot(snapshot));\n return result.committed ? txn : attemptTransaction();\n }, e => {\n if (e.immediateFailure && (txn.outcome === 'set' || txn.outcome === 'update')) {\n return promiseFinally(this._repair(ref, values), () => Promise.reject(e));\n }\n return Promise.reject(e);\n });\n });\n };\n\n return this._truss.peek(ref, () => {\n return this._dispatcher.execute('write', 'commit', ref, undefined, attemptTransaction);\n });\n }\n\n _repair(ref, values) {\n // If a write fails early -- that is, before it gets applied to the Firebase client's local\n // tree -- then we need to repair our own local tree manually since Firebase won't send events\n // to unwind the change. This should be very rare since it's always due to a developer mistake\n // so we don't need to be particularly efficient.\n const basePath = ref.path;\n const paths = _(values).keys().flatMap(key => {\n let path = basePath;\n if (key) path = joinPath(path, key);\n return _.keys(this._coupler.findCoupledDescendantPaths(path));\n }).value();\n return Promise.all(_.map(paths, path => {\n return this._bridge.once(this._rootUrl + path).then(snap => {\n this._integrateSnapshot(snap);\n });\n }));\n }\n\n _applyLocalWrite(values, override) {\n // TODO: correctly apply local writes that impact queries. Currently, a local write will update\n // any objects currently selected by a query, but won't add or remove results.\n this._writeSerial++;\n this._localWriteTimestamp = this._truss.now;\n const createdObjects = [];\n let numLocal = 0;\n _.forEach(values, (value, path) => {\n const local = this._modeler.isLocal(path, value);\n if (local) numLocal++;\n const coupledDescendantPaths =\n local ? {[path]: true} : this._coupler.findCoupledDescendantPaths(path);\n if (_.isEmpty(coupledDescendantPaths)) return;\n const offset = (path === '/' ? 0 : path.length) + 1;\n for (const descendantPath in coupledDescendantPaths) {\n const subPath = descendantPath.slice(offset);\n let subValue = value;\n if (subPath && value !== null && value !== undefined) {\n for (const segment of splitPath(subPath)) {\n subValue = subValue.$data[segment];\n if (subValue === undefined) break;\n }\n }\n if (_.isNil(subValue)) {\n this._prune(descendantPath);\n } else {\n const key = _.last(splitPath(descendantPath));\n this._plantValue(\n descendantPath, key, subValue,\n this._scaffoldAncestors(descendantPath, false, createdObjects), false, override, local,\n createdObjects\n );\n }\n if (!override && !local) this._localWrites[descendantPath] = this._writeSerial;\n }\n });\n for (const object of createdObjects) this._completeCreateObject(object);\n if (numLocal && numLocal < _.size(values)) {\n throw new Error('Write on a mix of local and remote tree paths.');\n }\n return override || !!numLocal;\n }\n\n /**\n * Creates a Truss object and sets all its basic properties: path segment variables, user-defined\n * properties, and computed properties. The latter two will be enumerable so that Vue will pick\n * them up and make the reactive, so you should call _completeCreateObject once it's done so and\n * before any Firebase properties are added.\n */\n _createObject(path, parent) {\n if (!this._initialized && path !== '/') this.init();\n const properties = {\n // We want Vue to wrap this; we'll make it non-enumerable in _fixObject.\n $parent: {value: parent, configurable: true, enumerable: true},\n $path: {value: path}\n };\n if (path === '/') properties.$truss = {value: this._truss};\n\n const object = this._modeler.createObject(path, properties);\n Object.defineProperties(object, properties);\n return object;\n }\n\n // To be called on the result of _createObject after it's been inserted into the _vue hierarchy\n // and Vue has had a chance to initialize it.\n _fixObject(object) {\n for (const name of Object.getOwnPropertyNames(object)) {\n const descriptor = Object.getOwnPropertyDescriptor(object, name);\n if (descriptor.configurable && descriptor.enumerable) {\n descriptor.enumerable = false;\n if (_.startsWith(name, '$')) descriptor.configurable = false;\n Object.defineProperty(object, name, descriptor);\n }\n }\n }\n\n // To be called on the result of _createObject after _fixObject, and after any additional Firebase\n // properties have been set, to run initialiers.\n _completeCreateObject(object) {\n if (object.hasOwnProperty('$$initializers')) {\n for (const fn of object.$$initializers) fn(this._vue);\n delete object.$$initializers;\n }\n }\n\n _destroyObject(object) {\n if (!(object && object.$truss) || object.$destroyed) return;\n this._modeler.destroyObject(object);\n // Normally we'd only destroy enumerable children, which are the Firebase properties. However,\n // clients have the option of creating hidden placeholders, so we need to scan non-enumerable\n // properties as well. To distinguish such placeholders from the myriad other non-enumerable\n // properties (that lead all over tree, e.g. $parent), we check that the property's parent is\n // ourselves before destroying.\n for (const key of Object.getOwnPropertyNames(object.$data)) {\n const child = object.$data[key];\n if (child && child.$parent === object) this._destroyObject(child);\n }\n }\n\n _integrateSnapshot(snap) {\n _.forEach(this._localWrites, (writeSerial, path) => {\n if (snap.writeSerial >= writeSerial) delete this._localWrites[path];\n });\n if (snap.exists) {\n const createdObjects = [];\n const parent = this._scaffoldAncestors(snap.path, true, createdObjects);\n if (parent) {\n this._plantValue(\n snap.path, snap.key, snap.value, parent, true, false, false, createdObjects);\n }\n for (const object of createdObjects) this._completeCreateObject(object);\n } else {\n this._prune(snap.path, null, true);\n }\n }\n\n _scaffoldAncestors(path, remoteWrite, createdObjects) {\n let object;\n const segments = _.dropRight(splitPath(path, true));\n let ancestorPath = '/';\n for (let i = 0; i < segments.length; i++) {\n const segment = segments[i];\n const key = unescapeKey(segment);\n let child = segment ? object.$data[key] : this.root;\n if (segment) ancestorPath += (ancestorPath === '/' ? '' : '/') + segment;\n if (child) {\n if (remoteWrite && this._localWrites[ancestorPath]) return;\n } else {\n child = this._plantValue(\n ancestorPath, key, {}, object, remoteWrite, false, false, createdObjects);\n if (!child) return;\n }\n object = child;\n }\n return object;\n }\n\n _plantValue(path, key, value, parent, remoteWrite, override, local, createdObjects) {\n if (remoteWrite && _.isNil(value)) {\n throw new Error(`Snapshot includes invalid value at ${path}: ${value}`);\n }\n if (remoteWrite && this._localWrites[path || '/']) return;\n if (_.isEqual(value, SERVER_TIMESTAMP)) value = this._localWriteTimestamp;\n let object = parent.$data[key];\n if (!_.isArray(value) && !(local ? _.isPlainObject(value) : _.isObject(value))) {\n this._destroyObject(object);\n if (!local && _.isNil(value)) {\n this._deleteFirebaseProperty(parent, key);\n } else {\n this._setFirebaseProperty(parent, key, value);\n }\n return;\n }\n let objectCreated = false;\n if (!_.isObject(object)) {\n // Need to pre-set the property, so that if the child object attempts to watch any of its own\n // properties while being created the $$touchThis method has something to add a dependency on\n // as the object's own properties won't be made reactive until *after* it's been created.\n this._setFirebaseProperty(parent, key, null);\n object = this._createObject(path, parent);\n this._setFirebaseProperty(parent, key, object, object.$hidden);\n this._fixObject(object);\n createdObjects.push(object);\n objectCreated = true;\n }\n if (override) {\n Object.defineProperty(object, '$overridden', {get: _.constant(true), configurable: true});\n } else if (object.$overridden) {\n delete object.$overridden;\n }\n // Plant hidden placeholders first, so their computed watchers will have a similar precedence to\n // the parent object, and the parent object's other children will get computed first. This can\n // optimize updates when parts of a complex model are broken out into hidden sub-models, and\n // shouldn't risk being overwritten by actual Firebase data since that will rarely (never?) be\n // hidden.\n if (objectCreated) this._plantPlaceholders(object, path, true, createdObjects);\n _.forEach(value, (item, escapedChildKey) => {\n this._plantValue(\n joinPath(path, escapedChildKey), unescapeKey(escapedChildKey), item, object, remoteWrite,\n override, local, createdObjects\n );\n });\n if (objectCreated) {\n this._plantPlaceholders(object, path, false, createdObjects);\n } else {\n _.forEach(object.$data, (item, childKey) => {\n const escapedChildKey = escapeKey(childKey);\n if (!value.hasOwnProperty(escapedChildKey)) {\n this._prune(joinPath(path, escapedChildKey), null, remoteWrite);\n }\n });\n }\n return object;\n }\n\n _plantPlaceholders(object, path, hidden, createdObjects) {\n this._modeler.forEachPlaceholderChild(path, mount => {\n if (hidden !== undefined && hidden !== !!mount.hidden) return;\n const key = unescapeKey(mount.escapedKey);\n if (!object.$data.hasOwnProperty(key)) {\n this._plantValue(\n joinPath(path, mount.escapedKey), key, mount.placeholder, object, false, false, false,\n createdObjects);\n }\n });\n }\n\n _prune(path, lockedDescendantPaths, remoteWrite) {\n lockedDescendantPaths = lockedDescendantPaths || {};\n const object = this.getObject(path);\n if (object === undefined) return;\n if (remoteWrite && this._avoidLocalWritePaths(path, lockedDescendantPaths)) return;\n if (!(_.isEmpty(lockedDescendantPaths) && this._pruneAncestors(path, object)) &&\n _.isObject(object)) {\n // The target object is a placeholder, and all ancestors are placeholders or otherwise needed\n // as well, so we can't delete it. Instead, dive into its descendants to delete what we can.\n this._pruneDescendants(object, lockedDescendantPaths);\n }\n }\n\n _avoidLocalWritePaths(path, lockedDescendantPaths) {\n for (const localWritePath in this._localWrites) {\n if (!this._localWrites.hasOwnProperty(localWritePath)) continue;\n if (path === localWritePath || localWritePath === '/' ||\n _.startsWith(path, localWritePath + '/')) return true;\n if (path === '/' || _.startsWith(localWritePath, path + '/')) {\n const segments = splitPath(localWritePath, true);\n for (let i = segments.length; i > 0; i--) {\n const subPath = segments.slice(0, i).join('/');\n const active = i === segments.length;\n if (lockedDescendantPaths[subPath] || lockedDescendantPaths[subPath] === active) break;\n lockedDescendantPaths[subPath] = active;\n if (subPath === path) break;\n }\n }\n }\n }\n\n _pruneAncestors(targetPath, targetObject) {\n // Destroy the child (unless it's a placeholder that's still needed) and any ancestors that\n // are no longer needed to keep this child rooted, and have no other reason to exist.\n let deleted = false;\n let object = targetObject;\n // The target object may be a primitive, in which case it won't have $path, $parent and $key\n // properties. In that case, use the target path to figure those out instead. Note that all\n // ancestors of the target object will necessarily not be primitives and will have those\n // properties.\n let targetKey;\n const targetParentPath = targetPath.replace(/\\/[^/]+$/, match => {\n targetKey = unescapeKey(match.slice(1));\n return '';\n });\n while (object !== undefined && object !== this.root) {\n const parent =\n object && object.$parent || object === targetObject && this.getObject(targetParentPath);\n if (!this._modeler.isPlaceholder(object && object.$path || targetPath)) {\n const ghostObjects = deleted ? null : [targetObject];\n if (!this._holdsConcreteData(object, ghostObjects)) {\n deleted = true;\n this._deleteFirebaseProperty(\n parent, object && object.$key || object === targetObject && targetKey);\n }\n }\n object = parent;\n }\n return deleted;\n }\n\n _holdsConcreteData(object, ghostObjects) {\n if (_.isNil(object)) return false;\n if (ghostObjects && _.includes(ghostObjects, object)) return false;\n if (!_.isObject(object) || !object.$truss) return true;\n return _.some(object.$data, value => this._holdsConcreteData(value, ghostObjects));\n }\n\n _pruneDescendants(object, lockedDescendantPaths) {\n if (lockedDescendantPaths[object.$path]) return true;\n if (object.$overridden) delete object.$overridden;\n let coupledDescendantFound = false;\n _.forEach(object.$data, (value, key) => {\n let shouldDelete = true;\n let valueLocked;\n if (lockedDescendantPaths[joinPath(object.$path, escapeKey(key))]) {\n shouldDelete = false;\n valueLocked = true;\n } else if (!_.isNil(value) && value.$truss) {\n const placeholder = this._modeler.isPlaceholder(value.$path);\n if (placeholder || _.has(lockedDescendantPaths, value.$path)) {\n valueLocked = this._pruneDescendants(value, lockedDescendantPaths);\n shouldDelete = !placeholder && !valueLocked;\n }\n }\n if (shouldDelete) this._deleteFirebaseProperty(object, key);\n coupledDescendantFound = coupledDescendantFound || valueLocked;\n });\n return coupledDescendantFound;\n }\n\n getObject(path) {\n const segments = splitPath(path);\n let object;\n for (const segment of segments) {\n object = segment ? object.$data[segment] : this.root;\n if (object === undefined) return;\n }\n return object;\n }\n\n _getFirebasePropertyDescriptor(object, data, key) {\n const descriptor = Object.getOwnPropertyDescriptor(data, key);\n if (descriptor) {\n if (!descriptor.enumerable) {\n const child = data[key];\n if (!child || child.$parent !== object) {\n throw new Error(\n `Key conflict between Firebase and instance or computed properties at ` +\n `${object.$path}: ${key}`);\n }\n }\n if (!descriptor.get || !descriptor.set) {\n throw new Error(`Unbound property at ${object.$path}: ${key}`);\n }\n } else if (key in data) {\n throw new Error(\n `Key conflict between Firebase and inherited property at ${object.$path}: ${key}`);\n }\n return descriptor;\n }\n\n _setFirebaseProperty(object, key, value, hidden) {\n const data = object.hasOwnProperty('$data') ? object.$data : object;\n let descriptor = this._getFirebasePropertyDescriptor(object, data, key);\n if (descriptor) {\n if (hidden) {\n // Redefine property as hidden after it's been created, since we usually don't know whether\n // it should be hidden until too late. This is a one-way deal -- you can't unhide a\n // property later, but that's fine for our purposes.\n Object.defineProperty(data, key, {\n get: descriptor.get, set: descriptor.set, configurable: true, enumerable: false\n });\n }\n if (data[key] === value) return;\n this._firebasePropertyEditAllowed = true;\n data[key] = value;\n this._firebasePropertyEditAllowed = false;\n } else {\n Vue.set(data, key, value);\n descriptor = Object.getOwnPropertyDescriptor(data, key);\n Object.defineProperty(data, key, {\n get: descriptor.get, set: this._overwriteFirebaseProperty.bind(this, descriptor, key),\n configurable: true, enumerable: !hidden\n });\n }\n angular.digest();\n }\n\n _overwriteFirebaseProperty(descriptor, key, newValue) {\n if (!this._firebasePropertyEditAllowed) {\n const e = new Error(`Firebase data cannot be mutated directly: ${key}`);\n e.trussCode = 'firebase_overwrite';\n throw e;\n }\n descriptor.set.call(this, newValue);\n }\n\n _deleteFirebaseProperty(object, key) {\n const data = object.hasOwnProperty('$data') ? object.$data : object;\n // Make sure it's actually a Firebase property.\n this._getFirebasePropertyDescriptor(object, data, key);\n this._destroyObject(data[key]);\n Vue.delete(data, key);\n angular.digest();\n }\n\n checkVueObject(object, path) {\n this._modeler.checkVueObject(object, path);\n }\n}\n\n\nexport function checkUpdateHasOnlyDescendantsWithNoOverlap(rootPath, values) {\n // First, check all paths for correctness and absolutize them, since there could be a mix of\n // absolute paths and relative keys.\n _.forEach(_.keys(values), path => {\n if (path.charAt(0) === '/') {\n if (!(path === rootPath || rootPath === '/' ||\n _.startsWith(path, rootPath + '/') && path.length > rootPath.length + 1)) {\n throw new Error(`Update item is not a descendant of target ref: ${path}`);\n }\n } else {\n if (_.includes(path, '/')) {\n throw new Error(`Update item deep path must be absolute, taken from a reference: ${path}`);\n }\n const absolutePath = joinPath(rootPath, escapeKey(path));\n if (values.hasOwnProperty(absolutePath)) {\n throw new Error(`Update items overlap: ${path} and ${absolutePath}`);\n }\n values[absolutePath] = values[path];\n delete values[path];\n }\n });\n // Then check for overlaps;\n const allPaths = _(values).keys().map(path => joinPath(path, '')).sortBy('length').value();\n _.forEach(values, (value, path) => {\n for (const otherPath of allPaths) {\n if (otherPath.length > path.length) break;\n if (path !== otherPath && _.startsWith(path, otherPath)) {\n throw new Error(`Update items overlap: ${otherPath} and ${path}`);\n }\n }\n });\n}\n\nexport function extractCommonPathPrefix(values) {\n let prefixSegments;\n _.forEach(values, (value, path) => {\n const segments = path === '/' ? [''] : splitPath(path, true);\n if (prefixSegments) {\n let firstMismatchIndex = 0;\n const maxIndex = Math.min(prefixSegments.length, segments.length);\n while (firstMismatchIndex < maxIndex &&\n prefixSegments[firstMismatchIndex] === segments[firstMismatchIndex]) {\n firstMismatchIndex++;\n }\n prefixSegments = prefixSegments.slice(0, firstMismatchIndex);\n if (!prefixSegments.length) return false;\n } else {\n prefixSegments = segments;\n }\n });\n return prefixSegments.length === 1 ? '/' : prefixSegments.join('/');\n}\n\nexport function relativizePaths(rootPath, values) {\n const offset = rootPath === '/' ? 1 : rootPath.length + 1;\n _.forEach(_.keys(values), path => {\n values[path.slice(offset)] = values[path];\n delete values[path];\n });\n}\n\nexport function toFirebaseJson(object) {\n if (!_.isObject(object)) return object;\n const result = {};\n const data = object.$data;\n for (const key in data) {\n if (data.hasOwnProperty(key)) result[escapeKey(key)] = toFirebaseJson(data[key]);\n }\n return result;\n}\n\n","import _ from 'lodash';\nimport Vue from 'vue';\nimport angular from './angularCompatibility.js';\nimport Bridge from './Bridge.js';\nimport Connector from './Connector.js';\nimport Dispatcher from './Dispatcher.js';\nimport KeyGenerator from './KeyGenerator.js';\nimport MetaTree from './MetaTree.js';\nimport {Handle} from './Reference.js';\nimport {BaseValue} from './Modeler.js';\nimport Tree from './Tree.js';\nimport stats from './utils/stats.js';\nimport {escapeKey, unescapeKey} from './utils/paths.js';\nimport {wrapPromiseCallback, promiseCancel, promiseFinally} from './utils/promises.js';\nimport {SERVER_TIMESTAMP, copyPrototype} from './utils/utils.js';\n\n\nlet bridge, logging;\nconst workerFunctions = {};\n// This version is filled in by the build, don't reformat the line.\nconst VERSION = '4.1.2';\n\n\nexport default class Truss {\n\n /**\n * Create a new Truss instance, specific to a given datastore. To avoid confusion there should be\n * exactly one Truss per root datastore URL, so in most code this will be a singleton.\n *\n * @param rootUrl {String} The root URL, https://{project}.firebaseio.com.\n */\n constructor(rootUrl) {\n // TODO: allow rootUrl to be a test database object for testing\n if (!bridge) {\n throw new Error('Truss worker not connected, please call Truss.connectWorker first');\n }\n this._rootUrl = rootUrl.replace(/\\/$/, '');\n this._keyGenerator = new KeyGenerator();\n this._dispatcher = new Dispatcher(bridge);\n this._vue = new Vue();\n\n bridge.trackServer(this._rootUrl);\n this._tree = new Tree(this, this._rootUrl, bridge, this._dispatcher);\n this._metaTree = new MetaTree(this._rootUrl, this._tree, bridge, this._dispatcher);\n\n Object.freeze(this);\n }\n\n get meta() {return this._metaTree.root;}\n get store() {return this._tree.root;}\n\n /**\n * Mount a set of classes against the datastore structure. Must be called at most once, and\n * cannot be called once any data has been loaded into the tree.\n * @param classes {Array<Function> | Object<Function>} A list of the classes to map onto the\n * datastore structure. Each class must have a static $trussMount property that is a\n * (wildcarded) unescaped datastore path, or an options object\n * {path: string, placeholder: object}, or an array of either. If the list is an object then\n * the keys serve as default option-less $trussMount paths for classes that don't define an\n * explicit $trussMount.\n */\n mount(classes) {\n this._tree.init(classes);\n }\n\n destroy() {\n this._vue.$destroy();\n this._tree.destroy();\n this._metaTree.destroy();\n }\n\n get now() {return Date.now() + this.meta.timeOffset;}\n newKey() {return this._keyGenerator.generateUniqueKey(this.now);}\n\n authenticate(token) {\n return this._metaTree.authenticate(token);\n }\n\n unauthenticate() {\n return this._metaTree.unauthenticate();\n }\n\n intercept(actionType, callbacks) {\n return this._dispatcher.intercept(actionType, callbacks);\n }\n\n // connections are {key: Query | Object | fn() -> (Query | Object)}\n connect(scope, connections) {\n if (!connections) {\n connections = scope;\n scope = undefined;\n }\n if (connections instanceof Handle) connections = {_: connections};\n return new Connector(scope, connections, this._tree, 'connect');\n }\n\n // target is Reference, Query, or connection Object like above\n peek(target, callback) {\n callback = wrapPromiseCallback(callback || _.identity);\n let cleanup, cancel;\n const promise = Promise.resolve().then(() => new Promise((resolve, reject) => {\n const scope = {};\n let callbackPromise;\n\n let connector = new Connector(scope, {result: target}, this._tree, 'peek');\n\n let unintercept = this.intercept('peek', {onFailure: op => {\n function match(descriptor) {\n if (!descriptor) return;\n if (descriptor instanceof Handle) return op.target.isEqual(descriptor);\n return _.some(descriptor, value => match(value));\n }\n if (match(connector.at)) {\n reject(op.error);\n cleanup();\n }\n }});\n\n let unobserve = this.observe(() => connector.ready, ready => {\n if (!ready) return;\n unobserve();\n unobserve = null;\n callbackPromise = promiseFinally(\n callback(scope.result), () => {angular.digest(); callbackPromise = null; cleanup();}\n ).then(result => {resolve(result);}, error => {reject(error);});\n });\n\n cleanup = () => {\n if (unobserve) {unobserve(); unobserve = null;}\n if (unintercept) {unintercept(); unintercept = null;}\n if (connector) {connector.destroy(); connector = null;}\n if (callbackPromise && callbackPromise.cancel) callbackPromise.cancel();\n };\n\n cancel = () => {\n reject(new Error('Canceled'));\n cleanup();\n };\n }));\n return promiseCancel(promise, cancel);\n }\n\n observe(subjectFn, callbackFn, options) {\n const usePreciseDefaults = _.isObject(options && options.precise);\n let numCallbacks = 0;\n let oldValueClone;\n if (usePreciseDefaults) {\n oldValueClone = options.deep ? _.cloneDeep(options.precise) : _.clone(options.precise);\n }\n\n const unwatch = this._vue.$watch(subjectFn, (newValue, oldValue) => {\n if (options && options.precise) {\n const newValueClone = usePreciseDefaults ?\n (options.deep ?\n _.defaultsDeep({}, newValue, options.precise) :\n _.defaults({}, newValue, options.precise)) :\n (options.deep ? _.cloneDeep(newValue) : _.clone(newValue));\n if (_.isEqual(newValueClone, oldValueClone)) return;\n oldValueClone = newValueClone;\n }\n numCallbacks++;\n if (!unwatch) {\n // Delay the immediate callback until we've had a chance to return the unwatch function.\n Promise.resolve().then(() => {\n if (numCallbacks > 1) return;\n callbackFn(newValue, oldValue);\n // No need to digest since under Angular we'll be using $q as Promise.\n });\n } else {\n callbackFn(newValue, oldValue);\n angular.digest();\n }\n }, {immediate: true, deep: options && options.deep});\n\n if (options && options.scope) options.scope.$on('$destroy', unwatch);\n return unwatch;\n }\n\n when(expression, options) {\n let cleanup, timeoutHandle;\n let promise = new Promise((resolve, reject) => {\n let unobserve = this.observe(expression, value => {\n if (!value) return;\n // Wait for computed properties to settle and double-check.\n Vue.nextTick(() => {\n value = expression();\n if (!value) return;\n resolve(value);\n cleanup();\n });\n });\n if (_.has(options, 'timeout')) {\n timeoutHandle = setTimeout(() => {\n timeoutHandle = null;\n reject(new Error(options.timeoutMessage || 'Timeout'));\n cleanup();\n }, options.timeout);\n }\n cleanup = () => {\n if (unobserve) {unobserve(); unobserve = null;}\n if (timeoutHandle) {clearTimeout(timeoutHandle); timeoutHandle = null;}\n reject(new Error('Canceled'));\n };\n });\n promise = promiseCancel(promiseFinally(promise, cleanup), cleanup);\n if (options && options.scope) options.scope.$on('$destroy', () => {promise.cancel();});\n return promise;\n }\n\n nextTick() {\n let cleanup;\n let promise = new Promise((resolve, reject) => {\n Vue.nextTick(resolve);\n cleanup = () => {\n reject(new Error('Canceled'));\n };\n });\n promise = promiseCancel(promise, cleanup);\n return promise;\n }\n\n throttleRemoteDataUpdates(delay) {\n this._tree.throttleRemoteDataUpdates(delay);\n }\n\n checkObjectsForRogueProperties() {\n this._tree.checkVueObject(this._tree.root, '/');\n }\n\n static get computedPropertyStats() {\n return stats;\n }\n\n static connectWorker(webWorker, config) {\n if (bridge) throw new Error('Worker already connected');\n if (_.isString(webWorker)) {\n const Worker = window.SharedWorker || window.Worker;\n if (!Worker) throw new Error('Browser does not implement Web Workers');\n webWorker = new Worker(webWorker);\n }\n bridge = new Bridge(webWorker);\n if (logging) bridge.enableLogging(logging);\n return bridge.init(webWorker, config).then(\n ({exposedFunctionNames, firebaseSdkVersion}) => {\n Object.defineProperty(Truss, 'FIREBASE_SDK_VERSION', {value: firebaseSdkVersion});\n for (const name of exposedFunctionNames) {\n Truss.worker[name] = bridge.bindExposedFunction(name);\n }\n }\n );\n }\n\n static get worker() {return workerFunctions;}\n static preExpose(functionName) {\n Truss.worker[functionName] = bridge.bindExposedFunction(functionName);\n }\n\n static bounceConnection() {return bridge.bounceConnection();}\n static suspend() {return bridge.suspend();}\n static debugPermissionDeniedErrors(simulatedTokenGenerator, maxSimulationDuration, callFilter) {\n return bridge.debugPermissionDeniedErrors(\n simulatedTokenGenerator, maxSimulationDuration, callFilter);\n }\n\n static debounceAngularDigest(wait) {\n angular.debounceDigest(wait);\n }\n\n static escapeKey(key) {return escapeKey(key);}\n static unescapeKey(escapedKey) {return unescapeKey(escapedKey);}\n\n static enableLogging(fn) {\n logging = fn;\n if (bridge) bridge.enableLogging(fn);\n }\n\n // Duplicate static constants on instance for convenience.\n get SERVER_TIMESTAMP() {return Truss.SERVER_TIMESTAMP;}\n get VERSION() {return Truss.VERSION;}\n get FIREBASE_SDK_VERSION() {return Truss.FIREBASE_SDK_VERSION;}\n}\n\nObject.defineProperties(Truss, {\n SERVER_TIMESTAMP: {value: SERVER_TIMESTAMP},\n VERSION: {value: VERSION},\n\n ComponentPlugin: {value: {\n install(Vue2, pluginOptions) {\n if (Vue !== Vue2) throw new Error('Multiple versions of Vue detected');\n if (!pluginOptions.truss) {\n throw new Error('Need to pass `truss` instance as an option to use the ComponentPlugin');\n }\n const prototypeExtension = {\n $truss: {value: pluginOptions.truss},\n $destroyed: {get() {return this._isBeingDestroyed || this._isDestroyed;}},\n $$touchThis: {value() {if (this.__ob__) this.__ob__.dep.depend();}}\n };\n const conflictingKeys = _(prototypeExtension).keys()\n .union(_.keys(BaseValue.prototype)).intersection(_.keys(Vue.prototype)).value();\n if (conflictingKeys.length) {\n throw new Error(\n 'Truss extension properties conflict with Vue properties: ' + conflictingKeys.join(', '));\n }\n Object.defineProperties(Vue.prototype, prototypeExtension);\n copyPrototype(BaseValue, Vue);\n Vue.mixin({\n destroyed() {\n if (_.has(this, '$$finalizers')) {\n // Some finalizers remove themselves from the array, so clone it before iterating.\n for (const fn of _.clone(this.$$finalizers)) fn();\n }\n }\n });\n }\n }}\n});\n\nangular.defineModule(Truss);\n\n"],"names":["let","const","this","id","prototypeAccessors","arguments","super","prototype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