{"version":3,"sources":["webpack:///./node_modules/core-js/internals/to-string-tag-support.js","webpack:///./node_modules/core-js/internals/queue.js","webpack:///./node_modules/core-js/internals/function-bind-context.js","webpack:///./node_modules/core-js/internals/function-bind.js","webpack:///./node_modules/core-js/internals/object-get-own-property-names-external.js","webpack:///./node_modules/core-js/internals/object-get-own-property-descriptor.js","webpack:///./node_modules/core-js/internals/length-of-array-like.js","webpack:///./node_modules/@vuex-orm/core/dist/vuex-orm.esm.js","webpack:///./node_modules/core-js/internals/array-species-constructor.js","webpack:///./node_modules/core-js/internals/ie8-dom-define.js","webpack:///./node_modules/core-js/internals/try-to-string.js","webpack:///./node_modules/vuex-persistedstate/dist/vuex-persistedstate.es.js","webpack:///./node_modules/core-js/internals/regexp-unsupported-ncg.js","webpack:///./node_modules/core-js/internals/string-repeat.js","webpack:///./node_modules/core-js/modules/es.string.split.js","webpack:///./node_modules/core-js/modules/es.object.set-prototype-of.js","webpack:///./node_modules/core-js/internals/regexp-exec-abstract.js","webpack:///./node_modules/core-js/modules/web.dom-collections.for-each.js","webpack:///./node_modules/core-js/internals/is-callable.js","webpack:///./node_modules/core-js/internals/array-for-each.js","webpack:///./node_modules/core-js/internals/an-instance.js","webpack:///./node_modules/core-js/internals/has-own-property.js","webpack:///./node_modules/core-js/internals/html.js","webpack:///./node_modules/core-js/internals/check-correctness-of-iteration.js","webpack:///./node_modules/core-js/internals/engine-is-ios.js","webpack:///./node_modules/core-js/internals/require-object-coercible.js","webpack:///./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","webpack:///./node_modules/core-js/internals/array-method-has-species-support.js","webpack:///./node_modules/core-js/internals/iterate.js","webpack:///./node_modules/core-js/internals/to-absolute-index.js","webpack:///./node_modules/core-js/internals/export.js","webpack:///./node_modules/core-js/internals/object-get-own-property-names.js","webpack:///./node_modules/core-js/modules/es.string.includes.js","webpack:///./node_modules/core-js/internals/set-species.js","webpack:///./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack:///./node_modules/@babel/runtime/helpers/esm/inherits.js","webpack:///./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack:///./node_modules/core-js/internals/iterator-close.js","webpack:///./node_modules/vue/dist/vue.runtime.esm.js","webpack:///./node_modules/core-js/internals/function-apply.js","webpack:///./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","webpack:///./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js","webpack:///./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack:///./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","webpack:///./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","webpack:///./node_modules/@babel/runtime/helpers/esm/createSuper.js","webpack:///./node_modules/core-js/internals/task.js","webpack:///./node_modules/core-js/internals/engine-v8-version.js","webpack:///./node_modules/vuex/dist/vuex.esm.js","webpack:///./node_modules/core-js/modules/es.object.get-prototype-of.js","webpack:///./node_modules/core-js/internals/engine-user-agent.js","webpack:///./node_modules/core-js/internals/get-iterator-method.js","webpack:///./node_modules/core-js/internals/object-define-properties.js","webpack:///./node_modules/core-js/modules/es.string.repeat.js","webpack:///./node_modules/core-js/internals/object-is-prototype-of.js","webpack:///./node_modules/core-js/internals/a-possible-prototype.js","webpack:///./node_modules/core-js/modules/es.string.iterator.js","webpack:///./node_modules/core-js/internals/iterators.js","webpack:///./node_modules/core-js/internals/this-number-value.js","webpack:///./node_modules/core-js/internals/function-bind-native.js","webpack:///./node_modules/core-js/internals/path.js","webpack:///./node_modules/core-js/internals/indexed-object.js","webpack:///./node_modules/core-js/internals/add-to-unscopables.js","webpack:///./node_modules/core-js/internals/host-report-errors.js","webpack:///./node_modules/core-js/internals/is-regexp.js","webpack:///./node_modules/core-js/internals/species-constructor.js","webpack:///./node_modules/core-js/internals/ordinary-to-primitive.js","webpack:///./node_modules/core-js/internals/native-symbol.js","webpack:///./node_modules/core-js/modules/es.reflect.construct.js","webpack:///./node_modules/core-js/internals/array-includes.js","webpack:///./node_modules/core-js/internals/array-slice-simple.js","webpack:///./node_modules/core-js/modules/es.array.filter.js","webpack:///./node_modules/core-js/internals/a-constructor.js","webpack:///./node_modules/core-js/internals/to-length.js","webpack:///./node_modules/@babel/runtime/helpers/esm/objectSpread2.js","webpack:///./node_modules/core-js/internals/shared.js","webpack:///./node_modules/core-js/internals/own-keys.js","webpack:///./node_modules/core-js/internals/to-string.js","webpack:///./node_modules/core-js/internals/whitespaces.js","webpack:///./node_modules/core-js/internals/string-trim.js","webpack:///./node_modules/core-js/internals/to-integer-or-infinity.js","webpack:///./node_modules/core-js/internals/a-callable.js","webpack:///./node_modules/core-js/internals/not-a-regexp.js","webpack:///./node_modules/core-js/internals/create-property-descriptor.js","webpack:///./node_modules/core-js/internals/function-name.js","webpack:///./node_modules/core-js/internals/engine-is-node.js","webpack:///./node_modules/core-js/internals/engine-is-browser.js","webpack:///./node_modules/core-js/internals/object-assign.js","webpack:///./node_modules/core-js/internals/string-multibyte.js","webpack:///./node_modules/core-js/internals/array-species-create.js","webpack:///./node_modules/core-js/internals/is-constructor.js","webpack:///./node_modules/core-js/internals/internal-state.js","webpack:///./node_modules/core-js/internals/redefine.js","webpack:///./node_modules/core-js/internals/inherit-if-required.js","webpack:///./node_modules/core-js/internals/object-get-own-property-symbols.js","webpack:///./node_modules/core-js/internals/define-well-known-symbol.js","webpack:///./node_modules/core-js/internals/enum-bug-keys.js","webpack:///./node_modules/core-js/internals/dom-token-list-prototype.js","webpack:///./node_modules/core-js/internals/to-object.js","webpack:///./node_modules/core-js/internals/object-create.js","webpack:///./node_modules/core-js/modules/es.array.find.js","webpack:///./node_modules/core-js/internals/define-iterator.js","webpack:///./node_modules/core-js/internals/native-weak-map.js","webpack:///./node_modules/core-js/internals/an-object.js","webpack:///./node_modules/core-js/internals/descriptors.js","webpack:///./node_modules/core-js/internals/create-property.js","webpack:///./node_modules/core-js/internals/is-object.js","webpack:///./node_modules/core-js/internals/inspect-source.js","webpack:///./node_modules/core-js/internals/advance-string-index.js","webpack:///./node_modules/vue-router/dist/vue-router.esm.js","webpack:///./node_modules/core-js/internals/uid.js","webpack:///./node_modules/core-js/internals/create-non-enumerable-property.js","webpack:///./node_modules/core-js/internals/regexp-exec.js","webpack:///./node_modules/core-js/internals/is-forced.js","webpack:///./node_modules/regenerator-runtime/runtime.js","webpack:///./node_modules/core-js/internals/get-iterator.js","webpack:///./node_modules/core-js/internals/object-define-property.js","webpack:///./node_modules/core-js/internals/create-iterator-constructor.js","webpack:///./node_modules/core-js/internals/regexp-sticky-helpers.js","webpack:///./node_modules/core-js/internals/to-property-key.js","webpack:///./node_modules/core-js/internals/engine-is-webos-webkit.js","webpack:///./node_modules/core-js/modules/es.symbol.js","webpack:///./node_modules/core-js/internals/array-method-is-strict.js","webpack:///./node_modules/core-js/modules/es.promise.finally.js","webpack:///./node_modules/core-js/modules/es.number.constructor.js","webpack:///./node_modules/core-js/internals/correct-is-regexp-logic.js","webpack:///./node_modules/core-js/internals/install-error-cause.js","webpack:///./node_modules/core-js/modules/es.regexp.exec.js","webpack:///./node_modules/core-js/internals/regexp-flags.js","webpack:///./node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack:///./node_modules/core-js/internals/iterators-core.js","webpack:///./node_modules/core-js/internals/v8-prototype-define-bug.js","webpack:///./node_modules/core-js/internals/object-to-string.js","webpack:///./node_modules/core-js/modules/es.function.name.js","webpack:///./node_modules/core-js/internals/microtask.js","webpack:///./node_modules/core-js/internals/well-known-symbol.js","webpack:///./node_modules/core-js/modules/es.object.keys.js","webpack:///./node_modules/core-js/internals/array-iteration.js","webpack:///./node_modules/core-js/internals/error-stack-installable.js","webpack:///./node_modules/@babel/runtime/helpers/esm/createClass.js","webpack:///./node_modules/core-js/internals/to-primitive.js","webpack:///./node_modules/core-js/internals/is-pure.js","webpack:///./node_modules/core-js/internals/function-call.js","webpack:///./node_modules/core-js/internals/classof-raw.js","webpack:///./node_modules/core-js/internals/shared-store.js","webpack:///./node_modules/core-js/internals/clear-error-stack.js","webpack:///(webpack)/buildin/global.js","webpack:///./node_modules/core-js/internals/object-keys-internal.js","webpack:///./node_modules/core-js/modules/es.array.includes.js","webpack:///./node_modules/core-js/internals/document-create-element.js","webpack:///./node_modules/core-js/modules/es.object.assign.js","webpack:///./node_modules/core-js/internals/promise-resolve.js","webpack:///./node_modules/core-js/internals/set-global.js","webpack:///./node_modules/core-js/internals/hidden-keys.js","webpack:///./node_modules/core-js/internals/fails.js","webpack:///./node_modules/core-js/internals/get-built-in.js","webpack:///./node_modules/core-js/internals/object-property-is-enumerable.js","webpack:///./node_modules/core-js/modules/es.symbol.iterator.js","webpack:///./node_modules/core-js/internals/object-set-prototype-of.js","webpack:///./node_modules/core-js/modules/es.object.to-string.js","webpack:///./node_modules/core-js/internals/set-to-string-tag.js","webpack:///./node_modules/core-js/internals/engine-is-ios-pebble.js","webpack:///./node_modules/@babel/runtime/helpers/esm/classCallCheck.js","webpack:///./node_modules/core-js/internals/validate-arguments-length.js","webpack:///./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js","webpack:///./node_modules/core-js/internals/is-symbol.js","webpack:///./node_modules/core-js/modules/es.error.cause.js","webpack:///./node_modules/core-js/internals/global.js","webpack:///./node_modules/core-js/modules/es.object.get-own-property-descriptors.js","webpack:///./node_modules/core-js/internals/get-method.js","webpack:///./node_modules/core-js/modules/web.dom-collections.iterator.js","webpack:///./node_modules/core-js/internals/object-keys.js","webpack:///./node_modules/core-js/modules/es.symbol.description.js","webpack:///./node_modules/core-js/internals/object-get-prototype-of.js","webpack:///./node_modules/core-js/internals/correct-prototype-getter.js","webpack:///./node_modules/core-js/modules/es.array.iterator.js","webpack:///./node_modules/core-js/internals/redefine-all.js","webpack:///./node_modules/core-js/internals/function-uncurry-this.js","webpack:///./node_modules/core-js/internals/normalize-string-argument.js","webpack:///./node_modules/core-js/modules/es.object.get-own-property-descriptor.js","webpack:///./node_modules/core-js/internals/well-known-symbol-wrapped.js","webpack:///./node_modules/core-js/internals/wrap-error-constructor-with-cause.js","webpack:///./node_modules/core-js/internals/perform.js","webpack:///./node_modules/core-js/modules/es.promise.js","webpack:///./node_modules/core-js/internals/copy-constructor-properties.js","webpack:///./node_modules/core-js/internals/is-array.js","webpack:///./node_modules/core-js/internals/is-array-iterator-method.js","webpack:///./node_modules/vue-notification/dist/index.js","webpack:///./node_modules/core-js/internals/new-promise-capability.js","webpack:///./node_modules/core-js/internals/array-slice.js","webpack:///./node_modules/core-js/internals/classof.js","webpack:///./node_modules/core-js/internals/shared-key.js","webpack:///./node_modules/core-js/modules/es.reflect.to-string-tag.js","webpack:///./node_modules/core-js/internals/to-indexed-object.js","webpack:///./node_modules/core-js/internals/regexp-unsupported-dot-all.js","webpack:///./node_modules/core-js/internals/dom-iterables.js","webpack:///./node_modules/core-js/internals/use-symbol-as-uid.js","webpack:///./node_modules/core-js/internals/native-promise-constructor.js"],"names":["wellKnownSymbol","TO_STRING_TAG","test","module","exports","String","Queue","this","head","tail","prototype","add","item","entry","next","get","uncurryThis","aCallable","NATIVE_BIND","bind","fn","that","undefined","apply","arguments","global","isObject","hasOwn","arraySlice","Function","concat","join","factories","construct","C","argsLength","args","list","i","F","Prototype","partArgs","boundFunction","length","classof","toIndexedObject","$getOwnPropertyNames","f","windowNames","window","Object","getOwnPropertyNames","getWindowNames","it","error","DESCRIPTORS","call","propertyIsEnumerableModule","createPropertyDescriptor","toPropertyKey","IE8_DOM_DEFINE","$getOwnPropertyDescriptor","getOwnPropertyDescriptor","O","P","toLength","obj","createCommonjsModule","_global","Math","self","__g","_core","core","version","__e","_isObject","_anObject","TypeError","_fails","exec","e","_descriptors","defineProperty","a","document","is","createElement","_domCreate","_ie8DomDefine","_toPrimitive","S","val","toString","valueOf","dP","Attributes","value","_objectDp","_propertyDesc","bitmap","enumerable","configurable","writable","_hide","object","key","hasOwnProperty","_has","id","px","random","_uid","_shared","SHARED","store","push","mode","copyright","_functionToString","_redefine","SRC","TO_STRING","TPL","split","inspectSource","safe","isFunction","_aFunction","_ctx","b","c","PROTOTYPE","$export","type","name","source","own","out","exp","IS_FORCED","IS_GLOBAL","G","IS_STATIC","IS_PROTO","IS_BIND","B","target","expProto","U","W","R","_export","_cof","slice","_iobject","propertyIsEnumerable","_defined","_toIobject","ceil","floor","_toInteger","isNaN","min","_toLength","max","min$1","_toAbsoluteIndex","index","_arrayIncludes","IS_INCLUDES","$this","el","fromIndex","_wks","Symbol","USE_SYMBOL","$exports","UNSCOPABLES","ArrayProto","Array","_addToUnscopables","$includes","includes","shared","_sharedKey","arrayIndexOf","IE_PROTO","_objectKeysInternal","names","result","_enumBugKeys","_objectKeys","keys","f$1","getOwnPropertySymbols","_objectGops","f$2","_objectPie","_toObject","$assign","assign","_objectAssign","A","K","forEach","k","T","aLen","getSymbols","isEnum","j","_objectToArray","isEntries","$entries","entries","$values","values","MATCH","_isRegexp","isRegExp","_stringContext","searchString","NAME","MATCH$1","_failsIsRegexp","KEY","re","STARTS_WITH","$startsWith","startsWith","search","Container","register","database","install","options","namespace","start","extendStatics","d","setPrototypeOf","__proto__","p","__extends","__","constructor","create","__assign","t","s","n","__awaiter","thisArg","_arguments","generator","Promise","resolve","reject","fulfilled","step","rejected","done","then","__generator","body","y","g","_","label","sent","trys","ops","verb","iterator","v","op","pop","__spreadArrays","il","r","jl","isEmpty","data","isArray","forOwn","iteratee","mapValues","newObject","reduce","records","pickBy","predicate","orderBy","collection","directions","map","criteria","baseSortBy","other","compareMultiple","groupBy","record","array","comparer","sort","orders","objCriteria","othCriteria","ordersLength","compareAscending","order","Utils","Attribute","model","Type","_super","mutator","_this","isNullable","nullable","mutate","mutators","Attr","make","_parent","localValue","String$1","fix","Number","parseFloat","Boolean","int","parseInt","Uid","count","prefix","reset","Uid$1","Relation","getRelation","query","constraints","relation","newQuery","constraint","getKeys","models","mapSingleRelations","mapManyRelations","isOneRelation","isManyRelation","makeOneRelation","relatedModel","getModelFromRecord","makeManyRelation","filter","HasOne","related","foreignKey","localKey","define","schema","one","attach","getIndexIdFromRecord","entity","_key","load","addEagerConstraints","match","whereFk","relations","dictionary","buildDictionary","BelongsTo","parent","ownerKey","HasMany","many","HasManyBy","_data","parentId","getIdFromRecord","relatedQuery","addConstraintForHasManyBy","getRelatedRecords","where","items","HasManyThrough","through","firstKey","secondKey","secondLocalKey","_record","throughQuery","addEagerConstraintForThrough","throughs","addEagerConstraintForRelated","relateds","mapThroughRelations","BelongsToMany","pivot","foreignPivotKey","relatedPivotKey","parentKey","relatedKey","pivotQuery","addEagerConstraintForPivot","pivots","mapPivotRelations","createPivots","primaryKey","createPivotRecord","_a","_b","relatedId","pivotKey","JSON","stringify","pivotRecord","$id","MorphTo","union","_value","parentValue","types","getTypes","MorphOne","relatedRecord","addEagerConstraintForMorphOne","MorphMany","relatedItems","relatedItem","addEagerConstraintForMorphMany","MorphToMany","relatedIds","MorphedByMany","Serializer","serialize","$fields","serializeValue","Model","serializeItem","serializeCollection","$toJson","$fill","fields","attr","string","number","boolean","uid","increment","hasOne","belongsTo","hasMany","hasManyBy","hasManyThrough","belongsToMany","morphTo","morphOne","morphMany","morphToMany","morphedByMany","method","getters","dispatch","payload","commit","callback","getFields","cachedFields","all","find","findIn","idList","new","insert","update","insertOrUpdate","delete","deleteAll","isPrimaryKey","getIdFromValue","ids","$self","getTypeModel","typeKey","pivotFields","field","hasPivotFields","hasTypes","getTypeKeyValueFromModel","modelToCheck","findRelationInSubTypes","relationName","fieldName","hydrate","$primaryKey","$store","$namespace","$getters","$dispatch","$all","$find","$findIn","$query","$create","$insert","$update","$insertOrUpdate","$save","$delete","every","$deleteAll","state","Getters","_getters","_rootState","rootGetters","$connection","$name","destroy","context","root","Actions","_defineProperties","props","descriptor","_createClass","Constructor","protoProps","staticProps","_defineProperty","_objectSpread","ownKeys","sym","_inheritsLoose","subClass","superClass","isImmutable","_map","denormalizeImmutable","input","unvisit","stringKey","has","set","getDefaultGetId","idAttribute","EntitySchema","definition","Error","_options","_options$idAttribute","_options$mergeStrateg","mergeStrategy","entityA","entityB","_options$processStrat","processStrategy","_getId","_idAttribute","_mergeStrategy","_processStrategy","_proto","entitySchema","_objectSpread2","getId","merge","normalize","visit","addEntity","visitedEntities","some","processedEntity","denormalize","_this2","PolymorphicSchema","schemaAttribute","_schemaAttribute","getSchemaAttribute","isSingleSchema","inferSchema","normalizeValue","normalizedValue","denormalizeValue","schemaKey","UnionSchema","_PolymorphicSchema","ValuesSchema","output","_objectSpread3","entityOrId","validateSchema","getValues","ArraySchema","_normalize","localSchema","_denormalize","ObjectSchema","_len","_len2","_key2","addEntities","entities","existingEntity","Entity","Union","Values","normalize$1","Normalizer","process","schemas","PivotCreator","getModel","Attacher","Processor","WhereFilter","wheres","check","whereTypes","comparator","getComparator","results","and","or","indexOf","Query","rootState","executeWhereClosure","matchingRecords","rec","closure","OrderByFilter","direction","LimitFilter","offsetNumber","limitNumber","Filter","limit","Loader","with","parseWithRelations","withAll","withAllRecursive","depth","setEagerLoad","shift","addNestedWiths","children","nestedQuery","eagerLoadRelations","name_1","candidateRelation","Rollcaller","operator","setHas","hasNot","whereHas","whereHasNot","have","applyConstraints","addHasWhereConstraints","addHasConstraints","comparators","getComparators","whereIdIn","compare","getCountComparator","getRelationshipCount","x","appliedOnBase","idFilter","cancelIdFilter","joinedIdFilter","pow","baseModel","getBaseModel","getModels","on","lastHookId","hooks","off","findIndex","h","splice","indexId","select","collect","first","last","isIdfilterable","setIdFilter","orWhere","whereId","setJoinedIdFilter","Set","offset","finalizeIdFilter","getIdsToLookup","from","executeRetrieveHook","filterWhere","filterOrderBy","filterLimit","numbers","sum","filterData","persist","createRecords","emptyState","insertRecords","recordsToBeInserted","beforeHooks","buildHooks","_loop_1","this_1","hook","afterHooks","condition","updateByCondition","updateById","updateRecords","hydrateRecordsByMerging","commitUpdate","instances","processUpdate","instance","updateIndexes","updated","_loop_2","this_2","insertOrUpdateRecords","toBeInserted","toBeUpdated","normalizedData","collections","methodForEntity","getPersistMethod","persistRecords","fallback","deleteByCondition","deleteById","deleted","executeBeforeDeleteHook","executeAfterDeleteHook","forceModel","newModel","typeValue","recordInStore","modelForRecordInStore","getGlobalHookAsArray","localHook","executeLocalBeforeDeleteHook","executeGlobalBeforeDeleteHook","executeGlobalBeforeMutationHooks","executeLocalAfterDeleteHook","executeGlobalAfterDeleteHook","executeGlobalAfterMutationHooks","RootGetters","destroy$1","deleteAll$1","RootActions","OptionsBuilder","createPersistOptions","destroy$2","deleteAll$2","RootMutations","$mutate","use","plugin","components","ProcessStrategy","_parentValue","generateIds","generateIndexId","Schema","schema$1","Builder","modules","tree","namespaced","actions","mutations","createModules","createState","_state","_rootGetters","modelState","moduleState","Database","registerModules","createSchema","checkModelTypeMappingCapability","base","baseEntity","baseModels","registerModule","isConstructor","SPECIES","originalArray","fails","argument","$$typeof","for","clone","isMergeableObject","o","u","arrayMerge","cloneUnlessOtherwiseSpecified","customMerge","getItem","parse","storage","localStorage","setItem","removeItem","fetchBeforeUse","replaceState","arrayMerger","rehydrated","subscriber","subscribe","setState","reducer","paths","$RegExp","RegExp","groups","replace","toIntegerOrInfinity","requireObjectCoercible","RangeError","str","Infinity","fixRegExpWellKnownSymbolLogic","anObject","speciesConstructor","advanceStringIndex","getMethod","callRegExpExec","regexpExec","stickyHelpers","UNSUPPORTED_Y","MAX_UINT32","$push","stringSlice","SPLIT_WORKS_WITH_OVERWRITTEN_EXEC","originalExec","SPLIT","nativeSplit","maybeCallNative","internalSplit","separator","lim","lastIndex","lastLength","flags","ignoreCase","multiline","unicode","sticky","lastLastIndex","separatorCopy","splitter","rx","res","unicodeMatching","q","z","$","stat","isCallable","DOMIterables","DOMTokenListPrototype","createNonEnumerableProperty","handlePrototype","CollectionPrototype","COLLECTION_NAME","$forEach","arrayMethodIsStrict","STRICT_METHOD","callbackfn","isPrototypeOf","toObject","getBuiltIn","ITERATOR","SAFE_CLOSING","called","iteratorWithReturn","SKIP_CLOSING","ITERATION_SUPPORT","userAgent","asyncGeneratorStep","gen","_next","_throw","arg","info","_asyncToGenerator","err","V8_VERSION","METHOD_NAME","foo","tryToString","isArrayIteratorMethod","lengthOfArrayLike","getIterator","getIteratorMethod","iteratorClose","Result","stopped","ResultPrototype","iterable","unboundFunction","iterFn","AS_ENTRIES","IS_ITERATOR","INTERRUPTED","stop","callFn","integer","redefine","setGlobal","copyConstructorProperties","isForced","FORCED","targetProperty","sourceProperty","TARGET","GLOBAL","STATIC","noTargetGet","forced","sham","internalObjectKeys","enumBugKeys","hiddenKeys","notARegExp","correctIsRegExpLogic","stringIndexOf","proto","definePropertyModule","CONSTRUCTOR_NAME","_setPrototypeOf","_inherits","normalizeComponent","scriptExports","render","staticRenderFns","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","_compiled","functional","_scopeId","$vnode","ssrContext","__VUE_SSR_CONTEXT__","_registeredComponents","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","existing","beforeCreate","kind","innerResult","innerError","emptyObject","freeze","isUndef","isDef","isTrue","isFalse","isPrimitive","_toString","isPlainObject","isValidArrayIndex","isFinite","isPromise","catch","toNumber","makeMap","expectsLowerCase","toLowerCase","isReservedAttribute","remove","arr","cached","cache","hit","camelizeRE","camelize","toUpperCase","capitalize","charAt","hyphenateRE","hyphenate","polyfillBind","ctx","boundFn","l","_length","nativeBind","toArray","ret","extend","to","_from","noop","no","identity","looseEqual","isObjectA","isObjectB","isArrayA","isArrayB","Date","getTime","keysA","keysB","looseIndexOf","once","SSR_ATTR","ASSET_TYPES","LIFECYCLE_HOOKS","config","optionMergeStrategies","silent","productionTip","devtools","performance","errorHandler","warnHandler","ignoredElements","keyCodes","isReservedTag","isReservedAttr","isUnknownElement","getTagNamespace","parsePlatformTagName","mustUseProp","async","_lifecycleHooks","unicodeRegExp","isReserved","charCodeAt","def","bailRE","parsePath","path","segments","_isServer","hasProto","inBrowser","inWeex","WXEnvironment","platform","weexPlatform","UA","navigator","isIE","isIE9","isEdge","isIOS","isFF","nativeWatch","watch","supportsPassive","opts","addEventListener","isServerRendering","env","VUE_ENV","__VUE_DEVTOOLS_GLOBAL_HOOK__","isNative","Ctor","_Set","hasSymbol","Reflect","clear","warn","Dep","subs","addSub","sub","removeSub","depend","addDep","notify","targetStack","pushTarget","popTarget","VNode","tag","text","elm","componentOptions","asyncFactory","ns","fnContext","fnOptions","fnScopeId","componentInstance","raw","isStatic","isRootInsert","isComment","isCloned","isOnce","asyncMeta","isAsyncPlaceholder","prototypeAccessors","child","defineProperties","createEmptyVNode","node","createTextVNode","cloneVNode","vnode","cloned","arrayProto","arrayMethods","methodsToPatch","original","len","inserted","ob","__ob__","observeArray","dep","arrayKeys","shouldObserve","toggleObserving","Observer","vmCount","protoAugment","copyAugment","walk","src","observe","asRootData","isExtensible","_isVue","defineReactive$$1","customSetter","shallow","property","getter","setter","childOb","dependArray","newVal","del","strats","mergeData","toVal","fromVal","mergeDataOrFn","parentVal","childVal","vm","instanceData","defaultData","mergeHook","dedupeHooks","mergeAssets","key$1","methods","inject","computed","provide","defaultStrat","normalizeProps","normalizeInject","normalized","normalizeDirectives","dirs","directives","def$$1","mergeOptions","_base","extends","mixins","mergeField","strat","resolveAsset","warnMissing","assets","camelizedId","PascalCaseId","validateProp","propOptions","propsData","prop","absent","booleanIndex","getTypeIndex","stringIndex","getPropDefaultValue","prevShouldObserve","default","_props","getType","functionTypeCheckRE","isSameType","expectedTypes","handleError","cur","$parent","errorCaptured","capture","globalHandleError","invokeWithErrorHandling","handler","_handled","logError","console","timerFunc","isUsingMicroTask","callbacks","pending","flushCallbacks","copies","setTimeout","MutationObserver","setImmediate","counter","observer","textNode","createTextNode","characterData","nextTick","cb","_resolve","seenObjects","traverse","_traverse","seen","isA","isFrozen","depId","normalizeEvent","passive","once$$1","createFnInvoker","fns","invoker","arguments$1","updateListeners","oldOn","remove$$1","createOnceHandler","old","event","params","mergeVNodeHook","hookKey","oldHook","wrappedHook","merged","extractPropsFromVNodeData","attrs","altKey","checkProp","hash","preserve","simpleNormalizeChildren","normalizeChildren","normalizeArrayChildren","isTextNode","nestedIndex","_isVList","initProvide","_provided","initInjections","resolveInject","provideKey","provideDefault","resolveSlots","slots","slot","name$1","isWhitespace","normalizeScopedSlots","normalSlots","prevSlots","hasNormalSlots","isStable","$stable","$key","_normalized","$hasNormal","normalizeScopedSlot","key$2","proxyNormalSlot","proxy","renderList","renderSlot","fallbackRender","bindObject","nodes","scopedSlotFn","$scopedSlots","$slots","$createElement","resolveFilter","isKeyNotMatch","expect","actual","checkKeyCodes","eventKeyCode","builtInKeyCode","eventKeyName","builtInKeyName","mappedKeyCode","bindObjectProps","asProp","isSync","loop","domProps","camelizedKey","hyphenatedKey","$event","renderStatic","isInFor","_staticTrees","_renderProxy","markStatic","markOnce","markStaticNode","bindObjectListeners","ours","resolveScopedSlots","hasDynamicKeys","contentHashKey","bindDynamicKeys","baseObj","prependModifier","symbol","installRenderHelpers","_o","_n","_s","_l","_t","_q","_i","_m","_f","_k","_v","_e","_u","_g","_d","_p","FunctionalRenderContext","contextVm","this$1","_original","isCompiled","needNormalization","listeners","injections","scopedSlots","_c","createFunctionalComponent","mergeProps","renderContext","cloneAndMarkFunctionalResult","vnodes","componentVNodeHooks","init","hydrating","_isDestroyed","keepAlive","mountedNode","prepatch","createComponentInstanceForVnode","activeInstance","$mount","oldVnode","updateChildComponent","_isMounted","callHook","queueActivatedComponent","activateChildComponent","deactivateChildComponent","$destroy","hooksToMerge","createComponent","baseCtor","cid","resolveAsyncComponent","createAsyncPlaceholder","resolveConstructorOptions","transformModel","nativeOn","abstract","installComponentHooks","_isComponent","_parentVnode","inlineTemplate","toMerge","_merged","mergeHook$1","f1","f2","SIMPLE_NORMALIZE","ALWAYS_NORMALIZE","normalizationType","alwaysNormalize","_createElement","pre","applyNS","registerDeepBindings","force","style","class","initRender","_vnode","parentVnode","_renderChildren","parentData","_parentListeners","currentRenderingInstance","renderMixin","Vue","$nextTick","_render","ref","ensureCtor","comp","__esModule","toStringTag","factory","errorComp","resolved","owner","owners","loading","loadingComp","sync","timerLoading","timerTimeout","$on","forceRender","renderCompleted","$forceUpdate","clearTimeout","reason","component","delay","timeout","getFirstComponentChild","initEvents","_events","_hasHookEvent","updateComponentListeners","remove$1","$off","_target","onceHandler","oldListeners","eventsMixin","hookRE","$once","i$1","cbs","$emit","setActiveInstance","prevActiveInstance","initLifecycle","$children","$refs","_watcher","_inactive","_directInactive","_isBeingDestroyed","lifecycleMixin","_update","prevEl","$el","prevVnode","restoreActiveInstance","__patch__","__vue__","teardown","_watchers","mountComponent","updateComponent","Watcher","before","renderChildren","newScopedSlots","oldScopedSlots","hasDynamicScopedSlot","needsForceUpdate","$attrs","$listeners","propKeys","_propKeys","isInInactiveTree","direct","handlers","queue","activatedChildren","waiting","flushing","resetSchedulerState","currentFlushTimestamp","getNow","now","createEvent","timeStamp","flushSchedulerQueue","watcher","run","activatedQueue","updatedQueue","callActivatedHooks","callUpdatedHooks","emit","queueWatcher","uid$2","expOrFn","isRenderWatcher","deep","user","lazy","active","dirty","deps","newDeps","depIds","newDepIds","expression","cleanupDeps","tmp","oldValue","evaluate","sharedPropertyDefinition","sourceKey","initState","initProps","initMethods","initData","initComputed","initWatch","propsOptions","isRoot","getData","computedWatcherOptions","watchers","_computedWatchers","isSSR","userDef","defineComputed","shouldCache","createComputedGetter","createGetterInvoker","createWatcher","$watch","stateMixin","dataDef","propsDef","$set","immediate","uid$3","initMixin","_init","initInternalComponent","_self","vnodeComponentOptions","_componentTag","super","superOptions","cachedSuperOptions","modifiedOptions","resolveModifiedOptions","extendOptions","modified","latest","sealed","sealedOptions","initUse","installedPlugins","_installedPlugins","unshift","initMixin$1","mixin","initExtend","Super","SuperId","cachedCtors","_Ctor","Sub","initProps$1","initComputed$1","Comp","initAssetRegisters","getComponentName","matches","pattern","pruneCache","keepAliveInstance","pruneCacheEntry","current","patternTypes","KeepAlive","include","exclude","cacheVNode","vnodeToCache","keyToCache","created","destroyed","mounted","ref$1","builtInComponents","initGlobalAPI","configDef","util","defineReactive","observable","acceptValue","isEnumeratedAttr","isValidContentEditableValue","convertEnumeratedValue","isFalsyAttrValue","isBooleanAttr","xlinkNS","isXlink","getXlinkProp","genClassForVnode","parentNode","childNode","mergeClassData","renderClass","staticClass","dynamicClass","stringifyClass","stringifyArray","stringifyObject","stringified","namespaceMap","svg","math","isHTMLTag","isSVG","unknownElementCache","HTMLUnknownElement","HTMLElement","isTextInputType","selected","querySelector","createElement$1","tagName","multiple","setAttribute","createElementNS","createComment","insertBefore","newNode","referenceNode","removeChild","appendChild","nextSibling","setTextContent","textContent","setStyleScope","nodeOps","registerRef","isRemoval","refs","refInFor","emptyNode","sameVnode","sameInputType","typeA","typeB","createKeyToOldIdx","beginIdx","endIdx","createPatchFunction","backend","emptyNodeAt","createRmCb","childElm","removeNode","createElm","insertedVnodeQueue","parentElm","refElm","nested","ownerArray","setScope","createChildren","invokeCreateHooks","isReactivated","initComponent","reactivateComponent","pendingInsert","isPatchable","innerNode","transition","activate","ref$$1","ancestor","addVnodes","startIdx","invokeDestroyHook","removeVnodes","ch","removeAndInvokeRemoveHook","rm","updateChildren","oldCh","newCh","removeOnly","oldKeyToIdx","idxInOld","vnodeToMove","oldStartIdx","newStartIdx","oldEndIdx","oldStartVnode","oldEndVnode","newEndIdx","newStartVnode","newEndVnode","canMove","patchVnode","findIdxInOld","end","postpatch","invokeInsertHook","initial","isRenderedModule","inVPre","hasChildNodes","innerHTML","childrenMatch","firstChild","fullInvoke","isInitialPatch","isRealElement","nodeType","hasAttribute","removeAttribute","oldElm","_leaveCb","patchable","i$2","updateDirectives","oldDir","dir","isCreate","isDestroy","oldDirs","normalizeDirectives$1","newDirs","dirsWithInsert","dirsWithPostpatch","oldArg","callHook$1","componentUpdated","callInsert","emptyModifiers","modifiers","getRawDirName","rawName","baseModules","updateAttrs","inheritAttrs","oldAttrs","setAttr","removeAttributeNS","isInPre","baseSetAttr","setAttributeNS","__ieph","blocker","stopImmediatePropagation","removeEventListener","updateClass","oldData","cls","transitionClass","_transitionClasses","_prevClass","target$1","klass","RANGE_TOKEN","CHECKBOX_RADIO_TOKEN","normalizeEvents","change","createOnceHandler$1","remove$2","useMicrotaskFix","add$1","attachedTimestamp","_wrapper","currentTarget","ownerDocument","updateDOMListeners","svgContainer","events","updateDOMProps","oldProps","childNodes","strCur","shouldUpdateValue","checkVal","composing","isNotInFocusAndDirty","isDirtyWithModifiers","notInFocus","activeElement","_vModifiers","trim","parseStyleText","cssText","listDelimiter","propertyDelimiter","normalizeStyleData","normalizeStyleBinding","staticStyle","bindingStyle","getStyle","checkChild","styleData","emptyStyle","cssVarRE","importantRE","setProp","setProperty","normalizedName","vendorNames","capName","updateStyle","oldStaticStyle","oldStyleBinding","normalizedStyle","oldStyle","newStyle","whitespaceRE","addClass","classList","getAttribute","removeClass","tar","resolveTransition","css","autoCssTransition","enterClass","enterToClass","enterActiveClass","leaveClass","leaveToClass","leaveActiveClass","hasTransition","TRANSITION","ANIMATION","transitionProp","transitionEndEvent","animationProp","animationEndEvent","ontransitionend","onwebkittransitionend","onanimationend","onwebkitanimationend","raf","requestAnimationFrame","nextFrame","addTransitionClass","transitionClasses","removeTransitionClass","whenTransitionEnds","expectedType","getTransitionInfo","propCount","ended","onEnd","transformRE","styles","getComputedStyle","transitionDelays","transitionDurations","transitionTimeout","getTimeout","animationDelays","animationDurations","animationTimeout","hasTransform","delays","durations","toMs","enter","toggleDisplay","cancelled","_enterCb","appearClass","appearToClass","appearActiveClass","beforeEnter","afterEnter","enterCancelled","beforeAppear","appear","afterAppear","appearCancelled","duration","transitionNode","isAppear","startClass","activeClass","toClass","beforeEnterHook","enterHook","afterEnterHook","enterCancelledHook","explicitEnterDuration","expectsCSS","userWantsControl","getHookArgumentsLength","show","pendingNode","_pending","isValidDuration","leave","beforeLeave","afterLeave","leaveCancelled","delayLeave","explicitLeaveDuration","performLeave","invokerFns","_enter","platformModules","patch","vmodel","trigger","directive","binding","_vOptions","setSelected","getValue","onCompositionStart","onCompositionEnd","prevOptions","curOptions","needReset","hasNoMatchingOption","actuallySetSelected","isMultiple","option","selectedIndex","initEvent","dispatchEvent","locateNode","transition$$1","originalDisplay","__vOriginalDisplay","display","unbind","platformDirectives","transitionProps","getRealChild","compOptions","extractTransitionData","placeholder","rawChild","hasParentTransition","isSameChild","oldChild","isNotTextNode","isVShowDirective","Transition","_leaving","oldRawChild","delayedLeave","moveClass","TransitionGroup","beforeMount","kept","prevChildren","rawChildren","transitionData","removed","c$1","pos","getBoundingClientRect","hasMove","callPendingCbs","recordPosition","applyTranslation","_reflow","offsetHeight","moved","transform","WebkitTransform","transitionDuration","_moveCb","propertyName","_hasMove","cloneNode","newPos","oldPos","dx","left","dy","top","platformComponents","FunctionPrototype","_getPrototypeOf","getPrototypeOf","_isNativeReflectConstruct","Proxy","_typeof","_assertThisInitialized","ReferenceError","_possibleConstructorReturn","assertThisInitialized","_createSuper","Derived","hasNativeReflectConstruct","isNativeReflectConstruct","NewTarget","possibleConstructorReturn","location","defer","channel","port","html","validateArgumentsLength","IS_IOS","IS_NODE","clearImmediate","Dispatch","MessageChannel","ONREADYSTATECHANGE","runner","listener","post","postMessage","protocol","host","port2","port1","onmessage","importScripts","Deno","versions","v8","applyMixin","vuexInit","devtoolHook","devtoolPlugin","_devtoolHook","targetState","mutation","prepend","subscribeAction","action","deepCopy","copy","forEachValue","partial","Module","rawModule","runtime","_children","_rawModule","rawState","addChild","getChild","hasChild","forEachChild","forEachGetter","forEachAction","forEachMutation","ModuleCollection","rawRootModule","targetModule","newModule","getNamespace","rawChildModule","unregister","isRegistered","Store","plugins","strict","_committing","_actions","_actionSubscribers","_mutations","_wrappedGetters","_modules","_modulesNamespaceMap","_subscribers","_watcherVM","_makeLocalGettersCache","installModule","resetStoreVM","useDevtools","prototypeAccessors$1","genericSubscribe","resetStore","hot","oldVm","_vm","wrappedGetters","$$state","enableStrictMode","_withCommit","parentState","getNestedState","moduleName","local","makeLocalContext","namespacedType","registerMutation","registerAction","registerGetter","noNamespace","_type","_payload","unifyObjectStyle","makeLocalGetters","gettersProxy","splitPos","localType","rawGetter","_Vue","after","preserveState","unregisterModule","hasModule","hotUpdate","newOptions","committing","mapState","normalizeNamespace","states","normalizeMap","getModuleByNamespace","vuex","mapMutations","mapGetters","mapActions","createNamespacedHelpers","isValidMap","helper","createLogger","collapsed","stateBefore","stateAfter","transformer","mutationTransformer","mut","actionFilter","actionTransformer","act","logMutations","logActions","logger","prevState","nextState","formattedTime","getFormattedTime","formattedMutation","message","startMessage","log","endMessage","formattedAction","groupCollapsed","group","groupEnd","time","pad","getHours","getMinutes","getSeconds","getMilliseconds","repeat","times","num","maxLength","nativeGetPrototypeOf","CORRECT_PROTOTYPE_GETTER","FAILS_ON_PRIMITIVES","Iterators","V8_PROTOTYPE_DEFINE_BUG","objectKeys","Properties","InternalStateModule","defineIterator","STRING_ITERATOR","setInternalState","getInternalState","getterFor","iterated","point","ArrayPrototype","aConstructor","defaultConstructor","pref","nativeConstruct","ObjectPrototype","NEW_TARGET_BUG","ARGS_BUG","Target","newTarget","$args","toAbsoluteIndex","createMethod","createProperty","fin","$filter","arrayMethodHasSpeciesSupport","HAS_SPECIES_SUPPORT","enumerableOnly","symbols","getOwnPropertyDescriptors","IS_PURE","license","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","whitespaces","whitespace","ltrim","rtrim","TYPE","getDescriptor","EXISTS","PROPER","CONFIGURABLE","IndexedObject","alphabet","chr","argumentsLength","CONVERT_TO_STRING","second","position","size","codeAt","arraySpeciesConstructor","empty","constructorRegExp","INCORRECT_TO_STRING","isConstructorModern","isConstructorLegacy","NATIVE_WEAK_MAP","sharedKey","OBJECT_ALREADY_INITIALIZED","WeakMap","enforce","wmget","wmhas","wmset","metadata","facade","STATE","CONFIGURABLE_FUNCTION_NAME","enforceInternalState","TEMPLATE","unsafe","simple","dummy","Wrapper","NewTargetPrototype","wrappedWellKnownSymbolModule","documentCreateElement","activeXDocument","definePropertiesModule","GT","LT","SCRIPT","EmptyConstructor","scriptTag","content","NullProtoObjectViaActiveX","write","close","temp","parentWindow","NullProtoObjectViaIFrame","iframeDocument","iframe","JS","contentWindow","open","NullProtoObject","ActiveXObject","domain","addToUnscopables","FIND","SKIPS_HOLES","FunctionName","createIteratorConstructor","setToStringTag","IteratorsCore","PROPER_FUNCTION_NAME","IteratorPrototype","BUGGY_SAFARI_ITERATORS","KEYS","VALUES","ENTRIES","returnThis","Iterable","IteratorConstructor","DEFAULT","IS_SET","CurrentIteratorPrototype","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","propertyKey","functionToString","encodeReserveRE","encodeReserveReplacer","commaRE","encode","encodeURIComponent","decode","decodeURIComponent","resolveQuery","extraQuery","_parseQuery","parsedQuery","parseQuery","castQueryParamValue","param","parts","stringifyQuery","val2","trailingSlashRE","createRoute","redirectedFrom","router","route","meta","fullPath","getFullPath","matched","formatMatch","START","_stringifyQuery","isSameRoute","onlyPath","isObjectEqual","aKeys","bKeys","aVal","bKey","bVal","isIncludedRoute","queryIncludes","handleRouteEntered","enteredCbs","View","routerView","$route","_routerViewCache","inactive","_routerRoot","vnodeData","routerViewDepth","cachedData","cachedComponent","configProps","fillPropsinData","registerRouteInstance","propsToPass","resolveProps","resolvePath","relative","append","firstChar","stack","segment","hashIndex","queryIndex","cleanPath","isarray","pathToRegexp_1","pathToRegexp","parse_1","compile_1","compile","tokensToFunction_1","tokensToFunction","tokensToRegExp_1","tokensToRegExp","PATH_REGEXP","tokens","defaultDelimiter","delimiter","m","escaped","modifier","asterisk","optional","escapeGroup","escapeString","substr","encodeURIComponentPretty","encodeURI","encodeAsterisk","pretty","token","attachKeys","sensitive","regexpToRegexp","arrayToRegexp","regexp","stringToRegexp","endsWithDelimiter","regexpCompileCache","fillParams","routeMsg","filler","pathMatch","normalizeLocation","params$1","rawPath","parsedPath","basePath","toTypes","eventTypes","Link","required","custom","exact","exactPath","exactActiveClass","ariaCurrentValue","$router","href","classes","globalActiveClass","linkActiveClass","globalExactActiveClass","linkExactActiveClass","activeClassFallback","exactActiveClassFallback","compareTarget","guardEvent","click","scopedSlot","navigate","isActive","isExactActive","findAnchor","aData","handler$1","event$1","aAttrs","metaKey","ctrlKey","shiftKey","defaultPrevented","button","preventDefault","installed","registerInstance","callVal","_router","history","_route","beforeRouteEnter","beforeRouteLeave","beforeRouteUpdate","createRouteMap","routes","oldPathList","oldPathMap","oldNameMap","parentRoute","pathList","pathMap","nameMap","addRouteRecord","matchAs","pathToRegexpOptions","normalizedPath","normalizePath","caseSensitive","regex","compileRouteRegex","alias","redirect","childMatchAs","aliases","aliasRoute","createMatcher","addRoutes","addRoute","parentOrRoute","getRoutes","currentRoute","_createRoute","paramNames","record$1","matchRoute","originalRedirect","resolveRecordPath","resolvedPath","aliasedPath","aliasedMatch","aliasedRecord","Time","genStateKey","toFixed","getStateKey","setStateKey","positionStore","setupScroll","scrollRestoration","protocolAndPath","absolutePath","stateCopy","handlePopState","handleScroll","isPop","app","behavior","scrollBehavior","getScrollPosition","shouldScroll","scrollToPosition","saveScrollPosition","pageXOffset","pageYOffset","getElementPosition","docEl","documentElement","docRect","elRect","isValidPosition","isNumber","normalizePosition","normalizeOffset","hashStartsWithNumberRE","selector","getElementById","scrollTo","supportsPushState","ua","pushState","url","runQueue","NavigationFailureType","redirected","aborted","duplicated","createNavigationRedirectedError","createRouterError","stringifyRoute","createNavigationDuplicatedError","createNavigationCancelledError","createNavigationAbortedError","_isRouter","propertiesToLog","isError","isNavigationFailure","errorType","resolveAsyncComponents","hasAsync","flatMapComponents","resolvedDef","isESModule","msg","flatten","History","normalizeBase","ready","readyCbs","readyErrorCbs","errorCbs","baseEl","resolveQueue","activated","deactivated","extractGuards","reverse","guards","guard","extractGuard","extractLeaveGuards","bindGuard","extractUpdateHooks","extractEnterGuards","bindEnterGuard","listen","onReady","errorCb","onError","transitionTo","onComplete","onAbort","prev","confirmTransition","updateRoute","ensureURL","abort","lastRouteIndex","lastCurrentIndex","enterGuards","resolveHooks","setupListeners","cleanupListener","HTML5History","_startLocation","getLocation","expectScroll","supportsScroll","handleRoutingEvent","go","fromRoute","getCurrentLocation","pathname","pathLowerCase","baseLowerCase","HashHistory","checkFallback","ensureSlash","getHash","replaceHash","eventType","pushHash","getUrl","AbstractHistory","targetIndex","VueRouter","apps","matcher","registerHook","createHref","handleInitialScroll","routeOrError","beforeEach","beforeResolve","afterEach","back","forward","getMatchedComponents","normalizedTo","START_LOCATION","postfix","regexpFlags","UNSUPPORTED_DOT_ALL","UNSUPPORTED_NCG","nativeReplace","nativeExec","patchedExec","UPDATES_LAST_INDEX_WRONG","re1","re2","BROKEN_CARET","NPCG_INCLUDED","PATCH","reCopy","charsAdded","strCopy","replacement","feature","detection","POLYFILL","NATIVE","Op","$Symbol","iteratorSymbol","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","wrap","innerFn","outerFn","tryLocsList","protoGenerator","Generator","Context","_invoke","makeInvokeMethod","tryCatch","GenStateSuspendedStart","GenStateSuspendedYield","GenStateExecuting","GenStateCompleted","ContinueSentinel","GeneratorFunction","GeneratorFunctionPrototype","getProto","NativeIteratorPrototype","Gp","defineIteratorMethods","AsyncIterator","PromiseImpl","invoke","__await","unwrapped","previousPromise","enqueue","callInvokeWithMethodAndArg","doneResult","delegate","delegateResult","maybeInvokeDelegate","_sent","dispatchException","abrupt","resultName","nextLoc","pushTryEntry","locs","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","iteratorMethod","displayName","isGeneratorFunction","genFun","ctor","mark","awrap","iter","skipTempReset","rootEntry","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","regeneratorRuntime","accidentalStrictMode","globalThis","usingIterator","$defineProperty","ENUMERABLE","WRITABLE","ENUMERABLE_NEXT","MISSED_STICKY","toPrimitive","isSymbol","NATIVE_SYMBOL","$toString","nativeObjectCreate","getOwnPropertyNamesExternal","getOwnPropertyDescriptorModule","defineWellKnownSymbol","HIDDEN","SYMBOL","TO_PRIMITIVE","SymbolPrototype","QObject","$stringify","nativeGetOwnPropertyDescriptor","nativeDefineProperty","nativeGetOwnPropertyNames","nativePropertyIsEnumerable","AllSymbols","ObjectPrototypeSymbols","StringToSymbolRegistry","SymbolToStringRegistry","WellKnownSymbolsStore","USE_SETTER","findChild","setSymbolDescriptor","ObjectPrototypeDescriptor","description","$defineProperties","properties","$getOwnPropertySymbols","$propertyIsEnumerable","V","IS_OBJECT_PROTOTYPE","keyFor","useSetter","useSimple","FORCED_JSON_STRINGIFY","replacer","space","$replacer","hint","NativePromise","promiseResolve","NON_GENERIC","real","onFinally","inheritIfRequired","thisNumberValue","NUMBER","NativeNumber","NumberPrototype","toNumeric","primValue","third","radix","maxCode","digits","code","NaN","NumberWrapper","error1","error2","cause","dotAll","PrototypeOfArrayIteratorPrototype","arrayIterator","NEW_ITERATOR_PROTOTYPE","TO_STRING_TAG_SUPPORT","FUNCTION_NAME_EXISTS","nameRE","regExpExec","flush","toggle","promise","macrotask","IS_IOS_PEBBLE","IS_WEBOS_WEBKIT","WebKitMutationObserver","queueMicrotaskDescriptor","queueMicrotask","exit","task","USE_SYMBOL_AS_UID","symbolFor","createWellKnownSymbol","withoutSetter","nativeKeys","arraySpeciesCreate","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","IS_FILTER_REJECT","NO_HOLES","specificCreate","filterReject","ordinaryToPrimitive","exoticToPrim","TEST","V8_OR_CHAKRA_STACK_ENTRY","IS_V8_OR_CHAKRA_STACK","dropEntries","newPromiseCapability","promiseCapability","aFunction","NASHORN_BUG","1","aPossiblePrototype","CORRECT_SETTER","TAG","Pebble","_classCallCheck","passed","RegExpPrototype","SHAM","DELEGATES_TO_SYMBOL","DELEGATES_TO_EXEC","execCalled","uncurriedNativeRegExpMethod","nativeMethod","arg2","forceStringMethod","uncurriedNativeMethod","$exec","wrapErrorConstructorWithCause","WEB_ASSEMBLY","WebAssembly","exportGlobalErrorCauseWrapper","ERROR_NAME","wrapper","exportWebAssemblyErrorCauseWrapper","func","ArrayIteratorMethods","ArrayValues","NativeSymbol","EmptyStringDescriptionStore","SymbolWrapper","symbolToString","symbolValueOf","desc","ARRAY_ITERATOR","Arguments","$default","normalizeStringArgument","installErrorCause","clearErrorStack","ERROR_STACK_INSTALLABLE","FULL_NAME","IS_AGGREGATE_ERROR","OPTIONS_POSITION","OriginalError","OriginalErrorPrototype","BaseError","WrappedError","Internal","OwnPromiseCapability","PromiseWrapper","nativeThen","redefineAll","setSpecies","anInstance","iterate","checkCorrectnessOfIteration","microtask","hostReportErrors","newPromiseCapabilityModule","perform","IS_BROWSER","PROMISE","getInternalPromiseState","NativePromisePrototype","PromiseConstructor","PromisePrototype","newGenericPromiseCapability","DISPATCH_EVENT","NATIVE_REJECTION_EVENT","PromiseRejectionEvent","UNHANDLED_REJECTION","REJECTION_HANDLED","PENDING","FULFILLED","REJECTED","HANDLED","UNHANDLED","SUBCLASSING","PROMISE_CONSTRUCTOR_SOURCE","GLOBAL_CORE_JS_PROMISE","FakePromise","INCORRECT_ITERATION","isThenable","callReaction","reaction","exited","ok","fail","rejection","onHandleUnhandled","isReject","notified","reactions","onUnhandled","IS_UNHANDLED","isUnhandled","unwrap","internalReject","internalResolve","executor","onFulfilled","onRejected","capability","$promiseResolve","remaining","alreadyCalled","race","exceptions","__WEBPACK_EXTERNAL_MODULE_20__","installedModules","__webpack_require__","moduleId","rawScriptExports","compiledTemplate","cssModules","esModule","__webpack_exports__","__WEBPACK_IMPORTED_MODULE_0_vue__","__WEBPACK_IMPORTED_MODULE_0_vue___default","__WEBPACK_IMPORTED_MODULE_0__Notifications_vue__","__WEBPACK_IMPORTED_MODULE_0__Notifications_vue___default","__WEBPACK_IMPORTED_MODULE_1__events__","Notify","componentName","title","Component","__WEBPACK_IMPORTED_MODULE_0__index__","__WEBPACK_IMPORTED_MODULE_2__util__","__WEBPACK_IMPORTED_MODULE_3__defaults__","__WEBPACK_IMPORTED_MODULE_4__VelocityGroup_vue__","__WEBPACK_IMPORTED_MODULE_4__VelocityGroup_vue___default","__WEBPACK_IMPORTED_MODULE_5__CssGroup_vue__","__WEBPACK_IMPORTED_MODULE_5__CssGroup_vue___default","__WEBPACK_IMPORTED_MODULE_6__parser__","IDLE","DESTROYED","VelocityGroup","CssGroup","width","animationType","validator","animation","velocityAnimation","animationName","cssAnimation","speed","cooldown","ignoreDuplicates","closeOnClick","velocity","addItem","closeItem","actualWidth","isVA","_listToDirection","suffix","botToTop","destroyIfNecessary","clean","destroyAll","timer","indexToDestroy","isDuplicate","canAdd","destroyById","notifyClass","notifyWrapperStyle","getAnimation","_ref","_ref2","height","clientHeight","opacity","floatRegexp","Id","listToDirection","mediaQuery","alreadyImportedModules","_h","locals","hasDocument","DEBUG","listToStyles","stylesInDom","getElementsByTagName","singletonElement","singletonCounter","isProduction","isOldIE","addStylesToDom","domStyle","addStyle","createStyleElement","styleElement","styleIndex","applyToSingletonTag","applyToTag","newObj","media","sourceMap","_isProduction","newList","mayRemove","replaceText","textStore","styleSheet","cssNode","sources","btoa","unescape","newStyles","part","PromiseCapability","$$resolve","$$reject","classofRaw","CORRECT_ARGUMENTS","tryGet","callee","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList"],"mappings":"oGAAA,IAAIA,EAAkB,EAAQ,QAE1BC,EAAgBD,EAAgB,eAChCE,EAAO,GAEXA,EAAKD,GAAiB,IAEtBE,EAAOC,QAA2B,eAAjBC,OAAOH,I,qBCPxB,IAAII,EAAQ,WACVC,KAAKC,KAAO,KACZD,KAAKE,KAAO,MAGdH,EAAMI,UAAY,CAChBC,IAAK,SAAUC,GACb,IAAIC,EAAQ,CAAED,KAAMA,EAAME,KAA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AAG+iF,QAAU/iF,EAAGnJ,KAAK,OAAsB,MAAbmJ,EAAGynB,W,mBCN5Cz1B,EAAOC,QAAU,CACfshG,YAAa,EACbC,oBAAqB,EACrBC,aAAc,EACdC,eAAgB,EAChBC,YAAa,EACbC,cAAe,EACfC,aAAc,EACdC,qBAAsB,EACtBC,SAAU,EACVC,kBAAmB,EACnBC,eAAgB,EAChBC,gBAAiB,EACjBC,kBAAmB,EACnBC,UAAW,EACXC,cAAe,EACfC,aAAc,EACdC,SAAU,EACVC,iBAAkB,EAClBC,OAAQ,EACRC,YAAa,EACbC,cAAe,EACfC,cAAe,EACfC,eAAgB,EAChBC,aAAc,EACdC,cAAe,EACfC,iBAAkB,EAClBC,iBAAkB,EAClBC,eAAgB,EAChBC,iBAAkB,EAClBC,cAAe,EACfC,UAAW,I,qBChCb,IAAIpW,EAAgB,EAAQ,QAE5BjtF,EAAOC,QAAUgtF,IACXriF,OAAO0vB,MACkB,iBAAnB1vB,OAAOmG,U,qBCLnB,IAAIzP,EAAS,EAAQ,QAErBtB,EAAOC,QAAUqB,EAAOuO","file":"js/chunk-vendors.d77b8b8e.js","sourcesContent":["var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var Queue = function () {\n this.head = null;\n this.tail = null;\n};\n\nQueue.prototype = {\n add: function (item) {\n var entry = { item: item, next: null };\n if (this.head) this.tail.next = entry;\n else this.head = entry;\n this.tail = entry;\n },\n get: function () {\n var entry = this.head;\n if (entry) {\n this.head = entry.next;\n if (this.tail === entry) this.tail = null;\n return entry.item;\n }\n }\n};\n\nmodule.exports = Queue;\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","'use strict';\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\nvar isObject = require('../internals/is-object');\nvar hasOwn = require('../internals/has-own-property');\nvar arraySlice = require('../internals/array-slice');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar Function = global.Function;\nvar concat = uncurryThis([].concat);\nvar join = uncurryThis([].join);\nvar factories = {};\n\nvar construct = function (C, argsLength, args) {\n if (!hasOwn(factories, argsLength)) {\n for (var list = [], i = 0; i < argsLength; i++) list[i] = 'a[' + i + ']';\n factories[argsLength] = Function('C,a', 'return new C(' + join(list, ',') + ')');\n } return factories[argsLength](C, args);\n};\n\n// `Function.prototype.bind` method implementation\n// https://tc39.es/ecma262/#sec-function.prototype.bind\nmodule.exports = NATIVE_BIND ? Function.bind : function bind(that /* , ...args */) {\n var F = aCallable(this);\n var Prototype = F.prototype;\n var partArgs = arraySlice(arguments, 1);\n var boundFunction = function bound(/* args... */) {\n var args = concat(partArgs, arraySlice(arguments));\n return this instanceof boundFunction ? construct(F, args.length, args) : F.apply(that, args);\n };\n if (isObject(Prototype)) boundFunction.prototype = Prototype;\n return boundFunction;\n};\n","/* eslint-disable es/no-object-getownpropertynames -- safe */\nvar classof = require('../internals/classof-raw');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar arraySlice = require('../internals/array-slice-simple');\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return $getOwnPropertyNames(it);\n } catch (error) {\n return arraySlice(windowNames);\n }\n};\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && classof(it) == 'Window'\n ? getWindowNames(it)\n : $getOwnPropertyNames(toIndexedObject(it));\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","function createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nvar _global = createCommonjsModule(function (module) {\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n});\n\nvar _core = createCommonjsModule(function (module) {\nvar core = module.exports = { version: '2.6.9' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n});\nvar _core_1 = _core.version;\n\nvar _isObject = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\nvar _anObject = function (it) {\n if (!_isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n\nvar _fails = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n\n// Thank's IE8 for his funny defineProperty\nvar _descriptors = !_fails(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n\nvar document = _global.document;\n// typeof document.createElement is 'object' in old IE\nvar is = _isObject(document) && _isObject(document.createElement);\nvar _domCreate = function (it) {\n return is ? document.createElement(it) : {};\n};\n\nvar _ie8DomDefine = !_descriptors && !_fails(function () {\n return Object.defineProperty(_domCreate('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n\n// 7.1.1 ToPrimitive(input [, PreferredType])\n\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nvar _toPrimitive = function (it, S) {\n if (!_isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !_isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n\nvar dP = Object.defineProperty;\n\nvar f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n _anObject(O);\n P = _toPrimitive(P, true);\n _anObject(Attributes);\n if (_ie8DomDefine) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n\nvar _objectDp = {\n\tf: f\n};\n\nvar _propertyDesc = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n\nvar _hide = _descriptors ? function (object, key, value) {\n return _objectDp.f(object, key, _propertyDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n\nvar hasOwnProperty = {}.hasOwnProperty;\nvar _has = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n\nvar id = 0;\nvar px = Math.random();\nvar _uid = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\nvar _shared = createCommonjsModule(function (module) {\nvar SHARED = '__core-js_shared__';\nvar store = _global[SHARED] || (_global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: _core.version,\n mode: 'global',\n copyright: '© 2019 Denis Pushkarev (zloirock.ru)'\n});\n});\n\nvar _functionToString = _shared('native-function-to-string', Function.toString);\n\nvar _redefine = createCommonjsModule(function (module) {\nvar SRC = _uid('src');\n\nvar TO_STRING = 'toString';\nvar TPL = ('' + _functionToString).split(TO_STRING);\n\n_core.inspectSource = function (it) {\n return _functionToString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) _has(val, 'name') || _hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) _has(val, SRC) || _hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === _global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n _hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n _hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || _functionToString.call(this);\n});\n});\n\nvar _aFunction = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n\n// optional / simple context binding\n\nvar _ctx = function (fn, that, length) {\n _aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? _global : IS_STATIC ? _global[name] || (_global[name] = {}) : (_global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? _core : _core[name] || (_core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? _ctx(out, _global) : IS_PROTO && typeof out == 'function' ? _ctx(Function.call, out) : out;\n // extend global\n if (target) _redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) _hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\n_global.core = _core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nvar _export = $export;\n\nvar toString = {}.toString;\n\nvar _cof = function (it) {\n return toString.call(it).slice(8, -1);\n};\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\n\n// eslint-disable-next-line no-prototype-builtins\nvar _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return _cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n// 7.2.1 RequireObjectCoercible(argument)\nvar _defined = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n// to indexed object, toObject with fallback for non-array-like ES3 strings\n\n\nvar _toIobject = function (it) {\n return _iobject(_defined(it));\n};\n\n// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nvar _toInteger = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n// 7.1.15 ToLength\n\nvar min = Math.min;\nvar _toLength = function (it) {\n return it > 0 ? min(_toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\nvar max = Math.max;\nvar min$1 = Math.min;\nvar _toAbsoluteIndex = function (index, length) {\n index = _toInteger(index);\n return index < 0 ? max(index + length, 0) : min$1(index, length);\n};\n\n// false -> Array#indexOf\n// true -> Array#includes\n\n\n\nvar _arrayIncludes = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = _toIobject($this);\n var length = _toLength(O.length);\n var index = _toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nvar _wks = createCommonjsModule(function (module) {\nvar store = _shared('wks');\n\nvar Symbol = _global.Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : _uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n});\n\n// 22.1.3.31 Array.prototype[@@unscopables]\nvar UNSCOPABLES = _wks('unscopables');\nvar ArrayProto = Array.prototype;\nif (ArrayProto[UNSCOPABLES] == undefined) _hide(ArrayProto, UNSCOPABLES, {});\nvar _addToUnscopables = function (key) {\n ArrayProto[UNSCOPABLES][key] = true;\n};\n\n// https://github.com/tc39/Array.prototype.includes\n\nvar $includes = _arrayIncludes(true);\n\n_export(_export.P, 'Array', {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n_addToUnscopables('includes');\n\nvar includes = _core.Array.includes;\n\nvar shared = _shared('keys');\n\nvar _sharedKey = function (key) {\n return shared[key] || (shared[key] = _uid(key));\n};\n\nvar arrayIndexOf = _arrayIncludes(false);\nvar IE_PROTO = _sharedKey('IE_PROTO');\n\nvar _objectKeysInternal = function (object, names) {\n var O = _toIobject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) _has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (_has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n\n// IE 8- don't enum bug keys\nvar _enumBugKeys = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n\n// 19.1.2.14 / 15.2.3.14 Object.keys(O)\n\n\n\nvar _objectKeys = Object.keys || function keys(O) {\n return _objectKeysInternal(O, _enumBugKeys);\n};\n\nvar f$1 = Object.getOwnPropertySymbols;\n\nvar _objectGops = {\n\tf: f$1\n};\n\nvar f$2 = {}.propertyIsEnumerable;\n\nvar _objectPie = {\n\tf: f$2\n};\n\n// 7.1.13 ToObject(argument)\n\nvar _toObject = function (it) {\n return Object(_defined(it));\n};\n\n// 19.1.2.1 Object.assign(target, source, ...)\n\n\n\n\n\n\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nvar _objectAssign = !$assign || _fails(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = _toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = _objectGops.f;\n var isEnum = _objectPie.f;\n while (aLen > index) {\n var S = _iobject(arguments[index++]);\n var keys = getSymbols ? _objectKeys(S).concat(getSymbols(S)) : _objectKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!_descriptors || isEnum.call(S, key)) T[key] = S[key];\n }\n } return T;\n} : $assign;\n\n// 19.1.3.1 Object.assign(target, source)\n\n\n_export(_export.S + _export.F, 'Object', { assign: _objectAssign });\n\nvar assign = _core.Object.assign;\n\nvar isEnum = _objectPie.f;\nvar _objectToArray = function (isEntries) {\n return function (it) {\n var O = _toIobject(it);\n var keys = _objectKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!_descriptors || isEnum.call(O, key)) {\n result.push(isEntries ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\n// https://github.com/tc39/proposal-object-values-entries\n\nvar $entries = _objectToArray(true);\n\n_export(_export.S, 'Object', {\n entries: function entries(it) {\n return $entries(it);\n }\n});\n\nvar entries = _core.Object.entries;\n\n// https://github.com/tc39/proposal-object-values-entries\n\nvar $values = _objectToArray(false);\n\n_export(_export.S, 'Object', {\n values: function values(it) {\n return $values(it);\n }\n});\n\nvar values = _core.Object.values;\n\n// 7.2.8 IsRegExp(argument)\n\n\nvar MATCH = _wks('match');\nvar _isRegexp = function (it) {\n var isRegExp;\n return _isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : _cof(it) == 'RegExp');\n};\n\n// helper for String#{startsWith, endsWith, includes}\n\n\n\nvar _stringContext = function (that, searchString, NAME) {\n if (_isRegexp(searchString)) throw TypeError('String#' + NAME + \" doesn't accept regex!\");\n return String(_defined(that));\n};\n\nvar MATCH$1 = _wks('match');\nvar _failsIsRegexp = function (KEY) {\n var re = /./;\n try {\n '/./'[KEY](re);\n } catch (e) {\n try {\n re[MATCH$1] = false;\n return !'/./'[KEY](re);\n } catch (f) { /* empty */ }\n } return true;\n};\n\nvar STARTS_WITH = 'startsWith';\nvar $startsWith = ''[STARTS_WITH];\n\n_export(_export.P + _export.F * _failsIsRegexp(STARTS_WITH), 'String', {\n startsWith: function startsWith(searchString /* , position = 0 */) {\n var that = _stringContext(this, searchString, STARTS_WITH);\n var index = _toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length));\n var search = String(searchString);\n return $startsWith\n ? $startsWith.call(that, search, index)\n : that.slice(index, index + search.length) === search;\n }\n});\n\nvar startsWith = _core.String.startsWith;\n\nvar Container = /** @class */ (function () {\n function Container() {\n }\n /**\n * Register the database.\n */\n Container.register = function (database) {\n this.database = database;\n };\n return Container;\n}());\n\nvar install = (function (database, options) {\n if (options === void 0) { options = {}; }\n var namespace = options.namespace || 'entities';\n return function (store) {\n Container.register(database);\n database.start(store, namespace);\n };\n});\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nfunction __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nvar __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nfunction __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nfunction __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\n\n/**\n * Check if the given array or object is empty.\n */\nfunction isEmpty(data) {\n if (Array.isArray(data)) {\n return data.length === 0;\n }\n return Object.keys(data).length === 0;\n}\n/**\n * Iterates over own enumerable string keyed properties of an object and\n * invokes `iteratee` for each property.\n */\nfunction forOwn(object, iteratee) {\n Object.keys(object).forEach(function (key) { return iteratee(object[key], key, object); });\n}\n/**\n * Creates an object with the same keys as object and values generated by\n * running each own enumerable string keyed property of object thru\n * iteratee. The iteratee is invoked with three arguments:\n * (value, key, object).\n */\nfunction mapValues(object, iteratee) {\n var newObject = Object.assign({}, object);\n return Object.keys(object).reduce(function (records, key) {\n records[key] = iteratee(object[key], key, object);\n return records;\n }, newObject);\n}\n/**\n * Creates an object composed of the object properties predicate returns\n * truthy for. The predicate is invoked with two arguments: (value, key).\n */\nfunction pickBy(object, predicate) {\n return Object.keys(object).reduce(function (records, key) {\n var value = object[key];\n if (predicate(value, key)) {\n records[key] = value;\n }\n return records;\n }, {});\n}\n/**\n * Creates an array of elements, sorted in specified order by the results\n * of running each element in a collection thru each iteratee.\n */\nfunction orderBy(collection, keys, directions) {\n var index = -1;\n var result = collection.map(function (value) {\n var criteria = keys.map(function (key) {\n return typeof key === 'function' ? key(value) : value[key];\n });\n return { criteria: criteria, index: ++index, value: value };\n });\n return baseSortBy(result, function (object, other) {\n return compareMultiple(object, other, directions);\n });\n}\n/**\n * Creates an object composed of keys generated from the results of running\n * each element of collection thru iteratee.\n */\nfunction groupBy(collection, iteratee) {\n return collection.reduce(function (records, record) {\n var key = iteratee(record);\n if (records[key] === undefined) {\n records[key] = [];\n }\n records[key].push(record);\n return records;\n }, {});\n}\n/**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their\n * corresponding values.\n */\nfunction baseSortBy(array, comparer) {\n var length = array.length;\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n}\n/**\n * Used by `orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order.\n * Otherwise, specify an order of \"desc\" for descending or \"asc\" for\n * ascending sort order of corresponding values.\n */\nfunction compareMultiple(object, other, orders) {\n var objCriteria = object.criteria;\n var othCriteria = other.criteria;\n var length = objCriteria.length;\n var ordersLength = orders.length;\n var index = -1;\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order === 'desc' ? -1 : 1);\n }\n }\n return object.index - other.index;\n}\n/**\n * Compares values to sort them in ascending order.\n */\nfunction compareAscending(value, other) {\n if (value !== other) {\n if (value > other) {\n return 1;\n }\n if (value < other) {\n return -1;\n }\n }\n return 0;\n}\nvar Utils = {\n isEmpty: isEmpty,\n forOwn: forOwn,\n groupBy: groupBy,\n mapValues: mapValues,\n orderBy: orderBy,\n pickBy: pickBy\n};\n\nvar Attribute = /** @class */ (function () {\n /**\n * Create a new attribute instance.\n */\n function Attribute(model) {\n this.model = model;\n }\n return Attribute;\n}());\n\nvar Type = /** @class */ (function (_super) {\n __extends(Type, _super);\n /**\n * Create a new type instance.\n */\n function Type(model, value, mutator) {\n var _this = _super.call(this, model) /* istanbul ignore next */ || this;\n /**\n * Whether if the attribute can accept `null` as a value.\n */\n _this.isNullable = false;\n _this.value = value;\n _this.mutator = mutator;\n return _this;\n }\n /**\n * Set `isNullable` to be `true`.\n */\n Type.prototype.nullable = function () {\n this.isNullable = true;\n return this;\n };\n /**\n * Mutate the given value by mutator.\n */\n Type.prototype.mutate = function (value, key) {\n var mutator = this.mutator || this.model.mutators()[key];\n return mutator ? mutator(value) : value;\n };\n return Type;\n}(Attribute));\n\nvar Attr = /** @class */ (function (_super) {\n __extends(Attr, _super);\n /**\n * Create a new attr instance.\n */\n function Attr(model, value, mutator) {\n /* istanbul ignore next */\n return _super.call(this, model, value, mutator) || this;\n }\n /**\n * Make value to be set to model property. This method is used when\n * instantiating a model or creating a plain object from a model.\n */\n Attr.prototype.make = function (value, _parent, key) {\n value = value !== undefined ? value : this.value;\n // Default Value might be a function (taking no parameter).\n var localValue = value;\n if (typeof value === 'function') {\n localValue = value();\n }\n return this.mutate(localValue, key);\n };\n return Attr;\n}(Type));\n\nvar String$1 = /** @class */ (function (_super) {\n __extends(String, _super);\n /**\n * Create a new string instance.\n */\n function String(model, value, mutator) {\n /* istanbul ignore next */\n return _super.call(this, model, value, mutator) || this;\n }\n /**\n * Convert given value to the appropriate value for the attribute.\n */\n String.prototype.make = function (value, _parent, key) {\n return this.mutate(this.fix(value), key);\n };\n /**\n * Convert given value to the string.\n */\n String.prototype.fix = function (value) {\n if (value === undefined) {\n return this.value;\n }\n if (typeof value === 'string') {\n return value;\n }\n if (value === null && this.isNullable) {\n return value;\n }\n return value + '';\n };\n return String;\n}(Type));\n\nvar Number = /** @class */ (function (_super) {\n __extends(Number, _super);\n /**\n * Create a new number instance.\n */\n function Number(model, value, mutator) {\n /* istanbul ignore next */\n return _super.call(this, model, value, mutator) || this;\n }\n /**\n * Convert given value to the appropriate value for the attribute.\n */\n Number.prototype.make = function (value, _parent, key) {\n return this.mutate(this.fix(value), key);\n };\n /**\n * Transform given data to the number.\n */\n Number.prototype.fix = function (value) {\n if (value === undefined) {\n return this.value;\n }\n if (typeof value === 'number') {\n return value;\n }\n if (typeof value === 'string') {\n return parseFloat(value);\n }\n if (typeof value === 'boolean') {\n return value ? 1 : 0;\n }\n if (value === null && this.isNullable) {\n return value;\n }\n return 0;\n };\n return Number;\n}(Type));\n\nvar Boolean = /** @class */ (function (_super) {\n __extends(Boolean, _super);\n /**\n * Create a new number instance.\n */\n function Boolean(model, value, mutator) {\n /* istanbul ignore next */\n return _super.call(this, model, value, mutator) || this;\n }\n /**\n * Convert given value to the appropriate value for the attribute.\n */\n Boolean.prototype.make = function (value, _parent, key) {\n return this.mutate(this.fix(value), key);\n };\n /**\n * Transform given data to the boolean.\n */\n Boolean.prototype.fix = function (value) {\n if (value === undefined) {\n return this.value;\n }\n if (typeof value === 'boolean') {\n return value;\n }\n if (typeof value === 'string') {\n if (value.length === 0) {\n return false;\n }\n var int = parseInt(value, 0);\n return isNaN(int) ? true : !!int;\n }\n if (typeof value === 'number') {\n return !!value;\n }\n if (value === null && this.isNullable) {\n return value;\n }\n return false;\n };\n return Boolean;\n}(Type));\n\nvar Uid = /** @class */ (function () {\n function Uid() {\n }\n /**\n * Generate an UUID.\n */\n Uid.make = function () {\n this.count++;\n return \"\" + this.prefix + this.count;\n };\n /**\n * Reset the count to 0.\n */\n Uid.reset = function () {\n this.count = 0;\n };\n /**\n * Count to create a unique id.\n */\n Uid.count = 0;\n /**\n * Prefix string to be used for the id.\n */\n Uid.prefix = '$uid';\n return Uid;\n}());\n\nvar Uid$1 = /** @class */ (function (_super) {\n __extends(Uid$1, _super);\n /**\n * Create a new uid instance.\n */\n function Uid$1(model, value) {\n /* istanbul ignore next */\n return _super.call(this, model, value) || this;\n }\n /**\n * Convert given value to the appropriate value for the attribute.\n */\n Uid$1.prototype.make = function (value) {\n if (typeof value === 'number' || typeof value === 'string') {\n return value;\n }\n if (typeof this.value === 'function') {\n return this.value();\n }\n return Uid.make();\n };\n return Uid$1;\n}(Type));\n\nvar Relation = /** @class */ (function (_super) {\n __extends(Relation, _super);\n function Relation() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n /**\n * Get relation query instance with constraint attached.\n */\n Relation.prototype.getRelation = function (query, name, constraints) {\n var relation = query.newQuery(name);\n constraints.forEach(function (constraint) { constraint(relation); });\n return relation;\n };\n /**\n * Get specified keys from the given collection.\n */\n Relation.prototype.getKeys = function (collection, key) {\n return collection.reduce(function (models, model) {\n if (model[key] === null || model[key] === undefined) {\n return models;\n }\n models.push(model[key]);\n return models;\n }, []);\n };\n /**\n * Create a new indexed map for the single relation by specified key.\n */\n Relation.prototype.mapSingleRelations = function (collection, key) {\n return collection.reduce(function (records, record) {\n var id = record[key];\n records[id] = record;\n return records;\n }, {});\n };\n /**\n * Create a new indexed map for the many relation by specified key.\n */\n Relation.prototype.mapManyRelations = function (collection, key) {\n return collection.reduce(function (records, record) {\n var id = record[key];\n if (!records[id]) {\n records[id] = [];\n }\n records[id].push(record);\n return records;\n }, {});\n };\n /**\n * Check if the given record is a single relation, which is an object.\n */\n Relation.prototype.isOneRelation = function (record) {\n if (!Array.isArray(record) && record !== null && typeof record === 'object') {\n return true;\n }\n return false;\n };\n /**\n * Check if the given records is a many relation, which is an array\n * of object.\n */\n Relation.prototype.isManyRelation = function (records) {\n if (!Array.isArray(records)) {\n return false;\n }\n if (records.length < 1) {\n return false;\n }\n return true;\n };\n /**\n * Wrap the given object into a model instance.\n */\n Relation.prototype.makeOneRelation = function (record, model) {\n if (!this.isOneRelation(record)) {\n return null;\n }\n var relatedModel = model.getModelFromRecord(record) || model;\n return new relatedModel(record);\n };\n /**\n * Wrap the given records into a collection of model instances.\n */\n Relation.prototype.makeManyRelation = function (records, model) {\n var _this = this;\n if (!this.isManyRelation(records)) {\n return [];\n }\n return records.filter(function (record) {\n return _this.isOneRelation(record);\n }).map(function (record) {\n var relatedModel = model.getModelFromRecord(record) || model;\n return new relatedModel(record);\n });\n };\n return Relation;\n}(Attribute));\n\nvar HasOne = /** @class */ (function (_super) {\n __extends(HasOne, _super);\n /**\n * Create a new has one instance.\n */\n function HasOne(model, related, foreignKey, localKey) {\n var _this = _super.call(this, model) /* istanbul ignore next */ || this;\n _this.related = _this.model.relation(related);\n _this.foreignKey = foreignKey;\n _this.localKey = localKey;\n return _this;\n }\n /**\n * Define the normalizr schema for the relationship.\n */\n HasOne.prototype.define = function (schema) {\n return schema.one(this.related);\n };\n /**\n * Attach the relational key to the related data. For example,\n * when User has one Phone, it will attach value to the\n * `user_id` field of Phone record.\n */\n HasOne.prototype.attach = function (key, record, data) {\n // Check if the record has local key set. If not, set the local key to be\n // the id value. This happens if the user defines the custom local key\n // and didn't include it in the data being normalized.\n if (!record[this.localKey]) {\n record[this.localKey] = this.model.getIndexIdFromRecord(record);\n }\n // Then set the foreign key of the related record if it exists to be the\n // local key of this record.\n var related = data[this.related.entity] && data[this.related.entity][key];\n if (related) {\n related[this.foreignKey] = record[this.localKey];\n }\n };\n /**\n * Make value to be set to model property. This method is used when\n * instantiating a model or creating a plain object from a model.\n */\n HasOne.prototype.make = function (value, _parent, _key) {\n return this.makeOneRelation(value, this.related);\n };\n /**\n * Load the has one relationship for the collection.\n */\n HasOne.prototype.load = function (query, collection, name, constraints) {\n var relation = this.getRelation(query, this.related.entity, constraints);\n this.addEagerConstraints(relation, collection);\n this.match(collection, relation.get(), name);\n };\n /**\n * Set the constraints for an eager load of the relation.\n */\n HasOne.prototype.addEagerConstraints = function (relation, collection) {\n relation.whereFk(this.foreignKey, this.getKeys(collection, this.localKey));\n };\n /**\n * Match the eagerly loaded results to their parents.\n */\n HasOne.prototype.match = function (collection, relations, name) {\n var _this = this;\n var dictionary = this.buildDictionary(relations);\n collection.forEach(function (model) {\n var id = model[_this.localKey];\n var relation = dictionary[id];\n model[name] = relation || null;\n });\n };\n /**\n * Build model dictionary keyed by the relation's foreign key.\n */\n HasOne.prototype.buildDictionary = function (relations) {\n var _this = this;\n return relations.reduce(function (dictionary, relation) {\n var key = relation[_this.foreignKey];\n dictionary[key] = relation;\n return dictionary;\n }, {});\n };\n return HasOne;\n}(Relation));\n\nvar BelongsTo = /** @class */ (function (_super) {\n __extends(BelongsTo, _super);\n /**\n * Create a new belongs to instance.\n */\n function BelongsTo(model, parent, foreignKey, ownerKey) {\n var _this = _super.call(this, model) /* istanbul ignore next */ || this;\n _this.parent = _this.model.relation(parent);\n _this.foreignKey = foreignKey;\n _this.ownerKey = ownerKey;\n return _this;\n }\n /**\n * Define the normalizr schema for the relationship.\n */\n BelongsTo.prototype.define = function (schema) {\n return schema.one(this.parent);\n };\n /**\n * Attach the relational key to the given data. For example, when Post\n * belongs to User, it will attach value to the `user_id` field of\n * Post record.\n */\n BelongsTo.prototype.attach = function (key, record, data) {\n // See if the record has the foreign key, if yes, it means the user has\n // provided the key explicitly so do nothing and return.\n if (record[this.foreignKey] !== undefined) {\n return;\n }\n // If there is no foreign key, let's set it here.\n record[this.foreignKey] = data[this.parent.entity] && data[this.parent.entity][key]\n ? data[this.parent.entity][key][this.ownerKey]\n : key;\n };\n /**\n * Convert given value to the appropriate value for the attribute.\n */\n BelongsTo.prototype.make = function (value, _parent, _key) {\n return this.makeOneRelation(value, this.parent);\n };\n /**\n * Load the belongs to relationship for the collection.\n */\n BelongsTo.prototype.load = function (query, collection, name, constraints) {\n var relation = this.getRelation(query, this.parent.entity, constraints);\n this.addEagerConstraints(relation, collection);\n this.match(collection, relation.get(), name);\n };\n /**\n * Set the constraints for an eager load of the relation.\n */\n BelongsTo.prototype.addEagerConstraints = function (relation, collection) {\n relation.whereFk(this.ownerKey, this.getKeys(collection, this.foreignKey));\n };\n /**\n * Match the eagerly loaded results to their parents.\n */\n BelongsTo.prototype.match = function (collection, relations, name) {\n var _this = this;\n var dictionary = this.buildDictionary(relations);\n collection.forEach(function (model) {\n var id = model[_this.foreignKey];\n var relation = id !== null ? dictionary[id] : null;\n model[name] = relation || null;\n });\n };\n /**\n * Build model dictionary keyed by the relation's foreign key.\n */\n BelongsTo.prototype.buildDictionary = function (relations) {\n var _this = this;\n return relations.reduce(function (dictionary, relation) {\n var key = relation[_this.ownerKey];\n dictionary[key] = relation;\n return dictionary;\n }, {});\n };\n return BelongsTo;\n}(Relation));\n\nvar HasMany = /** @class */ (function (_super) {\n __extends(HasMany, _super);\n /**\n * Create a new has many instance.\n */\n function HasMany(model, related, foreignKey, localKey) {\n var _this = _super.call(this, model) /* istanbul ignore next */ || this;\n _this.related = _this.model.relation(related);\n _this.foreignKey = foreignKey;\n _this.localKey = localKey;\n return _this;\n }\n /**\n * Define the normalizr schema for the relationship.\n */\n HasMany.prototype.define = function (schema) {\n return schema.many(this.related);\n };\n /**\n * Attach the relational key to the given data.\n */\n HasMany.prototype.attach = function (key, record, data) {\n var _this = this;\n key.forEach(function (index) {\n var related = data[_this.related.entity];\n if (!related || !related[index] || related[index][_this.foreignKey] !== undefined) {\n return;\n }\n related[index][_this.foreignKey] = record[_this.localKey];\n });\n };\n /**\n * Convert given value to the appropriate value for the attribute.\n */\n HasMany.prototype.make = function (value, _parent, _key) {\n return this.makeManyRelation(value, this.related);\n };\n /**\n * Load the has many relationship for the collection.\n */\n HasMany.prototype.load = function (query, collection, name, constraints) {\n var relation = this.getRelation(query, this.related.entity, constraints);\n this.addEagerConstraints(relation, collection);\n this.match(collection, relation.get(), name);\n };\n /**\n * Set the constraints for an eager load of the relation.\n */\n HasMany.prototype.addEagerConstraints = function (relation, collection) {\n relation.whereFk(this.foreignKey, this.getKeys(collection, this.localKey));\n };\n /**\n * Match the eagerly loaded results to their parents.\n */\n HasMany.prototype.match = function (collection, relations, name) {\n var _this = this;\n var dictionary = this.buildDictionary(relations);\n collection.forEach(function (model) {\n var id = model[_this.localKey];\n var relation = dictionary[id];\n model[name] = relation || [];\n });\n };\n /**\n * Build model dictionary keyed by the relation's foreign key.\n */\n HasMany.prototype.buildDictionary = function (relations) {\n var _this = this;\n return relations.reduce(function (dictionary, relation) {\n var key = relation[_this.foreignKey];\n if (!dictionary[key]) {\n dictionary[key] = [];\n }\n dictionary[key].push(relation);\n return dictionary;\n }, {});\n };\n return HasMany;\n}(Relation));\n\nvar HasManyBy = /** @class */ (function (_super) {\n __extends(HasManyBy, _super);\n /**\n * Create a new has many by instance.\n */\n function HasManyBy(model, parent, foreignKey, ownerKey) {\n var _this = _super.call(this, model) /* istanbul ignore next */ || this;\n _this.parent = _this.model.relation(parent);\n _this.foreignKey = foreignKey;\n _this.ownerKey = ownerKey;\n return _this;\n }\n /**\n * Define the normalizr schema for the relationship.\n */\n HasManyBy.prototype.define = function (schema) {\n return schema.many(this.parent);\n };\n /**\n * Attach the relational key to the given data.\n */\n HasManyBy.prototype.attach = function (key, record, _data) {\n var _this = this;\n if (key.length === 0) {\n return;\n }\n record[this.foreignKey] = key.map(function (parentId) {\n return _this.parent.getIdFromRecord(_data[_this.parent.entity][parentId]);\n });\n };\n /**\n * Convert given value to the appropriate value for the attribute.\n */\n HasManyBy.prototype.make = function (value, _parent, _key) {\n return this.makeManyRelation(value, this.parent);\n };\n /**\n * Load the has many by relationship for the collection.\n */\n HasManyBy.prototype.load = function (query, collection, name, constraints) {\n var _this = this;\n var relatedQuery = this.getRelation(query, this.parent.entity, constraints);\n this.addConstraintForHasManyBy(relatedQuery, collection);\n var relations = this.mapSingleRelations(relatedQuery.get(), this.ownerKey);\n collection.forEach(function (item) {\n var related = _this.getRelatedRecords(relations, item[_this.foreignKey]);\n item[name] = related;\n });\n };\n /**\n * Set the constraints for an eager load of the relation.\n */\n HasManyBy.prototype.addConstraintForHasManyBy = function (query, collection) {\n var _this = this;\n var keys = collection.reduce(function (keys, item) {\n return keys.concat(item[_this.foreignKey]);\n }, []);\n query.where(this.ownerKey, keys);\n };\n /**\n * Get related records.\n */\n HasManyBy.prototype.getRelatedRecords = function (records, keys) {\n return keys.reduce(function (items, id) {\n var related = records[id];\n related && items.push(related);\n return items;\n }, []);\n };\n return HasManyBy;\n}(Relation));\n\nvar HasManyThrough = /** @class */ (function (_super) {\n __extends(HasManyThrough, _super);\n /**\n * Create a new has many through instance.\n */\n function HasManyThrough(model, related, through, firstKey, secondKey, localKey, secondLocalKey) {\n var _this = _super.call(this, model) /* istanbul ignore next */ || this;\n _this.related = _this.model.relation(related);\n _this.through = _this.model.relation(through);\n _this.firstKey = firstKey;\n _this.secondKey = secondKey;\n _this.localKey = localKey;\n _this.secondLocalKey = secondLocalKey;\n return _this;\n }\n /**\n * Define the normalizr schema for the relationship.\n */\n HasManyThrough.prototype.define = function (schema) {\n return schema.many(this.related);\n };\n /**\n * Attach the relational key to the given data. Since has many through\n * relationship doesn't have any foreign key, it would do nothing.\n */\n HasManyThrough.prototype.attach = function (_key, _record, _data) {\n return;\n };\n /**\n * Convert given value to the appropriate value for the attribute.\n */\n HasManyThrough.prototype.make = function (value, _parent, _key) {\n return this.makeManyRelation(value, this.related);\n };\n /**\n * Load the has many through relationship for the collection.\n */\n HasManyThrough.prototype.load = function (query, collection, name, constraints) {\n var _this = this;\n var relatedQuery = this.getRelation(query, this.related.entity, constraints);\n var throughQuery = query.newQuery(this.through.entity);\n this.addEagerConstraintForThrough(throughQuery, collection);\n var throughs = throughQuery.get();\n this.addEagerConstraintForRelated(relatedQuery, throughs);\n var relateds = this.mapThroughRelations(throughs, relatedQuery);\n collection.forEach(function (item) {\n var related = relateds[item[_this.localKey]];\n item[name] = related || [];\n });\n };\n /**\n * Set the constraints for the through relation.\n */\n HasManyThrough.prototype.addEagerConstraintForThrough = function (query, collection) {\n query.where(this.firstKey, this.getKeys(collection, this.localKey));\n };\n /**\n * Set the constraints for the related relation.\n */\n HasManyThrough.prototype.addEagerConstraintForRelated = function (query, collection) {\n query.where(this.secondKey, this.getKeys(collection, this.secondLocalKey));\n };\n /**\n * Create a new indexed map for the through relation.\n */\n HasManyThrough.prototype.mapThroughRelations = function (throughs, relatedQuery) {\n var _this = this;\n var relateds = this.mapManyRelations(relatedQuery.get(), this.secondKey);\n return throughs.reduce(function (records, record) {\n var id = record[_this.firstKey];\n if (!records[id]) {\n records[id] = [];\n }\n var related = relateds[record[_this.secondLocalKey]];\n if (related === undefined) {\n return records;\n }\n records[id] = records[id].concat(related);\n return records;\n }, {});\n };\n return HasManyThrough;\n}(Relation));\n\nvar BelongsToMany = /** @class */ (function (_super) {\n __extends(BelongsToMany, _super);\n /**\n * Create a new belongs to instance.\n */\n function BelongsToMany(model, related, pivot, foreignPivotKey, relatedPivotKey, parentKey, relatedKey) {\n var _this = _super.call(this, model) /* istanbul ignore next */ || this;\n _this.related = _this.model.relation(related);\n _this.pivot = _this.model.relation(pivot);\n _this.foreignPivotKey = foreignPivotKey;\n _this.relatedPivotKey = relatedPivotKey;\n _this.parentKey = parentKey;\n _this.relatedKey = relatedKey;\n return _this;\n }\n /**\n * Define the normalizr schema for the relationship.\n */\n BelongsToMany.prototype.define = function (schema) {\n return schema.many(this.related);\n };\n /**\n * Attach the relational key to the given data. Since belongs to many\n * relationship doesn't have any foreign key, it would do nothing.\n */\n BelongsToMany.prototype.attach = function (_key, _record, _data) {\n return;\n };\n /**\n * Convert given value to the appropriate value for the attribute.\n */\n BelongsToMany.prototype.make = function (value, _parent, _key) {\n return this.makeManyRelation(value, this.related);\n };\n /**\n * Load the belongs to relationship for the record.\n */\n BelongsToMany.prototype.load = function (query, collection, name, constraints) {\n var _this = this;\n var relatedQuery = this.getRelation(query, this.related.entity, constraints);\n var pivotQuery = query.newQuery(this.pivot.entity);\n this.addEagerConstraintForPivot(pivotQuery, collection);\n var pivots = pivotQuery.get();\n this.addEagerConstraintForRelated(relatedQuery, pivots);\n var relateds = this.mapPivotRelations(pivots, relatedQuery);\n collection.forEach(function (item) {\n var related = relateds[item[_this.parentKey]];\n item[name] = related || [];\n });\n };\n /**\n * Set the constraints for the pivot relation.\n */\n BelongsToMany.prototype.addEagerConstraintForPivot = function (query, collection) {\n query.whereFk(this.foreignPivotKey, this.getKeys(collection, this.parentKey));\n };\n /**\n * Set the constraints for the related relation.\n */\n BelongsToMany.prototype.addEagerConstraintForRelated = function (query, collection) {\n query.whereFk(this.relatedKey, this.getKeys(collection, this.relatedPivotKey));\n };\n /**\n * Create a new indexed map for the pivot relation.\n */\n BelongsToMany.prototype.mapPivotRelations = function (pivots, relatedQuery) {\n var _this = this;\n var relateds = this.mapManyRelations(relatedQuery.get(), this.relatedKey);\n return pivots.reduce(function (records, record) {\n var id = record[_this.foreignPivotKey];\n if (!records[id]) {\n records[id] = [];\n }\n var related = relateds[record[_this.relatedPivotKey]];\n if (related) {\n records[id] = records[id].concat(related);\n }\n return records;\n }, {});\n };\n /**\n * Create pivot records for the given records if needed.\n */\n BelongsToMany.prototype.createPivots = function (parent, data, key) {\n var _this = this;\n if (this.pivot.primaryKey instanceof Array === false)\n return data;\n Utils.forOwn(data[parent.entity], function (record) {\n var related = record[key];\n if (related === undefined || related.length === 0) {\n return;\n }\n _this.createPivotRecord(data, record, related);\n });\n return data;\n };\n /**\n * Create a pivot record.\n */\n BelongsToMany.prototype.createPivotRecord = function (data, record, related) {\n var _this = this;\n related.forEach(function (id) {\n var _a, _b;\n var parentId = record[_this.parentKey];\n var relatedId = data[_this.related.entity][id][_this.relatedKey];\n var pivotKey = JSON.stringify([relatedId, parentId]);\n var pivotRecord = data[_this.pivot.entity] ? data[_this.pivot.entity][pivotKey] : {};\n data[_this.pivot.entity] = __assign(__assign({}, data[_this.pivot.entity]), (_a = {}, _a[pivotKey] = __assign(__assign({}, pivotRecord), (_b = { $id: pivotKey }, _b[_this.foreignPivotKey] = parentId, _b[_this.relatedPivotKey] = relatedId, _b)), _a));\n });\n };\n return BelongsToMany;\n}(Relation));\n\nvar MorphTo = /** @class */ (function (_super) {\n __extends(MorphTo, _super);\n /**\n * Create a new morph to instance.\n */\n function MorphTo(model, id, type) {\n var _this = _super.call(this, model) /* istanbul ignore next */ || this;\n _this.id = id;\n _this.type = type;\n return _this;\n }\n /**\n * Define the normalizr schema for the relationship.\n */\n MorphTo.prototype.define = function (schema) {\n var _this = this;\n return schema.union(function (_value, parentValue) { return parentValue[_this.type]; });\n };\n /**\n * Attach the relational key to the given record. Since morph to\n * relationship doesn't have any foreign key, it would do nothing.\n */\n MorphTo.prototype.attach = function (_key, _record, _data) {\n return;\n };\n /**\n * Convert given value to the appropriate value for the attribute.\n */\n MorphTo.prototype.make = function (value, parent, _key) {\n var related = parent[this.type];\n var model = this.model.relation(related);\n if (!model) {\n return null;\n }\n return this.makeOneRelation(value, model);\n };\n /**\n * Load the morph to relationship for the collection.\n */\n MorphTo.prototype.load = function (query, collection, name, constraints) {\n var _this = this;\n var types = this.getTypes(collection);\n var relateds = types.reduce(function (relateds, type) {\n var relatedQuery = _this.getRelation(query, type, constraints);\n relateds[type] = _this.mapSingleRelations(relatedQuery.get(), '$id');\n return relateds;\n }, {});\n collection.forEach(function (item) {\n var id = item[_this.id];\n var type = item[_this.type];\n var related = relateds[type][id];\n item[name] = related || null;\n });\n };\n /**\n * Get all types from the collection.\n */\n MorphTo.prototype.getTypes = function (collection) {\n var _this = this;\n return collection.reduce(function (types, item) {\n var type = item[_this.type];\n !types.includes(type) && types.push(type);\n return types;\n }, []);\n };\n return MorphTo;\n}(Relation));\n\nvar MorphOne = /** @class */ (function (_super) {\n __extends(MorphOne, _super);\n /**\n * Create a new belongs to instance.\n */\n function MorphOne(model, related, id, type, localKey) {\n var _this = _super.call(this, model) /* istanbul ignore next */ || this;\n _this.related = _this.model.relation(related);\n _this.id = id;\n _this.type = type;\n _this.localKey = localKey;\n return _this;\n }\n /**\n * Define the normalizr schema for the relationship.\n */\n MorphOne.prototype.define = function (schema) {\n return schema.one(this.related);\n };\n /**\n * Attach the relational key to the given data.\n */\n MorphOne.prototype.attach = function (key, record, data) {\n var relatedRecord = data[this.related.entity][key];\n relatedRecord[this.id] = relatedRecord[this.id] || this.related.getIdFromRecord(record);\n relatedRecord[this.type] = relatedRecord[this.type] || this.model.entity;\n };\n /**\n * Convert given value to the appropriate value for the attribute.\n */\n MorphOne.prototype.make = function (value, _parent, _key) {\n return this.makeOneRelation(value, this.related);\n };\n /**\n * Load the morph many relationship for the record.\n */\n MorphOne.prototype.load = function (query, collection, name, constraints) {\n var _this = this;\n var relatedQuery = this.getRelation(query, this.related.entity, constraints);\n this.addEagerConstraintForMorphOne(relatedQuery, collection, query.entity);\n var relations = this.mapSingleRelations(relatedQuery.get(), this.id);\n collection.forEach(function (item) {\n var related = relations[item[_this.localKey]];\n item[name] = related || null;\n });\n };\n /**\n * Set the constraints for an eager load of the relation.\n */\n MorphOne.prototype.addEagerConstraintForMorphOne = function (query, collection, type) {\n query.whereFk(this.type, type).whereFk(this.id, this.getKeys(collection, this.localKey));\n };\n return MorphOne;\n}(Relation));\n\nvar MorphMany = /** @class */ (function (_super) {\n __extends(MorphMany, _super);\n /**\n * Create a new belongs to instance.\n */\n function MorphMany(model, related, id, type, localKey) {\n var _this = _super.call(this, model) /* istanbul ignore next */ || this;\n _this.related = _this.model.relation(related);\n _this.id = id;\n _this.type = type;\n _this.localKey = localKey;\n return _this;\n }\n /**\n * Define the normalizr schema for the relationship.\n */\n MorphMany.prototype.define = function (schema) {\n return schema.many(this.related);\n };\n /**\n * Attach the relational key to the given data.\n */\n MorphMany.prototype.attach = function (key, record, data) {\n var _this = this;\n var relatedItems = data[this.related.entity];\n key.forEach(function (id) {\n var relatedItem = relatedItems[id];\n relatedItem[_this.id] = relatedItem[_this.id] || _this.related.getIdFromRecord(record);\n relatedItem[_this.type] = relatedItem[_this.type] || _this.model.entity;\n });\n };\n /**\n * Convert given value to the appropriate value for the attribute.\n */\n MorphMany.prototype.make = function (value, _parent, _key) {\n return this.makeManyRelation(value, this.related);\n };\n /**\n * Load the morph many relationship for the record.\n */\n MorphMany.prototype.load = function (query, collection, name, constraints) {\n var _this = this;\n var relatedQuery = this.getRelation(query, this.related.entity, constraints);\n this.addEagerConstraintForMorphMany(relatedQuery, collection, query.entity);\n var relations = this.mapManyRelations(relatedQuery.get(), this.id);\n collection.forEach(function (item) {\n var related = relations[item[_this.localKey]];\n item[name] = related || [];\n });\n };\n /**\n * Set the constraints for an eager load of the relation.\n */\n MorphMany.prototype.addEagerConstraintForMorphMany = function (query, collection, type) {\n query.whereFk(this.type, type).whereFk(this.id, this.getKeys(collection, this.localKey));\n };\n return MorphMany;\n}(Relation));\n\nvar MorphToMany = /** @class */ (function (_super) {\n __extends(MorphToMany, _super);\n /**\n * Create a new belongs to instance.\n */\n function MorphToMany(model, related, pivot, relatedId, id, type, parentKey, relatedKey) {\n var _this = _super.call(this, model) /* istanbul ignore next */ || this;\n _this.related = _this.model.relation(related);\n _this.pivot = _this.model.relation(pivot);\n _this.relatedId = relatedId;\n _this.id = id;\n _this.type = type;\n _this.parentKey = parentKey;\n _this.relatedKey = relatedKey;\n return _this;\n }\n /**\n * Define the normalizr schema for the relationship.\n */\n MorphToMany.prototype.define = function (schema) {\n return schema.many(this.related);\n };\n /**\n * Attach the relational key to the given record. Since morph to many\n * relationship doesn't have any foreign key, it would do nothing.\n */\n MorphToMany.prototype.attach = function (_key, _record, _data) {\n return;\n };\n /**\n * Convert given value to the appropriate value for the attribute.\n */\n MorphToMany.prototype.make = function (value, _parent, _key) {\n return this.makeManyRelation(value, this.related);\n };\n /**\n * Load the morph to many relationship for the collection.\n */\n MorphToMany.prototype.load = function (query, collection, name, constraints) {\n var _this = this;\n var relatedQuery = this.getRelation(query, this.related.entity, constraints);\n var pivotQuery = query.newQuery(this.pivot.entity);\n this.addEagerConstraintForPivot(pivotQuery, collection, query.entity);\n var pivots = pivotQuery.get();\n this.addEagerConstraintForRelated(relatedQuery, pivots);\n var relateds = this.mapPivotRelations(pivots, relatedQuery);\n collection.forEach(function (item) {\n var related = relateds[item[_this.parentKey]];\n item[name] = related || [];\n });\n };\n /**\n * Set the constraints for the pivot relation.\n */\n MorphToMany.prototype.addEagerConstraintForPivot = function (query, collection, type) {\n query.whereFk(this.type, type).whereFk(this.id, this.getKeys(collection, this.parentKey));\n };\n /**\n * Set the constraints for the related relation.\n */\n MorphToMany.prototype.addEagerConstraintForRelated = function (query, collection) {\n query.whereFk(this.relatedKey, this.getKeys(collection, this.relatedId));\n };\n /**\n * Create a new indexed map for the pivot relation.\n */\n MorphToMany.prototype.mapPivotRelations = function (pivots, relatedQuery) {\n var _this = this;\n var relateds = this.mapManyRelations(relatedQuery.get(), this.relatedKey);\n return pivots.reduce(function (records, record) {\n var id = record[_this.id];\n if (!records[id]) {\n records[id] = [];\n }\n var related = relateds[record[_this.relatedId]];\n records[id] = records[id].concat(related);\n return records;\n }, {});\n };\n /**\n * Create pivot records for the given records if needed.\n */\n MorphToMany.prototype.createPivots = function (parent, data, key) {\n var _this = this;\n Utils.forOwn(data[parent.entity], function (record) {\n var relatedIds = parent.query().newQuery(_this.pivot.entity)\n .where(_this.id, record[_this.parentKey])\n .where(_this.type, parent.entity)\n .get();\n var relateds = (record[key] || []).filter(function (relatedId) { return !relatedIds.includes(relatedId); });\n if (!Array.isArray(relateds) || relateds.length === 0) {\n return;\n }\n _this.createPivotRecord(parent, data, record, relateds);\n });\n return data;\n };\n /**\n * Create a pivot record.\n */\n MorphToMany.prototype.createPivotRecord = function (parent, data, record, related) {\n var _this = this;\n related.forEach(function (id) {\n var _a, _b;\n var parentId = record[_this.parentKey];\n var relatedId = data[_this.related.entity][id][_this.relatedKey];\n var pivotKey = parentId + \"_\" + id + \"_\" + parent.entity;\n data[_this.pivot.entity] = __assign(__assign({}, data[_this.pivot.entity]), (_a = {}, _a[pivotKey] = (_b = {\n $id: pivotKey\n },\n _b[_this.relatedId] = relatedId,\n _b[_this.id] = parentId,\n _b[_this.type] = parent.entity,\n _b), _a));\n });\n };\n return MorphToMany;\n}(Relation));\n\nvar MorphedByMany = /** @class */ (function (_super) {\n __extends(MorphedByMany, _super);\n /**\n * Create a new belongs to instance.\n */\n function MorphedByMany(model, related, pivot, relatedId, id, type, parentKey, relatedKey) {\n var _this = _super.call(this, model) /* istanbul ignore next */ || this;\n _this.related = _this.model.relation(related);\n _this.pivot = _this.model.relation(pivot);\n _this.relatedId = relatedId;\n _this.id = id;\n _this.type = type;\n _this.parentKey = parentKey;\n _this.relatedKey = relatedKey;\n return _this;\n }\n /**\n * Define the normalizr schema for the relationship.\n */\n MorphedByMany.prototype.define = function (schema) {\n return schema.many(this.related);\n };\n /**\n * Attach the relational key to the given data. Since morphed by many\n * relationship doesn't have any foreign key, it would do nothing.\n */\n MorphedByMany.prototype.attach = function (_key, _record, _data) {\n return;\n };\n /**\n * Make value to be set to model property. This method is used when\n * instantiating a model or creating a plain object from a model.\n */\n MorphedByMany.prototype.make = function (value, _parent, _key) {\n return this.makeManyRelation(value, this.related);\n };\n /**\n * Load the morph many relationship for the record.\n */\n MorphedByMany.prototype.load = function (query, collection, name, constraints) {\n var _this = this;\n var relatedQuery = this.getRelation(query, this.related.entity, constraints);\n var pivotQuery = query.newQuery(this.pivot.entity);\n this.addEagerConstraintForPivot(pivotQuery, collection, this.related.entity);\n var pivots = pivotQuery.get();\n this.addEagerConstraintForRelated(relatedQuery, pivots);\n var relateds = this.mapPivotRelations(pivots, relatedQuery);\n collection.forEach(function (item) {\n var related = relateds[item[_this.parentKey]];\n item[name] = related || [];\n });\n };\n /**\n * Set the constraints for the pivot relation.\n */\n MorphedByMany.prototype.addEagerConstraintForPivot = function (query, collection, type) {\n query.whereFk(this.type, type).whereFk(this.relatedId, this.getKeys(collection, this.parentKey));\n };\n /**\n * Set the constraints for the related relation.\n */\n MorphedByMany.prototype.addEagerConstraintForRelated = function (query, collection) {\n query.whereFk(this.relatedKey, this.getKeys(collection, this.id));\n };\n /**\n * Create a new indexed map for the pivot relation.\n */\n MorphedByMany.prototype.mapPivotRelations = function (pivots, relatedQuery) {\n var _this = this;\n var relateds = this.mapManyRelations(relatedQuery.get(), this.relatedKey);\n return pivots.reduce(function (records, record) {\n var id = record[_this.relatedId];\n if (!records[id]) {\n records[id] = [];\n }\n var related = relateds[record[_this.id]];\n records[id] = records[id].concat(related);\n return records;\n }, {});\n };\n /**\n * Create pivot records for the given records if needed.\n */\n MorphedByMany.prototype.createPivots = function (parent, data, key) {\n var _this = this;\n Utils.forOwn(data[parent.entity], function (record) {\n var related = record[key];\n if (!Array.isArray(related)) {\n return;\n }\n _this.createPivotRecord(data, record, related);\n });\n return data;\n };\n /**\n * Create a pivot record.\n */\n MorphedByMany.prototype.createPivotRecord = function (data, record, related) {\n var _this = this;\n related.forEach(function (id) {\n var _a, _b;\n var parentId = record[_this.parentKey];\n var pivotKey = id + \"_\" + parentId + \"_\" + _this.related.entity;\n data[_this.pivot.entity] = __assign(__assign({}, data[_this.pivot.entity]), (_a = {}, _a[pivotKey] = (_b = {\n $id: pivotKey\n },\n _b[_this.relatedId] = parentId,\n _b[_this.id] = _this.model.getIdFromRecord(data[_this.related.entity][id]),\n _b[_this.type] = _this.related.entity,\n _b), _a));\n });\n };\n return MorphedByMany;\n}(Relation));\n\nvar Serializer = /** @class */ (function () {\n function Serializer() {\n }\n /**\n * Serialize given model fields value to json.\n */\n Serializer.serialize = function (model) {\n var _this = this;\n var keys = Object.keys(model.$fields());\n return keys.reduce(function (record, key) {\n var value = model[key];\n record[key] = _this.serializeValue(value);\n return record;\n }, {});\n };\n /**\n * Serialize given value.\n */\n Serializer.serializeValue = function (value) {\n if (value instanceof Model) {\n return this.serializeItem(value);\n }\n if (Array.isArray(value)) {\n return this.serializeCollection(value);\n }\n return value;\n };\n /**\n * Serialize an item into json.\n */\n Serializer.serializeItem = function (item) {\n return item.$toJson();\n };\n /**\n * Serialize a collection into json.\n */\n Serializer.serializeCollection = function (collection) {\n return collection.map(function (item) {\n if (item instanceof Model) {\n return item.$toJson();\n }\n return item;\n });\n };\n return Serializer;\n}());\n\nvar Model = /** @class */ (function () {\n /**\n * Create a new model instance.\n */\n function Model(record) {\n /**\n * The index ID for the model.\n */\n this.$id = null;\n this.$fill(record);\n }\n /**\n * The definition of the fields of the model and its relations.\n */\n Model.fields = function () {\n return {};\n };\n /**\n * Create an attr attribute.\n */\n Model.attr = function (value, mutator) {\n return new Attr(this, value, mutator);\n };\n /**\n * Create a string attribute.\n */\n Model.string = function (value, mutator) {\n return new String$1(this, value, mutator);\n };\n /**\n * Create a number attribute.\n */\n Model.number = function (value, mutator) {\n return new Number(this, value, mutator);\n };\n /**\n * Create a boolean attribute.\n */\n Model.boolean = function (value, mutator) {\n return new Boolean(this, value, mutator);\n };\n /**\n * Create an uid attribute.\n */\n Model.uid = function (value) {\n return new Uid$1(this, value);\n };\n /**\n * @deprecated Use `uid` attribute instead.\n */\n Model.increment = function () {\n return this.uid();\n };\n /**\n * Create a has one relationship.\n */\n Model.hasOne = function (related, foreignKey, localKey) {\n return new HasOne(this, related, foreignKey, this.localKey(localKey));\n };\n /**\n * Create a belongs to relationship.\n */\n Model.belongsTo = function (parent, foreignKey, ownerKey) {\n return new BelongsTo(this, parent, foreignKey, this.relation(parent).localKey(ownerKey));\n };\n /**\n * Create a has many relationship.\n */\n Model.hasMany = function (related, foreignKey, localKey) {\n return new HasMany(this, related, foreignKey, this.localKey(localKey));\n };\n /**\n * Create a has many by relationship.\n */\n Model.hasManyBy = function (parent, foreignKey, ownerKey) {\n return new HasManyBy(this, parent, foreignKey, this.relation(parent).localKey(ownerKey));\n };\n /**\n * Create a has many through relationship.\n */\n Model.hasManyThrough = function (related, through, firstKey, secondKey, localKey, secondLocalKey) {\n return new HasManyThrough(this, related, through, firstKey, secondKey, this.localKey(localKey), this.relation(through).localKey(secondLocalKey));\n };\n /**\n * Create a belongs to many relationship.\n */\n Model.belongsToMany = function (related, pivot, foreignPivotKey, relatedPivotKey, parentKey, relatedKey) {\n return new BelongsToMany(this, related, pivot, foreignPivotKey, relatedPivotKey, this.localKey(parentKey), this.relation(related).localKey(relatedKey));\n };\n /**\n * Create a morph to relationship.\n */\n Model.morphTo = function (id, type) {\n return new MorphTo(this, id, type);\n };\n /**\n * Create a morph one relationship.\n */\n Model.morphOne = function (related, id, type, localKey) {\n return new MorphOne(this, related, id, type, this.localKey(localKey));\n };\n /**\n * Create a morph many relationship.\n */\n Model.morphMany = function (related, id, type, localKey) {\n return new MorphMany(this, related, id, type, this.localKey(localKey));\n };\n /**\n * Create a morph to many relationship.\n */\n Model.morphToMany = function (related, pivot, relatedId, id, type, parentKey, relatedKey) {\n return new MorphToMany(this, related, pivot, relatedId, id, type, this.localKey(parentKey), this.relation(related).localKey(relatedKey));\n };\n /**\n * Create a morphed by many relationship.\n */\n Model.morphedByMany = function (related, pivot, relatedId, id, type, parentKey, relatedKey) {\n return new MorphedByMany(this, related, pivot, relatedId, id, type, this.localKey(parentKey), this.relation(related).localKey(relatedKey));\n };\n /**\n * Mutators to mutate matching fields when instantiating the model.\n */\n Model.mutators = function () {\n return {};\n };\n /**\n * Types mapping used to dispatch entities based on their discriminator field\n */\n Model.types = function () {\n return {};\n };\n /**\n * Get the database instance from the container.\n */\n Model.database = function () {\n return Container.database;\n };\n /**\n * Get the store instance from the container.\n */\n Model.store = function () {\n return this.database().store;\n };\n /**\n * Create a namespaced method name for Vuex Module from the given\n * method name.\n */\n Model.namespace = function (method) {\n return this.database().namespace + \"/\" + this.entity + \"/\" + method;\n };\n /**\n * Call Vuex Getters.\n */\n Model.getters = function (method) {\n return this.store().getters[this.namespace(method)];\n };\n /**\n * Dispatch Vuex Action.\n */\n Model.dispatch = function (method, payload) {\n return this.store().dispatch(this.namespace(method), payload);\n };\n /**\n * Commit Vuex Mutation.\n */\n Model.commit = function (callback) {\n this.store().commit(this.database().namespace + \"/$mutate\", {\n entity: this.entity,\n callback: callback\n });\n };\n /**\n * Get the Model schema definition from the cache.\n */\n Model.getFields = function () {\n if (!this.cachedFields) {\n this.cachedFields = {};\n }\n if (this.cachedFields[this.entity]) {\n return this.cachedFields[this.entity];\n }\n this.cachedFields[this.entity] = __assign({ $id: this.string(null).nullable() }, this.fields());\n return this.cachedFields[this.entity];\n };\n /**\n * Get all records.\n */\n Model.all = function () {\n return this.getters('all')();\n };\n /**\n * Find a record.\n */\n Model.find = function (id) {\n return this.getters('find')(id);\n };\n /**\n * Get the record of the given array of ids.\n */\n Model.findIn = function (idList) {\n return this.getters('findIn')(idList);\n };\n /**\n * Get query instance.\n */\n Model.query = function () {\n return this.getters('query')();\n };\n /**\n * Create new data with all fields filled by default values.\n */\n Model.new = function () {\n return this.dispatch('new');\n };\n /**\n * Save given data to the store by replacing all existing records in the\n * store. If you want to save data without replacing existing records,\n * use the `insert` method instead.\n */\n Model.create = function (payload) {\n return this.dispatch('create', payload);\n };\n /**\n * Insert records.\n */\n Model.insert = function (payload) {\n return this.dispatch('insert', payload);\n };\n /**\n * Update records.\n */\n Model.update = function (payload) {\n return this.dispatch('update', payload);\n };\n /**\n * Insert or update records.\n */\n Model.insertOrUpdate = function (payload) {\n return this.dispatch('insertOrUpdate', payload);\n };\n Model.delete = function (payload) {\n return this.dispatch('delete', payload);\n };\n /**\n * Delete all records from the store.\n */\n Model.deleteAll = function () {\n return this.dispatch('deleteAll');\n };\n /**\n * Check if the given key is the primary key. If the model has composite\n * primary key, this method is going to check if the given key is included\n * in the composite key.\n */\n Model.isPrimaryKey = function (key) {\n if (!Array.isArray(this.primaryKey)) {\n return this.primaryKey === key;\n }\n return this.primaryKey.includes(key);\n };\n /**\n * Get the id (value of primary key) from teh given record. If primary key is\n * not present, or it is invalid primary key value, which is other than\n * `string` or `number`, it's going to return `null`.\n *\n * If the model has composite key, it's going to return array of ids. If any\n * composite key missing, it will return `null`.\n */\n Model.getIdFromRecord = function (record) {\n var _this = this;\n var key = this.primaryKey;\n if (typeof key === 'string') {\n return this.getIdFromValue(record[key]);\n }\n var ids = key.reduce(function (keys, k) {\n var id = _this.getIdFromValue(record[k]);\n id !== null && keys.push(id);\n return keys;\n }, []);\n return ids.length === key.length ? ids : null;\n };\n /**\n * Get correct index id, which is `string` | `number`, from the given value.\n */\n Model.getIdFromValue = function (value) {\n if (typeof value === 'string' && value !== '') {\n return value;\n }\n if (typeof value === 'number') {\n return value;\n }\n return null;\n };\n /**\n * Get the index ID value from the given record. An index ID is a value that\n * used as a key for records within the Vuex Store.\n *\n * Most of the time, it's same as the value for the Model's primary key but\n * it's always `string`, even if the primary key value is `number`.\n *\n * If the Model has a composite primary key, each value corresponding to\n * those primary key will be stringified and become a single string value\n * such as `'[1,2]'`.\n *\n * If the primary key is not present at the given record, it returns `null`.\n * For the composite primary key, every key must exist at a given record,\n * or it will return `null`.\n */\n Model.getIndexIdFromRecord = function (record) {\n var id = this.getIdFromRecord(record);\n if (id === null) {\n return null;\n }\n if (Array.isArray(id)) {\n return JSON.stringify(id);\n }\n return String(id);\n };\n /**\n * Get local key to pass to the attributes.\n */\n Model.localKey = function (key) {\n if (key) {\n return key;\n }\n return typeof this.primaryKey === 'string' ? this.primaryKey : 'id';\n };\n /**\n * Get the model object that matches the given record type. The method is for\n * getting the correct model object when the model has any inheritance\n * children model.\n *\n * For example, if a User Model have `static types()` declared, and if you\n * pass record with `{ type: 'admin' }`, then the method will likely to\n * return SuperUser class.\n */\n Model.getModelFromRecord = function (record) {\n // If the given record is already a model instance, return the\n // model object.\n if (record instanceof this) {\n return record.$self();\n }\n // Else, get the corresponding model for the type value if there's any.\n return this.getTypeModel(record[this.typeKey]);\n };\n /**\n * Get a model from the container.\n */\n Model.relation = function (model) {\n if (typeof model !== 'string') {\n return model;\n }\n return this.database().model(model);\n };\n /**\n * Get all `belongsToMany` fields from the schema.\n */\n Model.pivotFields = function () {\n var fields = [];\n Utils.forOwn(this.getFields(), function (field, key) {\n var _a;\n if (field instanceof BelongsToMany || field instanceof MorphToMany || field instanceof MorphedByMany) {\n fields.push((_a = {}, _a[key] = field, _a));\n }\n });\n return fields;\n };\n /**\n * Check if fields contains the `belongsToMany` field type.\n */\n Model.hasPivotFields = function () {\n return this.pivotFields().length > 0;\n };\n /**\n * Check if the current model has a type definition\n */\n Model.hasTypes = function () {\n return Object.keys(this.types()).length > 0;\n };\n /**\n * Get the model corresponding to the given type name. If it can't be found,\n * it'll return `null`.\n */\n Model.getTypeModel = function (name) {\n return this.types()[name] || null;\n };\n /**\n * Given a Model, this returns the corresponding key in the InheritanceTypes mapping\n */\n Model.getTypeKeyValueFromModel = function (model) {\n var modelToCheck = model || this;\n var types = this.types();\n for (var type in types) {\n if (types[type] === modelToCheck) {\n return type;\n }\n }\n return null;\n };\n /**\n * Tries to find a Relation field in all types defined in the InheritanceTypes mapping\n */\n Model.findRelationInSubTypes = function (relationName) {\n var types = this.types();\n for (var type in types) {\n var fields = types[type].getFields();\n for (var fieldName in fields) {\n if (fieldName === relationName && fields[fieldName] instanceof Relation) {\n return fields[fieldName];\n }\n }\n }\n return null;\n };\n /**\n * Fill any missing fields in the given record with the default value defined\n * in the model schema.\n */\n Model.hydrate = function (record) {\n return (new this(record)).$toJson();\n };\n /**\n * Get the constructor of this model.\n */\n Model.prototype.$self = function () {\n return this.constructor;\n };\n /**\n * Get the primary key for the model.\n */\n Model.prototype.$primaryKey = function () {\n return this.$self().primaryKey;\n };\n /**\n * The definition of the fields of the model and its relations.\n */\n Model.prototype.$fields = function () {\n return this.$self().getFields();\n };\n /**\n * Get the store instance from the container.\n */\n Model.prototype.$store = function () {\n return this.$self().store();\n };\n /**\n * Create a namespaced method name for Vuex Module from the given\n * method name.\n */\n Model.prototype.$namespace = function (method) {\n return this.$self().namespace(method);\n };\n /**\n * Call Vuex Getetrs.\n */\n Model.prototype.$getters = function (method) {\n return this.$self().getters(method);\n };\n /**\n * Dispatch Vuex Action.\n */\n Model.prototype.$dispatch = function (method, payload) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.$self().dispatch(method, payload)];\n });\n });\n };\n /**\n * Get all records.\n */\n Model.prototype.$all = function () {\n return this.$getters('all')();\n };\n /**\n * Find a record.\n */\n Model.prototype.$find = function (id) {\n return this.$getters('find')(id);\n };\n /**\n * Find record of the given array of ids.\n */\n Model.prototype.$findIn = function (idList) {\n return this.$getters('findIn')(idList);\n };\n /**\n * Get query instance.\n */\n Model.prototype.$query = function () {\n return this.$getters('query')();\n };\n /**\n * Create records.\n */\n Model.prototype.$create = function (payload) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.$dispatch('create', payload)];\n });\n });\n };\n /**\n * Create records.\n */\n Model.prototype.$insert = function (payload) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.$dispatch('insert', payload)];\n });\n });\n };\n /**\n * Update records.\n */\n Model.prototype.$update = function (payload) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n if (Array.isArray(payload)) {\n return [2 /*return*/, this.$dispatch('update', payload)];\n }\n if (payload.where !== undefined) {\n return [2 /*return*/, this.$dispatch('update', payload)];\n }\n if (this.$self().getIndexIdFromRecord(payload) === null) {\n return [2 /*return*/, this.$dispatch('update', { where: this.$id, data: payload })];\n }\n return [2 /*return*/, this.$dispatch('update', payload)];\n });\n });\n };\n /**\n * Insert or update records.\n */\n Model.prototype.$insertOrUpdate = function (payload) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.$dispatch('insertOrUpdate', payload)];\n });\n });\n };\n /**\n * Save record.\n */\n Model.prototype.$save = function () {\n return __awaiter(this, void 0, void 0, function () {\n var fields, record, records;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n fields = this.$self().getFields();\n record = Object.keys(fields).reduce(function (record, key) {\n if (fields[key] instanceof Type) {\n record[key] = _this[key];\n }\n return record;\n }, {});\n return [4 /*yield*/, this.$dispatch('insertOrUpdate', { data: record })];\n case 1:\n records = _a.sent();\n this.$fill(records[this.$self().entity][0]);\n return [2 /*return*/, this];\n }\n });\n });\n };\n /**\n * Delete records that matches the given condition.\n */\n Model.prototype.$delete = function () {\n return __awaiter(this, void 0, void 0, function () {\n var primaryKey;\n var _this = this;\n return __generator(this, function (_a) {\n primaryKey = this.$primaryKey();\n if (!Array.isArray(primaryKey)) {\n return [2 /*return*/, this.$dispatch('delete', this[primaryKey])];\n }\n return [2 /*return*/, this.$dispatch('delete', function (model) {\n return primaryKey.every(function (id) { return model[id] === _this[id]; });\n })];\n });\n });\n };\n /**\n * Delete all records.\n */\n Model.prototype.$deleteAll = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.$dispatch('deleteAll')];\n });\n });\n };\n /**\n * Fill the model instance with the given record. If no record were passed,\n * or if the record has any missing fields, each value of the fields will\n * be filled with its default value defined at model fields definition.\n */\n Model.prototype.$fill = function (record) {\n var data = record || {};\n var fields = this.$fields();\n for (var key in fields) {\n var field = fields[key];\n var value = data[key];\n this[key] = field.make(value, data, key);\n }\n };\n /**\n * Serialize field values into json.\n */\n Model.prototype.$toJson = function () {\n return Serializer.serialize(this);\n };\n /**\n * The primary key to be used for the model.\n */\n Model.primaryKey = 'id';\n /**\n * The discriminator key to be used for the model when inheritance is used\n */\n Model.typeKey = 'type';\n /**\n * Vuex Store state definition.\n */\n Model.state = {};\n return Model;\n}());\n\nvar Getters = {\n /**\n * Create a new Query instance.\n */\n query: function (state, _getters, _rootState, rootGetters) { return function () {\n return rootGetters[state.$connection + \"/query\"](state.$name);\n }; },\n /**\n * Get all data of given entity.\n */\n all: function (state, _getters, _rootState, rootGetters) { return function () {\n return rootGetters[state.$connection + \"/all\"](state.$name);\n }; },\n /**\n * Find a data of the given entity by given id.\n */\n find: function (state, _getters, _rootState, rootGetters) { return function (id) {\n return rootGetters[state.$connection + \"/find\"](state.$name, id);\n }; },\n /**\n * Find array of data of the given entity by given ids.\n */\n findIn: function (state, _getters, _rootState, rootGetters) { return function (idList) {\n return rootGetters[state.$connection + \"/findIn\"](state.$name, idList);\n }; }\n};\n\nfunction destroy(context, payload) {\n return __awaiter(this, void 0, void 0, function () {\n var state, entity, where;\n return __generator(this, function (_a) {\n state = context.state;\n entity = state.$name;\n where = payload;\n return [2 /*return*/, context.dispatch(state.$connection + \"/delete\", { entity: entity, where: where }, { root: true })];\n });\n });\n}\n/**\n * Delete all data from the store.\n */\nfunction deleteAll(context) {\n return __awaiter(this, void 0, void 0, function () {\n var state, entity;\n return __generator(this, function (_a) {\n state = context.state;\n entity = state.$name;\n return [2 /*return*/, context.dispatch(state.$connection + \"/deleteAll\", { entity: entity }, { root: true })];\n });\n });\n}\nvar Actions = {\n /**\n * Create new data with all fields filled by default values.\n */\n new: function (context) {\n var state = context.state;\n var entity = state.$name;\n return context.dispatch(state.$connection + \"/new\", { entity: entity }, { root: true });\n },\n /**\n * Save given data to the store by replacing all existing records in the\n * store. If you want to save data without replacing existing records,\n * use the `insert` method instead.\n */\n create: function (context, payload) {\n var state = context.state;\n var entity = state.$name;\n return context.dispatch(state.$connection + \"/create\", __assign(__assign({}, payload), { entity: entity }), { root: true });\n },\n /**\n * Insert given data to the state. Unlike `create`, this method will not\n * remove existing data within the state, but it will update the data\n * with the same primary key.\n */\n insert: function (context, payload) {\n var state = context.state;\n var entity = state.$name;\n return context.dispatch(state.$connection + \"/insert\", __assign(__assign({}, payload), { entity: entity }), { root: true });\n },\n /**\n * Update data in the store.\n */\n update: function (context, payload) {\n var state = context.state;\n var entity = state.$name;\n // If the payload is an array, then the payload should be an array of\n // data so let's pass the whole payload as data.\n if (Array.isArray(payload)) {\n return context.dispatch(state.$connection + \"/update\", { entity: entity, data: payload }, { root: true });\n }\n // If the payload doesn't have `data` property, we'll assume that\n // the user has passed the object as the payload so let's define\n // the whole payload as a data.\n if (payload.data === undefined) {\n return context.dispatch(state.$connection + \"/update\", { entity: entity, data: payload }, { root: true });\n }\n // Else destructure the payload and let root action handle it.\n return context.dispatch(state.$connection + \"/update\", __assign({ entity: entity }, payload), { root: true });\n },\n /**\n * Insert or update given data to the state. Unlike `insert`, this method\n * will not replace existing data within the state, but it will update only\n * the submitted data with the same primary key.\n */\n insertOrUpdate: function (context, payload) {\n var state = context.state;\n var entity = state.$name;\n return context.dispatch(state.$connection + \"/insertOrUpdate\", __assign({ entity: entity }, payload), { root: true });\n },\n delete: destroy,\n deleteAll: deleteAll\n};\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n\n/**\n * Helpers to enable Immutable compatibility *without* bringing in\n * the 'immutable' package as a dependency.\n */\n\n/**\n * Check if an object is immutable by checking if it has a key specific\n * to the immutable library.\n *\n * @param {any} object\n * @return {bool}\n */\nfunction isImmutable(object) {\n return !!(object && typeof object.hasOwnProperty === 'function' && (object.hasOwnProperty('__ownerID') || // Immutable.Map\n object._map && object._map.hasOwnProperty('__ownerID'))); // Immutable.Record\n}\n/**\n * Denormalize an immutable entity.\n *\n * @param {Schema} schema\n * @param {Immutable.Map|Immutable.Record} input\n * @param {function} unvisit\n * @param {function} getDenormalizedEntity\n * @return {Immutable.Map|Immutable.Record}\n */\n\nfunction denormalizeImmutable(schema, input, unvisit) {\n return Object.keys(schema).reduce(function (object, key) {\n // Immutable maps cast keys to strings on write so we need to ensure\n // we're accessing them using string keys.\n var stringKey = \"\" + key;\n\n if (object.has(stringKey)) {\n return object.set(stringKey, unvisit(object.get(stringKey), schema[stringKey]));\n } else {\n return object;\n }\n }, input);\n}\n\nvar getDefaultGetId = function getDefaultGetId(idAttribute) {\n return function (input) {\n return isImmutable(input) ? input.get(idAttribute) : input[idAttribute];\n };\n};\n\nvar EntitySchema =\n/*#__PURE__*/\nfunction () {\n function EntitySchema(key, definition, options) {\n if (definition === void 0) {\n definition = {};\n }\n\n if (options === void 0) {\n options = {};\n }\n\n if (!key || typeof key !== 'string') {\n throw new Error(\"Expected a string key for Entity, but found \" + key + \".\");\n }\n\n var _options = options,\n _options$idAttribute = _options.idAttribute,\n idAttribute = _options$idAttribute === void 0 ? 'id' : _options$idAttribute,\n _options$mergeStrateg = _options.mergeStrategy,\n mergeStrategy = _options$mergeStrateg === void 0 ? function (entityA, entityB) {\n return _objectSpread({}, entityA, entityB);\n } : _options$mergeStrateg,\n _options$processStrat = _options.processStrategy,\n processStrategy = _options$processStrat === void 0 ? function (input) {\n return _objectSpread({}, input);\n } : _options$processStrat;\n this._key = key;\n this._getId = typeof idAttribute === 'function' ? idAttribute : getDefaultGetId(idAttribute);\n this._idAttribute = idAttribute;\n this._mergeStrategy = mergeStrategy;\n this._processStrategy = processStrategy;\n this.define(definition);\n }\n\n var _proto = EntitySchema.prototype;\n\n _proto.define = function define(definition) {\n this.schema = Object.keys(definition).reduce(function (entitySchema, key) {\n var _objectSpread2;\n\n var schema = definition[key];\n return _objectSpread({}, entitySchema, (_objectSpread2 = {}, _objectSpread2[key] = schema, _objectSpread2));\n }, this.schema || {});\n };\n\n _proto.getId = function getId(input, parent, key) {\n return this._getId(input, parent, key);\n };\n\n _proto.merge = function merge(entityA, entityB) {\n return this._mergeStrategy(entityA, entityB);\n };\n\n _proto.normalize = function normalize(input, parent, key, visit, addEntity, visitedEntities) {\n var _this = this;\n\n if (visitedEntities.some(function (entity) {\n return entity === input;\n })) {\n return this.getId(input, parent, key);\n }\n\n visitedEntities.push(input);\n\n var processedEntity = this._processStrategy(input, parent, key);\n\n Object.keys(this.schema).forEach(function (key) {\n if (processedEntity.hasOwnProperty(key) && typeof processedEntity[key] === 'object') {\n var schema = _this.schema[key];\n processedEntity[key] = visit(processedEntity[key], processedEntity, key, schema, addEntity, visitedEntities);\n }\n });\n addEntity(this, processedEntity, input, parent, key);\n return this.getId(input, parent, key);\n };\n\n _proto.denormalize = function denormalize(entity, unvisit) {\n var _this2 = this;\n\n if (isImmutable(entity)) {\n return denormalizeImmutable(this.schema, entity, unvisit);\n }\n\n Object.keys(this.schema).forEach(function (key) {\n if (entity.hasOwnProperty(key)) {\n var schema = _this2.schema[key];\n entity[key] = unvisit(entity[key], schema);\n }\n });\n return entity;\n };\n\n _createClass(EntitySchema, [{\n key: \"key\",\n get: function get() {\n return this._key;\n }\n }, {\n key: \"idAttribute\",\n get: function get() {\n return this._idAttribute;\n }\n }]);\n\n return EntitySchema;\n}();\n\nvar PolymorphicSchema =\n/*#__PURE__*/\nfunction () {\n function PolymorphicSchema(definition, schemaAttribute) {\n if (schemaAttribute) {\n this._schemaAttribute = typeof schemaAttribute === 'string' ? function (input) {\n return input[schemaAttribute];\n } : schemaAttribute;\n }\n\n this.define(definition);\n }\n\n var _proto = PolymorphicSchema.prototype;\n\n _proto.define = function define(definition) {\n this.schema = definition;\n };\n\n _proto.getSchemaAttribute = function getSchemaAttribute(input, parent, key) {\n return !this.isSingleSchema && this._schemaAttribute(input, parent, key);\n };\n\n _proto.inferSchema = function inferSchema(input, parent, key) {\n if (this.isSingleSchema) {\n return this.schema;\n }\n\n var attr = this.getSchemaAttribute(input, parent, key);\n return this.schema[attr];\n };\n\n _proto.normalizeValue = function normalizeValue(value, parent, key, visit, addEntity, visitedEntities) {\n var schema = this.inferSchema(value, parent, key);\n\n if (!schema) {\n return value;\n }\n\n var normalizedValue = visit(value, parent, key, schema, addEntity, visitedEntities);\n return this.isSingleSchema || normalizedValue === undefined || normalizedValue === null ? normalizedValue : {\n id: normalizedValue,\n schema: this.getSchemaAttribute(value, parent, key)\n };\n };\n\n _proto.denormalizeValue = function denormalizeValue(value, unvisit) {\n var schemaKey = isImmutable(value) ? value.get('schema') : value.schema;\n\n if (!this.isSingleSchema && !schemaKey) {\n return value;\n }\n\n var id = isImmutable(value) ? value.get('id') : value.id;\n var schema = this.isSingleSchema ? this.schema : this.schema[schemaKey];\n return unvisit(id || value, schema);\n };\n\n _createClass(PolymorphicSchema, [{\n key: \"isSingleSchema\",\n get: function get() {\n return !this._schemaAttribute;\n }\n }]);\n\n return PolymorphicSchema;\n}();\n\nvar UnionSchema =\n/*#__PURE__*/\nfunction (_PolymorphicSchema) {\n _inheritsLoose(UnionSchema, _PolymorphicSchema);\n\n function UnionSchema(definition, schemaAttribute) {\n if (!schemaAttribute) {\n throw new Error('Expected option \"schemaAttribute\" not found on UnionSchema.');\n }\n\n return _PolymorphicSchema.call(this, definition, schemaAttribute) || this;\n }\n\n var _proto = UnionSchema.prototype;\n\n _proto.normalize = function normalize(input, parent, key, visit, addEntity, visitedEntities) {\n return this.normalizeValue(input, parent, key, visit, addEntity, visitedEntities);\n };\n\n _proto.denormalize = function denormalize(input, unvisit) {\n return this.denormalizeValue(input, unvisit);\n };\n\n return UnionSchema;\n}(PolymorphicSchema);\n\nvar ValuesSchema =\n/*#__PURE__*/\nfunction (_PolymorphicSchema) {\n _inheritsLoose(ValuesSchema, _PolymorphicSchema);\n\n function ValuesSchema() {\n return _PolymorphicSchema.apply(this, arguments) || this;\n }\n\n var _proto = ValuesSchema.prototype;\n\n _proto.normalize = function normalize(input, parent, key, visit, addEntity, visitedEntities) {\n var _this = this;\n\n return Object.keys(input).reduce(function (output, key, index) {\n var _objectSpread2;\n\n var value = input[key];\n return value !== undefined && value !== null ? _objectSpread({}, output, (_objectSpread2 = {}, _objectSpread2[key] = _this.normalizeValue(value, input, key, visit, addEntity, visitedEntities), _objectSpread2)) : output;\n }, {});\n };\n\n _proto.denormalize = function denormalize(input, unvisit) {\n var _this2 = this;\n\n return Object.keys(input).reduce(function (output, key) {\n var _objectSpread3;\n\n var entityOrId = input[key];\n return _objectSpread({}, output, (_objectSpread3 = {}, _objectSpread3[key] = _this2.denormalizeValue(entityOrId, unvisit), _objectSpread3));\n }, {});\n };\n\n return ValuesSchema;\n}(PolymorphicSchema);\n\nvar validateSchema = function validateSchema(definition) {\n var isArray = Array.isArray(definition);\n\n if (isArray && definition.length > 1) {\n throw new Error(\"Expected schema definition to be a single schema, but found \" + definition.length + \".\");\n }\n\n return definition[0];\n};\n\nvar getValues = function getValues(input) {\n return Array.isArray(input) ? input : Object.keys(input).map(function (key) {\n return input[key];\n });\n};\n\nvar normalize = function normalize(schema, input, parent, key, visit, addEntity, visitedEntities) {\n schema = validateSchema(schema);\n var values = getValues(input); // Special case: Arrays pass *their* parent on to their children, since there\n // is not any special information that can be gathered from themselves directly\n\n return values.map(function (value, index) {\n return visit(value, parent, key, schema, addEntity, visitedEntities);\n });\n};\n\nvar ArraySchema =\n/*#__PURE__*/\nfunction (_PolymorphicSchema) {\n _inheritsLoose(ArraySchema, _PolymorphicSchema);\n\n function ArraySchema() {\n return _PolymorphicSchema.apply(this, arguments) || this;\n }\n\n var _proto = ArraySchema.prototype;\n\n _proto.normalize = function normalize(input, parent, key, visit, addEntity, visitedEntities) {\n var _this = this;\n\n var values = getValues(input);\n return values.map(function (value, index) {\n return _this.normalizeValue(value, parent, key, visit, addEntity, visitedEntities);\n }).filter(function (value) {\n return value !== undefined && value !== null;\n });\n };\n\n _proto.denormalize = function denormalize(input, unvisit) {\n var _this2 = this;\n\n return input && input.map ? input.map(function (value) {\n return _this2.denormalizeValue(value, unvisit);\n }) : input;\n };\n\n return ArraySchema;\n}(PolymorphicSchema);\n\nvar _normalize = function normalize(schema, input, parent, key, visit, addEntity, visitedEntities) {\n var object = _objectSpread({}, input);\n\n Object.keys(schema).forEach(function (key) {\n var localSchema = schema[key];\n var value = visit(input[key], input, key, localSchema, addEntity, visitedEntities);\n\n if (value === undefined || value === null) {\n delete object[key];\n } else {\n object[key] = value;\n }\n });\n return object;\n};\n\nvar _denormalize = function denormalize(schema, input, unvisit) {\n if (isImmutable(input)) {\n return denormalizeImmutable(schema, input, unvisit);\n }\n\n var object = _objectSpread({}, input);\n\n Object.keys(schema).forEach(function (key) {\n if (object[key] != null) {\n object[key] = unvisit(object[key], schema[key]);\n }\n });\n return object;\n};\n\nvar ObjectSchema =\n/*#__PURE__*/\nfunction () {\n function ObjectSchema(definition) {\n this.define(definition);\n }\n\n var _proto = ObjectSchema.prototype;\n\n _proto.define = function define(definition) {\n this.schema = Object.keys(definition).reduce(function (entitySchema, key) {\n var _objectSpread2;\n\n var schema = definition[key];\n return _objectSpread({}, entitySchema, (_objectSpread2 = {}, _objectSpread2[key] = schema, _objectSpread2));\n }, this.schema || {});\n };\n\n _proto.normalize = function normalize() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _normalize.apply(void 0, [this.schema].concat(args));\n };\n\n _proto.denormalize = function denormalize() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return _denormalize.apply(void 0, [this.schema].concat(args));\n };\n\n return ObjectSchema;\n}();\n\nvar visit = function visit(value, parent, key, schema, addEntity, visitedEntities) {\n if (typeof value !== 'object' || !value) {\n return value;\n }\n\n if (typeof schema === 'object' && (!schema.normalize || typeof schema.normalize !== 'function')) {\n var method = Array.isArray(schema) ? normalize : _normalize;\n return method(schema, value, parent, key, visit, addEntity, visitedEntities);\n }\n\n return schema.normalize(value, parent, key, visit, addEntity, visitedEntities);\n};\n\nvar addEntities = function addEntities(entities) {\n return function (schema, processedEntity, value, parent, key) {\n var schemaKey = schema.key;\n var id = schema.getId(value, parent, key);\n\n if (!(schemaKey in entities)) {\n entities[schemaKey] = {};\n }\n\n var existingEntity = entities[schemaKey][id];\n\n if (existingEntity) {\n entities[schemaKey][id] = schema.merge(existingEntity, processedEntity);\n } else {\n entities[schemaKey][id] = processedEntity;\n }\n };\n};\n\nvar schema = {\n Array: ArraySchema,\n Entity: EntitySchema,\n Object: ObjectSchema,\n Union: UnionSchema,\n Values: ValuesSchema\n};\nvar normalize$1 = function normalize(input, schema) {\n if (!input || typeof input !== 'object') {\n throw new Error(\"Unexpected input given to normalize. Expected type to be \\\"object\\\", found \\\"\" + typeof input + \"\\\".\");\n }\n\n var entities = {};\n var addEntity = addEntities(entities);\n var visitedEntities = [];\n var result = visit(input, input, null, schema, addEntity, visitedEntities);\n return {\n entities: entities,\n result: result\n };\n};\n\nvar Normalizer = /** @class */ (function () {\n function Normalizer() {\n }\n /**\n * Normalize the data given data.\n */\n Normalizer.process = function (query, record) {\n if (Utils.isEmpty(record)) {\n return {};\n }\n var entity = query.database().schemas[query.model.entity];\n var schema = Array.isArray(record) ? [entity] : entity;\n return normalize$1(record, schema).entities;\n };\n return Normalizer;\n}());\n\nvar PivotCreator = /** @class */ (function () {\n function PivotCreator() {\n }\n /**\n * Create an intermediate entity if the data contains any entities that\n * require it for example `belongsTo` or `morphMany`.\n */\n PivotCreator.process = function (query, data) {\n Object.keys(data).forEach(function (entity) {\n var model = query.getModel(entity);\n if (model.hasPivotFields()) {\n Utils.forOwn(model.pivotFields(), function (field) {\n Utils.forOwn(field, function (attr, key) { attr.createPivots(model, data, key); });\n });\n }\n });\n return data;\n };\n return PivotCreator;\n}());\n\nvar Attacher = /** @class */ (function () {\n function Attacher() {\n }\n /**\n * Attach missing relational key to the records.\n */\n Attacher.process = function (query, data) {\n Utils.forOwn(data, function (entity, name) {\n var fields = query.getModel(name).fields();\n Utils.forOwn(entity, function (record) {\n Utils.forOwn(record, function (value, key) {\n var field = fields[key];\n if (field instanceof Relation) {\n value !== null && field.attach(value, record, data);\n }\n });\n });\n });\n return data;\n };\n return Attacher;\n}());\n\nvar Processor = /** @class */ (function () {\n function Processor() {\n }\n /**\n * Normalize the given data.\n */\n Processor.normalize = function (query, record) {\n // First, let's normalize the data.\n var data = Normalizer.process(query, record);\n // Then, attach any missing foreign keys. For example, if a User has many\n // Post nested but without foreign key such as `user_id`, we can attach\n // the `user_id` value to the Post entities.\n data = Attacher.process(query, data);\n // Now we'll create any missing pivot entities for relationships such as\n // `belongsTo` or `morphMany`.\n data = PivotCreator.process(query, data);\n // And we'll return the result as a normalized data.\n return data;\n };\n return Processor;\n}());\n\nvar WhereFilter = /** @class */ (function () {\n function WhereFilter() {\n }\n /**\n * Filter the given data by registered where clause.\n */\n WhereFilter.filter = function (query, records) {\n var _this = this;\n if (query.wheres.length === 0) {\n return records;\n }\n return records.filter(function (record) { return _this.check(query, record); });\n };\n /**\n * Checks if given Record matches the registered where clause.\n */\n WhereFilter.check = function (query, record) {\n var whereTypes = Utils.groupBy(query.wheres, function (where) { return where.boolean; });\n var comparator = this.getComparator(query, record);\n var results = [];\n whereTypes.and && results.push(whereTypes.and.every(comparator));\n whereTypes.or && results.push(whereTypes.or.some(comparator));\n return results.indexOf(true) !== -1;\n };\n /**\n * Get comparator for the where clause.\n */\n WhereFilter.getComparator = function (query, record) {\n var _this = this;\n return function (where) {\n // Function with Record and Query as argument.\n if (typeof where.field === 'function') {\n var newQuery = new Query(query.rootState, query.entity);\n var result = _this.executeWhereClosure(newQuery, record, where.field);\n if (typeof result === 'boolean') {\n return result;\n }\n // If closure returns undefined, we need to execute the local query.\n var matchingRecords = newQuery.get();\n // And check if current record is part of the result.\n return !Utils.isEmpty(matchingRecords.filter(function (rec) {\n return rec['$id'] === record['$id'];\n }));\n }\n // Function with Record value as argument.\n if (typeof where.value === 'function') {\n return where.value(record[where.field]);\n }\n // Check if field value is in given where Array.\n if (Array.isArray(where.value)) {\n return where.value.indexOf(record[where.field]) !== -1;\n }\n // Simple equal check.\n return record[where.field] === where.value;\n };\n };\n /**\n * Execute where closure.\n */\n WhereFilter.executeWhereClosure = function (query, record, closure) {\n if (closure.length !== 3) {\n return closure(record, query);\n }\n var model = new query.model(record);\n return closure(record, query, model);\n };\n return WhereFilter;\n}());\n\nvar OrderByFilter = /** @class */ (function () {\n function OrderByFilter() {\n }\n /**\n * Sort the given data by registered orders.\n */\n OrderByFilter.filter = function (query, records) {\n if (query.orders.length === 0) {\n return records;\n }\n var keys = query.orders.map(function (order) { return order.key; });\n var directions = query.orders.map(function (order) { return order.direction; });\n return Utils.orderBy(records, keys, directions);\n };\n return OrderByFilter;\n}());\n\nvar LimitFilter = /** @class */ (function () {\n function LimitFilter() {\n }\n /**\n * Limit the given records by the lmilt and offset.\n */\n LimitFilter.filter = function (query, records) {\n return records.slice(query.offsetNumber, query.offsetNumber + query.limitNumber);\n };\n return LimitFilter;\n}());\n\nvar Filter = /** @class */ (function () {\n function Filter() {\n }\n /**\n * Filter the given data by registered where clause.\n */\n Filter.where = function (query, records) {\n return WhereFilter.filter(query, records);\n };\n /**\n * Sort the given data by registered orders.\n */\n Filter.orderBy = function (query, records) {\n return OrderByFilter.filter(query, records);\n };\n /**\n * Limit the given records by the lmilt and offset.\n */\n Filter.limit = function (query, records) {\n return LimitFilter.filter(query, records);\n };\n return Filter;\n}());\n\nvar Loader = /** @class */ (function () {\n function Loader() {\n }\n /**\n * Set the relationships that should be eager loaded with the query.\n */\n Loader.with = function (query, name, constraint) {\n var _this = this;\n // If the name of the relation is `*`, we'll load all relationships.\n if (name === '*') {\n this.withAll(query);\n return;\n }\n // If we passed an array, we dispatch the bits to with queries.\n if (Array.isArray(name)) {\n name.forEach(function (relationName) { return _this.with(query, relationName, constraint); });\n return;\n }\n // Else parse relations and set appropriate constraints.\n this.parseWithRelations(query, name.split('.'), constraint);\n };\n /**\n * Set all relationships to be eager loaded with the query.\n */\n Loader.withAll = function (query, constraint) {\n if (constraint === void 0) { constraint = function () { return null; }; }\n var fields = query.model.getFields();\n for (var field in fields) {\n fields[field] instanceof Relation && this.with(query, field, constraint);\n }\n };\n /**\n * Set relationships to be recursively eager loaded with the query.\n */\n Loader.withAllRecursive = function (query, depth) {\n this.withAll(query, function (relatedQuery) {\n depth > 0 && relatedQuery.withAllRecursive(depth - 1);\n });\n };\n /**\n * Set eager load relation and constraint.\n */\n Loader.setEagerLoad = function (query, name, constraint) {\n if (constraint === void 0) { constraint = null; }\n if (!query.load[name]) {\n query.load[name] = [];\n }\n constraint && query.load[name].push(constraint);\n };\n /**\n * Parse a list of relations into individuals.\n */\n Loader.parseWithRelations = function (query, relations, constraint) {\n var _this = this;\n // First we'll get the very first relationship from teh whole relations.\n var relation = relations[0];\n // If the first relation has \"or\" syntax which is `|` for example\n // `posts|videos`, set each of them as separate eager load.\n relation.split('|').forEach(function (name) {\n // If there's only one relationship in relations array, that means\n // there's no nested relationship. So we'll set the given\n // constraint to the relationship loading.\n if (relations.length === 1) {\n _this.setEagerLoad(query, name, constraint);\n return;\n }\n // Else we'll skip adding constraint because the constraint has to be\n // applied to the nested relationship. We'll let `addNestedWiths`\n // method to handle that later.\n _this.setEagerLoad(query, name);\n });\n // If the given relations only contains a single name, which means it\n // doesn't have any nested relations such as `posts.comments`, we\n // don't need go farther so return here.\n if (relations.length === 1) {\n return;\n }\n // Finally, we shift the first relation from the array and handle lest\n // of relations as a nested relation.\n relations.shift();\n this.addNestedWiths(query, relation, relations, constraint);\n };\n /**\n * Parse the nested relationships in a relation.\n */\n Loader.addNestedWiths = function (query, name, children, constraint) {\n this.setEagerLoad(query, name, function (nestedQuery) {\n nestedQuery.with(children.join('.'), constraint);\n });\n };\n /**\n * Eager load the relationships for the given collection.\n */\n Loader.eagerLoadRelations = function (query, collection) {\n var fields = query.model.getFields();\n for (var name_1 in query.load) {\n var constraints = query.load[name_1];\n var relation = fields[name_1];\n if (relation instanceof Relation) {\n relation.load(query, collection, name_1, constraints);\n continue;\n }\n // If no relation was found on the query, it might be run on the\n // base entity of a hierarchy. In this case, we try looking up\n // the relation on the derived entities\n if (query.model.hasTypes()) {\n var candidateRelation = query.model.findRelationInSubTypes(name_1);\n if (candidateRelation !== null) {\n candidateRelation.load(query, collection, name_1, constraints);\n }\n }\n }\n };\n return Loader;\n}());\n\nvar Rollcaller = /** @class */ (function () {\n function Rollcaller() {\n }\n /**\n * Set where constraint based on relationship existence.\n */\n Rollcaller.has = function (query, relation, operator, count) {\n this.setHas(query, relation, 'exists', operator, count);\n };\n /**\n * Set where constraint based on relationship absence.\n */\n Rollcaller.hasNot = function (query, relation, operator, count) {\n this.setHas(query, relation, 'doesntExist', operator, count);\n };\n /**\n * Add where has condition.\n */\n Rollcaller.whereHas = function (query, relation, constraint) {\n this.setHas(query, relation, 'exists', undefined, undefined, constraint);\n };\n /**\n * Add where has not condition.\n */\n Rollcaller.whereHasNot = function (query, relation, constraint) {\n this.setHas(query, relation, 'doesntExist', undefined, undefined, constraint);\n };\n /**\n * Set `has` condition.\n */\n Rollcaller.setHas = function (query, relation, type, operator, count, constraint) {\n if (operator === void 0) { operator = '>='; }\n if (count === void 0) { count = 1; }\n if (constraint === void 0) { constraint = null; }\n if (typeof operator === 'number') {\n query.have.push({ relation: relation, type: type, operator: '>=', count: operator, constraint: constraint });\n return;\n }\n query.have.push({ relation: relation, type: type, operator: operator, count: count, constraint: constraint });\n };\n /**\n * Convert `has` conditions to where clause. It will check any relationship\n * existence, or absence for the records then set ids of the records that\n * matched the condition to `where` clause.\n *\n * This way, when the query gets executed, only those records that matched\n * the `has` condition get retrieved. In the future, once relationship index\n * mapping is implemented, we can simply do all checks inside the where\n * filter since we can treat `has` condition as usual `where` condition.\n *\n * For now, since we must fetch any relationship by eager loading them, due\n * to performance concern, we'll apply `has` conditions this way to gain\n * maximum performance.\n */\n Rollcaller.applyConstraints = function (query) {\n if (query.have.length === 0) {\n return;\n }\n var newQuery = query.newQuery();\n this.addHasWhereConstraints(query, newQuery);\n this.addHasConstraints(query, newQuery.get());\n };\n /**\n * Add has constraints to the given query. It's going to set all relationship\n * as `with` alongside with its closure constraints.\n */\n Rollcaller.addHasWhereConstraints = function (query, newQuery) {\n query.have.forEach(function (constraint) {\n newQuery.with(constraint.relation, constraint.constraint);\n });\n };\n /**\n * Add has constraints as where clause.\n */\n Rollcaller.addHasConstraints = function (query, collection) {\n var comparators = this.getComparators(query);\n var ids = [];\n collection.forEach(function (model) {\n if (comparators.every(function (comparator) { return comparator(model); })) {\n ids.push(model.$self().getIdFromRecord(model));\n }\n });\n query.whereIdIn(ids);\n };\n /**\n * Get comparators for the has clause.\n */\n Rollcaller.getComparators = function (query) {\n var _this = this;\n return query.have.map(function (constraint) { return _this.getComparator(constraint); });\n };\n /**\n * Get a comparator for the has clause.\n */\n Rollcaller.getComparator = function (constraint) {\n var _this = this;\n var compare = this.getCountComparator(constraint.operator);\n return function (model) {\n var count = _this.getRelationshipCount(model[constraint.relation]);\n var result = compare(count, constraint.count);\n return constraint.type === 'exists' ? result : !result;\n };\n };\n /**\n * Get count of the relationship.\n */\n Rollcaller.getRelationshipCount = function (relation) {\n if (Array.isArray(relation)) {\n return relation.length;\n }\n return relation ? 1 : 0;\n };\n /**\n * Get comparator function for the `has` clause.\n */\n Rollcaller.getCountComparator = function (operator) {\n switch (operator) {\n case '=':\n return function (x, y) { return x === y; };\n case '>':\n return function (x, y) { return x > y; };\n case '>=':\n return function (x, y) { return x >= y; };\n case '<':\n return function (x, y) { return x > 0 && x < y; };\n case '<=':\n return function (x, y) { return x > 0 && x <= y; };\n default:\n return function (x, y) { return x === y; };\n }\n };\n return Rollcaller;\n}());\n\nvar Query = /** @class */ (function () {\n /**\n * Create a new Query instance.\n */\n function Query(state, entity) {\n /**\n * This flag lets us know if current Query instance applies to\n * a base class or not (in order to know when to filter out\n * some records).\n */\n this.appliedOnBase = true;\n /**\n * Primary key ids to filter records by. It is used for filtering records\n * direct key lookup when a user is trying to fetch records by its\n * primary key.\n *\n * It should not be used if there is a logic which prevents index usage, for\n * example, an \"or\" condition which already requires a full scan of records.\n */\n this.idFilter = null;\n /**\n * Whether to use `idFilter` key lookup. True if there is a logic which\n * prevents index usage, for example, an \"or\" condition which already\n * requires full scan.\n */\n this.cancelIdFilter = false;\n /**\n * Primary key ids to filter joined records. It is used for filtering\n * records direct key lookup. It should not be cancelled, because it\n * is free from the effects of normal where methods.\n */\n this.joinedIdFilter = null;\n /**\n * The where constraints for the query.\n */\n this.wheres = [];\n /**\n * The has constraints for the query.\n */\n this.have = [];\n /**\n * The orders of the query result.\n */\n this.orders = [];\n /**\n * Number of results to skip.\n */\n this.offsetNumber = 0;\n /**\n * Maximum number of records to return.\n *\n * We use polyfill of `Number.MAX_SAFE_INTEGER` for IE11 here.\n */\n this.limitNumber = Math.pow(2, 53) - 1;\n /**\n * The relationships that should be eager loaded with the result.\n */\n this.load = {};\n // All entitites with same base class are stored in the same state.\n var baseModel = this.getBaseModel(entity);\n this.rootState = state;\n this.state = state[baseModel.entity];\n this.entity = entity;\n this.model = this.getModel(entity);\n this.appliedOnBase = baseModel.entity === entity;\n }\n /**\n * Get the database from the container.\n */\n Query.database = function () {\n return Container.database;\n };\n /**\n * Get model of given name from the container.\n */\n Query.getModel = function (name) {\n return this.database().model(name);\n };\n /**\n * Get base model of given name from the container.\n */\n Query.getBaseModel = function (name) {\n return this.database().baseModel(name);\n };\n /**\n * Get all models from the container.\n */\n Query.getModels = function () {\n return this.database().models();\n };\n /**\n * Delete all records from the store.\n */\n Query.deleteAll = function (state) {\n var models = this.getModels();\n for (var entity in models) {\n state[entity] && (new this(state, entity)).deleteAll();\n }\n };\n /**\n * Register a global hook. It will return ID for the hook that users may use\n * it to unregister hooks.\n */\n Query.on = function (on, callback) {\n var id = ++this.lastHookId;\n if (!this.hooks[on]) {\n this.hooks[on] = [];\n }\n this.hooks[on].push({ id: id, callback: callback });\n return id;\n };\n /**\n * Unregister global hook with the given id.\n */\n Query.off = function (id) {\n var _this = this;\n return Object.keys(this.hooks).some(function (on) {\n var hooks = _this.hooks[on];\n var index = hooks.findIndex(function (h) { return h.id === id; });\n if (index === -1) {\n return false;\n }\n hooks.splice(index, 1);\n return true;\n });\n };\n /**\n * Get query class.\n */\n Query.prototype.self = function () {\n return this.constructor;\n };\n /**\n * Create a new query instance.\n */\n Query.prototype.newQuery = function (entity) {\n entity = entity || this.entity;\n return (new Query(this.rootState, entity));\n };\n /**\n * Get the database from the container.\n */\n Query.prototype.database = function () {\n return this.self().database();\n };\n /**\n * Get model of given name from the container.\n */\n Query.prototype.getModel = function (name) {\n var entity = name || this.entity;\n return this.self().getModel(entity);\n };\n /**\n * Get all models from the container.\n */\n Query.prototype.getModels = function () {\n return this.self().getModels();\n };\n /**\n * Get base model of given name from the container.\n */\n Query.prototype.getBaseModel = function (name) {\n return this.self().getBaseModel(name);\n };\n /**\n * Returns all record of the query chain result. This method is alias\n * of the `get` method.\n */\n Query.prototype.all = function () {\n return this.get();\n };\n /**\n * Find the record by the given id.\n */\n Query.prototype.find = function (id) {\n var indexId = Array.isArray(id) ? JSON.stringify(id) : id;\n var record = this.state.data[indexId];\n if (!record) {\n return null;\n }\n return this.item(this.hydrate(record));\n };\n /**\n * Get the record of the given array of ids.\n */\n Query.prototype.findIn = function (idList) {\n var _this = this;\n return idList.reduce(function (collection, id) {\n var indexId = Array.isArray(id) ? JSON.stringify(id) : id;\n var record = _this.state.data[indexId];\n if (!record) {\n return collection;\n }\n collection.push(_this.hydrate(record));\n return collection;\n }, []);\n };\n /**\n * Returns all record of the query chain result.\n */\n Query.prototype.get = function () {\n var records = this.select();\n return this.collect(records);\n };\n /**\n * Returns the first record of the query chain result.\n */\n Query.prototype.first = function () {\n var records = this.select();\n if (records.length === 0) {\n return null;\n }\n return this.item(this.hydrate(records[0]));\n };\n /**\n * Returns the last record of the query chain result.\n */\n Query.prototype.last = function () {\n var records = this.select();\n if (records.length === 0) {\n return null;\n }\n return this.item(this.hydrate(records[records.length - 1]));\n };\n /**\n * Add a and where clause to the query.\n */\n Query.prototype.where = function (field, value) {\n if (this.isIdfilterable(field)) {\n this.setIdFilter(value);\n }\n this.wheres.push({ field: field, value: value, boolean: 'and' });\n return this;\n };\n /**\n * Add a or where clause to the query.\n */\n Query.prototype.orWhere = function (field, value) {\n // Cacncel id filter usage, since \"or\" needs full scan.\n this.cancelIdFilter = true;\n this.wheres.push({ field: field, value: value, boolean: 'or' });\n return this;\n };\n /**\n * Filter records by their primary key.\n */\n Query.prototype.whereId = function (value) {\n return this.where(this.model.primaryKey, value);\n };\n /**\n * Filter records by their primary keys.\n */\n Query.prototype.whereIdIn = function (values) {\n return this.where(this.model.primaryKey, values);\n };\n /**\n * Fast comparison for foreign keys. If the foreign key is the primary key,\n * it uses object lookup, fallback normal where otherwise.\n *\n * Why separate `whereFk` instead of just `where`? Additional logic needed\n * for the distinction between where and orWhere in normal queries, but\n * Fk lookups are always \"and\" type.\n */\n Query.prototype.whereFk = function (field, value) {\n var values = Array.isArray(value) ? value : [value];\n // If lookup filed is the primary key. Initialize or get intersection,\n // because boolean and could have a condition such as\n // `whereId(1).whereId(2).get()`.\n if (field === this.model.primaryKey) {\n this.setJoinedIdFilter(values);\n return this;\n }\n // Else fallback to normal where.\n this.where(field, values);\n return this;\n };\n /**\n * Check whether the given field and value combination is filterable through\n * primary key direct look up.\n */\n Query.prototype.isIdfilterable = function (field) {\n return field === this.model.primaryKey && !this.cancelIdFilter;\n };\n /**\n * Set id filter for the given where condition.\n */\n Query.prototype.setIdFilter = function (value) {\n var _this = this;\n var values = Array.isArray(value) ? value : [value];\n // Initialize or get intersection, because boolean and could have a\n // condition such as `whereIdIn([1,2,3]).whereIdIn([1,2]).get()`.\n if (this.idFilter === null) {\n this.idFilter = new Set(values);\n return;\n }\n this.idFilter = new Set(values.filter(function (v) { return _this.idFilter.has(v); }));\n };\n /**\n * Set joined id filter for the given where condition.\n */\n Query.prototype.setJoinedIdFilter = function (values) {\n var _this = this;\n // Initialize or get intersection, because boolean and could have a\n // condition such as `whereId(1).whereId(2).get()`.\n if (this.joinedIdFilter === null) {\n this.joinedIdFilter = new Set(values);\n return;\n }\n this.joinedIdFilter = new Set(values.filter(function (v) { return _this.joinedIdFilter.has(v); }));\n };\n /**\n * Add an order to the query.\n */\n Query.prototype.orderBy = function (key, direction) {\n if (direction === void 0) { direction = 'asc'; }\n this.orders.push({ key: key, direction: direction });\n return this;\n };\n /**\n * Add an offset to the query.\n */\n Query.prototype.offset = function (offset) {\n this.offsetNumber = offset;\n return this;\n };\n /**\n * Add limit to the query.\n */\n Query.prototype.limit = function (limit) {\n this.limitNumber = limit;\n return this;\n };\n /**\n * Set the relationships that should be loaded.\n */\n Query.prototype.with = function (name, constraint) {\n if (constraint === void 0) { constraint = null; }\n Loader.with(this, name, constraint);\n return this;\n };\n /**\n * Query all relations.\n */\n Query.prototype.withAll = function () {\n Loader.withAll(this);\n return this;\n };\n /**\n * Query all relations recursively.\n */\n Query.prototype.withAllRecursive = function (depth) {\n if (depth === void 0) { depth = 3; }\n Loader.withAllRecursive(this, depth);\n return this;\n };\n /**\n * Set where constraint based on relationship existence.\n */\n Query.prototype.has = function (relation, operator, count) {\n Rollcaller.has(this, relation, operator, count);\n return this;\n };\n /**\n * Set where constraint based on relationship absence.\n */\n Query.prototype.hasNot = function (relation, operator, count) {\n Rollcaller.hasNot(this, relation, operator, count);\n return this;\n };\n /**\n * Add where has condition.\n */\n Query.prototype.whereHas = function (relation, constraint) {\n Rollcaller.whereHas(this, relation, constraint);\n return this;\n };\n /**\n * Add where has not condition.\n */\n Query.prototype.whereHasNot = function (relation, constraint) {\n Rollcaller.whereHasNot(this, relation, constraint);\n return this;\n };\n /**\n * Get all records from the state and convert them into the array of\n * model instances.\n */\n Query.prototype.records = function () {\n var _this = this;\n this.finalizeIdFilter();\n return this.getIdsToLookup().reduce(function (models, id) {\n var record = _this.state.data[id];\n if (!record) {\n return models;\n }\n var model = _this.hydrate(record);\n // Ignore if the model is not current type of model.\n if (!_this.appliedOnBase && !(model instanceof _this.model)) {\n return models;\n }\n models.push(model);\n return models;\n }, []);\n };\n /**\n * Check whether if id filters should on select. If not, clear out id filter.\n */\n Query.prototype.finalizeIdFilter = function () {\n if (!this.cancelIdFilter || this.idFilter === null) {\n return;\n }\n this.where(this.model.primaryKey, Array.from(this.idFilter.values()));\n this.idFilter = null;\n };\n /**\n * Get a list of id that should be used to lookup when fetching records\n * from the state.\n */\n Query.prototype.getIdsToLookup = function () {\n var _this = this;\n // If both id filter and joined id filter are set, intersect them.\n if (this.idFilter && this.joinedIdFilter) {\n return Array.from(this.idFilter.values()).filter(function (id) {\n return _this.joinedIdFilter.has(id);\n });\n }\n // If only either one is set, return which one is set.\n if (this.idFilter || this.joinedIdFilter) {\n return Array.from((this.idFilter || this.joinedIdFilter).values());\n }\n // If none is set, return all keys.\n return Object.keys(this.state.data);\n };\n /**\n * Process the query and filter data.\n */\n Query.prototype.select = function () {\n // At first, well apply any `has` condition to the query.\n Rollcaller.applyConstraints(this);\n // Next, get all record as an array and then start filtering it through.\n var records = this.records();\n // Process `beforeSelect` hook.\n records = this.executeRetrieveHook('beforeSelect', records);\n // Let's filter the records at first by the where clauses.\n records = this.filterWhere(records);\n // Process `afterWhere` hook.\n records = this.executeRetrieveHook('afterWhere', records);\n // Next, lets sort the data.\n records = this.filterOrderBy(records);\n // Process `afterOrderBy` hook.\n records = this.executeRetrieveHook('afterOrderBy', records);\n // Finally, slice the record by limit and offset.\n records = this.filterLimit(records);\n // Process `afterLimit` hook.\n records = this.executeRetrieveHook('afterLimit', records);\n return records;\n };\n /**\n * Filter the given data by registered where clause.\n */\n Query.prototype.filterWhere = function (records) {\n return Filter.where(this, records);\n };\n /**\n * Sort the given data by registered orders.\n */\n Query.prototype.filterOrderBy = function (records) {\n return Filter.orderBy(this, records);\n };\n /**\n * Limit the given records by the lmilt and offset.\n */\n Query.prototype.filterLimit = function (records) {\n return Filter.limit(this, records);\n };\n /**\n * Get the count of the retrieved data.\n */\n Query.prototype.count = function () {\n return this.get().length;\n };\n /**\n * Get the max value of the specified filed.\n */\n Query.prototype.max = function (field) {\n var numbers = this.get().reduce(function (numbers, item) {\n if (typeof item[field] === 'number') {\n numbers.push(item[field]);\n }\n return numbers;\n }, []);\n return numbers.length === 0 ? 0 : Math.max.apply(Math, numbers);\n };\n /**\n * Get the min value of the specified filed.\n */\n Query.prototype.min = function (field) {\n var numbers = this.get().reduce(function (numbers, item) {\n if (typeof item[field] === 'number') {\n numbers.push(item[field]);\n }\n return numbers;\n }, []);\n return numbers.length === 0 ? 0 : Math.min.apply(Math, numbers);\n };\n /**\n * Get the sum value of the specified filed.\n */\n Query.prototype.sum = function (field) {\n return this.get().reduce(function (sum, item) {\n if (typeof item[field] === 'number') {\n sum += item[field];\n }\n return sum;\n }, 0);\n };\n /**\n * Create a item from given record.\n */\n Query.prototype.item = function (item) {\n if (Object.keys(this.load).length > 0) {\n Loader.eagerLoadRelations(this, [item]);\n }\n return item;\n };\n /**\n * Create a collection (array) from given records.\n */\n Query.prototype.collect = function (collection) {\n var _this = this;\n if (collection.length < 1) {\n return [];\n }\n if (Object.keys(this.load).length > 0) {\n collection = collection.map(function (item) {\n var model = _this.model.getModelFromRecord(item);\n return new model(item);\n });\n Loader.eagerLoadRelations(this, collection);\n }\n return collection;\n };\n /**\n * Filter all data in the store by the given predicate.\n */\n Query.prototype.filterData = function (predicate) {\n var _this = this;\n this.state.data = Object.keys(this.state.data).reduce(function (models, id) {\n var model = _this.hydrate(_this.state.data[id]);\n if (predicate(model)) {\n models[id] = model;\n }\n return models;\n }, {});\n };\n /**\n * Create new data with all fields filled by default values.\n */\n Query.prototype.new = function () {\n var record = (new this.model()).$toJson();\n var result = this.insert(record, {});\n return result[this.entity][0];\n };\n /**\n * Save given data to the store by replacing all existing records in the\n * store. If you want to save data without replacing existing records,\n * use the `insert` method instead.\n */\n Query.prototype.create = function (data, options) {\n return this.persist('create', data, options);\n };\n /**\n * Create records to the state.\n */\n Query.prototype.createRecords = function (records) {\n this.emptyState();\n return this.insertRecords(records);\n };\n /**\n * Insert given data to the state. Unlike `create`, this method will not\n * remove existing data within the state, but it will update the data\n * with the same primary key.\n */\n Query.prototype.insert = function (data, options) {\n return this.persist('insert', data, options);\n };\n /**\n * Insert records in the state.\n */\n Query.prototype.insertRecords = function (records) {\n var _this = this;\n var recordsToBeInserted = {};\n var models = [];\n var beforeHooks = this.buildHooks('beforeCreate');\n var _loop_1 = function (id) {\n var record = records[id];\n var model = this_1.hydrate(record);\n if (beforeHooks.some(function (hook) { return hook(model, _this.entity) === false; })) {\n return \"continue\";\n }\n models.push(model);\n recordsToBeInserted[id] = model.$toJson();\n };\n var this_1 = this;\n for (var id in records) {\n _loop_1(id);\n }\n this.state.data = __assign(__assign({}, this.state.data), recordsToBeInserted);\n var afterHooks = this.buildHooks('afterCreate');\n models.forEach(function (model) {\n afterHooks.forEach(function (hook) { hook(model, _this.entity); });\n });\n return models;\n };\n /**\n * Update data in the state.\n */\n Query.prototype.update = function (data, condition, options) {\n // If the data is array, simply normalize the data and update them.\n if (Array.isArray(data)) {\n return this.persist('update', data, options);\n }\n // OK, the data is not an array. Now let's check `data` to see what we can\n // do if it's a closure.\n if (typeof data === 'function') {\n // If the data is closure, but if there's no condition, we wouldn't know\n // what record to update so raise an error and abort.\n if (!condition) {\n throw new Error('You must specify `where` to update records by specifying `data` as a closure.');\n }\n // If the condition is a closure, then update records by the closure.\n if (typeof condition === 'function') {\n return this.updateByCondition(data, condition);\n }\n // Else the condition is either String or Number, so let's\n // update the record by ID.\n return this.updateById(data, condition);\n }\n // Now the data is not a closure, and it's not an array, so it should be an object.\n // If the condition is closure, we can't normalize the data so let's update\n // records using the closure.\n if (typeof condition === 'function') {\n return this.updateByCondition(data, condition);\n }\n // If there's no condition, let's normalize the data and update them.\n if (!condition) {\n return this.persist('update', data, options);\n }\n // Now since the condition is either String or Number, let's check if the\n // model's primary key is not a composite key. If yes, we can't set the\n // condition as ID value for the record so throw an error and abort.\n if (Array.isArray(this.model.primaryKey)) {\n throw new Error(\"\\n You can't specify `where` value as `string` or `number` when you\\n have a composite key defined in your model. Please include composite\\n keys to the `data` fields.\\n \");\n }\n // Finally, let's add condition as the primary key of the object and\n // then normalize them to update the records.\n return this.updateById(data, condition);\n };\n /**\n * Update all records.\n */\n Query.prototype.updateRecords = function (records) {\n var models = this.hydrateRecordsByMerging(records);\n return this.commitUpdate(models);\n };\n /**\n * Update the state by id.\n */\n Query.prototype.updateById = function (data, id) {\n var _a;\n id = typeof id === 'number' ? id.toString() : id;\n var record = this.state.data[id];\n if (!record) {\n return null;\n }\n var model = this.hydrate(record);\n var instances = (_a = {},\n _a[id] = this.processUpdate(data, model),\n _a);\n this.commitUpdate(instances);\n return instances[id];\n };\n /**\n * Update the state by condition.\n */\n Query.prototype.updateByCondition = function (data, condition) {\n var _this = this;\n var instances = Object.keys(this.state.data).reduce(function (instances, id) {\n var instance = _this.hydrate(_this.state.data[id]);\n if (!condition(instance)) {\n return instances;\n }\n instances[id] = _this.processUpdate(data, instance);\n return instances;\n }, {});\n return this.commitUpdate(instances);\n };\n /**\n * Update the given record with given data.\n */\n Query.prototype.processUpdate = function (data, instance) {\n if (typeof data === 'function') {\n data(instance);\n return instance;\n }\n // When the updated instance is not the base model, we tell te hydrate what model to use\n if (instance.constructor !== this.model && instance instanceof Model) {\n return this.hydrate(__assign(__assign({}, instance), data), instance.constructor);\n }\n return this.hydrate(__assign(__assign({}, instance), data));\n };\n /**\n * Commit `update` to the state.\n */\n Query.prototype.commitUpdate = function (models) {\n var _this = this;\n models = this.updateIndexes(models);\n var beforeHooks = this.buildHooks('beforeUpdate');\n var afterHooks = this.buildHooks('afterUpdate');\n var updated = [];\n var _loop_2 = function (id) {\n var _a;\n var model = models[id];\n if (beforeHooks.some(function (hook) { return hook(model, _this.entity) === false; })) {\n return \"continue\";\n }\n this_2.state.data = __assign(__assign({}, this_2.state.data), (_a = {}, _a[id] = model.$toJson(), _a));\n afterHooks.forEach(function (hook) { hook(model, _this.entity); });\n updated.push(model);\n };\n var this_2 = this;\n for (var id in models) {\n _loop_2(id);\n }\n return updated;\n };\n /**\n * Update the key of the instances. This is needed when a user updates\n * record's primary key. We must then update the index key to\n * correspond with new id value.\n */\n Query.prototype.updateIndexes = function (instances) {\n var _this = this;\n return Object.keys(instances).reduce(function (instances, key) {\n var instance = instances[key];\n var id = String(_this.model.getIndexIdFromRecord(instance));\n if (key !== id) {\n instance.$id = id;\n instances[id] = instance;\n delete instances[key];\n }\n return instances;\n }, instances);\n };\n /**\n * Insert or update given data to the state. Unlike `insert`, this method\n * will not replace existing data within the state, but it will update only\n * the submitted data with the same primary key.\n */\n Query.prototype.insertOrUpdate = function (data, options) {\n return this.persist('insertOrUpdate', data, options);\n };\n /**\n * Insert or update the records.\n */\n Query.prototype.insertOrUpdateRecords = function (records) {\n var _this = this;\n var toBeInserted = {};\n var toBeUpdated = {};\n Object.keys(records).forEach(function (id) {\n var record = records[id];\n if (_this.state.data[id]) {\n toBeUpdated[id] = record;\n return;\n }\n toBeInserted[id] = record;\n });\n return __spreadArrays(this.insertRecords(toBeInserted), this.updateRecords(toBeUpdated));\n };\n /**\n * Persist data into the state.\n */\n Query.prototype.persist = function (method, data, options) {\n var _this = this;\n var normalizedData = this.normalize(data);\n if (Utils.isEmpty(normalizedData)) {\n if (method === 'create') {\n this.emptyState();\n }\n return {};\n }\n return Object.entries(normalizedData).reduce(function (collections, _a) {\n var entity = _a[0], records = _a[1];\n var newQuery = _this.newQuery(entity);\n var methodForEntity = _this.getPersistMethod(entity, options, method);\n var collection = newQuery.persistRecords(methodForEntity, records);\n if (collection.length > 0) {\n collections[entity] = collection;\n }\n return collections;\n }, {});\n };\n /**\n * Persist given records to the store by the given method.\n */\n Query.prototype.persistRecords = function (method, records) {\n switch (method) {\n case 'create':\n return this.createRecords(records);\n case 'insert':\n return this.insertRecords(records);\n case 'update':\n return this.updateRecords(records);\n case 'insertOrUpdate':\n return this.insertOrUpdateRecords(records);\n }\n };\n /**\n * Get persist method from given information.\n */\n Query.prototype.getPersistMethod = function (entity, options, fallback) {\n if (options.create && options.create.includes(entity)) {\n return 'create';\n }\n if (options.insert && options.insert.includes(entity)) {\n return 'insert';\n }\n if (options.update && options.update.includes(entity)) {\n return 'update';\n }\n if (options.insertOrUpdate && options.insertOrUpdate.includes(entity)) {\n return 'insertOrUpdate';\n }\n return fallback;\n };\n Query.prototype.delete = function (condition) {\n if (typeof condition === 'function') {\n return this.deleteByCondition(condition);\n }\n return this.deleteById(condition);\n };\n /**\n * Delete all records from the store. Even when deleting all records, we'll\n * iterate over all records to ensure that before and after hook will be\n * called for each existing records.\n */\n Query.prototype.deleteAll = function () {\n var _this = this;\n // If the target entity is the base entity and not inherited entity, we can\n // just delete all records.\n if (this.appliedOnBase) {\n return this.deleteByCondition(function () { return true; });\n }\n // Otherwise, we should filter out any derived entities from being deleted\n // so we'll add such filter here.\n return this.deleteByCondition(function (model) { return model instanceof _this.model; });\n };\n /**\n * Delete a record from the store by given id.\n */\n Query.prototype.deleteById = function (id) {\n var item = this.find(id);\n if (!item) {\n return null;\n }\n return this.deleteByCondition(function (model) { return model.$id === item.$id; })[0];\n };\n /**\n * Perform the actual delete query to the store.\n */\n Query.prototype.deleteByCondition = function (condition) {\n var _this = this;\n var deleted = [];\n this.filterData(function (model) {\n if (!condition(model)) {\n return true;\n }\n if (_this.executeBeforeDeleteHook(model) === false) {\n return true;\n }\n deleted.push(model);\n _this.executeAfterDeleteHook(model);\n return false;\n });\n return deleted;\n };\n /**\n * Normalize the given data.\n */\n Query.prototype.normalize = function (data) {\n return Processor.normalize(this, data);\n };\n /**\n * Convert given record to the model instance.\n */\n Query.prototype.hydrate = function (record, forceModel) {\n var _a;\n if (forceModel) {\n return new forceModel(record);\n }\n var newModel = this.model.getModelFromRecord(record);\n if (newModel !== null) {\n return new newModel(record);\n }\n if (!this.appliedOnBase && record[this.model.typeKey] === undefined) {\n var typeValue = this.model.getTypeKeyValueFromModel();\n record = __assign(__assign({}, record), (_a = {}, _a[this.model.typeKey] = typeValue, _a));\n return new this.model(record);\n }\n var baseModel = this.getBaseModel(this.entity);\n return new baseModel(record);\n };\n /**\n * Convert given records to instances by merging existing record. If there's\n * no existing record, that record will not be included in the result.\n */\n Query.prototype.hydrateRecordsByMerging = function (records) {\n var _this = this;\n return Object.keys(records).reduce(function (instances, id) {\n var recordInStore = _this.state.data[id];\n if (!recordInStore) {\n return instances;\n }\n var record = records[id];\n var modelForRecordInStore = _this.model.getModelFromRecord(recordInStore);\n if (modelForRecordInStore === null) {\n instances[id] = _this.hydrate(__assign(__assign({}, recordInStore), record));\n return instances;\n }\n instances[id] = _this.hydrate(__assign(__assign({}, recordInStore), record), modelForRecordInStore);\n return instances;\n }, {});\n };\n /**\n * Clears the current state from any data related to current model.\n *\n * - Everything if not in a inheritance scheme.\n * - Only derived instances if applied to a derived entity.\n */\n Query.prototype.emptyState = function () {\n var _this = this;\n if (this.appliedOnBase) {\n this.state.data = {};\n return;\n }\n this.state.data = Object.entries(this.state.data).reduce(function (records, _a) {\n var id = _a[0], record = _a[1];\n if (!(_this.model.getModelFromRecord(record) === _this.model)) {\n records[id] = record;\n }\n return records;\n }, {});\n };\n /**\n * Build before create hooks arra\n */\n Query.prototype.buildHooks = function (on) {\n var hooks = this.getGlobalHookAsArray(on);\n var localHook = this.model[on];\n localHook && hooks.push(localHook.bind(this.model));\n return hooks;\n };\n /**\n * Get global hook of the given name as array by stripping id key and keep\n * only hook functions.\n */\n Query.prototype.getGlobalHookAsArray = function (on) {\n var _this = this;\n var hooks = this.self().hooks[on];\n return hooks ? hooks.map(function (h) { return h.callback.bind(_this); }) : [];\n };\n /**\n * Execute retrieve hook for the given method.\n */\n Query.prototype.executeRetrieveHook = function (on, models) {\n var _this = this;\n var hooks = this.buildHooks(on);\n return hooks.reduce(function (collection, hook) {\n collection = hook(models, _this.entity);\n return collection;\n }, models);\n };\n /**\n * Execute before delete hook to the given model.\n */\n Query.prototype.executeBeforeDeleteHook = function (model) {\n if (this.executeLocalBeforeDeleteHook(model) === false) {\n return false;\n }\n if (this.executeGlobalBeforeDeleteHook(model) === false) {\n return false;\n }\n };\n /**\n * Execute local before delete hook to the given model.\n */\n Query.prototype.executeLocalBeforeDeleteHook = function (model) {\n var hook = this.model['beforeDelete'];\n return hook && hook(model, this.entity);\n };\n /**\n * Execute global before delete hook to the given model.\n */\n Query.prototype.executeGlobalBeforeDeleteHook = function (model) {\n var _this = this;\n return this.executeGlobalBeforeMutationHooks('beforeDelete', function (hook) {\n return hook(model, _this.entity);\n });\n };\n /**\n * Execute after delete hook to the given model.\n */\n Query.prototype.executeAfterDeleteHook = function (model) {\n this.executeLocalAfterDeleteHook(model);\n this.executeGlobalAfterDeleteHook(model);\n };\n /**\n * Execute local after delete hook to the given model.\n */\n Query.prototype.executeLocalAfterDeleteHook = function (model) {\n var hook = this.model['afterDelete'];\n return hook && hook(model, this.entity);\n };\n /**\n * Execute global after delete hook to the given model.\n */\n Query.prototype.executeGlobalAfterDeleteHook = function (model) {\n var _this = this;\n this.executeGlobalAfterMutationHooks('afterDelete', function (hook) {\n hook(model, _this.entity);\n });\n };\n /**\n * Execute global before mutation hook on the given method.\n */\n Query.prototype.executeGlobalBeforeMutationHooks = function (on, callback) {\n var hooks = this.self().hooks[on];\n if (!Array.isArray(hooks) || hooks.length <= 0) {\n return;\n }\n var result = hooks.some(function (hook) {\n return callback(hook.callback) === false ? false : true;\n });\n return result === false ? false : undefined;\n };\n /**\n * Execute global after mutation hook on the given method.\n */\n Query.prototype.executeGlobalAfterMutationHooks = function (on, callback) {\n var hooks = this.self().hooks[on];\n if (!Array.isArray(hooks)) {\n return;\n }\n hooks.forEach(function (hook) { callback(hook.callback); });\n };\n /**\n * The global lifecycle hook registries.\n */\n Query.hooks = {};\n /**\n * The counter to generate the UID for global hooks.\n */\n Query.lastHookId = 0;\n return Query;\n}());\n\nvar RootGetters = {\n /**\n * Create a new Query instance.\n */\n query: function (state) { return function (entity) {\n return new Query(state, entity);\n }; },\n /**\n * Get all data of given entity.\n */\n all: function (state) { return function (entity) {\n return (new Query(state, entity)).all();\n }; },\n /**\n * Find a data of the given entity by given id.\n */\n find: function (state) { return function (entity, id) {\n return (new Query(state, entity)).find(id);\n }; },\n /**\n * Find a data of the given entity by given id.\n */\n findIn: function (state) { return function (entity, idList) {\n return (new Query(state, entity)).findIn(idList);\n }; }\n};\n\nfunction destroy$1(context, payload) {\n return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n result = { data: {} };\n context.commit('delete', __assign(__assign({}, payload), { result: result }));\n return [2 /*return*/, result.data];\n });\n });\n}\n/**\n * Delete all data from the store.\n */\nfunction deleteAll$1(context, payload) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n if (payload && payload.entity) {\n context.commit('deleteAll', { entity: payload.entity });\n return [2 /*return*/];\n }\n context.commit('deleteAll');\n return [2 /*return*/];\n });\n });\n}\nvar RootActions = {\n /**\n * Create new data with all fields filled by default values.\n */\n new: function (context, payload) {\n var result = { data: {} };\n context.commit('new', __assign(__assign({}, payload), { result: result }));\n return result.data;\n },\n /**\n * Save given data to the store by replacing all existing records in the\n * store. If you want to save data without replacing existing records,\n * use the `insert` method instead.\n */\n create: function (context, payload) {\n return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n result = { data: {} };\n context.commit('create', __assign(__assign({}, payload), { result: result }));\n return [2 /*return*/, result.data];\n });\n });\n },\n /**\n * Insert given data to the state. Unlike `create`, this method will not\n * remove existing data within the state, but it will update the data\n * with the same primary key.\n */\n insert: function (context, payload) {\n return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n result = { data: {} };\n context.commit('insert', __assign(__assign({}, payload), { result: result }));\n return [2 /*return*/, result.data];\n });\n });\n },\n /**\n * Update data in the store.\n */\n update: function (context, payload) {\n return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n result = { data: {} };\n context.commit('update', __assign(__assign({}, payload), { result: result }));\n return [2 /*return*/, result.data];\n });\n });\n },\n /**\n * Insert or update given data to the state. Unlike `insert`, this method\n * will not replace existing data within the state, but it will update only\n * the submitted data with the same primary key.\n */\n insertOrUpdate: function (context, payload) {\n return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n result = { data: {} };\n context.commit('insertOrUpdate', __assign(__assign({}, payload), { result: result }));\n return [2 /*return*/, result.data];\n });\n });\n },\n delete: destroy$1,\n deleteAll: deleteAll$1\n};\n\nvar OptionsBuilder = /** @class */ (function () {\n function OptionsBuilder() {\n }\n /**\n * Get persist options from the given payload.\n */\n OptionsBuilder.createPersistOptions = function (payload) {\n return {\n create: payload.create,\n insert: payload.insert,\n update: payload.update,\n insertOrUpdate: payload.insertOrUpdate\n };\n };\n return OptionsBuilder;\n}());\n\n/**\n * Delete records from the store. The actual name for this mutation is\n * `delete`, but named `destroy` here because `delete` can't be declared at\n * this scope level.\n */\nfunction destroy$2(state, payload) {\n var entity = payload.entity;\n var where = payload.where;\n var result = payload.result;\n result.data = (new Query(state, entity)).delete(where);\n}\n/**\n * Delete all data from the store.\n */\nfunction deleteAll$2(state, payload) {\n if (payload && payload.entity) {\n (new Query(state, payload.entity)).deleteAll();\n return;\n }\n Query.deleteAll(state);\n}\nvar RootMutations = {\n /**\n * Execute generic mutation. This method is used by `Model.commit` method so\n * that user can commit any state changes easily through models.\n */\n $mutate: function (state, payload) {\n payload.callback(state[payload.entity]);\n },\n /**\n * Create new data with all fields filled by default values.\n */\n new: function (state, payload) {\n var entity = payload.entity;\n var result = payload.result;\n result.data = (new Query(state, entity)).new();\n },\n /**\n * Save given data to the store by replacing all existing records in the\n * store. If you want to save data without replacing existing records,\n * use the `insert` method instead.\n */\n create: function (state, payload) {\n var entity = payload.entity;\n var data = payload.data;\n var options = OptionsBuilder.createPersistOptions(payload);\n var result = payload.result;\n result.data = (new Query(state, entity)).create(data, options);\n },\n /**\n * Insert given data to the state. Unlike `create`, this method will not\n * remove existing data within the state, but it will update the data\n * with the same primary key.\n */\n insert: function (state, payload) {\n var entity = payload.entity;\n var data = payload.data;\n var options = OptionsBuilder.createPersistOptions(payload);\n var result = payload.result;\n result.data = (new Query(state, entity)).insert(data, options);\n },\n /**\n * Update data in the store.\n */\n update: function (state, payload) {\n var entity = payload.entity;\n var data = payload.data;\n var where = payload.where || null;\n var options = OptionsBuilder.createPersistOptions(payload);\n var result = payload.result;\n result.data = (new Query(state, entity)).update(data, where, options);\n },\n /**\n * Insert or update given data to the state. Unlike `insert`, this method\n * will not replace existing data within the state, but it will update only\n * the submitted data with the same primary key.\n */\n insertOrUpdate: function (state, payload) {\n var entity = payload.entity;\n var data = payload.data;\n var options = OptionsBuilder.createPersistOptions(payload);\n var result = payload.result;\n result.data = (new Query(state, entity)).insertOrUpdate(data, options);\n },\n delete: destroy$2,\n deleteAll: deleteAll$2\n};\n\nfunction use (plugin, options) {\n if (options === void 0) { options = {}; }\n var components = {\n Model: Model,\n Attribute: Attribute,\n Type: Type,\n Attr: Attr,\n String: String$1,\n Number: Number,\n Boolean: Boolean,\n Uid: Uid$1,\n Relation: Relation,\n HasOne: HasOne,\n BelongsTo: BelongsTo,\n HasMany: HasMany,\n HasManyBy: HasManyBy,\n BelongsToMany: BelongsToMany,\n HasManyThrough: HasManyThrough,\n MorphTo: MorphTo,\n MorphOne: MorphOne,\n MorphMany: MorphMany,\n MorphToMany: MorphToMany,\n MorphedByMany: MorphedByMany,\n Getters: Getters,\n Actions: Actions,\n RootGetters: RootGetters,\n RootActions: RootActions,\n RootMutations: RootMutations,\n Query: Query\n };\n plugin.install(components, options);\n}\n\nvar ProcessStrategy = /** @class */ (function () {\n function ProcessStrategy() {\n }\n /**\n * Create the process strategy.\n */\n ProcessStrategy.create = function (model) {\n var _this = this;\n return function (value, _parentValue, _key) {\n _this.generateIds(value, model);\n _this.generateIndexId(value, model);\n return value;\n };\n };\n /**\n * Generate a field that is defined as primary keys. For keys with a proper\n * value set, it will do nothing. If a key is missing, it will generate\n * UID for it.\n */\n ProcessStrategy.generateIds = function (record, model) {\n var keys = Array.isArray(model.primaryKey) ? model.primaryKey : [model.primaryKey];\n keys.forEach(function (k) {\n if (record[k] !== undefined && record[k] !== null) {\n return;\n }\n var attr = model.getFields()[k];\n record[k] = attr instanceof Uid$1 ? attr.make() : Uid.make();\n });\n };\n /**\n * Generate index id field (which is `$id`) and attach to the given record.\n */\n ProcessStrategy.generateIndexId = function (record, model) {\n record.$id = model.getIndexIdFromRecord(record);\n };\n return ProcessStrategy;\n}());\n\nvar Schema = /** @class */ (function () {\n /**\n * Create a new schema instance.\n */\n function Schema(model) {\n var _this = this;\n /**\n * List of generated schemas.\n */\n this.schemas = {};\n this.model = model;\n var models = model.database().models();\n Object.keys(models).forEach(function (name) { _this.one(models[name]); });\n }\n /**\n * Create a schema for the given model.\n */\n Schema.create = function (model) {\n return (new this(model)).one();\n };\n /**\n * Create a single schema for the given model.\n */\n Schema.prototype.one = function (model) {\n model = model || this.model;\n if (this.schemas[model.entity]) {\n return this.schemas[model.entity];\n }\n var schema$1 = new schema.Entity(model.entity, {}, {\n idAttribute: '$id',\n processStrategy: ProcessStrategy.create(model)\n });\n this.schemas[model.entity] = schema$1;\n var definition = this.definition(model);\n schema$1.define(definition);\n return schema$1;\n };\n /**\n * Create an array schema for the given model.\n */\n Schema.prototype.many = function (model) {\n return new schema.Array(this.one(model));\n };\n /**\n * Create an union schema for the given model.\n */\n Schema.prototype.union = function (callback) {\n return new schema.Union(this.schemas, callback);\n };\n /**\n * Create a dfinition for the given model.\n */\n Schema.prototype.definition = function (model) {\n var _this = this;\n var fields = model.getFields();\n return Object.keys(fields).reduce(function (definition, key) {\n var field = fields[key];\n if (field instanceof Relation) {\n definition[key] = field.define(_this);\n }\n return definition;\n }, {});\n };\n return Schema;\n}());\n\nvar Builder = /** @class */ (function () {\n function Builder() {\n }\n /**\n * Create module from the given modules.\n */\n Builder.create = function (namespace, models, modules) {\n var tree = {\n namespaced: true,\n state: { $name: namespace },\n getters: RootGetters,\n actions: RootActions,\n mutations: RootMutations,\n modules: {}\n };\n return this.createModules(tree, namespace, models, modules);\n };\n /**\n * Creates module tree to be registered under top level module\n * from the given entities.\n */\n Builder.createModules = function (tree, namespace, models, modules) {\n var _this = this;\n Object.keys(modules).forEach(function (name) {\n var model = models[name];\n var module = modules[name];\n tree.modules[name] = { namespaced: true };\n tree.modules[name].state = _this.createState(namespace, name, model, module);\n tree.getters[name] = function (_state, getters, _rootState, _rootGetters) { return function () {\n return getters.query(name);\n }; };\n tree.modules[name].getters = __assign(__assign({}, Getters), module.getters);\n tree.modules[name].actions = __assign(__assign({}, Actions), module.actions);\n tree.modules[name].mutations = module.mutations || {};\n });\n return tree;\n };\n /**\n * Get new state to be registered to the modules.\n */\n Builder.createState = function (namespace, name, model, module) {\n var modelState = typeof model.state === 'function' ? model.state() : model.state;\n var moduleState = typeof module.state === 'function' ? module.state() : module.state;\n return __assign(__assign(__assign({}, modelState), moduleState), { $connection: namespace, $name: name, data: {} });\n };\n return Builder;\n}());\n\nvar Database = /** @class */ (function () {\n function Database() {\n /**\n * The list of entities registered to the Vuex Store. It contains models and\n * modules with its name.\n */\n this.entities = [];\n /**\n * The database schema definition. This schema is going to be used when\n * normalizing the data before persisting them to the Vuex Store.\n */\n this.schemas = {};\n }\n /**\n * Initialize the database before a user can start using it.\n */\n Database.prototype.start = function (store, namespace) {\n this.store = store;\n this.namespace = namespace;\n this.registerModules();\n this.createSchema();\n };\n /**\n * Register a model and a module to Database.\n */\n Database.prototype.register = function (model, module) {\n if (module === void 0) { module = {}; }\n this.checkModelTypeMappingCapability(model);\n this.entities.push({\n name: model.entity,\n base: model.baseEntity || model.entity,\n model: model,\n module: module\n });\n };\n /**\n * Get the model of the given name from the entities list.\n */\n Database.prototype.model = function (name) {\n return this.models()[name];\n };\n /**\n * Get the base model of the given name from the entities list.\n */\n Database.prototype.baseModel = function (name) {\n return this.baseModels()[name];\n };\n /**\n * Get all models from the entities list.\n */\n Database.prototype.models = function () {\n return this.entities.reduce(function (models, entity) {\n models[entity.name] = entity.model;\n return models;\n }, {});\n };\n /**\n * Get all base models from the entities list.\n */\n Database.prototype.baseModels = function () {\n var _this = this;\n return this.entities.reduce(function (models, entity) {\n models[entity.name] = _this.model(entity.base);\n return models;\n }, {});\n };\n /**\n * Get the module of the given name from the entities list.\n */\n Database.prototype.module = function (name) {\n return this.modules()[name];\n };\n /**\n * Get all modules from the entities list.\n */\n Database.prototype.modules = function () {\n return this.entities.reduce(function (modules, entity) {\n modules[entity.name] = entity.module;\n return modules;\n }, {});\n };\n /**\n * Create the Vuex Module from the registered entities.\n */\n Database.prototype.registerModules = function () {\n var modules = Builder.create(this.namespace, this.models(), this.modules());\n this.store.registerModule(this.namespace, modules);\n };\n /**\n * Create the schema definition from registered entities list and set it to\n * the `schema` property. This schema will be used by the normalizer\n * to normalize data before persisting them to the Vuex Store.\n */\n Database.prototype.createSchema = function () {\n var _this = this;\n this.entities.forEach(function (entity) {\n _this.schemas[entity.name] = Schema.create(entity.model);\n });\n };\n /**\n * Warn user if the given model is a type of an inherited model that is being\n * defined without overwriting `Model.types()` because the user will not be\n * able to use the type mapping feature in this case.\n */\n Database.prototype.checkModelTypeMappingCapability = function (model) {\n // We'll not be logging any warning if it's on a production environment,\n // so let's return here if it is.\n /* istanbul ignore next */\n if (process.env.NODE_ENV === 'production') {\n return;\n }\n // If the model doesn't have `baseEntity` property set, we'll assume it is\n // not an inherited model so we can stop here.\n if (!model.baseEntity) {\n return;\n }\n // Now it seems like the model is indeed an inherited model. Let's check if\n // it has `types()` method declared, or we'll warn the user that it's not\n // possible to use type mapping feature.\n var baseModel = this.model(model.baseEntity);\n if (baseModel && baseModel.types === Model.types) {\n console.warn(\"Model \" + model.name + \" extends \" + baseModel.name + \" which doesn't overwrite Model.types(). You will not be able to use type mapping.\");\n }\n };\n return Database;\n}());\n\nvar index = {\n install: install,\n use: use,\n Container: Container,\n Database: Database,\n Model: Model,\n Attribute: Attribute,\n Type: Type,\n Attr: Attr,\n String: String$1,\n Number: Number,\n Boolean: Boolean,\n Uid: Uid$1,\n Relation: Relation,\n HasOne: HasOne,\n BelongsTo: BelongsTo,\n HasMany: HasMany,\n HasManyBy: HasManyBy,\n BelongsToMany: BelongsToMany,\n HasManyThrough: HasManyThrough,\n MorphTo: MorphTo,\n MorphOne: MorphOne,\n MorphMany: MorphMany,\n MorphToMany: MorphToMany,\n MorphedByMany: MorphedByMany,\n Getters: Getters,\n Actions: Actions,\n RootGetters: RootGetters,\n RootActions: RootActions,\n RootMutations: RootMutations,\n Query: Query\n};\n\nexport default index;\nexport { Actions, Attr, Attribute, BelongsTo, BelongsToMany, Boolean, Container, Database, Getters, HasMany, HasManyBy, HasManyThrough, HasOne, Model, MorphMany, MorphOne, MorphTo, MorphToMany, MorphedByMany, Number, Query, Relation, RootActions, RootGetters, RootMutations, String$1 as String, Type, Uid$1 as Uid, install, use };\n","var global = require('../internals/global');\nvar isArray = require('../internals/is-array');\nvar isConstructor = require('../internals/is-constructor');\nvar isObject = require('../internals/is-object');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\nvar Array = global.Array;\n\n// a part of `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (isConstructor(C) && (C === Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var global = require('../internals/global');\n\nvar String = global.String;\n\nmodule.exports = function (argument) {\n try {\n return String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var r=function(r){return function(r){return!!r&&\"object\"==typeof r}(r)&&!function(r){var t=Object.prototype.toString.call(r);return\"[object RegExp]\"===t||\"[object Date]\"===t||function(r){return r.$$typeof===e}(r)}(r)},e=\"function\"==typeof Symbol&&Symbol.for?Symbol.for(\"react.element\"):60103;function t(r,e){return!1!==e.clone&&e.isMergeableObject(r)?c(Array.isArray(r)?[]:{},r,e):r}function n(r,e,n){return r.concat(e).map(function(r){return t(r,n)})}function o(r){return Object.keys(r).concat(function(r){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r).filter(function(e){return r.propertyIsEnumerable(e)}):[]}(r))}function u(r,e){try{return e in r}catch(r){return!1}}function c(e,i,a){(a=a||{}).arrayMerge=a.arrayMerge||n,a.isMergeableObject=a.isMergeableObject||r,a.cloneUnlessOtherwiseSpecified=t;var f=Array.isArray(i);return f===Array.isArray(e)?f?a.arrayMerge(e,i,a):function(r,e,n){var i={};return n.isMergeableObject(r)&&o(r).forEach(function(e){i[e]=t(r[e],n)}),o(e).forEach(function(o){(function(r,e){return u(r,e)&&!(Object.hasOwnProperty.call(r,e)&&Object.propertyIsEnumerable.call(r,e))})(r,o)||(i[o]=u(r,o)&&n.isMergeableObject(e[o])?function(r,e){if(!e.customMerge)return c;var t=e.customMerge(r);return\"function\"==typeof t?t:c}(o,n)(r[o],e[o],n):t(e[o],n))}),i}(e,i,a):t(i,a)}c.all=function(r,e){if(!Array.isArray(r))throw new Error(\"first argument should be an array\");return r.reduce(function(r,t){return c(r,t,e)},{})};var i=c;function a(r,e,t){return void 0===(r=(e.split?e.split(\".\"):e).reduce(function(r,e){return r&&r[e]},r))?t:r}export default function(r,e,t){function n(r,e,t){try{return(t=e.getItem(r))&&void 0!==t?JSON.parse(t):void 0}catch(r){}}if(e=(r=r||{}).storage||window&&window.localStorage,t=r.key||\"vuex\",!function(r){try{return r.setItem(\"@@\",1),r.removeItem(\"@@\"),!0}catch(r){}return!1}(e))throw new Error(\"Invalid storage instance given\");var o,u=function(){return a(r,\"getState\",n)(t,e)};return r.fetchBeforeUse&&(o=u()),function(n){r.fetchBeforeUse||(o=u()),\"object\"==typeof o&&null!==o&&(n.replaceState(i(n.state,o,{arrayMerge:r.arrayMerger||function(r,e){return e},clone:!1})),(r.rehydrated||function(){})(n)),(r.subscriber||function(r){return function(e){return r.subscribe(e)}})(n)(function(n,o){(r.filter||function(){return!0})(n)&&(r.setState||function(r,e,t){return t.setItem(r,JSON.stringify(e))})(t,(r.reducer||function(r,e){return 0===e.length?r:e.reduce(function(e,t){return function(r,e,t,n){return(e=e.split?e.split(\".\"):e).slice(0,-1).reduce(function(r,e){return r[e]=r[e]||{}},r)[e.pop()]=t,r}(e,t,a(r,t))},{})})(o,r.paths||[]),e)})}}\n//# sourceMappingURL=vuex-persistedstate.es.js.map\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('(?b)', 'g') -> /(?b)/g and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nmodule.exports = fails(function () {\n var re = $RegExp('(?b)', 'g');\n return re.exec('b').groups.a !== 'b' ||\n 'b'.replace(re, '$c') !== 'bc';\n});\n","'use strict';\nvar global = require('../internals/global');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar RangeError = global.RangeError;\n\n// `String.prototype.repeat` method implementation\n// https://tc39.es/ecma262/#sec-string.prototype.repeat\nmodule.exports = function repeat(count) {\n var str = toString(requireObjectCoercible(this));\n var result = '';\n var n = toIntegerOrInfinity(count);\n if (n < 0 || n == Infinity) throw RangeError('Wrong number of repetitions');\n for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;\n return result;\n};\n","'use strict';\nvar apply = require('../internals/function-apply');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar isRegExp = require('../internals/is-regexp');\nvar anObject = require('../internals/an-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar speciesConstructor = require('../internals/species-constructor');\nvar advanceStringIndex = require('../internals/advance-string-index');\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar getMethod = require('../internals/get-method');\nvar arraySlice = require('../internals/array-slice-simple');\nvar callRegExpExec = require('../internals/regexp-exec-abstract');\nvar regexpExec = require('../internals/regexp-exec');\nvar stickyHelpers = require('../internals/regexp-sticky-helpers');\nvar fails = require('../internals/fails');\n\nvar UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;\nvar MAX_UINT32 = 0xFFFFFFFF;\nvar min = Math.min;\nvar $push = [].push;\nvar exec = uncurryThis(/./.exec);\nvar push = uncurryThis($push);\nvar stringSlice = uncurryThis(''.slice);\n\n// Chrome 51 has a buggy \"split\" implementation when RegExp#exec !== nativeExec\n// Weex JS has frozen built-in prototypes, so use try / catch wrapper\nvar SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {\n // eslint-disable-next-line regexp/no-empty-group -- required for testing\n var re = /(?:)/;\n var originalExec = re.exec;\n re.exec = function () { return originalExec.apply(this, arguments); };\n var result = 'ab'.split(re);\n return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';\n});\n\n// @@split logic\nfixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {\n var internalSplit;\n if (\n 'abbc'.split(/(b)*/)[1] == 'c' ||\n // eslint-disable-next-line regexp/no-empty-group -- required for testing\n 'test'.split(/(?:)/, -1).length != 4 ||\n 'ab'.split(/(?:ab)*/).length != 2 ||\n '.'.split(/(.?)(.?)/).length != 4 ||\n // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing\n '.'.split(/()()/).length > 1 ||\n ''.split(/.?/).length\n ) {\n // based on es5-shim implementation, need to rework it\n internalSplit = function (separator, limit) {\n var string = toString(requireObjectCoercible(this));\n var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;\n if (lim === 0) return [];\n if (separator === undefined) return [string];\n // If `separator` is not a regex, use native split\n if (!isRegExp(separator)) {\n return call(nativeSplit, string, separator, lim);\n }\n var output = [];\n var flags = (separator.ignoreCase ? 'i' : '') +\n (separator.multiline ? 'm' : '') +\n (separator.unicode ? 'u' : '') +\n (separator.sticky ? 'y' : '');\n var lastLastIndex = 0;\n // Make `global` and avoid `lastIndex` issues by working with a copy\n var separatorCopy = new RegExp(separator.source, flags + 'g');\n var match, lastIndex, lastLength;\n while (match = call(regexpExec, separatorCopy, string)) {\n lastIndex = separatorCopy.lastIndex;\n if (lastIndex > lastLastIndex) {\n push(output, stringSlice(string, lastLastIndex, match.index));\n if (match.length > 1 && match.index < string.length) apply($push, output, arraySlice(match, 1));\n lastLength = match[0].length;\n lastLastIndex = lastIndex;\n if (output.length >= lim) break;\n }\n if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop\n }\n if (lastLastIndex === string.length) {\n if (lastLength || !exec(separatorCopy, '')) push(output, '');\n } else push(output, stringSlice(string, lastLastIndex));\n return output.length > lim ? arraySlice(output, 0, lim) : output;\n };\n // Chakra, V8\n } else if ('0'.split(undefined, 0).length) {\n internalSplit = function (separator, limit) {\n return separator === undefined && limit === 0 ? [] : call(nativeSplit, this, separator, limit);\n };\n } else internalSplit = nativeSplit;\n\n return [\n // `String.prototype.split` method\n // https://tc39.es/ecma262/#sec-string.prototype.split\n function split(separator, limit) {\n var O = requireObjectCoercible(this);\n var splitter = separator == undefined ? undefined : getMethod(separator, SPLIT);\n return splitter\n ? call(splitter, separator, O, limit)\n : call(internalSplit, toString(O), separator, limit);\n },\n // `RegExp.prototype[@@split]` method\n // https://tc39.es/ecma262/#sec-regexp.prototype-@@split\n //\n // NOTE: This cannot be properly polyfilled in engines that don't support\n // the 'y' flag.\n function (string, limit) {\n var rx = anObject(this);\n var S = toString(string);\n var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);\n\n if (res.done) return res.value;\n\n var C = speciesConstructor(rx, RegExp);\n\n var unicodeMatching = rx.unicode;\n var flags = (rx.ignoreCase ? 'i' : '') +\n (rx.multiline ? 'm' : '') +\n (rx.unicode ? 'u' : '') +\n (UNSUPPORTED_Y ? 'g' : 'y');\n\n // ^(? + rx + ) is needed, in combination with some S slicing, to\n // simulate the 'y' flag.\n var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);\n var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;\n if (lim === 0) return [];\n if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];\n var p = 0;\n var q = 0;\n var A = [];\n while (q < S.length) {\n splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;\n var z = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S, q) : S);\n var e;\n if (\n z === null ||\n (e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p\n ) {\n q = advanceStringIndex(S, q, unicodeMatching);\n } else {\n push(A, stringSlice(S, p, q));\n if (A.length === lim) return A;\n for (var i = 1; i <= z.length - 1; i++) {\n push(A, z[i]);\n if (A.length === lim) return A;\n }\n q = p = e;\n }\n }\n push(A, stringSlice(S, p));\n return A;\n }\n ];\n}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);\n","var $ = require('../internals/export');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n$({ target: 'Object', stat: true }, {\n setPrototypeOf: setPrototypeOf\n});\n","var global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof-raw');\nvar regexpExec = require('../internals/regexp-exec');\n\nvar TypeError = global.TypeError;\n\n// `RegExpExec` abstract operation\n// https://tc39.es/ecma262/#sec-regexpexec\nmodule.exports = function (R, S) {\n var exec = R.exec;\n if (isCallable(exec)) {\n var result = call(exec, R, S);\n if (result !== null) anObject(result);\n return result;\n }\n if (classof(R) === 'RegExp') return call(regexpExec, R, S);\n throw TypeError('RegExp#exec called on incompatible receiver');\n};\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar forEach = require('../internals/array-for-each');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nvar handlePrototype = function (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {\n createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);\n } catch (error) {\n CollectionPrototype.forEach = forEach;\n }\n};\n\nfor (var COLLECTION_NAME in DOMIterables) {\n if (DOMIterables[COLLECTION_NAME]) {\n handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype);\n }\n}\n\nhandlePrototype(DOMTokenListPrototype);\n","// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = function (argument) {\n return typeof argument == 'function';\n};\n","'use strict';\nvar $forEach = require('../internals/array-iteration').forEach;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar STRICT_METHOD = arrayMethodIsStrict('forEach');\n\n// `Array.prototype.forEach` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.foreach\nmodule.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n// eslint-disable-next-line es/no-array-prototype-foreach -- safe\n} : [].forEach;\n","var global = require('../internals/global');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\n\nvar TypeError = global.TypeError;\n\nmodule.exports = function (it, Prototype) {\n if (isPrototypeOf(Prototype, it)) return it;\n throw TypeError('Incorrect invocation');\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);\n","var global = require('../internals/global');\n\nvar TypeError = global.TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}","var fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION >= 51 || !fails(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES] = function () {\n return { foo: 1 };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n};\n","var global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar TypeError = global.TypeError;\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nvar ResultPrototype = Result.prototype;\n\nmodule.exports = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind(unboundFunction, that);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator, 'normal', condition);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (!iterFn) throw TypeError(tryToString(iterable) + ' is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n }\n iterator = getIterator(iterable, iterFn);\n }\n\n next = iterator.next;\n while (!(step = call(next, iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar setGlobal = require('../internals/set-global');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.noTargetGet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || setGlobal(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.noTargetGet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n // extend global\n redefine(target, key, sourceProperty, options);\n }\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\n\nvar stringIndexOf = uncurryThis(''.indexOf);\n\n// `String.prototype.includes` method\n// https://tc39.es/ecma262/#sec-string.prototype.includes\n$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~stringIndexOf(\n toString(requireObjectCoercible(this)),\n toString(notARegExp(searchString)),\n arguments.length > 1 ? arguments[1] : undefined\n );\n }\n});\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar definePropertyModule = require('../internals/object-define-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn(CONSTRUCTOR_NAME);\n var defineProperty = definePropertyModule.f;\n\n if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {\n defineProperty(Constructor, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","var call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getMethod = require('../internals/get-method');\n\nmodule.exports = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject(iterator);\n try {\n innerResult = getMethod(iterator, 'return');\n if (!innerResult) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = call(innerResult, iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject(innerResult);\n return value;\n};\n","/*!\n * Vue.js v2.6.14\n * (c) 2014-2021 Evan You\n * Released under the MIT License.\n */\n/* */\n\nvar emptyObject = Object.freeze({});\n\n// These helpers produce better VM code in JS engines due to their\n// explicitness and function inlining.\nfunction isUndef (v) {\n return v === undefined || v === null\n}\n\nfunction isDef (v) {\n return v !== undefined && v !== null\n}\n\nfunction isTrue (v) {\n return v === true\n}\n\nfunction isFalse (v) {\n return v === false\n}\n\n/**\n * Check if value is primitive.\n */\nfunction isPrimitive (value) {\n return (\n typeof value === 'string' ||\n typeof value === 'number' ||\n // $flow-disable-line\n typeof value === 'symbol' ||\n typeof value === 'boolean'\n )\n}\n\n/**\n * Quick object check - this is primarily used to tell\n * Objects from primitive values when we know the value\n * is a JSON-compliant type.\n */\nfunction isObject (obj) {\n return obj !== null && typeof obj === 'object'\n}\n\n/**\n * Get the raw type string of a value, e.g., [object Object].\n */\nvar _toString = Object.prototype.toString;\n\nfunction toRawType (value) {\n return _toString.call(value).slice(8, -1)\n}\n\n/**\n * Strict object type check. Only returns true\n * for plain JavaScript objects.\n */\nfunction isPlainObject (obj) {\n return _toString.call(obj) === '[object Object]'\n}\n\nfunction isRegExp (v) {\n return _toString.call(v) === '[object RegExp]'\n}\n\n/**\n * Check if val is a valid array index.\n */\nfunction isValidArrayIndex (val) {\n var n = parseFloat(String(val));\n return n >= 0 && Math.floor(n) === n && isFinite(val)\n}\n\nfunction isPromise (val) {\n return (\n isDef(val) &&\n typeof val.then === 'function' &&\n typeof val.catch === 'function'\n )\n}\n\n/**\n * Convert a value to a string that is actually rendered.\n */\nfunction toString (val) {\n return val == null\n ? ''\n : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)\n ? JSON.stringify(val, null, 2)\n : String(val)\n}\n\n/**\n * Convert an input value to a number for persistence.\n * If the conversion fails, return original string.\n */\nfunction toNumber (val) {\n var n = parseFloat(val);\n return isNaN(n) ? val : n\n}\n\n/**\n * Make a map and return a function for checking if a key\n * is in that map.\n */\nfunction makeMap (\n str,\n expectsLowerCase\n) {\n var map = Object.create(null);\n var list = str.split(',');\n for (var i = 0; i < list.length; i++) {\n map[list[i]] = true;\n }\n return expectsLowerCase\n ? function (val) { return map[val.toLowerCase()]; }\n : function (val) { return map[val]; }\n}\n\n/**\n * Check if a tag is a built-in tag.\n */\nvar isBuiltInTag = makeMap('slot,component', true);\n\n/**\n * Check if an attribute is a reserved attribute.\n */\nvar isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');\n\n/**\n * Remove an item from an array.\n */\nfunction remove (arr, item) {\n if (arr.length) {\n var index = arr.indexOf(item);\n if (index > -1) {\n return arr.splice(index, 1)\n }\n }\n}\n\n/**\n * Check whether an object has the property.\n */\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction hasOwn (obj, key) {\n return hasOwnProperty.call(obj, key)\n}\n\n/**\n * Create a cached version of a pure function.\n */\nfunction cached (fn) {\n var cache = Object.create(null);\n return (function cachedFn (str) {\n var hit = cache[str];\n return hit || (cache[str] = fn(str))\n })\n}\n\n/**\n * Camelize a hyphen-delimited string.\n */\nvar camelizeRE = /-(\\w)/g;\nvar camelize = cached(function (str) {\n return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })\n});\n\n/**\n * Capitalize a string.\n */\nvar capitalize = cached(function (str) {\n return str.charAt(0).toUpperCase() + str.slice(1)\n});\n\n/**\n * Hyphenate a camelCase string.\n */\nvar hyphenateRE = /\\B([A-Z])/g;\nvar hyphenate = cached(function (str) {\n return str.replace(hyphenateRE, '-$1').toLowerCase()\n});\n\n/**\n * Simple bind polyfill for environments that do not support it,\n * e.g., PhantomJS 1.x. Technically, we don't need this anymore\n * since native bind is now performant enough in most browsers.\n * But removing it would mean breaking code that was able to run in\n * PhantomJS 1.x, so this must be kept for backward compatibility.\n */\n\n/* istanbul ignore next */\nfunction polyfillBind (fn, ctx) {\n function boundFn (a) {\n var l = arguments.length;\n return l\n ? l > 1\n ? fn.apply(ctx, arguments)\n : fn.call(ctx, a)\n : fn.call(ctx)\n }\n\n boundFn._length = fn.length;\n return boundFn\n}\n\nfunction nativeBind (fn, ctx) {\n return fn.bind(ctx)\n}\n\nvar bind = Function.prototype.bind\n ? nativeBind\n : polyfillBind;\n\n/**\n * Convert an Array-like object to a real Array.\n */\nfunction toArray (list, start) {\n start = start || 0;\n var i = list.length - start;\n var ret = new Array(i);\n while (i--) {\n ret[i] = list[i + start];\n }\n return ret\n}\n\n/**\n * Mix properties into target object.\n */\nfunction extend (to, _from) {\n for (var key in _from) {\n to[key] = _from[key];\n }\n return to\n}\n\n/**\n * Merge an Array of Objects into a single Object.\n */\nfunction toObject (arr) {\n var res = {};\n for (var i = 0; i < arr.length; i++) {\n if (arr[i]) {\n extend(res, arr[i]);\n }\n }\n return res\n}\n\n/* eslint-disable no-unused-vars */\n\n/**\n * Perform no operation.\n * Stubbing args to make Flow happy without leaving useless transpiled code\n * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).\n */\nfunction noop (a, b, c) {}\n\n/**\n * Always return false.\n */\nvar no = function (a, b, c) { return false; };\n\n/* eslint-enable no-unused-vars */\n\n/**\n * Return the same value.\n */\nvar identity = function (_) { return _; };\n\n/**\n * Check if two values are loosely equal - that is,\n * if they are plain objects, do they have the same shape?\n */\nfunction looseEqual (a, b) {\n if (a === b) { return true }\n var isObjectA = isObject(a);\n var isObjectB = isObject(b);\n if (isObjectA && isObjectB) {\n try {\n var isArrayA = Array.isArray(a);\n var isArrayB = Array.isArray(b);\n if (isArrayA && isArrayB) {\n return a.length === b.length && a.every(function (e, i) {\n return looseEqual(e, b[i])\n })\n } else if (a instanceof Date && b instanceof Date) {\n return a.getTime() === b.getTime()\n } else if (!isArrayA && !isArrayB) {\n var keysA = Object.keys(a);\n var keysB = Object.keys(b);\n return keysA.length === keysB.length && keysA.every(function (key) {\n return looseEqual(a[key], b[key])\n })\n } else {\n /* istanbul ignore next */\n return false\n }\n } catch (e) {\n /* istanbul ignore next */\n return false\n }\n } else if (!isObjectA && !isObjectB) {\n return String(a) === String(b)\n } else {\n return false\n }\n}\n\n/**\n * Return the first index at which a loosely equal value can be\n * found in the array (if value is a plain object, the array must\n * contain an object of the same shape), or -1 if it is not present.\n */\nfunction looseIndexOf (arr, val) {\n for (var i = 0; i < arr.length; i++) {\n if (looseEqual(arr[i], val)) { return i }\n }\n return -1\n}\n\n/**\n * Ensure a function is called only once.\n */\nfunction once (fn) {\n var called = false;\n return function () {\n if (!called) {\n called = true;\n fn.apply(this, arguments);\n }\n }\n}\n\nvar SSR_ATTR = 'data-server-rendered';\n\nvar ASSET_TYPES = [\n 'component',\n 'directive',\n 'filter'\n];\n\nvar LIFECYCLE_HOOKS = [\n 'beforeCreate',\n 'created',\n 'beforeMount',\n 'mounted',\n 'beforeUpdate',\n 'updated',\n 'beforeDestroy',\n 'destroyed',\n 'activated',\n 'deactivated',\n 'errorCaptured',\n 'serverPrefetch'\n];\n\n/* */\n\n\n\nvar config = ({\n /**\n * Option merge strategies (used in core/util/options)\n */\n // $flow-disable-line\n optionMergeStrategies: Object.create(null),\n\n /**\n * Whether to suppress warnings.\n */\n silent: false,\n\n /**\n * Show production mode tip message on boot?\n */\n productionTip: process.env.NODE_ENV !== 'production',\n\n /**\n * Whether to enable devtools\n */\n devtools: process.env.NODE_ENV !== 'production',\n\n /**\n * Whether to record perf\n */\n performance: false,\n\n /**\n * Error handler for watcher errors\n */\n errorHandler: null,\n\n /**\n * Warn handler for watcher warns\n */\n warnHandler: null,\n\n /**\n * Ignore certain custom elements\n */\n ignoredElements: [],\n\n /**\n * Custom user key aliases for v-on\n */\n // $flow-disable-line\n keyCodes: Object.create(null),\n\n /**\n * Check if a tag is reserved so that it cannot be registered as a\n * component. This is platform-dependent and may be overwritten.\n */\n isReservedTag: no,\n\n /**\n * Check if an attribute is reserved so that it cannot be used as a component\n * prop. This is platform-dependent and may be overwritten.\n */\n isReservedAttr: no,\n\n /**\n * Check if a tag is an unknown element.\n * Platform-dependent.\n */\n isUnknownElement: no,\n\n /**\n * Get the namespace of an element\n */\n getTagNamespace: noop,\n\n /**\n * Parse the real tag name for the specific platform.\n */\n parsePlatformTagName: identity,\n\n /**\n * Check if an attribute must be bound using property, e.g. value\n * Platform-dependent.\n */\n mustUseProp: no,\n\n /**\n * Perform updates asynchronously. Intended to be used by Vue Test Utils\n * This will significantly reduce performance if set to false.\n */\n async: true,\n\n /**\n * Exposed for legacy reasons\n */\n _lifecycleHooks: LIFECYCLE_HOOKS\n});\n\n/* */\n\n/**\n * unicode letters used for parsing html tags, component names and property paths.\n * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname\n * skipping \\u10000-\\uEFFFF due to it freezing up PhantomJS\n */\nvar unicodeRegExp = /a-zA-Z\\u00B7\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u203F-\\u2040\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD/;\n\n/**\n * Check if a string starts with $ or _\n */\nfunction isReserved (str) {\n var c = (str + '').charCodeAt(0);\n return c === 0x24 || c === 0x5F\n}\n\n/**\n * Define a property.\n */\nfunction def (obj, key, val, enumerable) {\n Object.defineProperty(obj, key, {\n value: val,\n enumerable: !!enumerable,\n writable: true,\n configurable: true\n });\n}\n\n/**\n * Parse simple path.\n */\nvar bailRE = new RegExp((\"[^\" + (unicodeRegExp.source) + \".$_\\\\d]\"));\nfunction parsePath (path) {\n if (bailRE.test(path)) {\n return\n }\n var segments = path.split('.');\n return function (obj) {\n for (var i = 0; i < segments.length; i++) {\n if (!obj) { return }\n obj = obj[segments[i]];\n }\n return obj\n }\n}\n\n/* */\n\n// can we use __proto__?\nvar hasProto = '__proto__' in {};\n\n// Browser environment sniffing\nvar inBrowser = typeof window !== 'undefined';\nvar inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;\nvar weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();\nvar UA = inBrowser && window.navigator.userAgent.toLowerCase();\nvar isIE = UA && /msie|trident/.test(UA);\nvar isIE9 = UA && UA.indexOf('msie 9.0') > 0;\nvar isEdge = UA && UA.indexOf('edge/') > 0;\nvar isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');\nvar isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');\nvar isChrome = UA && /chrome\\/\\d+/.test(UA) && !isEdge;\nvar isPhantomJS = UA && /phantomjs/.test(UA);\nvar isFF = UA && UA.match(/firefox\\/(\\d+)/);\n\n// Firefox has a \"watch\" function on Object.prototype...\nvar nativeWatch = ({}).watch;\n\nvar supportsPassive = false;\nif (inBrowser) {\n try {\n var opts = {};\n Object.defineProperty(opts, 'passive', ({\n get: function get () {\n /* istanbul ignore next */\n supportsPassive = true;\n }\n })); // https://github.com/facebook/flow/issues/285\n window.addEventListener('test-passive', null, opts);\n } catch (e) {}\n}\n\n// this needs to be lazy-evaled because vue may be required before\n// vue-server-renderer can set VUE_ENV\nvar _isServer;\nvar isServerRendering = function () {\n if (_isServer === undefined) {\n /* istanbul ignore if */\n if (!inBrowser && !inWeex && typeof global !== 'undefined') {\n // detect presence of vue-server-renderer and avoid\n // Webpack shimming the process\n _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';\n } else {\n _isServer = false;\n }\n }\n return _isServer\n};\n\n// detect devtools\nvar devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;\n\n/* istanbul ignore next */\nfunction isNative (Ctor) {\n return typeof Ctor === 'function' && /native code/.test(Ctor.toString())\n}\n\nvar hasSymbol =\n typeof Symbol !== 'undefined' && isNative(Symbol) &&\n typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);\n\nvar _Set;\n/* istanbul ignore if */ // $flow-disable-line\nif (typeof Set !== 'undefined' && isNative(Set)) {\n // use native Set when available.\n _Set = Set;\n} else {\n // a non-standard Set polyfill that only works with primitive keys.\n _Set = /*@__PURE__*/(function () {\n function Set () {\n this.set = Object.create(null);\n }\n Set.prototype.has = function has (key) {\n return this.set[key] === true\n };\n Set.prototype.add = function add (key) {\n this.set[key] = true;\n };\n Set.prototype.clear = function clear () {\n this.set = Object.create(null);\n };\n\n return Set;\n }());\n}\n\n/* */\n\nvar warn = noop;\nvar tip = noop;\nvar generateComponentTrace = (noop); // work around flow check\nvar formatComponentName = (noop);\n\nif (process.env.NODE_ENV !== 'production') {\n var hasConsole = typeof console !== 'undefined';\n var classifyRE = /(?:^|[-_])(\\w)/g;\n var classify = function (str) { return str\n .replace(classifyRE, function (c) { return c.toUpperCase(); })\n .replace(/[-_]/g, ''); };\n\n warn = function (msg, vm) {\n var trace = vm ? generateComponentTrace(vm) : '';\n\n if (config.warnHandler) {\n config.warnHandler.call(null, msg, vm, trace);\n } else if (hasConsole && (!config.silent)) {\n console.error((\"[Vue warn]: \" + msg + trace));\n }\n };\n\n tip = function (msg, vm) {\n if (hasConsole && (!config.silent)) {\n console.warn(\"[Vue tip]: \" + msg + (\n vm ? generateComponentTrace(vm) : ''\n ));\n }\n };\n\n formatComponentName = function (vm, includeFile) {\n if (vm.$root === vm) {\n return ''\n }\n var options = typeof vm === 'function' && vm.cid != null\n ? vm.options\n : vm._isVue\n ? vm.$options || vm.constructor.options\n : vm;\n var name = options.name || options._componentTag;\n var file = options.__file;\n if (!name && file) {\n var match = file.match(/([^/\\\\]+)\\.vue$/);\n name = match && match[1];\n }\n\n return (\n (name ? (\"<\" + (classify(name)) + \">\") : \"\") +\n (file && includeFile !== false ? (\" at \" + file) : '')\n )\n };\n\n var repeat = function (str, n) {\n var res = '';\n while (n) {\n if (n % 2 === 1) { res += str; }\n if (n > 1) { str += str; }\n n >>= 1;\n }\n return res\n };\n\n generateComponentTrace = function (vm) {\n if (vm._isVue && vm.$parent) {\n var tree = [];\n var currentRecursiveSequence = 0;\n while (vm) {\n if (tree.length > 0) {\n var last = tree[tree.length - 1];\n if (last.constructor === vm.constructor) {\n currentRecursiveSequence++;\n vm = vm.$parent;\n continue\n } else if (currentRecursiveSequence > 0) {\n tree[tree.length - 1] = [last, currentRecursiveSequence];\n currentRecursiveSequence = 0;\n }\n }\n tree.push(vm);\n vm = vm.$parent;\n }\n return '\\n\\nfound in\\n\\n' + tree\n .map(function (vm, i) { return (\"\" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)\n ? ((formatComponentName(vm[0])) + \"... (\" + (vm[1]) + \" recursive calls)\")\n : formatComponentName(vm))); })\n .join('\\n')\n } else {\n return (\"\\n\\n(found in \" + (formatComponentName(vm)) + \")\")\n }\n };\n}\n\n/* */\n\nvar uid = 0;\n\n/**\n * A dep is an observable that can have multiple\n * directives subscribing to it.\n */\nvar Dep = function Dep () {\n this.id = uid++;\n this.subs = [];\n};\n\nDep.prototype.addSub = function addSub (sub) {\n this.subs.push(sub);\n};\n\nDep.prototype.removeSub = function removeSub (sub) {\n remove(this.subs, sub);\n};\n\nDep.prototype.depend = function depend () {\n if (Dep.target) {\n Dep.target.addDep(this);\n }\n};\n\nDep.prototype.notify = function notify () {\n // stabilize the subscriber list first\n var subs = this.subs.slice();\n if (process.env.NODE_ENV !== 'production' && !config.async) {\n // subs aren't sorted in scheduler if not running async\n // we need to sort them now to make sure they fire in correct\n // order\n subs.sort(function (a, b) { return a.id - b.id; });\n }\n for (var i = 0, l = subs.length; i < l; i++) {\n subs[i].update();\n }\n};\n\n// The current target watcher being evaluated.\n// This is globally unique because only one watcher\n// can be evaluated at a time.\nDep.target = null;\nvar targetStack = [];\n\nfunction pushTarget (target) {\n targetStack.push(target);\n Dep.target = target;\n}\n\nfunction popTarget () {\n targetStack.pop();\n Dep.target = targetStack[targetStack.length - 1];\n}\n\n/* */\n\nvar VNode = function VNode (\n tag,\n data,\n children,\n text,\n elm,\n context,\n componentOptions,\n asyncFactory\n) {\n this.tag = tag;\n this.data = data;\n this.children = children;\n this.text = text;\n this.elm = elm;\n this.ns = undefined;\n this.context = context;\n this.fnContext = undefined;\n this.fnOptions = undefined;\n this.fnScopeId = undefined;\n this.key = data && data.key;\n this.componentOptions = componentOptions;\n this.componentInstance = undefined;\n this.parent = undefined;\n this.raw = false;\n this.isStatic = false;\n this.isRootInsert = true;\n this.isComment = false;\n this.isCloned = false;\n this.isOnce = false;\n this.asyncFactory = asyncFactory;\n this.asyncMeta = undefined;\n this.isAsyncPlaceholder = false;\n};\n\nvar prototypeAccessors = { child: { configurable: true } };\n\n// DEPRECATED: alias for componentInstance for backwards compat.\n/* istanbul ignore next */\nprototypeAccessors.child.get = function () {\n return this.componentInstance\n};\n\nObject.defineProperties( VNode.prototype, prototypeAccessors );\n\nvar createEmptyVNode = function (text) {\n if ( text === void 0 ) text = '';\n\n var node = new VNode();\n node.text = text;\n node.isComment = true;\n return node\n};\n\nfunction createTextVNode (val) {\n return new VNode(undefined, undefined, undefined, String(val))\n}\n\n// optimized shallow clone\n// used for static nodes and slot nodes because they may be reused across\n// multiple renders, cloning them avoids errors when DOM manipulations rely\n// on their elm reference.\nfunction cloneVNode (vnode) {\n var cloned = new VNode(\n vnode.tag,\n vnode.data,\n // #7975\n // clone children array to avoid mutating original in case of cloning\n // a child.\n vnode.children && vnode.children.slice(),\n vnode.text,\n vnode.elm,\n vnode.context,\n vnode.componentOptions,\n vnode.asyncFactory\n );\n cloned.ns = vnode.ns;\n cloned.isStatic = vnode.isStatic;\n cloned.key = vnode.key;\n cloned.isComment = vnode.isComment;\n cloned.fnContext = vnode.fnContext;\n cloned.fnOptions = vnode.fnOptions;\n cloned.fnScopeId = vnode.fnScopeId;\n cloned.asyncMeta = vnode.asyncMeta;\n cloned.isCloned = true;\n return cloned\n}\n\n/*\n * not type checking this file because flow doesn't play well with\n * dynamically accessing methods on Array prototype\n */\n\nvar arrayProto = Array.prototype;\nvar arrayMethods = Object.create(arrayProto);\n\nvar methodsToPatch = [\n 'push',\n 'pop',\n 'shift',\n 'unshift',\n 'splice',\n 'sort',\n 'reverse'\n];\n\n/**\n * Intercept mutating methods and emit events\n */\nmethodsToPatch.forEach(function (method) {\n // cache original method\n var original = arrayProto[method];\n def(arrayMethods, method, function mutator () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n var result = original.apply(this, args);\n var ob = this.__ob__;\n var inserted;\n switch (method) {\n case 'push':\n case 'unshift':\n inserted = args;\n break\n case 'splice':\n inserted = args.slice(2);\n break\n }\n if (inserted) { ob.observeArray(inserted); }\n // notify change\n ob.dep.notify();\n return result\n });\n});\n\n/* */\n\nvar arrayKeys = Object.getOwnPropertyNames(arrayMethods);\n\n/**\n * In some cases we may want to disable observation inside a component's\n * update computation.\n */\nvar shouldObserve = true;\n\nfunction toggleObserving (value) {\n shouldObserve = value;\n}\n\n/**\n * Observer class that is attached to each observed\n * object. Once attached, the observer converts the target\n * object's property keys into getter/setters that\n * collect dependencies and dispatch updates.\n */\nvar Observer = function Observer (value) {\n this.value = value;\n this.dep = new Dep();\n this.vmCount = 0;\n def(value, '__ob__', this);\n if (Array.isArray(value)) {\n if (hasProto) {\n protoAugment(value, arrayMethods);\n } else {\n copyAugment(value, arrayMethods, arrayKeys);\n }\n this.observeArray(value);\n } else {\n this.walk(value);\n }\n};\n\n/**\n * Walk through all properties and convert them into\n * getter/setters. This method should only be called when\n * value type is Object.\n */\nObserver.prototype.walk = function walk (obj) {\n var keys = Object.keys(obj);\n for (var i = 0; i < keys.length; i++) {\n defineReactive$$1(obj, keys[i]);\n }\n};\n\n/**\n * Observe a list of Array items.\n */\nObserver.prototype.observeArray = function observeArray (items) {\n for (var i = 0, l = items.length; i < l; i++) {\n observe(items[i]);\n }\n};\n\n// helpers\n\n/**\n * Augment a target Object or Array by intercepting\n * the prototype chain using __proto__\n */\nfunction protoAugment (target, src) {\n /* eslint-disable no-proto */\n target.__proto__ = src;\n /* eslint-enable no-proto */\n}\n\n/**\n * Augment a target Object or Array by defining\n * hidden properties.\n */\n/* istanbul ignore next */\nfunction copyAugment (target, src, keys) {\n for (var i = 0, l = keys.length; i < l; i++) {\n var key = keys[i];\n def(target, key, src[key]);\n }\n}\n\n/**\n * Attempt to create an observer instance for a value,\n * returns the new observer if successfully observed,\n * or the existing observer if the value already has one.\n */\nfunction observe (value, asRootData) {\n if (!isObject(value) || value instanceof VNode) {\n return\n }\n var ob;\n if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {\n ob = value.__ob__;\n } else if (\n shouldObserve &&\n !isServerRendering() &&\n (Array.isArray(value) || isPlainObject(value)) &&\n Object.isExtensible(value) &&\n !value._isVue\n ) {\n ob = new Observer(value);\n }\n if (asRootData && ob) {\n ob.vmCount++;\n }\n return ob\n}\n\n/**\n * Define a reactive property on an Object.\n */\nfunction defineReactive$$1 (\n obj,\n key,\n val,\n customSetter,\n shallow\n) {\n var dep = new Dep();\n\n var property = Object.getOwnPropertyDescriptor(obj, key);\n if (property && property.configurable === false) {\n return\n }\n\n // cater for pre-defined getter/setters\n var getter = property && property.get;\n var setter = property && property.set;\n if ((!getter || setter) && arguments.length === 2) {\n val = obj[key];\n }\n\n var childOb = !shallow && observe(val);\n Object.defineProperty(obj, key, {\n enumerable: true,\n configurable: true,\n get: function reactiveGetter () {\n var value = getter ? getter.call(obj) : val;\n if (Dep.target) {\n dep.depend();\n if (childOb) {\n childOb.dep.depend();\n if (Array.isArray(value)) {\n dependArray(value);\n }\n }\n }\n return value\n },\n set: function reactiveSetter (newVal) {\n var value = getter ? getter.call(obj) : val;\n /* eslint-disable no-self-compare */\n if (newVal === value || (newVal !== newVal && value !== value)) {\n return\n }\n /* eslint-enable no-self-compare */\n if (process.env.NODE_ENV !== 'production' && customSetter) {\n customSetter();\n }\n // #7981: for accessor properties without setter\n if (getter && !setter) { return }\n if (setter) {\n setter.call(obj, newVal);\n } else {\n val = newVal;\n }\n childOb = !shallow && observe(newVal);\n dep.notify();\n }\n });\n}\n\n/**\n * Set a property on an object. Adds the new property and\n * triggers change notification if the property doesn't\n * already exist.\n */\nfunction set (target, key, val) {\n if (process.env.NODE_ENV !== 'production' &&\n (isUndef(target) || isPrimitive(target))\n ) {\n warn((\"Cannot set reactive property on undefined, null, or primitive value: \" + ((target))));\n }\n if (Array.isArray(target) && isValidArrayIndex(key)) {\n target.length = Math.max(target.length, key);\n target.splice(key, 1, val);\n return val\n }\n if (key in target && !(key in Object.prototype)) {\n target[key] = val;\n return val\n }\n var ob = (target).__ob__;\n if (target._isVue || (ob && ob.vmCount)) {\n process.env.NODE_ENV !== 'production' && warn(\n 'Avoid adding reactive properties to a Vue instance or its root $data ' +\n 'at runtime - declare it upfront in the data option.'\n );\n return val\n }\n if (!ob) {\n target[key] = val;\n return val\n }\n defineReactive$$1(ob.value, key, val);\n ob.dep.notify();\n return val\n}\n\n/**\n * Delete a property and trigger change if necessary.\n */\nfunction del (target, key) {\n if (process.env.NODE_ENV !== 'production' &&\n (isUndef(target) || isPrimitive(target))\n ) {\n warn((\"Cannot delete reactive property on undefined, null, or primitive value: \" + ((target))));\n }\n if (Array.isArray(target) && isValidArrayIndex(key)) {\n target.splice(key, 1);\n return\n }\n var ob = (target).__ob__;\n if (target._isVue || (ob && ob.vmCount)) {\n process.env.NODE_ENV !== 'production' && warn(\n 'Avoid deleting properties on a Vue instance or its root $data ' +\n '- just set it to null.'\n );\n return\n }\n if (!hasOwn(target, key)) {\n return\n }\n delete target[key];\n if (!ob) {\n return\n }\n ob.dep.notify();\n}\n\n/**\n * Collect dependencies on array elements when the array is touched, since\n * we cannot intercept array element access like property getters.\n */\nfunction dependArray (value) {\n for (var e = (void 0), i = 0, l = value.length; i < l; i++) {\n e = value[i];\n e && e.__ob__ && e.__ob__.dep.depend();\n if (Array.isArray(e)) {\n dependArray(e);\n }\n }\n}\n\n/* */\n\n/**\n * Option overwriting strategies are functions that handle\n * how to merge a parent option value and a child option\n * value into the final value.\n */\nvar strats = config.optionMergeStrategies;\n\n/**\n * Options with restrictions\n */\nif (process.env.NODE_ENV !== 'production') {\n strats.el = strats.propsData = function (parent, child, vm, key) {\n if (!vm) {\n warn(\n \"option \\\"\" + key + \"\\\" can only be used during instance \" +\n 'creation with the `new` keyword.'\n );\n }\n return defaultStrat(parent, child)\n };\n}\n\n/**\n * Helper that recursively merges two data objects together.\n */\nfunction mergeData (to, from) {\n if (!from) { return to }\n var key, toVal, fromVal;\n\n var keys = hasSymbol\n ? Reflect.ownKeys(from)\n : Object.keys(from);\n\n for (var i = 0; i < keys.length; i++) {\n key = keys[i];\n // in case the object is already observed...\n if (key === '__ob__') { continue }\n toVal = to[key];\n fromVal = from[key];\n if (!hasOwn(to, key)) {\n set(to, key, fromVal);\n } else if (\n toVal !== fromVal &&\n isPlainObject(toVal) &&\n isPlainObject(fromVal)\n ) {\n mergeData(toVal, fromVal);\n }\n }\n return to\n}\n\n/**\n * Data\n */\nfunction mergeDataOrFn (\n parentVal,\n childVal,\n vm\n) {\n if (!vm) {\n // in a Vue.extend merge, both should be functions\n if (!childVal) {\n return parentVal\n }\n if (!parentVal) {\n return childVal\n }\n // when parentVal & childVal are both present,\n // we need to return a function that returns the\n // merged result of both functions... no need to\n // check if parentVal is a function here because\n // it has to be a function to pass previous merges.\n return function mergedDataFn () {\n return mergeData(\n typeof childVal === 'function' ? childVal.call(this, this) : childVal,\n typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal\n )\n }\n } else {\n return function mergedInstanceDataFn () {\n // instance merge\n var instanceData = typeof childVal === 'function'\n ? childVal.call(vm, vm)\n : childVal;\n var defaultData = typeof parentVal === 'function'\n ? parentVal.call(vm, vm)\n : parentVal;\n if (instanceData) {\n return mergeData(instanceData, defaultData)\n } else {\n return defaultData\n }\n }\n }\n}\n\nstrats.data = function (\n parentVal,\n childVal,\n vm\n) {\n if (!vm) {\n if (childVal && typeof childVal !== 'function') {\n process.env.NODE_ENV !== 'production' && warn(\n 'The \"data\" option should be a function ' +\n 'that returns a per-instance value in component ' +\n 'definitions.',\n vm\n );\n\n return parentVal\n }\n return mergeDataOrFn(parentVal, childVal)\n }\n\n return mergeDataOrFn(parentVal, childVal, vm)\n};\n\n/**\n * Hooks and props are merged as arrays.\n */\nfunction mergeHook (\n parentVal,\n childVal\n) {\n var res = childVal\n ? parentVal\n ? parentVal.concat(childVal)\n : Array.isArray(childVal)\n ? childVal\n : [childVal]\n : parentVal;\n return res\n ? dedupeHooks(res)\n : res\n}\n\nfunction dedupeHooks (hooks) {\n var res = [];\n for (var i = 0; i < hooks.length; i++) {\n if (res.indexOf(hooks[i]) === -1) {\n res.push(hooks[i]);\n }\n }\n return res\n}\n\nLIFECYCLE_HOOKS.forEach(function (hook) {\n strats[hook] = mergeHook;\n});\n\n/**\n * Assets\n *\n * When a vm is present (instance creation), we need to do\n * a three-way merge between constructor options, instance\n * options and parent options.\n */\nfunction mergeAssets (\n parentVal,\n childVal,\n vm,\n key\n) {\n var res = Object.create(parentVal || null);\n if (childVal) {\n process.env.NODE_ENV !== 'production' && assertObjectType(key, childVal, vm);\n return extend(res, childVal)\n } else {\n return res\n }\n}\n\nASSET_TYPES.forEach(function (type) {\n strats[type + 's'] = mergeAssets;\n});\n\n/**\n * Watchers.\n *\n * Watchers hashes should not overwrite one\n * another, so we merge them as arrays.\n */\nstrats.watch = function (\n parentVal,\n childVal,\n vm,\n key\n) {\n // work around Firefox's Object.prototype.watch...\n if (parentVal === nativeWatch) { parentVal = undefined; }\n if (childVal === nativeWatch) { childVal = undefined; }\n /* istanbul ignore if */\n if (!childVal) { return Object.create(parentVal || null) }\n if (process.env.NODE_ENV !== 'production') {\n assertObjectType(key, childVal, vm);\n }\n if (!parentVal) { return childVal }\n var ret = {};\n extend(ret, parentVal);\n for (var key$1 in childVal) {\n var parent = ret[key$1];\n var child = childVal[key$1];\n if (parent && !Array.isArray(parent)) {\n parent = [parent];\n }\n ret[key$1] = parent\n ? parent.concat(child)\n : Array.isArray(child) ? child : [child];\n }\n return ret\n};\n\n/**\n * Other object hashes.\n */\nstrats.props =\nstrats.methods =\nstrats.inject =\nstrats.computed = function (\n parentVal,\n childVal,\n vm,\n key\n) {\n if (childVal && process.env.NODE_ENV !== 'production') {\n assertObjectType(key, childVal, vm);\n }\n if (!parentVal) { return childVal }\n var ret = Object.create(null);\n extend(ret, parentVal);\n if (childVal) { extend(ret, childVal); }\n return ret\n};\nstrats.provide = mergeDataOrFn;\n\n/**\n * Default strategy.\n */\nvar defaultStrat = function (parentVal, childVal) {\n return childVal === undefined\n ? parentVal\n : childVal\n};\n\n/**\n * Validate component names\n */\nfunction checkComponents (options) {\n for (var key in options.components) {\n validateComponentName(key);\n }\n}\n\nfunction validateComponentName (name) {\n if (!new RegExp((\"^[a-zA-Z][\\\\-\\\\.0-9_\" + (unicodeRegExp.source) + \"]*$\")).test(name)) {\n warn(\n 'Invalid component name: \"' + name + '\". Component names ' +\n 'should conform to valid custom element name in html5 specification.'\n );\n }\n if (isBuiltInTag(name) || config.isReservedTag(name)) {\n warn(\n 'Do not use built-in or reserved HTML elements as component ' +\n 'id: ' + name\n );\n }\n}\n\n/**\n * Ensure all props option syntax are normalized into the\n * Object-based format.\n */\nfunction normalizeProps (options, vm) {\n var props = options.props;\n if (!props) { return }\n var res = {};\n var i, val, name;\n if (Array.isArray(props)) {\n i = props.length;\n while (i--) {\n val = props[i];\n if (typeof val === 'string') {\n name = camelize(val);\n res[name] = { type: null };\n } else if (process.env.NODE_ENV !== 'production') {\n warn('props must be strings when using array syntax.');\n }\n }\n } else if (isPlainObject(props)) {\n for (var key in props) {\n val = props[key];\n name = camelize(key);\n res[name] = isPlainObject(val)\n ? val\n : { type: val };\n }\n } else if (process.env.NODE_ENV !== 'production') {\n warn(\n \"Invalid value for option \\\"props\\\": expected an Array or an Object, \" +\n \"but got \" + (toRawType(props)) + \".\",\n vm\n );\n }\n options.props = res;\n}\n\n/**\n * Normalize all injections into Object-based format\n */\nfunction normalizeInject (options, vm) {\n var inject = options.inject;\n if (!inject) { return }\n var normalized = options.inject = {};\n if (Array.isArray(inject)) {\n for (var i = 0; i < inject.length; i++) {\n normalized[inject[i]] = { from: inject[i] };\n }\n } else if (isPlainObject(inject)) {\n for (var key in inject) {\n var val = inject[key];\n normalized[key] = isPlainObject(val)\n ? extend({ from: key }, val)\n : { from: val };\n }\n } else if (process.env.NODE_ENV !== 'production') {\n warn(\n \"Invalid value for option \\\"inject\\\": expected an Array or an Object, \" +\n \"but got \" + (toRawType(inject)) + \".\",\n vm\n );\n }\n}\n\n/**\n * Normalize raw function directives into object format.\n */\nfunction normalizeDirectives (options) {\n var dirs = options.directives;\n if (dirs) {\n for (var key in dirs) {\n var def$$1 = dirs[key];\n if (typeof def$$1 === 'function') {\n dirs[key] = { bind: def$$1, update: def$$1 };\n }\n }\n }\n}\n\nfunction assertObjectType (name, value, vm) {\n if (!isPlainObject(value)) {\n warn(\n \"Invalid value for option \\\"\" + name + \"\\\": expected an Object, \" +\n \"but got \" + (toRawType(value)) + \".\",\n vm\n );\n }\n}\n\n/**\n * Merge two option objects into a new one.\n * Core utility used in both instantiation and inheritance.\n */\nfunction mergeOptions (\n parent,\n child,\n vm\n) {\n if (process.env.NODE_ENV !== 'production') {\n checkComponents(child);\n }\n\n if (typeof child === 'function') {\n child = child.options;\n }\n\n normalizeProps(child, vm);\n normalizeInject(child, vm);\n normalizeDirectives(child);\n\n // Apply extends and mixins on the child options,\n // but only if it is a raw options object that isn't\n // the result of another mergeOptions call.\n // Only merged options has the _base property.\n if (!child._base) {\n if (child.extends) {\n parent = mergeOptions(parent, child.extends, vm);\n }\n if (child.mixins) {\n for (var i = 0, l = child.mixins.length; i < l; i++) {\n parent = mergeOptions(parent, child.mixins[i], vm);\n }\n }\n }\n\n var options = {};\n var key;\n for (key in parent) {\n mergeField(key);\n }\n for (key in child) {\n if (!hasOwn(parent, key)) {\n mergeField(key);\n }\n }\n function mergeField (key) {\n var strat = strats[key] || defaultStrat;\n options[key] = strat(parent[key], child[key], vm, key);\n }\n return options\n}\n\n/**\n * Resolve an asset.\n * This function is used because child instances need access\n * to assets defined in its ancestor chain.\n */\nfunction resolveAsset (\n options,\n type,\n id,\n warnMissing\n) {\n /* istanbul ignore if */\n if (typeof id !== 'string') {\n return\n }\n var assets = options[type];\n // check local registration variations first\n if (hasOwn(assets, id)) { return assets[id] }\n var camelizedId = camelize(id);\n if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }\n var PascalCaseId = capitalize(camelizedId);\n if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }\n // fallback to prototype chain\n var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];\n if (process.env.NODE_ENV !== 'production' && warnMissing && !res) {\n warn(\n 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,\n options\n );\n }\n return res\n}\n\n/* */\n\n\n\nfunction validateProp (\n key,\n propOptions,\n propsData,\n vm\n) {\n var prop = propOptions[key];\n var absent = !hasOwn(propsData, key);\n var value = propsData[key];\n // boolean casting\n var booleanIndex = getTypeIndex(Boolean, prop.type);\n if (booleanIndex > -1) {\n if (absent && !hasOwn(prop, 'default')) {\n value = false;\n } else if (value === '' || value === hyphenate(key)) {\n // only cast empty string / same name to boolean if\n // boolean has higher priority\n var stringIndex = getTypeIndex(String, prop.type);\n if (stringIndex < 0 || booleanIndex < stringIndex) {\n value = true;\n }\n }\n }\n // check default value\n if (value === undefined) {\n value = getPropDefaultValue(vm, prop, key);\n // since the default value is a fresh copy,\n // make sure to observe it.\n var prevShouldObserve = shouldObserve;\n toggleObserving(true);\n observe(value);\n toggleObserving(prevShouldObserve);\n }\n if (\n process.env.NODE_ENV !== 'production' &&\n // skip validation for weex recycle-list child component props\n !(false)\n ) {\n assertProp(prop, key, value, vm, absent);\n }\n return value\n}\n\n/**\n * Get the default value of a prop.\n */\nfunction getPropDefaultValue (vm, prop, key) {\n // no default, return undefined\n if (!hasOwn(prop, 'default')) {\n return undefined\n }\n var def = prop.default;\n // warn against non-factory defaults for Object & Array\n if (process.env.NODE_ENV !== 'production' && isObject(def)) {\n warn(\n 'Invalid default value for prop \"' + key + '\": ' +\n 'Props with type Object/Array must use a factory function ' +\n 'to return the default value.',\n vm\n );\n }\n // the raw prop value was also undefined from previous render,\n // return previous default value to avoid unnecessary watcher trigger\n if (vm && vm.$options.propsData &&\n vm.$options.propsData[key] === undefined &&\n vm._props[key] !== undefined\n ) {\n return vm._props[key]\n }\n // call factory function for non-Function types\n // a value is Function if its prototype is function even across different execution context\n return typeof def === 'function' && getType(prop.type) !== 'Function'\n ? def.call(vm)\n : def\n}\n\n/**\n * Assert whether a prop is valid.\n */\nfunction assertProp (\n prop,\n name,\n value,\n vm,\n absent\n) {\n if (prop.required && absent) {\n warn(\n 'Missing required prop: \"' + name + '\"',\n vm\n );\n return\n }\n if (value == null && !prop.required) {\n return\n }\n var type = prop.type;\n var valid = !type || type === true;\n var expectedTypes = [];\n if (type) {\n if (!Array.isArray(type)) {\n type = [type];\n }\n for (var i = 0; i < type.length && !valid; i++) {\n var assertedType = assertType(value, type[i], vm);\n expectedTypes.push(assertedType.expectedType || '');\n valid = assertedType.valid;\n }\n }\n\n var haveExpectedTypes = expectedTypes.some(function (t) { return t; });\n if (!valid && haveExpectedTypes) {\n warn(\n getInvalidTypeMessage(name, value, expectedTypes),\n vm\n );\n return\n }\n var validator = prop.validator;\n if (validator) {\n if (!validator(value)) {\n warn(\n 'Invalid prop: custom validator check failed for prop \"' + name + '\".',\n vm\n );\n }\n }\n}\n\nvar simpleCheckRE = /^(String|Number|Boolean|Function|Symbol|BigInt)$/;\n\nfunction assertType (value, type, vm) {\n var valid;\n var expectedType = getType(type);\n if (simpleCheckRE.test(expectedType)) {\n var t = typeof value;\n valid = t === expectedType.toLowerCase();\n // for primitive wrapper objects\n if (!valid && t === 'object') {\n valid = value instanceof type;\n }\n } else if (expectedType === 'Object') {\n valid = isPlainObject(value);\n } else if (expectedType === 'Array') {\n valid = Array.isArray(value);\n } else {\n try {\n valid = value instanceof type;\n } catch (e) {\n warn('Invalid prop type: \"' + String(type) + '\" is not a constructor', vm);\n valid = false;\n }\n }\n return {\n valid: valid,\n expectedType: expectedType\n }\n}\n\nvar functionTypeCheckRE = /^\\s*function (\\w+)/;\n\n/**\n * Use function string name to check built-in types,\n * because a simple equality check will fail when running\n * across different vms / iframes.\n */\nfunction getType (fn) {\n var match = fn && fn.toString().match(functionTypeCheckRE);\n return match ? match[1] : ''\n}\n\nfunction isSameType (a, b) {\n return getType(a) === getType(b)\n}\n\nfunction getTypeIndex (type, expectedTypes) {\n if (!Array.isArray(expectedTypes)) {\n return isSameType(expectedTypes, type) ? 0 : -1\n }\n for (var i = 0, len = expectedTypes.length; i < len; i++) {\n if (isSameType(expectedTypes[i], type)) {\n return i\n }\n }\n return -1\n}\n\nfunction getInvalidTypeMessage (name, value, expectedTypes) {\n var message = \"Invalid prop: type check failed for prop \\\"\" + name + \"\\\".\" +\n \" Expected \" + (expectedTypes.map(capitalize).join(', '));\n var expectedType = expectedTypes[0];\n var receivedType = toRawType(value);\n // check if we need to specify expected value\n if (\n expectedTypes.length === 1 &&\n isExplicable(expectedType) &&\n isExplicable(typeof value) &&\n !isBoolean(expectedType, receivedType)\n ) {\n message += \" with value \" + (styleValue(value, expectedType));\n }\n message += \", got \" + receivedType + \" \";\n // check if we need to specify received value\n if (isExplicable(receivedType)) {\n message += \"with value \" + (styleValue(value, receivedType)) + \".\";\n }\n return message\n}\n\nfunction styleValue (value, type) {\n if (type === 'String') {\n return (\"\\\"\" + value + \"\\\"\")\n } else if (type === 'Number') {\n return (\"\" + (Number(value)))\n } else {\n return (\"\" + value)\n }\n}\n\nvar EXPLICABLE_TYPES = ['string', 'number', 'boolean'];\nfunction isExplicable (value) {\n return EXPLICABLE_TYPES.some(function (elem) { return value.toLowerCase() === elem; })\n}\n\nfunction isBoolean () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })\n}\n\n/* */\n\nfunction handleError (err, vm, info) {\n // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.\n // See: https://github.com/vuejs/vuex/issues/1505\n pushTarget();\n try {\n if (vm) {\n var cur = vm;\n while ((cur = cur.$parent)) {\n var hooks = cur.$options.errorCaptured;\n if (hooks) {\n for (var i = 0; i < hooks.length; i++) {\n try {\n var capture = hooks[i].call(cur, err, vm, info) === false;\n if (capture) { return }\n } catch (e) {\n globalHandleError(e, cur, 'errorCaptured hook');\n }\n }\n }\n }\n }\n globalHandleError(err, vm, info);\n } finally {\n popTarget();\n }\n}\n\nfunction invokeWithErrorHandling (\n handler,\n context,\n args,\n vm,\n info\n) {\n var res;\n try {\n res = args ? handler.apply(context, args) : handler.call(context);\n if (res && !res._isVue && isPromise(res) && !res._handled) {\n res.catch(function (e) { return handleError(e, vm, info + \" (Promise/async)\"); });\n // issue #9511\n // avoid catch triggering multiple times when nested calls\n res._handled = true;\n }\n } catch (e) {\n handleError(e, vm, info);\n }\n return res\n}\n\nfunction globalHandleError (err, vm, info) {\n if (config.errorHandler) {\n try {\n return config.errorHandler.call(null, err, vm, info)\n } catch (e) {\n // if the user intentionally throws the original error in the handler,\n // do not log it twice\n if (e !== err) {\n logError(e, null, 'config.errorHandler');\n }\n }\n }\n logError(err, vm, info);\n}\n\nfunction logError (err, vm, info) {\n if (process.env.NODE_ENV !== 'production') {\n warn((\"Error in \" + info + \": \\\"\" + (err.toString()) + \"\\\"\"), vm);\n }\n /* istanbul ignore else */\n if ((inBrowser || inWeex) && typeof console !== 'undefined') {\n console.error(err);\n } else {\n throw err\n }\n}\n\n/* */\n\nvar isUsingMicroTask = false;\n\nvar callbacks = [];\nvar pending = false;\n\nfunction flushCallbacks () {\n pending = false;\n var copies = callbacks.slice(0);\n callbacks.length = 0;\n for (var i = 0; i < copies.length; i++) {\n copies[i]();\n }\n}\n\n// Here we have async deferring wrappers using microtasks.\n// In 2.5 we used (macro) tasks (in combination with microtasks).\n// However, it has subtle problems when state is changed right before repaint\n// (e.g. #6813, out-in transitions).\n// Also, using (macro) tasks in event handler would cause some weird behaviors\n// that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).\n// So we now use microtasks everywhere, again.\n// A major drawback of this tradeoff is that there are some scenarios\n// where microtasks have too high a priority and fire in between supposedly\n// sequential events (e.g. #4521, #6690, which have workarounds)\n// or even between bubbling of the same event (#6566).\nvar timerFunc;\n\n// The nextTick behavior leverages the microtask queue, which can be accessed\n// via either native Promise.then or MutationObserver.\n// MutationObserver has wider support, however it is seriously bugged in\n// UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It\n// completely stops working after triggering a few times... so, if native\n// Promise is available, we will use it:\n/* istanbul ignore next, $flow-disable-line */\nif (typeof Promise !== 'undefined' && isNative(Promise)) {\n var p = Promise.resolve();\n timerFunc = function () {\n p.then(flushCallbacks);\n // In problematic UIWebViews, Promise.then doesn't completely break, but\n // it can get stuck in a weird state where callbacks are pushed into the\n // microtask queue but the queue isn't being flushed, until the browser\n // needs to do some other work, e.g. handle a timer. Therefore we can\n // \"force\" the microtask queue to be flushed by adding an empty timer.\n if (isIOS) { setTimeout(noop); }\n };\n isUsingMicroTask = true;\n} else if (!isIE && typeof MutationObserver !== 'undefined' && (\n isNative(MutationObserver) ||\n // PhantomJS and iOS 7.x\n MutationObserver.toString() === '[object MutationObserverConstructor]'\n)) {\n // Use MutationObserver where native Promise is not available,\n // e.g. PhantomJS, iOS7, Android 4.4\n // (#6466 MutationObserver is unreliable in IE11)\n var counter = 1;\n var observer = new MutationObserver(flushCallbacks);\n var textNode = document.createTextNode(String(counter));\n observer.observe(textNode, {\n characterData: true\n });\n timerFunc = function () {\n counter = (counter + 1) % 2;\n textNode.data = String(counter);\n };\n isUsingMicroTask = true;\n} else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {\n // Fallback to setImmediate.\n // Technically it leverages the (macro) task queue,\n // but it is still a better choice than setTimeout.\n timerFunc = function () {\n setImmediate(flushCallbacks);\n };\n} else {\n // Fallback to setTimeout.\n timerFunc = function () {\n setTimeout(flushCallbacks, 0);\n };\n}\n\nfunction nextTick (cb, ctx) {\n var _resolve;\n callbacks.push(function () {\n if (cb) {\n try {\n cb.call(ctx);\n } catch (e) {\n handleError(e, ctx, 'nextTick');\n }\n } else if (_resolve) {\n _resolve(ctx);\n }\n });\n if (!pending) {\n pending = true;\n timerFunc();\n }\n // $flow-disable-line\n if (!cb && typeof Promise !== 'undefined') {\n return new Promise(function (resolve) {\n _resolve = resolve;\n })\n }\n}\n\n/* */\n\n/* not type checking this file because flow doesn't play well with Proxy */\n\nvar initProxy;\n\nif (process.env.NODE_ENV !== 'production') {\n var allowedGlobals = makeMap(\n 'Infinity,undefined,NaN,isFinite,isNaN,' +\n 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +\n 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,' +\n 'require' // for Webpack/Browserify\n );\n\n var warnNonPresent = function (target, key) {\n warn(\n \"Property or method \\\"\" + key + \"\\\" is not defined on the instance but \" +\n 'referenced during render. Make sure that this property is reactive, ' +\n 'either in the data option, or for class-based components, by ' +\n 'initializing the property. ' +\n 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',\n target\n );\n };\n\n var warnReservedPrefix = function (target, key) {\n warn(\n \"Property \\\"\" + key + \"\\\" must be accessed with \\\"$data.\" + key + \"\\\" because \" +\n 'properties starting with \"$\" or \"_\" are not proxied in the Vue instance to ' +\n 'prevent conflicts with Vue internals. ' +\n 'See: https://vuejs.org/v2/api/#data',\n target\n );\n };\n\n var hasProxy =\n typeof Proxy !== 'undefined' && isNative(Proxy);\n\n if (hasProxy) {\n var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');\n config.keyCodes = new Proxy(config.keyCodes, {\n set: function set (target, key, value) {\n if (isBuiltInModifier(key)) {\n warn((\"Avoid overwriting built-in modifier in config.keyCodes: .\" + key));\n return false\n } else {\n target[key] = value;\n return true\n }\n }\n });\n }\n\n var hasHandler = {\n has: function has (target, key) {\n var has = key in target;\n var isAllowed = allowedGlobals(key) ||\n (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));\n if (!has && !isAllowed) {\n if (key in target.$data) { warnReservedPrefix(target, key); }\n else { warnNonPresent(target, key); }\n }\n return has || !isAllowed\n }\n };\n\n var getHandler = {\n get: function get (target, key) {\n if (typeof key === 'string' && !(key in target)) {\n if (key in target.$data) { warnReservedPrefix(target, key); }\n else { warnNonPresent(target, key); }\n }\n return target[key]\n }\n };\n\n initProxy = function initProxy (vm) {\n if (hasProxy) {\n // determine which proxy handler to use\n var options = vm.$options;\n var handlers = options.render && options.render._withStripped\n ? getHandler\n : hasHandler;\n vm._renderProxy = new Proxy(vm, handlers);\n } else {\n vm._renderProxy = vm;\n }\n };\n}\n\n/* */\n\nvar seenObjects = new _Set();\n\n/**\n * Recursively traverse an object to evoke all converted\n * getters, so that every nested property inside the object\n * is collected as a \"deep\" dependency.\n */\nfunction traverse (val) {\n _traverse(val, seenObjects);\n seenObjects.clear();\n}\n\nfunction _traverse (val, seen) {\n var i, keys;\n var isA = Array.isArray(val);\n if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {\n return\n }\n if (val.__ob__) {\n var depId = val.__ob__.dep.id;\n if (seen.has(depId)) {\n return\n }\n seen.add(depId);\n }\n if (isA) {\n i = val.length;\n while (i--) { _traverse(val[i], seen); }\n } else {\n keys = Object.keys(val);\n i = keys.length;\n while (i--) { _traverse(val[keys[i]], seen); }\n }\n}\n\nvar mark;\nvar measure;\n\nif (process.env.NODE_ENV !== 'production') {\n var perf = inBrowser && window.performance;\n /* istanbul ignore if */\n if (\n perf &&\n perf.mark &&\n perf.measure &&\n perf.clearMarks &&\n perf.clearMeasures\n ) {\n mark = function (tag) { return perf.mark(tag); };\n measure = function (name, startTag, endTag) {\n perf.measure(name, startTag, endTag);\n perf.clearMarks(startTag);\n perf.clearMarks(endTag);\n // perf.clearMeasures(name)\n };\n }\n}\n\n/* */\n\nvar normalizeEvent = cached(function (name) {\n var passive = name.charAt(0) === '&';\n name = passive ? name.slice(1) : name;\n var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first\n name = once$$1 ? name.slice(1) : name;\n var capture = name.charAt(0) === '!';\n name = capture ? name.slice(1) : name;\n return {\n name: name,\n once: once$$1,\n capture: capture,\n passive: passive\n }\n});\n\nfunction createFnInvoker (fns, vm) {\n function invoker () {\n var arguments$1 = arguments;\n\n var fns = invoker.fns;\n if (Array.isArray(fns)) {\n var cloned = fns.slice();\n for (var i = 0; i < cloned.length; i++) {\n invokeWithErrorHandling(cloned[i], null, arguments$1, vm, \"v-on handler\");\n }\n } else {\n // return handler return value for single handlers\n return invokeWithErrorHandling(fns, null, arguments, vm, \"v-on handler\")\n }\n }\n invoker.fns = fns;\n return invoker\n}\n\nfunction updateListeners (\n on,\n oldOn,\n add,\n remove$$1,\n createOnceHandler,\n vm\n) {\n var name, def$$1, cur, old, event;\n for (name in on) {\n def$$1 = cur = on[name];\n old = oldOn[name];\n event = normalizeEvent(name);\n if (isUndef(cur)) {\n process.env.NODE_ENV !== 'production' && warn(\n \"Invalid handler for event \\\"\" + (event.name) + \"\\\": got \" + String(cur),\n vm\n );\n } else if (isUndef(old)) {\n if (isUndef(cur.fns)) {\n cur = on[name] = createFnInvoker(cur, vm);\n }\n if (isTrue(event.once)) {\n cur = on[name] = createOnceHandler(event.name, cur, event.capture);\n }\n add(event.name, cur, event.capture, event.passive, event.params);\n } else if (cur !== old) {\n old.fns = cur;\n on[name] = old;\n }\n }\n for (name in oldOn) {\n if (isUndef(on[name])) {\n event = normalizeEvent(name);\n remove$$1(event.name, oldOn[name], event.capture);\n }\n }\n}\n\n/* */\n\nfunction mergeVNodeHook (def, hookKey, hook) {\n if (def instanceof VNode) {\n def = def.data.hook || (def.data.hook = {});\n }\n var invoker;\n var oldHook = def[hookKey];\n\n function wrappedHook () {\n hook.apply(this, arguments);\n // important: remove merged hook to ensure it's called only once\n // and prevent memory leak\n remove(invoker.fns, wrappedHook);\n }\n\n if (isUndef(oldHook)) {\n // no existing hook\n invoker = createFnInvoker([wrappedHook]);\n } else {\n /* istanbul ignore if */\n if (isDef(oldHook.fns) && isTrue(oldHook.merged)) {\n // already a merged invoker\n invoker = oldHook;\n invoker.fns.push(wrappedHook);\n } else {\n // existing plain hook\n invoker = createFnInvoker([oldHook, wrappedHook]);\n }\n }\n\n invoker.merged = true;\n def[hookKey] = invoker;\n}\n\n/* */\n\nfunction extractPropsFromVNodeData (\n data,\n Ctor,\n tag\n) {\n // we are only extracting raw values here.\n // validation and default values are handled in the child\n // component itself.\n var propOptions = Ctor.options.props;\n if (isUndef(propOptions)) {\n return\n }\n var res = {};\n var attrs = data.attrs;\n var props = data.props;\n if (isDef(attrs) || isDef(props)) {\n for (var key in propOptions) {\n var altKey = hyphenate(key);\n if (process.env.NODE_ENV !== 'production') {\n var keyInLowerCase = key.toLowerCase();\n if (\n key !== keyInLowerCase &&\n attrs && hasOwn(attrs, keyInLowerCase)\n ) {\n tip(\n \"Prop \\\"\" + keyInLowerCase + \"\\\" is passed to component \" +\n (formatComponentName(tag || Ctor)) + \", but the declared prop name is\" +\n \" \\\"\" + key + \"\\\". \" +\n \"Note that HTML attributes are case-insensitive and camelCased \" +\n \"props need to use their kebab-case equivalents when using in-DOM \" +\n \"templates. You should probably use \\\"\" + altKey + \"\\\" instead of \\\"\" + key + \"\\\".\"\n );\n }\n }\n checkProp(res, props, key, altKey, true) ||\n checkProp(res, attrs, key, altKey, false);\n }\n }\n return res\n}\n\nfunction checkProp (\n res,\n hash,\n key,\n altKey,\n preserve\n) {\n if (isDef(hash)) {\n if (hasOwn(hash, key)) {\n res[key] = hash[key];\n if (!preserve) {\n delete hash[key];\n }\n return true\n } else if (hasOwn(hash, altKey)) {\n res[key] = hash[altKey];\n if (!preserve) {\n delete hash[altKey];\n }\n return true\n }\n }\n return false\n}\n\n/* */\n\n// The template compiler attempts to minimize the need for normalization by\n// statically analyzing the template at compile time.\n//\n// For plain HTML markup, normalization can be completely skipped because the\n// generated render function is guaranteed to return Array. There are\n// two cases where extra normalization is needed:\n\n// 1. When the children contains components - because a functional component\n// may return an Array instead of a single root. In this case, just a simple\n// normalization is needed - if any child is an Array, we flatten the whole\n// thing with Array.prototype.concat. It is guaranteed to be only 1-level deep\n// because functional components already normalize their own children.\nfunction simpleNormalizeChildren (children) {\n for (var i = 0; i < children.length; i++) {\n if (Array.isArray(children[i])) {\n return Array.prototype.concat.apply([], children)\n }\n }\n return children\n}\n\n// 2. When the children contains constructs that always generated nested Arrays,\n// e.g.