浏览代码

Removed files which were moved to ckeditor5-utils.

Piotrek Koszuliński 9 年之前
父节点
当前提交
c641d2c76d
共有 100 个文件被更改,包括 0 次插入3223 次删除
  1. 0 40
      packages/ckeditor5-engine/dev/tasks/lodash/tasks.js
  2. 0 1
      packages/ckeditor5-engine/gulpfile.js
  3. 0 51
      packages/ckeditor5-engine/src/ckeditorerror.js
  4. 0 282
      packages/ckeditor5-engine/src/collection.js
  5. 0 191
      packages/ckeditor5-engine/src/config.js
  6. 0 310
      packages/ckeditor5-engine/src/emittermixin.js
  7. 0 48
      packages/ckeditor5-engine/src/eventinfo.js
  8. 0 5
      packages/ckeditor5-engine/src/lib/lodash/array.default.js
  9. 0 2
      packages/ckeditor5-engine/src/lib/lodash/array.js
  10. 0 46
      packages/ckeditor5-engine/src/lib/lodash/assignIn.js
  11. 0 39
      packages/ckeditor5-engine/src/lib/lodash/clone.js
  12. 0 35
      packages/ckeditor5-engine/src/lib/lodash/eq.js
  13. 0 1
      packages/ckeditor5-engine/src/lib/lodash/extend.js
  14. 0 5
      packages/ckeditor5-engine/src/lib/lodash/function.default.js
  15. 0 2
      packages/ckeditor5-engine/src/lib/lodash/function.js
  16. 0 17
      packages/ckeditor5-engine/src/lib/lodash/internal/Hash.js
  17. 0 7
      packages/ckeditor5-engine/src/lib/lodash/internal/Map.js
  18. 0 31
      packages/ckeditor5-engine/src/lib/lodash/internal/MapCache.js
  19. 0 6
      packages/ckeditor5-engine/src/lib/lodash/internal/Reflect.js
  20. 0 7
      packages/ckeditor5-engine/src/lib/lodash/internal/Set.js
  21. 0 31
      packages/ckeditor5-engine/src/lib/lodash/internal/Stack.js
  22. 0 6
      packages/ckeditor5-engine/src/lib/lodash/internal/Symbol.js
  23. 0 6
      packages/ckeditor5-engine/src/lib/lodash/internal/Uint8Array.js
  24. 0 14
      packages/ckeditor5-engine/src/lib/lodash/internal/addMapEntry.js
  25. 0 14
      packages/ckeditor5-engine/src/lib/lodash/internal/addSetEntry.js
  26. 0 22
      packages/ckeditor5-engine/src/lib/lodash/internal/apply.js
  27. 0 22
      packages/ckeditor5-engine/src/lib/lodash/internal/arrayEach.js
  28. 0 25
      packages/ckeditor5-engine/src/lib/lodash/internal/arrayReduce.js
  29. 0 22
      packages/ckeditor5-engine/src/lib/lodash/internal/arraySome.js
  30. 0 28
      packages/ckeditor5-engine/src/lib/lodash/internal/assignValue.js
  31. 0 31
      packages/ckeditor5-engine/src/lib/lodash/internal/assocDelete.js
  32. 0 16
      packages/ckeditor5-engine/src/lib/lodash/internal/assocGet.js
  33. 0 15
      packages/ckeditor5-engine/src/lib/lodash/internal/assocHas.js
  34. 0 22
      packages/ckeditor5-engine/src/lib/lodash/internal/assocIndexOf.js
  35. 0 20
      packages/ckeditor5-engine/src/lib/lodash/internal/assocSet.js
  36. 0 17
      packages/ckeditor5-engine/src/lib/lodash/internal/baseAssign.js
  37. 0 123
      packages/ckeditor5-engine/src/lib/lodash/internal/baseClone.js
  38. 0 23
      packages/ckeditor5-engine/src/lib/lodash/internal/baseCreate.js
  39. 0 17
      packages/ckeditor5-engine/src/lib/lodash/internal/baseFor.js
  40. 0 16
      packages/ckeditor5-engine/src/lib/lodash/internal/baseForOwn.js
  41. 0 26
      packages/ckeditor5-engine/src/lib/lodash/internal/baseHas.js
  42. 0 30
      packages/ckeditor5-engine/src/lib/lodash/internal/baseIsEqual.js
  43. 0 83
      packages/ckeditor5-engine/src/lib/lodash/internal/baseIsEqualDeep.js
  44. 0 17
      packages/ckeditor5-engine/src/lib/lodash/internal/baseKeys.js
  45. 0 36
      packages/ckeditor5-engine/src/lib/lodash/internal/baseKeysIn.js
  46. 0 14
      packages/ckeditor5-engine/src/lib/lodash/internal/baseProperty.js
  47. 0 20
      packages/ckeditor5-engine/src/lib/lodash/internal/baseTimes.js
  48. 0 12
      packages/ckeditor5-engine/src/lib/lodash/internal/checkGlobal.js
  49. 0 19
      packages/ckeditor5-engine/src/lib/lodash/internal/cloneBuffer.js
  50. 0 17
      packages/ckeditor5-engine/src/lib/lodash/internal/cloneMap.js
  51. 0 19
      packages/ckeditor5-engine/src/lib/lodash/internal/cloneRegExp.js
  52. 0 17
      packages/ckeditor5-engine/src/lib/lodash/internal/cloneSet.js
  53. 0 18
      packages/ckeditor5-engine/src/lib/lodash/internal/cloneSymbol.js
  54. 0 18
      packages/ckeditor5-engine/src/lib/lodash/internal/cloneTypedArray.js
  55. 0 20
      packages/ckeditor5-engine/src/lib/lodash/internal/copyArray.js
  56. 0 16
      packages/ckeditor5-engine/src/lib/lodash/internal/copyObject.js
  57. 0 29
      packages/ckeditor5-engine/src/lib/lodash/internal/copyObjectWith.js
  58. 0 16
      packages/ckeditor5-engine/src/lib/lodash/internal/copySymbols.js
  59. 0 34
      packages/ckeditor5-engine/src/lib/lodash/internal/createAssigner.js
  60. 0 25
      packages/ckeditor5-engine/src/lib/lodash/internal/createBaseFor.js
  61. 0 72
      packages/ckeditor5-engine/src/lib/lodash/internal/equalArrays.js
  62. 0 88
      packages/ckeditor5-engine/src/lib/lodash/internal/equalByTag.js
  63. 0 82
      packages/ckeditor5-engine/src/lib/lodash/internal/equalObjects.js
  64. 0 15
      packages/ckeditor5-engine/src/lib/lodash/internal/getLength.js
  65. 0 16
      packages/ckeditor5-engine/src/lib/lodash/internal/getNative.js
  66. 0 15
      packages/ckeditor5-engine/src/lib/lodash/internal/getSymbols.js
  67. 0 55
      packages/ckeditor5-engine/src/lib/lodash/internal/getTag.js
  68. 0 15
      packages/ckeditor5-engine/src/lib/lodash/internal/hashDelete.js
  69. 0 28
      packages/ckeditor5-engine/src/lib/lodash/internal/hashGet.js
  70. 0 21
      packages/ckeditor5-engine/src/lib/lodash/internal/hashHas.js
  71. 0 18
      packages/ckeditor5-engine/src/lib/lodash/internal/hashSet.js
  72. 0 22
      packages/ckeditor5-engine/src/lib/lodash/internal/indexKeys.js
  73. 0 26
      packages/ckeditor5-engine/src/lib/lodash/internal/initCloneArray.js
  74. 0 74
      packages/ckeditor5-engine/src/lib/lodash/internal/initCloneByTag.js
  75. 0 16
      packages/ckeditor5-engine/src/lib/lodash/internal/initCloneObject.js
  76. 0 20
      packages/ckeditor5-engine/src/lib/lodash/internal/isHostObject.js
  77. 0 21
      packages/ckeditor5-engine/src/lib/lodash/internal/isIndex.js
  78. 0 28
      packages/ckeditor5-engine/src/lib/lodash/internal/isIterateeCall.js
  79. 0 14
      packages/ckeditor5-engine/src/lib/lodash/internal/isKeyable.js
  80. 0 18
      packages/ckeditor5-engine/src/lib/lodash/internal/isPrototype.js
  81. 0 18
      packages/ckeditor5-engine/src/lib/lodash/internal/iteratorToArray.js
  82. 0 15
      packages/ckeditor5-engine/src/lib/lodash/internal/mapClear.js
  83. 0 23
      packages/ckeditor5-engine/src/lib/lodash/internal/mapDelete.js
  84. 0 23
      packages/ckeditor5-engine/src/lib/lodash/internal/mapGet.js
  85. 0 23
      packages/ckeditor5-engine/src/lib/lodash/internal/mapHas.js
  86. 0 28
      packages/ckeditor5-engine/src/lib/lodash/internal/mapSet.js
  87. 0 18
      packages/ckeditor5-engine/src/lib/lodash/internal/mapToArray.js
  88. 0 6
      packages/ckeditor5-engine/src/lib/lodash/internal/nativeCreate.js
  89. 0 35
      packages/ckeditor5-engine/src/lib/lodash/internal/root.js
  90. 0 18
      packages/ckeditor5-engine/src/lib/lodash/internal/setToArray.js
  91. 0 12
      packages/ckeditor5-engine/src/lib/lodash/internal/stackClear.js
  92. 0 19
      packages/ckeditor5-engine/src/lib/lodash/internal/stackDelete.js
  93. 0 19
      packages/ckeditor5-engine/src/lib/lodash/internal/stackGet.js
  94. 0 19
      packages/ckeditor5-engine/src/lib/lodash/internal/stackHas.js
  95. 0 36
      packages/ckeditor5-engine/src/lib/lodash/internal/stackSet.js
  96. 0 43
      packages/ckeditor5-engine/src/lib/lodash/isArguments.js
  97. 0 35
      packages/ckeditor5-engine/src/lib/lodash/isArray.js
  98. 0 35
      packages/ckeditor5-engine/src/lib/lodash/isArrayLike.js
  99. 0 32
      packages/ckeditor5-engine/src/lib/lodash/isArrayLikeObject.js
  100. 0 0
      packages/ckeditor5-engine/src/lib/lodash/isEqual.js

+ 0 - 40
packages/ckeditor5-engine/dev/tasks/lodash/tasks.js

@@ -1,40 +0,0 @@
-/* jshint node: true, esnext: true */
-
-'use strict';
-
-const gulp = require( 'gulp' );
-const build = require( 'lodash-cli' );
-const del = require( 'del' );
-
-const DEST_PATH = 'src/lib/lodash';
-
-module.exports = function() {
-	const tasks = {
-		lodash() {
-			return del( DEST_PATH )
-				.then( buildLodash );
-		}
-	};
-
-	gulp.task( 'lodash', tasks.lodash );
-
-	return tasks;
-};
-
-function buildLodash() {
-	return new Promise( ( resolve, reject ) => {
-		build( [
-			'modularize',
-			'exports=es',
-			'include=clone,extend,isPlainObject,isObject,isArray,last,isEqual',
-			'--development',
-			'--output', DEST_PATH
-		], ( err ) => {
-			if ( err instanceof Error ) {
-				reject( err );
-			} else {
-				resolve( null );
-			}
-		} );
-	} );
-}

+ 0 - 1
packages/ckeditor5-engine/gulpfile.js

@@ -15,6 +15,5 @@ const config = {
 };
 
 require( './dev/tasks/lint/tasks' )( config );
-require( './dev/tasks/lodash/tasks' )();
 
 gulp.task( 'pre-commit', [ 'lint-staged' ] );

+ 0 - 51
packages/ckeditor5-engine/src/ckeditorerror.js

@@ -1,51 +0,0 @@
-/**
- * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
-
-'use strict';
-
-/**
- * The CKEditor error class.
- *
- * All errors will be shortened during the minification process in order to reduce the code size.
- * Therefore, all error messages should be documented in the same way as those in {@link CKEDITOR.core.log}.
- *
- * Read more in the {@link core.log} module.
- *
- * @memberOf core
- * @extends Error
- */
-export default class CKEditorError extends Error {
-	/**
-	 * Creates an instance of the CKEditorError class.
-	 *
-	 * Read more about error logging in the {@link core.log} module.
-	 *
-	 * @param {String} message The error message in an `error-name: Error message.` format.
-	 * During the minification process the "Error message" part will be removed to limit the code size
-	 * and a link to this error documentation will be added to the `message`.
-	 * @param {Object} [data] Additional data describing the error. A stringified version of this object
-	 * will be appended to the error {@link #message}, so the data are quickly visible in the console. The original
-	 * data object will also be later available under the {@link #data} property.
-	 */
-	constructor( message, data ) {
-		if ( data ) {
-			message += ' ' + JSON.stringify( data );
-		}
-
-		super( message );
-
-		/**
-		 * @member {String} core.CKEditorError#name
-		 */
-		this.name = 'CKEditorError';
-
-		/**
-		 * The additional error data passed to the constructor.
-		 *
-		 * @member {Object} core.CKEditorError#data
-		 */
-		this.data = data;
-	}
-}

+ 0 - 282
packages/ckeditor5-engine/src/collection.js

@@ -1,282 +0,0 @@
-/**
- * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
-
-'use strict';
-
-import EmitterMixin from './emittermixin.js';
-import CKEditorError from './ckeditorerror.js';
-import utils from './utils.js';
-
-/**
- * Collections are ordered sets of objects. Items in the collection can be retrieved by their indexes
- * in the collection (like in an array) or by their ids.
- *
- * If an object without an `id` property is being added to the collection, the `id` property will be generated
- * automatically. Note that the automatically generated id is unique only within this single collection instance.
- *
- * By default an item in the collection is identified by its `id` property. The name of the identifier can be
- * configured through the constructor of the collection.
- *
- * @memberOf core
- * @mixes EventEmitter
- */
-export default class Collection {
-	/**
-	 * Creates a new Collection instance.
-	 *
-	 * @param {Iterable} [items] Items to be added to the collection.
-	 * @param {Object} options The options object.
-	 * @param {String} [options.idProperty='id'] The name of the property which is considered to identify an item.
-	 */
-	constructor( options ) {
-		/**
-		 * The internal list of items in the collection.
-		 *
-		 * @private
-		 * @type {Object[]}
-		 */
-		this._items = [];
-
-		/**
-		 * The internal map of items in the collection.
-		 *
-		 * @private
-		 * @type {Map}
-		 */
-		this._itemMap = new Map();
-
-		/**
-		 * The name of the property which is considered to identify an item.
-		 *
-		 * @private
-		 * @type {String}
-		 */
-		this._idProperty = options && options.idProperty || 'id';
-	}
-
-	/**
-	 * The number of items available in the collection.
-	 *
-	 * @property length
-	 */
-	get length() {
-		return this._items.length;
-	}
-
-	/**
-	 * Adds an item into the collection.
-	 *
-	 * If the item does not have an id, then it will be automatically generated and set on the item.
-	 *
-	 * @chainable
-	 * @param {Object} item
-	 * @param {Number} [index] The position of the item in the collection. The item
-	 * is pushed to the collection when `index` not specified.
-	 * @fires core.Collection#add
-	 */
-	add( item, index ) {
-		let itemId;
-		const idProperty = this._idProperty;
-
-		if ( ( idProperty in item ) ) {
-			itemId = item[ idProperty ];
-
-			if ( typeof itemId != 'string' ) {
-				/**
-				 * This item's id should be a string.
-				 *
-				 * @error collection-add-invalid-id
-				 */
-				throw new CKEditorError( 'collection-add-invalid-id' );
-			}
-
-			if ( this.get( itemId ) ) {
-				/**
-				 * This item already exists in the collection.
-				 *
-				 * @error collection-add-item-already-exists
-				 */
-				throw new CKEditorError( 'collection-add-item-already-exists' );
-			}
-		} else {
-			itemId = this._getNextId();
-			item[ idProperty ] = itemId;
-		}
-
-		// TODO: Use ES6 default function argument.
-		if ( index === undefined ) {
-			index = this._items.length;
-		} else if ( index > this._items.length || index < 0 ) {
-			/**
-			 * The index number has invalid value.
-			 *
-			 * @error collection-add-item-bad-index
-			 */
-			throw new CKEditorError( 'collection-add-item-invalid-index' );
-		}
-
-		this._items.splice( index, 0, item );
-
-		this._itemMap.set( itemId, item );
-
-		this.fire( 'add', item, index );
-
-		return this;
-	}
-
-	/**
-	 * Gets item by its id or index.
-	 *
-	 * @param {String|Number} idOrIndex The item id or index in the collection.
-	 * @returns {Object} The requested item or `null` if such item does not exist.
-	 */
-	get( idOrIndex ) {
-		let item;
-
-		if ( typeof idOrIndex == 'string' ) {
-			item = this._itemMap.get( idOrIndex );
-		} else if ( typeof idOrIndex == 'number' ) {
-			item = this._items[ idOrIndex ];
-		} else {
-			/**
-			 * Index or id must be given.
-			 *
-			 * @error collection-get-invalid-arg
-			 */
-			throw new CKEditorError( 'collection-get-invalid-arg: Index or id must be given.' );
-		}
-
-		return item || null;
-	}
-
-	/**
-	 * Removes an item from the collection.
-	 *
-	 * @param {Object|Number|String} subject The item to remove, its id or index in the collection.
-	 * @returns {Object} The removed item.
-	 * @fires core.Collection#remove
-	 */
-	remove( subject ) {
-		let index, id, item;
-		let itemDoesNotExist = false;
-		const idProperty = this._idProperty;
-
-		if ( typeof subject == 'string' ) {
-			id = subject;
-			item = this._itemMap.get( id );
-			itemDoesNotExist = !item;
-
-			if ( item ) {
-				index = this._items.indexOf( item );
-			}
-		} else if ( typeof subject == 'number' ) {
-			index = subject;
-			item = this._items[ index ];
-			itemDoesNotExist = !item;
-
-			if ( item ) {
-				id = item[ idProperty ];
-			}
-		} else {
-			item = subject;
-			id = item[ idProperty ];
-			index = this._items.indexOf( item );
-			itemDoesNotExist = ( index == -1 || !this._itemMap.get( id ) );
-		}
-
-		if ( itemDoesNotExist ) {
-			/**
-			 * Item not found.
-			 *
-			 * @error collection-remove-404
-			 */
-			throw new CKEditorError( 'collection-remove-404: Item not found.' );
-		}
-
-		this._items.splice( index, 1 );
-		this._itemMap.delete( id );
-
-		this.fire( 'remove', item );
-
-		return item;
-	}
-
-	/**
-	 * Executes the callback for each item in the collection and composes an array or values returned by this callback.
-	 *
-	 * @param {Function} callback
-	 * @param {Item} callback.item
-	 * @param {Number} callback.index
-	 * @params {Object} ctx Context in which the `callback` will be called.
-	 * @returns {Array} The result of mapping.
-	 */
-	map( callback, ctx ) {
-		return this._items.map( callback, ctx );
-	}
-
-	/**
-	 * Finds the first item in the collection for which the `callback` returns a true value.
-	 *
-	 * @param {Function} callback
-	 * @param {Object} callback.item
-	 * @param {Number} callback.index
-	 * @returns {Object} The item for which `callback` returned a true value.
-	 * @params {Object} ctx Context in which the `callback` will be called.
-	 */
-	find( callback, ctx ) {
-		return this._items.find( callback, ctx );
-	}
-
-	/**
-	 * Returns an array with items for which the `callback` returned a true value.
-	 *
-	 * @param {Function} callback
-	 * @param {Object} callback.item
-	 * @param {Number} callback.index
-	 * @params {Object} ctx Context in which the `callback` will be called.
-	 * @returns {Object[]} The array with matching items.
-	 */
-	filter( callback, ctx ) {
-		return this._items.filter( callback, ctx );
-	}
-
-	/**
-	 * Collection iterator.
-	 */
-	[ Symbol.iterator ]() {
-		return this._items[ Symbol.iterator ]();
-	}
-
-	/**
-	 * Generates next (not yet used) id for unidentified item being add to the collection.
-	 *
-	 * @returns {String} The next id.
-	 */
-	_getNextId() {
-		let id;
-
-		do {
-			id = String( utils.uid() );
-		} while ( this._itemMap.has( id ) );
-
-		return id;
-	}
-}
-
-utils.mix( Collection, EmitterMixin );
-
-/**
- * Fired when an item is added to the collection.
- *
- * @event core.Collection#add
- * @param {Object} item The added item.
- */
-
-/**
- * Fired when an item is removed from the collection.
- *
- * @event core.Collection#remove
- * @param {Object} item The removed item.
- */

+ 0 - 191
packages/ckeditor5-engine/src/config.js

@@ -1,191 +0,0 @@
-/**
- * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
-
-'use strict';
-
-import ObservableMixin from './observablemixin.js';
-import isObject from './lib/lodash/isObject.js';
-import isPlainObject from './lib/lodash/isPlainObject.js';
-import utils from './utils.js';
-
-/**
- * Handles a configuration dictionary.
- *
- * @memberOf core
- * @mixes core.ObservableMixin
- */
-export default class Config {
-	/**
-	 * Creates an instance of the {@link Config} class.
-	 *
-	 * @param {Object} [configurations] The initial configurations to be set.
-	 */
-	constructor( configurations ) {
-		if ( configurations ) {
-			this.set( configurations );
-		}
-	}
-
-	/**
-	 * Set configuration values.
-	 *
-	 * It accepts both a name/value pair or an object, which properties and values will be used to set
-	 * configurations.
-	 *
-	 * It also accepts setting a "deep configuration" by using dots in the name. For example, `'resize.width'` sets
-	 * the value for the `width` configuration in the `resize` subset.
-	 *
-	 *     config.set( 'width', 500 );
-	 *     config.set( 'toolbar.collapsed', true );
-	 *
-	 *     // Equivalent to:
-	 *     config.set( {
-	 *         width: 500
-	 *         toolbar: {
-	 *             collapsed: true
-	 *         }
-	 *     } );
-	 *
-	 * Passing an object as the value will amend the configuration, not replace it.
-	 *
-	 *     config.set( 'toolbar', {
-	 *         collapsed: true,
-	 *     } );
-	 *
-	 *     config.set( 'toolbar', {
-	 *         color: 'red',
-	 *     } );
-	 *
-	 *     config.toolbar.collapsed; // true
-	 *     config.toolbar.color; // 'red'
-	 *
-	 * @param {String|Object} name The configuration name or an object from which take properties as
-	 * configuration entries. Configuration names are case-insensitive.
-	 * @param {*} [value=null] The configuration value. Used if a name is passed to nameOrConfigurations.
-	 */
-	set( name, value ) {
-		// Just pass the call to the original set() in case of an object. It'll deal with recursing through the
-		// object and calling set( name, value ) again for each property.
-		if ( isObject( name ) ) {
-			ObservableMixin.set.apply( this, arguments );
-
-			return;
-		}
-
-		// The target for this configuration is, for now, this object.
-		let target = this;
-
-		// The configuration name should be split into parts if it has dots. E.g: `resize.width`.
-		const parts = name.toLowerCase().split( '.' );
-
-		// Take the name of the configuration out of the parts. E.g. `resize.width` -> `width`
-		name = parts.pop();
-
-		// Retrieves the final target for this configuration recursively.
-		for ( let i = 0; i < parts.length; i++ ) {
-			// The target will always be an instance of Config.
-			if ( !( target[ parts[ i ] ] instanceof Config ) ) {
-				target.set( parts[ i ], new Config() );
-			}
-
-			target = target[ parts[ i ] ];
-		}
-
-		// Values set as pure objects will be treated as Config subsets.
-		if ( isPlainObject( value ) ) {
-			// If the target is an instance of Config (a deep config subset).
-			if ( target[ name ] instanceof Config ) {
-				// Amend the target with the value, instead of replacing it.
-				target[ name ].set( value );
-
-				return;
-			}
-
-			value = new Config( value );
-		}
-
-		// Values will never be undefined.
-		if ( typeof value == 'undefined' ) {
-			value = null;
-		}
-
-		// Call the original set() on the target.
-		ObservableMixin.set.call( target, name, value );
-	}
-
-	/**
-	 * Gets the value for a configuration entry.
-	 *
-	 *     config.get( 'name' );
-	 *
-	 * Deep configurations can be retrieved by separating each part with a dot.
-	 *
-	 *     config.get( 'toolbar.collapsed' );
-	 *
-	 * @param {String} name The configuration name. Configuration names are case-insensitive.
-	 * @returns {*} The configuration value or `undefined` if the configuration entry was not found.
-	 */
-	get( name ) {
-		// The target for this configuration is, for now, this object.
-		let source = this;
-
-		// The configuration name should be split into parts if it has dots. E.g. `resize.width` -> [`resize`, `width`]
-		const parts = name.toLowerCase().split( '.' );
-
-		// Take the name of the configuration from the parts. E.g. `resize.width` -> `width`
-		name = parts.pop();
-
-		// Retrieves the source for this configuration recursively.
-		for ( let i = 0; i < parts.length; i++ ) {
-			// The target will always be an instance of Config.
-			if ( !( source[ parts[ i ] ] instanceof Config ) ) {
-				source = null;
-				break;
-			}
-
-			source = source[ parts[ i ] ];
-		}
-
-		// Try to retrieve it from the source object.
-		if ( source && ( typeof source[ name ] != 'undefined' ) ) {
-			return source[ name ];
-		}
-
-		// If not found, take it from the definition.
-		if ( this.definition ) {
-			return this.definition[ name ];
-		}
-	}
-
-	/**
-	 * Defines the name and default value for configurations. It accepts the same parameters as the
-	 * {@link Config#set set()} method.
-	 *
-	 * On first call, the {@link Config#definition definition} property is created to hold all defined
-	 * configurations.
-	 *
-	 * This method is supposed to be called by plugin developers to setup plugin's configurations. It would be
-	 * rarely used for other needs.
-	 *
-	 * @param {String|Object} name The configuration name or an object from which take properties as
-	 * configuration entries.
-	 * @param {*} [value] The configuration value. Used if a name is passed to nameOrConfigurations. If undefined,
-	 * the configuration is set to `null`.
-	 */
-	define( name, value ) {
-		if ( !this.definition ) {
-			/**
-			 * TODO
-			 *
-			 * @type {Config}
-			 */
-			this.definition = new Config();
-		}
-
-		this.definition.set( name, value );
-	}
-}
-
-utils.mix( Config, ObservableMixin );

+ 0 - 310
packages/ckeditor5-engine/src/emittermixin.js

@@ -1,310 +0,0 @@
-/**
- * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
-
-'use strict';
-
-import EventInfo from './eventinfo.js';
-import utils from './utils.js';
-
-// Saves how many callbacks has been already added. Does not decrement when callback is removed.
-// Used internally as a unique id for a callback.
-let eventsCounter = 0;
-
-/**
- * Mixin that injects the events API into its host.
- *
- * @mixin core.EmitterMixin
- * @implements core.Emitter
- */
-const EmitterMixin = {
-	/**
-	 * Registers a callback function to be executed when an event is fired.
-	 *
-	 * @param {String} event The name of the event.
-	 * @param {Function} callback The function to be called on event.
-	 * @param {Object} [ctx] The object that represents `this` in the callback. Defaults to the object firing the
-	 * event.
-	 * @param {Number} [priority=10] The priority of this callback in relation to other callbacks to that same event.
-	 * Lower values are called first.
-	 * @method core.EmitterMixin#on
-	 */
-	on( event, callback, ctx, priority ) {
-		const callbacks = getCallbacks( this, event );
-
-		// Set the priority defaults.
-		if ( typeof priority != 'number' ) {
-			priority = 10;
-		}
-
-		callback = {
-			callback: callback,
-			ctx: ctx || this,
-			priority: priority,
-			// Save counter value as unique id.
-			counter: ++eventsCounter
-		};
-
-		// Add the callback to the list in the right priority position.
-		for ( let i = callbacks.length - 1; i >= 0; i-- ) {
-			if ( callbacks[ i ].priority <= priority ) {
-				callbacks.splice( i + 1, 0, callback );
-
-				return;
-			}
-		}
-
-		callbacks.unshift( callback );
-	},
-
-	/**
-	 * Registers a callback function to be executed on the next time the event is fired only. This is similar to
-	 * calling {@link #on} followed by {@link #off} in the callback.
-	 *
-	 * @param {String} event The name of the event.
-	 * @param {Function} callback The function to be called on event.
-	 * @param {Object} [ctx] The object that represents `this` in the callback. Defaults to the object firing the
-	 * event.
-	 * @param {Number} [priority=10] The priority of this callback in relation to other callbacks to that same event.
-	 * Lower values are called first.
-	 * @method core.EmitterMixin#once
-	 */
-	once( event, callback, ctx, priority ) {
-		const onceCallback = function( event ) {
-			// Go off() at the first call.
-			event.off();
-
-			// Go with the original callback.
-			callback.apply( this, arguments );
-		};
-
-		// Make the a similar on() call, simply replacing the callback.
-		this.on( event, onceCallback, ctx, priority );
-	},
-
-	/**
-	 * Stops executing the callback on the given event.
-	 *
-	 * @param {String} event The name of the event.
-	 * @param {Function} callback The function to stop being called.
-	 * @param {Object} [ctx] The context object to be removed, pared with the given callback. To handle cases where
-	 * the same callback is used several times with different contexts.
-	 * @method core.EmitterMixin#off
-	 */
-	off( event, callback, ctx ) {
-		const callbacks = getCallbacksIfAny( this, event );
-
-		if ( !callbacks ) {
-			return;
-		}
-
-		for ( let i = 0; i < callbacks.length; i++ ) {
-			if ( callbacks[ i ].callback == callback ) {
-				if ( !ctx || ctx == callbacks[ i ].ctx ) {
-					// Remove the callback from the list (fixing the next index).
-					callbacks.splice( i, 1 );
-					i--;
-				}
-			}
-		}
-	},
-
-	/**
-	 * Registers a callback function to be executed when an event is fired in a specific (emitter) object.
-	 *
-	 * @param {core.Emitter} emitter The object that fires the event.
-	 * @param {String} event The name of the event.
-	 * @param {Function} callback The function to be called on event.
-	 * @param {Object} [ctx] The object that represents `this` in the callback. Defaults to `emitter`.
-	 * @param {Number} [priority=10] The priority of this callback in relation to other callbacks to that same event.
-	 * Lower values are called first.
-	 * @method core.EmitterMixin#listenTo
-	 */
-	listenTo( emitter, event, callback, ctx, priority ) {
-		let emitters, emitterId, emitterInfo, eventCallbacks;
-
-		// _listeningTo contains a list of emitters that this object is listening to.
-		// This list has the following format:
-		//
-		// _listeningTo: {
-		//     emitterId: {
-		//         emitter: emitter,
-		//         callbacks: {
-		//             event1: [ callback1, callback2, ... ]
-		//             ....
-		//         }
-		//     },
-		//     ...
-		// }
-
-		if ( !( emitters = this._listeningTo ) ) {
-			emitters = this._listeningTo = {};
-		}
-
-		if ( !( emitterId = emitter._emitterId ) ) {
-			emitterId = emitter._emitterId = utils.uid();
-		}
-
-		if ( !( emitterInfo = emitters[ emitterId ] ) ) {
-			emitterInfo = emitters[ emitterId ] = {
-				emitter: emitter,
-				callbacks: {}
-			};
-		}
-
-		if ( !( eventCallbacks = emitterInfo.callbacks[ event ] ) ) {
-			eventCallbacks = emitterInfo.callbacks[ event ] = [];
-		}
-
-		eventCallbacks.push( callback );
-
-		// Finally register the callback to the event.
-		emitter.on( event, callback, ctx, priority );
-	},
-
-	/**
-	 * Stops listening for events. It can be used at different levels:
-	 *
-	 * * To stop listening to a specific callback.
-	 * * To stop listening to a specific event.
-	 * * To stop listening to all events fired by a specific object.
-	 * * To stop listening to all events fired by all object.
-	 *
-	 * @param {core.Emitter} [emitter] The object to stop listening to. If omitted, stops it for all objects.
-	 * @param {String} [event] (Requires the `emitter`) The name of the event to stop listening to. If omitted, stops it
-	 * for all events from `emitter`.
-	 * @param {Function} [callback] (Requires the `event`) The function to be removed from the call list for the given
-	 * `event`.
-	 * @method core.EmitterMixin#stopListening
-	 */
-	stopListening( emitter, event, callback ) {
-		let emitters = this._listeningTo;
-		let emitterId = emitter && emitter._emitterId;
-		let emitterInfo = emitters && emitterId && emitters[ emitterId ];
-		let eventCallbacks = emitterInfo && event && emitterInfo.callbacks[ event ];
-
-		// Stop if nothing has been listened.
-		if ( !emitters || ( emitter && !emitterInfo ) || ( event && !eventCallbacks ) ) {
-			return;
-		}
-
-		// All params provided. off() that single callback.
-		if ( callback ) {
-			emitter.off( event, callback );
-		}
-		// Only `emitter` and `event` provided. off() all callbacks for that event.
-		else if ( eventCallbacks ) {
-			while ( ( callback = eventCallbacks.pop() ) ) {
-				emitter.off( event, callback );
-			}
-			delete emitterInfo.callbacks[ event ];
-		}
-		// Only `emitter` provided. off() all events for that emitter.
-		else if ( emitterInfo ) {
-			for ( event in emitterInfo.callbacks ) {
-				this.stopListening( emitter, event );
-			}
-			delete emitters[ emitterId ];
-		}
-		// No params provided. off() all emitters.
-		else {
-			for ( emitterId in emitters ) {
-				this.stopListening( emitters[ emitterId ].emitter );
-			}
-			delete this._listeningTo;
-		}
-	},
-
-	/**
-	 * Fires an event, executing all callbacks registered for it.
-	 *
-	 * The first parameter passed to callbacks is an {@link EventInfo} object, followed by the optional `args` provided in
-	 * the `fire()` method call.
-	 *
-	 * @param {String} event The name of the event.
-	 * @param {...*} [args] Additional arguments to be passed to the callbacks.
-	 * @method core.EmitterMixin#fire
-	 */
-	fire( event, args ) {
-		const callbacks = getCallbacksIfAny( this, event );
-
-		if ( !callbacks ) {
-			return;
-		}
-
-		let eventInfo = new EventInfo( this, event );
-
-		// Take the list of arguments to pass to the callbacks.
-		args = Array.prototype.slice.call( arguments, 1 );
-		args.unshift( eventInfo );
-
-		// Save how many callbacks were added at the moment when the event has been fired.
-		const counter = eventsCounter;
-
-		for ( let i = 0; i < callbacks.length; i++ ) {
-			// Filter out callbacks that have been added after event has been fired.
-			if ( callbacks[ i ].counter > counter ) {
-				continue;
-			}
-
-			callbacks[ i ].callback.apply( callbacks[ i ].ctx, args );
-
-			// Remove the callback from future requests if off() has been called.
-			if ( eventInfo.off.called ) {
-				// Remove the called mark for the next calls.
-				delete eventInfo.off.called;
-
-				// Remove the callback from the list (fixing the next index).
-				callbacks.splice( i, 1 );
-				i--;
-			}
-
-			// Do not execute next callbacks if stop() was called.
-			if ( eventInfo.stop.called ) {
-				break;
-			}
-		}
-	}
-};
-
-export default EmitterMixin;
-
-// Gets the internal events hash of a give object.
-function getEvents( source ) {
-	if ( !source._events ) {
-		Object.defineProperty( source, '_events', {
-			value: {}
-		} );
-	}
-
-	return source._events;
-}
-
-// Gets the list of callbacks for a given event.
-function getCallbacks( source, eventName ) {
-	const events = getEvents( source );
-
-	if ( !events[ eventName ] ) {
-		events[ eventName ] = [];
-	}
-
-	return events[ eventName ];
-}
-
-// Get the list of callbacks for a given event only if there is any available.
-function getCallbacksIfAny( source, event ) {
-	let callbacks;
-
-	if ( !source._events || !( callbacks = source._events[ event ] ) || !callbacks.length ) {
-		return null;
-	}
-
-	return callbacks;
-}
-
-/**
- * Interface representing classes which mix in {@link core.EmitterMixin}.
- *
- * @interface core.Emitter
- */

+ 0 - 48
packages/ckeditor5-engine/src/eventinfo.js

@@ -1,48 +0,0 @@
-/**
- * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
-
-'use strict';
-
-import utils from './utils.js';
-
-/**
- * The event object passed to event callbacks. It is used to provide information about the event as well as a tool to
- * manipulate it.
- *
- * @memberOf core
- */
-export default class EventInfo {
-	constructor( source, name ) {
-		/**
-		 * The object that fired the event.
-		 *
-		 * @member core.EventInfo#source
-		 */
-		this.source = source;
-
-		/**
-		 * The event name.
-		 *
-		 * @member core.EventInfo#name
-		 */
-		this.name = name;
-
-		// The following methods are defined in the constructor because they must be re-created per instance.
-
-		/**
-		 * Stops the event emitter to call further callbacks for this event interaction.
-		 *
-		 * @method core.EventInfo#stop
-		 */
-		this.stop = utils.spy();
-
-		/**
-		 * Removes the current callback from future interactions of this event.
-		 *
-		 * @method core.EventInfo#off
-		 */
-		this.off = utils.spy();
-	}
-}

+ 0 - 5
packages/ckeditor5-engine/src/lib/lodash/array.default.js

@@ -1,5 +0,0 @@
-import last from './last';
-
-export default {
-  last
-};

+ 0 - 2
packages/ckeditor5-engine/src/lib/lodash/array.js

@@ -1,2 +0,0 @@
-export { default as last } from './last';
-export { default as default } from './array.default';

+ 0 - 46
packages/ckeditor5-engine/src/lib/lodash/assignIn.js

@@ -1,46 +0,0 @@
-/**
- * lodash 4.0.1 (Custom Build) <https://lodash.com/>
- * Build: `lodash modularize exports="es" include="clone,extend,isPlainObject,isObject,isArray,last,isEqual" --development --output src/lib/lodash`
- * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- * Available under MIT license <https://lodash.com/license>
- */
-import copyObject from './internal/copyObject';
-import createAssigner from './internal/createAssigner';
-import keysIn from './keysIn';
-
-/**
- * This method is like `_.assign` except that it iterates over own and
- * inherited source properties.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @alias extend
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @example
- *
- * function Foo() {
- *   this.b = 2;
- * }
- *
- * function Bar() {
- *   this.d = 4;
- * }
- *
- * Foo.prototype.c = 3;
- * Bar.prototype.e = 5;
- *
- * _.assignIn({ 'a': 1 }, new Foo, new Bar);
- * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5 }
- */
-var assignIn = createAssigner(function(object, source) {
-  copyObject(source, keysIn(source), object);
-});
-
-export default assignIn;

+ 0 - 39
packages/ckeditor5-engine/src/lib/lodash/clone.js

@@ -1,39 +0,0 @@
-/**
- * lodash 4.0.1 (Custom Build) <https://lodash.com/>
- * Build: `lodash modularize exports="es" include="clone,extend,isPlainObject,isObject,isArray,last,isEqual" --development --output src/lib/lodash`
- * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- * Available under MIT license <https://lodash.com/license>
- */
-import baseClone from './internal/baseClone';
-
-/**
- * Creates a shallow clone of `value`.
- *
- * **Note:** This method is loosely based on the
- * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
- * and supports cloning arrays, array buffers, booleans, date objects, maps,
- * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
- * arrays. The own enumerable properties of `arguments` objects are cloned
- * as plain objects. An empty object is returned for uncloneable values such
- * as error objects, functions, DOM nodes, and WeakMaps.
- *
- * @static
- * @memberOf _
- * @category Lang
- * @param {*} value The value to clone.
- * @returns {*} Returns the cloned value.
- * @example
- *
- * var objects = [{ 'a': 1 }, { 'b': 2 }];
- *
- * var shallow = _.clone(objects);
- * console.log(shallow[0] === objects[0]);
- * // => true
- */
-function clone(value) {
-  return baseClone(value);
-}
-
-export default clone;

+ 0 - 35
packages/ckeditor5-engine/src/lib/lodash/eq.js

@@ -1,35 +0,0 @@
-/**
- * Performs a [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * comparison between two values to determine if they are equivalent.
- *
- * @static
- * @memberOf _
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- * @example
- *
- * var object = { 'user': 'fred' };
- * var other = { 'user': 'fred' };
- *
- * _.eq(object, object);
- * // => true
- *
- * _.eq(object, other);
- * // => false
- *
- * _.eq('a', 'a');
- * // => true
- *
- * _.eq('a', Object('a'));
- * // => false
- *
- * _.eq(NaN, NaN);
- * // => true
- */
-function eq(value, other) {
-  return value === other || (value !== value && other !== other);
-}
-
-export default eq;

+ 0 - 1
packages/ckeditor5-engine/src/lib/lodash/extend.js

@@ -1 +0,0 @@
-export { default } from './assignIn'

+ 0 - 5
packages/ckeditor5-engine/src/lib/lodash/function.default.js

@@ -1,5 +0,0 @@
-import rest from './rest';
-
-export default {
-  rest
-};

+ 0 - 2
packages/ckeditor5-engine/src/lib/lodash/function.js

@@ -1,2 +0,0 @@
-export { default as rest } from './rest';
-export { default as default } from './function.default';

+ 0 - 17
packages/ckeditor5-engine/src/lib/lodash/internal/Hash.js

@@ -1,17 +0,0 @@
-import nativeCreate from './nativeCreate';
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/**
- * Creates an hash object.
- *
- * @private
- * @returns {Object} Returns the new hash object.
- */
-function Hash() {}
-
-// Avoid inheriting from `Object.prototype` when possible.
-Hash.prototype = nativeCreate ? nativeCreate(null) : objectProto;
-
-export default Hash;

+ 0 - 7
packages/ckeditor5-engine/src/lib/lodash/internal/Map.js

@@ -1,7 +0,0 @@
-import getNative from './getNative';
-import root from './root';
-
-/* Built-in method references that are verified to be native. */
-var Map = getNative(root, 'Map');
-
-export default Map;

+ 0 - 31
packages/ckeditor5-engine/src/lib/lodash/internal/MapCache.js

@@ -1,31 +0,0 @@
-import mapClear from './mapClear';
-import mapDelete from './mapDelete';
-import mapGet from './mapGet';
-import mapHas from './mapHas';
-import mapSet from './mapSet';
-
-/**
- * Creates a map cache object to store key-value pairs.
- *
- * @private
- * @param {Array} [values] The values to cache.
- */
-function MapCache(values) {
-  var index = -1,
-      length = values ? values.length : 0;
-
-  this.clear();
-  while (++index < length) {
-    var entry = values[index];
-    this.set(entry[0], entry[1]);
-  }
-}
-
-// Add functions to the `MapCache`.
-MapCache.prototype.clear = mapClear;
-MapCache.prototype['delete'] = mapDelete;
-MapCache.prototype.get = mapGet;
-MapCache.prototype.has = mapHas;
-MapCache.prototype.set = mapSet;
-
-export default MapCache;

+ 0 - 6
packages/ckeditor5-engine/src/lib/lodash/internal/Reflect.js

@@ -1,6 +0,0 @@
-import root from './root';
-
-/** Built-in value references. */
-var Reflect = root.Reflect;
-
-export default Reflect;

+ 0 - 7
packages/ckeditor5-engine/src/lib/lodash/internal/Set.js

@@ -1,7 +0,0 @@
-import getNative from './getNative';
-import root from './root';
-
-/* Built-in method references that are verified to be native. */
-var Set = getNative(root, 'Set');
-
-export default Set;

+ 0 - 31
packages/ckeditor5-engine/src/lib/lodash/internal/Stack.js

@@ -1,31 +0,0 @@
-import stackClear from './stackClear';
-import stackDelete from './stackDelete';
-import stackGet from './stackGet';
-import stackHas from './stackHas';
-import stackSet from './stackSet';
-
-/**
- * Creates a stack cache object to store key-value pairs.
- *
- * @private
- * @param {Array} [values] The values to cache.
- */
-function Stack(values) {
-  var index = -1,
-      length = values ? values.length : 0;
-
-  this.clear();
-  while (++index < length) {
-    var entry = values[index];
-    this.set(entry[0], entry[1]);
-  }
-}
-
-// Add functions to the `Stack` cache.
-Stack.prototype.clear = stackClear;
-Stack.prototype['delete'] = stackDelete;
-Stack.prototype.get = stackGet;
-Stack.prototype.has = stackHas;
-Stack.prototype.set = stackSet;
-
-export default Stack;

+ 0 - 6
packages/ckeditor5-engine/src/lib/lodash/internal/Symbol.js

@@ -1,6 +0,0 @@
-import root from './root';
-
-/** Built-in value references. */
-var Symbol = root.Symbol;
-
-export default Symbol;

+ 0 - 6
packages/ckeditor5-engine/src/lib/lodash/internal/Uint8Array.js

@@ -1,6 +0,0 @@
-import root from './root';
-
-/** Built-in value references. */
-var Uint8Array = root.Uint8Array;
-
-export default Uint8Array;

+ 0 - 14
packages/ckeditor5-engine/src/lib/lodash/internal/addMapEntry.js

@@ -1,14 +0,0 @@
-/**
- * Adds the key-value `pair` to `map`.
- *
- * @private
- * @param {Object} map The map to modify.
- * @param {Array} pair The key-value pair to add.
- * @returns {Object} Returns `map`.
- */
-function addMapEntry(map, pair) {
-  map.set(pair[0], pair[1]);
-  return map;
-}
-
-export default addMapEntry;

+ 0 - 14
packages/ckeditor5-engine/src/lib/lodash/internal/addSetEntry.js

@@ -1,14 +0,0 @@
-/**
- * Adds `value` to `set`.
- *
- * @private
- * @param {Object} set The set to modify.
- * @param {*} value The value to add.
- * @returns {Object} Returns `set`.
- */
-function addSetEntry(set, value) {
-  set.add(value);
-  return set;
-}
-
-export default addSetEntry;

+ 0 - 22
packages/ckeditor5-engine/src/lib/lodash/internal/apply.js

@@ -1,22 +0,0 @@
-/**
- * A faster alternative to `Function#apply`, this function invokes `func`
- * with the `this` binding of `thisArg` and the arguments of `args`.
- *
- * @private
- * @param {Function} func The function to invoke.
- * @param {*} thisArg The `this` binding of `func`.
- * @param {...*} [args] The arguments to invoke `func` with.
- * @returns {*} Returns the result of `func`.
- */
-function apply(func, thisArg, args) {
-  var length = args ? args.length : 0;
-  switch (length) {
-    case 0: return func.call(thisArg);
-    case 1: return func.call(thisArg, args[0]);
-    case 2: return func.call(thisArg, args[0], args[1]);
-    case 3: return func.call(thisArg, args[0], args[1], args[2]);
-  }
-  return func.apply(thisArg, args);
-}
-
-export default apply;

+ 0 - 22
packages/ckeditor5-engine/src/lib/lodash/internal/arrayEach.js

@@ -1,22 +0,0 @@
-/**
- * A specialized version of `_.forEach` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns `array`.
- */
-function arrayEach(array, iteratee) {
-  var index = -1,
-      length = array.length;
-
-  while (++index < length) {
-    if (iteratee(array[index], index, array) === false) {
-      break;
-    }
-  }
-  return array;
-}
-
-export default arrayEach;

+ 0 - 25
packages/ckeditor5-engine/src/lib/lodash/internal/arrayReduce.js

@@ -1,25 +0,0 @@
-/**
- * A specialized version of `_.reduce` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {*} [accumulator] The initial value.
- * @param {boolean} [initAccum] Specify using the first element of `array` as the initial value.
- * @returns {*} Returns the accumulated value.
- */
-function arrayReduce(array, iteratee, accumulator, initAccum) {
-  var index = -1,
-      length = array.length;
-
-  if (initAccum && length) {
-    accumulator = array[++index];
-  }
-  while (++index < length) {
-    accumulator = iteratee(accumulator, array[index], index, array);
-  }
-  return accumulator;
-}
-
-export default arrayReduce;

+ 0 - 22
packages/ckeditor5-engine/src/lib/lodash/internal/arraySome.js

@@ -1,22 +0,0 @@
-/**
- * A specialized version of `_.some` for arrays without support for iteratee
- * shorthands.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if any element passes the predicate check, else `false`.
- */
-function arraySome(array, predicate) {
-  var index = -1,
-      length = array.length;
-
-  while (++index < length) {
-    if (predicate(array[index], index, array)) {
-      return true;
-    }
-  }
-  return false;
-}
-
-export default arraySome;

+ 0 - 28
packages/ckeditor5-engine/src/lib/lodash/internal/assignValue.js

@@ -1,28 +0,0 @@
-import eq from '../eq';
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {string} key The key of the property to assign.
- * @param {*} value The value to assign.
- */
-function assignValue(object, key, value) {
-  var objValue = object[key];
-  if ((!eq(objValue, value) ||
-        (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) ||
-      (value === undefined && !(key in object))) {
-    object[key] = value;
-  }
-}
-
-export default assignValue;

+ 0 - 31
packages/ckeditor5-engine/src/lib/lodash/internal/assocDelete.js

@@ -1,31 +0,0 @@
-import assocIndexOf from './assocIndexOf';
-
-/** Used for built-in method references. */
-var arrayProto = Array.prototype;
-
-/** Built-in value references. */
-var splice = arrayProto.splice;
-
-/**
- * Removes `key` and its value from the associative array.
- *
- * @private
- * @param {Array} array The array to query.
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
-function assocDelete(array, key) {
-  var index = assocIndexOf(array, key);
-  if (index < 0) {
-    return false;
-  }
-  var lastIndex = array.length - 1;
-  if (index == lastIndex) {
-    array.pop();
-  } else {
-    splice.call(array, index, 1);
-  }
-  return true;
-}
-
-export default assocDelete;

+ 0 - 16
packages/ckeditor5-engine/src/lib/lodash/internal/assocGet.js

@@ -1,16 +0,0 @@
-import assocIndexOf from './assocIndexOf';
-
-/**
- * Gets the associative array value for `key`.
- *
- * @private
- * @param {Array} array The array to query.
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
-function assocGet(array, key) {
-  var index = assocIndexOf(array, key);
-  return index < 0 ? undefined : array[index][1];
-}
-
-export default assocGet;

+ 0 - 15
packages/ckeditor5-engine/src/lib/lodash/internal/assocHas.js

@@ -1,15 +0,0 @@
-import assocIndexOf from './assocIndexOf';
-
-/**
- * Checks if an associative array value for `key` exists.
- *
- * @private
- * @param {Array} array The array to query.
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
-function assocHas(array, key) {
-  return assocIndexOf(array, key) > -1;
-}
-
-export default assocHas;

+ 0 - 22
packages/ckeditor5-engine/src/lib/lodash/internal/assocIndexOf.js

@@ -1,22 +0,0 @@
-import eq from '../eq';
-
-/**
- * Gets the index at which the first occurrence of `key` is found in `array`
- * of key-value pairs.
- *
- * @private
- * @param {Array} array The array to search.
- * @param {*} key The key to search for.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
-function assocIndexOf(array, key) {
-  var length = array.length;
-  while (length--) {
-    if (eq(array[length][0], key)) {
-      return length;
-    }
-  }
-  return -1;
-}
-
-export default assocIndexOf;

+ 0 - 20
packages/ckeditor5-engine/src/lib/lodash/internal/assocSet.js

@@ -1,20 +0,0 @@
-import assocIndexOf from './assocIndexOf';
-
-/**
- * Sets the associative array `key` to `value`.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- */
-function assocSet(array, key, value) {
-  var index = assocIndexOf(array, key);
-  if (index < 0) {
-    array.push([key, value]);
-  } else {
-    array[index][1] = value;
-  }
-}
-
-export default assocSet;

+ 0 - 17
packages/ckeditor5-engine/src/lib/lodash/internal/baseAssign.js

@@ -1,17 +0,0 @@
-import copyObject from './copyObject';
-import keys from '../keys';
-
-/**
- * The base implementation of `_.assign` without support for multiple sources
- * or `customizer` functions.
- *
- * @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @returns {Object} Returns `object`.
- */
-function baseAssign(object, source) {
-  return object && copyObject(source, keys(source), object);
-}
-
-export default baseAssign;

+ 0 - 123
packages/ckeditor5-engine/src/lib/lodash/internal/baseClone.js

@@ -1,123 +0,0 @@
-import Stack from './Stack';
-import arrayEach from './arrayEach';
-import assignValue from './assignValue';
-import baseAssign from './baseAssign';
-import baseForOwn from './baseForOwn';
-import copyArray from './copyArray';
-import copySymbols from './copySymbols';
-import getTag from './getTag';
-import initCloneArray from './initCloneArray';
-import initCloneByTag from './initCloneByTag';
-import initCloneObject from './initCloneObject';
-import isArray from '../isArray';
-import isHostObject from './isHostObject';
-import isObject from '../isObject';
-
-/** `Object#toString` result references. */
-var argsTag = '[object Arguments]',
-    arrayTag = '[object Array]',
-    boolTag = '[object Boolean]',
-    dateTag = '[object Date]',
-    errorTag = '[object Error]',
-    funcTag = '[object Function]',
-    genTag = '[object GeneratorFunction]',
-    mapTag = '[object Map]',
-    numberTag = '[object Number]',
-    objectTag = '[object Object]',
-    regexpTag = '[object RegExp]',
-    setTag = '[object Set]',
-    stringTag = '[object String]',
-    symbolTag = '[object Symbol]',
-    weakMapTag = '[object WeakMap]';
-
-var arrayBufferTag = '[object ArrayBuffer]',
-    float32Tag = '[object Float32Array]',
-    float64Tag = '[object Float64Array]',
-    int8Tag = '[object Int8Array]',
-    int16Tag = '[object Int16Array]',
-    int32Tag = '[object Int32Array]',
-    uint8Tag = '[object Uint8Array]',
-    uint8ClampedTag = '[object Uint8ClampedArray]',
-    uint16Tag = '[object Uint16Array]',
-    uint32Tag = '[object Uint32Array]';
-
-/** Used to identify `toStringTag` values supported by `_.clone`. */
-var cloneableTags = {};
-cloneableTags[argsTag] = cloneableTags[arrayTag] =
-cloneableTags[arrayBufferTag] = cloneableTags[boolTag] =
-cloneableTags[dateTag] = cloneableTags[float32Tag] =
-cloneableTags[float64Tag] = cloneableTags[int8Tag] =
-cloneableTags[int16Tag] = cloneableTags[int32Tag] =
-cloneableTags[mapTag] = cloneableTags[numberTag] =
-cloneableTags[objectTag] = cloneableTags[regexpTag] =
-cloneableTags[setTag] = cloneableTags[stringTag] =
-cloneableTags[symbolTag] = cloneableTags[uint8Tag] =
-cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] =
-cloneableTags[uint32Tag] = true;
-cloneableTags[errorTag] = cloneableTags[funcTag] =
-cloneableTags[weakMapTag] = false;
-
-/**
- * The base implementation of `_.clone` and `_.cloneDeep` which tracks
- * traversed objects.
- *
- * @private
- * @param {*} value The value to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @param {Function} [customizer] The function to customize cloning.
- * @param {string} [key] The key of `value`.
- * @param {Object} [object] The parent object of `value`.
- * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
- * @returns {*} Returns the cloned value.
- */
-function baseClone(value, isDeep, customizer, key, object, stack) {
-  var result;
-  if (customizer) {
-    result = object ? customizer(value, key, object, stack) : customizer(value);
-  }
-  if (result !== undefined) {
-    return result;
-  }
-  if (!isObject(value)) {
-    return value;
-  }
-  var isArr = isArray(value);
-  if (isArr) {
-    result = initCloneArray(value);
-    if (!isDeep) {
-      return copyArray(value, result);
-    }
-  } else {
-    var tag = getTag(value),
-        isFunc = tag == funcTag || tag == genTag;
-
-    if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
-      if (isHostObject(value)) {
-        return object ? value : {};
-      }
-      result = initCloneObject(isFunc ? {} : value);
-      if (!isDeep) {
-        return copySymbols(value, baseAssign(result, value));
-      }
-    } else {
-      return cloneableTags[tag]
-        ? initCloneByTag(value, tag, isDeep)
-        : (object ? value : {});
-    }
-  }
-  // Check for circular references and return its corresponding clone.
-  stack || (stack = new Stack);
-  var stacked = stack.get(value);
-  if (stacked) {
-    return stacked;
-  }
-  stack.set(value, result);
-
-  // Recursively populate clone (susceptible to call stack limits).
-  (isArr ? arrayEach : baseForOwn)(value, function(subValue, key) {
-    assignValue(result, key, baseClone(subValue, isDeep, customizer, key, value, stack));
-  });
-  return isArr ? result : copySymbols(value, result);
-}
-
-export default baseClone;

+ 0 - 23
packages/ckeditor5-engine/src/lib/lodash/internal/baseCreate.js

@@ -1,23 +0,0 @@
-import isObject from '../isObject';
-
-/**
- * The base implementation of `_.create` without support for assigning
- * properties to the created object.
- *
- * @private
- * @param {Object} prototype The object to inherit from.
- * @returns {Object} Returns the new object.
- */
-var baseCreate = (function() {
-  function object() {}
-  return function(prototype) {
-    if (isObject(prototype)) {
-      object.prototype = prototype;
-      var result = new object;
-      object.prototype = undefined;
-    }
-    return result || {};
-  };
-}());
-
-export default baseCreate;

+ 0 - 17
packages/ckeditor5-engine/src/lib/lodash/internal/baseFor.js

@@ -1,17 +0,0 @@
-import createBaseFor from './createBaseFor';
-
-/**
- * The base implementation of `baseForIn` and `baseForOwn` which iterates
- * over `object` properties returned by `keysFunc` invoking `iteratee` for
- * each property. Iteratee functions may exit iteration early by explicitly
- * returning `false`.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {Function} keysFunc The function to get the keys of `object`.
- * @returns {Object} Returns `object`.
- */
-var baseFor = createBaseFor();
-
-export default baseFor;

+ 0 - 16
packages/ckeditor5-engine/src/lib/lodash/internal/baseForOwn.js

@@ -1,16 +0,0 @@
-import baseFor from './baseFor';
-import keys from '../keys';
-
-/**
- * The base implementation of `_.forOwn` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Object} Returns `object`.
- */
-function baseForOwn(object, iteratee) {
-  return object && baseFor(object, iteratee, keys);
-}
-
-export default baseForOwn;

+ 0 - 26
packages/ckeditor5-engine/src/lib/lodash/internal/baseHas.js

@@ -1,26 +0,0 @@
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/** Built-in value references. */
-var getPrototypeOf = Object.getPrototypeOf;
-
-/**
- * The base implementation of `_.has` without support for deep paths.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} key The key to check.
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
- */
-function baseHas(object, key) {
-  // Avoid a bug in IE 10-11 where objects with a [[Prototype]] of `null`,
-  // that are composed entirely of index properties, return `false` for
-  // `hasOwnProperty` checks of them.
-  return hasOwnProperty.call(object, key) ||
-    (typeof object == 'object' && key in object && getPrototypeOf(object) === null);
-}
-
-export default baseHas;

+ 0 - 30
packages/ckeditor5-engine/src/lib/lodash/internal/baseIsEqual.js

@@ -1,30 +0,0 @@
-import baseIsEqualDeep from './baseIsEqualDeep';
-import isObject from '../isObject';
-import isObjectLike from '../isObjectLike';
-
-/**
- * The base implementation of `_.isEqual` which supports partial comparisons
- * and tracks traversed objects.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {boolean} [bitmask] The bitmask of comparison flags.
- *  The bitmask may be composed of the following flags:
- *     1 - Unordered comparison
- *     2 - Partial comparison
- * @param {Object} [stack] Tracks traversed `value` and `other` objects.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- */
-function baseIsEqual(value, other, customizer, bitmask, stack) {
-  if (value === other) {
-    return true;
-  }
-  if (value == null || other == null || (!isObject(value) && !isObjectLike(other))) {
-    return value !== value && other !== other;
-  }
-  return baseIsEqualDeep(value, other, baseIsEqual, customizer, bitmask, stack);
-}
-
-export default baseIsEqual;

+ 0 - 83
packages/ckeditor5-engine/src/lib/lodash/internal/baseIsEqualDeep.js

@@ -1,83 +0,0 @@
-import Stack from './Stack';
-import equalArrays from './equalArrays';
-import equalByTag from './equalByTag';
-import equalObjects from './equalObjects';
-import getTag from './getTag';
-import isArray from '../isArray';
-import isHostObject from './isHostObject';
-import isTypedArray from '../isTypedArray';
-
-/** Used to compose bitmasks for comparison styles. */
-var PARTIAL_COMPARE_FLAG = 2;
-
-/** `Object#toString` result references. */
-var argsTag = '[object Arguments]',
-    arrayTag = '[object Array]',
-    objectTag = '[object Object]';
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * A specialized version of `baseIsEqual` for arrays and objects which performs
- * deep comparisons and tracks traversed objects enabling objects with circular
- * references to be compared.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual` for more details.
- * @param {Object} [stack] Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
-function baseIsEqualDeep(object, other, equalFunc, customizer, bitmask, stack) {
-  var objIsArr = isArray(object),
-      othIsArr = isArray(other),
-      objTag = arrayTag,
-      othTag = arrayTag;
-
-  if (!objIsArr) {
-    objTag = getTag(object);
-    if (objTag == argsTag) {
-      objTag = objectTag;
-    } else if (objTag != objectTag) {
-      objIsArr = isTypedArray(object);
-    }
-  }
-  if (!othIsArr) {
-    othTag = getTag(other);
-    if (othTag == argsTag) {
-      othTag = objectTag;
-    } else if (othTag != objectTag) {
-      othIsArr = isTypedArray(other);
-    }
-  }
-  var objIsObj = objTag == objectTag && !isHostObject(object),
-      othIsObj = othTag == objectTag && !isHostObject(other),
-      isSameTag = objTag == othTag;
-
-  if (isSameTag && !(objIsArr || objIsObj)) {
-    return equalByTag(object, other, objTag, equalFunc, customizer, bitmask);
-  }
-  var isPartial = bitmask & PARTIAL_COMPARE_FLAG;
-  if (!isPartial) {
-    var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
-        othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
-
-    if (objIsWrapped || othIsWrapped) {
-      return equalFunc(objIsWrapped ? object.value() : object, othIsWrapped ? other.value() : other, customizer, bitmask, stack);
-    }
-  }
-  if (!isSameTag) {
-    return false;
-  }
-  stack || (stack = new Stack);
-  return (objIsArr ? equalArrays : equalObjects)(object, other, equalFunc, customizer, bitmask, stack);
-}
-
-export default baseIsEqualDeep;

+ 0 - 17
packages/ckeditor5-engine/src/lib/lodash/internal/baseKeys.js

@@ -1,17 +0,0 @@
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeKeys = Object.keys;
-
-/**
- * The base implementation of `_.keys` which doesn't skip the constructor
- * property of prototypes or treat sparse arrays as dense.
- *
- * @private
- * @type Function
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- */
-function baseKeys(object) {
-  return nativeKeys(Object(object));
-}
-
-export default baseKeys;

+ 0 - 36
packages/ckeditor5-engine/src/lib/lodash/internal/baseKeysIn.js

@@ -1,36 +0,0 @@
-import Reflect from './Reflect';
-import iteratorToArray from './iteratorToArray';
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Built-in value references. */
-var enumerate = Reflect ? Reflect.enumerate : undefined,
-    propertyIsEnumerable = objectProto.propertyIsEnumerable;
-
-/**
- * The base implementation of `_.keysIn` which doesn't skip the constructor
- * property of prototypes or treat sparse arrays as dense.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- */
-function baseKeysIn(object) {
-  object = object == null ? object : Object(object);
-
-  var result = [];
-  for (var key in object) {
-    result.push(key);
-  }
-  return result;
-}
-
-// Fallback for IE < 9 with es6-shim.
-if (enumerate && !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf')) {
-  baseKeysIn = function(object) {
-    return iteratorToArray(enumerate(object));
-  };
-}
-
-export default baseKeysIn;

+ 0 - 14
packages/ckeditor5-engine/src/lib/lodash/internal/baseProperty.js

@@ -1,14 +0,0 @@
-/**
- * The base implementation of `_.property` without support for deep paths.
- *
- * @private
- * @param {string} key The key of the property to get.
- * @returns {Function} Returns the new function.
- */
-function baseProperty(key) {
-  return function(object) {
-    return object == null ? undefined : object[key];
-  };
-}
-
-export default baseProperty;

+ 0 - 20
packages/ckeditor5-engine/src/lib/lodash/internal/baseTimes.js

@@ -1,20 +0,0 @@
-/**
- * The base implementation of `_.times` without support for iteratee shorthands
- * or max array length checks.
- *
- * @private
- * @param {number} n The number of times to invoke `iteratee`.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the array of results.
- */
-function baseTimes(n, iteratee) {
-  var index = -1,
-      result = Array(n);
-
-  while (++index < n) {
-    result[index] = iteratee(index);
-  }
-  return result;
-}
-
-export default baseTimes;

+ 0 - 12
packages/ckeditor5-engine/src/lib/lodash/internal/checkGlobal.js

@@ -1,12 +0,0 @@
-/**
- * Checks if `value` is a global object.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {null|Object} Returns `value` if it's a global object, else `null`.
- */
-function checkGlobal(value) {
-  return (value && value.Object === Object) ? value : null;
-}
-
-export default checkGlobal;

+ 0 - 19
packages/ckeditor5-engine/src/lib/lodash/internal/cloneBuffer.js

@@ -1,19 +0,0 @@
-import Uint8Array from './Uint8Array';
-
-/**
- * Creates a clone of `buffer`.
- *
- * @private
- * @param {ArrayBuffer} buffer The array buffer to clone.
- * @returns {ArrayBuffer} Returns the cloned array buffer.
- */
-function cloneBuffer(buffer) {
-  var Ctor = buffer.constructor,
-      result = new Ctor(buffer.byteLength),
-      view = new Uint8Array(result);
-
-  view.set(new Uint8Array(buffer));
-  return result;
-}
-
-export default cloneBuffer;

+ 0 - 17
packages/ckeditor5-engine/src/lib/lodash/internal/cloneMap.js

@@ -1,17 +0,0 @@
-import addMapEntry from './addMapEntry';
-import arrayReduce from './arrayReduce';
-import mapToArray from './mapToArray';
-
-/**
- * Creates a clone of `map`.
- *
- * @private
- * @param {Object} map The map to clone.
- * @returns {Object} Returns the cloned map.
- */
-function cloneMap(map) {
-  var Ctor = map.constructor;
-  return arrayReduce(mapToArray(map), addMapEntry, new Ctor);
-}
-
-export default cloneMap;

+ 0 - 19
packages/ckeditor5-engine/src/lib/lodash/internal/cloneRegExp.js

@@ -1,19 +0,0 @@
-/** Used to match `RegExp` flags from their coerced string values. */
-var reFlags = /\w*$/;
-
-/**
- * Creates a clone of `regexp`.
- *
- * @private
- * @param {Object} regexp The regexp to clone.
- * @returns {Object} Returns the cloned regexp.
- */
-function cloneRegExp(regexp) {
-  var Ctor = regexp.constructor,
-      result = new Ctor(regexp.source, reFlags.exec(regexp));
-
-  result.lastIndex = regexp.lastIndex;
-  return result;
-}
-
-export default cloneRegExp;

+ 0 - 17
packages/ckeditor5-engine/src/lib/lodash/internal/cloneSet.js

@@ -1,17 +0,0 @@
-import addSetEntry from './addSetEntry';
-import arrayReduce from './arrayReduce';
-import setToArray from './setToArray';
-
-/**
- * Creates a clone of `set`.
- *
- * @private
- * @param {Object} set The set to clone.
- * @returns {Object} Returns the cloned set.
- */
-function cloneSet(set) {
-  var Ctor = set.constructor;
-  return arrayReduce(setToArray(set), addSetEntry, new Ctor);
-}
-
-export default cloneSet;

+ 0 - 18
packages/ckeditor5-engine/src/lib/lodash/internal/cloneSymbol.js

@@ -1,18 +0,0 @@
-import Symbol from './Symbol';
-
-/** Used to convert symbols to primitives and strings. */
-var symbolProto = Symbol ? Symbol.prototype : undefined,
-    symbolValueOf = Symbol ? symbolProto.valueOf : undefined;
-
-/**
- * Creates a clone of the `symbol` object.
- *
- * @private
- * @param {Object} symbol The symbol object to clone.
- * @returns {Object} Returns the cloned symbol object.
- */
-function cloneSymbol(symbol) {
-  return Symbol ? Object(symbolValueOf.call(symbol)) : {};
-}
-
-export default cloneSymbol;

+ 0 - 18
packages/ckeditor5-engine/src/lib/lodash/internal/cloneTypedArray.js

@@ -1,18 +0,0 @@
-import cloneBuffer from './cloneBuffer';
-
-/**
- * Creates a clone of `typedArray`.
- *
- * @private
- * @param {Object} typedArray The typed array to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Object} Returns the cloned typed array.
- */
-function cloneTypedArray(typedArray, isDeep) {
-  var buffer = typedArray.buffer,
-      Ctor = typedArray.constructor;
-
-  return new Ctor(isDeep ? cloneBuffer(buffer) : buffer, typedArray.byteOffset, typedArray.length);
-}
-
-export default cloneTypedArray;

+ 0 - 20
packages/ckeditor5-engine/src/lib/lodash/internal/copyArray.js

@@ -1,20 +0,0 @@
-/**
- * Copies the values of `source` to `array`.
- *
- * @private
- * @param {Array} source The array to copy values from.
- * @param {Array} [array=[]] The array to copy values to.
- * @returns {Array} Returns `array`.
- */
-function copyArray(source, array) {
-  var index = -1,
-      length = source.length;
-
-  array || (array = Array(length));
-  while (++index < length) {
-    array[index] = source[index];
-  }
-  return array;
-}
-
-export default copyArray;

+ 0 - 16
packages/ckeditor5-engine/src/lib/lodash/internal/copyObject.js

@@ -1,16 +0,0 @@
-import copyObjectWith from './copyObjectWith';
-
-/**
- * Copies properties of `source` to `object`.
- *
- * @private
- * @param {Object} source The object to copy properties from.
- * @param {Array} props The property names to copy.
- * @param {Object} [object={}] The object to copy properties to.
- * @returns {Object} Returns `object`.
- */
-function copyObject(source, props, object) {
-  return copyObjectWith(source, props, object);
-}
-
-export default copyObject;

+ 0 - 29
packages/ckeditor5-engine/src/lib/lodash/internal/copyObjectWith.js

@@ -1,29 +0,0 @@
-import assignValue from './assignValue';
-
-/**
- * This function is like `copyObject` except that it accepts a function to
- * customize copied values.
- *
- * @private
- * @param {Object} source The object to copy properties from.
- * @param {Array} props The property names to copy.
- * @param {Object} [object={}] The object to copy properties to.
- * @param {Function} [customizer] The function to customize copied values.
- * @returns {Object} Returns `object`.
- */
-function copyObjectWith(source, props, object, customizer) {
-  object || (object = {});
-
-  var index = -1,
-      length = props.length;
-
-  while (++index < length) {
-    var key = props[index],
-        newValue = customizer ? customizer(object[key], source[key], key, object, source) : source[key];
-
-    assignValue(object, key, newValue);
-  }
-  return object;
-}
-
-export default copyObjectWith;

+ 0 - 16
packages/ckeditor5-engine/src/lib/lodash/internal/copySymbols.js

@@ -1,16 +0,0 @@
-import copyObject from './copyObject';
-import getSymbols from './getSymbols';
-
-/**
- * Copies own symbol properties of `source` to `object`.
- *
- * @private
- * @param {Object} source The object to copy symbols from.
- * @param {Object} [object={}] The object to copy symbols to.
- * @returns {Object} Returns `object`.
- */
-function copySymbols(source, object) {
-  return copyObject(source, getSymbols(source), object);
-}
-
-export default copySymbols;

+ 0 - 34
packages/ckeditor5-engine/src/lib/lodash/internal/createAssigner.js

@@ -1,34 +0,0 @@
-import isIterateeCall from './isIterateeCall';
-import rest from '../rest';
-
-/**
- * Creates a function like `_.assign`.
- *
- * @private
- * @param {Function} assigner The function to assign values.
- * @returns {Function} Returns the new assigner function.
- */
-function createAssigner(assigner) {
-  return rest(function(object, sources) {
-    var index = -1,
-        length = sources.length,
-        customizer = length > 1 ? sources[length - 1] : undefined,
-        guard = length > 2 ? sources[2] : undefined;
-
-    customizer = typeof customizer == 'function' ? (length--, customizer) : undefined;
-    if (guard && isIterateeCall(sources[0], sources[1], guard)) {
-      customizer = length < 3 ? undefined : customizer;
-      length = 1;
-    }
-    object = Object(object);
-    while (++index < length) {
-      var source = sources[index];
-      if (source) {
-        assigner(object, source, index, customizer);
-      }
-    }
-    return object;
-  });
-}
-
-export default createAssigner;

+ 0 - 25
packages/ckeditor5-engine/src/lib/lodash/internal/createBaseFor.js

@@ -1,25 +0,0 @@
-/**
- * Creates a base function for methods like `_.forIn`.
- *
- * @private
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new base function.
- */
-function createBaseFor(fromRight) {
-  return function(object, iteratee, keysFunc) {
-    var index = -1,
-        iterable = Object(object),
-        props = keysFunc(object),
-        length = props.length;
-
-    while (length--) {
-      var key = props[fromRight ? length : ++index];
-      if (iteratee(iterable[key], key, iterable) === false) {
-        break;
-      }
-    }
-    return object;
-  };
-}
-
-export default createBaseFor;

+ 0 - 72
packages/ckeditor5-engine/src/lib/lodash/internal/equalArrays.js

@@ -1,72 +0,0 @@
-import arraySome from './arraySome';
-
-/** Used to compose bitmasks for comparison styles. */
-var UNORDERED_COMPARE_FLAG = 1,
-    PARTIAL_COMPARE_FLAG = 2;
-
-/**
- * A specialized version of `baseIsEqualDeep` for arrays with support for
- * partial deep comparisons.
- *
- * @private
- * @param {Array} array The array to compare.
- * @param {Array} other The other array to compare.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual` for more details.
- * @param {Object} [stack] Tracks traversed `array` and `other` objects.
- * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
- */
-function equalArrays(array, other, equalFunc, customizer, bitmask, stack) {
-  var index = -1,
-      isPartial = bitmask & PARTIAL_COMPARE_FLAG,
-      isUnordered = bitmask & UNORDERED_COMPARE_FLAG,
-      arrLength = array.length,
-      othLength = other.length;
-
-  if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
-    return false;
-  }
-  // Assume cyclic values are equal.
-  var stacked = stack.get(array);
-  if (stacked) {
-    return stacked == other;
-  }
-  var result = true;
-  stack.set(array, other);
-
-  // Ignore non-index properties.
-  while (++index < arrLength) {
-    var arrValue = array[index],
-        othValue = other[index];
-
-    if (customizer) {
-      var compared = isPartial
-        ? customizer(othValue, arrValue, index, other, array, stack)
-        : customizer(arrValue, othValue, index, array, other, stack);
-    }
-    if (compared !== undefined) {
-      if (compared) {
-        continue;
-      }
-      result = false;
-      break;
-    }
-    // Recursively compare arrays (susceptible to call stack limits).
-    if (isUnordered) {
-      if (!arraySome(other, function(othValue) {
-            return arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack);
-          })) {
-        result = false;
-        break;
-      }
-    } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) {
-      result = false;
-      break;
-    }
-  }
-  stack['delete'](array);
-  return result;
-}
-
-export default equalArrays;

+ 0 - 88
packages/ckeditor5-engine/src/lib/lodash/internal/equalByTag.js

@@ -1,88 +0,0 @@
-import Symbol from './Symbol';
-import Uint8Array from './Uint8Array';
-import mapToArray from './mapToArray';
-import setToArray from './setToArray';
-
-/** Used to compose bitmasks for comparison styles. */
-var UNORDERED_COMPARE_FLAG = 1,
-    PARTIAL_COMPARE_FLAG = 2;
-
-/** `Object#toString` result references. */
-var boolTag = '[object Boolean]',
-    dateTag = '[object Date]',
-    errorTag = '[object Error]',
-    mapTag = '[object Map]',
-    numberTag = '[object Number]',
-    regexpTag = '[object RegExp]',
-    setTag = '[object Set]',
-    stringTag = '[object String]',
-    symbolTag = '[object Symbol]';
-
-var arrayBufferTag = '[object ArrayBuffer]';
-
-/** Used to convert symbols to primitives and strings. */
-var symbolProto = Symbol ? Symbol.prototype : undefined,
-    symbolValueOf = Symbol ? symbolProto.valueOf : undefined;
-
-/**
- * A specialized version of `baseIsEqualDeep` for comparing objects of
- * the same `toStringTag`.
- *
- * **Note:** This function only supports comparing values with tags of
- * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {string} tag The `toStringTag` of the objects to compare.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual` for more details.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
-function equalByTag(object, other, tag, equalFunc, customizer, bitmask) {
-  switch (tag) {
-    case arrayBufferTag:
-      if ((object.byteLength != other.byteLength) ||
-          !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
-        return false;
-      }
-      return true;
-
-    case boolTag:
-    case dateTag:
-      // Coerce dates and booleans to numbers, dates to milliseconds and booleans
-      // to `1` or `0` treating invalid dates coerced to `NaN` as not equal.
-      return +object == +other;
-
-    case errorTag:
-      return object.name == other.name && object.message == other.message;
-
-    case numberTag:
-      // Treat `NaN` vs. `NaN` as equal.
-      return (object != +object) ? other != +other : object == +other;
-
-    case regexpTag:
-    case stringTag:
-      // Coerce regexes to strings and treat strings primitives and string
-      // objects as equal. See https://es5.github.io/#x15.10.6.4 for more details.
-      return object == (other + '');
-
-    case mapTag:
-      var convert = mapToArray;
-
-    case setTag:
-      var isPartial = bitmask & PARTIAL_COMPARE_FLAG;
-      convert || (convert = setToArray);
-
-      // Recursively compare objects (susceptible to call stack limits).
-      return (isPartial || object.size == other.size) &&
-        equalFunc(convert(object), convert(other), customizer, bitmask | UNORDERED_COMPARE_FLAG);
-
-    case symbolTag:
-      return !!Symbol && (symbolValueOf.call(object) == symbolValueOf.call(other));
-  }
-  return false;
-}
-
-export default equalByTag;

+ 0 - 82
packages/ckeditor5-engine/src/lib/lodash/internal/equalObjects.js

@@ -1,82 +0,0 @@
-import baseHas from './baseHas';
-import keys from '../keys';
-
-/** Used to compose bitmasks for comparison styles. */
-var PARTIAL_COMPARE_FLAG = 2;
-
-/**
- * A specialized version of `baseIsEqualDeep` for objects with support for
- * partial deep comparisons.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual` for more details.
- * @param {Object} [stack] Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
-function equalObjects(object, other, equalFunc, customizer, bitmask, stack) {
-  var isPartial = bitmask & PARTIAL_COMPARE_FLAG,
-      objProps = keys(object),
-      objLength = objProps.length,
-      othProps = keys(other),
-      othLength = othProps.length;
-
-  if (objLength != othLength && !isPartial) {
-    return false;
-  }
-  var index = objLength;
-  while (index--) {
-    var key = objProps[index];
-    if (!(isPartial ? key in other : baseHas(other, key))) {
-      return false;
-    }
-  }
-  // Assume cyclic values are equal.
-  var stacked = stack.get(object);
-  if (stacked) {
-    return stacked == other;
-  }
-  var result = true;
-  stack.set(object, other);
-
-  var skipCtor = isPartial;
-  while (++index < objLength) {
-    key = objProps[index];
-    var objValue = object[key],
-        othValue = other[key];
-
-    if (customizer) {
-      var compared = isPartial
-        ? customizer(othValue, objValue, key, other, object, stack)
-        : customizer(objValue, othValue, key, object, other, stack);
-    }
-    // Recursively compare objects (susceptible to call stack limits).
-    if (!(compared === undefined
-          ? (objValue === othValue || equalFunc(objValue, othValue, customizer, bitmask, stack))
-          : compared
-        )) {
-      result = false;
-      break;
-    }
-    skipCtor || (skipCtor = key == 'constructor');
-  }
-  if (result && !skipCtor) {
-    var objCtor = object.constructor,
-        othCtor = other.constructor;
-
-    // Non `Object` object instances with different constructors are not equal.
-    if (objCtor != othCtor &&
-        ('constructor' in object && 'constructor' in other) &&
-        !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
-          typeof othCtor == 'function' && othCtor instanceof othCtor)) {
-      result = false;
-    }
-  }
-  stack['delete'](object);
-  return result;
-}
-
-export default equalObjects;

+ 0 - 15
packages/ckeditor5-engine/src/lib/lodash/internal/getLength.js

@@ -1,15 +0,0 @@
-import baseProperty from './baseProperty';
-
-/**
- * Gets the "length" property value of `object`.
- *
- * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)
- * that affects Safari on at least iOS 8.1-8.3 ARM64.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {*} Returns the "length" value.
- */
-var getLength = baseProperty('length');
-
-export default getLength;

+ 0 - 16
packages/ckeditor5-engine/src/lib/lodash/internal/getNative.js

@@ -1,16 +0,0 @@
-import isNative from '../isNative';
-
-/**
- * Gets the native function at `key` of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {string} key The key of the method to get.
- * @returns {*} Returns the function if it's native, else `undefined`.
- */
-function getNative(object, key) {
-  var value = object == null ? undefined : object[key];
-  return isNative(value) ? value : undefined;
-}
-
-export default getNative;

+ 0 - 15
packages/ckeditor5-engine/src/lib/lodash/internal/getSymbols.js

@@ -1,15 +0,0 @@
-/** Built-in value references. */
-var getOwnPropertySymbols = Object.getOwnPropertySymbols;
-
-/**
- * Creates an array of the own symbol properties of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of symbols.
- */
-var getSymbols = getOwnPropertySymbols || function() {
-  return [];
-};
-
-export default getSymbols;

+ 0 - 55
packages/ckeditor5-engine/src/lib/lodash/internal/getTag.js

@@ -1,55 +0,0 @@
-import Map from './Map';
-import Set from './Set';
-
-/** `Object#toString` result references. */
-var mapTag = '[object Map]',
-    objectTag = '[object Object]',
-    setTag = '[object Set]';
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to resolve the decompiled source of functions. */
-var funcToString = Function.prototype.toString;
-
-/**
- * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
- * of values.
- */
-var objectToString = objectProto.toString;
-
-/** Used to detect maps and sets. */
-var mapCtorString = Map ? funcToString.call(Map) : '',
-    setCtorString = Set ? funcToString.call(Set) : '';
-
-/**
- * Gets the `toStringTag` of `value`.
- *
- * @private
- * @param {*} value The value to query.
- * @returns {string} Returns the `toStringTag`.
- */
-function getTag(value) {
-  return objectToString.call(value);
-}
-
-// Fallback for IE 11 providing `toStringTag` values for maps and sets.
-if ((Map && getTag(new Map) != mapTag) || (Set && getTag(new Set) != setTag)) {
-  getTag = function(value) {
-    var result = objectToString.call(value),
-        Ctor = result == objectTag ? value.constructor : null,
-        ctorString = typeof Ctor == 'function' ? funcToString.call(Ctor) : '';
-
-    if (ctorString) {
-      if (ctorString == mapCtorString) {
-        return mapTag;
-      }
-      if (ctorString == setCtorString) {
-        return setTag;
-      }
-    }
-    return result;
-  };
-}
-
-export default getTag;

+ 0 - 15
packages/ckeditor5-engine/src/lib/lodash/internal/hashDelete.js

@@ -1,15 +0,0 @@
-import hashHas from './hashHas';
-
-/**
- * Removes `key` and its value from the hash.
- *
- * @private
- * @param {Object} hash The hash to modify.
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
-function hashDelete(hash, key) {
-  return hashHas(hash, key) && delete hash[key];
-}
-
-export default hashDelete;

+ 0 - 28
packages/ckeditor5-engine/src/lib/lodash/internal/hashGet.js

@@ -1,28 +0,0 @@
-import nativeCreate from './nativeCreate';
-
-/** Used to stand-in for `undefined` hash values. */
-var HASH_UNDEFINED = '__lodash_hash_undefined__';
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Gets the hash value for `key`.
- *
- * @private
- * @param {Object} hash The hash to query.
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
-function hashGet(hash, key) {
-  if (nativeCreate) {
-    var result = hash[key];
-    return result === HASH_UNDEFINED ? undefined : result;
-  }
-  return hasOwnProperty.call(hash, key) ? hash[key] : undefined;
-}
-
-export default hashGet;

+ 0 - 21
packages/ckeditor5-engine/src/lib/lodash/internal/hashHas.js

@@ -1,21 +0,0 @@
-import nativeCreate from './nativeCreate';
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Checks if a hash value for `key` exists.
- *
- * @private
- * @param {Object} hash The hash to query.
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
-function hashHas(hash, key) {
-  return nativeCreate ? hash[key] !== undefined : hasOwnProperty.call(hash, key);
-}
-
-export default hashHas;

+ 0 - 18
packages/ckeditor5-engine/src/lib/lodash/internal/hashSet.js

@@ -1,18 +0,0 @@
-import nativeCreate from './nativeCreate';
-
-/** Used to stand-in for `undefined` hash values. */
-var HASH_UNDEFINED = '__lodash_hash_undefined__';
-
-/**
- * Sets the hash `key` to `value`.
- *
- * @private
- * @param {Object} hash The hash to modify.
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- */
-function hashSet(hash, key, value) {
-  hash[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
-}
-
-export default hashSet;

+ 0 - 22
packages/ckeditor5-engine/src/lib/lodash/internal/indexKeys.js

@@ -1,22 +0,0 @@
-import baseTimes from './baseTimes';
-import isArguments from '../isArguments';
-import isArray from '../isArray';
-import isLength from '../isLength';
-import isString from '../isString';
-
-/**
- * Creates an array of index keys for `object` values of arrays,
- * `arguments` objects, and strings, otherwise `null` is returned.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array|null} Returns index keys, else `null`.
- */
-function indexKeys(object) {
-  var length = object ? object.length : undefined;
-  return (isLength(length) && (isArray(object) || isString(object) || isArguments(object)))
-    ? baseTimes(length, String)
-    : null;
-}
-
-export default indexKeys;

+ 0 - 26
packages/ckeditor5-engine/src/lib/lodash/internal/initCloneArray.js

@@ -1,26 +0,0 @@
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Initializes an array clone.
- *
- * @private
- * @param {Array} array The array to clone.
- * @returns {Array} Returns the initialized clone.
- */
-function initCloneArray(array) {
-  var length = array.length,
-      result = array.constructor(length);
-
-  // Add properties assigned by `RegExp#exec`.
-  if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
-    result.index = array.index;
-    result.input = array.input;
-  }
-  return result;
-}
-
-export default initCloneArray;

+ 0 - 74
packages/ckeditor5-engine/src/lib/lodash/internal/initCloneByTag.js

@@ -1,74 +0,0 @@
-import cloneBuffer from './cloneBuffer';
-import cloneMap from './cloneMap';
-import cloneRegExp from './cloneRegExp';
-import cloneSet from './cloneSet';
-import cloneSymbol from './cloneSymbol';
-import cloneTypedArray from './cloneTypedArray';
-
-/** `Object#toString` result references. */
-var boolTag = '[object Boolean]',
-    dateTag = '[object Date]',
-    mapTag = '[object Map]',
-    numberTag = '[object Number]',
-    regexpTag = '[object RegExp]',
-    setTag = '[object Set]',
-    stringTag = '[object String]',
-    symbolTag = '[object Symbol]';
-
-var arrayBufferTag = '[object ArrayBuffer]',
-    float32Tag = '[object Float32Array]',
-    float64Tag = '[object Float64Array]',
-    int8Tag = '[object Int8Array]',
-    int16Tag = '[object Int16Array]',
-    int32Tag = '[object Int32Array]',
-    uint8Tag = '[object Uint8Array]',
-    uint8ClampedTag = '[object Uint8ClampedArray]',
-    uint16Tag = '[object Uint16Array]',
-    uint32Tag = '[object Uint32Array]';
-
-/**
- * Initializes an object clone based on its `toStringTag`.
- *
- * **Note:** This function only supports cloning values with tags of
- * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
- *
- * @private
- * @param {Object} object The object to clone.
- * @param {string} tag The `toStringTag` of the object to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Object} Returns the initialized clone.
- */
-function initCloneByTag(object, tag, isDeep) {
-  var Ctor = object.constructor;
-  switch (tag) {
-    case arrayBufferTag:
-      return cloneBuffer(object);
-
-    case boolTag:
-    case dateTag:
-      return new Ctor(+object);
-
-    case float32Tag: case float64Tag:
-    case int8Tag: case int16Tag: case int32Tag:
-    case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
-      return cloneTypedArray(object, isDeep);
-
-    case mapTag:
-      return cloneMap(object);
-
-    case numberTag:
-    case stringTag:
-      return new Ctor(object);
-
-    case regexpTag:
-      return cloneRegExp(object);
-
-    case setTag:
-      return cloneSet(object);
-
-    case symbolTag:
-      return cloneSymbol(object);
-  }
-}
-
-export default initCloneByTag;

+ 0 - 16
packages/ckeditor5-engine/src/lib/lodash/internal/initCloneObject.js

@@ -1,16 +0,0 @@
-import baseCreate from './baseCreate';
-import isFunction from '../isFunction';
-
-/**
- * Initializes an object clone.
- *
- * @private
- * @param {Object} object The object to clone.
- * @returns {Object} Returns the initialized clone.
- */
-function initCloneObject(object) {
-  var Ctor = object.constructor;
-  return baseCreate(isFunction(Ctor) ? Ctor.prototype : undefined);
-}
-
-export default initCloneObject;

+ 0 - 20
packages/ckeditor5-engine/src/lib/lodash/internal/isHostObject.js

@@ -1,20 +0,0 @@
-/**
- * Checks if `value` is a host object in IE < 9.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
- */
-function isHostObject(value) {
-  // Many host objects are `Object` objects that can coerce to strings
-  // despite having improperly defined `toString` methods.
-  var result = false;
-  if (value != null && typeof value.toString != 'function') {
-    try {
-      result = !!(value + '');
-    } catch (e) {}
-  }
-  return result;
-}
-
-export default isHostObject;

+ 0 - 21
packages/ckeditor5-engine/src/lib/lodash/internal/isIndex.js

@@ -1,21 +0,0 @@
-/** Used as references for various `Number` constants. */
-var MAX_SAFE_INTEGER = 9007199254740991;
-
-/** Used to detect unsigned integer values. */
-var reIsUint = /^(?:0|[1-9]\d*)$/;
-
-/**
- * Checks if `value` is a valid array-like index.
- *
- * @private
- * @param {*} value The value to check.
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
- */
-function isIndex(value, length) {
-  value = (typeof value == 'number' || reIsUint.test(value)) ? +value : -1;
-  length = length == null ? MAX_SAFE_INTEGER : length;
-  return value > -1 && value % 1 == 0 && value < length;
-}
-
-export default isIndex;

+ 0 - 28
packages/ckeditor5-engine/src/lib/lodash/internal/isIterateeCall.js

@@ -1,28 +0,0 @@
-import eq from '../eq';
-import isArrayLike from '../isArrayLike';
-import isIndex from './isIndex';
-import isObject from '../isObject';
-
-/**
- * Checks if the provided arguments are from an iteratee call.
- *
- * @private
- * @param {*} value The potential iteratee value argument.
- * @param {*} index The potential iteratee index or key argument.
- * @param {*} object The potential iteratee object argument.
- * @returns {boolean} Returns `true` if the arguments are from an iteratee call, else `false`.
- */
-function isIterateeCall(value, index, object) {
-  if (!isObject(object)) {
-    return false;
-  }
-  var type = typeof index;
-  if (type == 'number'
-      ? (isArrayLike(object) && isIndex(index, object.length))
-      : (type == 'string' && index in object)) {
-    return eq(object[index], value);
-  }
-  return false;
-}
-
-export default isIterateeCall;

+ 0 - 14
packages/ckeditor5-engine/src/lib/lodash/internal/isKeyable.js

@@ -1,14 +0,0 @@
-/**
- * Checks if `value` is suitable for use as unique object key.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
- */
-function isKeyable(value) {
-  var type = typeof value;
-  return type == 'number' || type == 'boolean' ||
-    (type == 'string' && value !== '__proto__') || value == null;
-}
-
-export default isKeyable;

+ 0 - 18
packages/ckeditor5-engine/src/lib/lodash/internal/isPrototype.js

@@ -1,18 +0,0 @@
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/**
- * Checks if `value` is likely a prototype object.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
- */
-function isPrototype(value) {
-  var Ctor = value && value.constructor,
-      proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
-
-  return value === proto;
-}
-
-export default isPrototype;

+ 0 - 18
packages/ckeditor5-engine/src/lib/lodash/internal/iteratorToArray.js

@@ -1,18 +0,0 @@
-/**
- * Converts `iterator` to an array.
- *
- * @private
- * @param {Object} iterator The iterator to convert.
- * @returns {Array} Returns the converted array.
- */
-function iteratorToArray(iterator) {
-  var data,
-      result = [];
-
-  while (!(data = iterator.next()).done) {
-    result.push(data.value);
-  }
-  return result;
-}
-
-export default iteratorToArray;

+ 0 - 15
packages/ckeditor5-engine/src/lib/lodash/internal/mapClear.js

@@ -1,15 +0,0 @@
-import Hash from './Hash';
-import Map from './Map';
-
-/**
- * Removes all key-value entries from the map.
- *
- * @private
- * @name clear
- * @memberOf MapCache
- */
-function mapClear() {
-  this.__data__ = { 'hash': new Hash, 'map': Map ? new Map : [], 'string': new Hash };
-}
-
-export default mapClear;

+ 0 - 23
packages/ckeditor5-engine/src/lib/lodash/internal/mapDelete.js

@@ -1,23 +0,0 @@
-import Map from './Map';
-import assocDelete from './assocDelete';
-import hashDelete from './hashDelete';
-import isKeyable from './isKeyable';
-
-/**
- * Removes `key` and its value from the map.
- *
- * @private
- * @name delete
- * @memberOf MapCache
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
-function mapDelete(key) {
-  var data = this.__data__;
-  if (isKeyable(key)) {
-    return hashDelete(typeof key == 'string' ? data.string : data.hash, key);
-  }
-  return Map ? data.map['delete'](key) : assocDelete(data.map, key);
-}
-
-export default mapDelete;

+ 0 - 23
packages/ckeditor5-engine/src/lib/lodash/internal/mapGet.js

@@ -1,23 +0,0 @@
-import Map from './Map';
-import assocGet from './assocGet';
-import hashGet from './hashGet';
-import isKeyable from './isKeyable';
-
-/**
- * Gets the map value for `key`.
- *
- * @private
- * @name get
- * @memberOf MapCache
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
-function mapGet(key) {
-  var data = this.__data__;
-  if (isKeyable(key)) {
-    return hashGet(typeof key == 'string' ? data.string : data.hash, key);
-  }
-  return Map ? data.map.get(key) : assocGet(data.map, key);
-}
-
-export default mapGet;

+ 0 - 23
packages/ckeditor5-engine/src/lib/lodash/internal/mapHas.js

@@ -1,23 +0,0 @@
-import Map from './Map';
-import assocHas from './assocHas';
-import hashHas from './hashHas';
-import isKeyable from './isKeyable';
-
-/**
- * Checks if a map value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf MapCache
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
-function mapHas(key) {
-  var data = this.__data__;
-  if (isKeyable(key)) {
-    return hashHas(typeof key == 'string' ? data.string : data.hash, key);
-  }
-  return Map ? data.map.has(key) : assocHas(data.map, key);
-}
-
-export default mapHas;

+ 0 - 28
packages/ckeditor5-engine/src/lib/lodash/internal/mapSet.js

@@ -1,28 +0,0 @@
-import Map from './Map';
-import assocSet from './assocSet';
-import hashSet from './hashSet';
-import isKeyable from './isKeyable';
-
-/**
- * Sets the map `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf MapCache
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the map cache object.
- */
-function mapSet(key, value) {
-  var data = this.__data__;
-  if (isKeyable(key)) {
-    hashSet(typeof key == 'string' ? data.string : data.hash, key, value);
-  } else if (Map) {
-    data.map.set(key, value);
-  } else {
-    assocSet(data.map, key, value);
-  }
-  return this;
-}
-
-export default mapSet;

+ 0 - 18
packages/ckeditor5-engine/src/lib/lodash/internal/mapToArray.js

@@ -1,18 +0,0 @@
-/**
- * Converts `map` to an array.
- *
- * @private
- * @param {Object} map The map to convert.
- * @returns {Array} Returns the converted array.
- */
-function mapToArray(map) {
-  var index = -1,
-      result = Array(map.size);
-
-  map.forEach(function(value, key) {
-    result[++index] = [key, value];
-  });
-  return result;
-}
-
-export default mapToArray;

+ 0 - 6
packages/ckeditor5-engine/src/lib/lodash/internal/nativeCreate.js

@@ -1,6 +0,0 @@
-import getNative from './getNative';
-
-/* Built-in method references that are verified to be native. */
-var nativeCreate = getNative(Object, 'create');
-
-export default nativeCreate;

+ 0 - 35
packages/ckeditor5-engine/src/lib/lodash/internal/root.js

@@ -1,35 +0,0 @@
-import checkGlobal from './checkGlobal';
-
-/** Used to determine if values are of the language type `Object`. */
-var objectTypes = {
-  'function': true,
-  'object': true
-};
-
-/** Detect free variable `exports`. */
-var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null;
-
-/** Detect free variable `module`. */
-var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : null;
-
-/** Detect free variable `global` from Node.js. */
-var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global);
-
-/** Detect free variable `self`. */
-var freeSelf = checkGlobal(objectTypes[typeof self] && self);
-
-/** Detect free variable `window`. */
-var freeWindow = checkGlobal(objectTypes[typeof window] && window);
-
-/** Detect `this` as the global object. */
-var thisGlobal = checkGlobal(objectTypes[typeof this] && this);
-
-/**
- * Used as a reference to the global object.
- *
- * The `this` value is used if it's the global object to avoid Greasemonkey's
- * restricted `window` object, otherwise the `window` object is used.
- */
-var root = freeGlobal || ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || freeSelf || thisGlobal || Function('return this')();
-
-export default root;

+ 0 - 18
packages/ckeditor5-engine/src/lib/lodash/internal/setToArray.js

@@ -1,18 +0,0 @@
-/**
- * Converts `set` to an array.
- *
- * @private
- * @param {Object} set The set to convert.
- * @returns {Array} Returns the converted array.
- */
-function setToArray(set) {
-  var index = -1,
-      result = Array(set.size);
-
-  set.forEach(function(value) {
-    result[++index] = value;
-  });
-  return result;
-}
-
-export default setToArray;

+ 0 - 12
packages/ckeditor5-engine/src/lib/lodash/internal/stackClear.js

@@ -1,12 +0,0 @@
-/**
- * Removes all key-value entries from the stack.
- *
- * @private
- * @name clear
- * @memberOf Stack
- */
-function stackClear() {
-  this.__data__ = { 'array': [], 'map': null };
-}
-
-export default stackClear;

+ 0 - 19
packages/ckeditor5-engine/src/lib/lodash/internal/stackDelete.js

@@ -1,19 +0,0 @@
-import assocDelete from './assocDelete';
-
-/**
- * Removes `key` and its value from the stack.
- *
- * @private
- * @name delete
- * @memberOf Stack
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
-function stackDelete(key) {
-  var data = this.__data__,
-      array = data.array;
-
-  return array ? assocDelete(array, key) : data.map['delete'](key);
-}
-
-export default stackDelete;

+ 0 - 19
packages/ckeditor5-engine/src/lib/lodash/internal/stackGet.js

@@ -1,19 +0,0 @@
-import assocGet from './assocGet';
-
-/**
- * Gets the stack value for `key`.
- *
- * @private
- * @name get
- * @memberOf Stack
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
-function stackGet(key) {
-  var data = this.__data__,
-      array = data.array;
-
-  return array ? assocGet(array, key) : data.map.get(key);
-}
-
-export default stackGet;

+ 0 - 19
packages/ckeditor5-engine/src/lib/lodash/internal/stackHas.js

@@ -1,19 +0,0 @@
-import assocHas from './assocHas';
-
-/**
- * Checks if a stack value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf Stack
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
-function stackHas(key) {
-  var data = this.__data__,
-      array = data.array;
-
-  return array ? assocHas(array, key) : data.map.has(key);
-}
-
-export default stackHas;

+ 0 - 36
packages/ckeditor5-engine/src/lib/lodash/internal/stackSet.js

@@ -1,36 +0,0 @@
-import MapCache from './MapCache';
-import assocSet from './assocSet';
-
-/** Used as the size to enable large array optimizations. */
-var LARGE_ARRAY_SIZE = 200;
-
-/**
- * Sets the stack `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf Stack
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the stack cache object.
- */
-function stackSet(key, value) {
-  var data = this.__data__,
-      array = data.array;
-
-  if (array) {
-    if (array.length < (LARGE_ARRAY_SIZE - 1)) {
-      assocSet(array, key, value);
-    } else {
-      data.array = null;
-      data.map = new MapCache(array);
-    }
-  }
-  var map = data.map;
-  if (map) {
-    map.set(key, value);
-  }
-  return this;
-}
-
-export default stackSet;

+ 0 - 43
packages/ckeditor5-engine/src/lib/lodash/isArguments.js

@@ -1,43 +0,0 @@
-import isArrayLikeObject from './isArrayLikeObject';
-
-/** `Object#toString` result references. */
-var argsTag = '[object Arguments]';
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
- * of values.
- */
-var objectToString = objectProto.toString;
-
-/** Built-in value references. */
-var propertyIsEnumerable = objectProto.propertyIsEnumerable;
-
-/**
- * Checks if `value` is likely an `arguments` object.
- *
- * @static
- * @memberOf _
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
- * @example
- *
- * _.isArguments(function() { return arguments; }());
- * // => true
- *
- * _.isArguments([1, 2, 3]);
- * // => false
- */
-function isArguments(value) {
-  // Safari 8.1 incorrectly makes `arguments.callee` enumerable in strict mode.
-  return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&
-    (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);
-}
-
-export default isArguments;

+ 0 - 35
packages/ckeditor5-engine/src/lib/lodash/isArray.js

@@ -1,35 +0,0 @@
-/**
- * lodash 4.0.1 (Custom Build) <https://lodash.com/>
- * Build: `lodash modularize exports="es" include="clone,extend,isPlainObject,isObject,isArray,last,isEqual" --development --output src/lib/lodash`
- * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- * Available under MIT license <https://lodash.com/license>
- */
-
-/**
- * Checks if `value` is classified as an `Array` object.
- *
- * @static
- * @memberOf _
- * @type Function
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
- * @example
- *
- * _.isArray([1, 2, 3]);
- * // => true
- *
- * _.isArray(document.body.children);
- * // => false
- *
- * _.isArray('abc');
- * // => false
- *
- * _.isArray(_.noop);
- * // => false
- */
-var isArray = Array.isArray;
-
-export default isArray;

+ 0 - 35
packages/ckeditor5-engine/src/lib/lodash/isArrayLike.js

@@ -1,35 +0,0 @@
-import getLength from './internal/getLength';
-import isFunction from './isFunction';
-import isLength from './isLength';
-
-/**
- * Checks if `value` is array-like. A value is considered array-like if it's
- * not a function and has a `value.length` that's an integer greater than or
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
- *
- * @static
- * @memberOf _
- * @type Function
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
- * @example
- *
- * _.isArrayLike([1, 2, 3]);
- * // => true
- *
- * _.isArrayLike(document.body.children);
- * // => true
- *
- * _.isArrayLike('abc');
- * // => true
- *
- * _.isArrayLike(_.noop);
- * // => false
- */
-function isArrayLike(value) {
-  return value != null &&
-    !(typeof value == 'function' && isFunction(value)) && isLength(getLength(value));
-}
-
-export default isArrayLike;

+ 0 - 32
packages/ckeditor5-engine/src/lib/lodash/isArrayLikeObject.js

@@ -1,32 +0,0 @@
-import isArrayLike from './isArrayLike';
-import isObjectLike from './isObjectLike';
-
-/**
- * This method is like `_.isArrayLike` except that it also checks if `value`
- * is an object.
- *
- * @static
- * @memberOf _
- * @type Function
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array-like object, else `false`.
- * @example
- *
- * _.isArrayLikeObject([1, 2, 3]);
- * // => true
- *
- * _.isArrayLikeObject(document.body.children);
- * // => true
- *
- * _.isArrayLikeObject('abc');
- * // => false
- *
- * _.isArrayLikeObject(_.noop);
- * // => false
- */
-function isArrayLikeObject(value) {
-  return isObjectLike(value) && isArrayLike(value);
-}
-
-export default isArrayLikeObject;

+ 0 - 0
packages/ckeditor5-engine/src/lib/lodash/isEqual.js


部分文件因为文件数量过多而无法显示