From 1243b5f5afb7ae9dda057defa31fdc3c4c894b22 Mon Sep 17 00:00:00 2001
From: Amir Tocker
Date: Tue, 2 Apr 2019 17:38:28 +0300
Subject: [PATCH 1/4] Version 2.6.3
---
cloudinary-jquery.js | 404 +--
cloudinary-jquery.js.map | 1 +
cloudinary-jquery.min.js | 2 +-
docs/ClientHintsMetaTag.html | 1302 +--------
docs/Cloudinary.html | 3931 +-------------------------
docs/CloudinaryJQuery.html | 4177 +---------------------------
docs/Condition.html | 718 +----
docs/Configuration.html | 844 +-----
docs/Expression.html | 2237 +--------------
docs/FetchLayer.html | 111 +-
docs/HtmlTag.html | 1217 +--------
docs/ImageTag.html | 1302 +--------
docs/Layer.html | 296 +-
docs/SourceTag.html | 399 +++
docs/SubtitlesLayer.html | 4 +-
docs/TextLayer.html | 111 +-
docs/Transformation.html | 225 +-
docs/TransformationBase.html | 4 +-
docs/Util.html | 5006 ----------------------------------
docs/VideoTag.html | 1785 +-----------
docs/classes.list.html | 13 +-
docs/global.html | 243 +-
docs/index.html | 41 +-
docs/jQuery.html | 4 +-
docs/module-utils-Util.html | 288 ++
package.json | 2 +-
26 files changed, 1398 insertions(+), 23269 deletions(-)
create mode 100644 cloudinary-jquery.js.map
create mode 100644 docs/SourceTag.html
delete mode 100644 docs/Util.html
create mode 100644 docs/module-utils-Util.html
diff --git a/cloudinary-jquery.js b/cloudinary-jquery.js
index 9312700..45b8b91 100644
--- a/cloudinary-jquery.js
+++ b/cloudinary-jquery.js
@@ -334,11 +334,11 @@ function () {
key: "image",
value: function image(publicId) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var client_hints, img, ref, ref1;
+ var client_hints, img, ref;
img = this.imageTag(publicId, options);
- client_hints = (ref = (ref1 = options.client_hints) != null ? ref1 : this.config('client_hints')) != null ? ref : false;
+ client_hints = (ref = options.client_hints != null ? options.client_hints : this.config('client_hints')) != null ? ref : false;
- if (!(options.src != null || client_hints)) {
+ if (options.src == null && !client_hints) {
// src must be removed before creating the DOM element to avoid loading the image
img.setAttr("src", '');
}
@@ -640,10 +640,9 @@ function () {
}, {
key: "device_pixel_ratio",
- value: function device_pixel_ratio() {
- var roundDpr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
- var dpr, dprString;
- dpr = (typeof window !== "undefined" && window !== null ? window.devicePixelRatio : void 0) || 1;
+ value: function device_pixel_ratio(roundDpr) {
+ roundDpr = roundDpr == null ? true : roundDpr;
+ var dpr = (typeof window !== "undefined" && window !== null ? window.devicePixelRatio : void 0) || 1;
if (roundDpr) {
dpr = Math.ceil(dpr);
@@ -653,7 +652,7 @@ function () {
dpr = 1;
}
- dprString = dpr.toString();
+ var dprString = dpr.toString();
if (dprString.match(/^\d+$/)) {
dprString += '.0';
@@ -670,47 +669,30 @@ function () {
}, {
key: "processImageTags",
- value: function processImageTags(nodes) {
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var images, imgOptions, node, publicId;
-
+ value: function processImageTags(nodes, options) {
if (Object(_util__WEBPACK_IMPORTED_MODULE_9__["isEmpty"])(nodes)) {
// similar to `$.fn.cloudinary`
return this;
}
- options = Object(_util__WEBPACK_IMPORTED_MODULE_9__["defaults"])({}, options, this.config());
-
- images = function () {
- var j, len, ref, results;
- results = [];
-
- for (j = 0, len = nodes.length; j < len; j++) {
- node = nodes[j];
-
- if (!(((ref = node.tagName) != null ? ref.toUpperCase() : void 0) === 'IMG')) {
- continue;
- }
-
- imgOptions = Object(_util__WEBPACK_IMPORTED_MODULE_9__["assign"])({
- width: node.getAttribute('width'),
- height: node.getAttribute('height'),
- src: node.getAttribute('src')
- }, options);
- publicId = imgOptions['source'] || imgOptions['src'];
- delete imgOptions['source'];
- delete imgOptions['src'];
- _url = this.url(publicId, imgOptions);
- imgOptions = new _transformation__WEBPACK_IMPORTED_MODULE_5__["default"](imgOptions).toHtmlAttributes();
- Object(_util__WEBPACK_IMPORTED_MODULE_9__["setData"])(node, 'src-cache', _url);
- node.setAttribute('width', imgOptions.width);
- node.setAttribute('height', imgOptions.height);
- results.push(node);
- }
-
- return results;
- }.call(this);
-
+ options = Object(_util__WEBPACK_IMPORTED_MODULE_9__["defaults"])({}, options || {}, this.config());
+ var images = nodes.filter(function (node) {
+ return /^img$/i.test(node.tagName);
+ }).map(function (node) {
+ var imgOptions = Object(_util__WEBPACK_IMPORTED_MODULE_9__["assign"])({
+ width: node.getAttribute('width'),
+ height: node.getAttribute('height'),
+ src: node.getAttribute('src')
+ }, options);
+ var publicId = imgOptions['source'] || imgOptions['src'];
+ delete imgOptions['source'];
+ delete imgOptions['src'];
+ var attr = new _transformation__WEBPACK_IMPORTED_MODULE_5__["default"](imgOptions).toHtmlAttributes();
+ Object(_util__WEBPACK_IMPORTED_MODULE_9__["setData"])(node, 'src-cache', Object(_url__WEBPACK_IMPORTED_MODULE_6__["default"])(publicId, imgOptions));
+ node.setAttribute('width', attr.width);
+ node.setAttribute('height', attr.height);
+ return node;
+ });
this.cloudinary_update(images, options);
return this;
}
@@ -731,15 +713,20 @@ function () {
}, {
key: "cloudinary_update",
- value: function cloudinary_update(elements) {
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var containerWidth, dataSrc, j, len, match, ref, ref1, ref2, ref3, ref4, ref5, requiredWidth, responsive, responsiveClass, roundDpr, setUrl, tag;
+ value: function cloudinary_update(elements, options) {
+ var _this2 = this;
+
+ var containerWidth, dataSrc, match, ref4, requiredWidth;
if (elements === null) {
return this;
}
- responsive = (ref = (ref1 = options.responsive) != null ? ref1 : this.config('responsive')) != null ? ref : false;
+ if (options == null) {
+ options = {};
+ }
+
+ var responsive = options.responsive != null ? options.responsive : this.config('responsive');
elements = function () {
switch (false) {
@@ -757,61 +744,64 @@ function () {
}
}();
- responsiveClass = (ref2 = (ref3 = this.responsiveConfig['responsive_class']) != null ? ref3 : options['responsive_class']) != null ? ref2 : this.config('responsive_class');
- roundDpr = (ref4 = options['round_dpr']) != null ? ref4 : this.config('round_dpr');
-
- for (j = 0, len = elements.length; j < len; j++) {
- tag = elements[j];
+ var responsiveClass;
- if (!((ref5 = tag.tagName) != null ? ref5.match(/img/i) : void 0)) {
- continue;
- }
+ if (this.responsiveConfig && this.responsiveConfig.responsive_class != null) {
+ responsiveClass = this.responsiveConfig.responsive_class;
+ } else if (options.responsive_class != null) {
+ responsiveClass = options.responsive_class;
+ } else {
+ responsiveClass = this.config('responsive_class');
+ }
- setUrl = true;
+ var roundDpr = options.round_dpr != null ? options.round_dpr : this.config('round_dpr');
+ elements.forEach(function (tag) {
+ if (/img/i.test(tag.tagName)) {
+ var setUrl = true;
- if (responsive) {
- Object(_util__WEBPACK_IMPORTED_MODULE_9__["addClass"])(tag, responsiveClass);
- }
+ if (responsive) {
+ Object(_util__WEBPACK_IMPORTED_MODULE_9__["addClass"])(tag, responsiveClass);
+ }
- dataSrc = Object(_util__WEBPACK_IMPORTED_MODULE_9__["getData"])(tag, 'src-cache') || Object(_util__WEBPACK_IMPORTED_MODULE_9__["getData"])(tag, 'src');
+ dataSrc = Object(_util__WEBPACK_IMPORTED_MODULE_9__["getData"])(tag, 'src-cache') || Object(_util__WEBPACK_IMPORTED_MODULE_9__["getData"])(tag, 'src');
- if (!Object(_util__WEBPACK_IMPORTED_MODULE_9__["isEmpty"])(dataSrc)) {
- // Update dpr according to the device's devicePixelRatio
- dataSrc = updateDpr.call(this, dataSrc, roundDpr);
+ if (!Object(_util__WEBPACK_IMPORTED_MODULE_9__["isEmpty"])(dataSrc)) {
+ // Update dpr according to the device's devicePixelRatio
+ dataSrc = updateDpr.call(_this2, dataSrc, roundDpr);
- if (_tags_htmltag__WEBPACK_IMPORTED_MODULE_1__["default"].isResponsive(tag, responsiveClass)) {
- containerWidth = findContainerWidth(tag);
+ if (_tags_htmltag__WEBPACK_IMPORTED_MODULE_1__["default"].isResponsive(tag, responsiveClass)) {
+ containerWidth = findContainerWidth(tag);
- if (containerWidth !== 0) {
- switch (false) {
- case !/w_auto:breakpoints/.test(dataSrc):
- requiredWidth = maxWidth(containerWidth, tag);
- dataSrc = dataSrc.replace(/w_auto:breakpoints([_0-9]*)(:[0-9]+)?/, "w_auto:breakpoints$1:".concat(requiredWidth));
- break;
+ if (containerWidth !== 0) {
+ switch (false) {
+ case !/w_auto:breakpoints/.test(dataSrc):
+ requiredWidth = maxWidth(containerWidth, tag);
+ dataSrc = dataSrc.replace(/w_auto:breakpoints([_0-9]*)(:[0-9]+)?/, "w_auto:breakpoints$1:".concat(requiredWidth));
+ break;
- case !(match = /w_auto(:(\d+))?/.exec(dataSrc)):
- requiredWidth = applyBreakpoints.call(this, tag, containerWidth, match[2], options);
- requiredWidth = maxWidth(requiredWidth, tag);
- dataSrc = dataSrc.replace(/w_auto[^,\/]*/g, "w_".concat(requiredWidth));
- }
+ case !(match = /w_auto(:(\d+))?/.exec(dataSrc)):
+ requiredWidth = applyBreakpoints.call(_this2, tag, containerWidth, match[2], options);
+ requiredWidth = maxWidth(requiredWidth, tag);
+ dataSrc = dataSrc.replace(/w_auto[^,\/]*/g, "w_".concat(requiredWidth));
+ }
- Object(_util__WEBPACK_IMPORTED_MODULE_9__["removeAttribute"])(tag, 'width');
+ Object(_util__WEBPACK_IMPORTED_MODULE_9__["removeAttribute"])(tag, 'width');
- if (!options.responsive_preserve_height) {
- Object(_util__WEBPACK_IMPORTED_MODULE_9__["removeAttribute"])(tag, 'height');
+ if (!options.responsive_preserve_height) {
+ Object(_util__WEBPACK_IMPORTED_MODULE_9__["removeAttribute"])(tag, 'height');
+ }
+ } else {
+ // Container doesn't know the size yet - usually because the image is hidden or outside the DOM.
+ setUrl = false;
}
- } else {
- // Container doesn't know the size yet - usually because the image is hidden or outside the DOM.
- setUrl = false;
}
- }
- if (setUrl) {
- Object(_util__WEBPACK_IMPORTED_MODULE_9__["setAttribute"])(tag, 'src', dataSrc);
+ if (setUrl) {
+ Object(_util__WEBPACK_IMPORTED_MODULE_9__["setAttribute"])(tag, 'src', dataSrc);
+ }
}
}
- }
-
+ });
return this;
}
/**
@@ -836,7 +826,7 @@ function () {
return Cloudinary;
}();
-Object.assign(Cloudinary, _constants__WEBPACK_IMPORTED_MODULE_8__);
+Object(_util__WEBPACK_IMPORTED_MODULE_9__["assign"])(Cloudinary, _constants__WEBPACK_IMPORTED_MODULE_8__);
/* harmony default export */ __webpack_exports__["default"] = (Cloudinary);
/***/ }),
@@ -1019,8 +1009,7 @@ jQuery.fn.cloudinary = function (options) {
*/
-jQuery.fn.cloudinary_update = function () {
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
+jQuery.fn.cloudinary_update = function (options) {
jQuery.cloudinary.cloudinary_update(this.filter('img').toArray(), options);
return this;
};
@@ -1235,12 +1224,10 @@ function () {
* @constructor Configuration
* @param {Object} options - configuration parameters
*/
- function Configuration() {
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
-
+ function Configuration(options) {
_classCallCheck(this, Configuration);
- this.configuration = Object(_util__WEBPACK_IMPORTED_MODULE_0__["cloneDeep"])(options);
+ this.configuration = options == null ? {} : Object(_util__WEBPACK_IMPORTED_MODULE_0__["cloneDeep"])(options);
Object(_util__WEBPACK_IMPORTED_MODULE_0__["defaults"])(this.configuration, DEFAULT_CONFIGURATION_PARAMS);
}
/**
@@ -1289,8 +1276,7 @@ function () {
}
}, {
key: "merge",
- value: function merge() {
- var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
+ value: function merge(config) {
Object(_util__WEBPACK_IMPORTED_MODULE_0__["assign"])(this.configuration, Object(_util__WEBPACK_IMPORTED_MODULE_0__["cloneDeep"])(config));
return this;
}
@@ -2671,10 +2657,10 @@ function () {
}
}, {
key: "build_array",
- value: function build_array() {
- var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
-
- if (Object(_util__WEBPACK_IMPORTED_MODULE_2__["isArray"])(arg)) {
+ value: function build_array(arg) {
+ if (arg == null) {
+ return [];
+ } else if (Object(_util__WEBPACK_IMPORTED_MODULE_2__["isArray"])(arg)) {
return arg;
} else {
return [arg];
@@ -3179,7 +3165,7 @@ function () {
results = [];
for (key in attrs) {
- value = attrs[key];
+ value = escapeQuotes(attrs[key]);
if (value) {
results.push(toAttribute(key, value));
@@ -3389,6 +3375,16 @@ function toAttribute(key, value) {
return "".concat(key, "=\"").concat(value, "\"");
}
}
+/**
+ * If given value is a string, replaces quotes with character entities (", ')
+ * @param value - value to change
+ * @returns {*} changed value
+ */
+
+
+function escapeQuotes(value) {
+ return Object(_util__WEBPACK_IMPORTED_MODULE_0__["isString"])(value) ? value.replace('"', '"').replace("'", ''') : value;
+}
/* harmony default export */ __webpack_exports__["default"] = (HtmlTag);
@@ -3989,9 +3985,7 @@ function () {
* Members of this class are documented as belonging to the {@link Transformation} class for convenience.
* @class TransformationBase
*/
- function TransformationBase() {
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
-
+ function TransformationBase(options) {
_classCallCheck(this, TransformationBase);
/** @private */
@@ -4006,9 +4000,13 @@ function () {
* @return {Object} Returns a plain object representing this transformation
*/
- this.toOptions = function () {
- var withChain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
+ this.toOptions = function (withChain) {
var opt = {};
+
+ if (withChain == null) {
+ withChain = true;
+ }
+
Object.keys(trans).forEach(function (key) {
return opt[key] = trans[key].origValue;
});
@@ -4254,11 +4252,7 @@ function () {
this.otherOptions = {};
this.chained = [];
-
- if (!Object(_util__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(options)) {
- // Finished constructing the instance, now process the options
- this.fromOptions(options);
- }
+ this.fromOptions(options);
}
/**
* Merge the provided options with own's options
@@ -4270,39 +4264,39 @@ function () {
_createClass(TransformationBase, [{
key: "fromOptions",
value: function fromOptions(options) {
- var key, opt;
+ if (!Object(_util__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(options)) {
+ if (options instanceof TransformationBase) {
+ this.fromTransformation(options);
+ } else {
+ options || (options = {});
- if (options instanceof TransformationBase) {
- this.fromTransformation(options);
- } else {
- options || (options = {});
+ if (Object(_util__WEBPACK_IMPORTED_MODULE_3__["isString"])(options) || Object(_util__WEBPACK_IMPORTED_MODULE_3__["isArray"])(options)) {
+ options = {
+ transformation: options
+ };
+ }
- if (Object(_util__WEBPACK_IMPORTED_MODULE_3__["isString"])(options) || Object(_util__WEBPACK_IMPORTED_MODULE_3__["isArray"])(options)) {
- options = {
- transformation: options
- };
- }
+ options = Object(_util__WEBPACK_IMPORTED_MODULE_3__["cloneDeep"])(options, function (value) {
+ if (value instanceof TransformationBase) {
+ return new value.constructor(value.toOptions());
+ }
+ }); // Handling of "if" statements precedes other options as it creates a chained transformation
- options = Object(_util__WEBPACK_IMPORTED_MODULE_3__["cloneDeep"])(options, function (value) {
- if (value instanceof TransformationBase) {
- return new value.constructor(value.toOptions());
+ if (options["if"]) {
+ this.set("if", options["if"]);
+ delete options["if"];
}
- }); // Handling of "if" statements precedes other options as it creates a chained transformation
- if (options["if"]) {
- this.set("if", options["if"]);
- delete options["if"];
- }
-
- for (key in options) {
- opt = options[key];
+ for (var key in options) {
+ var opt = options[key];
- if (key.match(VAR_NAME_RE)) {
- if (key !== '$attr') {
- this.set('variable', key, opt);
+ if (key.match(VAR_NAME_RE)) {
+ if (key !== '$attr') {
+ this.set('variable', key, opt);
+ }
+ } else {
+ this.set(key, opt);
}
- } else {
- this.set(key, opt);
}
}
}
@@ -4592,9 +4586,7 @@ function (_TransformationBase) {
*
* t = new cloudinary.Transformation( {angle: 20, crop: "scale", width: "auto"});
*/
- function Transformation() {
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
-
+ function Transformation(options) {
_classCallCheck(this, Transformation);
return _possibleConstructorReturn(this, _getPrototypeOf(Transformation).call(this, options));
@@ -4885,7 +4877,7 @@ function (_TransformationBase) {
}, {
key: "radius",
value: function radius(value) {
- return this.param(value, "radius", "r", _expression__WEBPACK_IMPORTED_MODULE_0__["default"].normalize);
+ return this.arrayParam(value, "radius", "r", ":", _expression__WEBPACK_IMPORTED_MODULE_0__["default"].normalize);
}
}, {
key: "rawTransformation",
@@ -5124,7 +5116,9 @@ function finalizeResourceType() {
var urlSuffix = arguments.length > 2 ? arguments[2] : undefined;
var useRootPath = arguments.length > 3 ? arguments[3] : undefined;
var shorten = arguments.length > 4 ? arguments[4] : undefined;
- var key, options;
+ var options;
+ resourceType = resourceType == null ? "image" : resourceType;
+ type = type == null ? "upload" : type;
if (Object(_util__WEBPACK_IMPORTED_MODULE_2__["isPlainObject"])(resourceType)) {
options = resourceType;
@@ -5144,16 +5138,7 @@ function finalizeResourceType() {
type = null;
if (resourceType == null) {
- throw new Error("URL Suffix only supported for ".concat(function () {
- var results;
- results = [];
-
- for (key in _constants__WEBPACK_IMPORTED_MODULE_1__["SEO_TYPES"]) {
- results.push(key);
- }
-
- return results;
- }().join(', ')));
+ throw new Error("URL Suffix only supported for ".concat(Object.keys(_constants__WEBPACK_IMPORTED_MODULE_1__["SEO_TYPES"]).join(', ')));
}
}
@@ -5358,23 +5343,22 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extractUrlParams", function() { return extractUrlParams; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "patchFetchFormat", function() { return patchFetchFormat; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "optionConsume", function() { return optionConsume; });
-/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./src/util/jquery.js");
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEmpty", function() { return isEmpty; });
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
/*
* Includes common utility methods and shims
*/
-
-
/**
* Return true if all items in list are strings
* @function Util.allString
* @param {Array} list - an array of items
*/
-
var allStrings = function allStrings(list) {
- return list.length && list.every(_util__WEBPACK_IMPORTED_MODULE_0__["isString"]);
+ return list.length && list.every(function (value) {
+ return typeof value === 'string';
+ });
};
/**
* Creates a new array without the given item.
@@ -5543,16 +5527,25 @@ var snakeCase = function snakeCase(source) {
});
return words.join('_');
};
-var convertKeys = function convertKeys(source) {
- var converter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _util__WEBPACK_IMPORTED_MODULE_0__["identity"];
- var key, result, value;
+/**
+ * Creates a new object from source, with the keys transformed using the converter.
+ * @param {object} source
+ * @param {function|null} converter
+ * @returns {object}
+ */
+
+var convertKeys = function convertKeys(source, converter) {
+ var result, value;
result = {};
- for (key in source) {
+ for (var key in source) {
value = source[key];
- key = converter(key);
- if (!Object(_util__WEBPACK_IMPORTED_MODULE_0__["isEmpty"])(key)) {
+ if (converter) {
+ key = converter(key);
+ }
+
+ if (!isEmpty(key)) {
result[key] = value;
}
}
@@ -5634,8 +5627,10 @@ function extractUrlParams(options) {
* @param options url and transformation options. This argument may be changed by the function!
*/
-function patchFetchFormat() {
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
+function patchFetchFormat(options) {
+ if (options == null) {
+ options = {};
+ }
if (options.type === "fetch") {
if (options.fetch_format == null) {
@@ -5661,6 +5656,43 @@ function optionConsume(options, option_name, default_value) {
return default_value;
}
}
+/**
+ * Returns true if value is empty:
+ *
+ * value is null or undefined
+ * value is an array or string of length 0
+ * value is an object with no keys
+ *
+ * @function Util.isEmpty
+ * @param value
+ * @returns {boolean} true if value is empty
+ */
+
+function isEmpty(value) {
+ if (value == null) {
+ return true;
+ }
+
+ if (typeof value.length == "number") {
+ return value.length === 0;
+ }
+
+ if (typeof value.size == "number") {
+ return value.size === 0;
+ }
+
+ if (_typeof(value) == "object") {
+ for (var key in value) {
+ if (value.hasOwnProperty(key)) {
+ return false;
+ }
+ }
+
+ return true;
+ }
+
+ return true;
+}
/***/ }),
@@ -5772,7 +5804,6 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasClass", function() { return hasClass; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addClass", function() { return addClass; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "width", function() { return width; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEmpty", function() { return isEmpty; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isString", function() { return isString; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return merge; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "compact", function() { return compact; });
@@ -5828,6 +5859,8 @@ __webpack_require__.r(__webpack_exports__);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "optionConsume", function() { return _baseutil__WEBPACK_IMPORTED_MODULE_0__["optionConsume"]; });
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isEmpty", function() { return _baseutil__WEBPACK_IMPORTED_MODULE_0__["isEmpty"]; });
+
/**
* Includes utility methods and lodash / jQuery shims
*/
@@ -5931,21 +5964,6 @@ var addClass = function addClass(element, name) {
var width = function width(element) {
return jQuery(element).width();
};
-/**
- * Returns true if item is empty:
- *
- * item is null or undefined
- * item is an array or string of length 0
- * item is an object with no keys
- *
- * @function Util.isEmpty
- * @param item
- * @returns {boolean} true if item is empty
- */
-
-var isEmpty = function isEmpty(item) {
- return item == null || (jQuery.isArray(item) || isString(item)) && item.length === 0 || jQuery.isPlainObject(item) && jQuery.isEmptyObject(item);
-};
/**
* Returns true if item is a string
* @param item
@@ -6212,8 +6230,11 @@ function generateSrcsetAttribute(public_id, breakpoints, transformation, options
* @return {string} Resulting sizes attribute value
*/
-function generateSizesAttribute() {
- var breakpoints = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
+function generateSizesAttribute(breakpoints) {
+ if (breakpoints == null) {
+ return '';
+ }
+
return breakpoints.map(function (width) {
return "(max-width: ".concat(width, "px) ").concat(width, "px");
}).join(', ');
@@ -6279,16 +6300,17 @@ function generateImageResponsiveAttributes(publicId) {
* @return {string} a media query string
*/
-function generateMediaAttr() {
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
+function generateMediaAttr(options) {
var mediaQuery = [];
- if (options.min_width != null) {
- mediaQuery.push("(min-width: ".concat(options.min_width, "px)"));
- }
+ if (options != null) {
+ if (options.min_width != null) {
+ mediaQuery.push("(min-width: ".concat(options.min_width, "px)"));
+ }
- if (options.max_width != null) {
- mediaQuery.push("(max-width: ".concat(options.max_width, "px)"));
+ if (options.max_width != null) {
+ mediaQuery.push("(max-width: ".concat(options.max_width, "px)"));
+ }
}
return mediaQuery.join(' and ');
diff --git a/cloudinary-jquery.js.map b/cloudinary-jquery.js.map
new file mode 100644
index 0000000..d3a99ef
--- /dev/null
+++ b/cloudinary-jquery.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["webpack://cloudinary/webpack/universalModuleDefinition","webpack://cloudinary/webpack/bootstrap","webpack://cloudinary/./src/cloudinary.js","webpack://cloudinary/./src/cloudinaryjquery.js","webpack://cloudinary/./src/condition.js","webpack://cloudinary/./src/configuration.js","webpack://cloudinary/./src/constants.js","webpack://cloudinary/./src/crc32.js","webpack://cloudinary/./src/expression.js","webpack://cloudinary/./src/layer/fetchlayer.js","webpack://cloudinary/./src/layer/layer.js","webpack://cloudinary/./src/layer/subtitleslayer.js","webpack://cloudinary/./src/layer/textlayer.js","webpack://cloudinary/./src/namespace/cloudinary-jquery.js","webpack://cloudinary/./src/parameters.js","webpack://cloudinary/./src/tags/clienthintsmetatag.js","webpack://cloudinary/./src/tags/htmltag.js","webpack://cloudinary/./src/tags/imagetag.js","webpack://cloudinary/./src/tags/picturetag.js","webpack://cloudinary/./src/tags/sourcetag.js","webpack://cloudinary/./src/tags/videotag.js","webpack://cloudinary/./src/transformation.js","webpack://cloudinary/./src/url.js","webpack://cloudinary/./src/utf8_encode.js","webpack://cloudinary/./src/util/baseutil.js","webpack://cloudinary/./src/util/firstNotNull.js","webpack://cloudinary/./src/util/generateBreakpoints.js","webpack://cloudinary/./src/util/jquery.js","webpack://cloudinary/./src/util/srcsetUtils.js"],"names":["applyBreakpoints","closestAbove","defaultBreakpoints","findContainerWidth","maxWidth","updateDpr","width","steps","Math","ceil","list","value","i","length","tag","options","ref","ref1","ref2","responsive_use_breakpoints","config","resizing","calc_breakpoint","element","containerWidth","style","parentNode","Element","window","getComputedStyle","test","display","dataSrc","roundDpr","replace","device_pixel_ratio","requiredWidth","imageWidth","getData","setData","Cloudinary","configuration","devicePixelRatioCache","responsiveConfig","responsiveResizeInitialized","Configuration","newConfig","newValue","fromDocument","fromEnvironment","init","publicId","url","assign","resource_type","constants","Transformation","serialize","client_hints","img","imageTag","src","setAttr","toDOM","cloudinary_update","ImageTag","transformation","fromOptions","PictureTag","SourceTag","image","merge","type","videoTag","toHtml","defaults","VideoTag","match","format","bootstrap","responsiveClass","responsiveResize","timeout","addEventListener","debounce","ref3","ref4","reset","run","wait","waitFunc","clearTimeout","setTimeout","breakpoints","isFunction","isString","split","map","point","parseInt","sort","a","b","dpr","devicePixelRatio","dprString","toString","nodes","isEmpty","images","filter","node","tagName","imgOptions","getAttribute","height","attr","toHtmlAttributes","setAttribute","elements","responsive","isArray","constructor","name","document","querySelectorAll","responsive_class","round_dpr","forEach","setUrl","addClass","call","HtmlTag","isResponsive","exec","removeAttribute","responsive_preserve_height","new","setParent","webp","CloudinaryJQuery","firstNotNull","jQuery","data","responsive_resize","extend","on","responsive_debounce","fn","cloudinary","each","img_options","public_id","source","toArray","webpify","webp_options","that","webp_canary","Deferred","Image","onerror","reject","onload","resolve","done","fail","fetchify","Condition","conditionStr","operator","predicate","Expression","cloneDeep","DEFAULT_CONFIGURATION_PARAMS","el","len","meta_elements","cloudinary_url","query","uri","uriRegex","process","env","CLOUDINARY_URL","k","v","new_config","new_value","set","get","isPlainObject","secure","location","protocol","CONFIG_PARAMS","VERSION","CF_SHARED_CDN","OLD_AKAMAI_SHARED_CDN","AKAMAI_SHARED_CDN","SHARED_CDN","DEFAULT_POSTER_OPTIONS","DEFAULT_VIDEO_SOURCE_TYPES","SEO_TYPES","DEFAULT_IMAGE_PARAMS","DEFAULT_VIDEO_PARAMS","fallback_content","source_transformation","source_types","crc32","str","crc","iTop","table","x","y","utf8_encode","charCodeAt","substr","expressionStr","expressions","push","normalize","join","parent","OPERATORS","getParent","if","expression","operators","pattern","replaceRE","String","Object","keys","PREDEFINED_VARS","RegExp","BOUNDRY","FetchLayer","base64EncodeURL","Layer","key","snakeCase","resourceType","getPublicId","components","getFullPublicId","compact","SubtitlesLayer","TextLayer","fontFamily","fontSize","fontWeight","fontStyle","textDecoration","textAlign","stroke","letterSpacing","lineSpacing","text","hasPublicId","hasStyle","re","res","start","textSource","textStyleIdentifier","smartEscape","slice","index","isNumberLike","unshift","ClientHintsMetaTag","Util","Param","shortName","identity","origValue","val","valid","arg","param","video","ArrayParam","sep","arrayValue","flat","t","TransformationParam","allStrings","joined","undefined","origValue1","RangeParam","norm_range_value","modifier","offset","offset_any_pattern","RawParam","LAYER_KEYWORD_PARAMS","LayerParam","result","layerOptions","withCamelCaseKeys","layer","ExpressionParam","content","attrs","pairs","results","escapeQuotes","toAttribute","toOptions","getValue","htmlAttributes","attributes","remove","htmlAttrs","openTag","closeTag","createElement","hasClass","srcAttribute","getOptions","srcsetParam","getOption","responsiveAttributes","srcset","generateImageResponsiveAttributes","sources","widthList","min_width","max_width","sourceTransformation","chain","raw_transformation","extractUrlParams","media","generateMediaAttr","VIDEO_TAG_PARAMS","sourceTypes","poster","fallbackContent","fallback","innerTags","srcType","videoType","defaultOptions","contains","assignNotNull","target","TransformationBase","trans","withChain","opt","otherOptions","chained","tr","object","abbr","defaultValue","rawParam","lastArgCallback","arguments","rangeParam","arrayParam","transformationParam","layerParam","temp","VAR_NAME_RE","toPlainObject","hash","names","getOwnPropertyNames","resetTransformations","fromTransformation","other","camelKey","camelCase","values","methods","apply","ifParam","j","paramList","resultArray","transformationList","transformationString","transformations","variables","vars","processVar","difference","concat","len1","param_separator","trans_separator","attrName","PARAM_NAMES","hasLayer","parseFloat","indexOf","prototype","args","callback","varArray","norm_color","border","color","fps","ifVal","trIf","trRest","end_o","start_o","startOffset","endOffset","process_video_params","absolutize","prefix","host","pathname","cdnSubdomainNumber","cloudinaryUrlPrefix","cdnPart","path","subdomain","cloud_name","private_cdn","cdn_subdomain","secure_cdn_subdomain","secure_distribution","cname","finalizeResourceType","urlSuffix","useRootPath","shorten","url_suffix","use_root_path","Error","error","resourceTypeAndType","version","fetch_format","search","encodeURIComponent","decodeURIComponent","error1","trust_public_id","argString","c1","enc","end","n","string","stringl","utftext","fromCharCode","every","without","array","item","isNaN","unsafe","c","toUpperCase","destination","reduce","dest","objectProto","objToString","isObject","funcTag","reWords","lower","upper","words","word","charAt","toLocaleUpperCase","toLocaleLowerCase","convertKeys","converter","withSnakeCaseKeys","base64Encode","btoa","Buffer","input","from","decodeURI","encodeURI","URL_KEYS","obj","patchFetchFormat","optionConsume","option_name","default_value","size","hasOwnProperty","next","shift","generateBreakpoints","max_images","Number","some","stepSize","max","current","removeAttr","setAttributes","arr","makeArray","functions","trim","utils","scaledUrl","configParams","crop","getOrGenerateBreakpoints","generateSrcsetAttribute","generateSizesAttribute","srcsetData","generateSizes","sizes","generateSrcset","srcsetAttr","sizesAttr","mediaQuery","srcsetUrl"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kDAA0C,gCAAgC;AAC1E;AACA;;AAEA;AACA;AACA;AACA,gEAAwD,kBAAkB;AAC1E;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA;AACA;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AAO,IAAI,IAAf,EAAqB;AACnB,QAAIA,OAAO,CAAC4T,SAAR,IAAqB,IAAzB,EAA+B;AAC7BoM,gBAAU,CAAClT,IAAX,uBAA+B9M,OAAO,CAAC4T,SAAvC;AACD;;AACD,QAAI5T,OAAO,CAAC6T,SAAR,IAAqB,IAAzB,EAA+B;AAC7BmM,gBAAU,CAAClT,IAAX,uBAA+B9M,OAAO,CAAC6T,SAAvC;AACD;AACF;;AACD,SAAOmM,UAAU,CAAChT,IAAX,CAAgB,OAAhB,CAAP;AACD;AAEM,IAAMiT,SAAS,GAAGb,SAAlB,C","file":"./cloudinary-jquery.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"cloudinary\"] = factory();\n\telse\n\t\troot[\"cloudinary\"] = factory();\n})(this, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/namespace/cloudinary-jquery.js\");\n","var applyBreakpoints, closestAbove, defaultBreakpoints, findContainerWidth, maxWidth, updateDpr;\n\nimport Configuration from './configuration';\nimport HtmlTag from './tags/htmltag';\nimport ImageTag from './tags/imagetag';\nimport PictureTag from './tags/picturetag';\nimport SourceTag from './tags/sourcetag';\nimport Transformation from './transformation';\nimport url from './url';\nimport VideoTag from './tags/videotag';\nimport * as constants from './constants';\n\nimport {\n addClass,\n assign,\n defaults,\n getData,\n isArray,\n isEmpty,\n isFunction,\n isString,\n merge,\n removeAttribute,\n setAttribute,\n setData,\n width\n} from './util';\n\ndefaultBreakpoints = function(width, steps = 100) {\n return steps * Math.ceil(width / steps);\n};\n\nclosestAbove = function(list, value) {\n var i;\n i = list.length - 2;\n while (i >= 0 && list[i] >= value) {\n i--;\n }\n return list[i + 1];\n};\n\napplyBreakpoints = function(tag, width, steps, options) {\n var ref, ref1, ref2, responsive_use_breakpoints;\n responsive_use_breakpoints = (ref = (ref1 = (ref2 = options['responsive_use_breakpoints']) != null ? ref2 : options['responsive_use_stoppoints']) != null ? ref1 : this.config('responsive_use_breakpoints')) != null ? ref : this.config('responsive_use_stoppoints');\n if ((!responsive_use_breakpoints) || (responsive_use_breakpoints === 'resize' && !options.resizing)) {\n return width;\n } else {\n return this.calc_breakpoint(tag, width, steps);\n }\n};\n\nfindContainerWidth = function(element) {\n var containerWidth, style;\n containerWidth = 0;\n while (((element = element != null ? element.parentNode : void 0) instanceof Element) && !containerWidth) {\n style = window.getComputedStyle(element);\n if (!/^inline/.test(style.display)) {\n containerWidth = width(element);\n }\n }\n return containerWidth;\n};\n\nupdateDpr = function(dataSrc, roundDpr) {\n return dataSrc.replace(/\\bdpr_(1\\.0|auto)\\b/g, 'dpr_' + this.device_pixel_ratio(roundDpr));\n};\n\nmaxWidth = function(requiredWidth, tag) {\n var imageWidth;\n imageWidth = getData(tag, 'width') || 0;\n if (requiredWidth > imageWidth) {\n imageWidth = requiredWidth;\n setData(tag, 'width', requiredWidth);\n }\n return imageWidth;\n};\n\nvar Cloudinary = class Cloudinary {\n /**\n * Main Cloudinary class\n * @class Cloudinary\n * @param {Object} options - options to configure Cloudinary\n * @see Configuration for more details\n * @example\n * var cl = new cloudinary.Cloudinary( { cloud_name: \"mycloud\"});\n * var imgTag = cl.image(\"myPicID\");\n */\n constructor(options) {\n var configuration;\n this.devicePixelRatioCache = {};\n this.responsiveConfig = {};\n this.responsiveResizeInitialized = false;\n configuration = new Configuration(options);\n // Provided for backward compatibility\n this.config = function(newConfig, newValue) {\n return configuration.config(newConfig, newValue);\n };\n /**\n * Use \\ tags in the document to configure this Cloudinary instance.\n * @return {Cloudinary} this for chaining\n */\n this.fromDocument = function() {\n configuration.fromDocument();\n return this;\n };\n /**\n * Use environment variables to configure this Cloudinary instance.\n * @return {Cloudinary} this for chaining\n */\n this.fromEnvironment = function() {\n configuration.fromEnvironment();\n return this;\n };\n /**\n * Initialize configuration.\n * @function Cloudinary#init\n * @see Configuration#init\n * @return {Cloudinary} this for chaining\n */\n this.init = function() {\n configuration.init();\n return this;\n };\n }\n\n /**\n * Convenience constructor\n * @param {Object} options\n * @return {Cloudinary}\n * @example cl = cloudinary.Cloudinary.new( { cloud_name: \"mycloud\"})\n */\n static new(options) {\n return new this(options);\n }\n\n /**\n * Generate an resource URL.\n * @function Cloudinary#url\n * @param {string} publicId - the public ID of the resource\n * @param {Object} [options] - options for the tag and transformations, possible values include all {@link Transformation} parameters\n * and {@link Configuration} parameters\n * @param {string} [options.type='upload'] - the classification of the resource\n * @param {Object} [options.resource_type='image'] - the type of the resource\n * @return {string} The resource URL\n */\n url(publicId, options = {}) {\n return url(publicId, options, this.config());\n }\n\n /**\n * Generate an video resource URL.\n * @function Cloudinary#video_url\n * @param {string} publicId - the public ID of the resource\n * @param {Object} [options] - options for the tag and transformations, possible values include all {@link Transformation} parameters\n * and {@link Configuration} parameters\n * @param {string} [options.type='upload'] - the classification of the resource\n * @return {string} The video URL\n */\n video_url(publicId, options) {\n options = assign({\n resource_type: 'video'\n }, options);\n return this.url(publicId, options);\n }\n\n /**\n * Generate an video thumbnail URL.\n * @function Cloudinary#video_thumbnail_url\n * @param {string} publicId - the public ID of the resource\n * @param {Object} [options] - options for the tag and transformations, possible values include all {@link Transformation} parameters\n * and {@link Configuration} parameters\n * @param {string} [options.type='upload'] - the classification of the resource\n * @return {string} The video thumbnail URL\n */\n video_thumbnail_url(publicId, options) {\n options = assign({}, constants.DEFAULT_POSTER_OPTIONS, options);\n return this.url(publicId, options);\n }\n\n /**\n * Generate a string representation of the provided transformation options.\n * @function Cloudinary#transformation_string\n * @param {Object} options - the transformation options\n * @returns {string} The transformation string\n */\n transformation_string(options) {\n return new Transformation(options).serialize();\n }\n\n /**\n * Generate an image tag.\n * @function Cloudinary#image\n * @param {string} publicId - the public ID of the image\n * @param {Object} [options] - options for the tag and transformations\n * @return {HTMLImageElement} an image tag element\n */\n image(publicId, options = {}) {\n var client_hints, img, ref;\n img = this.imageTag(publicId, options);\n client_hints = (ref = options.client_hints != null ? options.client_hints : this.config('client_hints')) != null ? ref : false;\n if (options.src == null && !client_hints) {\n // src must be removed before creating the DOM element to avoid loading the image\n img.setAttr(\"src\", '');\n }\n img = img.toDOM();\n if (!client_hints) {\n // cache the image src\n setData(img, 'src-cache', this.url(publicId, options));\n // set image src taking responsiveness in account\n this.cloudinary_update(img, options);\n }\n return img;\n }\n\n /**\n * Creates a new ImageTag instance, configured using this own's configuration.\n * @function Cloudinary#imageTag\n * @param {string} publicId - the public ID of the resource\n * @param {Object} options - additional options to pass to the new ImageTag instance\n * @return {ImageTag} An ImageTag that is attached (chained) to this Cloudinary instance\n */\n imageTag(publicId, options) {\n var tag;\n tag = new ImageTag(publicId, this.config());\n tag.transformation().fromOptions(options);\n return tag;\n }\n\n /**\n * Creates a new PictureTag instance, configured using this own's configuration.\n * @function Cloudinary#PictureTag\n * @param {string} publicId - the public ID of the resource\n * @param {Object} options - additional options to pass to the new ImageTag instance\n * @return {PictureTag} An PictureTag that is attached (chained) to this Cloudinary instance\n */\n pictureTag(publicId, options) {\n var tag;\n tag = new PictureTag(publicId, this.config());\n tag.transformation().fromOptions(options);\n return tag;\n }\n\n /**\n * Creates a new SourceTag instance, configured using this own's configuration.\n * @function Cloudinary#SourceTag\n * @param {string} publicId - the public ID of the resource\n * @param {Object} options - additional options to pass to the new ImageTag instance\n * @return {SourceTag} An PictureTag that is attached (chained) to this Cloudinary instance\n */\n sourceTag(publicId, options) {\n var tag;\n tag = new SourceTag(publicId, this.config());\n tag.transformation().fromOptions(options);\n return tag;\n }\n\n /**\n * Generate an image tag for the video thumbnail.\n * @function Cloudinary#video_thumbnail\n * @param {string} publicId - the public ID of the video\n * @param {Object} [options] - options for the tag and transformations\n * @return {HTMLImageElement} An image tag element\n */\n video_thumbnail(publicId, options) {\n return this.image(publicId, merge({}, constants.DEFAULT_POSTER_OPTIONS, options));\n }\n\n /**\n * @function Cloudinary#facebook_profile_image\n * @param {string} publicId - the public ID of the image\n * @param {Object} [options] - options for the tag and transformations\n * @return {HTMLImageElement} an image tag element\n */\n facebook_profile_image(publicId, options) {\n return this.image(publicId, assign({\n type: 'facebook'\n }, options));\n }\n\n /**\n * @function Cloudinary#twitter_profile_image\n * @param {string} publicId - the public ID of the image\n * @param {Object} [options] - options for the tag and transformations\n * @return {HTMLImageElement} an image tag element\n */\n twitter_profile_image(publicId, options) {\n return this.image(publicId, assign({\n type: 'twitter'\n }, options));\n }\n\n /**\n * @function Cloudinary#twitter_name_profile_image\n * @param {string} publicId - the public ID of the image\n * @param {Object} [options] - options for the tag and transformations\n * @return {HTMLImageElement} an image tag element\n */\n twitter_name_profile_image(publicId, options) {\n return this.image(publicId, assign({\n type: 'twitter_name'\n }, options));\n }\n\n /**\n * @function Cloudinary#gravatar_image\n * @param {string} publicId - the public ID of the image\n * @param {Object} [options] - options for the tag and transformations\n * @return {HTMLImageElement} an image tag element\n */\n gravatar_image(publicId, options) {\n return this.image(publicId, assign({\n type: 'gravatar'\n }, options));\n }\n\n /**\n * @function Cloudinary#fetch_image\n * @param {string} publicId - the public ID of the image\n * @param {Object} [options] - options for the tag and transformations\n * @return {HTMLImageElement} an image tag element\n */\n fetch_image(publicId, options) {\n return this.image(publicId, assign({\n type: 'fetch'\n }, options));\n }\n\n /**\n * @function Cloudinary#video\n * @param {string} publicId - the public ID of the image\n * @param {Object} [options] - options for the tag and transformations\n * @return {HTMLImageElement} an image tag element\n */\n video(publicId, options = {}) {\n return this.videoTag(publicId, options).toHtml();\n }\n\n /**\n * Creates a new VideoTag instance, configured using this own's configuration.\n * @function Cloudinary#videoTag\n * @param {string} publicId - the public ID of the resource\n * @param {Object} options - additional options to pass to the new VideoTag instance\n * @return {VideoTag} A VideoTag that is attached (chained) to this Cloudinary instance\n */\n videoTag(publicId, options) {\n options = defaults({}, options, this.config());\n return new VideoTag(publicId, options);\n }\n\n /**\n * Generate the URL of the sprite image\n * @function Cloudinary#sprite_css\n * @param {string} publicId - the public ID of the resource\n * @param {Object} [options] - options for the tag and transformations\n * @see {@link http://cloudinary.com/documentation/sprite_generation Sprite generation}\n */\n sprite_css(publicId, options) {\n options = assign({\n type: 'sprite'\n }, options);\n if (!publicId.match(/.css$/)) {\n options.format = 'css';\n }\n return this.url(publicId, options);\n }\n\n /**\n * Initialize the responsive behaviour. \n * Calls {@link Cloudinary#cloudinary_update} to modify image tags.\n * @function Cloudinary#responsive\n * @param {Object} options\n * @param {String} [options.responsive_class='cld-responsive'] - provide an alternative class used to locate img tags\n * @param {number} [options.responsive_debounce=100] - the debounce interval in milliseconds.\n * @param {boolean} [bootstrap=true] if true processes the img tags by calling cloudinary_update. When false the tags will be processed only after a resize event.\n * @see {@link Cloudinary#cloudinary_update} for additional configuration parameters\n */\n responsive(options, bootstrap = true) {\n var ref, ref1, ref2, responsiveClass, responsiveResize, timeout;\n this.responsiveConfig = merge(this.responsiveConfig || {}, options);\n responsiveClass = (ref = this.responsiveConfig['responsive_class']) != null ? ref : this.config('responsive_class');\n if (bootstrap) {\n this.cloudinary_update(`img.${responsiveClass}, img.cld-hidpi`, this.responsiveConfig);\n }\n responsiveResize = (ref1 = (ref2 = this.responsiveConfig['responsive_resize']) != null ? ref2 : this.config('responsive_resize')) != null ? ref1 : true;\n if (responsiveResize && !this.responsiveResizeInitialized) {\n this.responsiveConfig.resizing = this.responsiveResizeInitialized = true;\n timeout = null;\n return window.addEventListener('resize', () => {\n var debounce, ref3, ref4, reset, run, wait, waitFunc;\n debounce = (ref3 = (ref4 = this.responsiveConfig['responsive_debounce']) != null ? ref4 : this.config('responsive_debounce')) != null ? ref3 : 100;\n reset = function() {\n if (timeout) {\n clearTimeout(timeout);\n return timeout = null;\n }\n };\n run = () => {\n return this.cloudinary_update(`img.${responsiveClass}`, this.responsiveConfig);\n };\n waitFunc = function() {\n reset();\n return run();\n };\n wait = function() {\n reset();\n return timeout = setTimeout(waitFunc, debounce);\n };\n if (debounce) {\n return wait();\n } else {\n return run();\n }\n });\n }\n }\n\n /**\n * @function Cloudinary#calc_breakpoint\n * @private\n * @ignore\n */\n calc_breakpoint(element, width, steps) {\n let breakpoints = getData(element, 'breakpoints') || getData(element, 'stoppoints') || this.config('breakpoints') || this.config('stoppoints') || defaultBreakpoints;\n if (isFunction(breakpoints)) {\n return breakpoints(width, steps);\n } else {\n if (isString(breakpoints)) {\n breakpoints = breakpoints.split(',').map(point=>parseInt(point)).sort((a, b) => a - b);\n }\n return closestAbove(breakpoints, width);\n }\n }\n\n /**\n * @function Cloudinary#calc_stoppoint\n * @deprecated Use {@link calc_breakpoint} instead.\n * @private\n * @ignore\n */\n calc_stoppoint(element, width, steps) {\n return this.calc_breakpoint(element, width, steps);\n }\n\n /**\n * @function Cloudinary#device_pixel_ratio\n * @private\n */\n device_pixel_ratio(roundDpr) {\n roundDpr = roundDpr == null ? true : roundDpr;\n let dpr = (typeof window !== \"undefined\" && window !== null ? window.devicePixelRatio : void 0) || 1;\n if (roundDpr) {\n dpr = Math.ceil(dpr);\n }\n if (dpr <= 0 || dpr === (0/0)) {\n dpr = 1;\n }\n let dprString = dpr.toString();\n if (dprString.match(/^\\d+$/)) {\n dprString += '.0';\n }\n return dprString;\n }\n\n /**\n * Finds all `img` tags under each node and sets it up to provide the image through Cloudinary\n * @param {Element[]} nodes the parent nodes to search for img under\n * @param {Object} [options={}] options and transformations params\n * @function Cloudinary#processImageTags\n */\n processImageTags(nodes, options) {\n if (isEmpty(nodes)) {\n // similar to `$.fn.cloudinary`\n return this;\n }\n options = defaults({}, options || {}, this.config());\n let images = nodes\n .filter(node=>/^img$/i.test(node.tagName))\n .map(function(node){\n let imgOptions = assign({\n width: node.getAttribute('width'),\n height: node.getAttribute('height'),\n src: node.getAttribute('src')\n }, options);\n let publicId = imgOptions['source'] || imgOptions['src'];\n delete imgOptions['source'];\n delete imgOptions['src'];\n let attr = new Transformation(imgOptions).toHtmlAttributes();\n setData(node, 'src-cache', url(publicId, imgOptions));\n node.setAttribute('width', attr.width);\n node.setAttribute('height', attr.height);\n return node;\n });\n this.cloudinary_update(images, options);\n return this;\n }\n\n /**\n * Update hidpi (dpr_auto) and responsive (w_auto) fields according to the current container size and the device pixel ratio.\n * Only images marked with the cld-responsive class have w_auto updated.\n * @function Cloudinary#cloudinary_update\n * @param {(Array|string|NodeList)} elements - the elements to modify\n * @param {Object} options\n * @param {boolean|string} [options.responsive_use_breakpoints=true]\n * - when `true`, always use breakpoints for width\n * - when `\"resize\"` use exact width on first render and breakpoints on resize\n * - when `false` always use exact width\n * @param {boolean} [options.responsive] - if `true`, enable responsive on this element. Can be done by adding cld-responsive.\n * @param {boolean} [options.responsive_preserve_height] - if set to true, original css height is preserved.\n * Should only be used if the transformation supports different aspect ratios.\n */\n cloudinary_update(elements, options) {\n var containerWidth, dataSrc, match, ref4, requiredWidth;\n if (elements === null) {\n return this;\n }\n if(options == null) {\n options = {};\n }\n const responsive = options.responsive != null ? options.responsive : this.config('responsive');\n elements = (function() {\n switch (false) {\n case !isArray(elements):\n return elements;\n case elements.constructor.name !== \"NodeList\":\n return elements;\n case !isString(elements):\n return document.querySelectorAll(elements);\n default:\n return [elements];\n }\n })();\n let responsiveClass;\n if (this.responsiveConfig && this.responsiveConfig.responsive_class != null) {\n responsiveClass = this.responsiveConfig.responsive_class;\n } else if (options.responsive_class != null) {\n responsiveClass = options.responsive_class;\n } else {\n responsiveClass = this.config('responsive_class');\n }\n\n let roundDpr = options.round_dpr != null ? options.round_dpr : this.config('round_dpr');\n elements.forEach(tag => {\n if (/img/i.test(tag.tagName)) {\n let setUrl = true;\n if (responsive) {\n addClass(tag, responsiveClass);\n }\n dataSrc = getData(tag, 'src-cache') || getData(tag, 'src');\n if (!isEmpty(dataSrc)) {\n // Update dpr according to the device's devicePixelRatio\n dataSrc = updateDpr.call(this, dataSrc, roundDpr);\n if (HtmlTag.isResponsive(tag, responsiveClass)) {\n containerWidth = findContainerWidth(tag);\n if (containerWidth !== 0) {\n switch (false) {\n case !/w_auto:breakpoints/.test(dataSrc):\n requiredWidth = maxWidth(containerWidth, tag);\n dataSrc = dataSrc.replace(/w_auto:breakpoints([_0-9]*)(:[0-9]+)?/, `w_auto:breakpoints$1:${requiredWidth}`);\n break;\n case !(match = /w_auto(:(\\d+))?/.exec(dataSrc)):\n requiredWidth = applyBreakpoints.call(this, tag, containerWidth, match[2], options);\n requiredWidth = maxWidth(requiredWidth, tag);\n dataSrc = dataSrc.replace(/w_auto[^,\\/]*/g, `w_${requiredWidth}`);\n }\n removeAttribute(tag, 'width');\n if (!options.responsive_preserve_height) {\n removeAttribute(tag, 'height');\n }\n } else {\n // Container doesn't know the size yet - usually because the image is hidden or outside the DOM.\n setUrl = false;\n }\n }\n if (setUrl) {\n setAttribute(tag, 'src', dataSrc);\n }\n }\n }\n });\n return this;\n }\n\n /**\n * Provide a transformation object, initialized with own's options, for chaining purposes.\n * @function Cloudinary#transformation\n * @param {Object} options\n * @return {Transformation}\n */\n transformation(options) {\n return Transformation.new(this.config()).fromOptions(options).setParent(this);\n }\n\n};\nassign(Cloudinary, constants);\nexport default Cloudinary;\n","/**\n * Cloudinary jQuery plugin\n * Depends on 'jquery', 'util', 'transformation', 'cloudinary'\n */\nvar webp;\n\nimport Cloudinary from './cloudinary';\nimport Transformation from './transformation'\nimport firstNotNull from './util/firstNotNull'\n\nconst CloudinaryJQuery = class CloudinaryJQuery extends Cloudinary {\n /**\n * Cloudinary class with jQuery support\n * @constructor CloudinaryJQuery\n * @extends Cloudinary\n */\n constructor(options) {\n super(options);\n }\n\n /**\n * @override\n */\n image(publicId, options = {}) {\n var client_hints, img;\n img = this.imageTag(publicId, options);\n client_hints = firstNotNull(options.client_hints, this.config('client_hints'), false);\n if (!((options.src != null) || client_hints)) {\n // generate a tag without the image src\n img.setAttr(\"src\", '');\n }\n img = jQuery(img.toHtml());\n if (!client_hints) {\n // cache the image src\n // set image src taking responsiveness in account\n img.data('src-cache', this.url(publicId, options)).cloudinary_update(options);\n }\n return img;\n }\n\n /**\n * @override\n */\n responsive(options) {\n var responsiveClass, responsiveConfig, responsiveResizeInitialized, responsive_resize, timeout;\n responsiveConfig = jQuery.extend(responsiveConfig || {}, options);\n responsiveClass = this.responsiveConfig['responsive_class'] || this.config('responsive_class');\n jQuery(`img.${responsiveClass}, img.cld-hidpi`).cloudinary_update(responsiveConfig);\n responsive_resize = firstNotNull(responsiveConfig['responsive_resize'], this.config('responsive_resize'), true);\n if (responsive_resize && !responsiveResizeInitialized) {\n responsiveConfig.resizing = responsiveResizeInitialized = true;\n timeout = null;\n return jQuery(window).on('resize', () => {\n const debounce = firstNotNull(responsiveConfig.responsive_debounce, this.config('responsive_debounce'), 100);\n let reset = function() {\n if (timeout) {\n clearTimeout(timeout);\n return timeout = null;\n }\n };\n let run = function() {\n return jQuery(`img.${responsiveClass}`).cloudinary_update(responsiveConfig);\n };\n let wait = function() {\n reset();\n return setTimeout((function() {\n reset();\n return run();\n }), debounce);\n };\n if (debounce) {\n return wait();\n } else {\n return run();\n }\n });\n }\n }\n\n};\n\n/**\n * The following methods are provided through the jQuery class\n * @class jQuery\n */\n/**\n * Convert all img tags in the collection to utilize Cloudinary.\n * @function jQuery#cloudinary\n * @param {Object} [options] - options for the tag and transformations\n * @returns {jQuery}\n */\njQuery.fn.cloudinary = function(options) {\n this.filter('img').each(function() {\n var img_options, public_id, url;\n img_options = jQuery.extend({\n width: jQuery(this).attr('width'),\n height: jQuery(this).attr('height'),\n src: jQuery(this).attr('src')\n }, jQuery(this).data(), options);\n public_id = img_options.source || img_options.src;\n delete img_options.source;\n delete img_options.src;\n url = jQuery.cloudinary.url(public_id, img_options);\n img_options = new Transformation(img_options).toHtmlAttributes();\n return jQuery(this).data('src-cache', url).attr({\n width: img_options.width,\n height: img_options.height\n });\n }).cloudinary_update(options);\n return this;\n};\n\n/**\n * Update hidpi (dpr_auto) and responsive (w_auto) fields according to the current container size and the device pixel ratio.\n * Only images marked with the cld-responsive class have w_auto updated.\n * options:\n * - responsive_use_stoppoints:\n * - true - always use stoppoints for width\n * - \"resize\" - use exact width on first render and stoppoints on resize (default)\n * - false - always use exact width\n * - responsive:\n * - true - enable responsive on this element. Can be done by adding cld-responsive.\n * Note that jQuery.cloudinary.responsive() should be called once on the page.\n * - responsive_preserve_height: if set to true, original css height is perserved. Should only be used if the transformation supports different aspect ratios.\n */\njQuery.fn.cloudinary_update = function(options) {\n jQuery.cloudinary.cloudinary_update(this.filter('img').toArray(), options);\n return this;\n};\n\nwebp = null;\n\n/**\n * @function jQuery#webpify\n */\njQuery.fn.webpify = function(options = {}, webp_options) {\n var that, webp_canary;\n that = this;\n webp_options = webp_options != null ? webp_options : options;\n if (!webp) {\n webp = jQuery.Deferred();\n webp_canary = new Image;\n webp_canary.onerror = webp.reject;\n webp_canary.onload = webp.resolve;\n webp_canary.src = 'data:image/webp;base64,UklGRi4AAABXRUJQVlA4TCEAAAAvAUAAEB8wAiMwAgSSNtse/cXjxyCCmrYNWPwmHRH9jwMA';\n }\n jQuery(function() {\n return webp.done(function() {\n return jQuery(that).cloudinary(jQuery.extend({}, webp_options, {\n format: 'webp'\n }));\n }).fail(function() {\n return jQuery(that).cloudinary(options);\n });\n });\n return this;\n};\n\njQuery.fn.fetchify = function(options) {\n return this.cloudinary(jQuery.extend(options, {\n 'type': 'fetch'\n }));\n};\n\njQuery.cloudinary = new CloudinaryJQuery();\n\njQuery.cloudinary.fromDocument();\n\nexport default CloudinaryJQuery;\n","import Expression from './expression';\n\nvar Condition = class Condition extends Expression {\n /**\n * Represents a transformation condition\n * @param {string} conditionStr - a condition in string format\n * @class Condition\n * @example\n * // normally this class is not instantiated directly\n * var tr = cloudinary.Transformation.new()\n * .if().width( \">\", 1000).and().aspectRatio(\"<\", \"3:4\").then()\n * .width(1000)\n * .crop(\"scale\")\n * .else()\n * .width(500)\n * .crop(\"scale\")\n *\n * var tr = cloudinary.Transformation.new()\n * .if(\"w > 1000 and aspectRatio < 3:4\")\n * .width(1000)\n * .crop(\"scale\")\n * .else()\n * .width(500)\n * .crop(\"scale\")\n *\n */\n constructor(conditionStr) {\n super(conditionStr);\n }\n\n /**\n * @function Condition#height\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Condition} this condition\n */\n height(operator, value) {\n return this.predicate(\"h\", operator, value);\n }\n\n /**\n * @function Condition#width\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Condition} this condition\n */\n width(operator, value) {\n return this.predicate(\"w\", operator, value);\n }\n\n /**\n * @function Condition#aspectRatio\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Condition} this condition\n */\n aspectRatio(operator, value) {\n return this.predicate(\"ar\", operator, value);\n }\n\n /**\n * @function Condition#pages\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Condition} this condition\n */\n pageCount(operator, value) {\n return this.predicate(\"pc\", operator, value);\n }\n\n /**\n * @function Condition#faces\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Condition} this condition\n */\n faceCount(operator, value) {\n return this.predicate(\"fc\", operator, value);\n }\n\n};\n\nexport default Condition;\n","/**\n * Cloudinary configuration class\n * Depends on 'utils'\n */\n\nimport {\n defaults,\n assign,\n isString,\n isPlainObject,\n cloneDeep\n} from './util';\n\n/**\n * Defaults configuration.\n */\nvar Configuration = class Configuration {\n /**\n * Cloudinary configuration class\n * @constructor Configuration\n * @param {Object} options - configuration parameters\n */\n constructor(options) {\n this.configuration = options == null ? {} : cloneDeep(options);\n defaults(this.configuration, DEFAULT_CONFIGURATION_PARAMS);\n }\n\n /**\n * Initialize the configuration.\n * The function first tries to retrieve the configuration form the environment and then from the document.\n * @function Configuration#init\n * @return {Configuration} returns this for chaining\n * @see fromDocument\n * @see fromEnvironment\n */\n init() {\n this.fromEnvironment();\n this.fromDocument();\n return this;\n }\n\n /**\n * Set a new configuration item\n * @function Configuration#set\n * @param {string} name - the name of the item to set\n * @param {*} value - the value to be set\n * @return {Configuration}\n *\n */\n set(name, value) {\n this.configuration[name] = value;\n return this;\n }\n\n /**\n * Get the value of a configuration item\n * @function Configuration#get\n * @param {string} name - the name of the item to set\n * @return {*} the configuration item\n */\n get(name) {\n return this.configuration[name];\n }\n\n merge(config) {\n assign(this.configuration, cloneDeep(config));\n return this;\n }\n\n /**\n * Initialize Cloudinary from HTML meta tags.\n * @function Configuration#fromDocument\n * @return {Configuration}\n * @example \n *\n */\n fromDocument() {\n var el, i, len, meta_elements;\n meta_elements = typeof document !== \"undefined\" && document !== null ? document.querySelectorAll('meta[name^=\"cloudinary_\"]') : void 0;\n if (meta_elements) {\n for (i = 0, len = meta_elements.length; i < len; i++) {\n el = meta_elements[i];\n this.configuration[el.getAttribute('name').replace('cloudinary_', '')] = el.getAttribute('content');\n }\n }\n return this;\n }\n\n /**\n * Initialize Cloudinary from the `CLOUDINARY_URL` environment variable.\n *\n * This function will only run under Node.js environment.\n * @function Configuration#fromEnvironment\n * @requires Node.js\n */\n fromEnvironment() {\n var cloudinary_url, query, uri, uriRegex;\n if(typeof process !== \"undefined\" && process !== null && process.env && process.env.CLOUDINARY_URL ){\n cloudinary_url = process.env.CLOUDINARY_URL;\n uriRegex = /cloudinary:\\/\\/(?:(\\w+)(?:\\:([\\w-]+))?@)?([\\w\\.-]+)(?:\\/([^?]*))?(?:\\?(.+))?/;\n uri = uriRegex.exec(cloudinary_url);\n if (uri) {\n if (uri[3] != null) {\n this.configuration['cloud_name'] = uri[3];\n }\n if (uri[1] != null) {\n this.configuration['api_key'] = uri[1];\n }\n if (uri[2] != null) {\n this.configuration['api_secret'] = uri[2];\n }\n if (uri[4] != null) {\n this.configuration['private_cdn'] = uri[4] != null;\n }\n if (uri[4] != null) {\n this.configuration['secure_distribution'] = uri[4];\n }\n query = uri[5];\n if (query != null) {\n query.split('&').forEach(value=>{\n let [k, v] = value.split('=');\n if (v == null) {\n v = true;\n }\n this.configuration[k] = v;\n });\n }\n }\n }\n return this;\n }\n\n /**\n * Create or modify the Cloudinary client configuration\n *\n * Warning: `config()` returns the actual internal configuration object. modifying it will change the configuration.\n *\n * This is a backward compatibility method. For new code, use get(), merge() etc.\n * @function Configuration#config\n * @param {hash|string|boolean} new_config\n * @param {string} new_value\n * @returns {*} configuration, or value\n *\n * @see {@link fromEnvironment} for initialization using environment variables\n * @see {@link fromDocument} for initialization using HTML meta tags\n */\n config(new_config, new_value) {\n switch (false) {\n case new_value === void 0:\n this.set(new_config, new_value);\n return this.configuration;\n case !isString(new_config):\n return this.get(new_config);\n case !isPlainObject(new_config):\n this.merge(new_config);\n return this.configuration;\n default:\n // Backward compatibility - return the internal object\n return this.configuration;\n }\n }\n\n /**\n * Returns a copy of the configuration parameters\n * @function Configuration#toOptions\n * @returns {Object} a key:value collection of the configuration parameters\n */\n toOptions() {\n return cloneDeep(this.configuration);\n }\n\n};\n\nconst DEFAULT_CONFIGURATION_PARAMS = {\n responsive_class: 'cld-responsive',\n responsive_use_breakpoints: true,\n round_dpr: true,\n secure: (typeof window !== \"undefined\" && window !== null ? window.location ? window.location.protocol : void 0 : void 0) === 'https:'\n};\n\nConfiguration.CONFIG_PARAMS = [\n \"api_key\",\n \"api_secret\",\n \"callback\",\n \"cdn_subdomain\",\n \"cloud_name\",\n \"cname\",\n \"private_cdn\",\n \"protocol\",\n \"resource_type\",\n \"responsive\",\n \"responsive_class\",\n \"responsive_use_breakpoints\",\n \"responsive_width\",\n \"round_dpr\",\n \"secure\",\n \"secure_cdn_subdomain\",\n \"secure_distribution\",\n \"shorten\",\n \"type\",\n \"upload_preset\",\n \"url_suffix\",\n \"use_root_path\",\n \"version\"\n];\n\nexport default Configuration;\n","export var VERSION = \"2.5.0\";\n\nexport var CF_SHARED_CDN = \"d3jpl91pxevbkh.cloudfront.net\";\n\nexport var OLD_AKAMAI_SHARED_CDN = \"cloudinary-a.akamaihd.net\";\n\nexport var AKAMAI_SHARED_CDN = \"res.cloudinary.com\";\n\nexport var SHARED_CDN = AKAMAI_SHARED_CDN;\n\nexport var DEFAULT_POSTER_OPTIONS = {\n format: 'jpg',\n resource_type: 'video'\n};\n\nexport var DEFAULT_VIDEO_SOURCE_TYPES = ['webm', 'mp4', 'ogv'];\n\nexport var SEO_TYPES = {\n \"image/upload\": \"images\",\n \"image/private\": \"private_images\",\n \"image/authenticated\": \"authenticated_images\",\n \"raw/upload\": \"files\",\n \"video/upload\": \"videos\"\n};\n\n/**\n* @const {Object} Cloudinary.DEFAULT_IMAGE_PARAMS\n* Defaults values for image parameters.\n*\n* (Previously defined using option_consume() )\n */\nexport var DEFAULT_IMAGE_PARAMS = {\n resource_type: \"image\",\n transformation: [],\n type: 'upload'\n};\n\n/**\n* Defaults values for video parameters.\n* @const {Object} Cloudinary.DEFAULT_VIDEO_PARAMS\n* (Previously defined using option_consume() )\n */\nexport var DEFAULT_VIDEO_PARAMS = {\n fallback_content: '',\n resource_type: \"video\",\n source_transformation: {},\n source_types: DEFAULT_VIDEO_SOURCE_TYPES,\n transformation: [],\n type: 'upload'\n};\n","\n/**\n * CRC32 calculator\n * Depends on 'utf8_encode'\n */\nvar crc32;\n\nimport utf8_encode from './utf8_encode';\n\ncrc32 = function(str) {\n var crc, i, iTop, table, x, y;\n // http://kevin.vanzonneveld.net\n // + original by: Webtoolkit.info (http://www.webtoolkit.info/)\n // + improved by: T0bsn\n // + improved by: http://stackoverflow.com/questions/2647935/javascript-crc32-function-and-php-crc32-not-matching\n // - depends on: utf8_encode\n // * example 1: crc32('Kevin van Zonneveld');\n // * returns 1: 1249991249\n str = utf8_encode(str);\n table = '00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D';\n crc = 0;\n x = 0;\n y = 0;\n crc = crc ^ -1;\n i = 0;\n iTop = str.length;\n while (i < iTop) {\n y = (crc ^ str.charCodeAt(i)) & 0xFF;\n x = '0x' + table.substr(y * 9, 8);\n crc = crc >>> 8 ^ x;\n i++;\n }\n crc = crc ^ -1;\n //convert to unsigned 32-bit int if needed\n if (crc < 0) {\n crc += 4294967296;\n }\n return crc;\n};\n\nexport default crc32;\n","const Expression = class Expression {\n /**\n * Represents a transformation expression\n * @param {string} expressionStr - a expression in string format\n * @class Expression\n *\n */\n constructor(expressionStr) {\n /**\n * @protected\n * @inner Expression-expressions\n */\n this.expressions = [];\n if (expressionStr != null) {\n this.expressions.push(Expression.normalize(expressionStr));\n }\n }\n\n /**\n * Convenience constructor method\n * @function Expression.new\n */\n static new(expressionStr) {\n return new this(expressionStr);\n }\n\n /**\n * Normalize a string expression\n * @function Cloudinary#normalize\n * @param {string} expression a expression, e.g. \"w gt 100\", \"width_gt_100\", \"width > 100\"\n * @return {string} the normalized form of the value expression, e.g. \"w_gt_100\"\n */\n static normalize(expression) {\n var operators, pattern, replaceRE;\n if (expression == null) {\n return expression;\n }\n expression = String(expression);\n operators = \"\\\\|\\\\||>=|<=|&&|!=|>|=|<|/|-|\\\\+|\\\\*\";\n pattern = \"((\" + operators + \")(?=[ _])|\" + Object.keys(Expression.PREDEFINED_VARS).join(\"|\") + \")\";\n replaceRE = new RegExp(pattern, \"g\");\n expression = expression.replace(replaceRE, function (match) {\n return Expression.OPERATORS[match] || Expression.PREDEFINED_VARS[match];\n });\n return expression.replace(/[ _]+/g, '_');\n }\n\n /**\n * Serialize the expression\n * @return {string} the expression as a string\n */\n serialize() {\n return Expression.normalize(this.expressions.join(\"_\"));\n }\n\n toString() {\n return this.serialize();\n }\n\n /**\n * Get the parent transformation of this expression\n * @return Transformation\n */\n getParent() {\n return this.parent;\n }\n\n /**\n * Set the parent transformation of this expression\n * @param {Transformation} the parent transformation\n * @return {Expression} this expression\n */\n setParent(parent) {\n this.parent = parent;\n return this;\n }\n\n /**\n * Add a expression\n * @function Expression#predicate\n * @internal\n */\n predicate(name, operator, value) {\n if (Expression.OPERATORS[operator] != null) {\n operator = Expression.OPERATORS[operator];\n }\n this.expressions.push(`${name}_${operator}_${value}`);\n return this;\n }\n\n /**\n * @function Expression#and\n */\n and() {\n this.expressions.push(\"and\");\n return this;\n }\n\n /**\n * @function Expression#or\n */\n or() {\n this.expressions.push(\"or\");\n return this;\n }\n\n /**\n * Conclude expression\n * @function Expression#then\n * @return {Transformation} the transformation this expression is defined for\n */\n then() {\n return this.getParent().if(this.toString());\n }\n\n /**\n * @function Expression#height\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Expression} this expression\n */\n height(operator, value) {\n return this.predicate(\"h\", operator, value);\n }\n\n /**\n * @function Expression#width\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Expression} this expression\n */\n width(operator, value) {\n return this.predicate(\"w\", operator, value);\n }\n\n /**\n * @function Expression#aspectRatio\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Expression} this expression\n */\n aspectRatio(operator, value) {\n return this.predicate(\"ar\", operator, value);\n }\n\n /**\n * @function Expression#pages\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Expression} this expression\n */\n pageCount(operator, value) {\n return this.predicate(\"pc\", operator, value);\n }\n\n /**\n * @function Expression#faces\n * @param {string} operator the comparison operator (e.g. \"<\", \"lt\")\n * @param {string|number} value the right hand side value\n * @return {Expression} this expression\n */\n faceCount(operator, value) {\n return this.predicate(\"fc\", operator, value);\n }\n\n value(value) {\n this.expressions.push(value);\n return this;\n }\n\n /**\n */\n static variable(name, value) {\n return new this(name).value(value);\n }\n\n /**\n * @returns Expression a new expression with the predefined variable \"width\"\n * @function Expression.width\n */\n static width() {\n return new this(\"width\");\n }\n\n /**\n * @returns Expression a new expression with the predefined variable \"height\"\n * @function Expression.height\n */\n static height() {\n return new this(\"height\");\n }\n\n /**\n * @returns Expression a new expression with the predefined variable \"initialWidth\"\n * @function Expression.initialWidth\n */\n static initialWidth() {\n return new this(\"initialWidth\");\n }\n\n /**\n * @returns Expression a new expression with the predefined variable \"initialHeight\"\n * @function Expression.initialHeight\n */\n static initialHeight() {\n return new this(\"initialHeight\");\n }\n\n /**\n * @returns Expression a new expression with the predefined variable \"aspectRatio\"\n * @function Expression.aspectRatio\n */\n static aspectRatio() {\n return new this(\"aspectRatio\");\n }\n\n /**\n * @returns Expression a new expression with the predefined variable \"initialAspectRatio\"\n * @function Expression.initialAspectRatio\n */\n static initialAspectRatio() {\n return new this(\"initialAspectRatio\");\n }\n\n /**\n * @returns Expression a new expression with the predefined variable \"pageCount\"\n * @function Expression.pageCount\n */\n static pageCount() {\n return new this(\"pageCount\");\n }\n\n /**\n * @returns Expression new expression with the predefined variable \"faceCount\"\n * @function Expression.faceCount\n */\n static faceCount() {\n return new this(\"faceCount\");\n }\n\n /**\n * @returns Expression a new expression with the predefined variable \"currentPage\"\n * @function Expression.currentPage\n */\n static currentPage() {\n return new this(\"currentPage\");\n }\n\n /**\n * @returns Expression a new expression with the predefined variable \"tags\"\n * @function Expression.tags\n */\n static tags() {\n return new this(\"tags\");\n }\n\n /**\n * @returns Expression a new expression with the predefined variable \"pageX\"\n * @function Expression.pageX\n */\n static pageX() {\n return new this(\"pageX\");\n }\n\n /**\n * @returns Expression a new expression with the predefined variable \"pageY\"\n * @function Expression.pageY\n */\n static pageY() {\n return new this(\"pageY\");\n }\n\n};\n\n/**\n * @internal\n */\nExpression.OPERATORS = {\n \"=\": 'eq',\n \"!=\": 'ne',\n \"<\": 'lt',\n \">\": 'gt',\n \"<=\": 'lte',\n \">=\": 'gte',\n \"&&\": 'and',\n \"||\": 'or',\n \"*\": \"mul\",\n \"/\": \"div\",\n \"+\": \"add\",\n \"-\": \"sub\"\n};\n\n/**\n * @internal\n */\nExpression.PREDEFINED_VARS = {\n \"aspect_ratio\": \"ar\",\n \"aspectRatio\": \"ar\",\n \"current_page\": \"cp\",\n \"currentPage\": \"cp\",\n \"face_count\": \"fc\",\n \"faceCount\": \"fc\",\n \"height\": \"h\",\n \"initial_aspect_ratio\": \"iar\",\n \"initial_height\": \"ih\",\n \"initial_width\": \"iw\",\n \"initialAspectRatio\": \"iar\",\n \"initialHeight\": \"ih\",\n \"initialWidth\": \"iw\",\n \"page_count\": \"pc\",\n \"page_x\": \"px\",\n \"page_y\": \"py\",\n \"pageCount\": \"pc\",\n \"pageX\": \"px\",\n \"pageY\": \"py\",\n \"tags\": \"tags\",\n \"width\": \"w\"\n};\n\n/**\n * @internal\n */\nExpression.BOUNDRY = \"[ _]+\";\n\nexport default Expression;\n","import Layer from './layer';\n\nimport {\n base64EncodeURL,\n isString\n} from '../util';\n\nconst FetchLayer = class FetchLayer extends Layer {\n /**\n * @constructor FetchLayer\n * @param {Object|string} options - layer parameters or a url\n * @param {string} options.url the url of the image to fetch\n */\n constructor(options) {\n super(options);\n if (isString(options)) {\n this.options.url = options;\n } else if (options != null ? options.url : void 0) {\n this.options.url = options.url;\n }\n }\n\n url(url) {\n this.options.url = url;\n return this;\n }\n\n /**\n * generate the string representation of the layer\n * @function FetchLayer#toString\n * @return {String}\n */\n toString() {\n return `fetch:${base64EncodeURL(this.options.url)}`;\n }\n\n};\n\nexport default FetchLayer;\n","import {\n snakeCase,\n compact\n} from '../util';\n\nvar Layer = class Layer {\n /**\n * Layer\n * @constructor Layer\n * @param {Object} options - layer parameters\n */\n constructor(options) {\n this.options = {};\n if (options != null) {\n [\"resourceType\", \"type\", \"publicId\", \"format\"].forEach((key) => {\n var ref;\n return this.options[key] = (ref = options[key]) != null ? ref : options[snakeCase(key)];\n });\n }\n }\n\n resourceType(value) {\n this.options.resourceType = value;\n return this;\n }\n\n type(value) {\n this.options.type = value;\n return this;\n }\n\n publicId(value) {\n this.options.publicId = value;\n return this;\n }\n\n /**\n * Get the public ID, formatted for layer parameter\n * @function Layer#getPublicId\n * @return {String} public ID\n */\n getPublicId() {\n var ref;\n return (ref = this.options.publicId) != null ? ref.replace(/\\//g, \":\") : void 0;\n }\n\n /**\n * Get the public ID, with format if present\n * @function Layer#getFullPublicId\n * @return {String} public ID\n */\n getFullPublicId() {\n if (this.options.format != null) {\n return this.getPublicId() + \".\" + this.options.format;\n } else {\n return this.getPublicId();\n }\n }\n\n format(value) {\n this.options.format = value;\n return this;\n }\n\n /**\n * generate the string representation of the layer\n * @function Layer#toString\n */\n toString() {\n var components;\n components = [];\n if (this.options.publicId == null) {\n throw \"Must supply publicId\";\n }\n if (!(this.options.resourceType === \"image\")) {\n components.push(this.options.resourceType);\n }\n if (!(this.options.type === \"upload\")) {\n components.push(this.options.type);\n }\n components.push(this.getFullPublicId());\n return compact(components).join(\":\");\n }\n\n};\n\nexport default Layer;\n","import TextLayer from './textlayer';\n\nconst SubtitlesLayer = class SubtitlesLayer extends TextLayer {\n /**\n * Represent a subtitles layer\n * @constructor SubtitlesLayer\n * @param {Object} options - layer parameters\n */\n constructor(options) {\n super(options);\n this.options.resourceType = \"subtitles\";\n }\n\n};\nexport default SubtitlesLayer;\n","import Layer from './layer';\n\nimport {\n compact,\n isEmpty,\n isNumberLike,\n smartEscape,\n snakeCase\n} from '../util';\n\nvar TextLayer = class TextLayer extends Layer {\n /**\n * @constructor TextLayer\n * @param {Object} options - layer parameters\n */\n constructor(options) {\n var keys;\n super(options);\n keys = [\"resourceType\", \"resourceType\", \"fontFamily\", \"fontSize\", \"fontWeight\", \"fontStyle\", \"textDecoration\", \"textAlign\", \"stroke\", \"letterSpacing\", \"lineSpacing\", \"text\"];\n if (options != null) {\n keys.forEach((key) => {\n var ref;\n return this.options[key] = (ref = options[key]) != null ? ref : options[snakeCase(key)];\n });\n }\n this.options.resourceType = \"text\";\n }\n\n resourceType(resourceType) {\n throw \"Cannot modify resourceType for text layers\";\n }\n\n type(type) {\n throw \"Cannot modify type for text layers\";\n }\n\n format(format) {\n throw \"Cannot modify format for text layers\";\n }\n\n fontFamily(fontFamily) {\n this.options.fontFamily = fontFamily;\n return this;\n }\n\n fontSize(fontSize) {\n this.options.fontSize = fontSize;\n return this;\n }\n\n fontWeight(fontWeight) {\n this.options.fontWeight = fontWeight;\n return this;\n }\n\n fontStyle(fontStyle) {\n this.options.fontStyle = fontStyle;\n return this;\n }\n\n textDecoration(textDecoration) {\n this.options.textDecoration = textDecoration;\n return this;\n }\n\n textAlign(textAlign) {\n this.options.textAlign = textAlign;\n return this;\n }\n\n stroke(stroke) {\n this.options.stroke = stroke;\n return this;\n }\n\n letterSpacing(letterSpacing) {\n this.options.letterSpacing = letterSpacing;\n return this;\n }\n\n lineSpacing(lineSpacing) {\n this.options.lineSpacing = lineSpacing;\n return this;\n }\n\n text(text) {\n this.options.text = text;\n return this;\n }\n\n /**\n * generate the string representation of the layer\n * @function TextLayer#toString\n * @return {String}\n */\n toString() {\n var components, hasPublicId, hasStyle, publicId, re, res, start, style, text, textSource;\n style = this.textStyleIdentifier();\n if (this.options.publicId != null) {\n publicId = this.getFullPublicId();\n }\n if (this.options.text != null) {\n hasPublicId = !isEmpty(publicId);\n hasStyle = !isEmpty(style);\n if (hasPublicId && hasStyle || !hasPublicId && !hasStyle) {\n throw \"Must supply either style parameters or a public_id when providing text parameter in a text overlay/underlay, but not both!\";\n }\n re = /\\$\\([a-zA-Z]\\w*\\)/g;\n start = 0;\n // textSource = text.replace(new RegExp(\"[,/]\", 'g'), (c)-> \"%#{c.charCodeAt(0).toString(16).toUpperCase()}\")\n textSource = smartEscape(this.options.text, /[,\\/]/g);\n text = \"\";\n while (res = re.exec(textSource)) {\n text += smartEscape(textSource.slice(start, res.index));\n text += res[0];\n start = res.index + res[0].length;\n }\n text += smartEscape(textSource.slice(start));\n }\n components = [this.options.resourceType, style, publicId, text];\n return compact(components).join(\":\");\n }\n\n textStyleIdentifier() {\n var components;\n components = [];\n if (this.options.fontWeight !== \"normal\") {\n components.push(this.options.fontWeight);\n }\n if (this.options.fontStyle !== \"normal\") {\n components.push(this.options.fontStyle);\n }\n if (this.options.textDecoration !== \"none\") {\n components.push(this.options.textDecoration);\n }\n components.push(this.options.textAlign);\n if (this.options.stroke !== \"none\") {\n components.push(this.options.stroke);\n }\n if (!(isEmpty(this.options.letterSpacing) && !isNumberLike(this.options.letterSpacing))) {\n components.push(\"letter_spacing_\" + this.options.letterSpacing);\n }\n if (!(isEmpty(this.options.lineSpacing) && !isNumberLike(this.options.lineSpacing))) {\n components.push(\"line_spacing_\" + this.options.lineSpacing);\n }\n if (!isEmpty(compact(components))) {\n if (isEmpty(this.options.fontFamily)) {\n throw `Must supply fontFamily. ${components}`;\n }\n if (isEmpty(this.options.fontSize) && !isNumberLike(this.options.fontSize)) {\n throw \"Must supply fontSize.\";\n }\n }\n components.unshift(this.options.fontFamily, this.options.fontSize);\n components = compact(components).join(\"_\");\n return components;\n }\n\n};\n\nexport default TextLayer;\n"," /**\n * Creates the namespace for Cloudinary\n */\nimport utf8_encode from '../utf8_encode';\nimport crc32 from '../crc32';\nimport * as Util from '../util';\nimport Transformation from '../transformation';\nimport Condition from '../condition';\nimport Configuration from '../configuration';\nimport HtmlTag from '../tags/htmltag';\nimport ImageTag from '../tags/imagetag';\nimport PictureTag from '../tags/picturetag';\nimport VideoTag from '../tags/videotag';\nimport ClientHintsMetaTag from '../tags/clienthintsmetatag';\nimport Layer from '../layer/layer';\nimport FetchLayer from '../layer/fetchlayer';\nimport TextLayer from '../layer/textlayer';\nimport SubtitlesLayer from '../layer/subtitleslayer';\nimport Cloudinary from '../cloudinary';\nimport CloudinaryJQuery from '../cloudinaryjquery';\n\nexport default {\n ClientHintsMetaTag,\n Cloudinary,\n CloudinaryJQuery,\n Condition,\n Configuration,\n crc32,\n FetchLayer,\n HtmlTag,\n ImageTag,\n Layer,\n PictureTag,\n SubtitlesLayer,\n TextLayer,\n Transformation,\n utf8_encode,\n Util,\n VideoTag\n};\n\nexport {\n ClientHintsMetaTag,\n Cloudinary,\n CloudinaryJQuery,\n Condition,\n Configuration,\n crc32,\n FetchLayer,\n HtmlTag,\n ImageTag,\n Layer,\n PictureTag,\n SubtitlesLayer,\n TextLayer,\n Transformation,\n utf8_encode,\n Util,\n VideoTag\n};\n","import Expression from './expression';\nimport Transformation from \"./transformation\";\n\nimport {\n allStrings,\n identity,\n isArray,\n isEmpty,\n isFunction,\n isPlainObject,\n isString,\n withCamelCaseKeys\n} from './util';\n\nimport Layer from './layer/layer';\n\nimport TextLayer from './layer/textlayer';\n\nimport SubtitlesLayer from './layer/subtitleslayer';\n\nimport FetchLayer from './layer/fetchlayer';\n\n/**\n * Transformation parameters\n * Depends on 'util', 'transformation'\n */\nvar Param = class Param {\n /**\n * Represents a single parameter\n * @class Param\n * @param {string} name - The name of the parameter in snake_case\n * @param {string} shortName - The name of the serialized form of the parameter.\n * If a value is not provided, the parameter will not be serialized.\n * @param {function} [process=Util.identity ] - Manipulate origValue when value is called\n * @ignore\n */\n constructor(name, shortName, process = identity) {\n /**\n * The name of the parameter in snake_case\n * @member {string} Param#name\n */\n this.name = name;\n /**\n * The name of the serialized form of the parameter\n * @member {string} Param#shortName\n */\n this.shortName = shortName;\n /**\n * Manipulate origValue when value is called\n * @member {function} Param#process\n */\n this.process = process;\n }\n\n /**\n * Set a (unprocessed) value for this parameter\n * @function Param#set\n * @param {*} origValue - the value of the parameter\n * @return {Param} self for chaining\n */\n set(origValue) {\n this.origValue = origValue;\n return this;\n }\n\n /**\n * Generate the serialized form of the parameter\n * @function Param#serialize\n * @return {string} the serialized form of the parameter\n */\n serialize() {\n var val, valid;\n val = this.value();\n valid = isArray(val) || isPlainObject(val) || isString(val) ? !isEmpty(val) : val != null;\n if ((this.shortName != null) && valid) {\n return `${this.shortName}_${val}`;\n } else {\n return '';\n }\n }\n\n /**\n * Return the processed value of the parameter\n * @function Param#value\n */\n value() {\n return this.process(this.origValue);\n }\n\n static norm_color(value) {\n return value != null ? value.replace(/^#/, 'rgb:') : void 0;\n }\n\n build_array(arg) {\n if(arg == null) {\n return [];\n } else if (isArray(arg)) {\n return arg;\n } else {\n return [arg];\n }\n }\n\n /**\n * Covert value to video codec string.\n *\n * If the parameter is an object,\n * @param {(string|Object)} param - the video codec as either a String or a Hash\n * @return {string} the video codec string in the format codec:profile:level\n * @example\n * vc_[ :profile : [level]]\n * or\n { codec: 'h264', profile: 'basic', level: '3.1' }\n * @ignore\n */\n static process_video_params(param) {\n var video;\n switch (param.constructor) {\n case Object:\n video = \"\";\n if ('codec' in param) {\n video = param['codec'];\n if ('profile' in param) {\n video += \":\" + param['profile'];\n if ('level' in param) {\n video += \":\" + param['level'];\n }\n }\n }\n return video;\n case String:\n return param;\n default:\n return null;\n }\n }\n\n};\n\nvar ArrayParam = class ArrayParam extends Param {\n /**\n * A parameter that represents an array\n * @param {string} name - The name of the parameter in snake_case\n * @param {string} shortName - The name of the serialized form of the parameter\n * If a value is not provided, the parameter will not be serialized.\n * @param {string} [sep='.'] - The separator to use when joining the array elements together\n * @param {function} [process=Util.identity ] - Manipulate origValue when value is called\n * @class ArrayParam\n * @extends Param\n * @ignore\n */\n constructor(name, shortName, sep = '.', process) {\n super(name, shortName, process);\n this.sep = sep;\n }\n\n serialize() {\n if (this.shortName != null) {\n let arrayValue = this.value();\n if (isEmpty(arrayValue)) {\n return '';\n } else if (isString(arrayValue)) {\n return `${this.shortName}_${arrayValue}`;\n } else {\n let flat = arrayValue.map(t=>isFunction(t.serialize) ? t.serialize() : t).join(this.sep);\n return `${this.shortName}_${flat}`;\n }\n } else {\n return '';\n }\n }\n\n value() {\n if (isArray(this.origValue)) {\n return this.origValue.map(v=>this.process(v));\n } else {\n return this.process(this.origValue);\n }\n }\n\n set(origValue) {\n if ((origValue == null) || isArray(origValue)) {\n return super.set(origValue);\n } else {\n return super.set([origValue]);\n }\n }\n\n};\n\nvar TransformationParam = class TransformationParam extends Param {\n /**\n * A parameter that represents a transformation\n * @param {string} name - The name of the parameter in snake_case\n * @param {string} [shortName='t'] - The name of the serialized form of the parameter\n * @param {string} [sep='.'] - The separator to use when joining the array elements together\n * @param {function} [process=Util.identity ] - Manipulate origValue when value is called\n * @class TransformationParam\n * @extends Param\n * @ignore\n */\n constructor(name, shortName = \"t\", sep = '.', process) {\n super(name, shortName, process);\n this.sep = sep;\n }\n\n serialize() {\n if (isEmpty(this.value())) {\n return '';\n } else if (allStrings(this.value())) {\n let joined = this.value().join(this.sep);\n if (!isEmpty(joined)) {\n return `${this.shortName}_${joined}`;\n } else {\n return '';\n }\n } else {\n return this.value().map(t=>{\n if (isString(t) && !isEmpty(t)) {\n return `${this.shortName}_${t}`;\n } else if (isFunction(t.serialize)) {\n return t.serialize();\n } else if (isPlainObject(t) && !isEmpty(t)) {\n return new Transformation(t).serialize();\n } else {\n return undefined;\n }\n }).filter(t=>t);\n }\n }\n\n set(origValue1) {\n this.origValue = origValue1;\n if (isArray(this.origValue)) {\n return super.set(this.origValue);\n } else {\n return super.set([this.origValue]);\n }\n }\n\n};\n\nvar RangeParam = class RangeParam extends Param {\n /**\n * A parameter that represents a range\n * @param {string} name - The name of the parameter in snake_case\n * @param {string} shortName - The name of the serialized form of the parameter\n * If a value is not provided, the parameter will not be serialized.\n * @param {function} [process=norm_range_value ] - Manipulate origValue when value is called\n * @class RangeParam\n * @extends Param\n * @ignore\n */\n constructor(name, shortName, process) {\n super(name, shortName, process);\n this.process || (this.process = this.norm_range_value);\n }\n\n static norm_range_value(value) {\n var modifier, offset;\n offset = String(value).match(new RegExp('^' + offset_any_pattern + '$'));\n if (offset) {\n modifier = offset[5] != null ? 'p' : '';\n value = (offset[1] || offset[4]) + modifier;\n }\n return value;\n }\n\n};\n\nvar RawParam = class RawParam extends Param {\n constructor(name, shortName, process = identity) {\n super(name, shortName, process);\n }\n\n serialize() {\n return this.value();\n }\n\n};\n\nconst LAYER_KEYWORD_PARAMS = [\n [\"font_weight\", \"normal\"],\n [\"font_style\", \"normal\"],\n [\"text_decoration\", \"none\"],\n [\"text_align\", null],\n [\"stroke\", \"none\"],\n [\"letter_spacing\", null],\n [\"line_spacing\", null]\n];\n\nclass LayerParam extends Param {\n // Parse layer options\n // @return [string] layer transformation string\n // @private\n value() {\n let result;\n let layerOptions = this.origValue;\n if (isPlainObject(layerOptions)) {\n layerOptions = withCamelCaseKeys(layerOptions);\n if (layerOptions.resourceType === \"text\" || (layerOptions.text != null)) {\n result = new TextLayer(layerOptions).toString();\n } else if (layerOptions.resourceType === \"subtitles\") {\n result = new SubtitlesLayer(layerOptions).toString();\n } else if (layerOptions.resourceType === \"fetch\" || (layerOptions.url != null)) {\n result = new FetchLayer(layerOptions).toString();\n } else {\n result = new Layer(layerOptions).toString();\n }\n } else if (isString(layerOptions) && /^fetch:.+/.test(layerOptions)) {\n result = new FetchLayer(layerOptions.substr(6)).toString();\n } else {\n result = layerOptions;\n }\n return result;\n }\n\n textStyle(layer) {\n return (new TextLayer(layer)).textStyleIdentifier();\n }\n\n}\n\nvar ExpressionParam = class ExpressionParam extends Param {\n serialize() {\n return Expression.normalize(super.serialize());\n }\n\n};\n\nexport {\n Param,\n ArrayParam,\n TransformationParam,\n RangeParam,\n RawParam,\n LayerParam,\n ExpressionParam\n};\n","/**\n * Image Tag\n * Depends on 'tags/htmltag', 'cloudinary'\n */\n\nimport HtmlTag from './htmltag';\n\nimport {\n assign\n} from '../util';\n\nvar ClientHintsMetaTag = class ClientHintsMetaTag extends HtmlTag {\n /**\n * Creates an HTML (DOM) Meta tag that enables client-hints.\n * @constructor ClientHintsMetaTag\n * @extends HtmlTag\n */\n constructor(options) {\n super('meta', void 0, assign({\n \"http-equiv\": \"Accept-CH\",\n content: \"DPR, Viewport-Width, Width\"\n }, options));\n }\n\n /** @override */\n closeTag() {\n return \"\";\n }\n\n};\n\nexport default ClientHintsMetaTag;\n","/**\n * Generic HTML tag\n * Depends on 'transformation', 'util'\n */\n\nimport {\n isPlainObject,\n isFunction,\n getData,\n hasClass,\n merge,\n isString\n} from '../util';\n\nimport Transformation from '../transformation';\n\nvar HtmlTag = class HtmlTag {\n /**\n * Represents an HTML (DOM) tag\n * @constructor HtmlTag\n * @param {string} name - the name of the tag\n * @param {string} [publicId]\n * @param {Object} options\n * @example tag = new HtmlTag( 'div', { 'width': 10})\n */\n constructor(name, publicId, options) {\n var transformation;\n this.name = name;\n this.publicId = publicId;\n if (options == null) {\n if (isPlainObject(publicId)) {\n options = publicId;\n this.publicId = void 0;\n } else {\n options = {};\n }\n }\n transformation = new Transformation(options);\n transformation.setParent(this);\n this.transformation = function () {\n return transformation;\n };\n }\n\n /**\n * Convenience constructor\n * Creates a new instance of an HTML (DOM) tag\n * @function HtmlTag.new\n * @param {string} name - the name of the tag\n * @param {string} [publicId]\n * @param {Object} options\n * @return {HtmlTag}\n * @example tag = HtmlTag.new( 'div', { 'width': 10})\n */\n static new(name, publicId, options) {\n return new this(name, publicId, options);\n }\n\n /**\n * combine key and value from the `attr` to generate an HTML tag attributes string.\n * `Transformation::toHtmlTagOptions` is used to filter out transformation and configuration keys.\n * @protected\n * @param {Object} attrs\n * @return {string} the attributes in the format `'key1=\"value1\" key2=\"value2\"'`\n * @ignore\n */\n htmlAttrs(attrs) {\n var key, pairs, value;\n return pairs = ((function () {\n var results;\n results = [];\n for (key in attrs) {\n value = escapeQuotes(attrs[key]);\n if (value) {\n results.push(toAttribute(key, value));\n }\n }\n return results;\n })()).sort().join(' ');\n }\n\n /**\n * Get all options related to this tag.\n * @function HtmlTag#getOptions\n * @returns {Object} the options\n *\n */\n getOptions() {\n return this.transformation().toOptions();\n }\n\n /**\n * Get the value of option `name`\n * @function HtmlTag#getOption\n * @param {string} name - the name of the option\n * @returns {*} Returns the value of the option\n *\n */\n getOption(name) {\n return this.transformation().getValue(name);\n }\n\n /**\n * Get the attributes of the tag.\n * @function HtmlTag#attributes\n * @returns {Object} attributes\n */\n attributes() {\n // The attributes are be computed from the options every time this method is invoked.\n let htmlAttributes = this.transformation().toHtmlAttributes();\n Object.keys(htmlAttributes ).forEach(key => {\n if(isPlainObject(htmlAttributes[key])){\n delete htmlAttributes[key];\n }\n });\n if( htmlAttributes.attributes) {\n // Currently HTML attributes are defined both at the top level and under 'attributes'\n merge(htmlAttributes, htmlAttributes.attributes);\n delete htmlAttributes.attributes;\n }\n\n return htmlAttributes;\n }\n\n /**\n * Set a tag attribute named `name` to `value`\n * @function HtmlTag#setAttr\n * @param {string} name - the name of the attribute\n * @param {string} value - the value of the attribute\n */\n setAttr(name, value) {\n this.transformation().set(`html_${name}`, value);\n return this;\n }\n\n /**\n * Get the value of the tag attribute `name`\n * @function HtmlTag#getAttr\n * @param {string} name - the name of the attribute\n * @returns {*}\n */\n getAttr(name) {\n return this.attributes()[`html_${name}`] || this.attributes()[name];\n }\n\n /**\n * Remove the tag attributed named `name`\n * @function HtmlTag#removeAttr\n * @param {string} name - the name of the attribute\n * @returns {*}\n */\n removeAttr(name) {\n var ref;\n return (ref = this.transformation().remove(`html_${name}`)) != null ? ref : this.transformation().remove(name);\n }\n\n /**\n * @function HtmlTag#content\n * @protected\n * @ignore\n */\n content() {\n return \"\";\n }\n\n /**\n * @function HtmlTag#openTag\n * @protected\n * @ignore\n */\n openTag() {\n let tag = \"<\" + this.name;\n let htmlAttrs = this.htmlAttrs(this.attributes());\n if(htmlAttrs && htmlAttrs.length > 0) {\n tag += \" \" + htmlAttrs\n }\n return tag + \">\";\n }\n\n /**\n * @function HtmlTag#closeTag\n * @protected\n * @ignore\n */\n closeTag() {\n return `${this.name}>`;\n }\n\n /**\n * Generates an HTML representation of the tag.\n * @function HtmlTag#toHtml\n * @returns {string} Returns HTML in string format\n */\n toHtml() {\n return this.openTag() + this.content() + this.closeTag();\n }\n\n /**\n * Creates a DOM object representing the tag.\n * @function HtmlTag#toDOM\n * @returns {Element}\n */\n toDOM() {\n var element, name, ref, value;\n if (!isFunction(typeof document !== \"undefined\" && document !== null ? document.createElement : void 0)) {\n throw \"Can't create DOM if document is not present!\";\n }\n element = document.createElement(this.name);\n ref = this.attributes();\n for (name in ref) {\n value = ref[name];\n element.setAttribute(name, value);\n }\n return element;\n }\n\n static isResponsive(tag, responsiveClass) {\n var dataSrc;\n dataSrc = getData(tag, 'src-cache') || getData(tag, 'src');\n return hasClass(tag, responsiveClass) && /\\bw_auto\\b/.exec(dataSrc);\n }\n\n};\n\n/**\n * Represent the given key and value as an HTML attribute.\n * @function toAttribute\n * @protected\n * @param {string} key - attribute name\n * @param {*|boolean} value - the value of the attribute. If the value is boolean `true`, return the key only.\n * @returns {string} the attribute\n *\n */\nfunction toAttribute(key, value) {\n if (!value) {\n return void 0;\n } else if (value === true) {\n return key;\n } else {\n return `${key}=\"${value}\"`;\n }\n}\n\n/**\n * If given value is a string, replaces quotes with character entities (", ')\n * @param value - value to change\n * @returns {*} changed value\n */\nfunction escapeQuotes(value) {\n return isString(value) ? value.replace('\"', '"').replace(\"'\", ''') : value;\n}\n\nexport default HtmlTag;\n","/**\n * Image Tag\n * Depends on 'tags/htmltag', 'cloudinary'\n */\n\nimport HtmlTag from './htmltag';\n\nimport url from '../url';\nimport {isEmpty, isString, merge} from \"../util\";\nimport {generateImageResponsiveAttributes} from \"../util/srcsetUtils\";\n\nvar ImageTag = class ImageTag extends HtmlTag {\n /**\n * Creates an HTML (DOM) Image tag using Cloudinary as the source.\n * @constructor ImageTag\n * @extends HtmlTag\n * @param {string} [publicId]\n * @param {Object} [options]\n */\n constructor(publicId, options = {}) {\n super(\"img\", publicId, options);\n }\n\n /** @override */\n closeTag() {\n return \"\";\n }\n\n /** @override */\n attributes() {\n var attr, options, srcAttribute;\n attr = super.attributes() || {};\n options = this.getOptions();\n let srcsetParam = this.getOption('srcset');\n let attributes = this.getOption('attributes') || {};\n\n let responsiveAttributes = {};\n if (isString(srcsetParam)) {\n responsiveAttributes.srcset = srcsetParam\n } else {\n responsiveAttributes = generateImageResponsiveAttributes(this.publicId, attributes, srcsetParam, options);\n }\n if(!isEmpty(responsiveAttributes)) {\n delete options.width;\n delete options.height;\n }\n\n merge(attr, responsiveAttributes);\n srcAttribute = options.responsive && !options.client_hints ? 'data-src' : 'src';\n if (attr[srcAttribute] == null) {\n attr[srcAttribute] = url(this.publicId, this.getOptions());\n }\n return attr;\n }\n\n};\n\nexport default ImageTag;\n","import HtmlTag from './htmltag';\nimport ImageTag from './imagetag';\nimport Transformation from '../transformation';\nimport SourceTag from './sourcetag';\nimport {extractUrlParams} from \"../util\";\n\nconst PictureTag = class PictureTag extends HtmlTag {\n constructor(publicId, options = {}, sources) {\n super('picture', publicId, options);\n this.widthList = sources;\n }\n\n /** @override */\n content() {\n return this.widthList.map(({min_width, max_width, transformation}) => {\n let options = this.getOptions();\n let sourceTransformation = new Transformation(options);\n sourceTransformation.chain().fromOptions(typeof transformation === 'string' ? {\n raw_transformation: transformation\n } : transformation);\n options = extractUrlParams(options);\n options.media = {min_width, max_width};\n options.transformation = sourceTransformation;\n return new SourceTag(this.publicId, options).toHtml();\n }).join('') +\n new ImageTag(this.publicId, this.getOptions()).toHtml();\n }\n\n /** @override */\n attributes() {\n\n let attr = super.attributes();\n delete attr.width;\n delete attr.height;\n return attr;\n }\n\n /** @override */\n closeTag() {\n return \"\" + this.name + \">\";\n }\n\n};\n\nexport default PictureTag;\n","/**\n * Image Tag\n * Depends on 'tags/htmltag', 'cloudinary'\n */\nimport {generateImageResponsiveAttributes, generateMediaAttr} from \"../util/srcsetUtils\";\nimport {merge} from '../util';\nimport url from '../url';\nimport HtmlTag from './htmltag';\n\nconst SourceTag = class SourceTag extends HtmlTag {\n /**\n * Creates an HTML (DOM) Image tag using Cloudinary as the source.\n * @constructor SourceTag\n * @extends HtmlTag\n * @param {string} [publicId]\n * @param {Object} [options]\n */\n constructor(publicId, options = {}) {\n super(\"source\", publicId, options);\n }\n\n /** @override */\n closeTag() {\n return \"\";\n }\n\n /** @override */\n attributes() {\n let srcsetParam = this.getOption('srcset');\n let attr = super.attributes() || {};\n let options = this.getOptions();\n merge(attr, generateImageResponsiveAttributes(this.publicId, attr, srcsetParam, options));\n if(!attr.srcset){\n attr.srcset = url(this.publicId, options);\n }\n if(!attr.media && options.media){\n attr.media = generateMediaAttr(options.media);\n }\n\n return attr;\n }\n\n};\n\nexport default SourceTag;\n","/**\n * Video Tag\n * Depends on 'tags/htmltag', 'util', 'cloudinary'\n */\n\nimport {\n DEFAULT_VIDEO_PARAMS,\n DEFAULT_IMAGE_PARAMS\n} from '../constants';\n\nimport url from '../url';\n\nimport {\n defaults,\n isPlainObject,\n contains,\n isArray\n} from '../util';\n\nimport HtmlTag from './htmltag';\n\n\nconst VIDEO_TAG_PARAMS = ['source_types', 'source_transformation', 'fallback_content', 'poster'];\n\nconst DEFAULT_VIDEO_SOURCE_TYPES = ['webm', 'mp4', 'ogv'];\n\nconst DEFAULT_POSTER_OPTIONS = {\n format: 'jpg',\n resource_type: 'video'\n};\n\nconst VideoTag = class VideoTag extends HtmlTag {\n /**\n * Creates an HTML (DOM) Video tag using Cloudinary as the source.\n * @constructor VideoTag\n * @extends HtmlTag\n * @param {string} [publicId]\n * @param {Object} [options]\n */\n constructor(publicId, options = {}) {\n options = defaults({}, options, DEFAULT_VIDEO_PARAMS);\n super(\"video\", publicId.replace(/\\.(mp4|ogv|webm)$/, ''), options);\n }\n\n /**\n * Set the transformation to apply on each source\n * @function VideoTag#setSourceTransformation\n * @param {Object} an object with pairs of source type and source transformation\n * @returns {VideoTag} Returns this instance for chaining purposes.\n */\n setSourceTransformation(value) {\n this.transformation().sourceTransformation(value);\n return this;\n }\n\n /**\n * Set the source types to include in the video tag\n * @function VideoTag#setSourceTypes\n * @param {Array} an array of source types\n * @returns {VideoTag} Returns this instance for chaining purposes.\n */\n setSourceTypes(value) {\n this.transformation().sourceTypes(value);\n return this;\n }\n\n /**\n * Set the poster to be used in the video tag\n * @function VideoTag#setPoster\n * @param {string|Object} value\n * - string: a URL to use for the poster\n * - Object: transformation parameters to apply to the poster. May optionally include a public_id to use instead of the video public_id.\n * @returns {VideoTag} Returns this instance for chaining purposes.\n */\n setPoster(value) {\n this.transformation().poster(value);\n return this;\n }\n\n /**\n * Set the content to use as fallback in the video tag\n * @function VideoTag#setFallbackContent\n * @param {string} value - the content to use, in HTML format\n * @returns {VideoTag} Returns this instance for chaining purposes.\n */\n setFallbackContent(value) {\n this.transformation().fallbackContent(value);\n return this;\n }\n\n content() {\n var fallback, innerTags, type, sourceTransformation, sourceTypes, src, srcType, transformation, videoType;\n sourceTypes = this.transformation().getValue('source_types');\n sourceTransformation = this.transformation().getValue('source_transformation');\n fallback = this.transformation().getValue('fallback_content');\n if (isArray(sourceTypes)) {\n let options = this.getOptions();\n innerTags = (function () {\n var i, len, results;\n results = [];\n for (i = 0, len = sourceTypes.length; i < len; i++) {\n srcType = sourceTypes[i];\n transformation = sourceTransformation[srcType] || {};\n src = url(`${this.publicId}`, defaults({}, transformation, {\n resource_type: 'video',\n format: srcType\n }, options));\n videoType = srcType === 'ogv' ? 'ogg' : srcType;\n type = 'video/' + videoType;\n results.push(``);\n }\n return results;\n }).call(this);\n } else {\n innerTags = [];\n }\n return innerTags.join('') + fallback;\n }\n\n attributes() {\n var a, attr, defaultOptions, i, len, poster, ref, ref1, sourceTypes;\n sourceTypes = this.getOption('source_types');\n poster = (ref = this.getOption('poster')) != null ? ref : {};\n if (isPlainObject(poster)) {\n defaultOptions = poster.public_id != null ? DEFAULT_IMAGE_PARAMS : DEFAULT_POSTER_OPTIONS;\n poster = url((ref1 = poster.public_id) != null ? ref1 : this.publicId, defaults({}, poster, defaultOptions, this.getOptions()));\n }\n attr = super.attributes() || [];\n for (i = 0, len = attr.length; i < len; i++) {\n a = attr[i];\n if (!contains(VIDEO_TAG_PARAMS)) {\n attr = a;\n }\n }\n if (!isArray(sourceTypes)) {\n attr[\"src\"] = url(this.publicId, this.getOptions(), {\n resource_type: 'video',\n format: sourceTypes\n });\n }\n if (poster != null) {\n attr[\"poster\"] = poster;\n }\n return attr;\n }\n\n};\n\nexport default VideoTag;\n","import Expression from './expression';\nimport Condition from './condition';\nimport Configuration from './configuration';\n\nimport {\n assign,\n camelCase,\n cloneDeep,\n compact,\n contains,\n difference,\n identity,\n isArray,\n isEmpty,\n isFunction,\n isPlainObject,\n isString,\n snakeCase\n} from './util';\n\nimport {\n Param,\n ArrayParam,\n LayerParam,\n RangeParam,\n RawParam,\n TransformationParam\n} from \"./parameters\";\n\n/**\n * Assign key, value to target, when value is not null. \n * This function mutates the target!\n * @param {object} target the object to assign the values to\n * @param {object} sources one or more objects to get values from\n * @returns {object} the target after the assignment\n */\nfunction assignNotNull(target, ...sources) {\n sources.forEach(source => {\n Object.keys(source).forEach(key => {\n if (source[key] != null) {\n target[key] = source[key];\n }\n })\n });\n return target;\n}\n\n/**\n * TransformationBase\n * Depends on 'configuration', 'parameters','util'\n * @internal\n */\n\nvar TransformationBase = class TransformationBase {\n /**\n * The base class for transformations.\n * Members of this class are documented as belonging to the {@link Transformation} class for convenience.\n * @class TransformationBase\n */\n constructor(options) {\n /** @private */\n /** @private */\n var parent, trans;\n parent = void 0;\n trans = {};\n /**\n * Return an options object that can be used to create an identical Transformation\n * @function Transformation#toOptions\n * @return {Object} Returns a plain object representing this transformation\n */\n this.toOptions = function (withChain) {\n let opt = {};\n if(withChain == null) {\n withChain = true;\n }\n Object.keys(trans).forEach(key => opt[key] = trans[key].origValue);\n assignNotNull(opt, this.otherOptions);\n if (withChain && !isEmpty(this.chained)) {\n let list = this.chained.map(tr => tr.toOptions());\n list.push(opt);\n opt = {};\n assignNotNull(opt, this.otherOptions);\n opt.transformation = list;\n }\n return opt;\n };\n /**\n * Set a parent for this object for chaining purposes.\n *\n * @function Transformation#setParent\n * @param {Object} object - the parent to be assigned to\n * @returns {Transformation} Returns this instance for chaining purposes.\n */\n this.setParent = function (object) {\n parent = object;\n if (object != null) {\n this.fromOptions(typeof object.toOptions === \"function\" ? object.toOptions() : void 0);\n }\n return this;\n };\n /**\n * Returns the parent of this object in the chain\n * @function Transformation#getParent\n * @protected\n * @return {Object} Returns the parent of this object if there is any\n */\n this.getParent = function () {\n return parent;\n };\n\n // Helper methods to create parameter methods\n // These methods are defined here because they access `trans` which is\n // a private member of `TransformationBase`\n\n /** @protected */\n this.param = function (value, name, abbr, defaultValue, process) {\n if (process == null) {\n if (isFunction(defaultValue)) {\n process = defaultValue;\n } else {\n process = identity;\n }\n }\n trans[name] = new Param(name, abbr, process).set(value);\n return this;\n };\n /** @protected */\n this.rawParam = function (value, name, abbr, defaultValue, process = identity) {\n process = lastArgCallback(arguments);\n trans[name] = new RawParam(name, abbr, process).set(value);\n return this;\n };\n /** @protected */\n this.rangeParam = function (value, name, abbr, defaultValue, process = identity) {\n process = lastArgCallback(arguments);\n trans[name] = new RangeParam(name, abbr, process).set(value);\n return this;\n };\n /** @protected */\n this.arrayParam = function (value, name, abbr, sep = \":\", defaultValue = [], process = identity) {\n process = lastArgCallback(arguments);\n trans[name] = new ArrayParam(name, abbr, sep, process).set(value);\n return this;\n };\n /** @protected */\n this.transformationParam = function (value, name, abbr, sep = \".\", defaultValue, process = identity) {\n process = lastArgCallback(arguments);\n trans[name] = new TransformationParam(name, abbr, sep, process).set(value);\n return this;\n };\n this.layerParam = function (value, name, abbr) {\n trans[name] = new LayerParam(name, abbr).set(value);\n return this;\n };\n\n // End Helper methods\n\n /**\n * Get the value associated with the given name.\n * @function Transformation#getValue\n * @param {string} name - the name of the parameter\n * @return {*} the processed value associated with the given name\n * @description Use {@link get}.origValue for the value originally provided for the parameter\n */\n this.getValue = function (name) {\n let value = trans[name] && trans[name].value();\n return value != null ? value : this.otherOptions[name];\n };\n /**\n * Get the parameter object for the given parameter name\n * @function Transformation#get\n * @param {string} name the name of the transformation parameter\n * @returns {Param} the param object for the given name, or undefined\n */\n this.get = function (name) {\n return trans[name];\n };\n /**\n * Remove a transformation option from the transformation.\n * @function Transformation#remove\n * @param {string} name - the name of the option to remove\n * @return {*} Returns the option that was removed or null if no option by that name was found. The type of the\n * returned value depends on the value.\n */\n this.remove = function (name) {\n var temp;\n switch (false) {\n case trans[name] == null:\n temp = trans[name];\n delete trans[name];\n return temp.origValue;\n case this.otherOptions[name] == null:\n temp = this.otherOptions[name];\n delete this.otherOptions[name];\n return temp;\n default:\n return null;\n }\n };\n /**\n * Return an array of all the keys (option names) in the transformation.\n * @return {Array} the keys in snakeCase format\n */\n this.keys = function () {\n var key;\n return ((function () {\n var results;\n results = [];\n for (key in trans) {\n if (key != null) {\n results.push(key.match(VAR_NAME_RE) ? key : snakeCase(key));\n }\n }\n return results;\n })()).sort();\n };\n /**\n * Returns a plain object representation of the transformation. Values are processed.\n * @function Transformation#toPlainObject\n * @return {Object} the transformation options as plain object\n */\n this.toPlainObject = function () {\n var hash, key, list;\n hash = {};\n for (key in trans) {\n hash[key] = trans[key].value();\n if (isPlainObject(hash[key])) {\n hash[key] = cloneDeep(hash[key]);\n }\n }\n if (!isEmpty(this.chained)) {\n list = this.chained.map(tr => tr.toPlainObject());\n list.push(hash);\n hash = {\n transformation: list\n };\n }\n return hash;\n };\n /**\n * Complete the current transformation and chain to a new one.\n * In the URL, transformations are chained together by slashes.\n * @function Transformation#chain\n * @return {Transformation} Returns this transformation for chaining\n * @example\n * var tr = cloudinary.Transformation.new();\n * tr.width(10).crop('fit').chain().angle(15).serialize()\n * // produces \"c_fit,w_10/a_15\"\n */\n this.chain = function () {\n var names, tr;\n names = Object.getOwnPropertyNames(trans);\n if (names.length !== 0) {\n tr = new this.constructor(this.toOptions(false));\n this.resetTransformations();\n this.chained.push(tr);\n }\n return this;\n };\n this.resetTransformations = function () {\n trans = {};\n return this;\n };\n this.otherOptions = {};\n this.chained = [];\n this.fromOptions(options);\n }\n\n /**\n * Merge the provided options with own's options\n * @param {Object} [options={}] key-value list of options\n * @returns {Transformation} Returns this instance for chaining\n */\n fromOptions(options) {\n if (!isEmpty(options)) {\n if (options instanceof TransformationBase) {\n this.fromTransformation(options);\n } else {\n options || (options = {});\n if (isString(options) || isArray(options)) {\n options = {\n transformation: options\n };\n }\n options = cloneDeep(options, function (value) {\n if (value instanceof TransformationBase) {\n return new value.constructor(value.toOptions());\n }\n });\n // Handling of \"if\" statements precedes other options as it creates a chained transformation\n if (options[\"if\"]) {\n this.set(\"if\", options[\"if\"]);\n delete options[\"if\"];\n }\n for (let key in options) {\n let opt = options[key];\n if (key.match(VAR_NAME_RE)) {\n if (key !== '$attr') {\n this.set('variable', key, opt);\n }\n } else {\n this.set(key, opt);\n }\n }\n }\n }\n return this;\n }\n\n fromTransformation(other) {\n if (other instanceof TransformationBase) {\n other.keys().forEach(key =>\n this.set(key, other.get(key).origValue)\n );\n }\n return this;\n }\n\n /**\n * Set a parameter.\n * The parameter name `key` is converted to\n * @param {string} key - the name of the parameter\n * @param {*} values - the value of the parameter\n * @returns {Transformation} Returns this instance for chaining\n */\n set(key, ...values) {\n var camelKey;\n camelKey = camelCase(key);\n if (contains(Transformation.methods, camelKey)) {\n this[camelKey].apply(this, values);\n } else {\n this.otherOptions[key] = values[0];\n }\n return this;\n }\n\n hasLayer() {\n return this.getValue(\"overlay\") || this.getValue(\"underlay\");\n }\n\n /**\n * Generate a string representation of the transformation.\n * @function Transformation#serialize\n * @return {string} Returns the transformation as a string\n */\n serialize() {\n var ifParam, j, len, paramList, ref, ref1, ref2, ref3, ref4, resultArray, t, transformationList,\n transformationString, transformations, value, variables, vars;\n resultArray = this.chained.map(tr => tr.serialize());\n paramList = this.keys();\n transformations = (ref = this.get(\"transformation\")) != null ? ref.serialize() : void 0;\n ifParam = (ref1 = this.get(\"if\")) != null ? ref1.serialize() : void 0;\n variables = processVar((ref2 = this.get(\"variables\")) != null ? ref2.value() : void 0);\n paramList = difference(paramList, [\"transformation\", \"if\", \"variables\"]);\n vars = [];\n transformationList = [];\n for (j = 0, len = paramList.length; j < len; j++) {\n t = paramList[j];\n if (t.match(VAR_NAME_RE)) {\n vars.push(t + \"_\" + Expression.normalize((ref3 = this.get(t)) != null ? ref3.value() : void 0));\n } else {\n transformationList.push((ref4 = this.get(t)) != null ? ref4.serialize() : void 0);\n }\n }\n switch (false) {\n case !isString(transformations):\n transformationList.push(transformations);\n break;\n case !isArray(transformations):\n resultArray = resultArray.concat(transformations);\n }\n transformationList = (function () {\n var k, len1, results;\n results = [];\n for (k = 0, len1 = transformationList.length; k < len1; k++) {\n value = transformationList[k];\n if (isArray(value) && !isEmpty(value) || !isArray(value) && value) {\n results.push(value);\n }\n }\n return results;\n })();\n transformationList = vars.sort().concat(variables).concat(transformationList.sort());\n if (ifParam === \"if_end\") {\n transformationList.push(ifParam);\n } else if (!isEmpty(ifParam)) {\n transformationList.unshift(ifParam);\n }\n transformationString = compact(transformationList).join(this.param_separator);\n if (!isEmpty(transformationString)) {\n resultArray.push(transformationString);\n }\n return compact(resultArray).join(this.trans_separator);\n }\n\n /**\n * Provide a list of all the valid transformation option names\n * @function Transformation#listNames\n * @private\n * @return {Array} a array of all the valid option names\n */\n listNames() {\n return Transformation.methods;\n }\n\n /**\n * Returns attributes for an HTML tag.\n * @function Cloudinary.toHtmlAttributes\n * @return PlainObject\n */\n toHtmlAttributes() {\n var attrName, height, key, options, ref2, ref3, value, width;\n options = {};\n for (key in this.otherOptions) {\n value = this.otherOptions[key];\n if (contains(Transformation.PARAM_NAMES, snakeCase(key))) {\n continue;\n }\n attrName = /^html_/.test(key) ? key.slice(5) : key;\n options[attrName] = value;\n }\n // convert all \"html_key\" to \"key\" with the same value\n this.keys().forEach(key => {\n if (/^html_/.test(key)) {\n options[camelCase(key.slice(5))] = this.getValue(key);\n }\n });\n if (!(this.hasLayer() || this.getValue(\"angle\") || contains([\"fit\", \"limit\", \"lfill\"], this.getValue(\"crop\")))) {\n width = (ref2 = this.get(\"width\")) != null ? ref2.origValue : void 0;\n height = (ref3 = this.get(\"height\")) != null ? ref3.origValue : void 0;\n if (parseFloat(width) >= 1.0) {\n if (options['width'] == null) {\n options['width'] = width;\n }\n }\n if (parseFloat(height) >= 1.0) {\n if (options['height'] == null) {\n options['height'] = height;\n }\n }\n }\n return options;\n }\n\n isValidParamName(name) {\n return Transformation.methods.indexOf(camelCase(name)) >= 0;\n }\n\n /**\n * Delegate to the parent (up the call chain) to produce HTML\n * @function Transformation#toHtml\n * @return {string} HTML representation of the parent if possible.\n * @example\n * tag = cloudinary.ImageTag.new(\"sample\", {cloud_name: \"demo\"})\n * // ImageTag {name: \"img\", publicId: \"sample\"}\n * tag.toHtml()\n * // \n * tag.transformation().crop(\"fit\").width(300).toHtml()\n * // \n */\n toHtml() {\n var ref;\n return (ref = this.getParent()) != null ? typeof ref.toHtml === \"function\" ? ref.toHtml() : void 0 : void 0;\n }\n\n toString() {\n return this.serialize();\n }\n\n};\n\nconst VAR_NAME_RE = /^\\$[a-zA-Z0-9]+$/;\n\nTransformationBase.prototype.trans_separator = '/';\n\nTransformationBase.prototype.param_separator = ',';\n\n\nfunction lastArgCallback(args) {\n var callback;\n callback = args != null ? args[args.length - 1] : void 0;\n if (isFunction(callback)) {\n return callback;\n } else {\n return void 0;\n }\n}\n\nfunction processVar(varArray) {\n var j, len, name, results, v;\n if (isArray(varArray)) {\n results = [];\n for (j = 0, len = varArray.length; j < len; j++) {\n [name, v] = varArray[j];\n results.push(`${name}_${Expression.normalize(v)}`);\n }\n return results;\n } else {\n return varArray;\n }\n}\n\n/**\n * Transformation Class methods.\n * This is a list of the parameters defined in Transformation.\n * Values are camelCased.\n * @const Transformation.methods\n * @private\n * @ignore\n * @type {Array}\n */\n/**\n * Parameters that are filtered out before passing the options to an HTML tag.\n *\n * The list of parameters is a combination of `Transformation::methods` and `Configuration::CONFIG_PARAMS`\n * @const {Array} Transformation.PARAM_NAMES\n * @private\n * @ignore\n * @see toHtmlAttributes\n */\nvar Transformation = class Transformation extends TransformationBase {\n /**\n * Represents a single transformation.\n * @class Transformation\n * @example\n * t = new cloudinary.Transformation();\n * t.angle(20).crop(\"scale\").width(\"auto\");\n *\n * // or\n *\n * t = new cloudinary.Transformation( {angle: 20, crop: \"scale\", width: \"auto\"});\n */\n constructor(options) {\n super(options);\n }\n\n /**\n * Convenience constructor\n * @param {Object} options\n * @return {Transformation}\n * @example cl = cloudinary.Transformation.new( {angle: 20, crop: \"scale\", width: \"auto\"})\n */\n static new(options) {\n return new Transformation(options);\n }\n\n /*\n Transformation Parameters\n */\n angle(value) {\n return this.arrayParam(value, \"angle\", \"a\", \".\", Expression.normalize);\n }\n\n audioCodec(value) {\n return this.param(value, \"audio_codec\", \"ac\");\n }\n\n audioFrequency(value) {\n return this.param(value, \"audio_frequency\", \"af\");\n }\n\n aspectRatio(value) {\n return this.param(value, \"aspect_ratio\", \"ar\", Expression.normalize);\n }\n\n background(value) {\n return this.param(value, \"background\", \"b\", Param.norm_color);\n }\n\n bitRate(value) {\n return this.param(value, \"bit_rate\", \"br\");\n }\n\n border(value) {\n return this.param(value, \"border\", \"bo\", function (border) {\n if (isPlainObject(border)) {\n border = assign({}, {\n color: \"black\",\n width: 2\n }, border);\n return `${border.width}px_solid_${Param.norm_color(border.color)}`;\n } else {\n return border;\n }\n });\n }\n\n color(value) {\n return this.param(value, \"color\", \"co\", Param.norm_color);\n }\n\n colorSpace(value) {\n return this.param(value, \"color_space\", \"cs\");\n }\n\n crop(value) {\n return this.param(value, \"crop\", \"c\");\n }\n\n defaultImage(value) {\n return this.param(value, \"default_image\", \"d\");\n }\n\n delay(value) {\n return this.param(value, \"delay\", \"dl\");\n }\n\n density(value) {\n return this.param(value, \"density\", \"dn\");\n }\n\n duration(value) {\n return this.rangeParam(value, \"duration\", \"du\");\n }\n\n dpr(value) {\n return this.param(value, \"dpr\", \"dpr\", (dpr) => {\n dpr = dpr.toString();\n if (dpr != null ? dpr.match(/^\\d+$/) : void 0) {\n return dpr + \".0\";\n } else {\n return Expression.normalize(dpr);\n }\n });\n }\n\n effect(value) {\n return this.arrayParam(value, \"effect\", \"e\", \":\", Expression.normalize);\n }\n\n else() {\n return this.if('else');\n }\n\n endIf() {\n return this.if('end');\n }\n\n endOffset(value) {\n return this.rangeParam(value, \"end_offset\", \"eo\");\n }\n\n fallbackContent(value) {\n return this.param(value, \"fallback_content\");\n }\n\n fetchFormat(value) {\n return this.param(value, \"fetch_format\", \"f\");\n }\n\n format(value) {\n return this.param(value, \"format\");\n }\n\n flags(value) {\n return this.arrayParam(value, \"flags\", \"fl\", \".\");\n }\n\n gravity(value) {\n return this.param(value, \"gravity\", \"g\");\n }\n\n fps(value) {\n return this.param(value, \"fps\", \"fps\", (fps) => {\n if (isString(fps)) {\n return fps;\n } else if (isArray(fps)) {\n return fps.join(\"-\");\n } else {\n return fps;\n }\n });\n }\n\n height(value) {\n return this.param(value, \"height\", \"h\", () => {\n if (this.getValue(\"crop\") || this.getValue(\"overlay\") || this.getValue(\"underlay\")) {\n return Expression.normalize(value);\n } else {\n return null;\n }\n });\n }\n\n htmlHeight(value) {\n return this.param(value, \"html_height\");\n }\n\n htmlWidth(value) {\n return this.param(value, \"html_width\");\n }\n\n if(value = \"\") {\n var i, ifVal, j, ref, trIf, trRest;\n switch (value) {\n case \"else\":\n this.chain();\n return this.param(value, \"if\", \"if\");\n case \"end\":\n this.chain();\n for (i = j = ref = this.chained.length - 1; j >= 0; i = j += -1) {\n ifVal = this.chained[i].getValue(\"if\");\n if (ifVal === \"end\") {\n break;\n } else if (ifVal != null) {\n trIf = Transformation.new().if(ifVal);\n this.chained[i].remove(\"if\");\n trRest = this.chained[i];\n this.chained[i] = Transformation.new().transformation([trIf, trRest]);\n if (ifVal !== \"else\") {\n break;\n }\n }\n }\n return this.param(value, \"if\", \"if\");\n case \"\":\n return Condition.new().setParent(this);\n default:\n return this.param(value, \"if\", \"if\", function (value) {\n return Condition.new(value).toString();\n });\n }\n }\n\n keyframeInterval(value) {\n return this.param(value, \"keyframe_interval\", \"ki\");\n }\n\n offset(value) {\n var end_o, start_o;\n [start_o, end_o] = (isFunction(value != null ? value.split : void 0)) ? value.split('..') : isArray(value) ? value : [null, null];\n if (start_o != null) {\n this.startOffset(start_o);\n }\n if (end_o != null) {\n return this.endOffset(end_o);\n }\n }\n\n opacity(value) {\n return this.param(value, \"opacity\", \"o\", Expression.normalize);\n }\n\n overlay(value) {\n return this.layerParam(value, \"overlay\", \"l\");\n }\n\n page(value) {\n return this.param(value, \"page\", \"pg\");\n }\n\n poster(value) {\n return this.param(value, \"poster\");\n }\n\n prefix(value) {\n return this.param(value, \"prefix\", \"p\");\n }\n\n quality(value) {\n return this.param(value, \"quality\", \"q\", Expression.normalize);\n }\n\n radius(value) {\n return this.arrayParam(value, \"radius\", \"r\", \":\", Expression.normalize);\n }\n\n rawTransformation(value) {\n return this.rawParam(value, \"raw_transformation\");\n }\n\n size(value) {\n var height, width;\n if (isFunction(value != null ? value.split : void 0)) {\n [width, height] = value.split('x');\n this.width(width);\n return this.height(height);\n }\n }\n\n sourceTypes(value) {\n return this.param(value, \"source_types\");\n }\n\n sourceTransformation(value) {\n return this.param(value, \"source_transformation\");\n }\n\n startOffset(value) {\n return this.rangeParam(value, \"start_offset\", \"so\");\n }\n\n streamingProfile(value) {\n return this.param(value, \"streaming_profile\", \"sp\");\n }\n\n transformation(value) {\n return this.transformationParam(value, \"transformation\", \"t\");\n }\n\n underlay(value) {\n return this.layerParam(value, \"underlay\", \"u\");\n }\n\n variable(name, value) {\n return this.param(value, name, name);\n }\n\n variables(values) {\n return this.arrayParam(values, \"variables\");\n }\n\n videoCodec(value) {\n return this.param(value, \"video_codec\", \"vc\", Param.process_video_params);\n }\n\n videoSampling(value) {\n return this.param(value, \"video_sampling\", \"vs\");\n }\n\n width(value) {\n return this.param(value, \"width\", \"w\", () => {\n if (this.getValue(\"crop\") || this.getValue(\"overlay\") || this.getValue(\"underlay\")) {\n return Expression.normalize(value);\n } else {\n return null;\n }\n });\n }\n\n x(value) {\n return this.param(value, \"x\", \"x\", Expression.normalize);\n }\n\n y(value) {\n return this.param(value, \"y\", \"y\", Expression.normalize);\n }\n\n zoom(value) {\n return this.param(value, \"zoom\", \"z\", Expression.normalize);\n }\n\n};\n\n/**\n * Transformation Class methods.\n * This is a list of the parameters defined in Transformation.\n * Values are camelCased.\n */\nTransformation.methods = [\n \"angle\",\n \"audioCodec\",\n \"audioFrequency\",\n \"aspectRatio\",\n \"background\",\n \"bitRate\",\n \"border\",\n \"color\",\n \"colorSpace\",\n \"crop\",\n \"defaultImage\",\n \"delay\",\n \"density\",\n \"duration\",\n \"dpr\",\n \"effect\",\n \"else\",\n \"endIf\",\n \"endOffset\",\n \"fallbackContent\",\n \"fetchFormat\",\n \"format\",\n \"flags\",\n \"gravity\",\n \"fps\",\n \"height\",\n \"htmlHeight\",\n \"htmlWidth\",\n \"if\",\n \"keyframeInterval\",\n \"offset\",\n \"opacity\",\n \"overlay\",\n \"page\",\n \"poster\",\n \"prefix\",\n \"quality\",\n \"radius\",\n \"rawTransformation\",\n \"size\",\n \"sourceTypes\",\n \"sourceTransformation\",\n \"startOffset\",\n \"streamingProfile\",\n \"transformation\",\n \"underlay\",\n \"variable\",\n \"variables\",\n \"videoCodec\",\n \"videoSampling\",\n \"width\",\n \"x\",\n \"y\",\n \"zoom\"\n];\n\n/**\n * Parameters that are filtered out before passing the options to an HTML tag.\n *\n * The list of parameters is a combination of `Transformation::methods` and `Configuration::CONFIG_PARAMS`\n */\nTransformation.PARAM_NAMES = Transformation.methods.map(snakeCase).concat(Configuration.CONFIG_PARAMS);\n\nexport default Transformation;\n","\nimport Transformation from './transformation';\n\nimport {\n DEFAULT_IMAGE_PARAMS,\n OLD_AKAMAI_SHARED_CDN,\n SHARED_CDN,\n SEO_TYPES\n} from './constants';\n\nimport {\n defaults,\n compact,\n isPlainObject\n} from './util';\n\nimport crc32 from './crc32';\n\nfunction absolutize(url) {\n var prefix;\n if (!url.match(/^https?:\\//)) {\n prefix = document.location.protocol + '//' + document.location.host;\n if (url[0] === '?') {\n prefix += document.location.pathname;\n } else if (url[0] !== '/') {\n prefix += document.location.pathname.replace(/\\/[^\\/]*$/, '/');\n }\n url = prefix + url;\n }\n return url;\n}\n\n// Produce a number between 1 and 5 to be used for cdn sub domains designation\nfunction cdnSubdomainNumber(publicId) {\n return crc32(publicId) % 5 + 1;\n}\n\n// * cdn_subdomain - Boolean (default: false). Whether to automatically build URLs with multiple CDN sub-domains. See this blog post for more details.\n// * private_cdn - Boolean (default: false). Should be set to true for Advanced plan's users that have a private CDN distribution.\n// * secure_distribution - The domain name of the CDN distribution to use for building HTTPS URLs. Relevant only for Advanced plan's users that have a private CDN distribution.\n// * cname - Custom domain name to use for building HTTP URLs. Relevant only for Advanced plan's users that have a private CDN distribution and a custom CNAME.\n// * secure - Boolean (default: false). Force HTTPS URLs of images even if embedded in non-secure HTTP pages.\nfunction cloudinaryUrlPrefix(publicId, options) {\n var cdnPart, host, path, protocol, ref, subdomain;\n if (((ref = options.cloud_name) != null ? ref.indexOf(\"/\") : void 0) === 0) {\n return '/res' + options.cloud_name;\n }\n // defaults\n protocol = \"http://\";\n cdnPart = \"\";\n subdomain = \"res\";\n host = \".cloudinary.com\";\n path = \"/\" + options.cloud_name;\n // modifications\n if (options.protocol) {\n protocol = options.protocol + '//';\n }\n if (options.private_cdn) {\n cdnPart = options.cloud_name + \"-\";\n path = \"\";\n }\n if (options.cdn_subdomain) {\n subdomain = \"res-\" + cdnSubdomainNumber(publicId);\n }\n if (options.secure) {\n protocol = \"https://\";\n if (options.secure_cdn_subdomain === false) {\n subdomain = \"res\";\n }\n if ((options.secure_distribution != null) && options.secure_distribution !== OLD_AKAMAI_SHARED_CDN && options.secure_distribution !== SHARED_CDN) {\n cdnPart = \"\";\n subdomain = \"\";\n host = options.secure_distribution;\n }\n } else if (options.cname) {\n protocol = \"http://\";\n cdnPart = \"\";\n subdomain = options.cdn_subdomain ? 'a' + ((crc32(publicId) % 5) + 1) + '.' : '';\n host = options.cname;\n }\n return [protocol, cdnPart, subdomain, host, path].join(\"\");\n}\n\n/**\n * Return the resource type and action type based on the given configuration\n * @function Cloudinary#finalizeResourceType\n * @param {Object|string} resourceType\n * @param {string} [type='upload']\n * @param {string} [urlSuffix]\n * @param {boolean} [useRootPath]\n * @param {boolean} [shorten]\n * @returns {string} resource_type/type\n * @ignore\n */\nfunction finalizeResourceType(resourceType = \"image\", type = \"upload\", urlSuffix, useRootPath, shorten) {\n var options;\n resourceType = resourceType == null ? \"image\" : resourceType;\n type = type == null ? \"upload\" : type;\n if (isPlainObject(resourceType)) {\n options = resourceType;\n resourceType = options.resource_type;\n type = options.type;\n urlSuffix = options.url_suffix;\n useRootPath = options.use_root_path;\n shorten = options.shorten;\n }\n if (type == null) {\n type = 'upload';\n }\n if (urlSuffix != null) {\n resourceType = SEO_TYPES[`${resourceType}/${type}`];\n type = null;\n if (resourceType == null) {\n throw new Error(`URL Suffix only supported for ${Object.keys(SEO_TYPES).join(', ')}`);\n }\n }\n if (useRootPath) {\n if (resourceType === 'image' && type === 'upload' || resourceType === \"images\") {\n resourceType = null;\n type = null;\n } else {\n throw new Error(\"Root path only supported for image/upload\");\n }\n }\n if (shorten && resourceType === 'image' && type === 'upload') {\n resourceType = 'iu';\n type = null;\n }\n return [resourceType, type].join(\"/\");\n}\n\n/**\n * Generate an resource URL.\n * @function Cloudinary#url\n * @param {string} publicId - the public ID of the resource\n * @param {Object} [options] - options for the tag and transformations, possible values include all {@link Transformation} parameters\n * and {@link Configuration} parameters\n * @param {string} [options.type='upload'] - the classification of the resource\n * @param {Object} [options.resource_type='image'] - the type of the resource\n * @param {Object} [config] URL configuration\n * @return {string} The resource URL\n */\nexport default function url(publicId, options = {}, config = {}) {\n var error, prefix, ref, resourceTypeAndType, transformation, transformationString, url, version;\n if (!publicId) {\n return publicId;\n }\n if (options instanceof Transformation) {\n options = options.toOptions();\n }\n options = defaults({}, options, config, DEFAULT_IMAGE_PARAMS);\n if (options.type === 'fetch') {\n options.fetch_format = options.fetch_format || options.format;\n publicId = absolutize(publicId);\n }\n transformation = new Transformation(options);\n transformationString = transformation.serialize();\n if (!options.cloud_name) {\n throw 'Unknown cloud_name';\n }\n // if publicId has a '/' and doesn't begin with v and doesn't start with http[s]:/ and version is empty\n if (publicId.search('/') >= 0 && !publicId.match(/^v[0-9]+/) && !publicId.match(/^https?:\\//) && !((ref = options.version) != null ? ref.toString() : void 0)) {\n options.version = 1;\n }\n if (publicId.match(/^https?:/)) {\n if (options.type === 'upload' || options.type === 'asset') {\n url = publicId;\n } else {\n publicId = encodeURIComponent(publicId).replace(/%3A/g, ':').replace(/%2F/g, '/');\n }\n } else {\n try {\n // Make sure publicId is URI encoded.\n publicId = decodeURIComponent(publicId);\n } catch (error1) {\n error = error1;\n }\n publicId = encodeURIComponent(publicId).replace(/%3A/g, ':').replace(/%2F/g, '/');\n if (options.url_suffix) {\n if (options.url_suffix.match(/[\\.\\/]/)) {\n throw 'url_suffix should not include . or /';\n }\n publicId = publicId + '/' + options.url_suffix;\n }\n if (options.format) {\n if (!options.trust_public_id) {\n publicId = publicId.replace(/\\.(jpg|png|gif|webp)$/, '');\n }\n publicId = publicId + '.' + options.format;\n }\n }\n prefix = cloudinaryUrlPrefix(publicId, options);\n resourceTypeAndType = finalizeResourceType(options.resource_type, options.type, options.url_suffix, options.use_root_path, options.shorten);\n version = options.version ? 'v' + options.version : '';\n return url || compact([prefix, resourceTypeAndType, transformationString, version, publicId]).join('/').replace(/([^:])\\/+/g, '$1/');\n};\n","/**\n * UTF8 encoder\n *\n */\nvar utf8_encode;\n\nexport default utf8_encode = function(argString) {\n var c1, enc, end, n, start, string, stringl, utftext;\n // http://kevin.vanzonneveld.net\n // + original by: Webtoolkit.info (http://www.webtoolkit.info/)\n // + improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)\n // + improved by: sowberry\n // + tweaked by: Jack\n // + bugfixed by: Onno Marsman\n // + improved by: Yves Sucaet\n // + bugfixed by: Onno Marsman\n // + bugfixed by: Ulrich\n // + bugfixed by: Rafal Kukawski\n // + improved by: kirilloid\n // * example 1: utf8_encode('Kevin van Zonneveld');\n // * returns 1: 'Kevin van Zonneveld'\n if (argString === null || typeof argString === 'undefined') {\n return '';\n }\n string = argString + '';\n // .replace(/\\r\\n/g, \"\\n\").replace(/\\r/g, \"\\n\");\n utftext = '';\n start = void 0;\n end = void 0;\n stringl = 0;\n start = end = 0;\n stringl = string.length;\n n = 0;\n while (n < stringl) {\n c1 = string.charCodeAt(n);\n enc = null;\n if (c1 < 128) {\n end++;\n } else if (c1 > 127 && c1 < 2048) {\n enc = String.fromCharCode(c1 >> 6 | 192, c1 & 63 | 128);\n } else {\n enc = String.fromCharCode(c1 >> 12 | 224, c1 >> 6 & 63 | 128, c1 & 63 | 128);\n }\n if (enc !== null) {\n if (end > start) {\n utftext += string.slice(start, end);\n }\n utftext += enc;\n start = end = n + 1;\n }\n n++;\n }\n if (end > start) {\n utftext += string.slice(start, stringl);\n }\n return utftext;\n};\n","/*\n * Includes common utility methods and shims\n */\n\n/**\n * Return true if all items in list are strings\n * @function Util.allString\n * @param {Array} list - an array of items\n */\nexport var allStrings = function(list) {\n return list.length && list.every(value => typeof value === 'string');\n};\n\n/**\n* Creates a new array without the given item.\n* @function Util.without\n* @param {Array} array - original array\n* @param {*} item - the item to exclude from the new array\n* @return {Array} a new array made of the original array's items except for `item`\n */\nexport var without = function(array, item) {\n return array.filter(v=>v!==item);\n};\n\n/**\n* Return true is value is a number or a string representation of a number.\n* @function Util.isNumberLike\n* @param {*} value\n* @returns {boolean} true if value is a number\n* @example\n* Util.isNumber(0) // true\n* Util.isNumber(\"1.3\") // true\n* Util.isNumber(\"\") // false\n* Util.isNumber(undefined) // false\n */\nexport var isNumberLike = function(value) {\n return (value != null) && !isNaN(parseFloat(value));\n};\n\n/**\n * Escape all characters matching unsafe in the given string\n * @function Util.smartEscape\n * @param {string} string - source string to escape\n * @param {RegExp} unsafe - characters that must be escaped\n * @return {string} escaped string\n */\nexport var smartEscape = function(string, unsafe = /([^a-zA-Z0-9_.\\-\\/:]+)/g) {\n return string.replace(unsafe, function(match) {\n return match.split(\"\").map(function(c) {\n return \"%\" + c.charCodeAt(0).toString(16).toUpperCase();\n }).join(\"\");\n });\n};\n\n/**\n * Assign values from sources if they are not defined in the destination.\n * Once a value is set it does not change\n * @function Util.defaults\n * @param {Object} destination - the object to assign defaults to\n * @param {...Object} source - the source object(s) to assign defaults from\n * @return {Object} destination after it was modified\n */\nexport var defaults = function(destination, ...sources) {\n return sources.reduce(function(dest, source) {\n let key, value;\n for (key in source) {\n value = source[key];\n if (dest[key] === void 0) {\n dest[key] = value;\n }\n }\n return dest;\n }, destination);\n};\n\n/*********** lodash functions */\nexport var objectProto = Object.prototype;\n\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\nexport var objToString = objectProto.toString;\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n#isObject({});\n * // => true\n *\n#isObject([1, 2, 3]);\n * // => true\n *\n#isObject(1);\n * // => false\n */\nexport var isObject = function(value) {\n var type;\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n type = typeof value;\n return !!value && (type === 'object' || type === 'function');\n};\n\nexport var funcTag = '[object Function]';\n\n/**\n* Checks if `value` is classified as a `Function` object.\n* @function Util.isFunction\n* @param {*} value The value to check.\n* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n* @example\n*\n* function Foo(){};\n* isFunction(Foo);\n* // => true\n*\n* isFunction(/abc/);\n* // => false\n */\nexport var isFunction = function(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in older versions of Chrome and Safari which return 'function' for regexes\n // and Safari 8 which returns 'object' for typed array constructors.\n return isObject(value) && objToString.call(value) === funcTag;\n};\n\n/*********** lodash functions */\n/** Used to match words to create compound words. */\nexport var reWords = (function() {\n var lower, upper;\n upper = '[A-Z]';\n lower = '[a-z]+';\n return RegExp(upper + '+(?=' + upper + lower + ')|' + upper + '?' + lower + '|' + upper + '+|[0-9]+', 'g');\n})();\n\n/**\n* Convert string to camelCase\n* @function Util.camelCase\n* @param {string} source - the string to convert\n* @return {string} in camelCase format\n */\nexport var camelCase = function(source) {\n var words = source.match(reWords);\n words = words.map(word=> word.charAt(0).toLocaleUpperCase() + word.slice(1).toLocaleLowerCase());\n words[0] = words[0].toLocaleLowerCase();\n\n return words.join('');\n};\n\n/**\n * Convert string to snake_case\n * @function Util.snakeCase\n * @param {string} source - the string to convert\n * @return {string} in snake_case format\n */\nexport var snakeCase = function(source) {\n var words = source.match(reWords);\n words = words.map(word=> word.toLocaleLowerCase());\n return words.join('_');\n};\n\n/**\n * Creates a new object from source, with the keys transformed using the converter.\n * @param {object} source\n * @param {function|null} converter\n * @returns {object}\n */\nexport var convertKeys = function(source, converter) {\n var result, value;\n result = {};\n for (let key in source) {\n value = source[key];\n if(converter) {\n key = converter(key);\n }\n if (!isEmpty(key)) {\n result[key] = value;\n }\n }\n return result;\n};\n\n/**\n * Create a copy of the source object with all keys in camelCase\n * @function Util.withCamelCaseKeys\n * @param {Object} value - the object to copy\n * @return {Object} a new object\n */\nexport var withCamelCaseKeys = function(source) {\n return convertKeys(source, camelCase);\n};\n\n/**\n * Create a copy of the source object with all keys in snake_case\n * @function Util.withSnakeCaseKeys\n * @param {Object} value - the object to copy\n * @return {Object} a new object\n */\nexport var withSnakeCaseKeys = function(source) {\n return convertKeys(source, snakeCase);\n};\n\n// Browser\n// Node.js\nexport var base64Encode = typeof btoa !== 'undefined' && isFunction(btoa) ? btoa : typeof Buffer !== 'undefined' && isFunction(Buffer) ? function(input) {\n if (!(input instanceof Buffer)) {\n input = new Buffer.from(String(input), 'binary');\n }\n return input.toString('base64');\n} : function(input) {\n throw new Error(\"No base64 encoding function found\");\n};\n\n/**\n* Returns the Base64-decoded version of url. \n* This method delegates to `btoa` if present. Otherwise it tries `Buffer`.\n* @function Util.base64EncodeURL\n* @param {string} url - the url to encode. the value is URIdecoded and then re-encoded before converting to base64 representation\n* @return {string} the base64 representation of the URL\n */\nexport var base64EncodeURL = function(url) {\n try {\n url = decodeURI(url);\n } finally {\n url = encodeURI(url);\n }\n return base64Encode(url);\n};\n\n/**\n * A list of keys used by the url() function.\n * @private\n */\nconst URL_KEYS = [\n 'api_secret',\n 'auth_token',\n 'cdn_subdomain',\n 'cloud_name',\n 'cname',\n 'format',\n 'private_cdn',\n 'resource_type',\n 'secure',\n 'secure_cdn_subdomain',\n 'secure_distribution',\n 'shorten',\n 'sign_url',\n 'ssl_detected',\n 'type',\n 'url_suffix',\n 'use_root_path',\n 'version'\n];\n\n/**\n * Create a new object with only URL parameters\n * @param {object} options The source object\n * @return {Object} An object containing only URL parameters\n */\nexport function extractUrlParams(options) {\n return URL_KEYS.reduce((obj, key) => {\n if (options[key] != null) {\n obj[key] = options[key];\n }\n return obj;\n }, {});\n}\n\n\n/**\n * Handle the format parameter for fetch urls\n * @private\n * @param options url and transformation options. This argument may be changed by the function!\n */\nexport function patchFetchFormat(options) {\n if(options == null) {\n options = {};\n }\n if (options.type === \"fetch\") {\n if (options.fetch_format == null) {\n options.fetch_format = optionConsume(options, \"format\");\n }\n }\n}\n\n/**\n * Deletes `option_name` from `options` and return the value if present.\n * If `options` doesn't contain `option_name` the default value is returned.\n * @param {Object} options a collection\n * @param {String} option_name the name (key) of the desired value\n * @param {*} [default_value] the value to return is option_name is missing\n */\nexport function optionConsume(options, option_name, default_value) {\n let result = options[option_name];\n delete options[option_name];\n if (result != null) {\n return result;\n } else {\n return default_value;\n }\n}\n\n/**\n * Returns true if value is empty:\n * \n * value is null or undefined \n * value is an array or string of length 0 \n * value is an object with no keys \n * \n * @function Util.isEmpty\n * @param value\n * @returns {boolean} true if value is empty\n */\nexport function isEmpty(value) {\n if(value == null) {\n return true;\n }\n if( typeof value.length == \"number\") {\n return value.length === 0;\n }\n if( typeof value.size == \"number\") {\n return value.size === 0;\n }\n if(typeof value == \"object\") {\n for(let key in value) {\n if(value.hasOwnProperty(key)) {\n return false;\n }\n }\n return true;\n }\n return true;\n}\n","/**\n * Return the first argument whose value is not null\n * @param args\n * @returns {*}\n */\nlet firstNotNull = function firstNotNull(...args) {\n while(args && args.length > 0) {\n let next = args.shift();\n if( next != null){\n return next;\n }\n }\n return null;\n};\n\nexport default firstNotNull;\n","\n/**\n * Helper function. Gets or populates srcset breakpoints using provided parameters\n * Either the breakpoints or min_width, max_width, max_images must be provided.\n *\n * @module utils\n * @private\n * @param {srcset} srcset Options with either `breakpoints` or `min_width`, `max_width`, and `max_images`\n *\n * @return {number[]} Array of breakpoints\n *\n */\nexport default function generateBreakpoints(srcset) {\n let breakpoints = srcset.breakpoints || [];\n if (breakpoints.length) {\n return breakpoints;\n }\n let [min_width, max_width, max_images] = [srcset.min_width, srcset.max_width, srcset.max_images].map(Number);\n if ([min_width, max_width, max_images].some(isNaN)) {\n throw 'Either (min_width, max_width, max_images) ' +\n 'or breakpoints must be provided to the image srcset attribute';\n }\n\n if (min_width > max_width) {\n throw 'min_width must be less than max_width'\n }\n\n if (max_images <= 0) {\n throw 'max_images must be a positive integer';\n } else if (max_images === 1) {\n min_width = max_width;\n }\n\n let stepSize = Math.ceil((max_width - min_width) / Math.max(max_images - 1, 1));\n for (let current = min_width; current < max_width; current += stepSize) {\n breakpoints.push(current);\n }\n breakpoints.push(max_width);\n return breakpoints;\n}\n","/**\n * Includes utility methods and lodash / jQuery shims\n */\nexport * from './baseutil';\n\n/**\n * Get data from the DOM element.\n *\n * This method will use jQuery's `data()` method if it is available, otherwise it will get the `data-` attribute\n * @param {Element} element - the element to get the data from\n * @param {string} name - the name of the data item\n * @returns the value associated with the `name`\n * @function Util.getData\n */\nexport var getData = function(element, name) {\n return jQuery(element).data(name);\n};\n\n/**\n* Set data in the DOM element.\n*\n* This method will use jQuery's `data()` method if it is available, otherwise it will set the `data-` attribute\n* @function Util.setData\n* @param {Element} element - the element to set the data in\n* @param {string} name - the name of the data item\n* @param {*} value - the value to be set\n*\n */\nexport var setData = function(element, name, value) {\n return jQuery(element).data(name, value);\n};\n\n/**\n* Get attribute from the DOM element.\n*\n* This method will use jQuery's `attr()` method if it is available, otherwise it will get the attribute directly\n* @function Util.getAttribute\n* @param {Element} element - the element to set the attribute for\n* @param {string} name - the name of the attribute\n* @returns {*} the value of the attribute\n*\n */\nexport var getAttribute = function(element, name) {\n return jQuery(element).attr(name);\n};\n\n/**\n* Set attribute in the DOM element.\n*\n* This method will use jQuery's `attr()` method if it is available, otherwise it will set the attribute directly\n* @function Util.setAttribute\n* @param {Element} element - the element to set the attribute for\n* @param {string} name - the name of the attribute\n* @param {*} value - the value to be set\n */\nexport var setAttribute = function(element, name, value) {\n return jQuery(element).attr(name, value);\n};\n\n/**\n * Remove an attribute in the DOM element.\n *\n * @function Util.removeAttribute\n * @param {Element} element - the element to set the attribute for\n * @param {string} name - the name of the attribute\n */\nexport var removeAttribute = function(element, name) {\n return jQuery(element).removeAttr(name);\n};\n\n/**\n* Set a group of attributes to the element\n* @function Util.setAttributes\n* @param {Element} element - the element to set the attributes for\n* @param {Object} attributes - a hash of attribute names and values\n */\nexport var setAttributes = function(element, attributes) {\n return jQuery(element).attr(attributes);\n};\n\n/**\n* Checks if element has a css class\n* @function Util.hasClass\n* @param {Element} element - the element to check\n* @param {string} name - the class name\n@returns {boolean} true if the element has the class\n */\nexport var hasClass = function(element, name) {\n return jQuery(element).hasClass(name);\n};\n\n/**\n* Add class to the element\n* @function Util.addClass\n* @param {Element} element - the element\n* @param {string} name - the class name to add\n */\nexport var addClass = function(element, name) {\n return jQuery(element).addClass(name);\n};\n\nexport var width = function(element) {\n return jQuery(element).width();\n};\n\n/**\n * Returns true if item is a string\n * @param item\n * @returns {boolean} true if item is a string\n */\nexport var isString = function(item) {\n return typeof item === 'string' || (item != null ? item.toString() : void 0) === '[object String]';\n};\n\n/**\n * Recursively assign source properties to destination\n * @function Util.merge\n * @param {Object} destination - the object to assign to\n * @param {...Object} [sources] The source objects.\n */\nexport var merge = function() {\n var args, i;\n args = (function() {\n var j, len, results;\n results = [];\n for (j = 0, len = arguments.length; j < len; j++) {\n i = arguments[j];\n results.push(i);\n }\n return results;\n }).apply(this, arguments);\n args.unshift(true); // deep extend\n return jQuery.extend.apply(this, args);\n};\n\n/**\n * Creates a new array from the parameter with \"falsey\" values removed\n * @function Util.compact\n * @param {Array} array - the array to remove values from\n * @return {Array} a new array without falsey values\n */\nexport var compact = function(arr) {\n var item, j, len, results;\n results = [];\n for (j = 0, len = arr.length; j < len; j++) {\n item = arr[j];\n if (item) {\n results.push(item);\n }\n }\n return results;\n};\n\n/**\n * Create a new copy of the given object, including all internal objects.\n * @function Util.cloneDeep\n * @param {Object} value - the object to clone\n * @return {Object} a new deep copy of the object\n */\nexport var cloneDeep = function() {\n var args;\n args = jQuery.makeArray(arguments);\n args.unshift({}); // add \"fresh\" destination\n args.unshift(true); // deep\n return jQuery.extend.apply(this, args);\n};\n\n/**\n * Check if a given item is included in the given array\n * @function Util.contains\n * @param {Array} array - the array to search in\n * @param {*} item - the item to search for\n * @return {boolean} true if the item is included in the array\n */\nexport var contains = function(arr, item) {\n var i, j, len;\n for (j = 0, len = arr.length; j < len; j++) {\n i = arr[j];\n if (i === item) {\n return true;\n }\n }\n return false;\n};\n\n/**\n * Returns values in the given array that are not included in the other array\n * @function Util.difference\n * @param {Array} arr - the array to select from\n * @param {Array} values - values to filter from arr\n * @return {Array} the filtered values\n */\nexport var difference = function(arr, values) {\n var item, j, len, results;\n results = [];\n for (j = 0, len = arr.length; j < len; j++) {\n item = arr[j];\n if (!contains(values, item)) {\n results.push(item);\n }\n }\n return results;\n};\n\n/**\n * Returns a list of all the function names in obj\n * @function Util.functions\n * @param {Object} object - the object to inspect\n * @return {Array} a list of functions of object\n */\nexport var functions = function(object) {\n var i, results;\n results = [];\n for (i in object) {\n if (jQuery.isFunction(object[i])) {\n results.push(i);\n }\n }\n return results;\n};\n\n/**\n * Returns the provided value. This functions is used as a default predicate function.\n * @function Util.identity\n * @param {*} value\n * @return {*} the provided value\n */\nexport var identity = function(value) {\n return value;\n};\n\n/**\n * @class Util\n */\nexport var isArray = jQuery.isArray;\n\nexport var assign = jQuery.extend;\n\nexport var isPlainObject = jQuery.isPlainObject;\n\n/**\n * Remove leading or trailing spaces from text\n * @function Util.trim\n * @param {string} text\n * @return {string} the `text` without leading or trailing spaces\n */\nexport var trim = jQuery.trim;\n","import * as utils from '../util';\n\nconst isEmpty = utils.isEmpty;\nimport generateBreakpoints from './generateBreakpoints';\nimport Transformation from '../transformation';\nimport url from '../url';\n\n/**\n * Options used to generate the srcset attribute.\n * @typedef {object} srcset\n * @property {(number[]|string[])} [breakpoints] An array of breakpoints.\n * @property {number} [min_width] Minimal width of the srcset images.\n * @property {number} [max_width] Maximal width of the srcset images.\n * @property {number} [max_images] Number of srcset images to generate.\n * @property {object|string} [transformation] The transformation to use in the srcset urls.\n * @property {boolean} [sizes] Whether to calculate and add the sizes attribute.\n */\n\n/**\n * Options used to generate the srcset attribute.\n * @typedef {object} srcset\n * @property {(number[]|string[])} [breakpoints] An array of breakpoints.\n * @property {number} [min_width] Minimal width of the srcset images.\n * @property {number} [max_width] Maximal width of the srcset images.\n * @property {number} [max_images] Number of srcset images to generate.\n * @property {object|string} [transformation] The transformation to use in the srcset urls.\n * @property {boolean} [sizes] Whether to calculate and add the sizes attribute.\n */\n\n/**\n * Helper function. Generates a single srcset item url\n *\n * @private\n * @param {string} public_id Public ID of the resource.\n * @param {number} width Width in pixels of the srcset item.\n * @param {object|string} transformation\n * @param {object} options Additional options.\n *\n * @return {string} Resulting URL of the item\n */\nexport function scaledUrl(public_id, width, transformation, options = {}) {\n let configParams = utils.extractUrlParams(options);\n transformation = transformation || options;\n configParams.raw_transformation = new Transformation([utils.merge({}, transformation), {\n crop: 'scale',\n width: width\n }]).toString();\n\n return url(public_id, configParams);\n}\n\n/**\n * If cache is enabled, get the breakpoints from the cache. If the values were not found in the cache,\n * or cache is not enabled, generate the values.\n * @param {srcset} srcset The srcset configuration parameters\n * @param {string} public_id\n * @param {object} options\n * @return {*|Array}\n */\nexport function getOrGenerateBreakpoints(public_id, srcset = {}, options = {}) {\n return generateBreakpoints(srcset);\n}\n\n/**\n * Helper function. Generates srcset attribute value of the HTML img tag\n * @private\n *\n * @param {string} public_id Public ID of the resource\n * @param {number[]} breakpoints An array of breakpoints (in pixels)\n * @param {object} transformation The transformation\n * @param {object} options Includes html tag options, transformation options\n * @return {string} Resulting srcset attribute value\n */\nexport function generateSrcsetAttribute(public_id, breakpoints, transformation, options) {\n options = utils.cloneDeep(options);\n utils.patchFetchFormat(options);\n return breakpoints.map(width => `${scaledUrl(public_id, width, transformation, options)} ${width}w`).join(', ');\n}\n\n/**\n * Helper function. Generates sizes attribute value of the HTML img tag\n * @private\n * @param {number[]} breakpoints An array of breakpoints.\n * @return {string} Resulting sizes attribute value\n */\nexport function generateSizesAttribute(breakpoints) {\n if (breakpoints == null) {\n return '';\n }\n return breakpoints.map(width => `(max-width: ${width}px) ${width}px`).join(', ');\n}\n\n/**\n * Helper function. Generates srcset and sizes attributes of the image tag\n *\n * Generated attributes are added to attributes argument\n *\n * @private\n * @param {string} publicId The public ID of the resource\n * @param {object} attributes Existing HTML attributes.\n * @param {srcset} srcsetData\n * @param {object} options Additional options.\n *\n * @return array The responsive attributes\n */\nexport function generateImageResponsiveAttributes(publicId, attributes = {}, srcsetData = {}, options = {}) {\n // Create both srcset and sizes here to avoid fetching breakpoints twice\n\n let responsiveAttributes = {};\n if (isEmpty(srcsetData)) {\n return responsiveAttributes;\n }\n\n const generateSizes = (!attributes.sizes && srcsetData.sizes === true);\n\n const generateSrcset = !attributes.srcset;\n if (generateSrcset || generateSizes) {\n let breakpoints = getOrGenerateBreakpoints(publicId, srcsetData, options);\n\n if (generateSrcset) {\n let transformation = srcsetData.transformation;\n let srcsetAttr = generateSrcsetAttribute(publicId, breakpoints, transformation, options);\n if (!isEmpty(srcsetAttr)) {\n responsiveAttributes.srcset = srcsetAttr;\n }\n }\n\n if (generateSizes) {\n let sizesAttr = generateSizesAttribute(breakpoints);\n if (!isEmpty(sizesAttr)) {\n responsiveAttributes.sizes = sizesAttr;\n }\n }\n }\n return responsiveAttributes;\n}\n\n/**\n * Generate a media query\n *\n * @private\n * @param {object} options configuration options\n * @param {number|string} options.min_width\n * @param {number|string} options.max_width\n * @return {string} a media query string\n */\nexport function generateMediaAttr(options) {\n let mediaQuery = [];\n if (options != null) {\n if (options.min_width != null) {\n mediaQuery.push(`(min-width: ${options.min_width}px)`);\n }\n if (options.max_width != null) {\n mediaQuery.push(`(max-width: ${options.max_width}px)`);\n }\n }\n return mediaQuery.join(' and ');\n}\n\nexport const srcsetUrl = scaledUrl;\n"],"sourceRoot":""}
\ No newline at end of file
diff --git a/cloudinary-jquery.min.js b/cloudinary-jquery.min.js
index 4b06a4f..842d435 100644
--- a/cloudinary-jquery.min.js
+++ b/cloudinary-jquery.min.js
@@ -1 +1 @@
-!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.cloudinary=e():t.cloudinary=e()}(this,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"getData",function(){return j}),n.d(r,"setData",function(){return S}),n.d(r,"getAttribute",function(){return P}),n.d(r,"setAttribute",function(){return x}),n.d(r,"removeAttribute",function(){return T}),n.d(r,"setAttributes",function(){return R}),n.d(r,"hasClass",function(){return z}),n.d(r,"addClass",function(){return I}),n.d(r,"width",function(){return Q}),n.d(r,"isEmpty",function(){return V}),n.d(r,"isString",function(){return N}),n.d(r,"merge",function(){return L}),n.d(r,"compact",function(){return M}),n.d(r,"cloneDeep",function(){return H}),n.d(r,"contains",function(){return U}),n.d(r,"difference",function(){return W}),n.d(r,"functions",function(){return $}),n.d(r,"identity",function(){return q}),n.d(r,"isArray",function(){return Y}),n.d(r,"assign",function(){return Z}),n.d(r,"isPlainObject",function(){return G}),n.d(r,"trim",function(){return K}),n.d(r,"allStrings",function(){return c}),n.d(r,"without",function(){return s}),n.d(r,"isNumberLike",function(){return l}),n.d(r,"smartEscape",function(){return f}),n.d(r,"defaults",function(){return p}),n.d(r,"objectProto",function(){return h}),n.d(r,"objToString",function(){return y}),n.d(r,"isObject",function(){return v}),n.d(r,"funcTag",function(){return d}),n.d(r,"isFunction",function(){return m}),n.d(r,"reWords",function(){return g}),n.d(r,"camelCase",function(){return b}),n.d(r,"snakeCase",function(){return _}),n.d(r,"convertKeys",function(){return D}),n.d(r,"withCamelCaseKeys",function(){return B}),n.d(r,"withSnakeCaseKeys",function(){return w}),n.d(r,"base64Encode",function(){return A}),n.d(r,"base64EncodeURL",function(){return E}),n.d(r,"extractUrlParams",function(){return k}),n.d(r,"patchFetchFormat",function(){return F}),n.d(r,"optionConsume",function(){return O});var o={};n.r(o),n.d(o,"VERSION",function(){return se}),n.d(o,"CF_SHARED_CDN",function(){return le}),n.d(o,"OLD_AKAMAI_SHARED_CDN",function(){return fe}),n.d(o,"AKAMAI_SHARED_CDN",function(){return pe}),n.d(o,"SHARED_CDN",function(){return he}),n.d(o,"DEFAULT_POSTER_OPTIONS",function(){return ye}),n.d(o,"DEFAULT_VIDEO_SOURCE_TYPES",function(){return ve}),n.d(o,"SEO_TYPES",function(){return de}),n.d(o,"DEFAULT_IMAGE_PARAMS",function(){return me}),n.d(o,"DEFAULT_VIDEO_PARAMS",function(){return ge});var i=function(t){var e,n,r,o,i,u,a,c;if(null==t)return"";for(c="",i=void 0,r=void 0,0,i=r=0,a=(u=t+"").length,o=0;o<128?r++:n=e>127&&e<2048?String.fromCharCode(e>>6|192,63&e|128):String.fromCharCode(e>>12|224,e>>6&63|128,63&e|128),null!==n&&(r>i&&(c+=u.slice(i,r)),c+=n,i=r=o+1),o++;return r>i&&(c+=u.slice(i,a)),c},u=function(t){var e,n,r,o;for("00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D",e=0,0,o=0,e^=-1,n=0,r=(t=i(t)).length;n>>8^"0x"+"00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D".substr(9*o,8),n++;return(e^=-1)<0&&(e+=4294967296),e};function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var c=function(t){return t.length&&t.every(N)},s=function(t,e){return t.filter(function(t){return t!==e})},l=function(t){return null!=t&&!isNaN(parseFloat(t))},f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/([^a-zA-Z0-9_.\-\/:]+)/g;return t.replace(e,function(t){return t.split("").map(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}).join("")})},p=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:q;for(e in n={},t)r=t[e],e=o(e),V(e)||(n[e]=r);return n},B=function(t){return D(t,b)},w=function(t){return D(t,_)},A="undefined"!=typeof btoa&&m(btoa)?btoa:"undefined"!=typeof Buffer&&m(Buffer)?function(t){return t instanceof Buffer||(t=new Buffer.from(String(t),"binary")),t.toString("base64")}:function(t){throw new Error("No base64 encoding function found")},E=function(t){try{t=decodeURI(t)}finally{t=encodeURI(t)}return A(t)},C=["api_secret","auth_token","cdn_subdomain","cloud_name","cname","format","private_cdn","resource_type","secure","secure_cdn_subdomain","secure_distribution","shorten","sign_url","ssl_detected","type","url_suffix","use_root_path","version"];function k(t){return C.reduce(function(e,n){return null!=t[n]&&(e[n]=t[n]),e},{})}function F(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"fetch"===t.type&&null==t.fetch_format&&(t.fetch_format=O(t,"format"))}function O(t,e,n){var r=t[e];return delete t[e],null!=r?r:n}var j=function(t,e){return jQuery(t).data(e)},S=function(t,e,n){return jQuery(t).data(e,n)},P=function(t,e){return jQuery(t).attr(e)},x=function(t,e,n){return jQuery(t).attr(e,n)},T=function(t,e){return jQuery(t).removeAttr(e)},R=function(t,e){return jQuery(t).attr(e)},z=function(t,e){return jQuery(t).hasClass(e)},I=function(t,e){return jQuery(t).addClass(e)},Q=function(t){return jQuery(t).width()},V=function(t){return null==t||(jQuery.isArray(t)||N(t))&&0===t.length||jQuery.isPlainObject(t)&&jQuery.isEmptyObject(t)},N=function(t){return"string"==typeof t||"[object String]"===(null!=t?t.toString():void 0)},L=function(){var t,e;return(t=function(){var t,n,r;for(r=[],t=0,n=arguments.length;t=|<=|&&|!=|>|=|<|/|-|\\+|\\*",n="((\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\+|\\*)(?=[ _])|"+Object.keys(t.PREDEFINED_VARS).join("|")+")",r=new RegExp(n,"g"),(e=e.replace(r,function(e){return t.OPERATORS[e]||t.PREDEFINED_VARS[e]})).replace(/[ _]+/g,"_"))}},{key:"variable",value:function(t,e){return new this(t).value(e)}},{key:"width",value:function(){return new this("width")}},{key:"height",value:function(){return new this("height")}},{key:"initialWidth",value:function(){return new this("initialWidth")}},{key:"initialHeight",value:function(){return new this("initialHeight")}},{key:"aspectRatio",value:function(){return new this("aspectRatio")}},{key:"initialAspectRatio",value:function(){return new this("initialAspectRatio")}},{key:"pageCount",value:function(){return new this("pageCount")}},{key:"faceCount",value:function(){return new this("faceCount")}},{key:"currentPage",value:function(){return new this("currentPage")}},{key:"tags",value:function(){return new this("tags")}},{key:"pageX",value:function(){return new this("pageX")}},{key:"pageY",value:function(){return new this("pageY")}}],(n=[{key:"serialize",value:function(){return t.normalize(this.expressions.join("_"))}},{key:"toString",value:function(){return this.serialize()}},{key:"getParent",value:function(){return this.parent}},{key:"setParent",value:function(t){return this.parent=t,this}},{key:"predicate",value:function(e,n,r){return null!=t.OPERATORS[n]&&(n=t.OPERATORS[n]),this.expressions.push("".concat(e,"_").concat(n,"_").concat(r)),this}},{key:"and",value:function(){return this.expressions.push("and"),this}},{key:"or",value:function(){return this.expressions.push("or"),this}},{key:"then",value:function(){return this.getParent().if(this.toString())}},{key:"height",value:function(t,e){return this.predicate("h",t,e)}},{key:"width",value:function(t,e){return this.predicate("w",t,e)}},{key:"aspectRatio",value:function(t,e){return this.predicate("ar",t,e)}},{key:"pageCount",value:function(t,e){return this.predicate("pc",t,e)}},{key:"faceCount",value:function(t,e){return this.predicate("fc",t,e)}},{key:"value",value:function(t){return this.expressions.push(t),this}}])&&X(e.prototype,n),r&&X(e,r),t}();J.OPERATORS={"=":"eq","!=":"ne","<":"lt",">":"gt","<=":"lte",">=":"gte","&&":"and","||":"or","*":"mul","/":"div","+":"add","-":"sub"},J.PREDEFINED_VARS={aspect_ratio:"ar",aspectRatio:"ar",current_page:"cp",currentPage:"cp",face_count:"fc",faceCount:"fc",height:"h",initial_aspect_ratio:"iar",initial_height:"ih",initial_width:"iw",initialAspectRatio:"iar",initialHeight:"ih",initialWidth:"iw",page_count:"pc",page_x:"px",page_y:"py",pageCount:"pc",pageX:"px",pageY:"py",tags:"tags",width:"w"},J.BOUNDRY="[ _]+";var tt=J;function et(t){return(et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nt(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,Configuration),this.configuration=H(t),p(this.configuration,lt)}var t,e,n;return t=Configuration,(e=[{key:"init",value:function(){return this.fromEnvironment(),this.fromDocument(),this}},{key:"set",value:function(t,e){return this.configuration[t]=e,this}},{key:"get",value:function(t){return this.configuration[t]}},{key:"merge",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z(this.configuration,H(t)),this}},{key:"fromDocument",value:function(){var t,e,n,r;if(r="undefined"!=typeof document&&null!==document?document.querySelectorAll('meta[name^="cloudinary_"]'):void 0)for(e=0,n=r.length;e2&&void 0!==arguments[2]?arguments[2]:q;It(this,t),this.name=e,this.shortName=n,this.process=r}return Vt(t,[{key:"set",value:function(t){return this.origValue=t,this}},{key:"serialize",value:function(){var t,e;return t=this.value(),e=Y(t)||G(t)||N(t)?!V(t):null!=t,null!=this.shortName&&e?"".concat(this.shortName,"_").concat(t):""}},{key:"value",value:function(){return this.process(this.origValue)}},{key:"build_array",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Y(t)?t:[t]}}],[{key:"norm_color",value:function(t){return null!=t?t.replace(/^#/,"rgb:"):void 0}},{key:"process_video_params",value:function(t){var e;switch(t.constructor){case Object:return e="","codec"in t&&(e=t.codec,"profile"in t&&(e+=":"+t.profile,"level"in t&&(e+=":"+t.level))),e;case String:return t;default:return null}}}]),t}(),Lt=function(t){function e(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",i=arguments.length>3?arguments[3]:void 0;return It(this,e),(r=Pt(this,Tt(e).call(this,t,n,i))).sep=o,r}return Rt(e,Nt),Vt(e,[{key:"serialize",value:function(){if(null!=this.shortName){var t=this.value();if(V(t))return"";if(N(t))return"".concat(this.shortName,"_").concat(t);var e=t.map(function(t){return m(t.serialize)?t.serialize():t}).join(this.sep);return"".concat(this.shortName,"_").concat(e)}return""}},{key:"value",value:function(){var t=this;return Y(this.origValue)?this.origValue.map(function(e){return t.process(e)}):this.process(this.origValue)}},{key:"set",value:function(t){return null==t||Y(t)?xt(Tt(e.prototype),"set",this).call(this,t):xt(Tt(e.prototype),"set",this).call(this,[t])}}]),e}(),Mt=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"t",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",i=arguments.length>3?arguments[3]:void 0;return It(this,e),(n=Pt(this,Tt(e).call(this,t,r,i))).sep=o,n}return Rt(e,Nt),Vt(e,[{key:"serialize",value:function(){var t=this;if(V(this.value()))return"";if(c(this.value())){var e=this.value().join(this.sep);return V(e)?"":"".concat(this.shortName,"_").concat(e)}return this.value().map(function(e){return N(e)&&!V(e)?"".concat(t.shortName,"_").concat(e):m(e.serialize)?e.serialize():G(e)&&!V(e)?new ie(e).serialize():void 0}).filter(function(t){return t})}},{key:"set",value:function(t){return this.origValue=t,Y(this.origValue)?xt(Tt(e.prototype),"set",this).call(this,this.origValue):xt(Tt(e.prototype),"set",this).call(this,[this.origValue])}}]),e}(),Ht=function(t){function e(t,n,r){var o;return It(this,e),(o=Pt(this,Tt(e).call(this,t,n,r))).process||(o.process=o.norm_range_value),o}return Rt(e,Nt),Vt(e,null,[{key:"norm_range_value",value:function(t){var e,n;return(n=String(t).match(new RegExp("^"+offset_any_pattern+"$")))&&(e=null!=n[5]?"p":"",t=(n[1]||n[4])+e),t}}]),e}(),Ut=function(t){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:q;return It(this,e),Pt(this,Tt(e).call(this,t,n,r))}return Rt(e,Nt),Vt(e,[{key:"serialize",value:function(){return this.value()}}]),e}(),Wt=function(t){function e(){return It(this,e),Pt(this,Tt(e).apply(this,arguments))}return Rt(e,Nt),Vt(e,[{key:"value",value:function(){var t=this.origValue;return G(t)?"text"===(t=B(t)).resourceType||null!=t.text?new bt(t).toString():"subtitles"===t.resourceType?new At(t).toString():"fetch"===t.resourceType||null!=t.url?new jt(t).toString():new ht(t).toString():N(t)&&/^fetch:.+/.test(t)?new jt(t.substr(6)).toString():t}},{key:"textStyle",value:function(t){return new bt(t).textStyleIdentifier()}}]),e}();function $t(t){return($t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qt(t,e){return!e||"object"!==$t(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Yt(t){return(Yt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Zt(t,e){return(Zt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Gt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Kt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xt(t,e){for(var n=0;n1?e-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{};Kt(this,t),e=void 0,n={},this.toOptions=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e={};if(Object.keys(n).forEach(function(t){return e[t]=n[t].origValue}),te(e,this.otherOptions),t&&!V(this.chained)){var r=this.chained.map(function(t){return t.toOptions()});r.push(e),te(e={},this.otherOptions),e.transformation=r}return e},this.setParent=function(t){return e=t,null!=t&&this.fromOptions("function"==typeof t.toOptions?t.toOptions():void 0),this},this.getParent=function(){return e},this.param=function(t,e,r,o,i){return null==i&&(i=m(o)?o:q),n[e]=new Nt(e,r,i).set(t),this},this.rawParam=function(t,e,r,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return i=re(arguments),n[e]=new Ut(e,r,i).set(t),this},this.rangeParam=function(t,e,r,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return i=re(arguments),n[e]=new Ht(e,r,i).set(t),this},this.arrayParam=function(t,e,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:":",i=(arguments.length>4&&void 0!==arguments[4]&&arguments[4],arguments.length>5&&void 0!==arguments[5]&&arguments[5]);return i=re(arguments),n[e]=new Lt(e,r,o,i).set(t),this},this.transformationParam=function(t,e,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=(arguments.length>4&&arguments[4],arguments.length>5&&void 0!==arguments[5]&&arguments[5]);return i=re(arguments),n[e]=new Mt(e,r,o,i).set(t),this},this.layerParam=function(t,e,r){return n[e]=new Wt(e,r).set(t),this},this.getValue=function(t){var e=n[t]&&n[t].value();return null!=e?e:this.otherOptions[t]},this.get=function(t){return n[t]},this.remove=function(t){var e;switch(!1){case null==n[t]:return e=n[t],delete n[t],e.origValue;case null==this.otherOptions[t]:return e=this.otherOptions[t],delete this.otherOptions[t],e;default:return null}},this.keys=function(){var t;return function(){var e;for(t in e=[],n)null!=t&&e.push(t.match(ne)?t:_(t));return e}().sort()},this.toPlainObject=function(){var t,e,r;for(e in t={},n)t[e]=n[e].value(),G(t[e])&&(t[e]=H(t[e]));return V(this.chained)||((r=this.chained.map(function(t){return t.toPlainObject()})).push(t),t={transformation:r}),t},this.chain=function(){var t;return 0!==Object.getOwnPropertyNames(n).length&&(t=new this.constructor(this.toOptions(!1)),this.resetTransformations(),this.chained.push(t)),this},this.resetTransformations=function(){return n={},this},this.otherOptions={},this.chained=[],V(r)||this.fromOptions(r)}return Jt(t,[{key:"fromOptions",value:function(e){var n,r;if(e instanceof t)this.fromTransformation(e);else for(n in e||(e={}),(N(e)||Y(e))&&(e={transformation:e}),(e=H(e,function(e){if(e instanceof t)return new e.constructor(e.toOptions())})).if&&(this.set("if",e.if),delete e.if),e)r=e[n],n.match(ne)?"$attr"!==n&&this.set("variable",n,r):this.set(n,r);return this}},{key:"fromTransformation",value:function(e){var n=this;return e instanceof t&&e.keys().forEach(function(t){return n.set(t,e.get(t).origValue)}),this}},{key:"set",value:function(t){var e;e=b(t);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o=1&&null==r.width&&(r.width=a),parseFloat(e)>=1&&null==r.height&&(r.height=e)),r}},{key:"isValidParamName",value:function(t){return oe.methods.indexOf(b(t))>=0}},{key:"toHtml",value:function(){var t;return null!=(t=this.getParent())&&"function"==typeof t.toHtml?t.toHtml():void 0}},{key:"toString",value:function(){return this.serialize()}}]),t}(),ne=/^\$[a-zA-Z0-9]+$/;function re(t){var e;return e=null!=t?t[t.length-1]:void 0,m(e)?e:void 0}ee.prototype.trans_separator="/",ee.prototype.param_separator=",";var oe=function(t){function Transformation(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Kt(this,Transformation),qt(this,Yt(Transformation).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Zt(t,e)}(Transformation,ee),Jt(Transformation,[{key:"angle",value:function(t){return this.arrayParam(t,"angle","a",".",tt.normalize)}},{key:"audioCodec",value:function(t){return this.param(t,"audio_codec","ac")}},{key:"audioFrequency",value:function(t){return this.param(t,"audio_frequency","af")}},{key:"aspectRatio",value:function(t){return this.param(t,"aspect_ratio","ar",tt.normalize)}},{key:"background",value:function(t){return this.param(t,"background","b",Nt.norm_color)}},{key:"bitRate",value:function(t){return this.param(t,"bit_rate","br")}},{key:"border",value:function(t){return this.param(t,"border","bo",function(t){return G(t)?(t=Z({},{color:"black",width:2},t),"".concat(t.width,"px_solid_").concat(Nt.norm_color(t.color))):t})}},{key:"color",value:function(t){return this.param(t,"color","co",Nt.norm_color)}},{key:"colorSpace",value:function(t){return this.param(t,"color_space","cs")}},{key:"crop",value:function(t){return this.param(t,"crop","c")}},{key:"defaultImage",value:function(t){return this.param(t,"default_image","d")}},{key:"delay",value:function(t){return this.param(t,"delay","dl")}},{key:"density",value:function(t){return this.param(t,"density","dn")}},{key:"duration",value:function(t){return this.rangeParam(t,"duration","du")}},{key:"dpr",value:function(t){return this.param(t,"dpr","dpr",function(t){return(null!=(t=t.toString())?t.match(/^\d+$/):void 0)?t+".0":tt.normalize(t)})}},{key:"effect",value:function(t){return this.arrayParam(t,"effect","e",":",tt.normalize)}},{key:"else",value:function(){return this.if("else")}},{key:"endIf",value:function(){return this.if("end")}},{key:"endOffset",value:function(t){return this.rangeParam(t,"end_offset","eo")}},{key:"fallbackContent",value:function(t){return this.param(t,"fallback_content")}},{key:"fetchFormat",value:function(t){return this.param(t,"fetch_format","f")}},{key:"format",value:function(t){return this.param(t,"format")}},{key:"flags",value:function(t){return this.arrayParam(t,"flags","fl",".")}},{key:"gravity",value:function(t){return this.param(t,"gravity","g")}},{key:"fps",value:function(t){return this.param(t,"fps","fps",function(t){return N(t)?t:Y(t)?t.join("-"):t})}},{key:"height",value:function(t){var e=this;return this.param(t,"height","h",function(){return e.getValue("crop")||e.getValue("overlay")||e.getValue("underlay")?tt.normalize(t):null})}},{key:"htmlHeight",value:function(t){return this.param(t,"html_height")}},{key:"htmlWidth",value:function(t){return this.param(t,"html_width")}},{key:"if",value:function(){var t,e,n,r,o,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(i){case"else":return this.chain(),this.param(i,"if","if");case"end":for(this.chain(),t=n=this.chained.length-1;n>=0&&"end"!==(e=this.chained[t].getValue("if"))&&(null==e||(r=Transformation.new().if(e),this.chained[t].remove("if"),o=this.chained[t],this.chained[t]=Transformation.new().transformation([r,o]),"else"===e));t=n+=-1);return this.param(i,"if","if");case"":return ut.new().setParent(this);default:return this.param(i,"if","if",function(t){return ut.new(t).toString()})}}},{key:"keyframeInterval",value:function(t){return this.param(t,"keyframe_interval","ki")}},{key:"offset",value:function(t){var e,n,r=Gt(m(null!=t?t.split:void 0)?t.split(".."):Y(t)?t:[null,null],2);if(n=r[0],e=r[1],null!=n&&this.startOffset(n),null!=e)return this.endOffset(e)}},{key:"opacity",value:function(t){return this.param(t,"opacity","o",tt.normalize)}},{key:"overlay",value:function(t){return this.layerParam(t,"overlay","l")}},{key:"page",value:function(t){return this.param(t,"page","pg")}},{key:"poster",value:function(t){return this.param(t,"poster")}},{key:"prefix",value:function(t){return this.param(t,"prefix","p")}},{key:"quality",value:function(t){return this.param(t,"quality","q",tt.normalize)}},{key:"radius",value:function(t){return this.param(t,"radius","r",tt.normalize)}},{key:"rawTransformation",value:function(t){return this.rawParam(t,"raw_transformation")}},{key:"size",value:function(t){var e,n;if(m(null!=t?t.split:void 0)){var r=Gt(t.split("x"),2);return n=r[0],e=r[1],this.width(n),this.height(e)}}},{key:"sourceTypes",value:function(t){return this.param(t,"source_types")}},{key:"sourceTransformation",value:function(t){return this.param(t,"source_transformation")}},{key:"startOffset",value:function(t){return this.rangeParam(t,"start_offset","so")}},{key:"streamingProfile",value:function(t){return this.param(t,"streaming_profile","sp")}},{key:"transformation",value:function(t){return this.transformationParam(t,"transformation","t")}},{key:"underlay",value:function(t){return this.layerParam(t,"underlay","u")}},{key:"variable",value:function(t,e){return this.param(e,t,t)}},{key:"variables",value:function(t){return this.arrayParam(t,"variables")}},{key:"videoCodec",value:function(t){return this.param(t,"video_codec","vc",Nt.process_video_params)}},{key:"videoSampling",value:function(t){return this.param(t,"video_sampling","vs")}},{key:"width",value:function(t){var e=this;return this.param(t,"width","w",function(){return e.getValue("crop")||e.getValue("overlay")||e.getValue("underlay")?tt.normalize(t):null})}},{key:"x",value:function(t){return this.param(t,"x","x",tt.normalize)}},{key:"y",value:function(t){return this.param(t,"y","y",tt.normalize)}},{key:"zoom",value:function(t){return this.param(t,"zoom","z",tt.normalize)}}],[{key:"new",value:function(t){return new Transformation(t)}}]),Transformation}();oe.methods=["angle","audioCodec","audioFrequency","aspectRatio","background","bitRate","border","color","colorSpace","crop","defaultImage","delay","density","duration","dpr","effect","else","endIf","endOffset","fallbackContent","fetchFormat","format","flags","gravity","fps","height","htmlHeight","htmlWidth","if","keyframeInterval","offset","opacity","overlay","page","poster","prefix","quality","radius","rawTransformation","size","sourceTypes","sourceTransformation","startOffset","streamingProfile","transformation","underlay","variable","variables","videoCodec","videoSampling","width","x","y","zoom"],oe.PARAM_NAMES=oe.methods.map(_).concat(ft.CONFIG_PARAMS);var ie=oe;function ue(t,e){for(var n=0;n0&&(t+=" "+e),t+">"}},{key:"closeTag",value:function(){return"".concat(this.name,">")}},{key:"toHtml",value:function(){return this.openTag()+this.content()+this.closeTag()}},{key:"toDOM",value:function(){var t,e,n,r;if(!m("undefined"!=typeof document&&null!==document?document.createElement:void 0))throw"Can't create DOM if document is not present!";for(e in t=document.createElement(this.name),n=this.attributes())r=n[e],t.setAttribute(e,r);return t}}])&&ue(t.prototype,e),n&&ue(t,n),HtmlTag}(),se="2.5.0",le="d3jpl91pxevbkh.cloudfront.net",fe="cloudinary-a.akamaihd.net",pe="res.cloudinary.com",he=pe,ye={format:"jpg",resource_type:"video"},ve=["webm","mp4","ogv"],de={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"},me={resource_type:"image",transformation:[],type:"upload"},ge={fallback_content:"",resource_type:"video",source_transformation:{},source_types:ve,transformation:[],type:"upload"};function be(t,e){var n,r,o,i,a,c;return 0===(null!=(a=e.cloud_name)?a.indexOf("/"):void 0)?"/res"+e.cloud_name:(i="http://",n="",c="res",r=".cloudinary.com",o="/"+e.cloud_name,e.protocol&&(i=e.protocol+"//"),e.private_cdn&&(n=e.cloud_name+"-",o=""),e.cdn_subdomain&&(c="res-"+function(t){return u(t)%5+1}(t)),e.secure?(i="https://",!1===e.secure_cdn_subdomain&&(c="res"),null!=e.secure_distribution&&e.secure_distribution!==fe&&e.secure_distribution!==he&&(n="",c="",r=e.secure_distribution)):e.cname&&(i="http://",n="",c=e.cdn_subdomain?"a"+(u(t)%5+1)+".":"",r=e.cname),[i,n,c,r,o].join(""))}function _e(t){var e,n,r,o,i,u,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)return t;if(a instanceof ie&&(a=a.toOptions()),"fetch"===(a=p({},a,c,me)).type&&(a.fetch_format=a.fetch_format||a.format,t=function(t){var e;return t.match(/^https?:\//)||(e=document.location.protocol+"//"+document.location.host,"?"===t[0]?e+=document.location.pathname:"/"!==t[0]&&(e+=document.location.pathname.replace(/\/[^\/]*$/,"/")),t=e+t),t}(t)),o=new ie(a).serialize(),!a.cloud_name)throw"Unknown cloud_name";if(t.search("/")>=0&&!t.match(/^v[0-9]+/)&&!t.match(/^https?:\//)&&!(null!=(n=a.version)?n.toString():void 0)&&(a.version=1),t.match(/^https?:/))"upload"===a.type||"asset"===a.type?i=t:t=encodeURIComponent(t).replace(/%3A/g,":").replace(/%2F/g,"/");else{try{t=decodeURIComponent(t)}catch(s){s}if(t=encodeURIComponent(t).replace(/%3A/g,":").replace(/%2F/g,"/"),a.url_suffix){if(a.url_suffix.match(/[\.\/]/))throw"url_suffix should not include . or /";t=t+"/"+a.url_suffix}a.format&&(a.trust_public_id||(t=t.replace(/\.(jpg|png|gif|webp)$/,"")),t=t+"."+a.format)}return e=be(t,a),r=function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"upload",o=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,u=arguments.length>4?arguments[4]:void 0;if(G(n)&&(n=(e=n).resource_type,r=e.type,o=e.url_suffix,i=e.use_root_path,u=e.shorten),null==r&&(r="upload"),null!=o&&(n=de["".concat(n,"/").concat(r)],r=null,null==n))throw new Error("URL Suffix only supported for ".concat(function(){var e;for(t in e=[],de)e.push(t);return e}().join(", ")));if(i){if(("image"!==n||"upload"!==r)&&"images"!==n)throw new Error("Root path only supported for image/upload");n=null,r=null}return u&&"image"===n&&"upload"===r&&(n="iu",r=null),[n,r].join("/")}(a.resource_type,a.type,a.url_suffix,a.use_root_path,a.shorten),u=a.version?"v"+a.version:"",i||M([e,r,o,u,t]).join("/").replace(/([^:])\/+/g,"$1/")}function De(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Be=V;function we(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=k(r);return n=n||r,o.raw_transformation=new ie([L({},n),{crop:"scale",width:e}]).toString(),_e(t,o)}function Ae(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(t){var e=t.breakpoints||[];if(e.length)return e;var n=De([t.min_width,t.max_width,t.max_images].map(Number),3),r=n[0],o=n[1],i=n[2];if([r,o,i].some(isNaN))throw"Either (min_width, max_width, max_images) or breakpoints must be provided to the image srcset attribute";if(r>o)throw"min_width must be less than max_width";if(i<=0)throw"max_images must be a positive integer";1===i&&(r=o);for(var u=Math.ceil((o-r)/Math.max(i-1,1)),a=r;a1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o={};if(Be(n))return o;var i=!e.sizes&&!0===n.sizes,u=!e.srcset;if(u||i){var a=Ae(t,n,r);if(u){var c=function(t,e,n,r){return F(r=H(r)),e.map(function(e){return"".concat(we(t,e,n,r)," ").concat(e,"w")}).join(", ")}(t,a,n.transformation,r);Be(c)||(o.srcset=c)}if(i){var s=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(t){return"(max-width: ".concat(t,"px) ").concat(t,"px")}).join(", ")}(a);Be(s)||(o.sizes=s)}}return o}function Ce(t){return(Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ke(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,ImageTag),Fe(this,je(ImageTag).call(this,"img",t,e))}var e,n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Se(t,e)}(ImageTag,ce),e=ImageTag,(n=[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){var t,e,n;t=Oe(je(ImageTag.prototype),"attributes",this).call(this)||{},e=this.getOptions();var r=this.getOption("srcset"),o=this.getOption("attributes")||{},i={};return N(r)?i.srcset=r:i=Ee(this.publicId,o,r,e),V(i)||(delete e.width,delete e.height),L(t,i),null==t[n=e.responsive&&!e.client_hints?"data-src":"src"]&&(t[n]=_e(this.publicId,this.getOptions())),t}}])&&ke(e.prototype,n),r&&ke(e,r),ImageTag}();function xe(t){return(xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Te(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Re(this,Ie(e).call(this,"source",t,n))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Qe(t,e)}(e,ce),n=e,(r=[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){var t=this.getOption("srcset"),n=ze(Ie(e.prototype),"attributes",this).call(this)||{},r=this.getOptions();return L(n,Ee(this.publicId,n,t,r)),n.srcset||(n.srcset=_e(this.publicId,r)),!n.media&&r.media&&(n.media=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=[];return null!=t.min_width&&e.push("(min-width: ".concat(t.min_width,"px)")),null!=t.max_width&&e.push("(max-width: ".concat(t.max_width,"px)")),e.join(" and ")}(r.media)),n}}])&&Te(n.prototype,r),o&&Te(n,o),e}();function Ne(t){return(Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Le(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,PictureTag),(e=Me(this,Ue(PictureTag).call(this,"picture",t,n))).widthList=r,e}var e,n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&We(t,e)}(PictureTag,ce),e=PictureTag,(n=[{key:"content",value:function(){var t=this;return this.widthList.map(function(e){var n=e.min_width,r=e.max_width,o=e.transformation,i=t.getOptions(),u=new ie(i);return u.chain().fromOptions("string"==typeof o?{raw_transformation:o}:o),(i=k(i)).media={min_width:n,max_width:r},i.transformation=u,new Ve(t.publicId,i).toHtml()}).join("")+new Pe(this.publicId,this.getOptions()).toHtml()}},{key:"attributes",value:function(){var t=He(Ue(PictureTag.prototype),"attributes",this).call(this);return delete t.width,delete t.height,t}},{key:"closeTag",value:function(){return""+this.name+">"}}])&&Le(e.prototype,n),r&&Le(e,r),PictureTag}();function qe(t){return(qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ye(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,VideoTag),e=p({},e,ge),Ze(this,Ke(VideoTag).call(this,"video",t.replace(/\.(mp4|ogv|webm)$/,""),e))}var e,n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xe(t,e)}(VideoTag,ce),e=VideoTag,(n=[{key:"setSourceTransformation",value:function(t){return this.transformation().sourceTransformation(t),this}},{key:"setSourceTypes",value:function(t){return this.transformation().sourceTypes(t),this}},{key:"setPoster",value:function(t){return this.transformation().poster(t),this}},{key:"setFallbackContent",value:function(t){return this.transformation().fallbackContent(t),this}},{key:"content",value:function(){var t,e,n,r,o,i,u,a;if(o=this.transformation().getValue("source_types"),r=this.transformation().getValue("source_transformation"),t=this.transformation().getValue("fallback_content"),Y(o)){var c=this.getOptions();e=function(){var t,e,s;for(s=[],t=0,e=o.length;t "));return s}.call(this)}else e=[];return e.join("")+t}},{key:"attributes",value:function(){var t,e,n,r,o,i,u,a,c;for(c=this.getOption("source_types"),i=null!=(u=this.getOption("poster"))?u:{},G(i)&&(n=null!=i.public_id?me:tn,i=_e(null!=(a=i.public_id)?a:this.publicId,p({},i,n,this.getOptions()))),r=0,o=(e=Ge(Ke(VideoTag.prototype),"attributes",this).call(this)||[]).length;r1&&void 0!==arguments[1]?arguments[1]:100;return e*Math.ceil(t/e)},sn=function(t,e){var n;for(n=t.length-2;n>=0&&t[n]>=e;)n--;return t[n+1]},cn=function(t,e,n,r){var o,i,u,a;return!(a=null!=(o=null!=(i=null!=(u=r.responsive_use_breakpoints)?u:r.responsive_use_stoppoints)?i:this.config("responsive_use_breakpoints"))?o:this.config("responsive_use_stoppoints"))||"resize"===a&&!r.resizing?e:this.calc_breakpoint(t,e,n)},fn=function(t){var e,n;for(e=0;(t=null!=t?t.parentNode:void 0)instanceof Element&&!e;)n=window.getComputedStyle(t),/^inline/.test(n.display)||(e=Q(t));return e},hn=function(t,e){return t.replace(/\bdpr_(1\.0|auto)\b/g,"dpr_"+this.device_pixel_ratio(e))},pn=function(t,e){var n;return t>(n=j(e,"width")||0)&&(n=t,S(e,"width",t)),n};var dn=function(){function Cloudinary(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,Cloudinary),this.devicePixelRatioCache={},this.responsiveConfig={},this.responsiveResizeInitialized=!1,e=new ft(t),this.config=function(t,n){return e.config(t,n)},this.fromDocument=function(){return e.fromDocument(),this},this.fromEnvironment=function(){return e.fromEnvironment(),this},this.init=function(){return e.init(),this}}var t,e,n;return t=Cloudinary,n=[{key:"new",value:function(t){return new this(t)}}],(e=[{key:"url",value:function(t){return _e(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},this.config())}},{key:"video_url",value:function(t,e){return e=Z({resource_type:"video"},e),this.url(t,e)}},{key:"video_thumbnail_url",value:function(t,e){return e=Z({},ye,e),this.url(t,e)}},{key:"transformation_string",value:function(t){return new ie(t).serialize()}},{key:"image",value:function(t){var e,n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=this.imageTag(t,i),e=null!=(r=null!=(o=i.client_hints)?o:this.config("client_hints"))&&r,null!=i.src||e||n.setAttr("src",""),n=n.toDOM(),e||(S(n,"src-cache",this.url(t,i)),this.cloudinary_update(n,i)),n}},{key:"imageTag",value:function(t,e){var n;return(n=new Pe(t,this.config())).transformation().fromOptions(e),n}},{key:"pictureTag",value:function(t,e){var n;return(n=new $e(t,this.config())).transformation().fromOptions(e),n}},{key:"sourceTag",value:function(t,e){var n;return(n=new Ve(t,this.config())).transformation().fromOptions(e),n}},{key:"video_thumbnail",value:function(t,e){return this.image(t,L({},ye,e))}},{key:"facebook_profile_image",value:function(t,e){return this.image(t,Z({type:"facebook"},e))}},{key:"twitter_profile_image",value:function(t,e){return this.image(t,Z({type:"twitter"},e))}},{key:"twitter_name_profile_image",value:function(t,e){return this.image(t,Z({type:"twitter_name"},e))}},{key:"gravatar_image",value:function(t,e){return this.image(t,Z({type:"gravatar"},e))}},{key:"fetch_image",value:function(t,e){return this.image(t,Z({type:"fetch"},e))}},{key:"video",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.videoTag(t,e).toHtml()}},{key:"videoTag",value:function(t,e){return e=p({},e,this.config()),new en(t,e)}},{key:"sprite_css",value:function(t,e){return e=Z({type:"sprite"},e),t.match(/.css$/)||(e.format="css"),this.url(t,e)}},{key:"responsive",value:function(t){var e,n,r,o,i,u=this,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.responsiveConfig=L(this.responsiveConfig||{},t),o=null!=(e=this.responsiveConfig.responsive_class)?e:this.config("responsive_class"),a&&this.cloudinary_update("img.".concat(o,", img.cld-hidpi"),this.responsiveConfig),(null==(n=null!=(r=this.responsiveConfig.responsive_resize)?r:this.config("responsive_resize"))||n)&&!this.responsiveResizeInitialized)return this.responsiveConfig.resizing=this.responsiveResizeInitialized=!0,i=null,window.addEventListener("resize",function(){var t,e,n,r,a,c;return t=null!=(e=null!=(n=u.responsiveConfig.responsive_debounce)?n:u.config("responsive_debounce"))?e:100,r=function(){if(i)return clearTimeout(i),i=null},a=function(){return u.cloudinary_update("img.".concat(o),u.responsiveConfig)},c=function(){return r(),a()},t?function(){return r(),i=setTimeout(c,t)}():a()})}},{key:"calc_breakpoint",value:function(t,e,n){var r=j(t,"breakpoints")||j(t,"stoppoints")||this.config("breakpoints")||this.config("stoppoints")||ln;return m(r)?r(e,n):(N(r)&&(r=r.split(",").map(function(t){return parseInt(t)}).sort(function(t,e){return t-e})),sn(r,e))}},{key:"calc_stoppoint",value:function(t,e,n){return this.calc_breakpoint(t,e,n)}},{key:"device_pixel_ratio",value:function(){var t,e,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t=("undefined"!=typeof window&&null!==window?window.devicePixelRatio:void 0)||1,n&&(t=Math.ceil(t)),(t<=0||NaN===t)&&(t=1),(e=t.toString()).match(/^\d+$/)&&(e+=".0"),e}},{key:"processImageTags",value:function(t){var e,n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return V(t)?this:(i=p({},i,this.config()),e=function(){var e,u,a,c;for(c=[],e=0,u=t.length;e1&&void 0!==arguments[1]?arguments[1]:{};if(null===t)return this;for(h=null!=(u=null!=(a=g.responsive)?a:this.config("responsive"))&&u,t=function(){switch(!1){case!Y(t):case"NodeList"!==t.constructor.name:return t;case!N(t):return document.querySelectorAll(t);default:return[t]}}(),y=null!=(c=null!=(s=this.responsiveConfig.responsive_class)?s:g.responsive_class)?c:this.config("responsive_class"),v=null!=(l=g.round_dpr)?l:this.config("round_dpr"),r=0,o=t.length;r 0;){var r=e.shift();if(null!=r)return r}return null};function _n(t){return(_n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Dn(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return n=this.imageTag(t,r),e=bn(r.client_hints,this.config("client_hints"),!1),null!=r.src||e||n.setAttr("src",""),n=jQuery(n.toHtml()),e||n.data("src-cache",this.url(t,r)).cloudinary_update(r),n}},{key:"responsive",value:function(t){var e,n,r,o,i=this;if(n=jQuery.extend(n||{},t),e=this.responsiveConfig.responsive_class||this.config("responsive_class"),jQuery("img.".concat(e,", img.cld-hidpi")).cloudinary_update(n),bn(n.responsive_resize,this.config("responsive_resize"),!0)&&!r)return n.resizing=r=!0,o=null,jQuery(window).on("resize",function(){var t=bn(n.responsive_debounce,i.config("responsive_debounce"),100),r=function(){if(o)return clearTimeout(o),o=null},u=function(){return jQuery("img.".concat(e)).cloudinary_update(n)};return t?(r(),setTimeout(function(){return r(),u()},t)):u()})}}])&&Dn(e.prototype,n),r&&Dn(e,r),CloudinaryJQuery}();jQuery.fn.cloudinary=function(t){return this.filter("img").each(function(){var e,n,r;return n=(e=jQuery.extend({width:jQuery(this).attr("width"),height:jQuery(this).attr("height"),src:jQuery(this).attr("src")},jQuery(this).data(),t)).source||e.src,delete e.source,delete e.src,r=jQuery.cloudinary.url(n,e),e=new ie(e).toHtmlAttributes(),jQuery(this).data("src-cache",r).attr({width:e.width,height:e.height})}).cloudinary_update(t),this},jQuery.fn.cloudinary_update=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return jQuery.cloudinary.cloudinary_update(this.filter("img").toArray(),t),this},mn=null,jQuery.fn.webpify=function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return t=this,r=null!=r?r:n,mn||(mn=jQuery.Deferred(),(e=new Image).onerror=mn.reject,e.onload=mn.resolve,e.src="data:image/webp;base64,UklGRi4AAABXRUJQVlA4TCEAAAAvAUAAEB8wAiMwAgSSNtse/cXjxyCCmrYNWPwmHRH9jwMA"),jQuery(function(){return mn.done(function(){return jQuery(t).cloudinary(jQuery.extend({},r,{format:"webp"}))}).fail(function(){return jQuery(t).cloudinary(n)})}),this},jQuery.fn.fetchify=function(t){return this.cloudinary(jQuery.extend(t,{type:"fetch"}))},jQuery.cloudinary=new En,jQuery.cloudinary.fromDocument();var Cn=En;n.d(e,"ClientHintsMetaTag",function(){return yn}),n.d(e,"Cloudinary",function(){return gn}),n.d(e,"CloudinaryJQuery",function(){return Cn}),n.d(e,"Condition",function(){return ut}),n.d(e,"Configuration",function(){return ft}),n.d(e,"crc32",function(){return u}),n.d(e,"FetchLayer",function(){return jt}),n.d(e,"HtmlTag",function(){return ce}),n.d(e,"ImageTag",function(){return Pe}),n.d(e,"Layer",function(){return ht}),n.d(e,"PictureTag",function(){return $e}),n.d(e,"SubtitlesLayer",function(){return At}),n.d(e,"TextLayer",function(){return bt}),n.d(e,"Transformation",function(){return ie}),n.d(e,"utf8_encode",function(){return i}),n.d(e,"Util",function(){return r}),n.d(e,"VideoTag",function(){return en});e.default={ClientHintsMetaTag:yn,Cloudinary:gn,CloudinaryJQuery:Cn,Condition:ut,Configuration:ft,crc32:u,FetchLayer:jt,HtmlTag:ce,ImageTag:Pe,Layer:ht,PictureTag:$e,SubtitlesLayer:At,TextLayer:bt,Transformation:ie,utf8_encode:i,Util:r,VideoTag:en}}])});
\ No newline at end of file
+!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.cloudinary=e():t.cloudinary=e()}(this,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"getData",function(){return S}),n.d(r,"setData",function(){return P}),n.d(r,"getAttribute",function(){return x}),n.d(r,"setAttribute",function(){return T}),n.d(r,"removeAttribute",function(){return R}),n.d(r,"setAttributes",function(){return z}),n.d(r,"hasClass",function(){return I}),n.d(r,"addClass",function(){return Q}),n.d(r,"width",function(){return V}),n.d(r,"isString",function(){return N}),n.d(r,"merge",function(){return L}),n.d(r,"compact",function(){return M}),n.d(r,"cloneDeep",function(){return H}),n.d(r,"contains",function(){return U}),n.d(r,"difference",function(){return W}),n.d(r,"functions",function(){return $}),n.d(r,"identity",function(){return q}),n.d(r,"isArray",function(){return Y}),n.d(r,"assign",function(){return Z}),n.d(r,"isPlainObject",function(){return K}),n.d(r,"trim",function(){return X}),n.d(r,"allStrings",function(){return c}),n.d(r,"without",function(){return s}),n.d(r,"isNumberLike",function(){return l}),n.d(r,"smartEscape",function(){return f}),n.d(r,"defaults",function(){return p}),n.d(r,"objectProto",function(){return h}),n.d(r,"objToString",function(){return y}),n.d(r,"isObject",function(){return v}),n.d(r,"funcTag",function(){return d}),n.d(r,"isFunction",function(){return m}),n.d(r,"reWords",function(){return g}),n.d(r,"camelCase",function(){return b}),n.d(r,"snakeCase",function(){return _}),n.d(r,"convertKeys",function(){return D}),n.d(r,"withCamelCaseKeys",function(){return B}),n.d(r,"withSnakeCaseKeys",function(){return w}),n.d(r,"base64Encode",function(){return A}),n.d(r,"base64EncodeURL",function(){return E}),n.d(r,"extractUrlParams",function(){return k}),n.d(r,"patchFetchFormat",function(){return F}),n.d(r,"optionConsume",function(){return O}),n.d(r,"isEmpty",function(){return j});var o={};n.r(o),n.d(o,"VERSION",function(){return le}),n.d(o,"CF_SHARED_CDN",function(){return fe}),n.d(o,"OLD_AKAMAI_SHARED_CDN",function(){return pe}),n.d(o,"AKAMAI_SHARED_CDN",function(){return he}),n.d(o,"SHARED_CDN",function(){return ye}),n.d(o,"DEFAULT_POSTER_OPTIONS",function(){return ve}),n.d(o,"DEFAULT_VIDEO_SOURCE_TYPES",function(){return de}),n.d(o,"SEO_TYPES",function(){return me}),n.d(o,"DEFAULT_IMAGE_PARAMS",function(){return ge}),n.d(o,"DEFAULT_VIDEO_PARAMS",function(){return be});var i=function(t){var e,n,r,o,i,u,a,c;if(null==t)return"";for(c="",i=void 0,r=void 0,0,i=r=0,a=(u=t+"").length,o=0;o<128?r++:n=e>127&&e<2048?String.fromCharCode(e>>6|192,63&e|128):String.fromCharCode(e>>12|224,e>>6&63|128,63&e|128),null!==n&&(r>i&&(c+=u.slice(i,r)),c+=n,i=r=o+1),o++;return r>i&&(c+=u.slice(i,a)),c},u=function(t){var e,n,r,o;for("00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D",e=0,0,o=0,e^=-1,n=0,r=(t=i(t)).length;n>>8^"0x"+"00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D".substr(9*o,8),n++;return(e^=-1)<0&&(e+=4294967296),e};function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var c=function(t){return t.length&&t.every(function(t){return"string"==typeof t})},s=function(t,e){return t.filter(function(t){return t!==e})},l=function(t){return null!=t&&!isNaN(parseFloat(t))},f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/([^a-zA-Z0-9_.\-\/:]+)/g;return t.replace(e,function(t){return t.split("").map(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}).join("")})},p=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r=|<=|&&|!=|>|=|<|/|-|\\+|\\*",n="((\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\+|\\*)(?=[ _])|"+Object.keys(t.PREDEFINED_VARS).join("|")+")",r=new RegExp(n,"g"),(e=e.replace(r,function(e){return t.OPERATORS[e]||t.PREDEFINED_VARS[e]})).replace(/[ _]+/g,"_"))}},{key:"variable",value:function(t,e){return new this(t).value(e)}},{key:"width",value:function(){return new this("width")}},{key:"height",value:function(){return new this("height")}},{key:"initialWidth",value:function(){return new this("initialWidth")}},{key:"initialHeight",value:function(){return new this("initialHeight")}},{key:"aspectRatio",value:function(){return new this("aspectRatio")}},{key:"initialAspectRatio",value:function(){return new this("initialAspectRatio")}},{key:"pageCount",value:function(){return new this("pageCount")}},{key:"faceCount",value:function(){return new this("faceCount")}},{key:"currentPage",value:function(){return new this("currentPage")}},{key:"tags",value:function(){return new this("tags")}},{key:"pageX",value:function(){return new this("pageX")}},{key:"pageY",value:function(){return new this("pageY")}}],(n=[{key:"serialize",value:function(){return t.normalize(this.expressions.join("_"))}},{key:"toString",value:function(){return this.serialize()}},{key:"getParent",value:function(){return this.parent}},{key:"setParent",value:function(t){return this.parent=t,this}},{key:"predicate",value:function(e,n,r){return null!=t.OPERATORS[n]&&(n=t.OPERATORS[n]),this.expressions.push("".concat(e,"_").concat(n,"_").concat(r)),this}},{key:"and",value:function(){return this.expressions.push("and"),this}},{key:"or",value:function(){return this.expressions.push("or"),this}},{key:"then",value:function(){return this.getParent().if(this.toString())}},{key:"height",value:function(t,e){return this.predicate("h",t,e)}},{key:"width",value:function(t,e){return this.predicate("w",t,e)}},{key:"aspectRatio",value:function(t,e){return this.predicate("ar",t,e)}},{key:"pageCount",value:function(t,e){return this.predicate("pc",t,e)}},{key:"faceCount",value:function(t,e){return this.predicate("fc",t,e)}},{key:"value",value:function(t){return this.expressions.push(t),this}}])&&G(e.prototype,n),r&&G(e,r),t}();J.OPERATORS={"=":"eq","!=":"ne","<":"lt",">":"gt","<=":"lte",">=":"gte","&&":"and","||":"or","*":"mul","/":"div","+":"add","-":"sub"},J.PREDEFINED_VARS={aspect_ratio:"ar",aspectRatio:"ar",current_page:"cp",currentPage:"cp",face_count:"fc",faceCount:"fc",height:"h",initial_aspect_ratio:"iar",initial_height:"ih",initial_width:"iw",initialAspectRatio:"iar",initialHeight:"ih",initialWidth:"iw",page_count:"pc",page_x:"px",page_y:"py",pageCount:"pc",pageX:"px",pageY:"py",tags:"tags",width:"w"},J.BOUNDRY="[ _]+";var tt=J;function et(t){return(et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nt(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:q;It(this,t),this.name=e,this.shortName=n,this.process=r}return Vt(t,[{key:"set",value:function(t){return this.origValue=t,this}},{key:"serialize",value:function(){var t,e;return t=this.value(),e=Y(t)||K(t)||N(t)?!j(t):null!=t,null!=this.shortName&&e?"".concat(this.shortName,"_").concat(t):""}},{key:"value",value:function(){return this.process(this.origValue)}},{key:"build_array",value:function(t){return null==t?[]:Y(t)?t:[t]}}],[{key:"norm_color",value:function(t){return null!=t?t.replace(/^#/,"rgb:"):void 0}},{key:"process_video_params",value:function(t){var e;switch(t.constructor){case Object:return e="","codec"in t&&(e=t.codec,"profile"in t&&(e+=":"+t.profile,"level"in t&&(e+=":"+t.level))),e;case String:return t;default:return null}}}]),t}(),Lt=function(t){function e(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",i=arguments.length>3?arguments[3]:void 0;return It(this,e),(r=Pt(this,Tt(e).call(this,t,n,i))).sep=o,r}return Rt(e,Nt),Vt(e,[{key:"serialize",value:function(){if(null!=this.shortName){var t=this.value();if(j(t))return"";if(N(t))return"".concat(this.shortName,"_").concat(t);var e=t.map(function(t){return m(t.serialize)?t.serialize():t}).join(this.sep);return"".concat(this.shortName,"_").concat(e)}return""}},{key:"value",value:function(){var t=this;return Y(this.origValue)?this.origValue.map(function(e){return t.process(e)}):this.process(this.origValue)}},{key:"set",value:function(t){return null==t||Y(t)?xt(Tt(e.prototype),"set",this).call(this,t):xt(Tt(e.prototype),"set",this).call(this,[t])}}]),e}(),Mt=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"t",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",i=arguments.length>3?arguments[3]:void 0;return It(this,e),(n=Pt(this,Tt(e).call(this,t,r,i))).sep=o,n}return Rt(e,Nt),Vt(e,[{key:"serialize",value:function(){var t=this;if(j(this.value()))return"";if(c(this.value())){var e=this.value().join(this.sep);return j(e)?"":"".concat(this.shortName,"_").concat(e)}return this.value().map(function(e){return N(e)&&!j(e)?"".concat(t.shortName,"_").concat(e):m(e.serialize)?e.serialize():K(e)&&!j(e)?new ie(e).serialize():void 0}).filter(function(t){return t})}},{key:"set",value:function(t){return this.origValue=t,Y(this.origValue)?xt(Tt(e.prototype),"set",this).call(this,this.origValue):xt(Tt(e.prototype),"set",this).call(this,[this.origValue])}}]),e}(),Ht=function(t){function e(t,n,r){var o;return It(this,e),(o=Pt(this,Tt(e).call(this,t,n,r))).process||(o.process=o.norm_range_value),o}return Rt(e,Nt),Vt(e,null,[{key:"norm_range_value",value:function(t){var e,n;return(n=String(t).match(new RegExp("^"+offset_any_pattern+"$")))&&(e=null!=n[5]?"p":"",t=(n[1]||n[4])+e),t}}]),e}(),Ut=function(t){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:q;return It(this,e),Pt(this,Tt(e).call(this,t,n,r))}return Rt(e,Nt),Vt(e,[{key:"serialize",value:function(){return this.value()}}]),e}(),Wt=function(t){function e(){return It(this,e),Pt(this,Tt(e).apply(this,arguments))}return Rt(e,Nt),Vt(e,[{key:"value",value:function(){var t=this.origValue;return K(t)?"text"===(t=B(t)).resourceType||null!=t.text?new bt(t).toString():"subtitles"===t.resourceType?new At(t).toString():"fetch"===t.resourceType||null!=t.url?new jt(t).toString():new ht(t).toString():N(t)&&/^fetch:.+/.test(t)?new jt(t.substr(6)).toString():t}},{key:"textStyle",value:function(t){return new bt(t).textStyleIdentifier()}}]),e}();function $t(t){return($t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qt(t,e){return!e||"object"!==$t(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Yt(t){return(Yt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Zt(t,e){return(Zt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Kt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Xt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gt(t,e){for(var n=0;n1?e-1:0),r=1;r4&&void 0!==arguments[4]&&arguments[4];return i=re(arguments),r[e]=new Ut(e,n,i).set(t),this},this.rangeParam=function(t,e,n,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return i=re(arguments),r[e]=new Ht(e,n,i).set(t),this},this.arrayParam=function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:":",i=(arguments.length>4&&void 0!==arguments[4]&&arguments[4],arguments.length>5&&void 0!==arguments[5]&&arguments[5]);return i=re(arguments),r[e]=new Lt(e,n,o,i).set(t),this},this.transformationParam=function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=(arguments.length>4&&arguments[4],arguments.length>5&&void 0!==arguments[5]&&arguments[5]);return i=re(arguments),r[e]=new Mt(e,n,o,i).set(t),this},this.layerParam=function(t,e,n){return r[e]=new Wt(e,n).set(t),this},this.getValue=function(t){var e=r[t]&&r[t].value();return null!=e?e:this.otherOptions[t]},this.get=function(t){return r[t]},this.remove=function(t){var e;switch(!1){case null==r[t]:return e=r[t],delete r[t],e.origValue;case null==this.otherOptions[t]:return e=this.otherOptions[t],delete this.otherOptions[t],e;default:return null}},this.keys=function(){var t;return function(){var e;for(t in e=[],r)null!=t&&e.push(t.match(ne)?t:_(t));return e}().sort()},this.toPlainObject=function(){var t,e,n;for(e in t={},r)t[e]=r[e].value(),K(t[e])&&(t[e]=H(t[e]));return j(this.chained)||((n=this.chained.map(function(t){return t.toPlainObject()})).push(t),t={transformation:n}),t},this.chain=function(){var t;return 0!==Object.getOwnPropertyNames(r).length&&(t=new this.constructor(this.toOptions(!1)),this.resetTransformations(),this.chained.push(t)),this},this.resetTransformations=function(){return r={},this},this.otherOptions={},this.chained=[],this.fromOptions(e)}return Jt(t,[{key:"fromOptions",value:function(e){if(!j(e))if(e instanceof t)this.fromTransformation(e);else for(var n in e||(e={}),(N(e)||Y(e))&&(e={transformation:e}),(e=H(e,function(e){if(e instanceof t)return new e.constructor(e.toOptions())})).if&&(this.set("if",e.if),delete e.if),e){var r=e[n];n.match(ne)?"$attr"!==n&&this.set("variable",n,r):this.set(n,r)}return this}},{key:"fromTransformation",value:function(e){var n=this;return e instanceof t&&e.keys().forEach(function(t){return n.set(t,e.get(t).origValue)}),this}},{key:"set",value:function(t){var e;e=b(t);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o=1&&null==r.width&&(r.width=a),parseFloat(e)>=1&&null==r.height&&(r.height=e)),r}},{key:"isValidParamName",value:function(t){return oe.methods.indexOf(b(t))>=0}},{key:"toHtml",value:function(){var t;return null!=(t=this.getParent())&&"function"==typeof t.toHtml?t.toHtml():void 0}},{key:"toString",value:function(){return this.serialize()}}]),t}(),ne=/^\$[a-zA-Z0-9]+$/;function re(t){var e;return e=null!=t?t[t.length-1]:void 0,m(e)?e:void 0}ee.prototype.trans_separator="/",ee.prototype.param_separator=",";var oe=function(t){function Transformation(t){return Xt(this,Transformation),qt(this,Yt(Transformation).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Zt(t,e)}(Transformation,ee),Jt(Transformation,[{key:"angle",value:function(t){return this.arrayParam(t,"angle","a",".",tt.normalize)}},{key:"audioCodec",value:function(t){return this.param(t,"audio_codec","ac")}},{key:"audioFrequency",value:function(t){return this.param(t,"audio_frequency","af")}},{key:"aspectRatio",value:function(t){return this.param(t,"aspect_ratio","ar",tt.normalize)}},{key:"background",value:function(t){return this.param(t,"background","b",Nt.norm_color)}},{key:"bitRate",value:function(t){return this.param(t,"bit_rate","br")}},{key:"border",value:function(t){return this.param(t,"border","bo",function(t){return K(t)?(t=Z({},{color:"black",width:2},t),"".concat(t.width,"px_solid_").concat(Nt.norm_color(t.color))):t})}},{key:"color",value:function(t){return this.param(t,"color","co",Nt.norm_color)}},{key:"colorSpace",value:function(t){return this.param(t,"color_space","cs")}},{key:"crop",value:function(t){return this.param(t,"crop","c")}},{key:"defaultImage",value:function(t){return this.param(t,"default_image","d")}},{key:"delay",value:function(t){return this.param(t,"delay","dl")}},{key:"density",value:function(t){return this.param(t,"density","dn")}},{key:"duration",value:function(t){return this.rangeParam(t,"duration","du")}},{key:"dpr",value:function(t){return this.param(t,"dpr","dpr",function(t){return(null!=(t=t.toString())?t.match(/^\d+$/):void 0)?t+".0":tt.normalize(t)})}},{key:"effect",value:function(t){return this.arrayParam(t,"effect","e",":",tt.normalize)}},{key:"else",value:function(){return this.if("else")}},{key:"endIf",value:function(){return this.if("end")}},{key:"endOffset",value:function(t){return this.rangeParam(t,"end_offset","eo")}},{key:"fallbackContent",value:function(t){return this.param(t,"fallback_content")}},{key:"fetchFormat",value:function(t){return this.param(t,"fetch_format","f")}},{key:"format",value:function(t){return this.param(t,"format")}},{key:"flags",value:function(t){return this.arrayParam(t,"flags","fl",".")}},{key:"gravity",value:function(t){return this.param(t,"gravity","g")}},{key:"fps",value:function(t){return this.param(t,"fps","fps",function(t){return N(t)?t:Y(t)?t.join("-"):t})}},{key:"height",value:function(t){var e=this;return this.param(t,"height","h",function(){return e.getValue("crop")||e.getValue("overlay")||e.getValue("underlay")?tt.normalize(t):null})}},{key:"htmlHeight",value:function(t){return this.param(t,"html_height")}},{key:"htmlWidth",value:function(t){return this.param(t,"html_width")}},{key:"if",value:function(){var t,e,n,r,o,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(i){case"else":return this.chain(),this.param(i,"if","if");case"end":for(this.chain(),t=n=this.chained.length-1;n>=0&&"end"!==(e=this.chained[t].getValue("if"))&&(null==e||(r=Transformation.new().if(e),this.chained[t].remove("if"),o=this.chained[t],this.chained[t]=Transformation.new().transformation([r,o]),"else"===e));t=n+=-1);return this.param(i,"if","if");case"":return ut.new().setParent(this);default:return this.param(i,"if","if",function(t){return ut.new(t).toString()})}}},{key:"keyframeInterval",value:function(t){return this.param(t,"keyframe_interval","ki")}},{key:"offset",value:function(t){var e,n,r=Kt(m(null!=t?t.split:void 0)?t.split(".."):Y(t)?t:[null,null],2);if(n=r[0],e=r[1],null!=n&&this.startOffset(n),null!=e)return this.endOffset(e)}},{key:"opacity",value:function(t){return this.param(t,"opacity","o",tt.normalize)}},{key:"overlay",value:function(t){return this.layerParam(t,"overlay","l")}},{key:"page",value:function(t){return this.param(t,"page","pg")}},{key:"poster",value:function(t){return this.param(t,"poster")}},{key:"prefix",value:function(t){return this.param(t,"prefix","p")}},{key:"quality",value:function(t){return this.param(t,"quality","q",tt.normalize)}},{key:"radius",value:function(t){return this.arrayParam(t,"radius","r",":",tt.normalize)}},{key:"rawTransformation",value:function(t){return this.rawParam(t,"raw_transformation")}},{key:"size",value:function(t){var e,n;if(m(null!=t?t.split:void 0)){var r=Kt(t.split("x"),2);return n=r[0],e=r[1],this.width(n),this.height(e)}}},{key:"sourceTypes",value:function(t){return this.param(t,"source_types")}},{key:"sourceTransformation",value:function(t){return this.param(t,"source_transformation")}},{key:"startOffset",value:function(t){return this.rangeParam(t,"start_offset","so")}},{key:"streamingProfile",value:function(t){return this.param(t,"streaming_profile","sp")}},{key:"transformation",value:function(t){return this.transformationParam(t,"transformation","t")}},{key:"underlay",value:function(t){return this.layerParam(t,"underlay","u")}},{key:"variable",value:function(t,e){return this.param(e,t,t)}},{key:"variables",value:function(t){return this.arrayParam(t,"variables")}},{key:"videoCodec",value:function(t){return this.param(t,"video_codec","vc",Nt.process_video_params)}},{key:"videoSampling",value:function(t){return this.param(t,"video_sampling","vs")}},{key:"width",value:function(t){var e=this;return this.param(t,"width","w",function(){return e.getValue("crop")||e.getValue("overlay")||e.getValue("underlay")?tt.normalize(t):null})}},{key:"x",value:function(t){return this.param(t,"x","x",tt.normalize)}},{key:"y",value:function(t){return this.param(t,"y","y",tt.normalize)}},{key:"zoom",value:function(t){return this.param(t,"zoom","z",tt.normalize)}}],[{key:"new",value:function(t){return new Transformation(t)}}]),Transformation}();oe.methods=["angle","audioCodec","audioFrequency","aspectRatio","background","bitRate","border","color","colorSpace","crop","defaultImage","delay","density","duration","dpr","effect","else","endIf","endOffset","fallbackContent","fetchFormat","format","flags","gravity","fps","height","htmlHeight","htmlWidth","if","keyframeInterval","offset","opacity","overlay","page","poster","prefix","quality","radius","rawTransformation","size","sourceTypes","sourceTransformation","startOffset","streamingProfile","transformation","underlay","variable","variables","videoCodec","videoSampling","width","x","y","zoom"],oe.PARAM_NAMES=oe.methods.map(_).concat(ft.CONFIG_PARAMS);var ie=oe;function ue(t,e){for(var n=0;n0&&(t+=" "+e),t+">"}},{key:"closeTag",value:function(){return"".concat(this.name,">")}},{key:"toHtml",value:function(){return this.openTag()+this.content()+this.closeTag()}},{key:"toDOM",value:function(){var t,e,n,r;if(!m("undefined"!=typeof document&&null!==document?document.createElement:void 0))throw"Can't create DOM if document is not present!";for(e in t=document.createElement(this.name),n=this.attributes())r=n[e],t.setAttribute(e,r);return t}}])&&ue(t.prototype,e),n&&ue(t,n),HtmlTag}(),le="2.5.0",fe="d3jpl91pxevbkh.cloudfront.net",pe="cloudinary-a.akamaihd.net",he="res.cloudinary.com",ye=he,ve={format:"jpg",resource_type:"video"},de=["webm","mp4","ogv"],me={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"},ge={resource_type:"image",transformation:[],type:"upload"},be={fallback_content:"",resource_type:"video",source_transformation:{},source_types:de,transformation:[],type:"upload"};function _e(t,e){var n,r,o,i,a,c;return 0===(null!=(a=e.cloud_name)?a.indexOf("/"):void 0)?"/res"+e.cloud_name:(i="http://",n="",c="res",r=".cloudinary.com",o="/"+e.cloud_name,e.protocol&&(i=e.protocol+"//"),e.private_cdn&&(n=e.cloud_name+"-",o=""),e.cdn_subdomain&&(c="res-"+function(t){return u(t)%5+1}(t)),e.secure?(i="https://",!1===e.secure_cdn_subdomain&&(c="res"),null!=e.secure_distribution&&e.secure_distribution!==pe&&e.secure_distribution!==ye&&(n="",c="",r=e.secure_distribution)):e.cname&&(i="http://",n="",c=e.cdn_subdomain?"a"+(u(t)%5+1)+".":"",r=e.cname),[i,n,c,r,o].join(""))}function De(t){var e,n,r,o,i,u,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)return t;if(a instanceof ie&&(a=a.toOptions()),"fetch"===(a=p({},a,c,ge)).type&&(a.fetch_format=a.fetch_format||a.format,t=function(t){var e;return t.match(/^https?:\//)||(e=document.location.protocol+"//"+document.location.host,"?"===t[0]?e+=document.location.pathname:"/"!==t[0]&&(e+=document.location.pathname.replace(/\/[^\/]*$/,"/")),t=e+t),t}(t)),o=new ie(a).serialize(),!a.cloud_name)throw"Unknown cloud_name";if(t.search("/")>=0&&!t.match(/^v[0-9]+/)&&!t.match(/^https?:\//)&&!(null!=(n=a.version)?n.toString():void 0)&&(a.version=1),t.match(/^https?:/))"upload"===a.type||"asset"===a.type?i=t:t=encodeURIComponent(t).replace(/%3A/g,":").replace(/%2F/g,"/");else{try{t=decodeURIComponent(t)}catch(s){s}if(t=encodeURIComponent(t).replace(/%3A/g,":").replace(/%2F/g,"/"),a.url_suffix){if(a.url_suffix.match(/[\.\/]/))throw"url_suffix should not include . or /";t=t+"/"+a.url_suffix}a.format&&(a.trust_public_id||(t=t.replace(/\.(jpg|png|gif|webp)$/,"")),t=t+"."+a.format)}return e=_e(t,a),r=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"upload",r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;if(n=null==n?"upload":n,K(e=null==e?"image":e)&&(e=(t=e).resource_type,n=t.type,r=t.url_suffix,o=t.use_root_path,i=t.shorten),null==n&&(n="upload"),null!=r&&(e=me["".concat(e,"/").concat(n)],n=null,null==e))throw new Error("URL Suffix only supported for ".concat(Object.keys(me).join(", ")));if(o){if(("image"!==e||"upload"!==n)&&"images"!==e)throw new Error("Root path only supported for image/upload");e=null,n=null}return i&&"image"===e&&"upload"===n&&(e="iu",n=null),[e,n].join("/")}(a.resource_type,a.type,a.url_suffix,a.use_root_path,a.shorten),u=a.version?"v"+a.version:"",i||M([e,r,o,u,t]).join("/").replace(/([^:])\/+/g,"$1/")}function Be(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var we=j;function Ae(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=k(r);return n=n||r,o.raw_transformation=new ie([L({},n),{crop:"scale",width:e}]).toString(),De(t,o)}function Ee(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(t){var e=t.breakpoints||[];if(e.length)return e;var n=Be([t.min_width,t.max_width,t.max_images].map(Number),3),r=n[0],o=n[1],i=n[2];if([r,o,i].some(isNaN))throw"Either (min_width, max_width, max_images) or breakpoints must be provided to the image srcset attribute";if(r>o)throw"min_width must be less than max_width";if(i<=0)throw"max_images must be a positive integer";1===i&&(r=o);for(var u=Math.ceil((o-r)/Math.max(i-1,1)),a=r;a1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o={};if(we(n))return o;var i=!e.sizes&&!0===n.sizes,u=!e.srcset;if(u||i){var a=Ee(t,n,r);if(u){var c=function(t,e,n,r){return F(r=H(r)),e.map(function(e){return"".concat(Ae(t,e,n,r)," ").concat(e,"w")}).join(", ")}(t,a,n.transformation,r);we(c)||(o.srcset=c)}if(i){var s=function(t){return null==t?"":t.map(function(t){return"(max-width: ".concat(t,"px) ").concat(t,"px")}).join(", ")}(a);we(s)||(o.sizes=s)}}return o}function ke(t){return(ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fe(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,ImageTag),Oe(this,Se(ImageTag).call(this,"img",t,e))}var e,n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Pe(t,e)}(ImageTag,se),e=ImageTag,(n=[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){var t,e,n;t=je(Se(ImageTag.prototype),"attributes",this).call(this)||{},e=this.getOptions();var r=this.getOption("srcset"),o=this.getOption("attributes")||{},i={};return N(r)?i.srcset=r:i=Ce(this.publicId,o,r,e),j(i)||(delete e.width,delete e.height),L(t,i),null==t[n=e.responsive&&!e.client_hints?"data-src":"src"]&&(t[n]=De(this.publicId,this.getOptions())),t}}])&&Fe(e.prototype,n),r&&Fe(e,r),ImageTag}();function Te(t){return(Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Re(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ze(this,Qe(e).call(this,"source",t,n))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ve(t,e)}(e,se),n=e,(r=[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){var t=this.getOption("srcset"),n=Ie(Qe(e.prototype),"attributes",this).call(this)||{},r=this.getOptions();return L(n,Ce(this.publicId,n,t,r)),n.srcset||(n.srcset=De(this.publicId,r)),!n.media&&r.media&&(n.media=function(t){var e=[];return null!=t&&(null!=t.min_width&&e.push("(min-width: ".concat(t.min_width,"px)")),null!=t.max_width&&e.push("(max-width: ".concat(t.max_width,"px)"))),e.join(" and ")}(r.media)),n}}])&&Re(n.prototype,r),o&&Re(n,o),e}();function Le(t){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Me(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,PictureTag),(e=He(this,We(PictureTag).call(this,"picture",t,n))).widthList=r,e}var e,n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$e(t,e)}(PictureTag,se),e=PictureTag,(n=[{key:"content",value:function(){var t=this;return this.widthList.map(function(e){var n=e.min_width,r=e.max_width,o=e.transformation,i=t.getOptions(),u=new ie(i);return u.chain().fromOptions("string"==typeof o?{raw_transformation:o}:o),(i=k(i)).media={min_width:n,max_width:r},i.transformation=u,new Ne(t.publicId,i).toHtml()}).join("")+new xe(this.publicId,this.getOptions()).toHtml()}},{key:"attributes",value:function(){var t=Ue(We(PictureTag.prototype),"attributes",this).call(this);return delete t.width,delete t.height,t}},{key:"closeTag",value:function(){return""+this.name+">"}}])&&Me(e.prototype,n),r&&Me(e,r),PictureTag}();function Ye(t){return(Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ze(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,VideoTag),e=p({},e,be),Ke(this,Ge(VideoTag).call(this,"video",t.replace(/\.(mp4|ogv|webm)$/,""),e))}var e,n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Je(t,e)}(VideoTag,se),e=VideoTag,(n=[{key:"setSourceTransformation",value:function(t){return this.transformation().sourceTransformation(t),this}},{key:"setSourceTypes",value:function(t){return this.transformation().sourceTypes(t),this}},{key:"setPoster",value:function(t){return this.transformation().poster(t),this}},{key:"setFallbackContent",value:function(t){return this.transformation().fallbackContent(t),this}},{key:"content",value:function(){var t,e,n,r,o,i,u,a;if(o=this.transformation().getValue("source_types"),r=this.transformation().getValue("source_transformation"),t=this.transformation().getValue("fallback_content"),Y(o)){var c=this.getOptions();e=function(){var t,e,s;for(s=[],t=0,e=o.length;t "));return s}.call(this)}else e=[];return e.join("")+t}},{key:"attributes",value:function(){var t,e,n,r,o,i,u,a,c;for(c=this.getOption("source_types"),i=null!=(u=this.getOption("poster"))?u:{},K(i)&&(n=null!=i.public_id?ge:en,i=De(null!=(a=i.public_id)?a:this.publicId,p({},i,n,this.getOptions()))),r=0,o=(e=Xe(Ge(VideoTag.prototype),"attributes",this).call(this)||[]).length;r1&&void 0!==arguments[1]?arguments[1]:100;return e*Math.ceil(t/e)},ln=function(t,e){var n;for(n=t.length-2;n>=0&&t[n]>=e;)n--;return t[n+1]},sn=function(t,e,n,r){var o,i,u,a;return!(a=null!=(o=null!=(i=null!=(u=r.responsive_use_breakpoints)?u:r.responsive_use_stoppoints)?i:this.config("responsive_use_breakpoints"))?o:this.config("responsive_use_stoppoints"))||"resize"===a&&!r.resizing?e:this.calc_breakpoint(t,e,n)},pn=function(t){var e,n;for(e=0;(t=null!=t?t.parentNode:void 0)instanceof Element&&!e;)n=window.getComputedStyle(t),/^inline/.test(n.display)||(e=V(t));return e},yn=function(t,e){return t.replace(/\bdpr_(1\.0|auto)\b/g,"dpr_"+this.device_pixel_ratio(e))},hn=function(t,e){var n;return t>(n=S(e,"width")||0)&&(n=t,P(e,"width",t)),n};var mn=function(){function Cloudinary(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,Cloudinary),this.devicePixelRatioCache={},this.responsiveConfig={},this.responsiveResizeInitialized=!1,e=new ft(t),this.config=function(t,n){return e.config(t,n)},this.fromDocument=function(){return e.fromDocument(),this},this.fromEnvironment=function(){return e.fromEnvironment(),this},this.init=function(){return e.init(),this}}var t,e,n;return t=Cloudinary,n=[{key:"new",value:function(t){return new this(t)}}],(e=[{key:"url",value:function(t){return De(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},this.config())}},{key:"video_url",value:function(t,e){return e=Z({resource_type:"video"},e),this.url(t,e)}},{key:"video_thumbnail_url",value:function(t,e){return e=Z({},ve,e),this.url(t,e)}},{key:"transformation_string",value:function(t){return new ie(t).serialize()}},{key:"image",value:function(t){var e,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=this.imageTag(t,o),e=null!=(r=null!=o.client_hints?o.client_hints:this.config("client_hints"))&&r,null!=o.src||e||n.setAttr("src",""),n=n.toDOM(),e||(P(n,"src-cache",this.url(t,o)),this.cloudinary_update(n,o)),n}},{key:"imageTag",value:function(t,e){var n;return(n=new xe(t,this.config())).transformation().fromOptions(e),n}},{key:"pictureTag",value:function(t,e){var n;return(n=new qe(t,this.config())).transformation().fromOptions(e),n}},{key:"sourceTag",value:function(t,e){var n;return(n=new Ne(t,this.config())).transformation().fromOptions(e),n}},{key:"video_thumbnail",value:function(t,e){return this.image(t,L({},ve,e))}},{key:"facebook_profile_image",value:function(t,e){return this.image(t,Z({type:"facebook"},e))}},{key:"twitter_profile_image",value:function(t,e){return this.image(t,Z({type:"twitter"},e))}},{key:"twitter_name_profile_image",value:function(t,e){return this.image(t,Z({type:"twitter_name"},e))}},{key:"gravatar_image",value:function(t,e){return this.image(t,Z({type:"gravatar"},e))}},{key:"fetch_image",value:function(t,e){return this.image(t,Z({type:"fetch"},e))}},{key:"video",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.videoTag(t,e).toHtml()}},{key:"videoTag",value:function(t,e){return e=p({},e,this.config()),new nn(t,e)}},{key:"sprite_css",value:function(t,e){return e=Z({type:"sprite"},e),t.match(/.css$/)||(e.format="css"),this.url(t,e)}},{key:"responsive",value:function(t){var e,n,r,o,i,u=this,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.responsiveConfig=L(this.responsiveConfig||{},t),o=null!=(e=this.responsiveConfig.responsive_class)?e:this.config("responsive_class"),a&&this.cloudinary_update("img.".concat(o,", img.cld-hidpi"),this.responsiveConfig),(null==(n=null!=(r=this.responsiveConfig.responsive_resize)?r:this.config("responsive_resize"))||n)&&!this.responsiveResizeInitialized)return this.responsiveConfig.resizing=this.responsiveResizeInitialized=!0,i=null,window.addEventListener("resize",function(){var t,e,n,r,a,c;return t=null!=(e=null!=(n=u.responsiveConfig.responsive_debounce)?n:u.config("responsive_debounce"))?e:100,r=function(){if(i)return clearTimeout(i),i=null},a=function(){return u.cloudinary_update("img.".concat(o),u.responsiveConfig)},c=function(){return r(),a()},t?function(){return r(),i=setTimeout(c,t)}():a()})}},{key:"calc_breakpoint",value:function(t,e,n){var r=S(t,"breakpoints")||S(t,"stoppoints")||this.config("breakpoints")||this.config("stoppoints")||fn;return m(r)?r(e,n):(N(r)&&(r=r.split(",").map(function(t){return parseInt(t)}).sort(function(t,e){return t-e})),ln(r,e))}},{key:"calc_stoppoint",value:function(t,e,n){return this.calc_breakpoint(t,e,n)}},{key:"device_pixel_ratio",value:function(t){t=null==t||t;var e=("undefined"!=typeof window&&null!==window?window.devicePixelRatio:void 0)||1;t&&(e=Math.ceil(e)),(e<=0||NaN===e)&&(e=1);var n=e.toString();return n.match(/^\d+$/)&&(n+=".0"),n}},{key:"processImageTags",value:function(t,e){if(j(t))return this;e=p({},e||{},this.config());var n=t.filter(function(t){return/^img$/i.test(t.tagName)}).map(function(t){var n=Z({width:t.getAttribute("width"),height:t.getAttribute("height"),src:t.getAttribute("src")},e),r=n.source||n.src;delete n.source,delete n.src;var o=new ie(n).toHtmlAttributes();return P(t,"src-cache",De(r,n)),t.setAttribute("width",o.width),t.setAttribute("height",o.height),t});return this.cloudinary_update(n,e),this}},{key:"cloudinary_update",value:function(t,e){var n,r,o,i,u=this;if(null===t)return this;null==e&&(e={});var a,c=null!=e.responsive?e.responsive:this.config("responsive");t=function(){switch(!1){case!Y(t):case"NodeList"!==t.constructor.name:return t;case!N(t):return document.querySelectorAll(t);default:return[t]}}(),a=this.responsiveConfig&&null!=this.responsiveConfig.responsive_class?this.responsiveConfig.responsive_class:null!=e.responsive_class?e.responsive_class:this.config("responsive_class");var s=null!=e.round_dpr?e.round_dpr:this.config("round_dpr");return t.forEach(function(t){if(/img/i.test(t.tagName)){var l=!0;if(c&&Q(t,a),!j(r=S(t,"src-cache")||S(t,"src"))){if(r=yn.call(u,r,s),se.isResponsive(t,a))if(0!==(n=pn(t))){switch(!1){case!/w_auto:breakpoints/.test(r):i=hn(n,t),r=r.replace(/w_auto:breakpoints([_0-9]*)(:[0-9]+)?/,"w_auto:breakpoints$1:".concat(i));break;case!(o=/w_auto(:(\d+))?/.exec(r)):i=sn.call(u,t,n,o[2],e),i=hn(i,t),r=r.replace(/w_auto[^,\/]*/g,"w_".concat(i))}R(t,"width"),e.responsive_preserve_height||R(t,"height")}else l=!1;l&&T(t,"src",r)}}}),this}},{key:"transformation",value:function(t){return ie.new(this.config()).fromOptions(t).setParent(this)}}])&&dn(t.prototype,e),n&&dn(t,n),Cloudinary}();Z(mn,o);var gn,bn=mn,_n=function(){for(var t=arguments.length,e=new Array(t),n=0;n0;){var r=e.shift();if(null!=r)return r}return null};function Dn(t){return(Dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Bn(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return n=this.imageTag(t,r),e=_n(r.client_hints,this.config("client_hints"),!1),null!=r.src||e||n.setAttr("src",""),n=jQuery(n.toHtml()),e||n.data("src-cache",this.url(t,r)).cloudinary_update(r),n}},{key:"responsive",value:function(t){var e,n,r,o,i=this;if(n=jQuery.extend(n||{},t),e=this.responsiveConfig.responsive_class||this.config("responsive_class"),jQuery("img.".concat(e,", img.cld-hidpi")).cloudinary_update(n),_n(n.responsive_resize,this.config("responsive_resize"),!0)&&!r)return n.resizing=r=!0,o=null,jQuery(window).on("resize",function(){var t=_n(n.responsive_debounce,i.config("responsive_debounce"),100),r=function(){if(o)return clearTimeout(o),o=null},u=function(){return jQuery("img.".concat(e)).cloudinary_update(n)};return t?(r(),setTimeout(function(){return r(),u()},t)):u()})}}])&&Bn(e.prototype,n),r&&Bn(e,r),CloudinaryJQuery}();jQuery.fn.cloudinary=function(t){return this.filter("img").each(function(){var e,n,r;return n=(e=jQuery.extend({width:jQuery(this).attr("width"),height:jQuery(this).attr("height"),src:jQuery(this).attr("src")},jQuery(this).data(),t)).source||e.src,delete e.source,delete e.src,r=jQuery.cloudinary.url(n,e),e=new ie(e).toHtmlAttributes(),jQuery(this).data("src-cache",r).attr({width:e.width,height:e.height})}).cloudinary_update(t),this},jQuery.fn.cloudinary_update=function(t){return jQuery.cloudinary.cloudinary_update(this.filter("img").toArray(),t),this},gn=null,jQuery.fn.webpify=function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return t=this,r=null!=r?r:n,gn||(gn=jQuery.Deferred(),(e=new Image).onerror=gn.reject,e.onload=gn.resolve,e.src="data:image/webp;base64,UklGRi4AAABXRUJQVlA4TCEAAAAvAUAAEB8wAiMwAgSSNtse/cXjxyCCmrYNWPwmHRH9jwMA"),jQuery(function(){return gn.done(function(){return jQuery(t).cloudinary(jQuery.extend({},r,{format:"webp"}))}).fail(function(){return jQuery(t).cloudinary(n)})}),this},jQuery.fn.fetchify=function(t){return this.cloudinary(jQuery.extend(t,{type:"fetch"}))},jQuery.cloudinary=new Cn,jQuery.cloudinary.fromDocument();var kn=Cn;n.d(e,"ClientHintsMetaTag",function(){return vn}),n.d(e,"Cloudinary",function(){return bn}),n.d(e,"CloudinaryJQuery",function(){return kn}),n.d(e,"Condition",function(){return ut}),n.d(e,"Configuration",function(){return ft}),n.d(e,"crc32",function(){return u}),n.d(e,"FetchLayer",function(){return jt}),n.d(e,"HtmlTag",function(){return se}),n.d(e,"ImageTag",function(){return xe}),n.d(e,"Layer",function(){return ht}),n.d(e,"PictureTag",function(){return qe}),n.d(e,"SubtitlesLayer",function(){return At}),n.d(e,"TextLayer",function(){return bt}),n.d(e,"Transformation",function(){return ie}),n.d(e,"utf8_encode",function(){return i}),n.d(e,"Util",function(){return r}),n.d(e,"VideoTag",function(){return nn});e.default={ClientHintsMetaTag:vn,Cloudinary:bn,CloudinaryJQuery:kn,Condition:ut,Configuration:ft,crc32:u,FetchLayer:jt,HtmlTag:se,ImageTag:xe,Layer:ht,PictureTag:qe,SubtitlesLayer:At,TextLayer:bt,Transformation:ie,utf8_encode:i,Util:r,VideoTag:nn}}])});
\ No newline at end of file
diff --git a/docs/ClientHintsMetaTag.html b/docs/ClientHintsMetaTag.html
index 8fdfe88..181a7e6 100644
--- a/docs/ClientHintsMetaTag.html
+++ b/docs/ClientHintsMetaTag.html
@@ -28,14 +28,14 @@
Classes
Global
@@ -175,1304 +175,6 @@ Extends
- Methods
-
-
-
-
-
- #attributes()
-
-
-
-
-
-
-
-
Get the attributes of the tag.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-Object
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #getAttr(name)
-
-
-
-
-
-
-
-
Get the value of the tag attribute name
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the name of the attribute
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-*
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #getOption(name)
-
-
-
-
-
-
-
-
Get the value of option name
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the name of the option
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-*
-
-
-
-
-
-
Returns the value of the option
-
-
-
-
-
- Type
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #getOptions()
-
-
-
-
-
-
-
-
Get all options related to this tag.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-Object
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #removeAttr(name)
-
-
-
-
-
-
-
-
Remove the tag attributed named name
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the name of the attribute
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-*
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #setAttr(name, value)
-
-
-
-
-
-
-
-
Set a tag attribute named name to value
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the name of the attribute
-
-
-
-
-
-
- value
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the value of the attribute
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #toAttribute(key, value)
-
-
-
-
-
-
-
-
Represent the given key and value as an HTML attribute.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- key
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- attribute name
-
-
-
-
-
-
- value
-
-
-
-
-
-*
-|
-
-boolean
-
-
-
-
-
-
-
-
-
-
- the value of the attribute. If the value is boolean true, return the key only.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-string
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #toDOM()
-
-
-
-
-
-
-
-
Creates a DOM object representing the tag.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-Element
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #toHtml()
-
-
-
-
-
-
-
-
Generates an HTML representation of the tag.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-string
-
-
-
-
-
-
Returns HTML in string format
-
-
-
-
-
- Type
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/docs/Cloudinary.html b/docs/Cloudinary.html
index e9dd1f9..942495a 100644
--- a/docs/Cloudinary.html
+++ b/docs/Cloudinary.html
@@ -28,14 +28,14 @@
Classes
Global
@@ -381,7 +381,7 @@ Methods
- .toHtmlAttributes()
+ #init()
@@ -389,7 +389,7 @@ .toHtmlAttributes()
-
Returns attributes for an HTML tag.
+
Initialize configuration.
@@ -434,6 +434,13 @@ .toHtmlAttributes()
+
+ See:
+
+
+
@@ -452,13 +459,30 @@ .toHtmlAttributes()
-Returns:
+
-
PlainObject
+
this for chaining
+
+
+ Type
+
+
+
+Cloudinary
+
+
+
+
+
+
@@ -469,7 +493,7 @@ Returns:
- #cloudinary_update(elements, options)
+ #url(publicId, options , config )
@@ -477,8 +501,7 @@ #cloudinary_update(elements, options)
-
Update hidpi (dpr_auto) and responsive (w_auto) fields according to the current container size and the device pixel ratio.
-Only images marked with the cld-responsive class have w_auto updated.
+
Generate an resource URL.
@@ -501,6 +524,8 @@ Parameters:
Type
+ Argument
+
@@ -513,19 +538,13 @@ Parameters:
- elements
+ publicId
-Array
-|
-
string
-|
-
-NodeList
@@ -533,10 +552,18 @@ Parameters:
+
+
+
+
+
+
+
+
- the elements to modify
+ the public ID of the resource
@@ -557,10 +584,21 @@ Parameters:
+
+
+ <optional>
+
+
+
+
+
+
+
-
+ options for the tag and transformations, possible values include all Transformation parameters
+ and Configuration parameters
Properties
@@ -590,15 +628,12 @@ Properties
- responsive_use_breakpoints
+ type
-boolean
-|
-
string
@@ -621,29 +656,25 @@ Properties
- true
+ 'upload'
-
-when true, always use breakpoints for width
-when "resize" use exact width on first render and breakpoints on resize
-when false always use exact width
-
+ the classification of the resource
- responsive
+ resource_type
-boolean
+Object
@@ -665,23 +696,32 @@ Properties
+ 'image'
+
- if true, enable responsive on this element. Can be done by adding cld-responsive.
+ the type of the resource
+
+
+
+
+
+
+
- responsive_preserve_height
+ config
-boolean
+Object
@@ -701,20 +741,8 @@ Properties
-
-
-
-
-
- if set to true, original css height is preserved.
- Should only be used if the transformation supports different aspect ratios.
-
-
-
-
-
-
+ URL configuration
@@ -774,6 +802,33 @@ Properties
+
+Returns:
+string
+
+
+
+
+
+
+
+
+
+ Type
+
+
+
+string
+
+
+
+
+
+
+
+
@@ -782,13 +837,17 @@ Properties
- #facebook_profile_image(publicId, options )
+ #url(publicId, options )
+
+
Generate an resource URL.
+
+
@@ -848,7 +907,7 @@ Parameters:
- the public ID of the image
+ the public ID of the resource
@@ -882,117 +941,10 @@ Parameters:
- options for the tag and transformations
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-HTMLImageElement
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-HTMLImageElement
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #fetch_image(publicId, options )
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
+ options for the tag and transformations, possible values include all Transformation parameters
+ and Configuration parameters
+ Properties
+
@@ -1008,6 +960,8 @@ Parameters:
+ Default
+
Description
@@ -1018,7 +972,7 @@ Parameters:
- publicId
+ type
@@ -1034,6 +988,8 @@ Parameters:
+ <optional>
+
@@ -1042,15 +998,21 @@ Parameters:
+
+
+ 'upload'
+
+
+
- the public ID of the image
+ the classification of the resource
- options
+ resource_type
@@ -1076,8 +1038,21 @@ Parameters:
+
+
+ 'image'
+
+
+
+
+ the type of the resource
+
+
+
+
+
- options for the tag and transformations
+
@@ -1139,3460 +1114,13 @@ Parameters:
Returns:
-HTMLImageElement
+string
-
-
-
-
- Type
-
-
-
-HTMLImageElement
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #gravatar_image(publicId, options )
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the public ID of the image
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
- options for the tag and transformations
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-HTMLImageElement
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-HTMLImageElement
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #image(publicId, options )
-
-
-
-
-
-
-
-
Generate an image tag.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the public ID of the image
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
- options for the tag and transformations
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-HTMLImageElement
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-HTMLImageElement
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #imageTag(publicId, options)
-
-
-
-
-
-
-
-
Creates a new ImageTag instance, configured using this own's configuration.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the public ID of the resource
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
- additional options to pass to the new ImageTag instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
An ImageTag that is attached (chained) to this Cloudinary instance
-
-
-
-
-
- Type
-
-
-
-ImageTag
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #init()
-
-
-
-
-
-
-
-
Initialize configuration.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- See:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Cloudinary
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #normalize(expression)
-
-
-
-
-
-
-
-
Normalize a string expression
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- expression
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- a expression, e.g. "w gt 100", "width_gt_100", "width > 100"
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-string
-
-
-
-
-
-
the normalized form of the value expression, e.g. "w_gt_100"
-
-
-
-
-
- Type
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Finds all img tags under each node and sets it up to provide the image through Cloudinary
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
- Default
-
-
- Description
-
-
-
-
-
-
-
-
- nodes
-
-
-
-
-
-Array.<Element>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the parent nodes to search for img under
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- {}
-
-
-
-
- options and transformations params
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #responsive(options, bootstrap )
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
- Default
-
-
- Description
-
-
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Properties
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
- Default
-
-
- Description
-
-
-
-
-
-
-
-
- responsive_class
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- 'cld-responsive'
-
-
-
-
- provide an alternative class used to locate img tags
-
-
-
-
-
-
- responsive_debounce
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- 100
-
-
-
-
- the debounce interval in milliseconds.
-
-
-
-
-
-
-
-
-
-
-
-
-
- bootstrap
-
-
-
-
-
-boolean
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- true
-
-
-
-
- if true processes the img tags by calling cloudinary_update. When false the tags will be processed only after a resize event.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- See:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #sprite_css(publicId, options )
-
-
-
-
-
-
-
-
Generate the URL of the sprite image
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the public ID of the resource
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
- options for the tag and transformations
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- See:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Provide a transformation object, initialized with own's options, for chaining purposes.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Transformation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Generate a string representation of the provided transformation options.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
- the transformation options
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-string
-
-
-
-
-
-
The transformation string
-
-
-
-
-
- Type
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the public ID of the image
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
- options for the tag and transformations
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-HTMLImageElement
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-HTMLImageElement
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the public ID of the image
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
- options for the tag and transformations
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-HTMLImageElement
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-HTMLImageElement
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #url(publicId, options )
-
-
-
-
-
-
-
-
Generate an resource URL.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the public ID of the resource
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
- options for the tag and transformations, possible values include all Transformation parameters
- and Configuration parameters
- Properties
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
- Default
-
-
- Description
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- 'upload'
-
-
-
-
- the classification of the resource
-
-
-
-
-
-
- resource_type
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- 'image'
-
-
-
-
- the type of the resource
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-string
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #video(publicId, options )
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the public ID of the image
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
- options for the tag and transformations
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-HTMLImageElement
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-HTMLImageElement
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #video_thumbnail(publicId, options )
-
-
-
-
-
-
-
-
Generate an image tag for the video thumbnail.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the public ID of the video
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
- options for the tag and transformations
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-HTMLImageElement
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-HTMLImageElement
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #video_thumbnail_url(publicId, options )
-
-
-
-
-
-
-
-
Generate an video thumbnail URL.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the public ID of the resource
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
- options for the tag and transformations, possible values include all Transformation parameters
- and Configuration parameters
- Properties
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
- Default
-
-
- Description
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- 'upload'
-
-
-
-
- the classification of the resource
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-string
-
-
-
-
-
-
The video thumbnail URL
-
-
-
-
-
- Type
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #video_url(publicId, options )
-
-
-
-
-
-
-
-
Generate an video resource URL.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the public ID of the resource
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
- options for the tag and transformations, possible values include all Transformation parameters
- and Configuration parameters
- Properties
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
- Default
-
-
- Description
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- 'upload'
-
-
-
-
- the classification of the resource
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-string
-
-
-
-
-
-
The video URL
+
The resource URL
@@ -4613,185 +1141,6 @@ Returns:
-
-
-
-
-
-
- #videoTag(publicId, options)
-
-
-
-
-
-
-
-
Creates a new VideoTag instance, configured using this own's configuration.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the public ID of the resource
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
- additional options to pass to the new VideoTag instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
A VideoTag that is attached (chained) to this Cloudinary instance
-
-
-
-
-
- Type
-
-
-
-VideoTag
-
-
-
-
-
-
-
-
-
-
diff --git a/docs/CloudinaryJQuery.html b/docs/CloudinaryJQuery.html
index 389a756..f21f304 100644
--- a/docs/CloudinaryJQuery.html
+++ b/docs/CloudinaryJQuery.html
@@ -28,14 +28,14 @@
Classes
Global
@@ -181,3961 +181,24 @@ Methods
- #cloudinary_update(elements, options)
-
-
-
-
-
-
-
-
Update hidpi (dpr_auto) and responsive (w_auto) fields according to the current container size and the device pixel ratio.
-Only images marked with the cld-responsive class have w_auto updated.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- elements
-
-
-
-
-
-Array
-|
-
-string
-|
-
-NodeList
-
-
-
-
-
-
-
-
-
-
- the elements to modify
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
- Properties
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
- Default
-
-
- Description
-
-
-
-
-
-
-
-
- responsive_use_breakpoints
-
-
-
-
-
-boolean
-|
-
-string
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- true
-
-
-
-
-
-when true, always use breakpoints for width
-when "resize" use exact width on first render and breakpoints on resize
-when false always use exact width
-
-
-
-
-
-
-
- responsive
-
-
-
-
-
-boolean
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- if true, enable responsive on this element. Can be done by adding cld-responsive.
-
-
-
-
-
-
- responsive_preserve_height
-
-
-
-
-
-boolean
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- if set to true, original css height is preserved.
- Should only be used if the transformation supports different aspect ratios.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #facebook_profile_image(publicId, options )
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the public ID of the image
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
- options for the tag and transformations
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-HTMLImageElement
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-HTMLImageElement
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #fetch_image(publicId, options )
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the public ID of the image
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
- options for the tag and transformations
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-HTMLImageElement
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-HTMLImageElement
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #gravatar_image(publicId, options )
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the public ID of the image
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
- options for the tag and transformations
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-HTMLImageElement
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-HTMLImageElement
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #image(publicId, options )
-
-
-
-
-
-
-
-
Generate an image tag.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the public ID of the image
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
- options for the tag and transformations
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-HTMLImageElement
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-HTMLImageElement
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #imageTag(publicId, options)
-
-
-
-
-
-
-
-
Creates a new ImageTag instance, configured using this own's configuration.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the public ID of the resource
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
- additional options to pass to the new ImageTag instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
An ImageTag that is attached (chained) to this Cloudinary instance
-
-
-
-
-
- Type
-
-
-
-ImageTag
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #init()
-
-
-
-
-
-
-
-
Initialize configuration.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- See:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Cloudinary
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #normalize(expression)
-
-
-
-
-
-
-
-
Normalize a string expression
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- expression
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- a expression, e.g. "w gt 100", "width_gt_100", "width > 100"
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-string
-
-
-
-
-
-
the normalized form of the value expression, e.g. "w_gt_100"
-
-
-
-
-
- Type
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Finds all img tags under each node and sets it up to provide the image through Cloudinary
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
- Default
-
-
- Description
-
-
-
-
-
-
-
-
- nodes
-
-
-
-
-
-Array.<Element>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the parent nodes to search for img under
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- {}
-
-
-
-
- options and transformations params
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #responsive(options, bootstrap )
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
- Default
-
-
- Description
-
-
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Properties
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
- Default
-
-
- Description
-
-
-
-
-
-
-
-
- responsive_class
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- 'cld-responsive'
-
-
-
-
- provide an alternative class used to locate img tags
-
-
-
-
-
-
- responsive_debounce
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- 100
-
-
-
-
- the debounce interval in milliseconds.
-
-
-
-
-
-
-
-
-
-
-
-
-
- bootstrap
-
-
-
-
-
-boolean
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- true
-
-
-
-
- if true processes the img tags by calling cloudinary_update. When false the tags will be processed only after a resize event.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- See:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #sprite_css(publicId, options )
-
-
-
-
-
-
-
-
Generate the URL of the sprite image
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the public ID of the resource
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
- options for the tag and transformations
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- See:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Provide a transformation object, initialized with own's options, for chaining purposes.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Transformation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Generate a string representation of the provided transformation options.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
- the transformation options
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-string
-
-
-
-
-
-
The transformation string
-
-
-
-
-
- Type
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the public ID of the image
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
- options for the tag and transformations
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-HTMLImageElement
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-HTMLImageElement
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the public ID of the image
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
- options for the tag and transformations
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-HTMLImageElement
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-HTMLImageElement
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #url(publicId, options )
-
-
-
-
-
-
-
-
Generate an resource URL.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the public ID of the resource
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
- options for the tag and transformations, possible values include all Transformation parameters
- and Configuration parameters
- Properties
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
- Default
-
-
- Description
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- 'upload'
-
-
-
-
- the classification of the resource
-
-
-
-
-
-
- resource_type
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- 'image'
-
-
-
-
- the type of the resource
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-string
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #video(publicId, options )
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the public ID of the image
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
- options for the tag and transformations
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-HTMLImageElement
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-HTMLImageElement
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #video_thumbnail(publicId, options )
-
-
-
-
-
-
-
-
Generate an image tag for the video thumbnail.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the public ID of the video
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
- options for the tag and transformations
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-HTMLImageElement
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-HTMLImageElement
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #video_thumbnail_url(publicId, options )
-
-
-
-
-
-
-
-
Generate an video thumbnail URL.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- publicId
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the public ID of the resource
-
-
-
-
-
-
- options
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
- options for the tag and transformations, possible values include all Transformation parameters
- and Configuration parameters
- Properties
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
- Default
-
-
- Description
-
-
+ #init()
-
-
-
-
- type
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
-
-
-
-
-
-
- 'upload'
-
-
-
-
- the classification of the resource
-
+
+
-
-
+
+
Initialize configuration.
+
+
-
-
+
-
-
+
@@ -4150,7 +213,7 @@ Properties
@@ -4180,6 +243,13 @@ Properties
+
+ See:
+
+
+
@@ -4199,13 +269,13 @@ Properties
-
The video thumbnail URL
+
this for chaining
@@ -4215,7 +285,7 @@ Returns:
-string
+Cloudinary
@@ -4232,7 +302,7 @@ Returns:
- #video_url(publicId, options )
+ #url(publicId, options )
@@ -4240,7 +310,7 @@ #video_url(publicId, opti
-
Generate an video resource URL.
+
Generate an resource URL.
@@ -4404,163 +474,16 @@ Properties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-string
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #videoTag(publicId, options)
-
-
-
-
-
-
-
-
Creates a new VideoTag instance, configured using this own's configuration.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
- publicId
+ resource_type
-string
+Object
@@ -4568,34 +491,33 @@ Parameters:
+
+
+ <optional>
+
-
-
- the public ID of the resource
-
-
-
+
-
-
- options
+
+
-
+
-Object
-
-
-
+ 'image'
+
+
-
-
+ the type of the resource
+
-
+
+
+
- additional options to pass to the new VideoTag instance
+
@@ -4617,13 +539,18 @@ Parameters:
+ Overrides:
+
+
@@ -4666,13 +593,13 @@ Parameters:
Returns:
-VideoTag
+string
-
A VideoTag that is attached (chained) to this Cloudinary instance
+
The resource URL
@@ -4682,7 +609,7 @@ Returns:
-VideoTag
+string
diff --git a/docs/Condition.html b/docs/Condition.html
index 031de75..fff2c1e 100644
--- a/docs/Condition.html
+++ b/docs/Condition.html
@@ -28,14 +28,14 @@
Classes
Global
@@ -241,719 +241,7 @@ Methods
- #aspectRatio(operator, value)
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- operator
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the comparison operator (e.g. "<", "lt")
-
-
-
-
-
-
- value
-
-
-
-
-
-string
-|
-
-number
-
-
-
-
-
-
-
-
-
-
- the right hand side value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Condition
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #faces(operator, value)
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- operator
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the comparison operator (e.g. "<", "lt")
-
-
-
-
-
-
- value
-
-
-
-
-
-string
-|
-
-number
-
-
-
-
-
-
-
-
-
-
- the right hand side value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Condition
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #height(operator, value)
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- operator
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the comparison operator (e.g. "<", "lt")
-
-
-
-
-
-
- value
-
-
-
-
-
-string
-|
-
-number
-
-
-
-
-
-
-
-
-
-
- the right hand side value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Condition
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #pages(operator, value)
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- operator
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the comparison operator (e.g. "<", "lt")
-
-
-
-
-
-
- value
-
-
-
-
-
-string
-|
-
-number
-
-
-
-
-
-
-
-
-
-
- the right hand side value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Condition
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #width(operator, value)
+ #height(operator, value)
diff --git a/docs/Configuration.html b/docs/Configuration.html
index 5b5aa64..0f4eaa8 100644
--- a/docs/Configuration.html
+++ b/docs/Configuration.html
@@ -28,14 +28,14 @@
Classes
Global
@@ -220,7 +220,7 @@ Methods
- #config(new_config, new_value)
+ #init()
@@ -228,9 +228,8 @@ #config(new_config, new_value)
-
Create or modify the Cloudinary client configuration
-
Warning: config() returns the actual internal configuration object. modifying it will change the configuration.
-
This is a backward compatibility method. For new code, use get(), merge() etc.
+
Initialize the configuration.
+The function first tries to retrieve the configuration form the environment and then from the document.
@@ -240,86 +239,6 @@ #config(new_config, new_value)
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- new_config
-
-
-
-
-
-hash
-|
-
-string
-|
-
-boolean
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- new_value
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -359,9 +278,9 @@ Parameters:
See:
- fromEnvironment for initialization using environment variables
+ fromDocument
- fromDocument for initialization using HTML meta tags
+ fromEnvironment
@@ -383,119 +302,16 @@ Parameters:
-
configuration, or value
+
returns this for chaining
-
-
- Type
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #fromDocument()
-
-
-
-
-
-
-
-
Initialize Cloudinary from HTML meta tags.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Type
@@ -513,648 +329,6 @@ Returns:
- Example
-
- <meta name="cloudinary_cloud_name" content="mycloud">
-
-
-
-
-
-
-
-
-
- #fromEnvironment()
-
-
-
-
-
-
-
-
Initialize Cloudinary from the CLOUDINARY_URL environment variable.
-
This function will only run under Node.js environment.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Requires:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #get(name)
-
-
-
-
-
-
-
-
Get the value of a configuration item
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the name of the item to set
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-*
-
-
-
-
-
-
the configuration item
-
-
-
-
-
- Type
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #init()
-
-
-
-
-
-
-
-
Initialize the configuration.
-The function first tries to retrieve the configuration form the environment and then from the document.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- See:
-
-
- fromDocument
-
- fromEnvironment
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
returns this for chaining
-
-
-
-
-
- Type
-
-
-
-Configuration
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #set(name, value)
-
-
-
-
-
-
-
-
Set a new configuration item
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the name of the item to set
-
-
-
-
-
-
- value
-
-
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
- the value to be set
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Configuration
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #toOptions()
-
-
-
-
-
-
-
-
Returns a copy of the configuration parameters
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-Object
-
-
-
-
-
-
a key:value collection of the configuration parameters
-
-
-
-
-
- Type
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
diff --git a/docs/Expression.html b/docs/Expression.html
index a13cef2..f6fe8d6 100644
--- a/docs/Expression.html
+++ b/docs/Expression.html
@@ -28,14 +28,14 @@
Classes
Global
@@ -220,2031 +220,7 @@ Methods
- .aspectRatio()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
a new expression with the predefined variable "aspectRatio"
-
-
-
-
-
-
-
-
-
-
-
-
-
- .currentPage()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
a new expression with the predefined variable "currentPage"
-
-
-
-
-
-
-
-
-
-
-
-
-
- .faceCount()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
a new expression with the predefined variable "faceCount"
-
-
-
-
-
-
-
-
-
-
-
-
-
- .height()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
a new expression with the predefined variable "height"
-
-
-
-
-
-
-
-
-
-
-
-
-
- .initialAspectRatio()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
a new expression with the predefined variable "initialAspectRatio"
-
-
-
-
-
-
-
-
-
-
-
-
-
- .initialHeight()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
a new expression with the predefined variable "initialHeight"
-
-
-
-
-
-
-
-
-
-
-
-
-
- .initialWidth()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
a new expression with the predefined variable "initialWidth"
-
-
-
-
-
-
-
-
-
-
-
-
-
- .new()
-
-
-
-
-
-
-
-
Convenience constructor method
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .pageCount()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
a new expression with the predefined variable "pageCount"
-
-
-
-
-
-
-
-
-
-
-
-
-
- .pageX()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
a new expression with the predefined variable "pageX"
-
-
-
-
-
-
-
-
-
-
-
-
-
- .pageY()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
a new expression with the predefined variable "pageY"
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
a new expression with the predefined variable "tags"
-
-
-
-
-
-
-
-
-
-
-
-
-
- .width()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
a new expression with the predefined variable "width"
-
-
-
-
-
-
-
-
-
-
-
-
-
- #and()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #aspectRatio(operator, value)
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- operator
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the comparison operator (e.g. "<", "lt")
-
-
-
-
-
-
- value
-
-
-
-
-
-string
-|
-
-number
-
-
-
-
-
-
-
-
-
-
- the right hand side value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Expression
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #faces(operator, value)
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- operator
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the comparison operator (e.g. "<", "lt")
-
-
-
-
-
-
- value
-
-
-
-
-
-string
-|
-
-number
-
-
-
-
-
-
-
-
-
-
- the right hand side value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Expression
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #height(operator, value)
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- operator
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the comparison operator (e.g. "<", "lt")
-
-
-
-
-
-
- value
-
-
-
-
-
-string
-|
-
-number
-
-
-
-
-
-
-
-
-
-
- the right hand side value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Expression
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #or()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #pages(operator, value)
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- operator
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the comparison operator (e.g. "<", "lt")
-
-
-
-
-
-
- value
-
-
-
-
-
-string
-|
-
-number
-
-
-
-
-
-
-
-
-
-
- the right hand side value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Expression
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #predicate()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #then()
+ .new()
@@ -2252,7 +228,7 @@ #then()
-
Conclude expression
+
Convenience constructor method
@@ -2314,211 +290,6 @@ #then()
-
-
-
-
-
the transformation this expression is defined for
-
-
-
-
-
- Type
-
-
-
-Transformation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #width(operator, value)
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- operator
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the comparison operator (e.g. "<", "lt")
-
-
-
-
-
-
- value
-
-
-
-
-
-string
-|
-
-number
-
-
-
-
-
-
-
-
-
-
- the right hand side value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Expression
-
-
-
-
-
-
-
-
diff --git a/docs/FetchLayer.html b/docs/FetchLayer.html
index 09f5327..f177838 100644
--- a/docs/FetchLayer.html
+++ b/docs/FetchLayer.html
@@ -28,14 +28,14 @@
Classes
Global
@@ -263,113 +263,6 @@ Properties
- Methods
-
-
-
-
-
- #toString()
-
-
-
-
-
-
-
-
generate the string representation of the layer
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-String
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/docs/HtmlTag.html b/docs/HtmlTag.html
index b4697e5..739fb02 100644
--- a/docs/HtmlTag.html
+++ b/docs/HtmlTag.html
@@ -28,14 +28,14 @@
Classes
Global
@@ -532,1219 +532,6 @@ Example
-
-
-
-
-
-
- #attributes()
-
-
-
-
-
-
-
-
Get the attributes of the tag.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-Object
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #getAttr(name)
-
-
-
-
-
-
-
-
Get the value of the tag attribute name
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the name of the attribute
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-*
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #getOption(name)
-
-
-
-
-
-
-
-
Get the value of option name
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the name of the option
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-*
-
-
-
-
-
-
Returns the value of the option
-
-
-
-
-
- Type
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #getOptions()
-
-
-
-
-
-
-
-
Get all options related to this tag.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-Object
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #removeAttr(name)
-
-
-
-
-
-
-
-
Remove the tag attributed named name
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the name of the attribute
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-*
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #setAttr(name, value)
-
-
-
-
-
-
-
-
Set a tag attribute named name to value
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the name of the attribute
-
-
-
-
-
-
- value
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the value of the attribute
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #toAttribute(key, value)
-
-
-
-
-
-
-
-
Represent the given key and value as an HTML attribute.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- key
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- attribute name
-
-
-
-
-
-
- value
-
-
-
-
-
-*
-|
-
-boolean
-
-
-
-
-
-
-
-
-
-
- the value of the attribute. If the value is boolean true, return the key only.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-string
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #toDOM()
-
-
-
-
-
-
-
-
Creates a DOM object representing the tag.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-Element
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #toHtml()
-
-
-
-
-
-
-
-
Generates an HTML representation of the tag.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-string
-
-
-
-
-
-
Returns HTML in string format
-
-
-
-
-
- Type
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
diff --git a/docs/ImageTag.html b/docs/ImageTag.html
index db2c987..10e9d06 100644
--- a/docs/ImageTag.html
+++ b/docs/ImageTag.html
@@ -28,14 +28,14 @@
Classes
Global
@@ -271,1304 +271,6 @@ Extends
- Methods
-
-
-
-
-
- #attributes()
-
-
-
-
-
-
-
-
Get the attributes of the tag.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-Object
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #getAttr(name)
-
-
-
-
-
-
-
-
Get the value of the tag attribute name
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the name of the attribute
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-*
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #getOption(name)
-
-
-
-
-
-
-
-
Get the value of option name
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the name of the option
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-*
-
-
-
-
-
-
Returns the value of the option
-
-
-
-
-
- Type
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #getOptions()
-
-
-
-
-
-
-
-
Get all options related to this tag.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-Object
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #removeAttr(name)
-
-
-
-
-
-
-
-
Remove the tag attributed named name
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the name of the attribute
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-*
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #setAttr(name, value)
-
-
-
-
-
-
-
-
Set a tag attribute named name to value
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the name of the attribute
-
-
-
-
-
-
- value
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the value of the attribute
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #toAttribute(key, value)
-
-
-
-
-
-
-
-
Represent the given key and value as an HTML attribute.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- key
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- attribute name
-
-
-
-
-
-
- value
-
-
-
-
-
-*
-|
-
-boolean
-
-
-
-
-
-
-
-
-
-
- the value of the attribute. If the value is boolean true, return the key only.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-string
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #toDOM()
-
-
-
-
-
-
-
-
Creates a DOM object representing the tag.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-Element
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #toHtml()
-
-
-
-
-
-
-
-
Generates an HTML representation of the tag.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-string
-
-
-
-
-
-
Returns HTML in string format
-
-
-
-
-
- Type
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/docs/Layer.html b/docs/Layer.html
index fd45050..0aa682b 100644
--- a/docs/Layer.html
+++ b/docs/Layer.html
@@ -28,14 +28,14 @@
Classes
Global
@@ -214,298 +214,6 @@ Parameters:
- Methods
-
-
-
-
-
- #getFullPublicId()
-
-
-
-
-
-
-
-
Get the public ID, with format if present
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-String
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #getPublicId()
-
-
-
-
-
-
-
-
Get the public ID, formatted for layer parameter
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-String
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #toString()
-
-
-
-
-
-
-
-
generate the string representation of the layer
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/docs/SourceTag.html b/docs/SourceTag.html
new file mode 100644
index 0000000..43ddfd4
--- /dev/null
+++ b/docs/SourceTag.html
@@ -0,0 +1,399 @@
+
+
+
+
+
+ Cloudinary JavaScript Library Class: SourceTag
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Class: SourceTag
+
+
+
+
+
+
+
+
+
+
+
+ new SourceTag(publicId , options )
+
+
+
+
+
+
+
+
Creates an HTML (DOM) Image tag using Cloudinary as the source.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Argument
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ publicId
+
+
+
+
+
+string
+
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ options
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Extends
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DocStrap Copyright © 2012-2014 The contributors to the JSDoc3 and DocStrap projects.
+
+
+
+ Documentation generated by JSDoc using the
+ DocStrap template .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/SubtitlesLayer.html b/docs/SubtitlesLayer.html
index e8d9c7f..c87b766 100644
--- a/docs/SubtitlesLayer.html
+++ b/docs/SubtitlesLayer.html
@@ -28,14 +28,14 @@
Classes
Global
diff --git a/docs/TextLayer.html b/docs/TextLayer.html
index e7ae230..afa7660 100644
--- a/docs/TextLayer.html
+++ b/docs/TextLayer.html
@@ -28,14 +28,14 @@
Classes
Global
@@ -210,113 +210,6 @@ Parameters:
- Methods
-
-
-
-
-
- #toString()
-
-
-
-
-
-
-
-
generate the string representation of the layer
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-String
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-String
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/docs/Transformation.html b/docs/Transformation.html
index a088f1d..889c3e0 100644
--- a/docs/Transformation.html
+++ b/docs/Transformation.html
@@ -28,14 +28,14 @@
Classes
Global
@@ -860,111 +860,6 @@ Returns:
-
-
-
-
-
-
- #serialize()
-
-
-
-
-
-
-
-
Generate a string representation of the transformation.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-string
-
-
-
-
-
-
Returns the transformation as a string
-
-
-
-
-
- Type
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
@@ -1120,122 +1015,6 @@ Returns:
-
-
-
-
-
-
- #toHtml()
-
-
-
-
-
-
-
-
Delegate to the parent (up the call chain) to produce HTML
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-string
-
-
-
-
-
-
HTML representation of the parent if possible.
-
-
-
-
-
- Type
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- Example
-
- tag = cloudinary.ImageTag.new("sample", {cloud_name: "demo"})
-// ImageTag {name: "img", publicId: "sample"}
-tag.toHtml()
-// <img src="http://res.cloudinary.com/demo/image/upload/sample">
-tag.transformation().crop("fit").width(300).toHtml()
-// <img src="http://res.cloudinary.com/demo/image/upload/c_fit,w_300/sample">
-
-
-
diff --git a/docs/TransformationBase.html b/docs/TransformationBase.html
index d9d052c..40d0680 100644
--- a/docs/TransformationBase.html
+++ b/docs/TransformationBase.html
@@ -28,14 +28,14 @@
Classes
Global
diff --git a/docs/Util.html b/docs/Util.html
deleted file mode 100644
index 477e530..0000000
--- a/docs/Util.html
+++ /dev/null
@@ -1,5006 +0,0 @@
-
-
-
-
-
- Cloudinary JavaScript Library Class: Util
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Class: Util
-
-
-
-
-
-
-
-
-
-
-
- new Util()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Methods
-
-
-
-
-
- .addClass(element, name)
-
-
-
-
-
-
-
-
Add class to the element
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- element
-
-
-
-
-
-Element
-
-
-
-
-
-
-
-
-
-
- the element
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the class name to add
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .allString(list)
-
-
-
-
-
-
-
-
Return true if all items in list are strings
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- list
-
-
-
-
-
-Array
-
-
-
-
-
-
-
-
-
-
- an array of items
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .assign(destination)
-
-
-
-
-
-
-
-
Assign source properties to destination.
-If the property is an object it is assigned as a whole, overriding the destination object.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- destination
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
- the object to assign to
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .base64EncodeURL(url)
-
-
-
-
-
-
-
-
Returns the Base64-decoded version of url.
-This method delegates to btoa if present. Otherwise it tries Buffer.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- url
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the url to encode. the value is URIdecoded and then re-encoded before converting to base64 representation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-string
-
-
-
-
-
-
the base64 representation of the URL
-
-
-
-
-
- Type
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .camelCase(string)
-
-
-
-
-
-
-
-
Convert string to camelCase
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- string
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the string to convert
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-string
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .cloneDeep(value)
-
-
-
-
-
-
-
-
Create a new copy of the given object, including all internal objects.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- value
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
- the object to clone
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-Object
-
-
-
-
-
-
a new deep copy of the object
-
-
-
-
-
- Type
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .compact(array)
-
-
-
-
-
-
-
-
Creates a new array from the parameter with "falsey" values removed
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- array
-
-
-
-
-
-Array
-
-
-
-
-
-
-
-
-
-
- the array to remove values from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-Array
-
-
-
-
-
-
a new array without falsey values
-
-
-
-
-
- Type
-
-
-
-Array
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .contains(array, item)
-
-
-
-
-
-
-
-
Check if a given item is included in the given array
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- array
-
-
-
-
-
-Array
-
-
-
-
-
-
-
-
-
-
- the array to search in
-
-
-
-
-
-
- item
-
-
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
- the item to search for
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-boolean
-
-
-
-
-
-
true if the item is included in the array
-
-
-
-
-
- Type
-
-
-
-boolean
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .defaults(destination, source)
-
-
-
-
-
-
-
-
Assign values from sources if they are not defined in the destination.
-Once a value is set it does not change
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- destination
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the object to assign defaults to
-
-
-
-
-
-
- source
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
- <repeatable>
-
-
-
-
-
-
- the source object(s) to assign defaults from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-Object
-
-
-
-
-
-
destination after it was modified
-
-
-
-
-
- Type
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .difference(arr, values)
-
-
-
-
-
-
-
-
Returns values in the given array that are not included in the other array
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- arr
-
-
-
-
-
-Array
-
-
-
-
-
-
-
-
-
-
- the array to select from
-
-
-
-
-
-
- values
-
-
-
-
-
-Array
-
-
-
-
-
-
-
-
-
-
- values to filter from arr
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-Array
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Array
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .functions(object)
-
-
-
-
-
-
-
-
Returns a list of all the function names in obj
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- object
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
- the object to inspect
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-Array
-
-
-
-
-
-
a list of functions of object
-
-
-
-
-
- Type
-
-
-
-Array
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .getAttribute(element, name)
-
-
-
-
-
-
-
-
Get attribute from the DOM element.
-
This method will use jQuery's attr() method if it is available, otherwise it will get the attribute directly
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- element
-
-
-
-
-
-Element
-
-
-
-
-
-
-
-
-
-
- the element to set the attribute for
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the name of the attribute
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-*
-
-
-
-
-
-
the value of the attribute
-
-
-
-
-
- Type
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .getData(element, name)
-
-
-
-
-
-
-
-
Get data from the DOM element.
-
This method will use jQuery's data() method if it is available, otherwise it will get the data- attribute
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- element
-
-
-
-
-
-Element
-
-
-
-
-
-
-
-
-
-
- the element to get the data from
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the name of the data item
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
the value associated with the name
-
-
-
-
-
-
-
-
-
-
-
-
-
- .hasClass(element, name)
-
-
-
-
-
-
-
-
Checks if element has a css class
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- element
-
-
-
-
-
-Element
-
-
-
-
-
-
-
-
-
-
- the element to check
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the class name
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-boolean
-
-
-
-
-
-
true if the element has the class
-
-
-
-
-
- Type
-
-
-
-boolean
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .identity(value)
-
-
-
-
-
-
-
-
Returns the provided value. This functions is used as a default predicate function.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- value
-
-
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-*
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .isEmpty(item)
-
-
-
-
-
-
-
-
Returns true if item is empty:
-
- item is null or undefined
- item is an array or string of length 0
- item is an object with no keys
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- item
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-boolean
-
-
-
-
-
-
true if item is empty
-
-
-
-
-
- Type
-
-
-
-boolean
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .isFunction(value)
-
-
-
-
-
-
-
-
Checks if value is classified as a Function object.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- value
-
-
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
- The value to check.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-boolean
-
-
-
-
-
-
Returns true if value is correctly classified, else false.
-
-
-
-
-
- Type
-
-
-
-boolean
-
-
-
-
-
-
-
-
-
-
- Example
-
- function Foo(){};
-isFunction(Foo);
-// => true
-
-isFunction(/abc/);
-// => false
-
-
-
-
-
-
-
-
-
- .isNumberLike(value)
-
-
-
-
-
-
-
-
Return true is value is a number or a string representation of a number.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- value
-
-
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-boolean
-
-
-
-
-
-
true if value is a number
-
-
-
-
-
- Type
-
-
-
-boolean
-
-
-
-
-
-
-
-
-
-
- Example
-
- Util.isNumber(0) // true
- Util.isNumber("1.3") // true
- Util.isNumber("") // false
- Util.isNumber(undefined) // false
-
-
-
-
-
-
-
-
-
- .merge(destination, sources )
-
-
-
-
-
-
-
-
Recursively assign source properties to destination
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
- Argument
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- destination
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- the object to assign to
-
-
-
-
-
-
- sources
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
- <optional>
-
-
-
-
-
- <repeatable>
-
-
-
-
-
-
- The source objects.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .removeAttribute(element, name)
-
-
-
-
-
-
-
-
Remove an attribute in the DOM element.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- element
-
-
-
-
-
-Element
-
-
-
-
-
-
-
-
-
-
- the element to set the attribute for
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the name of the attribute
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .setAttribute(element, name, value)
-
-
-
-
-
-
-
-
Set attribute in the DOM element.
-
This method will use jQuery's attr() method if it is available, otherwise it will set the attribute directly
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- element
-
-
-
-
-
-Element
-
-
-
-
-
-
-
-
-
-
- the element to set the attribute for
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the name of the attribute
-
-
-
-
-
-
- value
-
-
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
- the value to be set
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .setAttributes(element, attributes)
-
-
-
-
-
-
-
-
Set a group of attributes to the element
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- element
-
-
-
-
-
-Element
-
-
-
-
-
-
-
-
-
-
- the element to set the attributes for
-
-
-
-
-
-
- attributes
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
- a hash of attribute names and values
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .setData(element, name, value)
-
-
-
-
-
-
-
-
Set data in the DOM element.
-
This method will use jQuery's data() method if it is available, otherwise it will set the data- attribute
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- element
-
-
-
-
-
-Element
-
-
-
-
-
-
-
-
-
-
- the element to set the data in
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the name of the data item
-
-
-
-
-
-
- value
-
-
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
- the value to be set
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .smartEscape(string, unsafe)
-
-
-
-
-
-
-
-
Escape all characters matching unsafe in the given string
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- string
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- source string to escape
-
-
-
-
-
-
- unsafe
-
-
-
-
-
-RegExp
-
-
-
-
-
-
-
-
-
-
- characters that must be escaped
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-string
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .snakeCase(string)
-
-
-
-
-
-
-
-
Convert string to snake_case
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- string
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the string to convert
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-string
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .trim(text)
-
-
-
-
-
-
-
-
Remove leading or trailing spaces from text
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- text
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-string
-
-
-
-
-
-
the text without leading or trailing spaces
-
-
-
-
-
- Type
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .withCamelCaseKeys(value)
-
-
-
-
-
-
-
-
Create a copy of the source object with all keys in camelCase
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- value
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
- the object to copy
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-Object
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .without(array, item)
-
-
-
-
-
-
-
-
Creates a new array without the given item.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- array
-
-
-
-
-
-Array
-
-
-
-
-
-
-
-
-
-
- original array
-
-
-
-
-
-
- item
-
-
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
- the item to exclude from the new array
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-Array
-
-
-
-
-
-
a new array made of the original array's items except for item
-
-
-
-
-
- Type
-
-
-
-Array
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .withSnakeCaseKeys(value)
-
-
-
-
-
-
-
-
Create a copy of the source object with all keys in snake_case
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- value
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
- the object to copy
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-Object
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DocStrap Copyright © 2012-2014 The contributors to the JSDoc3 and DocStrap projects.
-
-
-
- Documentation generated by JSDoc using the
- DocStrap template .
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/VideoTag.html b/docs/VideoTag.html
index 9fd6492..c7fb573 100644
--- a/docs/VideoTag.html
+++ b/docs/VideoTag.html
@@ -28,14 +28,14 @@
Classes
Global
@@ -277,1510 +277,7 @@ Methods
- #attributes()
-
-
-
-
-
-
-
-
Get the attributes of the tag.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-Object
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #getAttr(name)
-
-
-
-
-
-
-
-
Get the value of the tag attribute name
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the name of the attribute
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-*
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #getOption(name)
-
-
-
-
-
-
-
-
Get the value of option name
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the name of the option
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-*
-
-
-
-
-
-
Returns the value of the option
-
-
-
-
-
- Type
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #getOptions()
-
-
-
-
-
-
-
-
Get all options related to this tag.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-Object
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #removeAttr(name)
-
-
-
-
-
-
-
-
Remove the tag attributed named name
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the name of the attribute
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-*
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #setAttr(name, value)
-
-
-
-
-
-
-
-
Set a tag attribute named name to value
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- name
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the name of the attribute
-
-
-
-
-
-
- value
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the value of the attribute
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #setFallbackContent(value)
-
-
-
-
-
-
-
-
Set the content to use as fallback in the video tag
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- value
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- the content to use, in HTML format
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns this instance for chaining purposes.
-
-
-
-
-
- Type
-
-
-
-VideoTag
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #setPoster(value)
-
-
-
-
-
-
-
-
Set the poster to be used in the video tag
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- value
-
-
-
-
-
-string
-|
-
-Object
-
-
-
-
-
-
-
-
-
-
-
-string: a URL to use for the poster
-Object: transformation parameters to apply to the poster. May optionally include a public_id to use instead of the video public_id.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns this instance for chaining purposes.
-
-
-
-
-
- Type
-
-
-
-VideoTag
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Set the transformation to apply on each source
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- an
-
-
-
-
-
-Object
-
-
-
-
-
-
-
-
-
-
- object with pairs of source type and source transformation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns this instance for chaining purposes.
-
-
-
-
-
- Type
-
-
-
-VideoTag
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #setSourceTypes(an)
-
-
-
-
-
-
-
-
Set the source types to include in the video tag
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- an
-
-
-
-
-
-Array.<string>
-
-
-
-
-
-
-
-
-
-
- array of source types
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns this instance for chaining purposes.
-
-
-
-
-
- Type
-
-
-
-VideoTag
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #toAttribute(key, value)
+
@@ -1788,7 +285,7 @@ #toAttribute(key, value)
-
Represent the given key and value as an HTML attribute.
+
Set the transformation to apply on each source
@@ -1823,40 +320,13 @@ Parameters:
- key
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- attribute name
-
-
-
-
-
-
- value
+ an
-*
-|
-
-boolean
+Object
@@ -1867,7 +337,7 @@ Parameters:
- the value of the attribute. If the value is boolean true, return the key only.
+ object with pairs of source type and source transformation
@@ -1885,241 +355,6 @@ Parameters:
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-string
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #toDOM()
-
-
-
-
-
-
-
-
Creates a DOM object representing the tag.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-Element
-
-
-
-
-
-
-
-
-
- Type
-
-
-
-Element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #toHtml()
-
-
-
-
-
-
-
-
Generates an HTML representation of the tag.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
@@ -2164,13 +399,13 @@ #toHtml()
Returns:
-string
+VideoTag
-
Returns HTML in string format
+
Returns this instance for chaining purposes.
@@ -2180,7 +415,7 @@ Returns:
-string
+VideoTag
diff --git a/docs/classes.list.html b/docs/classes.list.html
index 43d4d1b..2deb786 100644
--- a/docs/classes.list.html
+++ b/docs/classes.list.html
@@ -28,14 +28,14 @@
Classes
Global
@@ -158,6 +158,12 @@ Classes
Layer
+ Util
+
+
+ SourceTag
+
+
SubtitlesLayer
@@ -170,9 +176,6 @@ Classes
TransformationBase
- Util
-
-
VideoTag
diff --git a/docs/global.html b/docs/global.html
index 9c5caa4..98980fd 100644
--- a/docs/global.html
+++ b/docs/global.html
@@ -28,14 +28,14 @@
Classes
Global
@@ -128,28 +128,111 @@
- Members
+
+
+ Methods
-
- slice
+
+ toAttribute(key, value)
+
-
Cloudinary's JavaScript library - Version 2.5.0
-Copyright Cloudinary
-see https://github.com/cloudinary/cloudinary_js
+
Represent the given key and value as an HTML attribute.
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ key
+
+
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
+ attribute name
+
+
+
+
+
+
+ value
+
+
+
+
+
+*
+|
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ the value of the attribute. If the value is boolean true, return the key only.
+
+
+
+
+
+
+
+
+
@@ -190,12 +273,154 @@ sliceReturns:
+string
+
+
+
+
+
+
+
+
+
+ Type
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ value()
+
+
+
+
+
+
+
+
Serialize the expression
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+string
+
+
+
+
+
+
the expression as a string
+
+
+
+
+
+ Type
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/index.html b/docs/index.html
index 0db393d..e00b96e 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -28,14 +28,14 @@
Classes
Global
@@ -77,7 +77,7 @@
-
+
Cloudinary Client Side JavaScript Library Cloudinary is a cloud service that offers a solution to a web application's entire image management pipeline.
Easily upload images to the cloud. Automatically perform smart image resizing, cropping and conversion without installing any complex software. Integrate Facebook or Twitter profile image extraction in a snap, in any dimension and style to match your website’s graphics requirements. Images are seamlessly delivered through a fast CDN, and much much more.
Cloudinary offers comprehensive APIs and administration capabilities and is easy to integrate with any web application, existing or new.
@@ -110,24 +110,12 @@ New API! The version 2.0.0 release refactors the Cloudinary JavaScrip
-
The same package names are used in both bower and NPM.
Backward compatibility The cloudinary-jquery-file-upload library is fully backwards compatible with the cloudinary_js library v1.0.25.
The relevant Blueimp files can still be found in the js folder for backward compatibility. If you rely on the Blueimp
files located in the repository’s js folder, make sure to update your links to load-image.all.min.js which replaces load-image.min.js from previous versions.
-However, we encourage developers to use a dependency manager such as bower or NPM to install the 3rd party libraries, and not to rely on the files in the js folder.
+However, we encourage developers to use a dependency manager such as NPM to install the 3rd party libraries, and not to rely on the files in the js folder.
Installation The following instructions detail the installation of the Cloudinary jQuery File Upload library .
For installation instructions of the core library which is not dependent on jQuery follow this link
-bower
-Install the files using the following command. Use the optional --save parameter if you wish to save the dependency in your bower.json file.
-bower install cloudinary-jquery-file-upload
-Include the javascript file in your HTML. For Example:
-<script src="bower_components/jquery/dist/jquery.js" type="text/javascript"></script>
-<script src="bower_components/blueimp-file-upload/js/vendor/jquery.ui.widget.js" type="text/javascript"></script>
-<script src="bower_components/blueimp-file-upload/js/jquery.iframe-transport.js" type="text/javascript"></script>
-<script src="bower_components/blueimp-file-upload/js/jquery.fileupload.js" type="text/javascript"></script>
-
-<script src="bower_components/cloudinary-jquery-file-upload/cloudinary-jquery-file-upload.js" type="text/javascript"></script>
-
NPM The following instructions describe the installation of the client-side libraries . For the server side NodeJS library, see https://github.com/cloudinary/cloudinary_npm
Install the files using the following commands. Use the optional --save parameter if you wish to save the dependency in your package.json file.
@@ -217,16 +205,16 @@ Direct file upload with backend support The javascript library implem
See our documentation with plenty more options for uploading to the cloud directly from the browser .
Client side image resizing before upload See the File Processing Options in https://github.com/blueimp/jQuery-File-Upload/wiki/Options.
Modify your script tags based on the the following example (order is important!):
-<script src="bower_components/jquery/dist/jquery.js" type="text/javascript"></script>
-<script src="bower_components/jquery.ui/ui/widget.js" type="text/javascript"></script>
-<script src="bower_components/blueimp-load-image/js/load-image.all.min.js"></script>
-<script src="bower_components/blueimp-canvas-to-blob/js/canvas-to-blob.min.js"></script>
-<script src="bower_components/blueimp-file-upload/js/jquery.iframe-transport.js" type="text/javascript"></script>
-<script src="bower_components/blueimp-file-upload/js/jquery.fileupload.js" type="text/javascript"></script>
-<script src="bower_components/blueimp-file-upload/js/jquery.fileupload-process.js"></script>
-<script src="bower_components/blueimp-file-upload/js/jquery.fileupload-image.js" type="text/javascript"></script>
-<script src="bower_components/blueimp-file-upload/js/jquery.fileupload-validate.js"></script>
-<script src="bower_components/cloudinary-jquery-file-upload/cloudinary-jquery-file-upload.js" type="text/javascript"></script>Also, add the following javascript:
+<script src="node_modules/jquery/dist/jquery.js" type="text/javascript"></script>
+<script src="node_modules/jquery.ui/ui/widget.js" type="text/javascript"></script>
+<script src="node_modules/blueimp-load-image/js/load-image.all.min.js"></script>
+<script src="node_modules/blueimp-canvas-to-blob/js/canvas-to-blob.min.js"></script>
+<script src="node_modules/blueimp-file-upload/js/jquery.iframe-transport.js" type="text/javascript"></script>
+<script src="node_modules/blueimp-file-upload/js/jquery.fileupload.js" type="text/javascript"></script>
+<script src="node_modules/blueimp-file-upload/js/jquery.fileupload-process.js"></script>
+<script src="node_modules/blueimp-file-upload/js/jquery.fileupload-image.js" type="text/javascript"></script>
+<script src="node_modules/blueimp-file-upload/js/jquery.fileupload-validate.js"></script>
+<script src="node_modules/cloudinary-jquery-file-upload/cloudinary-jquery-file-upload.js" type="text/javascript"></script>Also, add the following javascript:
$(document).ready(function() {
$('.cloudinary-fileupload').cloudinary_fileupload({
disableImageResize: false,
@@ -253,6 +241,7 @@ Additional resources Additional resources are available at:
Support You can open an issue through GitHub .
Contact us at http://cloudinary.com/contact .
Stay tuned for updates, tips and tutorials: Blog , Twitter , Facebook .
+Join the Community Impact the product, hear updates, test drive new features and more! Join here .
License Released under the MIT license.
The direct image upload feature of the plugin is based on https://github.com/blueimp/jQuery-File-Upload
diff --git a/docs/jQuery.html b/docs/jQuery.html
index 0a93116..2c1dd14 100644
--- a/docs/jQuery.html
+++ b/docs/jQuery.html
@@ -28,14 +28,14 @@
Classes
Global
diff --git a/docs/module-utils-Util.html b/docs/module-utils-Util.html
new file mode 100644
index 0000000..829b218
--- /dev/null
+++ b/docs/module-utils-Util.html
@@ -0,0 +1,288 @@
+
+
+
+
+
+ Cloudinary JavaScript Library Class: Util
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Class: Util
+
+
+
+
+
+
+
+
+
+
+
+ new Util()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DocStrap Copyright © 2012-2014 The contributors to the JSDoc3 and DocStrap projects.
+
+
+
+ Documentation generated by JSDoc using the
+ DocStrap template .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/package.json b/package.json
index 727447e..5521285 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "cloudinary-jquery",
- "version": "2.6.2",
+ "version": "2.6.3",
"description": "Cloudinary Client Side JS library. Cloudinary streamlines your web application’s image manipulation needs. Cloudinary's cloud-based servers automate image uploading, resizing, cropping, optimizing, sprite generation and more.",
"main": "cloudinary-jquery.js",
"repository": {
From a040eaa4de18d1a99997874265bf60806b1ab565 Mon Sep 17 00:00:00 2001
From: Nir Maoz <47939921+maoznir@users.noreply.github.com>
Date: Sun, 4 Aug 2019 16:52:58 +0300
Subject: [PATCH 2/4] Update README.md
---
README.md | 244 +-----------------------------------------------------
1 file changed, 1 insertion(+), 243 deletions(-)
diff --git a/README.md b/README.md
index cafac6d..d45e9cf 100644
--- a/README.md
+++ b/README.md
@@ -1,248 +1,6 @@
[](https://travis-ci.org/cloudinary/cloudinary_js) []() []() []()
-:information_source: This is a distribution repository for `bower` and `npm`. The sources for this repository are maintained at the [cloudinary_js repository](https://github.com/cloudinary/cloudinary_js). Please submit issues and pull requests to that repository.
-
-# Cloudinary Client Side JavaScript Library - jQuery Plugin `bower` and `npm` repository
-
-Cloudinary is a cloud service that offers a solution to a web application's entire image management pipeline.
-
-Easily upload images to the cloud. Automatically perform smart image resizing, cropping and conversion without installing any complex software. Integrate Facebook or Twitter profile image extraction in a snap, in any dimension and style to match your website’s graphics requirements. Images are seamlessly delivered through a fast CDN, and much much more.
-
-Cloudinary offers comprehensive APIs and administration capabilities and is easy to integrate with any web application, existing or new.
-
-Cloudinary provides URL and HTTP based APIs that can be easily integrated with any Web development framework.
-
-For Javascript, Cloudinary provides a jQuery plugin for simplifying the integration even further.
-
-## Getting started guide
-
- **Take a look at our [Getting started guide for jQuery](http://cloudinary.com/documentation/jquery_integration#getting_started_guide)**.
-
-## Installation
-
-### bower
-
-1. Install the files using the following command. Use the optional `--save` parameter if you wish to save the dependency in your bower.json file.
-
- ```shell
- bower install cloudinary-jquery
- ```
-
-1. Include the javascript file in your HTML. For Example:
-
- ```html
-
-
- ```
-
-### NPM
-
-1. Install the files using:
-
- ```shell
- npm install cloudinary-jquery
- ```
-1. Include the javascript file in your HTML. For Example:
-
- ```html
-
-
- ```
-
-For the server side NPM library, please refer to https://github.com/cloudinary/cloudinary_npm.
-
-## Setup
-
-In order to properly use this library you have to provide it with a few configuration parameters:
-
-Required:
-
-* `cloud_name` - The cloudinary cloud name associated with your Cloudinary account.
-
-Optional:
-
-* `private_cdn`, `secure_distribution`, `cname`, `cdn_subdomain` - Please refer to [Cloudinary Documentation](http://cloudinary.com/documentation/rails_additional_topics#configuration_options) for information on these parameters.
-
-To set these configuration parameters use the `Cloudinary::config` function (see below).
-
-## Usage
-
-The following blog post details the process of setting up a jQuery based file upload.
-http://cloudinary.com/blog/direct_image_uploads_from_the_browser_to_the_cloud_with_jquery
-
-The Cloudinary Documentation can be found at:
-http://cloudinary.com/documentation
-
-### Cloudinary JavaScript library
-
-The Cloudinary JavaScript library API reference can be found at: [https://cloudinary.github.io/pkg-cloudinary-jquery](https://cloudinary.github.io/pkg-cloudinary-jquery)
-
-The Cloudinary JavaScript library provides several classes, defined under the "`cloudinary`" domain.
-
-#### Configuration
-
-Start by instantiating a new Cloudinary class:
-
-##### As jQuery plugin
-
-An instance of the Cloudinary jQuery main class, `CloudinaryJQuery`, is instantiated as `$.cloudinary`.
-
-```javascript
-$.cloudinary.config({ cloud_name: "demo"});
-```
-
-##### Explicitly
-
-```javascript
-var cl = cloudinary.CloudinaryJQuery.new( { cloud_name: "demo"});
-```
-
-##### Using the config function
-
-```javascript
-
-// Using the config function
-var cl = cloudinary.CloudinaryJQuery.new();
-cl.config( "cloud_name", "demo");
-```
-
-##### From meta tags in the current HTML document
-
-When using the library in a browser environment, you can use meta tags to define the configuration options.
-
-The `init()` function is a convenience function that invokes both `fromDocument()` and `fromEnvironment()`.
-
-
-For example, add the following to the header tag:
-```html
-
-```
-
-In your JavaScript source, invoke `fromDocument()`:
-```javascript
-var cl = cloudinary.Cloudinary.new();
-cl.fromDocument();
-// or
-cl.init();
-```
-
-##### From environment variables
-
-When using the library in a backend environment such as NodeJS, you can use an environment variable to define the configuration options.
-
-Set the environment variable, for example:
-```shell
-export CLOUDINARY_URL=cloudinary://demo
-```
-In your JavaScript source, invoke `fromEnvironment()`:
-```javascript
-var cl = cloudinary.Cloudinary.new();
-cl.fromEnvironment();
-// or
-cl.init();
-
-```
-
-#### URL generation
-
-```javascript
-cl.url("sample")
-// "http://res.cloudinary.com/demo/image/upload/sample"
-cl.url( "sample", { width: 100, crop: "fit"})
-// "http://res.cloudinary.com/demo/image/upload/c_fit,w_100/sample"
-
-```
-
-#### HTML tag generation
-
-You can generate HTML tags in several ways:
-
-`Cloudinary::image()` generates a DOM tag, and prepares it for responsive functionality. This is the same functionality as `$.cloudinary.image()`. (When using the jQuery plugin, the `src-cache` data attribute is stored using jQuery's `data()` method and so is not visible.)
-
-```javascript
-cl.image("sample")
-```
-produces:
-```html
-
-```
-
-You can generate an image Tag using the `imageTag` function:
-
-```javascript
-var tag = cl.imageTag("sample");
-tag.toHtml();
-```
-which produces:
-```html
-
-```
-and:
-```javascript
-tag.transformation().crop("fit").width(100).toHtml();
-```
-which produces:
-```html
-
-```
-
-You can also use `ImageTag` independently:
-
-```javascript
-var tag = cloudinary.ImageTag.new( "sample", { cloud_name: "some_other_cloud" });
-tag.toHtml();
-```
-which produces:
-```html
-
-```
-
-
-#### Transformation
-
-In addition to using a plain object to define transformations or using the builder methods (both described above), you can define transformations by using the Transformation class:
-
-```javascript
-var tr = cloudinary.Transformation.new();
-tr.crop("fit").width(100);
-tr.serialize()
-// "c_fit,w_100"
-```
-
-You can also chain transformations together:
-
-```javascript
-var tr = cloudinary.Transformation.new();
-tr.width(10).crop('fit').chain().angle(15).serialize()
-// "c_fit,w_10/a_15"
-```
-
-### jQuery plugin
-
-This Cloudinary jQuery plugin is backward compatible with the previous [cloudinary_js](https://github.com/cloudinary/cloudinary_js) version - except that it does not contain the jquery-file-upload dependency and functionality. For a fully compatible version, including the Blueimp jquery file upload functionality, refer to [cloudinary-jquery-file-upload](https://www.github.com/cloudinary/pkg-cloudinary-jquery-file-upload)
-
-When loaded, the new JavaScript library instantiates a CloudinaryJQuery object and attaches it to jQuery.
-
-The following list includes a sample of the API provided by this library:
-
-* `$.cloudinary.config(parameter_name, parameter_value)` - Sets parameter\_name's value to parameter\_value.
-* `$.cloudinary.url(public_id, options)` - Returns a cloudinary URL based on your configuration and the given options.
-* `$.cloudinary.image(public_id, options)` - Returns an HTML image tag for the photo specified by public\_id
-* `$.cloudinary.facebook_profile_image`, `$.cloudinary.twitter_profile_image`, `$.cloudinary.twitter_name_profile_image`, `$.cloudinary.gravatar_image` , `$.cloudinary.fetch_image` - Same as `image` but returns a specific type of image.
-
-* `$(jquery_selector).cloudinary(options)` - Goes over the elements specified by the jQuery selector and changes all the images to be fetched using Cloudinary's CDN. Using options, you can also specify transformations to the images.
-The `options` parameters are similar across all cloudinary frameworks. Please refer to [jQuery image manipulation](http://cloudinary.com/documentation/jquery_image_manipulation) for a more complete reference regarding the options.
-
- **See [our documentation](http://cloudinary.com/documentation/jquery_image_manipulation) for more information about displaying and transforming images using jQuery**.
-
-### Other Cloudinary JavaScript libraries
-
-#### Core Javascript library
-The Core Cloudinary JavaScript library does not depend on jQuery: [https://github.com/cloudinary/pkg-cloudinary-core](https://github.com/cloudinary/pkg-cloudinary-core).
-
-#### jQuery File upload
-The Cloudinary jQuery File Upload library extends the Cloudinary jQuery plugin with support for the [Blueimp jQuery File Upload library](https://blueimp.github.io/jQuery-File-Upload/).
-The library can be found at [https://github.com/cloudinary/pkg-cloudinary-jquery-file-upload](https://github.com/cloudinary/pkg-cloudinary-jquery-file-upload).
+:information_source: This was a distribution repository for `bower` and `npm`. The sources for this repository are maintained at the [cloudinary_js repository](https://github.com/cloudinary/cloudinary_js). Please submit issues and pull requests to that repository.
## Additional resources
From cda5ee86ab9725b2bd25210e32f827adcd0113cb Mon Sep 17 00:00:00 2001
From: Nir Maoz <47939921+maoznir@users.noreply.github.com>
Date: Mon, 5 Aug 2019 10:59:07 +0300
Subject: [PATCH 3/4] Update README.md
---
README.md | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/README.md b/README.md
index d45e9cf..693ed9d 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,10 @@
:information_source: This was a distribution repository for `bower` and `npm`. The sources for this repository are maintained at the [cloudinary_js repository](https://github.com/cloudinary/cloudinary_js). Please submit issues and pull requests to that repository.
+## Installation and Usage
+
+See here: https://github.com/cloudinary/cloudinary_js/tree/master/pkg/cloudinary-jquery
+
## Additional resources
Additional resources are available at:
From 217ddc8880b3ad3ff43360f13c0f6a8b1b034875 Mon Sep 17 00:00:00 2001
From: Nir Maoz <47939921+maoznir@users.noreply.github.com>
Date: Mon, 5 Aug 2019 10:59:35 +0300
Subject: [PATCH 4/4] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 693ed9d..8272c7a 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
[](https://travis-ci.org/cloudinary/cloudinary_js) []() []() []()
-:information_source: This was a distribution repository for `bower` and `npm`. The sources for this repository are maintained at the [cloudinary_js repository](https://github.com/cloudinary/cloudinary_js). Please submit issues and pull requests to that repository.
+:information_source: This was a distribution repository for cloudinary-jquery. The sources for this repository are maintained at the [cloudinary_js repository](https://github.com/cloudinary/cloudinary_js). Please submit issues and pull requests to that repository.
## Installation and Usage