/** 
 * Kendo UI v2016.3.1118 (http://www.telerik.com/kendo-ui)                                                                                                                                              
 * Copyright 2016 Telerik AD. 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(t,define){define("util/main.min",["kendo.core.min"],t)}(function(){return function(){function t(t){return typeof t!==B}function e(t,e){var r=n(e);return I.round(t*r)/r}function n(t){return t?I.pow(10,t):1}function r(t,e,n){return I.max(I.min(t,n),e)}function i(t){return t*P}function o(t){return t/P}function a(t){return"number"==typeof t&&!isNaN(t)}function s(e,n){return t(e)?e:n}function h(t){return t*t}function c(t){var e,n=[];for(e in t)n.push(e+t[e]);return n.sort().join("")}function u(t){var e,n=2166136261;for(e=0;e<t.length;++e)n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24),n^=t.charCodeAt(e);return n>>>0}function f(t){return u(c(t))}function d(t){var e,n=t.length,r=E,i=G;for(e=0;e<n;e++)i=I.max(i,t[e]),r=I.min(r,t[e]);return{min:r,max:i}}function l(t){return d(t).min}function p(t){return d(t).max}function g(t){return S(t).min}function m(t){return S(t).max}function S(t){var e,n,r,i=E,o=G;for(e=0,n=t.length;e<n;e++)r=t[e],null!==r&&isFinite(r)&&(i=I.min(i,r),o=I.max(o,r));return{min:i===E?void 0:i,max:o===G?void 0:o}}function w(t){if(t)return t[t.length-1]}function y(t,e){return t.push.apply(t,e),t}function v(t){return R.template(t,{useWithBlock:!1,paramName:"d"})}function x(e,n){return t(n)&&null!==n?" "+e+"='"+n+"' ":""}function _(t){var e,n="";for(e=0;e<t.length;e++)n+=x(t[e][0],t[e][1]);return n}function b(e){var n,r,i="";for(n=0;n<e.length;n++)r=e[n][1],t(r)&&(i+=e[n][0]+":"+r+";");if(""!==i)return i}function C(t){return"string"!=typeof t&&(t+="px"),t}function T(t){var e,n,r=[];if(t)for(e=R.toHyphens(t).split("-"),n=0;n<e.length;n++)r.push("k-pos-"+e[n]);return r.join(" ")}function D(e){return""===e||null===e||"none"===e||"transparent"===e||!t(e)}function k(t){for(var e={1:"i",10:"x",100:"c",2:"ii",20:"xx",200:"cc",3:"iii",30:"xxx",300:"ccc",4:"iv",40:"xl",400:"cd",5:"v",50:"l",500:"d",6:"vi",60:"lx",600:"dc",7:"vii",70:"lxx",700:"dcc",8:"viii",80:"lxxx",800:"dccc",9:"ix",90:"xc",900:"cm",1e3:"m"},n=[1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],r="";t>0;)t<n[0]?n.shift():(r+=e[n[0]],t-=n[0]);return r}function F(t){var e,n,r,i,o;for(t=t.toLowerCase(),e={i:1,v:5,x:10,l:50,c:100,d:500,m:1e3},n=0,r=0,i=0;i<t.length;++i){if(o=e[t.charAt(i)],!o)return null;n+=o,o>r&&(n-=2*r),r=o}return n}function A(t){var e=Object.create(null);return function(){var n,r="";for(n=arguments.length;--n>=0;)r+=":"+arguments[n];return r in e?e[r]:e[r]=t.apply(this,arguments)}}function M(t){for(var e,n,r=[],i=0,o=t.length;i<o;)e=t.charCodeAt(i++),e>=55296&&e<=56319&&i<o?(n=t.charCodeAt(i++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--)):r.push(e);return r}function L(t){return t.map(function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t)}).join("")}function O(t,e){function n(t,n){for(var r=[],i=0,o=0,a=0;i<t.length&&o<n.length;)e(t[i],n[o])<=0?r[a++]=t[i++]:r[a++]=n[o++];return i<t.length&&r.push.apply(r,t.slice(i)),o<n.length&&r.push.apply(r,n.slice(o)),r}return t.length<2?t.slice():function r(t){var e,i,o;return t.length<=1?t:(e=Math.floor(t.length/2),i=t.slice(0,e),o=t.slice(e),i=r(i),o=r(o),n(i,o))}(t)}var I=Math,R=window.kendo,N=R.deepExtend,P=I.PI/180,E=Number.MAX_VALUE,G=-Number.MAX_VALUE,B="undefined",U=Date.now;U||(U=function(){return(new Date).getTime()}),N(R,{util:{MAX_NUM:E,MIN_NUM:G,append:y,arrayLimits:d,arrayMin:l,arrayMax:p,defined:t,deg:o,hashKey:u,hashObject:f,isNumber:a,isTransparent:D,last:w,limitValue:r,now:U,objectKey:c,round:e,rad:i,renderAttr:x,renderAllAttr:_,renderPos:T,renderSize:C,renderStyle:b,renderTemplate:v,sparseArrayLimits:S,sparseArrayMin:g,sparseArrayMax:m,sqr:h,valueOrDefault:s,romanToArabic:F,arabicToRoman:k,memoize:A,ucs2encode:L,ucs2decode:M,mergeSort:O}}),R.drawing.util=R.util,R.dataviz.util=R.util}(),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("pdf/core.min",["kendo.core.min","util/main.min"],t)}(function(){!function(t,e,n){"use strict";function r(){function t(){var e,i,o;for(e=0;e<arguments.length;++e){if(i=arguments[e],i===n)throw Error("Cannot output undefined to PDF");if(i instanceof x)i.beforeRender(t),i.render(t);else if(z(i))g(i,t);else if(p(i))m(i,t);else if("number"==typeof i){if(isNaN(i))throw Error("Cannot output NaN to PDF");o=i.toFixed(7),o.indexOf(".")>=0&&(o=o.replace(/\.?0+$/,"")),"-0"==o&&(o="0"),r.writeString(o)}else/string|boolean/.test(typeof i)?r.writeString(i+""):"function"==typeof i.get?r.write(i.get()):"object"==typeof i&&(i?t(new W(i)):r.writeString("null"))}}var e=0,r=I();return t.writeData=function(t){r.write(t)},t.withIndent=function(n){++e,n(t),--e},t.indent=function(){t(rt,f("",2*e,"  ")),t.apply(null,arguments)},t.offset=function(){return r.offset()},t.toString=function(){throw Error("FIX CALLER")},t.get=function(){return r.get()},t.stream=function(){return r},t}function i(t,e){var n=t.beforeRender,r=t.render;t.beforeRender=function(){},t.render=function(t){t(e," 0 R")},t.renderFull=function(i){t._offset=i.offset(),i(e," 0 obj "),n.call(t,i),r.call(t,i),i(" endobj")}}function o(t){var e,n,r;if("function"!=typeof t&&(e=t,t=function(t,n){return t in e?e[t]:n}),n=t("paperSize",at.a4),!n)return{};if("string"==typeof n&&(n=at[n.toLowerCase()],null==n))throw Error("Unknown paper size");return n[0]=v(n[0]),n[1]=v(n[1]),t("landscape",!1)&&(n=[Math.max(n[0],n[1]),Math.min(n[0],n[1])]),r=t("margin"),r&&("string"==typeof r||"number"==typeof r?(r=v(r,0),r={left:r,top:r,right:r,bottom:r}):r={left:v(r.left,0),top:v(r.top,0),right:v(r.right,0),bottom:v(r.bottom,0)},t("addMargin")&&(n[0]+=r.left+r.right,n[1]+=r.top+r.bottom)),{paperSize:n,margin:r}}function a(t){function e(e,n){return t&&null!=t[e]?t[e]:n}var n,a,s=this,h=r(),c=0,u=[];s.getOption=e,s.attach=function(t){return u.indexOf(t)<0&&(i(t,++c),u.push(t)),t},s.pages=[],s.FONTS={},s.IMAGES={},s.GRAD_COL_FUNCTIONS={},s.GRAD_OPC_FUNCTIONS={},s.GRAD_COL={},s.GRAD_OPC={},n=s.attach(new Z),a=s.attach(new V),n.setPages(a),s.addPage=function(t){var e,n,i,h=o(function(e,n){return t&&null!=t[e]?t[e]:n}),c=h.paperSize,u=h.margin,f=c[0],d=c[1];return u&&(f-=u.left+u.right,d-=u.top+u.bottom),e=new K(r(),null,(!0)),n={Contents:s.attach(e),Parent:a,MediaBox:[0,0,c[0],c[1]]},i=new J(s,n),i._content=e,a.addPage(s.attach(i)),i.transform(1,0,0,-1,0,c[1]),u&&(i.translate(u.left,u.top),i.rect(0,0,f,d),i.clip()),s.pages.push(i),i},s.render=function(){var t,r;for(h("%PDF-1.4",rt,"%ÂÁÚÏÎ",rt,rt),t=0;t<u.length;++t)u[t].renderFull(h),h(rt,rt);for(r=h.offset(),h("xref",rt,0," ",u.length+1,rt),h("0000000000 65535 f ",rt),t=0;t<u.length;++t)h(d(u[t]._offset,10)," 00000 n ",rt);return h(rt),h("trailer",rt),h(new W({Size:u.length+1,Root:n,Info:new W({Producer:new j(e("producer","Kendo UI PDF Generator v."+et.version)),Title:new j(e("title","")),Author:new j(e("author","")),Subject:new j(e("subject","")),Keywords:new j(e("keywords","")),Creator:new j(e("creator","Kendo UI PDF Generator v."+et.version)),CreationDate:e("date",new Date)})}),rt,rt),h("startxref",rt,r,rt),h("%%EOF",rt),h.stream().offset(0)}}function s(e,n){function r(){t.console&&(t.console.error?t.console.error("Cannot load URL: %s",e):t.console.log("Cannot load URL: %s",e)),n(null)}var i=new XMLHttpRequest;i.open("GET",e,!0),nt&&(i.responseType="arraybuffer"),i.onload=function(){200==i.status||304==i.status?n(nt?new Uint8Array(i.response):new VBArray(i.responseBody).toArray()):r()},i.onerror=r,i.send(null)}function h(t,e){var n=st[t];n?e(n):s(t,function(n){if(null==n)throw Error("Cannot load font from "+t);var r=new et.pdf.TTFFont(n);st[t]=r,e(r)})}function c(t,e){function r(t){c.src=t,c.complete&&!et.support.browser.msie?o():(c.onload=o,c.onerror=i)}function i(){e(ht[t]="TAINTED")}function o(){var r,o,h,u,f,d,l,p,g,m,S,w;if(s&&/^image\/jpe?g$/i.test(s.type))return r=new FileReader,r.onload=function(){c=new C(c.width,c.height,I(new Uint8Array(this.result))),URL.revokeObjectURL(a),e(ht[t]=c)},r.readAsArrayBuffer(s),n;o=document.createElement("canvas"),o.width=c.width,o.height=c.height,h=o.getContext("2d"),h.drawImage(c,0,0);try{u=h.getImageData(0,0,c.width,c.height)}catch(y){return i()}finally{a&&URL.revokeObjectURL(a)}for(f=!1,d=I(),l=I(),p=u.data,g=0;g<p.length;)d.writeByte(p[g++]),d.writeByte(p[g++]),d.writeByte(p[g++]),m=p[g++],m<255&&(f=!0),l.writeByte(m);f?c=new T(c.width,c.height,d,l):(S=o.toDataURL("image/jpeg"),S=S.substr(S.indexOf(";base64,")+8),w=I(),w.writeBase64(S),w.offset(0),c=new C(c.width,c.height,w)),e(ht[t]=c)}var a,s,h,c=ht[t];c?e(c):(c=new Image,/^data:/i.test(t)||(c.crossOrigin="Anonymous"),nt&&!/^data:/i.test(t)?(h=new XMLHttpRequest,h.onload=function(){s=h.response,a=URL.createObjectURL(s),r(a)},h.onerror=i,h.open("GET",t,!0),h.responseType="blob",h.send()):r(t))}function u(t){return function(e,n){var r=e.length,i=r;if(0===r)return n();for(;i-- >0;)t(e[i],function(){0===--r&&n()})}}function f(t,e,n){for(;t.length<e;)t=n+t;return t}function d(t,e){return f(t+"",e,"0")}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function p(t){return t instanceof Date}function g(t,e){e("["),t.length>0&&e.withIndent(function(){for(var n=0;n<t.length;++n)n>0&&n%8===0?e.indent(t[n]):e(" ",t[n])}),e(" ]")}function m(t,e){e("(D:",d(t.getUTCFullYear(),4),d(t.getUTCMonth()+1,2),d(t.getUTCDate(),2),d(t.getUTCHours(),2),d(t.getUTCMinutes(),2),d(t.getUTCSeconds(),2),"Z)")}function S(t){return t*(72/25.4)}function w(t){return S(10*t)}function y(t){return 72*t}function v(t,n){var r,i;if("number"==typeof t)return t;if("string"==typeof t&&(r=/^\s*([0-9.]+)\s*(mm|cm|in|pt)\s*$/.exec(t),r&&(i=e(r[1]),!isNaN(i))))return"pt"==r[2]?i:{mm:S,cm:w,"in":y}[r[2]](i);if(null!=n)return n;throw Error("Can't parse unit: "+t)}function x(){}function _(t,e,n){n||(n=x),t.prototype=new n;for(var r in e)l(e,r)&&(t.prototype[r]=e[r]);return t}function b(t){return l(X,t)?X[t]:X[t]=new H(t)}function C(t,e,n){this.asStream=function(){var r=new K(n,{Type:b("XObject"),Subtype:b("Image"),Width:t,Height:e,BitsPerComponent:8,ColorSpace:b("DeviceRGB"),Filter:b("DCTDecode")});return r._resourceName=b("I"+ ++it),r}}function T(t,e,n,r){this.asStream=function(i){var o=new K(r,{Type:b("XObject"),Subtype:b("Image"),Width:t,Height:e,BitsPerComponent:8,ColorSpace:b("DeviceGray")},(!0)),a=new K(n,{Type:b("XObject"),Subtype:b("Image"),Width:t,Height:e,BitsPerComponent:8,ColorSpace:b("DeviceRGB"),SMask:i.attach(o)},(!0));return a._resourceName=b("I"+ ++it),a}}function D(t){return t.map(function(t){return z(t)?D(t):"number"==typeof t?(Math.round(1e3*t)/1e3).toFixed(3):t}).join(" ")}function k(t,e,n,r,i,o,a){var s=D([e,n,r,i,o,a]),h=t.GRAD_COL_FUNCTIONS[s];return h||(h=t.GRAD_COL_FUNCTIONS[s]=t.attach(new W({FunctionType:2,Domain:[0,1],Range:[0,1,0,1,0,1],N:1,C0:[e,n,r],C1:[i,o,a]}))),h}function F(t,e,n){var r=D([e,n]),i=t.GRAD_OPC_FUNCTIONS[r];return i||(i=t.GRAD_OPC_FUNCTIONS[r]=t.attach(new W({FunctionType:2,Domain:[0,1],Range:[0,1],N:1,C0:[e],C1:[n]}))),i}function A(t,e){function n(t){return 1==t.length?t[0]:{FunctionType:3,Functions:t,Domain:[0,1],Bounds:f,Encode:d}}var r,i,o,a,s,h=!1,c=[],u=[],f=[],d=[];for(r=1;r<e.length;++r)i=e[r-1],o=e[r],a=i.color,s=o.color,u.push(k(t,a.r,a.g,a.b,s.r,s.g,s.b)),(a.a<1||s.a<1)&&(h=!0),f.push(o.offset),d.push(0,1);if(h)for(r=1;r<e.length;++r)i=e[r-1],o=e[r],a=i.color,s=o.color,c.push(F(t,a.a,s.a));return f.pop(),{hasAlpha:h,colors:n(u),opacities:h?n(c):null}}function M(t,e,n,r,i,o){var a,s,h;return o||(h=[e].concat(r),n.forEach(function(t){h.push(t.offset,t.color.r,t.color.g,t.color.b)}),s=D(h),a=t.GRAD_COL[s]),a||(a=new W({Type:b("Shading"),ShadingType:e?3:2,ColorSpace:b("DeviceRGB"),Coords:r,Domain:[0,1],Function:i,Extend:[!0,!0]}),t.attach(a),a._resourceName="S"+ ++it,s&&(t.GRAD_COL[s]=a)),a}function L(t,e,n,r,i,o){var a,s,h;return o||(h=[e].concat(r),n.forEach(function(t){h.push(t.offset,t.color.a)}),s=D(h),a=t.GRAD_OPC[s]),a||(a=new W({Type:b("ExtGState"),AIS:!1,CA:1,ca:1,SMask:{Type:b("Mask"),S:b("Luminosity"),G:t.attach(new K("/a0 gs /s0 sh",{Type:b("XObject"),Subtype:b("Form"),FormType:1,BBox:o?[o.left,o.top+o.height,o.left+o.width,o.top]:[0,1,1,0],Group:{Type:b("Group"),S:b("Transparency"),CS:b("DeviceGray"),I:!0},Resources:{ExtGState:{a0:{CA:1,ca:1}},Shading:{s0:{ColorSpace:b("DeviceGray"),Coords:r,Domain:[0,1],ShadingType:e?3:2,Function:i,Extend:[!0,!0]}}}}))}}),t.attach(a),a._resourceName="O"+ ++it,s&&(t.GRAD_OPC[s]=a)),a}function O(t,e,n){var r="radial"==e.type,i=A(t,e.stops),o=r?[e.start.x,e.start.y,e.start.r,e.end.x,e.end.y,e.end.r]:[e.start.x,e.start.y,e.end.x,e.end.y],a=M(t,r,e.stops,o,i.colors,e.userSpace&&n),s=i.hasAlpha?L(t,r,e.stops,o,i.opacities,e.userSpace&&n):null;return{hasAlpha:i.hasAlpha,shading:a,opacity:s}}function I(e){function n(){return D>=k}function r(){return D<k?e[D++]:0}function i(t){x(D),e[D++]=255&t,D>k&&(k=D)}function o(){return r()<<8|r()}function a(t){i(t>>8),i(t)}function s(){var t=o();return t>=32768?t-65536:t}function h(t){a(t<0?t+65536:t)}function c(){return 65536*o()+o()}function u(t){a(t>>>16&65535),a(65535&t)}function f(){var t=c();return t>=2147483648?t-4294967296:t}function d(t){u(t<0?t+4294967296:t)}function l(){return c()/65536}function p(t){u(Math.round(65536*t))}function g(){return f()/65536}function m(t){d(Math.round(65536*t))}function S(t){return v(t,r)}function w(t){return String.fromCharCode.apply(String,S(t))}function y(t){for(var e=0;e<t.length;++e)i(t.charCodeAt(e))}function v(t,e){for(var n=Array(t),r=0;r<t;++r)n[r]=e();return n}var x,_,b,C,T,D=0,k=0;return null==e?e=nt?new Uint8Array(256):[]:k=e.length,x=nt?function(t){if(t>=e.length){var n=new Uint8Array(Math.max(t+256,2*e.length));n.set(e,0),e=n}}:function(){},_=nt?function(){return new Uint8Array(e.buffer,0,k)}:function(){return e},b=nt?function(t){if("string"==typeof t)return y(t);var n=t.length;x(D+n),e.set(t,D),D+=n,D>k&&(k=D)}:function(t){if("string"==typeof t)return y(t);for(var e=0;e<t.length;++e)i(t[e])},C=nt?function(t,n){if(e.buffer.slice)return new Uint8Array(e.buffer.slice(t,t+n));var r=new Uint8Array(n);return r.set(new Uint8Array(e.buffer,t,n)),r}:function(t,n){return e.slice(t,t+n)},T={eof:n,readByte:r,writeByte:i,readShort:o,writeShort:a,readLong:c,writeLong:u,readFixed:l,writeFixed:p,readShort_:s,writeShort_:h,readLong_:f,writeLong_:d,readFixed_:g,writeFixed_:m,read:S,write:b,readString:w,writeString:y,times:v,get:_,slice:C,offset:function(t){return null!=t?(D=t,T):D},skip:function(t){D+=t},toString:function(){throw Error("FIX CALLER.  BinaryStream is no longer convertible to string!")},length:function(){return k},saveExcursion:function(t){var e=D;try{return t()}finally{D=e}},writeBase64:function(e){t.atob?y(t.atob(e)):b(ot.decode(e))},base64:function(){return ot.encode(_())}}}function R(t){return t.replace(/^\s*(['"])(.*)\1\s*$/,"$2")}function N(t){var e,n=/^\s*((normal|italic)\s+)?((normal|small-caps)\s+)?((normal|bold|\d+)\s+)?(([0-9.]+)(px|pt))(\/(([0-9.]+)(px|pt)|normal))?\s+(.*?)\s*$/i,r=n.exec(t);return r?(e=r[8]?parseInt(r[8],10):12,{italic:r[2]&&"italic"==r[2].toLowerCase(),variant:r[4],bold:r[6]&&/bold|700/i.test(r[6]),fontSize:e,lineHeight:r[12]?"normal"==r[12]?e:parseInt(r[12],10):null,fontFamily:r[14].split(/\s*,\s*/g).map(R)}):{fontSize:12,fontFamily:"sans-serif"}}function P(t){function e(e){return t.bold&&(e+="|bold"),t.italic&&(e+="|italic"),e.toLowerCase()}var n,r,i,o=t.fontFamily;if(o instanceof Array)for(i=0;i<o.length&&(n=e(o[i]),!(r=tt[n]));++i);else r=tt[o.toLowerCase()];for(;"function"==typeof r;)r=r();return r||(r="Times-Roman"),r}function E(t,e){t=t.toLowerCase(),tt[t]=function(){return tt[e]},tt[t+"|bold"]=function(){return tt[e+"|bold"]},tt[t+"|italic"]=function(){return tt[e+"|italic"]},tt[t+"|bold|italic"]=function(){return tt[e+"|bold|italic"]}}function G(t,e){if(1==arguments.length)for(var n in t)l(t,n)&&G(n,t[n]);else switch(t=t.toLowerCase(),tt[t]=e,t){case"dejavu sans":tt["sans-serif"]=e;break;case"dejavu sans|bold":tt["sans-serif|bold"]=e;break;case"dejavu sans|italic":tt["sans-serif|italic"]=e;break;case"dejavu sans|bold|italic":tt["sans-serif|bold|italic"]=e;break;case"dejavu serif":tt.serif=e;break;case"dejavu serif|bold":tt["serif|bold"]=e;break;case"dejavu serif|italic":tt["serif|italic"]=e;break;case"dejavu serif|bold|italic":tt["serif|bold|italic"]=e;break;case"dejavu mono":tt.monospace=e;break;case"dejavu mono|bold":tt["monospace|bold"]=e;break;case"dejavu mono|italic":tt["monospace|italic"]=e;break;case"dejavu mono|bold|italic":tt["monospace|bold|italic"]=e}}function B(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],h=e[0],c=e[1],u=e[2],f=e[3],d=e[4],l=e[5];return[n*h+r*u,n*c+r*f,i*h+o*u,i*c+o*f,a*h+s*u+d,a*c+s*f+l]}function U(t){return 1===t[0]&&0===t[1]&&0===t[2]&&1===t[3]&&0===t[4]&&0===t[5]}var z,j,q,H,X,W,K,Z,V,Y,$,Q,J,tt,et=t.kendo,nt=!!t.Uint8Array,rt="\n",it=0,ot=function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{decode:function(e){for(var n,r,i,o,a,s,h,c=e.replace(/[^A-Za-z0-9\+\/\=]/g,""),u=0,f=c.length,d=[];u<f;)n=t.indexOf(c.charAt(u++)),r=t.indexOf(c.charAt(u++)),i=t.indexOf(c.charAt(u++)),o=t.indexOf(c.charAt(u++)),a=n<<2|r>>>4,s=(15&r)<<4|i>>>2,h=(3&i)<<6|o,d.push(a),64!=i&&d.push(s),64!=o&&d.push(h);return d},encode:function(e){for(var n,r,i,o,a,s,h,c=0,u=e.length,f="";c<u;)n=e[c++],r=e[c++],i=e[c++],o=n>>>2,a=(3&n)<<4|r>>>4,s=(15&r)<<2|i>>>6,h=63&i,c-u==2?s=h=64:c-u==1&&(h=64),f+=t.charAt(o)+t.charAt(a)+t.charAt(s)+t.charAt(h);return f}}}(),at={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],executive:[521.86,756],folio:[612,936],legal:[612,1008],letter:[612,792],tabloid:[792,1224]},st={"Times-Roman":!0,"Times-Bold":!0,"Times-Italic":!0,"Times-BoldItalic":!0,Helvetica:!0,"Helvetica-Bold":!0,"Helvetica-Oblique":!0,"Helvetica-BoldOblique":!0,Courier:!0,"Courier-Bold":!0,"Courier-Oblique":!0,"Courier-BoldOblique":!0,Symbol:!0,ZapfDingbats:!0},ht={},ct=u(h),ut=u(c);a.prototype={loadFonts:ct,loadImages:ut,getFont:function(t){var e=this.FONTS[t];if(!e){if(e=st[t],!e)throw Error("Font "+t+" has not been loaded");e=this.attach(e===!0?new Y(t):new $(this,e)),this.FONTS[t]=e}return e},getImage:function(t){var e=this.IMAGES[t];if(!e){if(e=ht[t],!e)throw Error("Image "+t+" has not been loaded");if("TAINTED"===e)return null;e=this.IMAGES[t]=this.attach(e.asStream(this))}return e},getOpacityGS:function(t,n){var r,i,o,a=e(t).toFixed(3);return t=e(a),a+=n?"S":"F",r=this._opacityGSCache||(this._opacityGSCache={}),i=r[a],i||(o={Type:b("ExtGState")},n?o.CA=t:o.ca=t,i=this.attach(new W(o)),i._resourceName=b("GS"+ ++it),r[a]=i),i},dict:function(t){return new W(t)},name:function(t){return b(t)},stream:function(t,e){return new K(e,t)}},z=Array.isArray||function(t){return t instanceof Array},x.prototype.beforeRender=function(){},j=_(function(t){this.value=t},{render:function(t){var e,n="",r=this.escape();for(e=0;e<r.length;++e)n+=String.fromCharCode(255&r.charCodeAt(e));t("(",n,")")},escape:function(){return this.value.replace(/([\(\)\\])/g,"\\$1")},toString:function(){return this.value}}),q=_(function(t){this.value=t},{render:function(t){t("<");for(var e=0;e<this.value.length;++e)t(d(this.value.charCodeAt(e).toString(16),4));t(">")}},j),H=_(function(t){this.name=t},{render:function(t){t("/"+this.escape())},escape:function(){return this.name.replace(/[^\x21-\x7E]/g,function(t){return"#"+d(t.charCodeAt(0).toString(16),2)})},toString:function(){return this.name}}),X={},H.get=b,W=_(function(t){this.props=t},{render:function(t){var e=this.props,n=!0;t("<<"),t.withIndent(function(){for(var r in e)l(e,r)&&!/^_/.test(r)&&(n=!1,t.indent(b(r)," ",e[r]))}),n||t.indent(),t(">>")}}),K=_(function(t,e,n){if("string"==typeof t){var r=I();r.write(t),t=r}this.data=t,this.props=e||{},this.compress=n},{render:function(e){var n=this.data.get(),r=this.props;this.compress&&t.pako&&"function"==typeof t.pako.deflate&&(r.Filter?r.Filter instanceof Array||(r.Filter=[r.Filter]):r.Filter=[],r.Filter.unshift(b("FlateDecode")),n=t.pako.deflate(n)),r.Length=n.length,e(new W(r)," stream",rt),e.writeData(n),e(rt,"endstream")}}),Z=_(function(t){t=this.props=t||{},t.Type=b("Catalog")},{setPages:function(t){this.props.Pages=t}},W),V=_(function(){this.props={Type:b("Pages"),Kids:[],Count:0}},{addPage:function(t){this.props.Kids.push(t),this.props.Count++}},W),Y=_(function(t){this.props={Type:b("Font"),Subtype:b("Type1"),BaseFont:b(t)},this._resourceName=b("F"+ ++it)},{encodeText:function(t){return new j(t+"")}},W),$=_(function(t,e,n){var r,i;n=this.props=n||{},n.Type=b("Font"),n.Subtype=b("Type0"),n.Encoding=b("Identity-H"),this._pdf=t,this._font=e,this._sub=e.makeSubset(),this._resourceName=b("F"+ ++it),r=e.head,this.name=e.psName,i=this.scale=e.scale,this.bbox=[r.xMin*i,r.yMin*i,r.xMax*i,r.yMax*i],this.italicAngle=e.post.italicAngle,this.ascent=e.ascent*i,this.descent=e.descent*i,this.lineGap=e.lineGap*i,this.capHeight=e.os2.capHeight||this.ascent,this.xHeight=e.os2.xHeight||0,this.stemV=0,this.familyClass=(e.os2.familyClass||0)>>8,this.isSerif=this.familyClass>=1&&this.familyClass<=7,this.isScript=10==this.familyClass,this.flags=(e.post.isFixedPitch?1:0)|(this.isSerif?2:0)|(this.isScript?8:0)|(0!==this.italicAngle?64:0)|32},{encodeText:function(t){return new q(this._sub.encodeText(t+""))},getTextWidth:function(t,e){var n,r,i=0,o=this._font.cmap.codeMap;for(n=0;n<e.length;++n)r=o[e.charCodeAt(n)],i+=this._font.widthOfGlyph(r||0);return i*t/1e3},beforeRender:function(){var t,e,n,i,o=this,a=o._sub,s=a.render(),h=new K(I(s),{Length1:s.length},(!0)),c=o._pdf.attach(new W({Type:b("FontDescriptor"),FontName:b(o._sub.psName),FontBBox:o.bbox,Flags:o.flags,StemV:o.stemV,ItalicAngle:o.italicAngle,Ascent:o.ascent,Descent:o.descent,CapHeight:o.capHeight,XHeight:o.xHeight,FontFile2:o._pdf.attach(h)})),u=a.ncid2ogid,f=a.firstChar,d=a.lastChar,l=[];!function p(t,e){if(t<=d){var n=u[t];null==n?p(t+1):(e||l.push(t,e=[]),e.push(o._font.widthOfGlyph(n)),p(t+1,e))}}(f),t=new W({Type:b("Font"),Subtype:b("CIDFontType2"),BaseFont:b(o._sub.psName),CIDSystemInfo:new W({Registry:new j("Adobe"),Ordering:new j("Identity"),Supplement:0}),FontDescriptor:c,FirstChar:f,LastChar:d,DW:Math.round(o._font.widthOfGlyph(0)),W:l,CIDToGIDMap:o._pdf.attach(o._makeCidToGidMap())}),e=o.props,e.BaseFont=b(o._sub.psName),e.DescendantFonts=[o._pdf.attach(t)],n=new Q(f,d,a.subset),i=new K(r(),null,(!0)),i.data(n),e.ToUnicode=o._pdf.attach(i)},_makeCidToGidMap:function(){return new K(I(this._sub.cidToGidMap()),null,(!0))}},W),Q=_(function(t,e,n){this.firstChar=t,this.lastChar=e,this.map=n},{render:function(t){t.indent("/CIDInit /ProcSet findresource begin"),t.indent("12 dict begin"),t.indent("begincmap"),t.indent("/CIDSystemInfo <<"),t.indent("  /Registry (Adobe)"),t.indent("  /Ordering (UCS)"),t.indent("  /Supplement 0"),t.indent(">> def"),t.indent("/CMapName /Adobe-Identity-UCS def"),t.indent("/CMapType 2 def"),t.indent("1 begincodespacerange"),t.indent("  <0000><ffff>"),t.indent("endcodespacerange");var e=this;t.indent(e.lastChar-e.firstChar+1," beginbfchar"),t.withIndent(function(){var n,r,i,o;for(n=e.firstChar;n<=e.lastChar;++n){for(r=e.map[n],i=et.util.ucs2encode([r]),t.indent("<",d(n.toString(16),4),">","<"),o=0;o<i.length;++o)t(d(i.charCodeAt(o).toString(16),4));t(">")}}),t.indent("endbfchar"),t.indent("endcmap"),t.indent("CMapName currentdict /CMap defineresource pop"),t.indent("end"),t.indent("end")}}),J=_(function(t,e){this._pdf=t,this._rcount=0,this._textMode=!1,this._fontResources={},this._gsResources={},this._xResources={},this._patResources={},this._shResources={},this._opacity=1,this._matrix=[1,0,0,1,0,0],this._annotations=[],this._font=null,this._fontSize=null,this._contextStack=[],e=this.props=e||{},e.Type=b("Page"),e.ProcSet=[b("PDF"),b("Text"),b("ImageB"),b("ImageC"),b("ImageI")],e.Resources=new W({Font:new W(this._fontResources),ExtGState:new W(this._gsResources),XObject:new W(this._xResources),Pattern:new W(this._patResources),Shading:new W(this._shResources)}),e.Annots=this._annotations},{_out:function(){this._content.data.apply(null,arguments)},transform:function(t,e,n,r,i,o){U(arguments)||(this._matrix=B(arguments,this._matrix),this._out(t," ",e," ",n," ",r," ",i," ",o," cm"),this._out(rt))},translate:function(t,e){this.transform(1,0,0,1,t,e)},scale:function(t,e){this.transform(t,0,0,e,0,0)},rotate:function(t){var e=Math.cos(t),n=Math.sin(t);this.transform(e,n,-n,e,0,0)},beginText:function(){this._textMode=!0,this._out("BT",rt)},endText:function(){this._textMode=!1,this._out("ET",rt)},_requireTextMode:function(){if(!this._textMode)throw Error("Text mode required; call page.beginText() first")},_requireFont:function(){if(!this._font)throw Error("No font selected; call page.setFont() first")},setFont:function(t,e){this._requireTextMode(),null==t?t=this._font:t instanceof $||(t=this._pdf.getFont(t)),null==e&&(e=this._fontSize),this._fontResources[t._resourceName]=t,this._font=t,this._fontSize=e,this._out(t._resourceName," ",e," Tf",rt)},setTextLeading:function(t){this._requireTextMode(),this._out(t," TL",rt)},setTextRenderingMode:function(t){this._requireTextMode(),this._out(t," Tr",rt)},showText:function(t,e){var n,r;this._requireFont(),t.length>1&&e&&this._font instanceof $&&(n=this._font.getTextWidth(this._fontSize,t),r=e/n*100,this._out(r," Tz ")),this._out(this._font.encodeText(t)," Tj",rt)},showTextNL:function(t){this._requireFont(),this._out(this._font.encodeText(t)," '",rt)},addLink:function(t,e){var n=this._toPage({x:e.left,y:e.bottom}),r=this._toPage({x:e.right,y:e.top});this._annotations.push(new W({Type:b("Annot"),Subtype:b("Link"),Rect:[n.x,n.y,r.x,r.y],Border:[0,0,0],A:new W({Type:b("Action"),S:b("URI"),URI:new j(t)})}))},setStrokeColor:function(t,e,n){this._out(t," ",e," ",n," RG",rt)},setOpacity:function(t){this.setFillOpacity(t),this.setStrokeOpacity(t),this._opacity*=t},setStrokeOpacity:function(t){if(t<1){var e=this._pdf.getOpacityGS(this._opacity*t,!0);this._gsResources[e._resourceName]=e,this._out(e._resourceName," gs",rt)}},setFillColor:function(t,e,n){this._out(t," ",e," ",n," rg",rt)},setFillOpacity:function(t){if(t<1){var e=this._pdf.getOpacityGS(this._opacity*t,!1);this._gsResources[e._resourceName]=e,this._out(e._resourceName," gs",rt)}},gradient:function(t,e){var n,r,i;this.save(),this.rect(e.left,e.top,e.width,e.height),this.clip(),t.userSpace||this.transform(e.width,0,0,e.height,e.left,e.top),n=O(this._pdf,t,e),r=n.shading._resourceName,this._shResources[r]=n.shading,n.hasAlpha&&(i=n.opacity._resourceName,this._gsResources[i]=n.opacity,this._out("/"+i+" gs ")),this._out("/"+r+" sh",rt),this.restore()},setDashPattern:function(t,e){this._out(t," ",e," d",rt)},setLineWidth:function(t){this._out(t," w",rt)},setLineCap:function(t){this._out(t," J",rt)},setLineJoin:function(t){this._out(t," j",rt)},setMitterLimit:function(t){this._out(t," M",rt)},save:function(){this._contextStack.push(this._context()),this._out("q",rt)},restore:function(){this._out("Q",rt),this._context(this._contextStack.pop())},moveTo:function(t,e){this._out(t," ",e," m",rt)},lineTo:function(t,e){this._out(t," ",e," l",rt)},bezier:function(t,e,n,r,i,o){this._out(t," ",e," ",n," ",r," ",i," ",o," c",rt)},bezier1:function(t,e,n,r){this._out(t," ",e," ",n," ",r," y",rt)},bezier2:function(t,e,n,r){this._out(t," ",e," ",n," ",r," v",rt)},close:function(){this._out("h",rt)},rect:function(t,e,n,r){this._out(t," ",e," ",n," ",r," re",rt)},ellipse:function(t,e,n,r){function i(e){return t+e}function o(t){return e+t}var a=.5522847498307936;this.moveTo(i(0),o(r)),this.bezier(i(n*a),o(r),i(n),o(r*a),i(n),o(0)),this.bezier(i(n),o(-r*a),i(n*a),o(-r),i(0),o(-r)),this.bezier(i(-n*a),o(-r),i(-n),o(-r*a),i(-n),o(0)),this.bezier(i(-n),o(r*a),i(-n*a),o(r),i(0),o(r))},circle:function(t,e,n){this.ellipse(t,e,n,n)},stroke:function(){this._out("S",rt)},nop:function(){this._out("n",rt)},clip:function(){this._out("W n",rt)},clipStroke:function(){this._out("W S",rt)},closeStroke:function(){this._out("s",rt)},fill:function(){this._out("f",rt)},fillStroke:function(){this._out("B",rt)},drawImage:function(t){var e=this._pdf.getImage(t);e&&(this._xResources[e._resourceName]=e,this._out(e._resourceName," Do",rt))},comment:function(t){var e=this;t.split(/\r?\n/g).forEach(function(t){e._out("% ",t,rt)})},_context:function(t){return null==t?{opacity:this._opacity,matrix:this._matrix}:(this._opacity=t.opacity,this._matrix=t.matrix,n)},_toPage:function(t){var e=this._matrix,n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5];return{x:n*t.x+i*t.y+a,y:r*t.x+o*t.y+s}}},W),tt={serif:"Times-Roman","serif|bold":"Times-Bold","serif|italic":"Times-Italic","serif|bold|italic":"Times-BoldItalic","sans-serif":"Helvetica","sans-serif|bold":"Helvetica-Bold","sans-serif|italic":"Helvetica-Oblique","sans-serif|bold|italic":"Helvetica-BoldOblique",monospace:"Courier","monospace|bold":"Courier-Bold","monospace|italic":"Courier-Oblique","monospace|bold|italic":"Courier-BoldOblique",zapfdingbats:"ZapfDingbats","zapfdingbats|bold":"ZapfDingbats","zapfdingbats|italic":"ZapfDingbats","zapfdingbats|bold|italic":"ZapfDingbats"},E("Times New Roman","serif"),E("Courier New","monospace"),E("Arial","sans-serif"),E("Helvetica","sans-serif"),E("Verdana","sans-serif"),E("Tahoma","sans-serif"),E("Georgia","sans-serif"),E("Monaco","monospace"),E("Andale Mono","monospace"),et.pdf={Document:a,BinaryStream:I,defineFont:G,parseFontDef:N,getFontURL:P,loadFonts:ct,loadImages:ut,getPaperOptions:o,TEXT_RENDERING_MODE:{fill:0,stroke:1,fillAndStroke:2,invisible:3,fillAndClip:4,strokeAndClip:5,fillStrokeClip:6,clip:7}}}(window,parseFloat)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("pdf/ttf.min",["pdf/core.min","util/main.min"],t)}(function(){!function(t){"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function n(t){return Object.keys(t).sort(function(t,e){return t-e}).map(parseFloat)}function r(t){var e,n,r;for(this.raw=t,this.scalerType=t.readLong(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),e=this.tables={},n=0;n<this.tableCount;++n)r={tag:t.readString(4),checksum:t.readLong(),offset:t.readLong(),length:t.readLong()},e[r.tag]=r}function i(t){function n(t,e){this.definition=e,this.length=e.length,this.offset=e.offset,this.file=t,this.rawData=t.raw,this.parse(t.raw)}n.prototype.raw=function(){return this.rawData.slice(this.offset,this.length)};for(var r in t)e(t,r)&&(n[r]=n.prototype[r]=t[r]);return n}function o(){var t,e="",n=w+"";for(t=0;t<n.length;++t)e+=String.fromCharCode(n.charCodeAt(t)-48+65);return++w,e}function a(t){this.font=t,this.subset={},this.unicodes={},this.ogid2ngid={0:0},this.ngid2ogid={0:0},this.ncid2ogid={},this.next=this.firstChar=1,this.nextGid=1,this.psName=o()+"+"+this.font.psName}function s(t,e){var n,r,i,o=this,a=o.contents=v(t);if("ttcf"==a.readString(4)){if(!e)throw Error("Must specify a name for TTC files");for(a.readLong(),n=a.readLong(),r=0;r<n;++r)if(i=a.readLong(),a.saveExcursion(function(){a.offset(i),o.parse()}),o.psName==e)return;throw Error("Font "+e+" not found in collection")}a.offset(0),o.parse()}var h,c,u,f,d,l,p,g,m,S,w,y=t.kendo.pdf,v=y.BinaryStream;r.prototype={readTable:function(t,e){var n=this.tables[t];if(!n)throw Error("Table "+t+" not found in directory");return this[t]=n.table=new e(this,n)},render:function(t){var n,r,i,o,a,s,h,c,u=Object.keys(t).length,f=Math.pow(2,Math.floor(Math.log(u)/Math.LN2)),d=16*f,l=Math.floor(Math.log(f)/Math.LN2),p=16*u-d,g=v();
g.writeLong(this.scalerType),g.writeShort(u),g.writeShort(d),g.writeShort(l),g.writeShort(p),n=16*u,r=g.offset()+n,i=null,o=v();for(a in t)if(e(t,a))for(s=t[a],g.writeString(a),g.writeLong(this.checksum(s)),g.writeLong(r),g.writeLong(s.length),o.write(s),"head"==a&&(i=r),r+=s.length;r%4;)o.writeByte(0),r++;return g.write(o.get()),h=this.checksum(g.get()),c=2981146554-h,g.offset(i+8),g.writeLong(c),g.get()},checksum:function(t){t=v(t);for(var e=0;!t.eof();)e+=t.readLong();return 4294967295&e}},h=i({parse:function(t){t.offset(this.offset),this.version=t.readLong(),this.revision=t.readLong(),this.checkSumAdjustment=t.readLong(),this.magicNumber=t.readLong(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.read(8),this.modified=t.read(8),this.xMin=t.readShort_(),this.yMin=t.readShort_(),this.xMax=t.readShort_(),this.yMax=t.readShort_(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort_(),this.indexToLocFormat=t.readShort_(),this.glyphDataFormat=t.readShort_()},render:function(t){var e=v();return e.writeLong(this.version),e.writeLong(this.revision),e.writeLong(0),e.writeLong(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.write(this.created),e.write(this.modified),e.writeShort_(this.xMin),e.writeShort_(this.yMin),e.writeShort_(this.xMax),e.writeShort_(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort_(this.fontDirectionHint),e.writeShort_(t),e.writeShort_(this.glyphDataFormat),e.get()}}),c=i({parse:function(t){t.offset(this.offset);var e=this.file.head.indexToLocFormat;this.offsets=0===e?t.times(this.length/2,function(){return 2*t.readShort()}):t.times(this.length/4,t.readLong)},offsetOf:function(t){return this.offsets[t]},lengthOf:function(t){return this.offsets[t+1]-this.offsets[t]},render:function(t){var e,n=v(),r=t[t.length-1]>65535;for(e=0;e<t.length;++e)r?n.writeLong(t[e]):n.writeShort(t[e]/2);return{format:r?1:0,table:n.get()}}}),u=i({parse:function(t){t.offset(this.offset),this.version=t.readLong(),this.ascent=t.readShort_(),this.descent=t.readShort_(),this.lineGap=t.readShort_(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort_(),this.minRightSideBearing=t.readShort_(),this.xMaxExtent=t.readShort_(),this.caretSlopeRise=t.readShort_(),this.caretSlopeRun=t.readShort_(),this.caretOffset=t.readShort_(),t.skip(8),this.metricDataFormat=t.readShort_(),this.numOfLongHorMetrics=t.readShort()},render:function(t){var e=v();return e.writeLong(this.version),e.writeShort_(this.ascent),e.writeShort_(this.descent),e.writeShort_(this.lineGap),e.writeShort(this.advanceWidthMax),e.writeShort_(this.minLeftSideBearing),e.writeShort_(this.minRightSideBearing),e.writeShort_(this.xMaxExtent),e.writeShort_(this.caretSlopeRise),e.writeShort_(this.caretSlopeRun),e.writeShort_(this.caretOffset),e.write([0,0,0,0,0,0,0,0]),e.writeShort_(this.metricDataFormat),e.writeShort(t.length),e.get()}}),f=i({parse:function(t){t.offset(this.offset),this.version=t.readLong(),this.numGlyphs=t.readShort(),this.maxPoints=t.readShort(),this.maxContours=t.readShort(),this.maxComponentPoints=t.readShort(),this.maxComponentContours=t.readShort(),this.maxZones=t.readShort(),this.maxTwilightPoints=t.readShort(),this.maxStorage=t.readShort(),this.maxFunctionDefs=t.readShort(),this.maxInstructionDefs=t.readShort(),this.maxStackElements=t.readShort(),this.maxSizeOfInstructions=t.readShort(),this.maxComponentElements=t.readShort(),this.maxComponentDepth=t.readShort()},render:function(t){var e=v();return e.writeLong(this.version),e.writeShort(t.length),e.writeShort(this.maxPoints),e.writeShort(this.maxContours),e.writeShort(this.maxComponentPoints),e.writeShort(this.maxComponentContours),e.writeShort(this.maxZones),e.writeShort(this.maxTwilightPoints),e.writeShort(this.maxStorage),e.writeShort(this.maxFunctionDefs),e.writeShort(this.maxInstructionDefs),e.writeShort(this.maxStackElements),e.writeShort(this.maxSizeOfInstructions),e.writeShort(this.maxComponentElements),e.writeShort(this.maxComponentDepth),e.get()}}),d=i({parse:function(t){var e,n,r;t.offset(this.offset),e=this.file,n=e.hhea,this.metrics=t.times(n.numOfLongHorMetrics,function(){return{advance:t.readShort(),lsb:t.readShort_()}}),r=e.maxp.numGlyphs-e.hhea.numOfLongHorMetrics,this.leftSideBearings=t.times(r,t.readShort_)},forGlyph:function(t){var e=this.metrics,n=e.length;return t<n?e[t]:{advance:e[n-1].advance,lsb:this.leftSideBearings[t-n]}},render:function(t){var e,n,r=v();for(e=0;e<t.length;++e)n=this.forGlyph(t[e]),r.writeShort(n.advance),r.writeShort_(n.lsb);return r.get()}}),l=function(){function t(t){this.raw=t}function n(t){var e,n,i;for(this.raw=t,e=this.glyphIds=[],n=this.idOffsets=[];;){if(i=t.readShort(),n.push(t.offset()),e.push(t.readShort()),!(i&a))break;t.skip(i&r?4:2),i&h?t.skip(8):i&s?t.skip(4):i&o&&t.skip(2)}}var r,o,a,s,h;return t.prototype={compound:!1,render:function(){return this.raw.get()}},r=1,o=8,a=32,s=64,h=128,n.prototype={compound:!0,render:function(t){var e,n,r=v(this.raw.get());for(e=0;e<this.glyphIds.length;++e)n=this.glyphIds[e],r.offset(this.idOffsets[e]),r.writeShort(t[n]);return r.get()}},i({parse:function(){this.cache={}},glyphFor:function(r){var i,o,a,s,h,c,u,f,d,l,p,g=this.cache;return e(g,r)?g[r]:(i=this.file.loca,o=i.lengthOf(r),0===o?g[r]=null:(a=this.rawData,s=this.offset+i.offsetOf(r),h=v(a.slice(s,o)),c=h.readShort_(),u=h.readShort_(),f=h.readShort_(),d=h.readShort_(),l=h.readShort_(),p=g[r]=c==-1?new n(h):new t(h),p.numberOfContours=c,p.xMin=u,p.yMin=f,p.xMax=d,p.yMax=l,p))},render:function(t,e,n){var r,i,o,a=v(),s=[];for(r=0;r<e.length;++r)i=e[r],o=t[i],s.push(a.offset()),o&&a.write(o.render(n));return s.push(a.offset()),{table:a.get(),offsets:s}}})}(),p=function(){function t(t,e){this.text=t,this.length=t.length,this.platformID=e.platformID,this.platformSpecificID=e.platformSpecificID,this.languageID=e.languageID,this.nameID=e.nameID}return i({parse:function(e){var n,r,i,o,a,s,h;for(e.offset(this.offset),e.readShort(),n=e.readShort(),r=this.offset+e.readShort(),i=e.times(n,function(){return{platformID:e.readShort(),platformSpecificID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:e.readShort()+r}}),o=this.strings={},a=0;a<i.length;++a)s=i[a],e.offset(s.offset),h=e.readString(s.length),o[s.nameID]||(o[s.nameID]=[]),o[s.nameID].push(new t(h,s));this.postscriptEntry=o[6][0],this.postscriptName=this.postscriptEntry.text.replace(/[^\x20-\x7F]/g,"")},render:function(n){var r,i,o,a,s,h,c=this.strings,u=0;for(r in c)e(c,r)&&(u+=c[r].length);i=v(),o=v(),i.writeShort(0),i.writeShort(u),i.writeShort(6+12*u);for(r in c)if(e(c,r))for(a=6==r?[new t(n,this.postscriptEntry)]:c[r],s=0;s<a.length;++s)h=a[s],i.writeShort(h.platformID),i.writeShort(h.platformSpecificID),i.writeShort(h.languageID),i.writeShort(h.nameID),i.writeShort(h.length),i.writeShort(o.offset()),o.writeString(h.text);return i.write(o.get()),i.get()}})}(),g=function(){var t=".notdef .null nonmarkingreturn space exclam quotedbl numbersign dollar percent ampersand quotesingle parenleft parenright asterisk plus comma hyphen period slash zero one two three four five six seven eight nine colon semicolon less equal greater question at A B C D E F G H I J K L M N O P Q R S T U V W X Y Z bracketleft backslash bracketright asciicircum underscore grave a b c d e f g h i j k l m n o p q r s t u v w x y z braceleft bar braceright asciitilde Adieresis Aring Ccedilla Eacute Ntilde Odieresis Udieresis aacute agrave acircumflex adieresis atilde aring ccedilla eacute egrave ecircumflex edieresis iacute igrave icircumflex idieresis ntilde oacute ograve ocircumflex odieresis otilde uacute ugrave ucircumflex udieresis dagger degree cent sterling section bullet paragraph germandbls registered copyright trademark acute dieresis notequal AE Oslash infinity plusminus lessequal greaterequal yen mu partialdiff summation product pi integral ordfeminine ordmasculine Omega ae oslash questiondown exclamdown logicalnot radical florin approxequal Delta guillemotleft guillemotright ellipsis nonbreakingspace Agrave Atilde Otilde OE oe endash emdash quotedblleft quotedblright quoteleft quoteright divide lozenge ydieresis Ydieresis fraction currency guilsinglleft guilsinglright fi fl daggerdbl periodcentered quotesinglbase quotedblbase perthousand Acircumflex Ecircumflex Aacute Edieresis Egrave Iacute Icircumflex Idieresis Igrave Oacute Ocircumflex apple Ograve Uacute Ucircumflex Ugrave dotlessi circumflex tilde macron breve dotaccent ring cedilla hungarumlaut ogonek caron Lslash lslash Scaron scaron Zcaron zcaron brokenbar Eth eth Yacute yacute Thorn thorn minus multiply onesuperior twosuperior threesuperior onehalf onequarter threequarters franc Gbreve gbreve Idotaccent Scedilla scedilla Cacute cacute Ccaron ccaron dcroat".split(/\s+/g);return i({parse:function(t){var e,n;switch(t.offset(this.offset),this.format=t.readLong(),this.italicAngle=t.readFixed_(),this.underlinePosition=t.readShort_(),this.underlineThickness=t.readShort_(),this.isFixedPitch=t.readLong(),this.minMemType42=t.readLong(),this.maxMemType42=t.readLong(),this.minMemType1=t.readLong(),this.maxMemType1=t.readLong(),this.format){case 65536:case 196608:break;case 131072:for(e=t.readShort(),this.glyphNameIndex=t.times(e,t.readShort),this.names=[],n=this.offset+this.length;t.offset()<n;)this.names.push(t.readString(t.readByte()));break;case 151552:e=t.readShort(),this.offsets=t.read(e);break;case 262144:this.map=t.times(this.file.maxp.numGlyphs,t.readShort)}},glyphFor:function(e){switch(this.format){case 65536:return t[e]||".notdef";case 131072:var n=this.glyphNameIndex[e];return n<t.length?t[n]:this.names[n-t.length]||".notdef";case 151552:case 196608:return".notdef";case 262144:return this.map[e]||65535}},render:function(e){var n,r,i,o,a,s,h;if(196608==this.format)return this.raw();for(n=v(this.rawData.slice(this.offset,32)),n.writeLong(131072),n.offset(32),r=[],i=[],o=0;o<e.length;++o)a=e[o],s=this.glyphFor(a),h=t.indexOf(s),h>=0?r.push(h):(r.push(t.length+i.length),i.push(s));for(n.writeShort(e.length),o=0;o<r.length;++o)n.writeShort(r[o]);for(o=0;o<i.length;++o)n.writeByte(i[o].length),n.writeString(i[o]);return n.get()}})}(),m=function(){function e(e,n,r){var i=this;i.platformID=e.readShort(),i.platformSpecificID=e.readShort(),i.offset=n+e.readLong(),e.saveExcursion(function(){var n,o,a,s,h,c,u,f,d,l,p,g,m,S,w,y,v;switch(e.offset(i.offset),i.format=e.readShort()){case 0:for(i.length=e.readShort(),i.language=e.readShort(),o=0;o<256;++o)r[o]=e.readByte();break;case 4:for(i.length=e.readShort(),i.language=e.readShort(),a=e.readShort()/2,e.skip(6),s=e.times(a,e.readShort),e.skip(2),h=e.times(a,e.readShort),c=e.times(a,e.readShort_),u=e.times(a,e.readShort),f=(i.length+i.offset-e.offset())/2,d=e.times(f,e.readShort),o=0;o<a;++o)for(l=h[o],p=s[o],n=l;n<=p;++n)0===u[o]?g=n+c[o]:(m=u[o]/2-(a-o)+(n-l),g=d[m]||0,0!==g&&(g+=c[o])),r[n]=65535&g;break;case 6:for(i.length=e.readShort(),i.language=e.readShort(),n=e.readShort(),S=e.readShort();S-- >0;)r[n++]=e.readShort();break;case 12:for(e.readShort(),i.length=e.readLong(),i.language=e.readLong(),w=e.readLong();w-- >0;)for(n=e.readLong(),y=e.readLong(),v=e.readLong();n<=y;)r[n++]=v++;break;default:t.console&&t.console.error("Unhandled CMAP format: "+i.format)}})}function r(t,e){function r(n){return e[t[n]]}var i,o,a,s,h,c,u,f,d,l,p,g,m,S,w,y,x,_=n(t),b=[],C=[],T=null,D=null;for(i=0;i<_.length;++i)o=_[i],a=r(o),s=a-o,null!=T&&s===D||(T&&C.push(T),b.push(o),D=s),T=o;for(T&&C.push(T),C.push(65535),b.push(65535),h=b.length,c=2*h,u=2*Math.pow(2,Math.floor(Math.log(h)/Math.LN2)),f=Math.log(u/2)/Math.LN2,d=c-u,l=[],p=[],g=[],i=0;i<h;++i){if(m=b[i],S=C[i],65535==m){l.push(0),p.push(0);break}if(w=r(m),m-w>=32768)for(l.push(0),p.push(2*(g.length+h-i)),y=m;y<=S;++y)g.push(r(y));else l.push(w-m),p.push(0)}return x=v(),x.writeShort(3),x.writeShort(1),x.writeLong(12),x.writeShort(4),x.writeShort(16+8*h+2*g.length),x.writeShort(0),x.writeShort(c),x.writeShort(u),x.writeShort(f),x.writeShort(d),C.forEach(x.writeShort),x.writeShort(0),b.forEach(x.writeShort),l.forEach(x.writeShort_),p.forEach(x.writeShort),g.forEach(x.writeShort),x.get()}return i({parse:function(t){var n,r=this,i=r.offset;t.offset(i),r.codeMap={},r.version=t.readShort(),n=t.readShort(),r.tables=t.times(n,function(){return new e(t,i,r.codeMap)})},render:function(t,e){var n=v();return n.writeShort(0),n.writeShort(1),n.write(r(t,e)),n.get()}})}(),S=i({parse:function(t){t.offset(this.offset),this.version=t.readShort(),this.averageCharWidth=t.readShort_(),this.weightClass=t.readShort(),this.widthClass=t.readShort(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort_(),this.ySubscriptYSize=t.readShort_(),this.ySubscriptXOffset=t.readShort_(),this.ySubscriptYOffset=t.readShort_(),this.ySuperscriptXSize=t.readShort_(),this.ySuperscriptYSize=t.readShort_(),this.ySuperscriptXOffset=t.readShort_(),this.ySuperscriptYOffset=t.readShort_(),this.yStrikeoutSize=t.readShort_(),this.yStrikeoutPosition=t.readShort_(),this.familyClass=t.readShort_(),this.panose=t.times(10,t.readByte),this.charRange=t.times(4,t.readLong),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort_(),this.descent=t.readShort_(),this.lineGap=t.readShort_(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=t.times(2,t.readLong),this.version>1&&(this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()))},render:function(){return this.raw()}}),w=1e5,a.prototype={use:function(t){var e,n,r,i=this;return"string"==typeof t?kendo.util.ucs2decode(t).reduce(function(t,e){return t+String.fromCharCode(i.use(e))},""):(e=i.unicodes[t],e||(e=i.next++,i.subset[e]=t,i.unicodes[t]=e,n=i.font.cmap.codeMap[t],n&&(i.ncid2ogid[e]=n,null==i.ogid2ngid[n]&&(r=i.nextGid++,i.ogid2ngid[n]=r,i.ngid2ogid[r]=n))),e)},encodeText:function(t){return this.use(t)},glyphIds:function(){return n(this.ogid2ngid)},glyphsFor:function(t,e){var n,r,i;for(e||(e={}),n=0;n<t.length;++n)r=t[n],e[r]||(i=e[r]=this.font.glyf.glyphFor(r),i&&i.compound&&this.glyphsFor(i.glyphIds,e));return e},render:function(){var t,r,i,o,a,s,h,c,u=this.glyphsFor(this.glyphIds());for(t in u)e(u,t)&&(t=parseInt(t,10),null==this.ogid2ngid[t]&&(r=this.nextGid++,this.ogid2ngid[t]=r,this.ngid2ogid[r]=t));return i=n(this.ngid2ogid),o=i.map(function(t){return this.ngid2ogid[t]},this),a=this.font,s=a.glyf.render(u,o,this.ogid2ngid),h=a.loca.render(s.offsets),this.lastChar=this.next-1,c={cmap:m.render(this.ncid2ogid,this.ogid2ngid),glyf:s.table,loca:h.table,hmtx:a.hmtx.render(o),hhea:a.hhea.render(o),maxp:a.maxp.render(o),post:a.post.render(o),name:a.name.render(this.psName),head:a.head.render(h.format),"OS/2":a.os2.render()},this.font.directory.render(c)},cidToGidMap:function(){var t,e,n,r=v(),i=0;for(t=this.firstChar;t<this.next;++t){for(;i<t;)r.writeShort(0),i++;e=this.ncid2ogid[t],e?(n=this.ogid2ngid[e],r.writeShort(n)):r.writeShort(0),i++}return r.get()}},s.prototype={parse:function(){var t=this.directory=new r(this.contents);this.head=t.readTable("head",h),this.loca=t.readTable("loca",c),this.hhea=t.readTable("hhea",u),this.maxp=t.readTable("maxp",f),this.hmtx=t.readTable("hmtx",d),this.glyf=t.readTable("glyf",l),this.name=t.readTable("name",p),this.post=t.readTable("post",g),this.cmap=t.readTable("cmap",m),this.os2=t.readTable("OS/2",S),this.psName=this.name.postscriptName,this.ascent=this.os2.ascent||this.hhea.ascent,this.descent=this.os2.descent||this.hhea.descent,this.lineGap=this.os2.lineGap||this.hhea.lineGap,this.scale=1e3/this.head.unitsPerEm},widthOfGlyph:function(t){return this.hmtx.forGlyph(t).advance*this.scale},makeSubset:function(){return new a(this)}},y.TTFFont=s}(window)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("util/text-metrics.min",["kendo.core.min","util/main.min"],t)}(function(){!function(t){function e(){return{width:0,height:0,baseline:0}}function n(t,e,n){return f.current.measure(t,e,n)}function r(t,e){var n=[];if(t.length>0&&document.fonts){try{n=t.map(function(t){return document.fonts.load(t)})}catch(r){o.logToConsole(r)}Promise.all(n).then(e,e)}else e()}var i=document,o=window.kendo,a=o.Class,s=o.util,h=s.defined,c=a.extend({init:function(t){this._size=t,this._length=0,this._map={}},put:function(t,e){var n=this,r=n._map,i={key:t,value:e};r[t]=i,n._head?(n._tail.newer=i,i.older=n._tail,n._tail=i):n._head=n._tail=i,n._length>=n._size?(r[n._head.key]=null,n._head=n._head.newer,n._head.older=null):n._length++},get:function(t){var e=this,n=e._map[t];if(n)return n===e._head&&n!==e._tail&&(e._head=n.newer,e._head.older=null),n!==e._tail&&(n.older&&(n.older.newer=n.newer,n.newer.older=n.older),n.older=e._tail,n.newer=null,e._tail.newer=n,e._tail=n),n.value}}),u=t("<div style='position: absolute !important; top: -4000px !important; width: auto !important; height: auto !important;padding: 0 !important; margin: 0 !important; border: 0 !important;line-height: normal !important; visibility: hidden !important; white-space: nowrap!important;' />")[0],f=a.extend({init:function(t){this._cache=new c(1e3),this._initOptions(t)},options:{baselineMarkerSize:1},measure:function(n,r,o){var a,c,f,d,l,p,g,m;if(!n)return e();if(a=s.objectKey(r),c=s.hashKey(n+a),f=this._cache.get(c),f)return f;d=e(),l=o?o:u,p=this._baselineMarker().cloneNode(!1);for(g in r)m=r[g],h(m)&&(l.style[g]=m);return t(l).text(n),l.appendChild(p),i.body.appendChild(l),(n+"").length&&(d.width=l.offsetWidth-this.options.baselineMarkerSize,d.height=l.offsetHeight,d.baseline=p.offsetTop+this.options.baselineMarkerSize),d.width>0&&d.height>0&&this._cache.put(c,d),l.parentNode.removeChild(l),d},_baselineMarker:function(){return t("<div class='k-baseline-marker' style='display: inline-block; vertical-align: baseline;width: "+this.options.baselineMarkerSize+"px; height: "+this.options.baselineMarkerSize+"px;overflow: hidden;' />")[0]}});f.current=new f,o.util.TextMetrics=f,o.util.LRUCache=c,o.util.loadFonts=r,o.util.measureText=n}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("util/base64.min",["util/main.min"],t)}(function(){return function(){function t(t){var n,r,i,a,s,h,c,u="",f=0;for(t=e(t);f<t.length;)n=t.charCodeAt(f++),r=t.charCodeAt(f++),i=t.charCodeAt(f++),a=n>>2,s=(3&n)<<4|r>>4,h=(15&r)<<2|i>>6,c=63&i,isNaN(r)?h=c=64:isNaN(i)&&(c=64),u=u+o.charAt(a)+o.charAt(s)+o.charAt(h)+o.charAt(c);return u}function e(t){var e,n,r="";for(e=0;e<t.length;e++)n=t.charCodeAt(e),n<128?r+=i(n):n<2048?(r+=i(192|n>>>6),r+=i(128|63&n)):n<65536&&(r+=i(224|n>>>12),r+=i(128|n>>>6&63),r+=i(128|63&n));return r}var n=window.kendo,r=n.deepExtend,i=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r(n.util,{encodeBase64:t,encodeUTF8:e})}(),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("mixins/observers.min",["kendo.core.min"],t)}(function(){return function(t){var e=Math,n=window.kendo,r=n.deepExtend,i=t.inArray,o={observers:function(){return this._observers=this._observers||[]},addObserver:function(t){return this._observers?this._observers.push(t):this._observers=[t],this},removeObserver:function(t){var e=this.observers(),n=i(t,e);return n!=-1&&e.splice(n,1),this},trigger:function(t,e){var n,r,i=this._observers;if(i&&!this._suspended)for(r=0;r<i.length;r++)n=i[r],n[t]&&n[t](e);return this},optionsChange:function(t){t=t||{},t.element=this,this.trigger("optionsChange",t)},geometryChange:function(){this.trigger("geometryChange",{element:this})},suspend:function(){return this._suspended=(this._suspended||0)+1,this},resume:function(){return this._suspended=e.max((this._suspended||0)-1,0),this},_observerField:function(t,e){this[t]&&this[t].removeObserver(this),this[t]=e,e.addObserver(this)}};r(n,{mixins:{ObserversMixin:o}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("pdf/drawing.min",["kendo.core.min","kendo.color.min","kendo.drawing.min","pdf/core.min"],t)}(function(){!function(t,e){"use strict";function n(e,n){function r(t,e,n){return n||(n=u),n.pdf&&null!=n.pdf[t]?n.pdf[t]:e}function i(){function i(t){var e,n,i,o,h,c=t.options,u=D(t),f=u.bbox;t=u.root,e=r("paperSize",r("paperSize","auto"),c),n=!1,"auto"==e&&(f?(i=f.getSize(),e=[i.width,i.height],n=!0,o=f.getOrigin(),u=new k.Group,u.transform(new F.Matrix(1,0,0,1,(-o.x),(-o.y))),u.append(t),t=u):e="A4"),h=a.addPage({paperSize:e,margin:r("margin",r("margin"),c),addMargin:n,landscape:r("landscape",r("landscape",!1),c)}),s(t,h,a)}if(!(--o>0)){var a=new t.pdf.Document({producer:r("producer"),title:r("title"),author:r("author"),subject:r("subject"),keywords:r("keywords"),creator:r("creator"),date:r("date")});f?e.children.forEach(i):i(e),n(a.render(),a)}}var o,h=[],c=[],u=e.options,f=r("multiPage");e.traverse(function(e){a({Image:function(t){c.indexOf(t.src())<0&&c.push(t.src())},Text:function(e){var n=t.pdf.parseFontDef(e.options.font),r=t.pdf.getFontURL(n);h.indexOf(r)<0&&h.push(r)}},e)}),o=2,t.pdf.loadFonts(h,i),t.pdf.loadImages(c,i)}function r(t,e){n(t,function(t){e("data:application/pdf;base64,"+t.base64())})}function i(t,e){n(t,function(t){e(new Blob([t.get()],{type:"application/pdf"}))})}function o(e,n,o,a){window.Blob&&!t.support.browser.safari?i(e,function(e){t.saveAs({dataURI:e,fileName:n}),a&&a(e)}):r(e,function(e){t.saveAs({dataURI:e,fileName:n,proxyURL:o}),a&&a(e)})}function a(t,e){var n=t[e.nodeType];return n?n.call.apply(n,arguments):e}function s(t,e,n){var r,i,o;t.options._pdfDebug&&e.comment("BEGIN: "+t.options._pdfDebug),r=t.transform(),i=t.opacity(),e.save(),null!=i&&i<1&&e.setOpacity(i),h(t,e,n),c(t,e,n),r&&(o=r.matrix(),e.transform(o.a,o.b,o.c,o.d,o.e,o.f)),u(t,e,n),a({Path:m,MultiPath:S,Circle:w,Arc:y,Text:v,Image:_,Group:x,Rect:b},t,e,n),e.restore(),t.options._pdfDebug&&e.comment("END: "+t.options._pdfDebug)}function h(t,e){var n,r,i,o,a,s,h=t.stroke&&t.stroke();if(h){if(n=h.color){if(n=T(n),null==n)return;e.setStrokeColor(n.r,n.g,n.b),1!=n.a&&e.setStrokeOpacity(n.a)}if(r=h.width,null!=r){if(0===r)return;e.setLineWidth(r)}i=h.dashType,i&&e.setDashPattern(M[i],0),o=h.lineCap,o&&e.setLineCap(L[o]),a=h.lineJoin,a&&e.setLineJoin(O[a]),s=h.opacity,null!=s&&e.setStrokeOpacity(s)}}function c(t,e){var n,r,i=t.fill&&t.fill();if(i&&!(i instanceof k.Gradient)){if(n=i.color){if(n=T(n),null==n)return;e.setFillColor(n.r,n.g,n.b),1!=n.a&&e.setFillOpacity(n.a)}r=i.opacity,null!=r&&e.setFillOpacity(r)}}function u(t,e,n){var r=t.clip();r&&(g(r,e,n),e.clip())}function f(t){return t&&(t instanceof k.Gradient||t.color&&!/^(none|transparent)$/i.test(t.color)&&(null==t.width||t.width>0)&&(null==t.opacity||t.opacity>0))}function d(t,e,n,r){var i,o,a,s,h,c,u,f,d=t.fill();if(d instanceof k.Gradient)return r?e.clipStroke():e.clip(),i=d instanceof k.RadialGradient,i?(o={x:d.center().x,y:d.center().y,r:0},a={x:d.center().x,y:d.center().y,r:d.radius()}):(o={x:d.start().x,y:d.start().y},a={x:d.end().x,y:d.end().y}),s=d.stops.elements().map(function(t){var e,n=t.offset();return n=/%$/.test(n)?parseFloat(n)/100:parseFloat(n),e=T(t.color()),e.a*=t.opacity(),{offset:n,color:e}}),s.unshift(s[0]),s.push(s[s.length-1]),h={userSpace:d.userSpace(),type:i?"radial":"linear",start:o,end:a,stops:s},c=t.rawBBox(),u=c.topLeft(),f=c.getSize(),c={left:u.x,top:u.y,width:f.width,height:f.height},e.gradient(h,c),!0}function l(t,e,n){f(t.fill())&&f(t.stroke())?d(t,e,n,!0)||e.fillStroke():f(t.fill())?d(t,e,n,!1)||e.fill():f(t.stroke())?e.stroke():e.nop()}function p(t,e){var n,r,i,o=t.segments;if(4==o.length&&t.options.closed){for(n=[],r=0;r<o.length;++r){if(o[r].controlIn())return!1;n[r]=o[r].anchor()}if(i=n[0].y==n[1].y&&n[1].x==n[2].x&&n[2].y==n[3].y&&n[3].x==n[0].x||n[0].x==n[1].x&&n[1].y==n[2].y&&n[2].x==n[3].x&&n[3].y==n[0].y)return e.rect(n[0].x,n[0].y,n[2].x-n[0].x,n[2].y-n[0].y),!0}}function g(t,e,n){var r,i,o,a,s,h,c=t.segments;if(0!==c.length&&!p(t,e,n)){for(i=0;i<c.length;++i)o=c[i],a=o.anchor(),r?(s=r.controlOut(),h=o.controlIn(),s&&h?e.bezier(s.x,s.y,h.x,h.y,a.x,a.y):e.lineTo(a.x,a.y)):e.moveTo(a.x,a.y),r=o;t.options.closed&&e.close()}}function m(t,e,n){g(t,e,n),l(t,e,n)}function S(t,e,n){var r,i=t.paths;for(r=0;r<i.length;++r)g(i[r],e,n);l(t,e,n)}function w(t,e,n){var r=t.geometry();e.circle(r.center.x,r.center.y,r.radius),l(t,e,n)}function y(t,e,n){var r,i=t.geometry().curvePoints();for(e.moveTo(i[0].x,i[0].y),r=1;r<i.length;)e.bezier(i[r].x,i[r++].y,i[r].x,i[r++].y,i[r].x,i[r++].y);l(t,e,n)}function v(e,n){var r,i=t.pdf.parseFontDef(e.options.font),o=e._position;e.fill()&&e.stroke()?r=A.fillAndStroke:e.fill()?r=A.fill:e.stroke()&&(r=A.stroke),n.transform(1,0,0,-1,o.x,o.y+i.fontSize),n.beginText(),n.setFont(t.pdf.getFontURL(i),i.fontSize),n.setTextRenderingMode(r),n.showText(e.content(),e._pdfRect?e._pdfRect.width():null),n.endText()}function x(t,e,n){var r,i;for(t._pdfLink&&e.addLink(t._pdfLink.url,t._pdfLink),r=t.children,i=0;i<r.length;++i)s(r[i],e,n)}function _(t,e){var n,r,i,o=t.src();o&&(n=t.rect(),r=n.getOrigin(),i=n.getSize(),e.transform(i.width,0,0,-i.height,r.x,r.y+i.height),e.drawImage(o))}function b(t,e,n){var r=t.geometry();e.rect(r.origin.x,r.origin.y,r.size.width,r.size.height),l(t,e,n)}function C(t,n){var r,i=e.Deferred();for(r in n)"margin"==r&&t.options.pdf&&t.options.pdf._ignoreMargin||t.options.set("pdf."+r,n[r]);return k.pdf.toDataURL(t,i.resolve),i.promise()}function T(e){var n=t.parseColor(e,!0);return n?n.toRGB():null}function D(t){function e(t){return h=!0,t}function n(t){return t.visible()&&t.opacity()>0&&(f(t.fill())||f(t.stroke()))}function r(t){var e,n,r=[];for(e=0;e<t.length;++e)n=s(t[e]),null!=n&&r.push(n);return r}function i(t,e){var n,r=c,i=u;t.transform()&&(u=u.multiplyCopy(t.transform().matrix())),n=t.clip(),n&&(n=n.bbox(),n&&(n=n.bbox(u),c=c?F.Rect.intersect(c,n):n));try{return e()}finally{c=r,u=i}}function o(t){if(null==c)return!1;var e=t.rawBBox().bbox(u);return c&&e&&(e=F.Rect.intersect(e,c)),e}function s(s){return i(s,function(){if(!(s instanceof k.Group||s instanceof k.MultiPath)){var i=o(s);if(!i)return e(null);d=d?F.Rect.union(d,i):i}return a({Path:function(t){return 0!==t.segments.length&&n(t)?t:e(null)},MultiPath:function(t){if(!n(t))return e(null);var i=new k.MultiPath(t.options);return i.paths=r(t.paths),0===i.paths.length?e(null):i},Circle:function(t){return n(t)?t:e(null)},Arc:function(t){return n(t)?t:e(null)},Text:function(t){return/\S/.test(t.content())&&n(t)?t:e(null)},Image:function(t){return t.visible()&&t.opacity()>0?t:e(null)},Group:function(n){var i=new k.Group(n.options);return i.children=r(n.children),i._pdfLink=n._pdfLink,n===t||0!==i.children.length||n._pdfLink?i:e(null)},Rect:function(t){return n(t)?t:e(null)}},s)})}var h,c=!1,u=F.Matrix.unit(),d=null;do h=!1,t=s(t);while(t&&h);return{root:t,bbox:d}}var k=t.drawing,F=t.geometry,A=t.pdf.TEXT_RENDERING_MODE,M={dash:[4],dashDot:[4,2,1,2],dot:[1,2],longDash:[8,2],longDashDot:[8,2,1,2],longDashDotDot:[8,2,1,2,1,2],solid:[]},L={butt:0,round:1,square:2},O={miter:0,round:1,bevel:2};t.deepExtend(k,{exportPDF:C,pdf:{toDataURL:r,toBlob:i,saveAs:o,toStream:n}})}(window.kendo,window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()}),function(t,define){define("kendo.pdf.min",["kendo.core.min","pdf/core.min","pdf/ttf.min","pdf/drawing.min","kendo.drawing.min"],t)}(function(){return function(t,e){t.PDFMixin={extend:function(t){t.events.push("pdfExport"),t.options.pdf=this.options,t.saveAsPDF=this.saveAsPDF,t._drawPDF=this._drawPDF,t._drawPDFShadow=this._drawPDFShadow},options:{fileName:"Export.pdf",proxyURL:"",paperSize:"auto",allPages:!1,landscape:!1,margin:null,title:null,author:null,subject:null,keywords:null,creator:"Kendo UI PDF Generator v."+t.version,date:null},saveAsPDF:function(){var n,r=new e.Deferred,i=r.promise(),o={promise:i};if(!this.trigger("pdfExport",o))return n=this.options.pdf,n.multiPage=n.multiPage||n.allPages,this._drawPDF(r).then(function(e){return t.drawing.exportPDF(e,n)}).done(function(e){t.saveAs({dataURI:e,fileName:n.fileName,proxyURL:n.proxyURL,forceProxy:n.forceProxy,proxyTarget:n.proxyTarget}),r.resolve()}).fail(function(t){r.reject(t)}),i},_drawPDF:function(n){var r=new e.Deferred;return t.drawing.drawDOM(this.wrapper).done(function(t){var e={page:t,pageNumber:1,progress:1,totalPages:1};n.notify(e),r.resolve(e.page)}).fail(function(t){r.reject(t)}),r},_drawPDFShadow:function(n,r){var i,o,a;return n=n||{},i=this.wrapper,o=e("<div class='k-pdf-export-shadow'>"),n.width&&o.css({width:n.width,overflow:"visible"}),i.before(o),o.append(n.content||i.clone(!0,!0)),a=e.Deferred(),setTimeout(function(){var e=t.drawing.drawDOM(o,r);e.always(function(){o.remove()}).then(function(){a.resolve.apply(a,arguments)}).fail(function(){a.reject.apply(a,arguments)}).progress(function(){a.progress.apply(a,arguments)})},15),a.promise()}}}(kendo,window.kendo.jQuery),kendo},"function"==typeof define&&define.amd?define:function(t,e,n){(n||e)()});
//# sourceMappingURL=kendo.pdf.min.js.map
