{"version":3,"file":"jquery.sheetrock.min.js","sources":["../src/jquery.sheetrock.js"],"names":["sheetrock","define","amd","module","exports","window","jQuery","$","fn","options","bootstrappedData","target","this","_validateOptions","_defined","_loadBootstrappedData","_initializeRequest","_spreadsheetTypes","2014","endpoint","keyFormat","RegExp","2010","_requestStatusCache","loaded","failed","offset","_columnLabelsCache","_callbackIndex","promise","pipe","_prefetchColumnLabels","_fetchRequest","data","_beforeRequest","_processResponse","call","_afterRequest","prefetchOptions","sql","dataHandler","_cacheColumnLabels","userCallback","noop","indexOf","_getColumnLabels","Deferred","resolve","_console","extend","callback","request","_makeParameters","context","url","server","dataType","cache","jsonp","jsonpCallback","debug","ajax","done","fail","_error","always","parameters","gid","tqx","tq","_swapLabels","loading","show","working","hide","_enumerateMessages","state","_has","each","i","status","detailed_message","message","table","parsedOptions","_extendOptions","parsed","last","Math","min","rows","length","chunkSize","requestID","header","map","cols","_getColumnLabel","labels","_getColumnLabelOrLetter","_parseData","thead","appendTo","tbody","headersOff","headers","append","rowHandler","num","cells","_arrayToObject","obj","counter","_stringToNaturalNumber","rowObject","c","x","cell","style","_getFormatting","value","v","Array","f","join","cellHandler","_wrapTag","col","id","key","isEmptyObject","columns","type","_getSpreadsheetType","_extractKey","_extractGID","replace","_validatejQueryObject","resetStatus","msg","errorHandler","_trim","str","toString","max","parseInt","arguments","console","log","returnValue","spreadsheetType","test","match","gidRegExp","label","val","ref","arr","p","_toHTML","row","html","tag","attribute","rowGroups","formatting","version"],"mappings":";;;;;;CAOA,SAAUA,GAER,YAIqB,mBAAXC,SAAyBA,OAAOC,IACxCD,OAAO,oBAAqB,UAAWD,GACZ,gBAAXG,SAAuBA,OAAOC,QAC9CD,OAAOC,QAAUJ,EAEjBA,EAAUK,OAAOC,SAGlB,SAASC,GAEV,YAEAA,GAAEC,GAAGR,UAAY,SAASS,EAASC,GA2BjC,MAxBAD,GAAQE,OAASC,KAGjBH,EAAUI,EAAiBJ,GAGxBA,IAGEK,EAASJ,IAA0C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