This repository has been archived by the owner on Apr 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
cloudinary-core-shrinkwrap.js.map
1 lines (1 loc) · 414 KB
/
cloudinary-core-shrinkwrap.js.map
1
{"version":3,"sources":["webpack://cloudinary/webpack/universalModuleDefinition","webpack://cloudinary/webpack/bootstrap","webpack://cloudinary/./node_modules/lodash/_DataView.js","webpack://cloudinary/./node_modules/lodash/_Hash.js","webpack://cloudinary/./node_modules/lodash/_ListCache.js","webpack://cloudinary/./node_modules/lodash/_Map.js","webpack://cloudinary/./node_modules/lodash/_MapCache.js","webpack://cloudinary/./node_modules/lodash/_Promise.js","webpack://cloudinary/./node_modules/lodash/_Set.js","webpack://cloudinary/./node_modules/lodash/_SetCache.js","webpack://cloudinary/./node_modules/lodash/_Stack.js","webpack://cloudinary/./node_modules/lodash/_Symbol.js","webpack://cloudinary/./node_modules/lodash/_Uint8Array.js","webpack://cloudinary/./node_modules/lodash/_WeakMap.js","webpack://cloudinary/./node_modules/lodash/_apply.js","webpack://cloudinary/./node_modules/lodash/_arrayEach.js","webpack://cloudinary/./node_modules/lodash/_arrayFilter.js","webpack://cloudinary/./node_modules/lodash/_arrayIncludes.js","webpack://cloudinary/./node_modules/lodash/_arrayIncludesWith.js","webpack://cloudinary/./node_modules/lodash/_arrayLikeKeys.js","webpack://cloudinary/./node_modules/lodash/_arrayMap.js","webpack://cloudinary/./node_modules/lodash/_arrayPush.js","webpack://cloudinary/./node_modules/lodash/_asciiToArray.js","webpack://cloudinary/./node_modules/lodash/_assignMergeValue.js","webpack://cloudinary/./node_modules/lodash/_assignValue.js","webpack://cloudinary/./node_modules/lodash/_assocIndexOf.js","webpack://cloudinary/./node_modules/lodash/_baseAssign.js","webpack://cloudinary/./node_modules/lodash/_baseAssignIn.js","webpack://cloudinary/./node_modules/lodash/_baseAssignValue.js","webpack://cloudinary/./node_modules/lodash/_baseClone.js","webpack://cloudinary/./node_modules/lodash/_baseCreate.js","webpack://cloudinary/./node_modules/lodash/_baseDifference.js","webpack://cloudinary/./node_modules/lodash/_baseFindIndex.js","webpack://cloudinary/./node_modules/lodash/_baseFlatten.js","webpack://cloudinary/./node_modules/lodash/_baseFor.js","webpack://cloudinary/./node_modules/lodash/_baseFunctions.js","webpack://cloudinary/./node_modules/lodash/_baseGetAllKeys.js","webpack://cloudinary/./node_modules/lodash/_baseGetTag.js","webpack://cloudinary/./node_modules/lodash/_baseIndexOf.js","webpack://cloudinary/./node_modules/lodash/_baseIsArguments.js","webpack://cloudinary/./node_modules/lodash/_baseIsMap.js","webpack://cloudinary/./node_modules/lodash/_baseIsNaN.js","webpack://cloudinary/./node_modules/lodash/_baseIsNative.js","webpack://cloudinary/./node_modules/lodash/_baseIsSet.js","webpack://cloudinary/./node_modules/lodash/_baseIsTypedArray.js","webpack://cloudinary/./node_modules/lodash/_baseKeys.js","webpack://cloudinary/./node_modules/lodash/_baseKeysIn.js","webpack://cloudinary/./node_modules/lodash/_baseMerge.js","webpack://cloudinary/./node_modules/lodash/_baseMergeDeep.js","webpack://cloudinary/./node_modules/lodash/_baseRest.js","webpack://cloudinary/./node_modules/lodash/_baseSetToString.js","webpack://cloudinary/./node_modules/lodash/_baseSlice.js","webpack://cloudinary/./node_modules/lodash/_baseTimes.js","webpack://cloudinary/./node_modules/lodash/_baseToString.js","webpack://cloudinary/./node_modules/lodash/_baseUnary.js","webpack://cloudinary/./node_modules/lodash/_baseValues.js","webpack://cloudinary/./node_modules/lodash/_cacheHas.js","webpack://cloudinary/./node_modules/lodash/_castSlice.js","webpack://cloudinary/./node_modules/lodash/_charsEndIndex.js","webpack://cloudinary/./node_modules/lodash/_charsStartIndex.js","webpack://cloudinary/./node_modules/lodash/_cloneArrayBuffer.js","webpack://cloudinary/./node_modules/lodash/_cloneBuffer.js","webpack://cloudinary/./node_modules/lodash/_cloneDataView.js","webpack://cloudinary/./node_modules/lodash/_cloneRegExp.js","webpack://cloudinary/./node_modules/lodash/_cloneSymbol.js","webpack://cloudinary/./node_modules/lodash/_cloneTypedArray.js","webpack://cloudinary/./node_modules/lodash/_copyArray.js","webpack://cloudinary/./node_modules/lodash/_copyObject.js","webpack://cloudinary/./node_modules/lodash/_copySymbols.js","webpack://cloudinary/./node_modules/lodash/_copySymbolsIn.js","webpack://cloudinary/./node_modules/lodash/_coreJsData.js","webpack://cloudinary/./node_modules/lodash/_createAssigner.js","webpack://cloudinary/./node_modules/lodash/_createBaseFor.js","webpack://cloudinary/./node_modules/lodash/_defineProperty.js","webpack://cloudinary/./node_modules/lodash/_freeGlobal.js","webpack://cloudinary/./node_modules/lodash/_getAllKeys.js","webpack://cloudinary/./node_modules/lodash/_getAllKeysIn.js","webpack://cloudinary/./node_modules/lodash/_getMapData.js","webpack://cloudinary/./node_modules/lodash/_getNative.js","webpack://cloudinary/./node_modules/lodash/_getPrototype.js","webpack://cloudinary/./node_modules/lodash/_getRawTag.js","webpack://cloudinary/./node_modules/lodash/_getSymbols.js","webpack://cloudinary/./node_modules/lodash/_getSymbolsIn.js","webpack://cloudinary/./node_modules/lodash/_getTag.js","webpack://cloudinary/./node_modules/lodash/_getValue.js","webpack://cloudinary/./node_modules/lodash/_hasUnicode.js","webpack://cloudinary/./node_modules/lodash/_hashClear.js","webpack://cloudinary/./node_modules/lodash/_hashDelete.js","webpack://cloudinary/./node_modules/lodash/_hashGet.js","webpack://cloudinary/./node_modules/lodash/_hashHas.js","webpack://cloudinary/./node_modules/lodash/_hashSet.js","webpack://cloudinary/./node_modules/lodash/_initCloneArray.js","webpack://cloudinary/./node_modules/lodash/_initCloneByTag.js","webpack://cloudinary/./node_modules/lodash/_initCloneObject.js","webpack://cloudinary/./node_modules/lodash/_isFlattenable.js","webpack://cloudinary/./node_modules/lodash/_isIndex.js","webpack://cloudinary/./node_modules/lodash/_isIterateeCall.js","webpack://cloudinary/./node_modules/lodash/_isKeyable.js","webpack://cloudinary/./node_modules/lodash/_isMasked.js","webpack://cloudinary/./node_modules/lodash/_isPrototype.js","webpack://cloudinary/./node_modules/lodash/_listCacheClear.js","webpack://cloudinary/./node_modules/lodash/_listCacheDelete.js","webpack://cloudinary/./node_modules/lodash/_listCacheGet.js","webpack://cloudinary/./node_modules/lodash/_listCacheHas.js","webpack://cloudinary/./node_modules/lodash/_listCacheSet.js","webpack://cloudinary/./node_modules/lodash/_mapCacheClear.js","webpack://cloudinary/./node_modules/lodash/_mapCacheDelete.js","webpack://cloudinary/./node_modules/lodash/_mapCacheGet.js","webpack://cloudinary/./node_modules/lodash/_mapCacheHas.js","webpack://cloudinary/./node_modules/lodash/_mapCacheSet.js","webpack://cloudinary/./node_modules/lodash/_nativeCreate.js","webpack://cloudinary/./node_modules/lodash/_nativeKeys.js","webpack://cloudinary/./node_modules/lodash/_nativeKeysIn.js","webpack://cloudinary/./node_modules/lodash/_nodeUtil.js","webpack://cloudinary/./node_modules/lodash/_objectToString.js","webpack://cloudinary/./node_modules/lodash/_overArg.js","webpack://cloudinary/./node_modules/lodash/_overRest.js","webpack://cloudinary/./node_modules/lodash/_root.js","webpack://cloudinary/./node_modules/lodash/_safeGet.js","webpack://cloudinary/./node_modules/lodash/_setCacheAdd.js","webpack://cloudinary/./node_modules/lodash/_setCacheHas.js","webpack://cloudinary/./node_modules/lodash/_setToString.js","webpack://cloudinary/./node_modules/lodash/_shortOut.js","webpack://cloudinary/./node_modules/lodash/_stackClear.js","webpack://cloudinary/./node_modules/lodash/_stackDelete.js","webpack://cloudinary/./node_modules/lodash/_stackGet.js","webpack://cloudinary/./node_modules/lodash/_stackHas.js","webpack://cloudinary/./node_modules/lodash/_stackSet.js","webpack://cloudinary/./node_modules/lodash/_strictIndexOf.js","webpack://cloudinary/./node_modules/lodash/_stringToArray.js","webpack://cloudinary/./node_modules/lodash/_toSource.js","webpack://cloudinary/./node_modules/lodash/_unicodeToArray.js","webpack://cloudinary/./node_modules/lodash/assign.js","webpack://cloudinary/./node_modules/lodash/cloneDeep.js","webpack://cloudinary/./node_modules/lodash/compact.js","webpack://cloudinary/./node_modules/lodash/constant.js","webpack://cloudinary/./node_modules/lodash/difference.js","webpack://cloudinary/./node_modules/lodash/eq.js","webpack://cloudinary/./node_modules/lodash/functions.js","webpack://cloudinary/./node_modules/lodash/identity.js","webpack://cloudinary/./node_modules/lodash/includes.js","webpack://cloudinary/./node_modules/lodash/isArguments.js","webpack://cloudinary/./node_modules/lodash/isArray.js","webpack://cloudinary/./node_modules/lodash/isArrayLike.js","webpack://cloudinary/./node_modules/lodash/isArrayLikeObject.js","webpack://cloudinary/./node_modules/lodash/isBuffer.js","webpack://cloudinary/./node_modules/lodash/isElement.js","webpack://cloudinary/./node_modules/lodash/isFunction.js","webpack://cloudinary/./node_modules/lodash/isLength.js","webpack://cloudinary/./node_modules/lodash/isMap.js","webpack://cloudinary/./node_modules/lodash/isObject.js","webpack://cloudinary/./node_modules/lodash/isObjectLike.js","webpack://cloudinary/./node_modules/lodash/isPlainObject.js","webpack://cloudinary/./node_modules/lodash/isSet.js","webpack://cloudinary/./node_modules/lodash/isString.js","webpack://cloudinary/./node_modules/lodash/isSymbol.js","webpack://cloudinary/./node_modules/lodash/isTypedArray.js","webpack://cloudinary/./node_modules/lodash/keys.js","webpack://cloudinary/./node_modules/lodash/keysIn.js","webpack://cloudinary/./node_modules/lodash/merge.js","webpack://cloudinary/./node_modules/lodash/stubArray.js","webpack://cloudinary/./node_modules/lodash/stubFalse.js","webpack://cloudinary/./node_modules/lodash/toFinite.js","webpack://cloudinary/./node_modules/lodash/toInteger.js","webpack://cloudinary/./node_modules/lodash/toNumber.js","webpack://cloudinary/./node_modules/lodash/toPlainObject.js","webpack://cloudinary/./node_modules/lodash/toString.js","webpack://cloudinary/./node_modules/lodash/trim.js","webpack://cloudinary/./node_modules/lodash/values.js","webpack://cloudinary/(webpack)/buildin/global.js","webpack://cloudinary/(webpack)/buildin/module.js","webpack://cloudinary/./src/cloudinary.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-core.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/generateBreakpoints.js","webpack://cloudinary/./src/util/lodash.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","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","public_id","contains","assignNotNull","target","source","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","generateBreakpoints","max_images","Number","some","stepSize","max","current","nodeContains","getAttr","data","jQuery","fn","isElement","setAttributes","className","trim","getStyles","elem","ownerDocument","defaultView","opener","cssExpand","adown","bup","nodeType","documentElement","domStyle","curCSS","computed","minWidth","ret","rmargin","getPropertyValue","rnumnonpx","cssValue","convert","styles","augmentWidthOrHeight","extra","isBorderBox","side","sides","pnum","getWidthOrHeight","valueIsBorderBox","offsetWidth","offsetHeight","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;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAyC,iCAAiC;AAC1E,wHAAgH,mBAAmB,EAAE;AACrI;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;AClFA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,WAAW,mBAAO,CAAC,gCAAS;;AAE5B;AACA;;AAEA;;;;;;;;ACNA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,cAAc,mBAAO,CAAC,mCAAY;AAClC,cAAc,mBAAO,CAAC,mCAAY;AAClC,cAAc,mBAAO,CAAC,mCAAY;;AAElC;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC/BA,qBAAqB,mBAAO,CAAC,0CAAmB;AAChD,sBAAsB,mBAAO,CAAC,2CAAoB;AAClD,mBAAmB,mB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ACpC,eAAe,mBAAO,CAAC,oCAAa;AACpC,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC1BA,WAAW,mBAAO,CAAC,gCAAS;;AAE5B;AACA;;AAEA;;;;;;;;ACLA,WAAW,mBAAO,CAAC,gCAAS;;AAE5B;AACA;;AAEA;;;;;;;;ACLA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,WAAW,mBAAO,CAAC,gCAAS;;AAE5B;AACA;;AAEA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,EAAE;AACb,WAAW,MAAM;AACjB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpBA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACrBA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACxBA,kBAAkB,mBAAO,CAAC,uCAAgB;;AAE1C;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AChBA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,EAAE;AACb,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACrBA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,kBAAkB,mBAAO,CAAC,sCAAe;AACzC,cAAc,mBAAO,CAAC,kCAAW;AACjC,eAAe,mBAAO,CAAC,mCAAY;AACnC,cAAc,mBAAO,CAAC,mCAAY;AAClC,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AChDA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpBA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACnBA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;;;;;;;;ACXA,sBAAsB,mBAAO,CAAC,2CAAoB;AAClD,SAAS,mBAAO,CAAC,6BAAM;;AAEvB;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,EAAE;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACnBA,sBAAsB,mBAAO,CAAC,2CAAoB;AAClD,SAAS,mBAAO,CAAC,6BAAM;;AAEvB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,EAAE;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC3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AO,CAAC,0CAAmB;AAChD,sBAAsB,mBAAO,CAAC,2CAAoB;AAClD,cAAc,mBAAO,CAAC,kCAAW;AACjC,eAAe,mBAAO,CAAC,mCAAY;AACnC,YAAY,mBAAO,CAAC,gCAAS;AAC7B,eAAe,mBAAO,CAAC,mCAAY;AACnC,YAAY,mBAAO,CAAC,gCAAS;AAC7B,WAAW,mBAAO,CAAC,+BAAQ;;AAE3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,QAAQ;AACnB;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;;;;;;;;AC1KA,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;;;;;;;;AC7BA,eAAe,mBAAO,CAAC,oCAAa;AACpC,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,wBAAwB,mBAAO,CAAC,6CAAsB;AACtD,eAAe,mBAAO,CAAC,oCAAa;AACpC,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AClEA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACvBA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,oBAAoB,mBAAO,CAAC,yCAAkB;;AAE9C;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACrCA,oBAAoB,mBAAO,CAAC,yCAAkB;;AAE9C;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAA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AAC,uCAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACjBA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACXA,iBAAiB,mBAAO,CAAC,qCAAc;AACvC,eAAe,mBAAO,CAAC,oCAAa;AACpC,eAAe,mBAAO,CAAC,mCAAY;AACnC,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;AACA;AACA;AACA,oCAAoC;;AAEpC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC9CA,aAAa,mBAAO,CAAC,kCAAW;AAChC,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACjBA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,eAAe,mBAAO,CAAC,mCAAY;AACnC,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC3DA,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,iBAAiB,mBAAO,CAAC,sCAAe;;A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ACnC,iBAAiB,mBAAO,CAAC,qCAAc;AACvC,eAAe,mBAAO,CAAC,mCAAY;AACnC,oBAAoB,mBAAO,CAAC,wCAAiB;AAC7C,mBAAmB,mBAAO,CAAC,uCAAgB;AAC3C,cAAc,mBAAO,CAAC,mCAAY;AAClC,oBAAoB,mBAAO,CAAC,wCAAiB;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC7FA,eAAe,mBAAO,CAAC,mCAAY;AACnC,eAAe,mBAAO,CAAC,oCAAa;AACpC,kBAAkB,mBAAO,CAAC,uCAAgB;;AAE1C;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;;;;;;;;AChBA,eAAe,mBAAO,CAAC,mCAAY;AACnC,qBAAqB,mBAAO,CAAC,0CAAmB;AAChD,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;ACrBA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC9BA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACnBA,aAAa,mBAAO,CAAC,kCAAW;AAChC,eAAe,mBAAO,CAAC,oCAAa;AACpC,cAAc,mBAAO,CAAC,kCAAW;AACjC,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpCA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACbA,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;AClBA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACZA,gBAAgB,mBAAO,CAAC,qCAAc;;AAEtC;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACjBA,kBAAkB,mBAAO,CAAC,uCAAgB;;AAE1C;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAA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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;;;;;;;AC5EA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,kBAAkB,mBAAO,CAAC,uCAAgB;;AAE1C;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACjBA,aAAa,mBAAO,CAAC,kCAAW;AAChC,kBAAkB,mBAAO,CAAC,sCAAe;AACzC,cAAc,mBAAO,CAAC,kCAAW;;AAEjC;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACnBA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACxBA,SAAS,mBAAO,CAAC,6BAAM;AACvB,kBAAkB,mBAAO,CAAC,sCAAe;AACzC,cAAc,mBAAO,CAAC,mCAAY;AAClC,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,EAAE;AACb,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC7BA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACdA,iBAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACnBA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACZA,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AClCA,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;AClBA,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACfA,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;;;;;;;;ACzBA,WAA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;AC7BA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;;ACrBA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACdA,YAAY,mBAAO,CAAC,iCAAU;;AAE9B;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACnCA,iBAAiB,mBAAO,CAAC,sCAAe;;AAExC;AACA;;AAEA;AACA;;AAEA;;;;;;;;ACRA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;AChBA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;;ACbA,sBAAsB,mBAAO,CAAC,2CAAoB;AAClD,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;;AAEA;;;;;;;;ACbA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpCA,gBAAgB,mBAAO,CAAC,qCAAc;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;;AAEA;;;;;;;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;ACbA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,UAAU,mBAAO,CAAC,+BAAQ;AAC1B,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACjCA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,EAAE;AACb,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACtBA,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,qBAAqB,mBAAO,CAAC,0CAAmB;;AAEhD;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACjBA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;;;;;;;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,EAAE;AACjD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;;;;;;;;ACvCA,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,qBAAqB,mBAAO,CAAC,0CAAmB;AAChD,kBAAkB,mBAAO,CAAC,sCAAe;AACzC,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,WAAW,mBAAO,CAAC,+BAAQ;;AAE3B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,UAAU;AACrB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;;;;;;;;ACzDA,gBAAgB,mBAAO,CAAC,qCAAc;;AAEtC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,EAAE;AACf;AACA;AACA;AACA,mBAAmB,SAAS,GAAG,SAAS;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,SAAS;AACtB;AACA;AACA,wCAAwC,SAAS;AACjD;AACA;AACA,WAAW,SAAS,GAAG,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACzBA,qBAAqB,mBAAO,CAAC,0CAAmB;AAChD,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,eAAe,mBAAO,CAAC,oCAAa;AACpC,wBAAwB,mBAAO,CAAC,4CAAqB;;AAErD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;;;;;;;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,iBAAiB;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpCA,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,WAAW,mBAAO,CAAC,+BAAQ;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,EAAE;AACf;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpBA,kBAAkB,mBAAO,CAAC,uCAAgB;AAC1C,kBAAkB,mBAAO,CAAC,sCAAe;AACzC,eAAe,mBAAO,CAAC,mCAAY;AACnC,gBAAgB,mBAAO,CAAC,oCAAa;AACrC,aAAa,mBAAO,CAAC,iCAAU;;AAE/B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,oBAAoB;AAC/B,WAAW,EAAE;AACb,WAAW,OAAO;AAClB,YAAY,OAAO;AACnB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpDA,sBAAsB,mBAAO,CAAC,2CAAoB;AAClD,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA,6BAA6B,kBAAkB,EAAE;AACjD;AACA;AACA;AACA;AACA;AACA,8CAA8C,kBAAkB,EAAE;AAClE;AACA;AACA;;AAEA;;;;;;;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACzBA,iBAAiB,mBAAO,CAAC,qCAAc;AACvC,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AChCA,kBAAkB,mBAAO,CAAC,sCAAe;AACzC,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AChCA,yDAAW,mBAAO,CAAC,gCAAS;AAC5B,gBAAgB,mBAAO,CAAC,oCAAa;;AAErC;AACA,kBAAkB,KAA0B;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;ACrCA,mBAAmB,mBAAO,CAAC,uCAAgB;AAC3C,oBAAoB,mBAAO,CAAC,wCAAiB;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACxBA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpCA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AClCA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC5BA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC7DA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC1BA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,cAAc,mBAAO,CAAC,kCAAW;AACjC,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC7BA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,mBAAmB,mBAAO,CAAC,uCAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC5BA,uBAAuB,mBAAO,CAAC,4CAAqB;AACpD,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,eAAe,mBAAO,CAAC,oCAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC1BA,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,eAAe,mBAAO,CAAC,oCAAa;AACpC,kBAAkB,mBAAO,CAAC,sCAAe;;AAEzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACpCA,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,kBAAkB,mBAAO,CAAC,sCAAe;;AAEzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC/BA,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,qBAAqB,mBAAO,CAAC,0CAAmB;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,UAAU;AACrB,aAAa,OAAO;AACpB;AACA;AACA;AACA,YAAY,SAAS,GAAG,SAAS;AACjC;AACA;AACA;AACA,YAAY,SAAS,GAAG,SAAS;AACjC;AACA;AACA;AACA,UAAU,QAAQ,iBAAiB,GAAG,iBAAiB;AACvD;AACA;AACA;AACA,CAAC;;AAED;;;;;;;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACjBA,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACzCA,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;ACnCA,eAAe,mBAAO,CAAC,mCAAY;AACnC,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACjEA,iBAAiB,mBAAO,CAAC,sCAAe;AACxC,aAAa,mBAAO,CAAC,iCAAU;;AAE/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB,UAAU;AACV;AACA,aAAa,SAAS;AACtB,UAAU;AACV;AACA;AACA;AACA;;AAEA;;;;;;;;AC/BA,mBAAmB,mBAAO,CAAC,wCAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC3BA,mBAAmB,mBAAO,CAAC,wCAAiB;AAC5C,gBAAgB,mBAAO,CAAC,qCAAc;AACtC,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,sBAAsB,mBAAO,CAAC,2CAAoB;AAClD,oBAAoB,mBAAO,CAAC,yCAAkB;AAC9C,eAAe,mBAAO,CAAC,mCAAY;;AAEnC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY,OAAO;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;A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AEA,QAAIkgB,cAAJ,EAAoB;AAClB,UAAI/c,cAAc,GAAG4c,UAAU,CAAC5c,cAAhC;AACA,UAAIgd,UAAU,GAAGN,uBAAuB,CAACzd,QAAD,EAAW0C,WAAX,EAAwB3B,cAAxB,EAAwCnD,OAAxC,CAAxC;;AACA,UAAI,CAAC6F,OAAO,CAACsa,UAAD,CAAZ,EAA0B;AACxBzO,4BAAoB,CAACC,MAArB,GAA8BwO,UAA9B;AACD;AACF;;AAED,QAAIH,aAAJ,EAAmB;AACjB,UAAII,SAAS,GAAGN,sBAAsB,CAAChb,WAAD,CAAtC;;AACA,UAAI,CAACe,OAAO,CAACua,SAAD,CAAZ,EAAyB;AACvB1O,4BAAoB,CAACuO,KAArB,GAA6BG,SAA7B;AACD;AACF;AACF;;AACD,SAAO1O,oBAAP;AACD;AAED;;;;;;;;;;AASO,SAASY,iBAAT,CAA2BtS,OAA3B,EAAoC;AACzC,MAAIqgB,UAAU,GAAG,EAAjB;;AACA,MAAIrgB,OAAO,IAAI,IAAf,EAAqB;AACnB,QAAIA,OAAO,CAAC+R,SAAR,IAAqB,IAAzB,EAA+B;AAC7BsO,gBAAU,CAACpV,IAAX,uBAA+BjL,OAAO,CAAC+R,SAAvC;AACD;;AACD,QAAI/R,OAAO,CAACgS,SAAR,IAAqB,IAAzB,EAA+B;AAC7BqO,gBAAU,CAACpV,IAAX,uBAA+BjL,OAAO,CAACgS,SAAvC;AACD;AACF;;AACD,SAAOqO,UAAU,CAAClV,IAAX,CAAgB,OAAhB,CAAP;AACD;AAEM,IAAMmV,SAAS,GAAGb,SAAlB,C","file":"./cloudinary-core-shrinkwrap.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-core.js\");\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nmodule.exports = DataView;\n","var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n","var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nmodule.exports = Promise;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nmodule.exports = Set;\n","var MapCache = require('./_MapCache'),\n setCacheAdd = require('./_setCacheAdd'),\n setCacheHas = require('./_setCacheHas');\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nmodule.exports = SetCache;\n","var ListCache = require('./_ListCache'),\n stackClear = require('./_stackClear'),\n stackDelete = require('./_stackDelete'),\n stackGet = require('./_stackGet'),\n stackHas = require('./_stackHas'),\n stackSet = require('./_stackSet');\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nmodule.exports = Stack;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nmodule.exports = Uint8Array;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nmodule.exports = WeakMap;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n","/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n\nmodule.exports = arrayEach;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n","var baseIndexOf = require('./_baseIndexOf');\n\n/**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n}\n\nmodule.exports = arrayIncludes;\n","/**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arrayIncludesWith;\n","var baseTimes = require('./_baseTimes'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isIndex = require('./_isIndex'),\n isTypedArray = require('./isTypedArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = arrayLikeKeys;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nmodule.exports = arrayPush;\n","/**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction asciiToArray(string) {\n return string.split('');\n}\n\nmodule.exports = asciiToArray;\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignMergeValue;\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignValue;\n","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n","var copyObject = require('./_copyObject'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n}\n\nmodule.exports = baseAssign;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n}\n\nmodule.exports = baseAssignIn;\n","var defineProperty = require('./_defineProperty');\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\nmodule.exports = baseAssignValue;\n","var Stack = require('./_Stack'),\n arrayEach = require('./_arrayEach'),\n assignValue = require('./_assignValue'),\n baseAssign = require('./_baseAssign'),\n baseAssignIn = require('./_baseAssignIn'),\n cloneBuffer = require('./_cloneBuffer'),\n copyArray = require('./_copyArray'),\n copySymbols = require('./_copySymbols'),\n copySymbolsIn = require('./_copySymbolsIn'),\n getAllKeys = require('./_getAllKeys'),\n getAllKeysIn = require('./_getAllKeysIn'),\n getTag = require('./_getTag'),\n initCloneArray = require('./_initCloneArray'),\n initCloneByTag = require('./_initCloneByTag'),\n initCloneObject = require('./_initCloneObject'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isMap = require('./isMap'),\n isObject = require('./isObject'),\n isSet = require('./isSet'),\n keys = require('./keys');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values supported by `_.clone`. */\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] =\ncloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\ncloneableTags[boolTag] = cloneableTags[dateTag] =\ncloneableTags[float32Tag] = cloneableTags[float64Tag] =\ncloneableTags[int8Tag] = cloneableTags[int16Tag] =\ncloneableTags[int32Tag] = cloneableTags[mapTag] =\ncloneableTags[numberTag] = cloneableTags[objectTag] =\ncloneableTags[regexpTag] = cloneableTags[setTag] =\ncloneableTags[stringTag] = cloneableTags[symbolTag] =\ncloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\ncloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] =\ncloneableTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\nfunction baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n\n return result;\n }\n\n if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n\n return result;\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n}\n\nmodule.exports = baseClone;\n","var isObject = require('./isObject');\n\n/** Built-in value references. */\nvar objectCreate = Object.create;\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\nmodule.exports = baseCreate;\n","var SetCache = require('./_SetCache'),\n arrayIncludes = require('./_arrayIncludes'),\n arrayIncludesWith = require('./_arrayIncludesWith'),\n arrayMap = require('./_arrayMap'),\n baseUnary = require('./_baseUnary'),\n cacheHas = require('./_cacheHas');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\nfunction baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n }\n else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n}\n\nmodule.exports = baseDifference;\n","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n","var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseFlatten;\n","var createBaseFor = require('./_createBaseFor');\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\nmodule.exports = baseFor;\n","var arrayFilter = require('./_arrayFilter'),\n isFunction = require('./isFunction');\n\n/**\n * The base implementation of `_.functions` which creates an array of\n * `object` function property names filtered from `props`.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Array} props The property names to filter.\n * @returns {Array} Returns the function names.\n */\nfunction baseFunctions(object, props) {\n return arrayFilter(props, function(key) {\n return isFunction(object[key]);\n });\n}\n\nmodule.exports = baseFunctions;\n","var arrayPush = require('./_arrayPush'),\n isArray = require('./isArray');\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nmodule.exports = baseGetAllKeys;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIsNaN = require('./_baseIsNaN'),\n strictIndexOf = require('./_strictIndexOf');\n\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n}\n\nmodule.exports = baseIndexOf;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]';\n\n/**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\nfunction baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n}\n\nmodule.exports = baseIsMap;\n","/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\nfunction baseIsNaN(value) {\n return value !== value;\n}\n\nmodule.exports = baseIsNaN;\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar setTag = '[object Set]';\n\n/**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\nfunction baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n}\n\nmodule.exports = baseIsSet;\n","var baseGetTag = require('./_baseGetTag'),\n isLength = require('./isLength'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n","var isPrototype = require('./_isPrototype'),\n nativeKeys = require('./_nativeKeys');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeys;\n","var isObject = require('./isObject'),\n isPrototype = require('./_isPrototype'),\n nativeKeysIn = require('./_nativeKeysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeysIn;\n","var Stack = require('./_Stack'),\n assignMergeValue = require('./_assignMergeValue'),\n baseFor = require('./_baseFor'),\n baseMergeDeep = require('./_baseMergeDeep'),\n isObject = require('./isObject'),\n keysIn = require('./keysIn'),\n safeGet = require('./_safeGet');\n\n/**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n if (isObject(srcValue)) {\n stack || (stack = new Stack);\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n}\n\nmodule.exports = baseMerge;\n","var assignMergeValue = require('./_assignMergeValue'),\n cloneBuffer = require('./_cloneBuffer'),\n cloneTypedArray = require('./_cloneTypedArray'),\n copyArray = require('./_copyArray'),\n initCloneObject = require('./_initCloneObject'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLikeObject = require('./isArrayLikeObject'),\n isBuffer = require('./isBuffer'),\n isFunction = require('./isFunction'),\n isObject = require('./isObject'),\n isPlainObject = require('./isPlainObject'),\n isTypedArray = require('./isTypedArray'),\n safeGet = require('./_safeGet'),\n toPlainObject = require('./toPlainObject');\n\n/**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n}\n\nmodule.exports = baseMergeDeep;\n","var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n","var constant = require('./constant'),\n defineProperty = require('./_defineProperty'),\n identity = require('./identity');\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nmodule.exports = baseSetToString;\n","/**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\nfunction baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n}\n\nmodule.exports = baseSlice;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nmodule.exports = baseTimes;\n","var Symbol = require('./_Symbol'),\n arrayMap = require('./_arrayMap'),\n isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n","var arrayMap = require('./_arrayMap');\n\n/**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\nfunction baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n}\n\nmodule.exports = baseValues;\n","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nmodule.exports = cacheHas;\n","var baseSlice = require('./_baseSlice');\n\n/**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\nfunction castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n}\n\nmodule.exports = castSlice;\n","var baseIndexOf = require('./_baseIndexOf');\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the last unmatched string symbol.\n */\nfunction charsEndIndex(strSymbols, chrSymbols) {\n var index = strSymbols.length;\n\n while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n}\n\nmodule.exports = charsEndIndex;\n","var baseIndexOf = require('./_baseIndexOf');\n\n/**\n * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the first unmatched string symbol.\n */\nfunction charsStartIndex(strSymbols, chrSymbols) {\n var index = -1,\n length = strSymbols.length;\n\n while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n}\n\nmodule.exports = charsStartIndex;\n","var Uint8Array = require('./_Uint8Array');\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\nmodule.exports = cloneArrayBuffer;\n","var root = require('./_root');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\nmodule.exports = cloneBuffer;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\nfunction cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n\nmodule.exports = cloneDataView;\n","/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\nfunction cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n}\n\nmodule.exports = cloneRegExp;\n","var Symbol = require('./_Symbol');\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\nfunction cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n\nmodule.exports = cloneSymbol;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nmodule.exports = cloneTypedArray;\n","/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\nmodule.exports = copyArray;\n","var assignValue = require('./_assignValue'),\n baseAssignValue = require('./_baseAssignValue');\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nmodule.exports = copyObject;\n","var copyObject = require('./_copyObject'),\n getSymbols = require('./_getSymbols');\n\n/**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n}\n\nmodule.exports = copySymbols;\n","var copyObject = require('./_copyObject'),\n getSymbolsIn = require('./_getSymbolsIn');\n\n/**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n}\n\nmodule.exports = copySymbolsIn;\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","var baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n}\n\nmodule.exports = createAssigner;\n","/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\nmodule.exports = createBaseFor;\n","var getNative = require('./_getNative');\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\nmodule.exports = defineProperty;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbols = require('./_getSymbols'),\n keys = require('./keys');\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\nmodule.exports = getAllKeys;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbolsIn = require('./_getSymbolsIn'),\n keysIn = require('./keysIn');\n\n/**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n}\n\nmodule.exports = getAllKeysIn;\n","var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","var overArg = require('./_overArg');\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nmodule.exports = getPrototype;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","var arrayFilter = require('./_arrayFilter'),\n stubArray = require('./stubArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\nmodule.exports = getSymbols;\n","var arrayPush = require('./_arrayPush'),\n getPrototype = require('./_getPrototype'),\n getSymbols = require('./_getSymbols'),\n stubArray = require('./stubArray');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n};\n\nmodule.exports = getSymbolsIn;\n","var DataView = require('./_DataView'),\n Map = require('./_Map'),\n Promise = require('./_Promise'),\n Set = require('./_Set'),\n WeakMap = require('./_WeakMap'),\n baseGetTag = require('./_baseGetTag'),\n toSource = require('./_toSource');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nmodule.exports = getTag;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsZWJ = '\\\\u200d';\n\n/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\nvar reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n/**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\nfunction hasUnicode(string) {\n return reHasUnicode.test(string);\n}\n\nmodule.exports = hasUnicode;\n","var nativeCreate = require('./_nativeCreate');\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\nfunction initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n}\n\nmodule.exports = initCloneArray;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer'),\n cloneDataView = require('./_cloneDataView'),\n cloneRegExp = require('./_cloneRegExp'),\n cloneSymbol = require('./_cloneSymbol'),\n cloneTypedArray = require('./_cloneTypedArray');\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n}\n\nmodule.exports = initCloneByTag;\n","var baseCreate = require('./_baseCreate'),\n getPrototype = require('./_getPrototype'),\n isPrototype = require('./_isPrototype');\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\nmodule.exports = initCloneObject;\n","var Symbol = require('./_Symbol'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray');\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nmodule.exports = isFlattenable;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n","var eq = require('./eq'),\n isArrayLike = require('./isArrayLike'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nmodule.exports = isKeyable;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n","var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n","var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n","var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n","var overArg = require('./_overArg');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nmodule.exports = nativeKeys;\n","/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = nativeKeysIn;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nmodule.exports = overArg;\n","var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","/**\n * Gets the value at `key`, unless `key` is \"__proto__\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n}\n\nmodule.exports = safeGet;\n","/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\nmodule.exports = setCacheAdd;\n","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nmodule.exports = setCacheHas;\n","var baseSetToString = require('./_baseSetToString'),\n shortOut = require('./_shortOut');\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nmodule.exports = setToString;\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nmodule.exports = shortOut;\n","var ListCache = require('./_ListCache');\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nmodule.exports = stackClear;\n","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\nmodule.exports = stackDelete;\n","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nmodule.exports = stackGet;\n","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nmodule.exports = stackHas;\n","var ListCache = require('./_ListCache'),\n Map = require('./_Map'),\n MapCache = require('./_MapCache');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nmodule.exports = stackSet;\n","/**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = strictIndexOf;\n","var asciiToArray = require('./_asciiToArray'),\n hasUnicode = require('./_hasUnicode'),\n unicodeToArray = require('./_unicodeToArray');\n\n/**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n}\n\nmodule.exports = stringToArray;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsAstral = '[' + rsAstralRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\nvar reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n/**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction unicodeToArray(string) {\n return string.match(reUnicode) || [];\n}\n\nmodule.exports = unicodeToArray;\n","var assignValue = require('./_assignValue'),\n copyObject = require('./_copyObject'),\n createAssigner = require('./_createAssigner'),\n isArrayLike = require('./isArrayLike'),\n isPrototype = require('./_isPrototype'),\n keys = require('./keys');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns own enumerable string keyed properties of source objects to the\n * destination object. Source objects are applied from left to right.\n * Subsequent sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object` and is loosely based on\n * [`Object.assign`](https://mdn.io/Object/assign).\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assignIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assign({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'c': 3 }\n */\nvar assign = createAssigner(function(object, source) {\n if (isPrototype(source) || isArrayLike(source)) {\n copyObject(source, keys(source), object);\n return;\n }\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n assignValue(object, key, source[key]);\n }\n }\n});\n\nmodule.exports = assign;\n","var baseClone = require('./_baseClone');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\nfunction cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n}\n\nmodule.exports = cloneDeep;\n","/**\n * Creates an array with all falsey values removed. The values `false`, `null`,\n * `0`, `\"\"`, `undefined`, and `NaN` are falsey.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to compact.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.compact([0, 1, false, 2, '', 3]);\n * // => [1, 2, 3]\n */\nfunction compact(array) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = compact;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","var baseDifference = require('./_baseDifference'),\n baseFlatten = require('./_baseFlatten'),\n baseRest = require('./_baseRest'),\n isArrayLikeObject = require('./isArrayLikeObject');\n\n/**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\nvar difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n});\n\nmodule.exports = difference;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","var baseFunctions = require('./_baseFunctions'),\n keys = require('./keys');\n\n/**\n * Creates an array of function property names from own enumerable properties\n * of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functionsIn\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functions(new Foo);\n * // => ['a', 'b']\n */\nfunction functions(object) {\n return object == null ? [] : baseFunctions(object, keys(object));\n}\n\nmodule.exports = functions;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","var baseIndexOf = require('./_baseIndexOf'),\n isArrayLike = require('./isArrayLike'),\n isString = require('./isString'),\n toInteger = require('./toInteger'),\n values = require('./values');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * Checks if `value` is in `collection`. If `collection` is a string, it's\n * checked for a substring of `value`, otherwise\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * is used for equality comparisons. If `fromIndex` is negative, it's used as\n * the offset from the end of `collection`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {boolean} Returns `true` if `value` is found, else `false`.\n * @example\n *\n * _.includes([1, 2, 3], 1);\n * // => true\n *\n * _.includes([1, 2, 3], 1, 2);\n * // => false\n *\n * _.includes({ 'a': 1, 'b': 2 }, 1);\n * // => true\n *\n * _.includes('abcd', 'bc');\n * // => true\n */\nfunction includes(collection, value, fromIndex, guard) {\n collection = isArrayLike(collection) ? collection : values(collection);\n fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;\n\n var length = collection.length;\n if (fromIndex < 0) {\n fromIndex = nativeMax(length + fromIndex, 0);\n }\n return isString(collection)\n ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)\n : (!!length && baseIndexOf(collection, value, fromIndex) > -1);\n}\n\nmodule.exports = includes;\n","var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","var isFunction = require('./isFunction'),\n isLength = require('./isLength');\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n","var isArrayLike = require('./isArrayLike'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\nmodule.exports = isArrayLikeObject;\n","var root = require('./_root'),\n stubFalse = require('./stubFalse');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n","var isObjectLike = require('./isObjectLike'),\n isPlainObject = require('./isPlainObject');\n\n/**\n * Checks if `value` is likely a DOM element.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.\n * @example\n *\n * _.isElement(document.body);\n * // => true\n *\n * _.isElement('<body>');\n * // => false\n */\nfunction isElement(value) {\n return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);\n}\n\nmodule.exports = isElement;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","var baseIsMap = require('./_baseIsMap'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsMap = nodeUtil && nodeUtil.isMap;\n\n/**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\nvar isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\nmodule.exports = isMap;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\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(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n getPrototype = require('./_getPrototype'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n","var baseIsSet = require('./_baseIsSet'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsSet = nodeUtil && nodeUtil.isSet;\n\n/**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\nvar isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\nmodule.exports = isSet;\n","var baseGetTag = require('./_baseGetTag'),\n isArray = require('./isArray'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nmodule.exports = isString;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var baseIsTypedArray = require('./_baseIsTypedArray'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeys = require('./_baseKeys'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeysIn = require('./_baseKeysIn'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nmodule.exports = keysIn;\n","var baseMerge = require('./_baseMerge'),\n createAssigner = require('./_createAssigner');\n\n/**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\nvar merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n});\n\nmodule.exports = merge;\n","/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\nmodule.exports = stubArray;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n","var toNumber = require('./toNumber');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n}\n\nmodule.exports = toFinite;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n","var isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\nfunction toPlainObject(value) {\n return copyObject(value, keysIn(value));\n}\n\nmodule.exports = toPlainObject;\n","var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n","var baseToString = require('./_baseToString'),\n castSlice = require('./_castSlice'),\n charsEndIndex = require('./_charsEndIndex'),\n charsStartIndex = require('./_charsStartIndex'),\n stringToArray = require('./_stringToArray'),\n toString = require('./toString');\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/**\n * Removes leading and trailing whitespace or specified characters from `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to trim.\n * @param {string} [chars=whitespace] The characters to trim.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the trimmed string.\n * @example\n *\n * _.trim(' abc ');\n * // => 'abc'\n *\n * _.trim('-_-abc-_-', '_-');\n * // => 'abc'\n *\n * _.map([' foo ', ' bar '], _.trim);\n * // => ['foo', 'bar']\n */\nfunction trim(string, chars, guard) {\n string = toString(string);\n if (string && (guard || chars === undefined)) {\n return string.replace(reTrim, '');\n }\n if (!string || !(chars = baseToString(chars))) {\n return string;\n }\n var strSymbols = stringToArray(string),\n chrSymbols = stringToArray(chars),\n start = charsStartIndex(strSymbols, chrSymbols),\n end = charsEndIndex(strSymbols, chrSymbols) + 1;\n\n return castSlice(strSymbols, start, end).join('');\n}\n\nmodule.exports = trim;\n","var baseValues = require('./_baseValues'),\n keys = require('./keys');\n\n/**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\nfunction values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n}\n\nmodule.exports = values;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\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 \\<meta\\> 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.<br>\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","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 <meta name=\"cloudinary_cloud_name\" content=\"mycloud\">\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';\n\nexport default {\n ClientHintsMetaTag,\n Cloudinary,\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 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<string>} 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(`<source ${this.htmlAttrs({src, type})}>`);\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.<br>\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<string>} 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<string>} 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 * // <img src=\"http://res.cloudinary.com/demo/image/upload/sample\">\n * tag.transformation().crop(\"fit\").width(300).toHtml()\n * // <img src=\"http://res.cloudinary.com/demo/image/upload/c_fit,w_300/sample\">\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<string>}\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<string>} 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<number> 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.<br>\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 * <ul>\n * <li>value is null or undefined</li>\n * <li>value is an array or string of length 0</li>\n * <li>value is an object with no keys</li>\n * </ul>\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/**\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","var nodeContains;\n\nexport {\n default as assign\n} from 'lodash/assign';\n\nexport {\n default as cloneDeep\n} from 'lodash/cloneDeep';\n\nexport {\n default as compact\n} from 'lodash/compact';\n\nexport {\n default as difference\n} from 'lodash/difference';\n\nexport {\n default as functions\n} from 'lodash/functions';\n\nexport {\n default as identity\n} from 'lodash/identity';\n\nexport {\n default as includes\n} from 'lodash/includes';\n\nexport {\n default as isArray\n} from 'lodash/isArray';\n\nexport {\n default as isPlainObject\n} from 'lodash/isPlainObject';\n\nexport {\n default as isString\n} from 'lodash/isString';\n\nexport {\n default as merge\n} from 'lodash/merge';\n\nexport {\n default as contains\n} from 'lodash/includes';\n\nimport * as isElement from 'lodash/isElement';\nimport * as isFunction from 'lodash/isFunction';\nimport * as trim from 'lodash/trim';\n\nexport * from './baseutil';\nexport {\n isElement,\n isFunction,\n trim}\n/*\n * Includes utility methods and lodash / jQuery shims\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 switch (false) {\n case !(element == null):\n return void 0;\n case !isFunction(element.getAttribute):\n return element.getAttribute(`data-${name}`);\n case !isFunction(element.getAttr):\n return element.getAttr(`data-${name}`);\n case !isFunction(element.data):\n return element.data(name);\n case !(isFunction(typeof jQuery !== \"undefined\" && jQuery.fn && jQuery.fn.data) && isElement(element)):\n return jQuery(element).data(name);\n }\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 switch (false) {\n case !(element == null):\n return void 0;\n case !isFunction(element.setAttribute):\n return element.setAttribute(`data-${name}`, value);\n case !isFunction(element.setAttr):\n return element.setAttr(`data-${name}`, value);\n case !isFunction(element.data):\n return element.data(name, value);\n case !(isFunction(typeof jQuery !== \"undefined\" && jQuery.fn && jQuery.fn.data) && isElement(element)):\n return jQuery(element).data(name, value);\n }\n};\n\n/**\n * Get attribute from the DOM element.\n *\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 switch (false) {\n case !(element == null):\n return void 0;\n case !isFunction(element.getAttribute):\n return element.getAttribute(name);\n case !isFunction(element.attr):\n return element.attr(name);\n case !isFunction(element.getAttr):\n return element.getAttr(name);\n }\n};\n\n/**\n * Set attribute in the DOM element.\n *\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 switch (false) {\n case !(element == null):\n return void 0;\n case !isFunction(element.setAttribute):\n return element.setAttribute(name, value);\n case !isFunction(element.attr):\n return element.attr(name, value);\n case !isFunction(element.setAttr):\n return element.setAttr(name, value);\n }\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 switch (false) {\n case !(element == null):\n return void 0;\n case !isFunction(element.removeAttribute):\n return element.removeAttribute(name);\n default:\n return setAttribute(element, void 0);\n }\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 var name, results, value;\n results = [];\n for (name in attributes) {\n value = attributes[name];\n if (value != null) {\n results.push(setAttribute(element, name, value));\n } else {\n results.push(removeAttribute(element, name));\n }\n }\n return results;\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 if (isElement(element)) {\n return element.className.match(new RegExp(`\\\\b${name}\\\\b`));\n }\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 if (!element.className.match(new RegExp(`\\\\b${name}\\\\b`))) {\n return element.className = trim(`${element.className} ${name}`);\n }\n};\n\n// The following code is taken from jQuery\nexport var getStyles = function (elem) {\n // Support: IE<=11+, Firefox<=30+ (#15098, #14150)\n // IE throws on elements created in popups\n // FF meanwhile throws on frame elements through \"defaultView.getComputedStyle\"\n if (elem.ownerDocument.defaultView.opener) {\n return elem.ownerDocument.defaultView.getComputedStyle(elem, null);\n }\n return window.getComputedStyle(elem, null);\n};\n\nexport var cssExpand = [\"Top\", \"Right\", \"Bottom\", \"Left\"];\n\nnodeContains = function (a, b) {\n var adown, bup;\n adown = (a.nodeType === 9 ? a.documentElement : a);\n bup = b && b.parentNode;\n return a === bup || !!(bup && bup.nodeType === 1 && adown.contains(bup));\n};\n\n// Truncated version of jQuery.style(elem, name)\nexport var domStyle = function (elem, name) {\n if (!(!elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style)) {\n return elem.style[name];\n }\n};\n\nexport var curCSS = function (elem, name, computed) {\n var maxWidth, minWidth, ret, rmargin, style, width;\n rmargin = /^margin/;\n width = void 0;\n minWidth = void 0;\n maxWidth = void 0;\n ret = void 0;\n style = elem.style;\n computed = computed || getStyles(elem);\n if (computed) {\n // Support: IE9\n // getPropertyValue is only needed for .css('filter') (#12537)\n ret = computed.getPropertyValue(name) || computed[name];\n }\n if (computed) {\n if (ret === \"\" && !nodeContains(elem.ownerDocument, elem)) {\n ret = domStyle(elem, name);\n }\n // Support: iOS < 6\n // A tribute to the \"awesome hack by Dean Edwards\"\n // iOS < 6 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels\n // this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values\n if (rnumnonpx.test(ret) && rmargin.test(name)) {\n // Remember the original values\n width = style.width;\n minWidth = style.minWidth;\n maxWidth = style.maxWidth;\n // Put in the new values to get a computed value out\n style.minWidth = style.maxWidth = style.width = ret;\n ret = computed.width;\n // Revert the changed values\n style.width = width;\n style.minWidth = minWidth;\n style.maxWidth = maxWidth;\n }\n }\n // Support: IE\n // IE returns zIndex value as an integer.\n if (ret !== undefined) {\n return ret + \"\";\n } else {\n return ret;\n }\n};\n\nexport var cssValue = function (elem, name, convert, styles) {\n var val;\n val = curCSS(elem, name, styles);\n if (convert) {\n return parseFloat(val);\n } else {\n return val;\n }\n};\n\nexport var augmentWidthOrHeight = function (elem, name, extra, isBorderBox, styles) {\n var i, len, side, sides, val;\n // If we already have the right measurement, avoid augmentation\n // Otherwise initialize for horizontal or vertical properties\n if (extra === (isBorderBox ? \"border\" : \"content\")) {\n return 0;\n } else {\n sides = name === \"width\" ? [\"Right\", \"Left\"] : [\"Top\", \"Bottom\"];\n val = 0;\n for (i = 0, len = sides.length; i < len; i++) {\n side = sides[i];\n if (extra === \"margin\") {\n // Both box models exclude margin, so add it if we want it\n val += cssValue(elem, extra + side, true, styles);\n }\n if (isBorderBox) {\n if (extra === \"content\") {\n // border-box includes padding, so remove it if we want content\n val -= cssValue(elem, `padding${side}`, true, styles);\n }\n if (extra !== \"margin\") {\n // At this point, extra isn't border nor margin, so remove border\n val -= cssValue(elem, `border${side}Width`, true, styles);\n }\n } else {\n // At this point, extra isn't content, so add padding\n val += cssValue(elem, `padding${side}`, true, styles);\n if (extra !== \"padding\") {\n // At this point, extra isn't content nor padding, so add border\n val += cssValue(elem, `border${side}Width`, true, styles);\n }\n }\n }\n return val;\n }\n};\n\nvar pnum = /[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/.source;\n\nvar rnumnonpx = new RegExp(\"^(\" + pnum + \")(?!px)[a-z%]+$\", \"i\");\n\nexport var getWidthOrHeight = function (elem, name, extra) {\n var isBorderBox, styles, val, valueIsBorderBox;\n // Start with offset property, which is equivalent to the border-box value\n valueIsBorderBox = true;\n val = (name === \"width\" ? elem.offsetWidth : elem.offsetHeight);\n styles = getStyles(elem);\n isBorderBox = cssValue(elem, \"boxSizing\", false, styles) === \"border-box\";\n // Some non-html elements return undefined for offsetWidth, so check for null/undefined\n // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285\n // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668\n if (val <= 0 || (val == null)) {\n // Fall back to computed then uncomputed css if necessary\n val = curCSS(elem, name, styles);\n if (val < 0 || (val == null)) {\n val = elem.style[name];\n }\n if (rnumnonpx.test(val)) {\n // Computed unit is not pixels. Stop here and return.\n return val;\n }\n // Check for style in case a browser which returns unreliable values\n // for getComputedStyle silently falls back to the reliable elem.style\n // valueIsBorderBox = isBorderBox and (support.boxSizingReliable() or val is elem.style[name])\n valueIsBorderBox = isBorderBox && (val === elem.style[name]);\n // Normalize \"\", auto, and prepare for extra\n val = parseFloat(val) || 0;\n }\n // Use the active box-sizing model to add/subtract irrelevant styles\n return val + augmentWidthOrHeight(elem, name, extra || (isBorderBox ? \"border\" : \"content\"), valueIsBorderBox, styles);\n};\n\nexport var width = function (element) {\n return getWidthOrHeight(element, \"width\", \"content\");\n};\n\n\n/**\n * @class Util\n */\n/**\n * Returns true if item is a string\n * @function Util.isString\n * @param item\n * @returns {boolean} true if item is a string\n */\n/**\n * Returns true if item is empty:\n * <ul>\n * <li>item is null or undefined</li>\n * <li>item is an array or string of length 0</li>\n * <li>item is an object with no keys</li>\n * </ul>\n * @function Util.isEmpty\n * @param item\n * @returns {boolean} true if item is empty\n */\n/**\n * Assign source properties to destination.\n * If the property is an object it is assigned as a whole, overriding the destination object.\n * @function Util.assign\n * @param {Object} destination - the object to assign to\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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":""}