/** * Kendo UI v2019.2.619 (http://www.telerik.com/kendo-ui) * Copyright 2019 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial license terms. */ !function(e,define){define("ooxml/utils.min",["kendo.core.min"],e)}(function(){!function(){kendo.ooxml=kendo.ooxml||{},kendo.ooxml.createZip=function(){if("undefined"==typeof JSZip)throw Error("JSZip not found. Check http://docs.telerik.com/kendo-ui/framework/excel/introduction#requirements for more details.");return new JSZip}}()},"function"==typeof define&&define.amd?define:function(e,n,t){(t||n)()}),function(e,define){define("ooxml/kendo-ooxml.min",["kendo.core.min","ooxml/utils.min"],e)}(function(){!function(e){function n(e,n,t){return(1461*(e+4800+((n-13)/12|0))/4|0)+(367*(n-1-12*((n-13)/12|0))/12|0)-(3*((e+4900+((n-13)/12|0))/100|0)/4|0)+t-32075}function t(e,t,o){return n(e,t,o)-j}function o(e,n,t,o){return(e+(n+(t+o/1e3)/60)/60)/24}function r(e){var n=o(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),r=t(e.getFullYear(),e.getMonth(),e.getDate());return r<0?r-1+n:r+n}function i(e){return V+e}function s(e,n){return n.indexOf(e)}function l(e){return(e+"").replace(/&/g,"&").replace(//g,">").replace(/\"/g,""").replace(/\'/g,"'")}function a(e,n){var t,o="";for(t=0;t"+l(e)+"":''+l(e.src)+""}function f(e){var n=Math.floor(e/26)-1;return(n>=0?f(n):"")+String.fromCharCode(65+e%26)}function d(e,n){return f(n)+(e+1)}function u(e,n){return"$"+f(n)+"$"+(e+1)}function h(e){var n=e.frozenRows||(e.freezePane||{}).rowSplit||1;return n-1}function p(e){var n=7;return e/n-Math.floor(128/n)/256}function g(e){return.75*e}function x(e){return(e+"").replace(/[\x00-\x09\x0B\x0C\x0E-\x1F]/g,"").replace(/\r?\n/g,"\r\n")}function y(e){var n=e;return n.length<6&&(n=n.replace(/(\w)/g,function(e,n){return n+n})),n=n.substring(1).toUpperCase(),n.length<8&&(n="FF"+n),n}function v(e){var n="thin";return 2===e?n="medium":3===e&&(n="thick"),n}function w(e,n){var t="";return n&&(t+="<"+e+' style="'+v(n.size)+'">',n.color&&(t+=''),t+=""),t}function b(e){return""+w("left",e.left)+w("right",e.right)+w("top",e.top)+w("bottom",e.bottom)+""}function k(e,n){var t,o,r,i=[],s=[];for(I(e,function(e,n){var t={_source:e,index:n,height:e.height,level:e.level,cells:[]};i.push(t),s[n]=t}),t=T(i).slice(0),o={rowData:i,rowsByIndex:s,mergedCells:n},r=0;r1||i>1)&&_(n.mergedCells,l+":"+d(u+r-1,s+i-1)),r>1)for(m=u+1;m\r',H=X+'\n \n \n \n \n ',J=function(e){var n=e.creator,t=e.lastModifiedBy,o=e.created,r=e.modified;return X+'\n \n '+l(n)+"\n "+l(t)+'\n '+l(o)+'\n '+l(r)+"\n"},Z=function(e){var n=e.sheets;return X+'\n\n Microsoft Excel\n 0\n false\n \n \n \n Worksheets\n \n \n '+n.length+'\n \n \n \n \n '+m(n,function(e,n){return e.options.title?""+l(e.options.title)+"":"Sheet"+(n+1)+""})+"\n \n false\n false\n false\n 14.0300\n"},G=function(e){var n=e.sheetCount,t=e.commentFiles,o=e.drawingFiles;return X+'\n\n \n \n \n \n \n \n \n \n \n '+a(n,function(e){return''})+"\n "+m(t,function(e){return''})+"\n "+m(o,function(e){return''})+'\n \n \n'},$=function(e){var n=e.sheets,t=e.filterNames,o=e.userNames;return X+'\n\n \n \n \n \n \n \n '+m(n,function(e,n){var t=e.options,o=t.name||t.title||"Sheet"+(n+1);return''})+"\n \n "+(t.length||o.length?"\n \n "+m(t,function(e){return'\n "})+"\n "+m(o,function(e){return'\n "})+"\n ":"")+'\n \n'},Q=function(e){var n=e.frozenColumns,t=e.frozenRows,o=e.columns,r=e.defaults,i=e.data,s=e.index,a=e.mergeCells,f=e.autoFilter,d=e.filter,u=e.showGridLines,h=e.hyperlinks,x=e.validations,y=e.defaultCellStyleId,v=e.rtl,w=e.legacyDrawing,b=e.drawing,k=e.lastRow;return X+'\n\n \n\n \n \n "+(t||n?'\n ':"")+'\n \n \n\n \n\n "+(null!=y||o&&o.length>0?"\n \n "+(o&&o.length?"":'\n ")+"\n "+m(o,function(e,n){var t="number"==typeof e.index?e.index+1:n+1;return 0===e.width?"':""})+"\n ":"")+"\n\n \n "+m(i,function(e,n){var t="number"==typeof e.index?e.index+1:n+1;return'\n \n "+m(e.data,function(e){return'\n \n "+(null!=e.formula?c(e.formula):"")+"\n "+(null!=e.value?""+l(e.value)+"":"")+"\n "})+"\n \n "})+"\n \n\n "+(f?'':d?L(d):"")+"\n\n "+(a.length?'\n \n '+m(a,function(e){return''})+"\n ":"")+"\n\n "+(x.length?"\n \n "+m(x,function(e){return'\n \n "+(e.formula1?""+l(e.formula1)+"":"")+"\n "+(e.formula2?""+l(e.formula2)+"":"")+"\n "})+"\n ":"")+"\n\n "+(h.length?"\n \n "+m(h,function(e){return'\n '})+"\n ":"")+'\n\n \n '+(w?'':"")+"\n "+(b?'':"")+"\n"},K=function(e){var n=e.count;return X+'\n\n '+a(n,function(e){return'\n '})+'\n \n \n'},Y=function(e){var n=e.hyperlinks,t=e.comments,o=e.sheetIndex,r=e.drawings;return X+'\n\n '+m(n,function(e){return'\n '})+"\n "+(t.length?'\n \n ':"")+"\n "+(r.length?'\n ':"")+"\n"},ee=function(e){var n=e.comments;return X+'\n\n \n \n \n \n '+m(n,function(e){return'\n \n \n \n \n \n \n \n \n \n '+l(e.text)+"\n \n \n "})+"\n \n"},ne=function(e){var n=e.comments;return'\n \n '+m(n,function(e){return'\n \n \n \n \n \n '+e.anchor+"\n False\n "+e.row+"\n "+e.col+"\n \n "})+"\n"},te=function(e){return X+'\n\n '+m(e,function(e,n){return'\n \n \n '+e.col+"\n "+e.colOffset+"\n "+e.row+"\n "+e.rowOffset+'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '})+"\n"},oe=function(e){return X+'\n\n '+m(e,function(e){return'\n '})+"\n"},re=function(e){var n=e.count,t=e.uniqueCount,o=e.indexes;return X+'\n\n '+m(Object.keys(o),function(e){return'\n '+l(e.substring(1))+""})+"\n"},ie=function(e){var n=e.formats,t=e.fonts,o=e.fills,r=e.borders,i=e.styles;return X+'\n\n \n '+m(n,function(e,n){return'\n '})+'\n \n \n \n \n \n \n \n \n \n '+m(t,function(e){return'\n \n \n '+(e.bold?"":"")+"\n "+(e.italic?"":"")+"\n "+(e.underline?"":"")+"\n "+(e.color?'':'')+"\n "+(e.fontFamily?'\n \n \n ':'\n \n \n \n ')+"\n "})+'\n \n \n \n \n '+m(o,function(e){return"\n "+(e.background?'\n \n \n \n \n \n ':"")})+'\n \n \n \n '+m(r,b)+'\n \n \n \n \n \n \n '+m(i,function(e){return'\n \n "+(e.textAlign||e.verticalAlign||e.wrap?"\n \n ":"")+"\n \n "})+'\n \n \n \n \n \n \n'},se=kendo.Class.extend({init:function(n,t,o,r){this.options=n,this._strings=t,this._styles=o,this._borders=r,this._validations={},this._comments=[],this._drawings=n.drawings||[],this._hyperlinks=(this.options.hyperlinks||[]).map(function(n,t){return e.extend({},n,{rId:"link"+t})})},relsToXML:function(){var e=this._hyperlinks,n=this._comments,t=this._drawings;if(e.length||n.length||t.length)return Y({hyperlinks:e,comments:n,sheetIndex:this.options.sheetIndex,drawings:t})},toXML:function(e){var n,t,o,r,i,s,l,a,m=this,c=this.options.mergedCells||[],f=this.options.rows||[],u=k(f,c);this._readCells(u),n=this.options.filter,n&&"number"==typeof n.from&&"number"==typeof n.to?n={from:d(h(this.options),n.from),to:d(h(this.options),n.to)}:n&&n.ref&&n.columns&&(t=n,n=null),o=[];for(r in this._validations)Object.prototype.hasOwnProperty.call(m._validations,r)&&o.push(m._validations[r]);return i=null,this.options.defaultCellStyle&&(i=this._lookupStyle(this.options.defaultCellStyle)),s=this.options.freezePane||{},l=this.options.defaults||{},a=this.options.rows?this._getLastRow():1,Q({frozenColumns:this.options.frozenColumns||s.colSplit,frozenRows:this.options.frozenRows||s.rowSplit,columns:this.options.columns,defaults:l,data:u,index:e,mergeCells:c,autoFilter:n,filter:t,showGridLines:this.options.showGridLines,hyperlinks:this._hyperlinks,validations:o,defaultCellStyleId:i,rtl:void 0!==this.options.rtl?this.options.rtl:l.rtl,legacyDrawing:this._comments.length?"vml"+this.options.sheetIndex:null,drawing:this._drawings.length?"drw"+this.options.sheetIndex:null,lastRow:a})},commentsXML:function(){if(this._comments.length)return ee({comments:this._comments})},drawingsXML:function(e){var n,t;if(this._drawings.length)return n={},t=this._drawings.map(function(t){var o=C(t.topLeftCell),r=n[t.image];return r||(r=n[t.image]={rId:"img"+t.image,target:e[t.image].target}),{col:o.col,colOffset:D(t.offsetX),row:o.row,rowOffset:D(t.offsetY),width:D(t.width),height:D(t.height),imageId:r.rId}}),{main:te(t),rels:oe(n)}},legacyDrawing:function(){if(this._comments.length)return ne({comments:this._comments})},_lookupString:function(e){var n,t="$"+e,o=this._strings.indexes[t];return void 0!==o?n=o:(n=this._strings.indexes[t]=this._strings.uniqueCount,this._strings.uniqueCount++),this._strings.count++,n},_lookupStyle:function(e){var n,t=JSON.stringify(e);return"{}"===t?0:(n=s(t,this._styles),n<0&&(n=this._styles.push(t)-1),n+1)},_lookupBorder:function(e){var n,t=JSON.stringify(e);if("{}"!==t)return n=s(t,this._borders),n<0&&(n=this._borders.push(t)-1),n+1},_readCells:function(e){var n,t,o,r,i,s=this;for(n=0;n=n&&(n=e.index+1)}),n}}),le={greaterThanOrEqualTo:"greaterThanOrEqual",lessThanOrEqualTo:"lessThanOrEqual"},ae={number:"decimal"},me={General:0,0:1,"0.00":2,"#,##0":3,"#,##0.00":4,"0%":9,"0.00%":10,"0.00E+00":11,"# ?/?":12,"# ??/??":13,"mm-dd-yy":14,"d-mmm-yy":15,"d-mmm":16,"mmm-yy":17,"h:mm AM/PM":18,"h:mm:ss AM/PM":19,"h:mm":20,"h:mm:ss":21,"m/d/yy h:mm":22,"#,##0 ;(#,##0)":37,"#,##0 ;[Red](#,##0)":38,"#,##0.00;(#,##0.00)":39,"#,##0.00;[Red](#,##0.00)":40,"mm:ss":45,"[h]:mm:ss":46,"mmss.0":47,"##0.0E+0":48,"@":49,"[$-404]e/m/d":27,"m/d/yy":30,t0:59,"t0.00":60,"t#,##0":61,"t#,##0.00":62,"t0%":67,"t0.00%":68,"t# ?/?":69,"t# ??/??":70},ce=kendo.Class.extend({init:function(e){var n=this;this.options=e||{},this._strings={indexes:{},count:0,uniqueCount:0},this._styles=[],this._borders=[],this._images=this.options.images,this._imgId=0,this._sheets=E(this.options.sheets||[],function(e,t){return e.defaults=n.options,e.sheetIndex=t+1,new se(e,n._strings,n._styles,n._borders)})},imageFilename:function(e){var n=++this._imgId;switch(e){case"image/jpg":case"image/jpeg":return"image"+n+".jpg";case"image/png":return"image"+n+".png";case"image/gif":return"image"+n+".gif";default:return"image"+n+".bin"}},toZIP:function(){var e,n,t,o,r,i,l,a,m,c,f,d,p,g,x,v,w,b,k,I,T,_,S,D,F,P,M,A,R,L=this,O=N(),q=O.folder("docProps");for(q.file("core.xml",J({creator:this.options.creator||"Kendo UI",lastModifiedBy:this.options.creator||"Kendo UI",created:this.options.date||(new Date).toJSON(),modified:this.options.date||(new Date).toJSON()})),e=this._sheets.length,q.file("app.xml",Z({sheets:this._sheets})),n=O.folder("_rels"),n.file(".rels",H),t=O.folder("xl"),o=t.folder("_rels"),o.file("workbook.xml.rels",K({count:e})),this._images&&(r=t.folder("media"),Object.keys(this._images).forEach(function(e){var n=L._images[e],t=L.imageFilename(n.type);r.file(t,n.data),n.target="../media/"+t})),i={},t.file("workbook.xml",$({sheets:this._sheets,filterNames:E(this._sheets,function(e,n){var t,o,r,s,l=e.options,a=l.name||l.title||"Sheet"+(n+1);if(i[a.toLowerCase()]=n,t=l.filter){if(t.ref)return o=t.ref.split(":"),r=C(o[0]),s=C(o[1]),{localSheetId:n,name:a,from:u(r.row,r.col),to:u(s.row,s.col)};if(void 0!==t.from&&void 0!==t.to)return{localSheetId:n,name:a,from:u(h(l),t.from),to:u(h(l),t.to)}}}),userNames:E(this.options.names||[],function(e){return{name:e.localName,localSheetId:e.sheet?i[e.sheet.toLowerCase()]:null,value:e.value,hidden:e.hidden}})})),l=t.folder("worksheets"),a=t.folder("drawings"),m=a.folder("_rels"),c=l.folder("_rels"),f=[],d=[],p=0;p\n '+m(t,function(e){return'\n \n '+o[e.filter](e)+"\n \n "})+"\n"},ue=function(e){var n=e.logic,t=e.criteria;return"\n\n"+m(t,function(e){var n=L.customOperator(e),t=L.customValue(e);return"'})+"\n"},he=function(e){var n=e.type;return''},pe=function(e){var n=e.type,t=e.value;return''},ge=function(e){var n=e.blanks,t=e.values;return"\n "+m(t,function(e){return'\n '})+"\n "},L.customOperator=function(e){return{eq:"equal",gt:"greaterThan",gte:"greaterThanOrEqual",lt:"lessThan",lte:"lessThanOrEqual",ne:"notEqual",doesnotstartwith:"notEqual",doesnotendwith:"notEqual",doesnotcontain:"notEqual",doesnotmatch:"notEqual"}[e.operator.toLowerCase()]},L.customValue=function(e){function n(e){return e.replace(/([*?])/g,"~$1")}switch(e.operator.toLowerCase()){case"startswith":case"doesnotstartwith":return n(e.value)+"*";case"endswith":case"doesnotendwith":return"*"+n(e.value);case"contains":case"doesnotcontain":return"*"+n(e.value)+"*";default:return e.value}},L.dynamicFilterType=function(e){return{quarter1:"Q1",quarter2:"Q2",quarter3:"Q3",quarter4:"Q4",january:"M1",february:"M2",march:"M3",april:"M4",may:"M5",june:"M6",july:"M7",august:"M8",september:"M9",october:"M10",november:"M11",december:"M12"}[e.toLowerCase()]||e},kendo.deepExtend(kendo.ooxml,{IntlService:z,Workbook:ce,Worksheet:se})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,n,t){(t||n)()}),function(e,define){define("ooxml/main.min",["kendo.core.min","ooxml/kendo-ooxml.min"],e)}(function(){!function(e){var n=kendo.ooxml.Workbook;kendo.ooxml.IntlService.register({toString:kendo.toString }),kendo.ooxml.Workbook=n.extend({toDataURL:function(){var e=n.fn.toDataURL.call(this);if("string"!=typeof e)throw Error("The toDataURL method can be used only with jsZip 2. Either include jsZip 2 or use the toDataURLAsync method.");return e},toDataURLAsync:function(){var t=e.Deferred(),o=n.fn.toDataURL.call(this);return"string"==typeof o?o=t.resolve(o):o&&o.then&&o.then(function(e){t.resolve(e)},function(){t.reject()}),t.promise()}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,n,t){(t||n)()}),function(e,define){define("kendo.ooxml.min",["ooxml/main.min"],e)}(function(){},"function"==typeof define&&define.amd?define:function(e,n,t){(t||n)()}); //# sourceMappingURL=kendo.ooxml.min.js.map