"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}var ASSET_EXTENSIONS=["gif","jpe?g","png"],CONTEXT_MAX_WIDTHS={l:1280,m:768,s:480,xl:1920,xs:320},SELF_CLOSING_TAGS=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],RENAME_ASSETS=!1,SRC_DIR="/images",TAB_CHAR=" ",hasExtension=(Array.prototype.indexOf||(Array.prototype.indexOf=function(searchElement,fromIndex){null==this&&alert('Error: Array.prototype.indexOf()\n"this" is null or undefined.');var k,o=Object(this),len=o.length>>>0;if(0!=len){fromIndex=0|fromIndex;if(!(len<=fromIndex))for(k=Math.max(0<=fromIndex?fromIndex:len-Math.abs(fromIndex),0);k"),file.write("\r\n"),fn(tabs+1),file.write(toIndent(tabs)),-1===SELF_CLOSING_TAGS.indexOf(tag)?file.write("\r\n")},writeHTML=function(_){_.dialog.renameAssets&&renameAssets(_);function writeImgTag(file){writeTag(function(tabs){_.dialog.altText&&writeAttr(file,"alt",_.dialog.altText,tabs);for(var assets=_.assets[_.contexts[0]],src=toWebSafeSrc(assets[0],_.dialog.srcDir),srcset=[],i=1,len=assets.length;i