"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[492],{9492:function(t,e,r){r.d(e,{G:function(){return oU}});var o,n,i,a,s,h,c,p,u,l,f,d,g,y,m,v,w,b=function(){};function x(t){return void 0!==t}var _=Math.PI/180,S=Number.MAX_VALUE,C=-Number.MAX_VALUE;function k(t,e){var r=e?Math.pow(10,e):1;return Math.round(t*r)/r}var O=function(t){function e(e,r,o,n,i,a){void 0===e&&(e=0),void 0===r&&(r=0),void 0===o&&(o=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===a&&(a=0),t.call(this),this.a=e,this.b=r,this.c=o,this.d=n,this.e=i,this.f=a}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.multiplyCopy=function(t){return new e(this.a*t.a+this.c*t.b,this.b*t.a+this.d*t.b,this.a*t.c+this.c*t.d,this.b*t.c+this.d*t.d,this.a*t.e+this.c*t.f+this.e,this.b*t.e+this.d*t.f+this.f)},e.prototype.invert=function(){var t=this.a,r=this.b,o=this.c,n=this.d,i=this.e,a=this.f,s=t*n-r*o;return 0===s?null:new e(n/s,-r/s,-o/s,t/s,(o*a-n*i)/s,(r*i-t*a)/s)},e.prototype.clone=function(){return new e(this.a,this.b,this.c,this.d,this.e,this.f)},e.prototype.equals=function(t){return!!t&&this.a===t.a&&this.b===t.b&&this.c===t.c&&this.d===t.d&&this.e===t.e&&this.f===t.f},e.prototype.round=function(t){return this.a=k(this.a,t),this.b=k(this.b,t),this.c=k(this.c,t),this.d=k(this.d,t),this.e=k(this.e,t),this.f=k(this.f,t),this},e.prototype.toArray=function(t){var e=[this.a,this.b,this.c,this.d,this.e,this.f];if(x(t))for(var r=0;r<e.length;r++)e[r]=k(e[r],t);return e},e.prototype.toString=function(t,e){return void 0===e&&(e=","),this.toArray(t).join(e)},e.translate=function(t,r){return new e(1,0,0,1,t,r)},e.unit=function(){return new e(1,0,0,1,0,0)},e.rotate=function(t,r,o){var n=new e;return n.a=Math.cos(t*_),n.b=Math.sin(t*_),n.c=-n.b,n.d=n.a,n.e=r-r*n.a+o*n.b||0,n.f=o-o*n.a-r*n.b||0,n},e.scale=function(t,r){return new e(t,0,0,r,0,0)},e}(b);O.IDENTITY=O.unit();var T=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.observers=function(){return this._observers=this._observers||[],this._observers},e.prototype.addObserver=function(t){return this._observers?this._observers.push(t):this._observers=[t],this},e.prototype.removeObserver=function(t){var e=this.observers(),r=e.indexOf(t);return -1!==r&&e.splice(r,1),this},e.prototype.trigger=function(t,e){var r=this._observers;if(r&&!this._suspended)for(var o=0;o<r.length;o++){var n=r[o];n[t]&&n[t](e)}return this},e.prototype.optionsChange=function(t){void 0===t&&(t={}),t.element=this,this.trigger("optionsChange",t)},e.prototype.geometryChange=function(){this.trigger("geometryChange",{element:this})},e.prototype.suspend=function(){return this._suspended=(this._suspended||0)+1,this},e.prototype.resume=function(){return this._suspended=Math.max((this._suspended||0)-1,0),this},e.prototype._observerField=function(t,e){this[t]&&this[t].removeObserver(this),this[t]=e,e.addObserver(this)},e}(b),M=function(t,e){var r=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(t);return!function(t,e){for(var r=0;r<e.length;r++){var o=e[r],n=o.charAt(0).toUpperCase()+o.substring(1,o.length);t["set"+n]=function(t){return function(e){return this[t]!==e&&(this[t]=e,this.geometryChange()),this}}(o),t["get"+n]=function(t){return function(){return this[t]}}(o)}}(r.prototype,e),r};function A(t){return t&&"function"==typeof t.matrix?t.matrix():t}var P=function(t){function e(e,r){t.call(this),this.x=e||0,this.y=r||0}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={ZERO:{configurable:!0}};return e.prototype.equals=function(t){return t&&t.x===this.x&&t.y===this.y},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.rotate=function(t,r){var o=e.create(r)||e.ZERO;return this.transform(O.rotate(t,o.x,o.y))},e.prototype.translate=function(t,e){return this.x+=t,this.y+=e,this.geometryChange(),this},e.prototype.translateWith=function(t){return this.translate(t.x,t.y)},e.prototype.move=function(t,e){return this.x=this.y=0,this.translate(t,e)},e.prototype.scale=function(t,e){return void 0===e&&(e=t),this.x*=t,this.y*=e,this.geometryChange(),this},e.prototype.scaleCopy=function(t,e){return this.clone().scale(t,e)},e.prototype.transform=function(t){var e=A(t),r=this.x,o=this.y;return this.x=e.a*r+e.c*o+e.e,this.y=e.b*r+e.d*o+e.f,this.geometryChange(),this},e.prototype.transformCopy=function(t){var e=this.clone();return t&&e.transform(t),e},e.prototype.distanceTo=function(t){var e=this.x-t.x,r=this.y-t.y;return Math.sqrt(e*e+r*r)},e.prototype.round=function(t){return this.x=k(this.x,t),this.y=k(this.y,t),this.geometryChange(),this},e.prototype.toArray=function(t){var e=x(t);return[e?k(this.x,t):this.x,e?k(this.y,t):this.y]},e.prototype.toString=function(t,e){void 0===e&&(e=" ");var r=this.x,o=this.y;return x(t)&&(r=k(r,t),o=k(o,t)),r+e+o},e.create=function(t,r){if(x(t))return t instanceof e?t:1==arguments.length&&2===t.length?new e(t[0],t[1]):new e(t,r)},e.min=function(){for(var t=arguments,r=S,o=S,n=0;n<arguments.length;n++){var i=t[n];r=Math.min(i.x,r),o=Math.min(i.y,o)}return new e(r,o)},e.max=function(){for(var t=arguments,r=C,o=C,n=0;n<arguments.length;n++){var i=t[n];r=Math.max(i.x,r),o=Math.max(i.y,o)}return new e(r,o)},e.minPoint=function(){return new e(C,C)},e.maxPoint=function(){return new e(S,S)},r.ZERO.get=function(){return new e(0,0)},Object.defineProperties(e,r),e}(M(T,["x","y"])),R=function(t){function e(e,r){t.call(this),this.width=e||0,this.height=r||0}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={ZERO:{configurable:!0}};return e.prototype.equals=function(t){return t&&t.width===this.width&&t.height===this.height},e.prototype.clone=function(){return new e(this.width,this.height)},e.prototype.toArray=function(t){var e=x(t);return[e?k(this.width,t):this.width,e?k(this.height,t):this.height]},e.create=function(t,r){if(x(t))return t instanceof e?t:1==arguments.length&&2===t.length?new e(t[0],t[1]):new e(t,r)},r.ZERO.get=function(){return new e(0,0)},Object.defineProperties(e,r),e}(M(T,["width","height"])),F=function(t){function e(e,r,o){void 0===e&&(e=new P),void 0===r&&(r=new R),void 0===o&&(o=0),t.call(this),this.setOrigin(e),this.setSize(r),this.setCornerRadius(o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.origin.clone(),this.size.clone())},e.prototype.equals=function(t){return t&&t.origin.equals(this.origin)&&t.size.equals(this.size)},e.prototype.setOrigin=function(t){return this._observerField("origin",P.create(t)),this.geometryChange(),this},e.prototype.getOrigin=function(){return this.origin},e.prototype.setCornerRadius=function(t){return this.cornerRadius=Array.isArray(t)?t:[t,t],this.geometryChange(),this},e.prototype.getCornerRadius=function(){return this.cornerRadius},e.prototype.setSize=function(t){return this._observerField("size",R.create(t)),this.geometryChange(),this},e.prototype.getSize=function(){return this.size},e.prototype.width=function(){return this.size.width},e.prototype.height=function(){return this.size.height},e.prototype.topLeft=function(){return this.origin.clone()},e.prototype.bottomRight=function(){return this.origin.clone().translate(this.width(),this.height())},e.prototype.topRight=function(){return this.origin.clone().translate(this.width(),0)},e.prototype.bottomLeft=function(){return this.origin.clone().translate(0,this.height())},e.prototype.center=function(){return this.origin.clone().translate(this.width()/2,this.height()/2)},e.prototype.bbox=function(t){var r=this.topLeft().transformCopy(t),o=this.topRight().transformCopy(t),n=this.bottomRight().transformCopy(t),i=this.bottomLeft().transformCopy(t);return e.fromPoints(r,o,n,i)},e.prototype.transformCopy=function(t){return e.fromPoints(this.topLeft().transform(t),this.bottomRight().transform(t))},e.prototype.expand=function(t,e){return void 0===e&&(e=t),this.size.width+=2*t,this.size.height+=2*e,this.origin.translate(-t,-e),this},e.prototype.expandCopy=function(t,e){return this.clone().expand(t,e)},e.prototype.containsPoint=function(t){var e=this.origin,r=this.bottomRight();return!(t.x<e.x||t.y<e.y||r.x<t.x||r.y<t.y)},e.prototype._isOnPath=function(t,e){var r=this.expandCopy(e,e),o=this.expandCopy(-e,-e);return r.containsPoint(t)&&!o.containsPoint(t)},e.fromPoints=function(){var t=P.min.apply(null,arguments),r=P.max.apply(null,arguments),o=new R(r.x-t.x,r.y-t.y);return new e(t,o)},e.union=function(t,r){return e.fromPoints(P.min(t.topLeft(),r.topLeft()),P.max(t.bottomRight(),r.bottomRight()))},e.intersect=function(t,r){var o={left:t.topLeft().x,top:t.topLeft().y,right:t.bottomRight().x,bottom:t.bottomRight().y},n={left:r.topLeft().x,top:r.topLeft().y,right:r.bottomRight().x,bottom:r.bottomRight().y};if(o.left<=n.right&&n.left<=o.right&&o.top<=n.bottom&&n.top<=o.bottom)return e.fromPoints(new P(Math.max(o.left,n.left),Math.max(o.top,n.top)),new P(Math.min(o.right,n.right),Math.min(o.bottom,n.bottom)))},e}(T);function I(t,e,r){return void 0===r&&(r=10),0===k(Math.abs(t-e),r)}function L(t,e,r){return t<e||I(t,e,r)}function E(t,e,r,o){var n=0,i=0;return o&&(n=Math.atan2(o.c*r,o.a*e),0!==o.b&&(i=Math.atan2(o.d*r,o.b*e))),{x:n,y:i}}var N=function(t){function e(e){void 0===e&&(e=O.unit()),t.call(this),this._matrix=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this._matrix.clone())},e.prototype.equals=function(t){return t&&t._matrix.equals(this._matrix)},e.prototype.translate=function(t,e){return this._matrix=this._matrix.multiplyCopy(O.translate(t,e)),this._optionsChange(),this},e.prototype.scale=function(t,e,r){void 0===e&&(e=t),void 0===r&&(r=null);var o=r;return o&&(o=P.create(o),this._matrix=this._matrix.multiplyCopy(O.translate(o.x,o.y))),this._matrix=this._matrix.multiplyCopy(O.scale(t,e)),o&&(this._matrix=this._matrix.multiplyCopy(O.translate(-o.x,-o.y))),this._optionsChange(),this},e.prototype.rotate=function(t,e){var r=P.create(e)||P.ZERO;return this._matrix=this._matrix.multiplyCopy(O.rotate(t,r.x,r.y)),this._optionsChange(),this},e.prototype.multiply=function(t){var e=A(t);return this._matrix=this._matrix.multiplyCopy(e),this._optionsChange(),this},e.prototype.matrix=function(t){return t?(this._matrix=t,this._optionsChange(),this):this._matrix},e.prototype._optionsChange=function(){this.optionsChange({field:"transform",value:this})},e}(T);function B(t){return null===t?null:t instanceof N?t:new N(t)}var j=Math.pow,D=function(t){function e(e,r){void 0===e&&(e=new P),void 0===r&&(r={}),t.call(this),this.setCenter(e),this.radiusX=r.radiusX,this.radiusY=r.radiusY||r.radiusX,this.startAngle=r.startAngle,this.endAngle=r.endAngle,this.anticlockwise=r.anticlockwise||!1,this.xRotation=r.xRotation}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.center,{radiusX:this.radiusX,radiusY:this.radiusY,startAngle:this.startAngle,endAngle:this.endAngle,anticlockwise:this.anticlockwise})},e.prototype.setCenter=function(t){return this._observerField("center",P.create(t)),this.geometryChange(),this},e.prototype.getCenter=function(){return this.center},e.prototype.pointAt=function(t){var e=this.center,r=t*_;return new P(e.x+this.radiusX*Math.cos(r),e.y+this.radiusY*Math.sin(r))},e.prototype.curvePoints=function(){var t,e=this.startAngle,r=this.anticlockwise?-1:1,o=[this.pointAt(e)],n=this._arcInterval(),i=n.endAngle-n.startAngle,a=Math.ceil(i/45),s=i/a,h=e;this.xRotation&&(t=B().rotate(this.xRotation,this.center));for(var c=1;c<=a;c++){var p=h+r*s,u=this._intervalCurvePoints(h,p,t);o.push(u.cp1,u.cp2,u.p2),h=p}return o},e.prototype.bbox=function(t){for(var e=this._arcInterval(),r=e.startAngle,o=e.endAngle,n=E(this.center,this.radiusX,this.radiusY,t),i=n.x/_,a=n.y/_,s=this.pointAt(o).transformCopy(t),h=G(i,r),c=G(a,r),p=this.pointAt(r).transformCopy(t),u=P.min(p,s),l=P.max(p,s);h<o||c<o;){var f=void 0;h<o&&(f=this.pointAt(h).transformCopy(t),h+=90);var d=void 0;c<o&&(d=this.pointAt(c).transformCopy(t),c+=90),p=new P(f.x,d.y),u=P.min(u,p),l=P.max(l,p)}return F.fromPoints(u,l)},e.prototype._arcInterval=function(){var t=this.startAngle,e=this.endAngle,r=this.anticlockwise;if(r){var o=t;t=e,e=o}return(t>e||r&&t===e)&&(e+=360),{startAngle:t,endAngle:e}},e.prototype._intervalCurvePoints=function(t,e,r){var o=this.pointAt(t),n=this.pointAt(e),i=this._derivativeAt(t),a=this._derivativeAt(e),s=(e*_-t*_)/3,h=new P(o.x+s*i.x,o.y+s*i.y),c=new P(n.x-s*a.x,n.y-s*a.y);return r&&(o.transform(r),n.transform(r),h.transform(r),c.transform(r)),{p1:o,cp1:h,cp2:c,p2:n}},e.prototype._derivativeAt=function(t){var e=t*_;return new P(-this.radiusX*Math.sin(e),this.radiusY*Math.cos(e))},e.prototype.containsPoint=function(t){var e,r=this._arcInterval(),o=r.endAngle-r.startAngle,n=this.center,i=this.radiusX,a=this.radiusY,s=n.distanceTo(t),h=Math.atan2(t.y-n.y,t.x-n.x),c=i*a/Math.sqrt(j(i,2)*j(Math.sin(h),2)+j(a,2)*j(Math.cos(h),2)),p=this.pointAt(this.startAngle).round(10),u=this.pointAt(this.endAngle).round(10),l=function(t,e,r,o){var n=e.x-t.x,i=o.x-r.x,a=e.y-t.y,s=o.y-r.y,h=t.x-r.x,c=t.y-r.y,p=n*s-i*a,u=(n*c-a*h)/p,l=(i*c-s*h)/p;if(u>=0&&u<=1&&l>=0&&l<=1)return new P(t.x+l*n,t.y+l*a)}(n,t.round(10),p,u);if(o<180)e=l&&L(n.distanceTo(l),s)&&L(s,c);else{var f=z(n.x,n.y,i,a,t.x,t.y);360!==f&&(f=(360+f)%360);var d=r.startAngle<=f&&f<=r.endAngle;e=d&&L(s,c)||!d&&(!l||l.equals(t))}return e},e.prototype._isOnPath=function(t,e){var r=this._arcInterval(),o=this.center,n=z(o.x,o.y,this.radiusX,this.radiusY,t.x,t.y);return 360!==n&&(n=(360+n)%360),r.startAngle<=n&&n<=r.endAngle&&this.pointAt(n).distanceTo(t)<=e},e.fromPoints=function(t,r,o,n,i,a,s){var h,c,p,u,l,f,d,g,y,m,v,w,b,x,S,C,O,T,M,A,R,F,I,L,E,N,B,j,D,z,G,q=(c=(h={x1:t.x,y1:t.y,x2:r.x,y2:r.y,rx:o,ry:n,largeArc:i,swipe:a,rotation:s}).x1,p=h.y1,u=h.x2,l=h.y2,f=h.rx,d=h.ry,g=h.largeArc,y=h.swipe,void 0===(m=h.rotation)&&(m=0),x=(w=Math.cos(v=m*_))*(c-u)/2+(b=Math.sin(v))*(p-l)/2,S=-b*(c-u)/2+w*(p-l)/2,C=Math.pow(x,2),O=Math.pow(S,2),(A=C/(T=Math.pow(f,2))+O/(M=Math.pow(d,2)))>1&&(f*=A=Math.sqrt(C/T+O/M),T=Math.pow(f,2),d*=A,M=Math.pow(d,2)),isNaN(R=(g!==y?1:-1)*Math.sqrt((T*M-T*O-M*C)/(T*O+M*C)))&&(R=0),F=f*S*R/d,I=-(d*x*R)/f,L=(x-F)/f,E=(S-I)/d,N=-(x+F)/f,B=-(S+I)/d,j=Math.acos(L/Math.sqrt(L*L+E*E))/_*(E>=0?1:-1),D=Math.acos(k((L*N+E*B)/(Math.sqrt(L*L+E*E)*Math.sqrt(N*N+B*B)),10))/_*(L*B-E*N>=0?1:-1),!y&&D>0&&(D-=360),y&&D<0&&(D+=360),G=(z=j+D)>=0?1:-1,z=Math.abs(z)%360*G,{center:new P(w*F-b*I+(c+u)/2,b*F+w*I+(p+l)/2),startAngle:j,endAngle:z,radiusX:f,radiusY:d,xRotation:m});return new e(q.center,{startAngle:q.startAngle,endAngle:q.endAngle,radiusX:q.radiusX,radiusY:q.radiusY,xRotation:q.xRotation,anticlockwise:0===a})},e}(M(T,["radiusX","radiusY","startAngle","endAngle","anticlockwise"]));function z(t,e,r,o,n,i){var a=k((n-t)/r,3),s=k((i-e)/o,3);return k(Math.atan2(s,a)/_)}function G(t,e){for(var r=t;r<e;)r+=90;return r}var q=Math.PI/2,U=function(t){function e(e,r){void 0===e&&(e=new P),void 0===r&&(r=0),t.call(this),this.setCenter(e),this.setRadius(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setCenter=function(t){return this._observerField("center",P.create(t)),this.geometryChange(),this},e.prototype.getCenter=function(){return this.center},e.prototype.equals=function(t){return t&&t.center.equals(this.center)&&t.radius===this.radius},e.prototype.clone=function(){return new e(this.center.clone(),this.radius)},e.prototype.pointAt=function(t){return this._pointAt(t*_)},e.prototype.bbox=function(t){for(var e=E(this.center,this.radius,this.radius,t),r=P.maxPoint(),o=P.minPoint(),n=0;n<4;n++){var i=this._pointAt(e.x+n*q).transformCopy(t),a=this._pointAt(e.y+n*q).transformCopy(t),s=new P(i.x,a.y);r=P.min(r,s),o=P.max(o,s)}return F.fromPoints(r,o)},e.prototype._pointAt=function(t){var e=this.center,r=this.radius;return new P(e.x+r*Math.cos(t),e.y+r*Math.sin(t))},e.prototype.containsPoint=function(t){var e=this.center,r=this.radius;return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(r,2)},e.prototype._isOnPath=function(t,e){var r=this.center,o=this.radius,n=r.distanceTo(t);return o-e<=n&&n<=o+e},e}(M(T,["radius"])),H=null,$={get browser(){if("undefined"==typeof window||H)return H;return H=function(t){var e={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+))/i},r={};for(var o in e)if(e.hasOwnProperty(o)){var n=t.match(e[o]);if(n){r[o]=!0,r[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,r.version=parseInt(document.documentMode||n[2],10);break}}return r}(window.navigator.userAgent)}},X="undefined"!=typeof Uint8Array&&$.browser&&(!$.browser.msie||$.browser.version>9),V=(n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",{decode:function(t){for(var e=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),r=0,o=e.length,i=[];r<o;){var a=n.indexOf(e.charAt(r++)),s=n.indexOf(e.charAt(r++)),h=n.indexOf(e.charAt(r++)),c=n.indexOf(e.charAt(r++)),p=a<<2|s>>>4,u=(15&s)<<4|h>>>2,l=(3&h)<<6|c;i.push(p),64!=h&&i.push(u),64!=c&&i.push(l)}return i},encode:function(t){for(var e=0,r=t.length,o="";e<r;){var i=t[e++],a=t[e++],s=t[e++],h=i>>>2,c=(3&i)<<4|a>>>4,p=(15&a)<<2|s>>>6,u=63&s;e-r==2?p=u=64:e-r==1&&(u=64),o+=n.charAt(h)+n.charAt(c)+n.charAt(p)+n.charAt(u)}return o}});function W(t){var e=0,r=0;null==t?t=X?new Uint8Array(256):[]:r=t.length;var o=X?function(e){if(e>=t.length){var r=new Uint8Array(Math.max(e+256,2*t.length));r.set(t,0),t=r}}:function(){},n=X?function(){return new Uint8Array(t.buffer,0,r)}:function(){return t},i=X?function(n){if("string"==typeof n)return g(n);var i=n.length;o(e+i),t.set(n,e),(e+=i)>r&&(r=e)}:function(t){if("string"==typeof t)return g(t);for(var e=0;e<t.length;++e)s(t[e])};function a(){return e<r?t[e++]:0}function s(n){o(e),t[e++]=255&n,e>r&&(r=e)}function h(){return a()<<8|a()}function c(t){s(t>>8),s(t)}function p(){return 65536*h()+h()}function u(t){c(t>>>16&65535),c(65535&t)}function l(){var t=p();return t>=2147483648?t-4294967296:t}function f(t){u(t<0?t+4294967296:t)}function d(t){return y(t,a)}function g(t){for(var e=0;e<t.length;++e)s(t.charCodeAt(e))}function y(t,e){for(var r=Array(t),o=0;o<t;++o)r[o]=e();return r}var m={eof:function(){return e>=r},readByte:a,writeByte:s,readShort:h,writeShort:c,readLong:p,writeLong:u,readFixed:function(){return p()/65536},writeFixed:function(t){u(Math.round(65536*t))},readShort_:function(){var t=h();return t>=32768?t-65536:t},writeShort_:function(t){c(t<0?t+65536:t)},readLong_:l,writeLong_:f,readFixed_:function(){return l()/65536},writeFixed_:function(t){f(Math.round(65536*t))},read:d,write:i,readString:function(t){return String.fromCharCode.apply(String,d(t))},writeString:g,times:y,get:n,slice:X?function(e,r){if(t.buffer.slice)return new Uint8Array(t.buffer.slice(e,e+r));var o=new Uint8Array(r);return o.set(new Uint8Array(t.buffer,e,r)),o}:function(e,r){return t.slice(e,e+r)},offset:function(t){return null!=t?(e=t,m):e},skip:function(t){e+=t},toString:function(){throw Error("FIX CALLER.  BinaryStream is no longer convertible to string!")},length:function(){return r},saveExcursion:function(t){var r=e;try{return t()}finally{e=r}},writeBase64:function(t){window.atob?g(window.atob(t)):i(V.decode(t))},base64:function(){return V.encode(n())}};return m}function Y(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Z(t){return Object.keys(t).sort(function(t,e){return t-e}).map(parseFloat)}var J=function(t){this.raw=t,this.scalerType=t.readLong(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort();for(var e=this.tables={},r=0;r<this.tableCount;++r){var o={tag:t.readString(4),checksum:t.readLong(),offset:t.readLong(),length:t.readLong()};e[o.tag]=o}};J.prototype.readTable=function(t,e){var r=this.tables[t];if(!r)throw Error("Table "+t+" not found in directory");return this[t]=r.table=new e(this,r)},J.prototype.render=function(t){var e=Object.keys(t).length,r=Math.pow(2,Math.floor(Math.log(e)/Math.LN2)),o=16*r,n=W();n.writeLong(this.scalerType),n.writeShort(e),n.writeShort(o),n.writeShort(Math.floor(Math.log(r)/Math.LN2)),n.writeShort(16*e-o);var i=16*e,a=n.offset()+i,s=null,h=W();for(var c in t)if(Y(t,c)){var p=t[c];for(n.writeString(c),n.writeLong(this.checksum(p)),n.writeLong(a),n.writeLong(p.length),h.write(p),"head"==c&&(s=a),a+=p.length;a%4;)h.writeByte(0),a++}n.write(h.get());var u=this.checksum(n.get());return n.offset(s+8),n.writeLong(2981146554-u),n.get()},J.prototype.checksum=function(t){t=W(t);for(var e=0;!t.eof();)e+=t.readLong();return 4294967295&e};var K=function(t,e){this.definition=e,this.length=e.length,this.offset=e.offset,this.file=t,this.rawData=t.raw,this.parse(t.raw)};K.prototype.raw=function(){return this.rawData.slice(this.offset,this.length)},K.prototype.parse=function(){};var Q=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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_()},e.prototype.render=function(t){var e=W();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()},e}(K),tt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){t.offset(this.offset),0===this.file.head.indexToLocFormat?this.offsets=t.times(this.length/2,function(){return 2*t.readShort()}):this.offsets=t.times(this.length/4,t.readLong)},e.prototype.offsetOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.render=function(t){for(var e=W(),r=t[t.length-1]>65535,o=0;o<t.length;++o)r?e.writeLong(t[o]):e.writeShort(t[o]/2);return{format:r?1:0,table:e.get()}},e}(K),te=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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()},e.prototype.render=function(t){var e=W();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()},e}(K),tr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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()},e.prototype.render=function(t){var e=W();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()},e}(K),to=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){t.offset(this.offset);var e=this.file,r=e.hhea;this.metrics=t.times(r.numOfLongHorMetrics,function(){return{advance:t.readShort(),lsb:t.readShort_()}});var o=e.maxp.numGlyphs-e.hhea.numOfLongHorMetrics;this.leftSideBearings=t.times(o,t.readShort_)},e.prototype.forGlyph=function(t){var e=this.metrics,r=e.length;return t<r?e[t]:{advance:e[r-1].advance,lsb:this.leftSideBearings[t-r]}},e.prototype.render=function(t){for(var e=W(),r=0;r<t.length;++r){var o=this.forGlyph(t[r]);e.writeShort(o.advance),e.writeShort_(o.lsb)}return e.get()},e}(K),tn=(i=function(t){this.raw=t},(a={compound:{configurable:!0}}).compound.get=function(){return!1},i.prototype.render=function(){return this.raw.get()},Object.defineProperties(i.prototype,a),s=function(t){this.raw=t;for(var e=this.glyphIds=[],r=this.idOffsets=[];;){var o=t.readShort();if(r.push(t.offset()),e.push(t.readShort()),!(32&o))break;t.skip(1&o?4:2),128&o?t.skip(8):64&o?t.skip(4):8&o&&t.skip(2)}},(h={compound:{configurable:!0}}).compound.get=function(){return!0},s.prototype.render=function(t){for(var e=W(this.raw.get()),r=0;r<this.glyphIds.length;++r){var o=this.glyphIds[r];e.offset(this.idOffsets[r]),e.writeShort(t[o])}return e.get()},Object.defineProperties(s.prototype,h),function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(){this.cache={}},e.prototype.glyphFor=function(t){var e=this.cache;if(Y(e,t))return e[t];var r=this.file.loca,o=r.lengthOf(t);if(0===o)return e[t]=null;var n=this.rawData,a=this.offset+r.offsetOf(t),h=W(n.slice(a,o)),c=h.readShort_(),p=h.readShort_(),u=h.readShort_(),l=h.readShort_(),f=h.readShort_(),d=e[t]=c<0?new s(h):new i(h);return d.numberOfContours=c,d.xMin=p,d.yMin=u,d.xMax=l,d.yMax=f,d},e.prototype.render=function(t,e,r){for(var o=W(),n=[],i=0;i<e.length;++i){var a=t[e[i]];o.offset()%2&&o.writeByte(0),n.push(o.offset()),a&&o.write(a.render(r))}return o.offset()%2&&o.writeByte(0),n.push(o.offset()),{table:o.get(),offsets:n}},e}(K)),ti=(c=function(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},function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){t.offset(this.offset),t.readShort();for(var e=t.readShort(),r=this.offset+t.readShort(),o=t.times(e,function(){return{platformID:t.readShort(),platformSpecificID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:t.readShort()+r}}),n=this.strings={},i=0;i<o.length;++i){var a=o[i];t.offset(a.offset);var s=t.readString(a.length);n[a.nameID]||(n[a.nameID]=[]),n[a.nameID].push(new c(s,a))}this.postscriptEntry=n[6][0],this.postscriptName=this.postscriptEntry.text.replace(/[^\x20-\x7F]/g,"")},e.prototype.render=function(t){var e=this.strings,r=0;for(var o in e)Y(e,o)&&(r+=e[o].length);var n=W(),i=W();for(o in n.writeShort(0),n.writeShort(r),n.writeShort(6+12*r),e)if(Y(e,o))for(var a=6==o?[new c(t,this.postscriptEntry)]:e[o],s=0;s<a.length;++s){var h=a[s];n.writeShort(h.platformID),n.writeShort(h.platformSpecificID),n.writeShort(h.languageID),n.writeShort(h.nameID),n.writeShort(h.length),n.writeShort(i.offset()),i.writeString(h.text)}return n.write(i.get()),n.get()},e}(K)),ta=(p=".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),function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){var e;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:e=t.readShort(),this.glyphNameIndex=t.times(e,t.readShort),this.names=[];for(var r=this.offset+this.length;t.offset()<r;)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)}},e.prototype.glyphFor=function(t){switch(this.format){case 65536:return p[t]||".notdef";case 131072:var e=this.glyphNameIndex[t];if(e<p.length)return p[e];return this.names[e-p.length]||".notdef";case 151552:case 196608:return".notdef";case 262144:return this.map[t]||65535}},e.prototype.render=function(t){if(196608==this.format)return this.raw();var e=W(this.rawData.slice(this.offset,32));e.writeLong(131072),e.offset(32);for(var r=[],o=[],n=0;n<t.length;++n){var i=t[n],a=this.glyphFor(i),s=p.indexOf(a);s>=0?r.push(s):(r.push(p.length+o.length),o.push(a))}for(e.writeShort(t.length),n=0;n<r.length;++n)e.writeShort(r[n]);for(n=0;n<o.length;++n)e.writeByte(o[n].length),e.writeString(o[n]);return e.get()},e}(K)),ts=(u=function(t,e,r){var o=this;o.platformID=t.readShort(),o.platformSpecificID=t.readShort(),o.offset=e+t.readLong(),t.saveExcursion(function(){var e;switch(t.offset(o.offset),o.format=t.readShort(),o.format){case 0:o.length=t.readShort(),o.language=t.readShort();for(var n=0;n<256;++n)r[n]=t.readByte();break;case 4:o.length=t.readShort(),o.language=t.readShort();var i=t.readShort()/2;t.skip(6);var a=t.times(i,t.readShort);t.skip(2);var s=t.times(i,t.readShort),h=t.times(i,t.readShort_),c=t.times(i,t.readShort),p=(o.length+o.offset-t.offset())/2,u=t.times(p,t.readShort);for(n=0;n<i;++n){var l,f=s[n],d=a[n];for(e=f;e<=d;++e)0===c[n]?l=e+h[n]:0!==(l=u[c[n]/2-(i-n)+(e-f)]||0)&&(l+=h[n]),r[e]=65535&l}break;case 6:o.length=t.readShort(),o.language=t.readShort(),e=t.readShort();for(var g=t.readShort();g-- >0;)r[e++]=t.readShort();break;case 12:t.readShort(),o.length=t.readLong(),o.language=t.readLong();for(var y=t.readLong();y-- >0;){e=t.readLong();for(var m=t.readLong(),v=t.readLong();e<=m;)r[e++]=v++}break;default:window.console&&window.console.error("Unhandled CMAP format: "+o.format)}})},function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){var e=this,r=e.offset;t.offset(r),e.codeMap={},e.version=t.readShort();var o=t.readShort();e.tables=t.times(o,function(){return new u(t,r,e.codeMap)})},e.render=function(t,e){var r=W();return r.writeShort(0),r.writeShort(1),r.write(function(t,e){for(var r=Z(t),o=[],n=[],i=null,a=null,s=0;s<r.length;++s){var h=r[s],c=e[t[h]]-h;(null==i||c!==a)&&(i&&n.push(i),o.push(h),a=c),i=h}i&&n.push(i),n.push(65535),o.push(65535);var p=o.length,u=2*p,l=2*Math.pow(2,Math.floor(Math.log(p)/Math.LN2)),f=[],d=[],g=[];for(s=0;s<p;++s){var y=o[s],m=n[s];if(65535==y){f.push(0),d.push(0);break}var v=e[t[y]];if(y-v>=32768){f.push(0),d.push(2*(g.length+p-s));for(var w=y;w<=m;++w)g.push(e[t[w]])}else f.push(v-y),d.push(0)}var b=W();return b.writeShort(3),b.writeShort(1),b.writeLong(12),b.writeShort(4),b.writeShort(16+8*p+2*g.length),b.writeShort(0),b.writeShort(u),b.writeShort(l),b.writeShort(Math.log(l/2)/Math.LN2),b.writeShort(u-l),n.forEach(b.writeShort),b.writeShort(0),o.forEach(b.writeShort),f.forEach(b.writeShort_),d.forEach(b.writeShort),g.forEach(b.writeShort),b.get()}(t,e)),r.get()},e}(K)),th=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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()))},e.prototype.render=function(){return this.raw()},e}(K),tc=1e5,tp=function(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=function(){for(var t="",e=String(tc),r=0;r<e.length;++r)t+=String.fromCharCode(e.charCodeAt(r)-48+65);return++tc,t}()+"+"+this.font.psName};tp.prototype.use=function(t){var e=this;if("string"==typeof t)return(function(t){for(var e,r,o=[],n=0,i=t.length;n<i;)(e=t.charCodeAt(n++))>=55296&&e<=56319&&n<i?(64512&(r=t.charCodeAt(n++)))==56320?o.push(((1023&e)<<10)+(1023&r)+65536):(o.push(e),n--):o.push(e);return o})(t).reduce(function(t,r){return t+String.fromCharCode(e.use(r))},"");var r=e.unicodes[t];if(!r){r=e.next++,e.subset[r]=t,e.unicodes[t]=r;var o=e.font.cmap.codeMap[t];if(o&&(e.ncid2ogid[r]=o,null==e.ogid2ngid[o])){var n=e.nextGid++;e.ogid2ngid[o]=n,e.ngid2ogid[n]=o}}return r},tp.prototype.encodeText=function(t){return this.use(t)},tp.prototype.glyphIds=function(){return Z(this.ogid2ngid)},tp.prototype.glyphsFor=function(t,e){e||(e={});for(var r=0;r<t.length;++r){var o=t[r];if(!e[o]){var n=e[o]=this.font.glyf.glyphFor(o);n&&n.compound&&this.glyphsFor(n.glyphIds,e)}}return e},tp.prototype.render=function(){var t=this.glyphsFor(this.glyphIds());for(var e in t)if(Y(t,e)&&(e=parseInt(e,10),null==this.ogid2ngid[e])){var r=this.nextGid++;this.ogid2ngid[e]=r,this.ngid2ogid[r]=e}var o=Z(this.ngid2ogid).map(function(t){return this.ngid2ogid[t]},this),n=this.font,i=n.glyf.render(t,o,this.ogid2ngid),a=n.loca.render(i.offsets);this.lastChar=this.next-1;var s={cmap:ts.render(this.ncid2ogid,this.ogid2ngid),glyf:i.table,loca:a.table,hmtx:n.hmtx.render(o),hhea:n.hhea.render(o),maxp:n.maxp.render(o),post:n.post.render(o),name:n.name.render(this.psName),head:n.head.render(a.format),"OS/2":n.os2.render()};return this.font.directory.render(s)},tp.prototype.cidToGidMap=function(){for(var t=W(),e=0,r=this.firstChar;r<this.next;++r){for(;e<r;)t.writeShort(0),e++;var o=this.ncid2ogid[r];if(o){var n=this.ogid2ngid[o];t.writeShort(n)}else t.writeShort(0);e++}return t.get()};var tu=function(t,e){var r=this,o=r.contents=W(t);if("ttcf"==o.readString(4)){var n,i=function(){o.offset(n),r.parse()};if(!e)throw Error("Must specify a name for TTC files");o.readLong();for(var a=o.readLong(),s=0;s<a;++s)if(n=o.readLong(),o.saveExcursion(i),r.psName==e)return;throw Error("Font "+e+" not found in collection")}o.offset(0),r.parse()};tu.prototype.parse=function(){var t=this.directory=new J(this.contents);this.head=t.readTable("head",Q),this.loca=t.readTable("loca",tt),this.hhea=t.readTable("hhea",te),this.maxp=t.readTable("maxp",tr),this.hmtx=t.readTable("hmtx",to),this.glyf=t.readTable("glyf",tn),this.name=t.readTable("name",ti),this.post=t.readTable("post",ta),this.cmap=t.readTable("cmap",ts),this.os2=t.readTable("OS/2",th),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},tu.prototype.widthOfGlyph=function(t){return this.hmtx.forGlyph(t).advance*this.scale},tu.prototype.makeSubset=function(){return new tp(this)};var tl=r(39246).Wt,tf=String.fromCharCode;function td(t){return tf(t>>8)+tf(255&t)}var tg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ty(t){for(var e="",r=0,o=function(t){for(var e="",r=0;r<t.length;r++){var o=t.charCodeAt(r);if(55296<=o&&o<=56319){var n=o,i=t.charCodeAt(++r);isNaN(i)||(o=(n-55296)*1024+(i-56320)+65536)}o<128?e+=tf(o):o<2048?e+=tf(192|o>>>6)+tf(128|63&o):o<65536?e+=tf(224|o>>>12)+tf(128|o>>>6&63)+tf(128|63&o):o<1114111&&(e+=tf(240|o>>>18)+tf(128|o>>>12&63)+tf(128|o>>>6&63)+tf(128|63&o))}return e}(t);r<o.length;){var n=o.charCodeAt(r++),i=o.charCodeAt(r++),a=o.charCodeAt(r++),s=n>>2,h=(3&n)<<4|i>>4,c=(15&i)<<2|a>>6,p=63&a;isNaN(i)?c=p=64:isNaN(a)&&(p=64),e=e+tg.charAt(s)+tg.charAt(h)+tg.charAt(c)+tg.charAt(p)}return e}var tm=$.browser,tv=0,tw={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]};function tb(){var t=0,e=W();function r(){for(var t=arguments,o=0;o<arguments.length;++o){var n=t[o];if(void 0===n)throw Error("Cannot output undefined to PDF");if(n instanceof tE)n.beforeRender(r),n.render(r);else if(tP(n))!function(t,e){e("["),t.length>0&&e.withIndent(function(){for(var r=0;r<t.length;++r)r>0&&r%8==0?e.indent(t[r]):e(" ",t[r])}),e(" ]")}(n,r);else if(n instanceof Date)r("(D:",tM(n.getUTCFullYear(),4),tM(n.getUTCMonth()+1,2),tM(n.getUTCDate(),2),tM(n.getUTCHours(),2),tM(n.getUTCMinutes(),2),tM(n.getUTCSeconds(),2),"Z)");else if("number"==typeof n){if(isNaN(n))throw Error("Cannot output NaN to PDF");var i=n.toFixed(7);i.indexOf(".")>=0&&(i=i.replace(/\.?0+$/,"")),"-0"==i&&(i="0"),e.writeString(i)}else/string|boolean/.test(typeof n)?e.writeString(String(n)):"function"==typeof n.get?e.write(n.get()):"object"==typeof n&&(n?r(new tz(n)):e.writeString("null"))}}return r.writeData=function(t){e.write(t)},r.withIndent=function(e){++t,e(r),--t},r.indent=function(){r("\n",tT("",2*t,"  ")),r.apply(null,arguments)},r.offset=function(){return e.offset()},r.toString=function(){throw Error("FIX CALLER")},r.get=function(){return e.get()},r.stream=function(){return e},r}function tx(t){if("function"!=typeof t){var e=t;t=function(t,r){return t in e?e[t]:r}}var r=t("paperSize",tw.a4);if(!r)return{};if("string"==typeof r&&null==(r=tw[r.toLowerCase()]))throw Error("Unknown paper size");r[0]=tL(r[0]),r[1]=tL(r[1]),t("landscape",!1)&&(r=[Math.max(r[0],r[1]),Math.min(r[0],r[1])]);var o=t("margin");return o&&(o="string"==typeof o||"number"==typeof o?{left:o=tL(o,0),top:o,right:o,bottom:o}:{left:tL(o.left,0),top:tL(o.top,0),right:tL(o.right,0),bottom:tL(o.bottom,0)},t("addMargin")&&(r[0]+=o.left+o.right,r[1]+=o.top+o.bottom)),{paperSize:r,margin:o}}var t_={"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},tS={},tC=(l=function(t,e){var r=t_[t];r?e(r):function(t,e){if(tm.msie&&(n=/^data:.*?;base64,/i.exec(t))){var r;e((r=t.substr(n[0].length),window.atob?function(t){for(var e=window.atob(t),r=new Uint8Array(e.length),o=0;o<e.length;o++)r[o]=e.charCodeAt(o);return r}(r):function(t){for(var e=new Uint8Array(t.length),r=0;r<t.length;r++)e[r]=t[r];return e}(V.decode(r))));return}function o(){window.console&&(window.console.error?window.console.error("Cannot load URL: %s",t):window.console.log("Cannot load URL: %s",t)),e(null)}var n,i=new XMLHttpRequest;i.open("GET",t,!0),X&&(i.responseType="arraybuffer"),i.onload=function(){200==i.status||304==i.status?X?e(new Uint8Array(i.response)):e(new window.VBArray(i.responseBody).toArray()):o()},i.onerror=o,i.send(null)}(t,function(r){if(null==r)throw Error("Cannot load font from "+t);var o=new tu(r);t_[t]=o,e(o)})},function(t,e){var r=t.length,o=r;if(0===r)return e();function n(){0==--r&&e()}for(;o-- >0;)l(t[o],n)}),tk=function(t,e,r){r=Object.assign({jpegQuality:.92,keepPNG:!1},r);var o=Object.keys(t),n=o.length;if(0===n)return e();function i(){0==--n&&e()}o.forEach(function(e){!function(t,e,r,o){var n,i,a=tS[t];if(a)r(a);else if(a=new Image,/^data:/i.test(t)||(a.crossOrigin="Anonymous"),X&&!/^data:/i.test(t)){var s=new XMLHttpRequest;s.onload=function(){if(i=s.response,tm.mozilla&&"image/svg+xml"==i.type){var t=new FileReader;t.onload=function(){var t=new window.DOMParser().parseFromString(this.result,"image/svg+xml").documentElement;t.getAttribute("width")&&t.getAttribute("height")?h(n=URL.createObjectURL(i)):(t.setAttribute("width",e.width),t.setAttribute("height",e.height),h("data:image/svg+xml;base64,"+ty(new window.XMLSerializer().serializeToString(t))))},t.readAsText(i)}else h(n=URL.createObjectURL(i))},s.onerror=p,s.open("GET",t,!0),s.responseType="blob",s.send()}else h(t);function h(t){a.src=t,a.complete&&!tm.msie?u.call(a):(a.onload=u,a.onerror=p)}function c(){e||(e={width:a.width,height:a.height});var i,s=document.createElement("canvas");s.width=e.width,s.height=e.height;var h=s.getContext("2d");h.drawImage(a,0,0,e.width,e.height);try{i=h.getImageData(0,0,e.width,e.height)}catch(t){p();return}finally{n&&URL.revokeObjectURL(n)}for(var c=!1,u=W(),l=W(),f=i.data,d=0;d<f.length;){u.writeByte(f[d++]),u.writeByte(f[d++]),u.writeByte(f[d++]);var g=f[d++];g<255&&(c=!0),l.writeByte(g)}if(c||o.keepPNG)a=new tX(e.width,e.height,u,l);else{var y=s.toDataURL("image/jpeg",o.jpegQuality);y=y.substr(y.indexOf(";base64,")+8);var m=W();m.writeBase64(y),a=new t$(m)}r(tS[t]=a)}function p(){r(tS[t]="ERROR")}function u(){if(e){var o=i&&"image/svg+xml"===i.type||/^data:image\/svg\+xml;/i.test(this.src.substring(0,19)),s=e.width>=a.width||e.height>=a.height;!o&&s&&(e=null)}if(!e&&i&&/^image\/jpe?g$/i.test(i.type)){var h=new FileReader;h.onload=function(){try{var e=new t$(W(new Uint8Array(this.result)));URL.revokeObjectURL(n),r(tS[t]=e)}catch(t){c()}},h.readAsArrayBuffer(i)}else c()}}(e,t[e],i,r)})},tO=function(t){var e=this,r=tb(),o=0,n=[];function i(e,r){return t&&null!=t[e]?t[e]:r}e.getOption=i,e.attach=function(t){if(0>n.indexOf(t)){var e,r,i;e=++o,r=t.beforeRender,i=t.render,t.beforeRender=function(){},t.render=function(t){t(e," 0 R")},t.renderFull=function(o){t._offset=o.offset(),o(e," 0 obj "),r.call(t,o),i.call(t,o),o(" endobj")},n.push(t)}return t},e.pages=[],e.FONTS={},e.IMAGES={},e.GRAD_COL_FUNCTIONS={},e.GRAD_OPC_FUNCTIONS={},e.GRAD_COL={},e.GRAD_OPC={};var a=e.attach(new tq),s=e.attach(new tU);if(i("autoPrint")){var h={};h.JavaScript=new tz({Names:[new tN("JS"),e.attach(new tz({S:tD("JavaScript"),JS:new tN("print(true);")}))]}),a.props.Names=new tz(h)}a.setPages(s);var c=e.attach(new tz({Producer:new tN(i("producer","Kendo UI PDF Generator"),!0),Title:new tN(i("title",""),!0),Author:new tN(i("author",""),!0),Subject:new tN(i("subject",""),!0),Keywords:new tN(i("keywords",""),!0),Creator:new tN(i("creator","Kendo UI PDF Generator"),!0),CreationDate:i("date",new Date)}));e.addPage=function(t){var r=tx(function(e,r){return t&&null!=t[e]?t[e]:r}),o=r.paperSize,n=r.margin,i=o[0],a=o[1];n&&(i-=n.left+n.right,a-=n.top+n.bottom);var h=new tG(tb(),null,!0),c={Contents:e.attach(h),Parent:s,MediaBox:[0,0,o[0],o[1]]},p=new tJ(e,c);return p._content=h,s.addPage(e.attach(p)),p.transform(1,0,0,-1,0,o[1]),n&&(p.translate(n.left,n.top),p.rect(0,0,i,a),p.clip()),e.pages.push(p),p},e.render=function(){for(r("%PDF-1.4","\n","%\xc2\xc1\xda\xcf\xce","\n","\n"),t=0;t<n.length;++t)n[t].renderFull(r),r("\n","\n");var t,e=r.offset();for(r("xref","\n",0," ",n.length+1,"\n"),r("0000000000 65535 f ","\n"),t=0;t<n.length;++t)r(tM(n[t]._offset,10)," 00000 n ","\n");return r("\n"),r("trailer","\n"),r(new tz({Size:n.length+1,Root:a,Info:c}),"\n","\n"),r("startxref","\n",e,"\n"),r("%%EOF","\n"),r.stream().offset(0)},e.loadFonts=tC,e.loadImages=tk};function tT(t,e,r){for(;t.length<e;)t=r+t;return t}function tM(t,e){return tT(String(t),e,"0")}function tA(t,e){return Object.prototype.hasOwnProperty.call(t,e)}tO.prototype.getFont=function(t){var e=this.FONTS[t];if(!e){if(!(e=t_[t]))throw Error("Font "+t+" has not been loaded");e=!0===e?this.attach(new tV(t)):this.attach(new tW(this,e)),this.FONTS[t]=e}return e},tO.prototype.getImage=function(t){var e=this.IMAGES[t];if(!e){if(!(e=tS[t]))throw Error("Image "+t+" has not been loaded");if("ERROR"===e)return null;e=this.IMAGES[t]=this.attach(e.asStream(this))}return e},tO.prototype.getOpacityGS=function(t,e){var r=parseFloat(t).toFixed(3);t=parseFloat(r),r+=e?"S":"F";var o=this._opacityGSCache||(this._opacityGSCache={}),n=o[r];if(!n){var i={Type:tD("ExtGState")};e?i.CA=t:i.ca=t,(n=this.attach(new tz(i)))._resourceName=tD("GS"+ ++tv),o[r]=n}return n},tO.prototype.dict=function(t){return new tz(t)},tO.prototype.name=function(t){return tD(t)},tO.prototype.stream=function(t,e){return new tG(e,t)};var tP=Array.isArray||function(t){return t instanceof Array};function tR(t){return 72/25.4*t}function tF(t){return tR(10*t)}function tI(t){return 72*t}function tL(t,e){if("number"==typeof t)return t;if("string"==typeof t){var r;if(r=/^\s*([0-9.]+)\s*(mm|cm|in|pt)\s*$/.exec(t)){var o=parseFloat(r[1]);if(!isNaN(o))return"pt"==r[2]?o:({mm:tR,cm:tF,in:tI})[r[2]](o)}}if(null!=e)return e;throw Error("Can't parse unit: "+t)}var tE=function(){};tE.prototype.beforeRender=function(){};var tN=function(t){function e(e,r){t.call(this),this.value=e,this.utf16be=!!r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(t){var e=this.value;if(this.utf16be)t("(",e=(e="\xfe\xff"+function(t){for(var e="",r=0;r<t.length;r++){var o=t.charCodeAt(r);if(o<65535)e+=td(o);else{var n=(o-65536>>10)+55296,i=(o-65536&1023)+56320;e+=td(n)+td(i)}}return e}(e)).replace(/([\(\)\\])/g,"\\$1"),")");else{for(var r=[40],o=0;o<e.length;++o){var n=255&e.charCodeAt(o);(40==n||41==n||92==n)&&r.push(92),r.push(n)}r.push(41),t.writeData(r)}},e.prototype.toString=function(){return this.value},e}(tE),tB=function(t){function e(e){t.call(this,e),this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(t){t("<");for(var e=0;e<this.value.length;++e)t(tM(this.value.charCodeAt(e).toString(16),4));t(">")},e}(tN),tj=function(t){function e(e){t.call(this),this.name=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.get=function(t){return tD(t)},e.prototype.render=function(t){t("/"+this.escape())},e.prototype.escape=function(){return this.name.replace(/[^\x21-\x7E]/g,function(t){return"#"+tM(t.charCodeAt(0).toString(16),2)})},e.prototype.toString=function(){return this.name},e}(tE);function tD(t){return new tj(t)}var tz=function(t){function e(e){t.call(this),this.props=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(t){var e=this.props,r=!0;t("<<"),t.withIndent(function(){for(var o in e)tA(e,o)&&!/^_/.test(o)&&(r=!1,t.indent(tD(o)," ",e[o]))}),r||t.indent(),t(">>")},e}(tE),tG=function(t){function e(e,r,o){if(t.call(this),"string"==typeof e){var n=W();n.write(e),e=n}this.data=e,this.props=r||{},this.compress=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(t){var e=this.data.get(),r=this.props;this.compress&&(r.Filter?r.Filter instanceof Array||(r.Filter=[r.Filter]):r.Filter=[],r.Filter.unshift(tD("FlateDecode")),e=tl(e)),r.Length=e.length,t(new tz(r)," stream","\n"),t.writeData(e),t("\n","endstream")},e}(tE),tq=function(t){function e(){t.call(this,{Type:tD("Catalog")})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setPages=function(t){this.props.Pages=t},e}(tz),tU=function(t){function e(){t.call(this,{Type:tD("Pages"),Kids:[],Count:0})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addPage=function(t){this.props.Kids.push(t),this.props.Count++},e}(tz),tH=[192,193,194,195,197,198,199,201,202,203,205,206,207],t$=function(t){if(t.offset(0),65496!=t.readShort())throw Error("Invalid JPEG image");for(;!t.eof();){if(255!=t.readByte())throw Error("Invalid JPEG image");var e,r,o,n,i=t.readByte(),a=t.readShort();if(tH.indexOf(i)>=0){n=t.readByte(),r=t.readShort(),e=t.readShort(),o=t.readByte();break}t.skip(a-2)}if(null==o)throw Error("Invalid JPEG image");var s={Type:tD("XObject"),Subtype:tD("Image"),Width:e,Height:r,BitsPerComponent:n,Filter:tD("DCTDecode")};switch(o){case 1:s.ColorSpace=tD("DeviceGray");break;case 3:s.ColorSpace=tD("DeviceRGB");break;case 4:s.ColorSpace=tD("DeviceCMYK"),s.Decode=[1,0,1,0,1,0,1,0]}this.asStream=function(){t.offset(0);var e=new tG(t,s);return e._resourceName=tD("I"+ ++tv),e}},tX=function(t,e,r,o){this.asStream=function(n){var i=new tG(o,{Type:tD("XObject"),Subtype:tD("Image"),Width:t,Height:e,BitsPerComponent:8,ColorSpace:tD("DeviceGray")},!0),a=new tG(r,{Type:tD("XObject"),Subtype:tD("Image"),Width:t,Height:e,BitsPerComponent:8,ColorSpace:tD("DeviceRGB"),SMask:n.attach(i)},!0);return a._resourceName=tD("I"+ ++tv),a}},tV=function(t){function e(e){t.call(this,{Type:tD("Font"),Subtype:tD("Type1"),BaseFont:tD(e)}),this._resourceName=tD("F"+ ++tv)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.encodeText=function(t){return new tN(String(t))},e}(tz),tW=function(t){function e(e,r,o){t.call(this,{}),(o=this.props).Type=tD("Font"),o.Subtype=tD("Type0"),o.Encoding=tD("Identity-H"),this._pdf=e,this._font=r,this._sub=r.makeSubset(),this._resourceName=tD("F"+ ++tv);var n=r.head;this.name=r.psName;var i=this.scale=r.scale;this.bbox=[n.xMin*i,n.yMin*i,n.xMax*i,n.yMax*i],this.italicAngle=r.post.italicAngle,this.ascent=r.ascent*i,this.descent=r.descent*i,this.lineGap=r.lineGap*i,this.capHeight=r.os2.capHeight||this.ascent,this.xHeight=r.os2.xHeight||0,this.stemV=0,this.familyClass=(r.os2.familyClass||0)>>8,this.isSerif=this.familyClass>=1&&this.familyClass<=7,this.isScript=10==this.familyClass,this.flags=(r.post.isFixedPitch?1:0)|(this.isSerif?2:0)|(this.isScript?8:0)|(0!==this.italicAngle?64:0)|32}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.encodeText=function(t){return new tB(this._sub.encodeText(String(t)))},e.prototype.getTextWidth=function(t,e){for(var r=0,o=this._font.cmap.codeMap,n=0;n<e.length;++n){var i=o[e.charCodeAt(n)];r+=this._font.widthOfGlyph(i||0)}return r*t/1e3},e.prototype.beforeRender=function(){var e=this,r=e._sub,o=r.render(),n=new tG(W(o),{Length1:o.length},!0),i=e._pdf.attach(new t({Type:tD("FontDescriptor"),FontName:tD(e._sub.psName),FontBBox:e.bbox,Flags:e.flags,StemV:e.stemV,ItalicAngle:e.italicAngle,Ascent:e.ascent,Descent:e.descent,CapHeight:e.capHeight,XHeight:e.xHeight,FontFile2:e._pdf.attach(n)})),a=r.ncid2ogid,s=r.firstChar,h=r.lastChar,c=[];!function t(r,o){if(r<=h){var n=a[r];null==n?t(r+1):(o||c.push(r,o=[]),o.push(e._font.widthOfGlyph(n)),t(r+1,o))}}(s);var p=new t({Type:tD("Font"),Subtype:tD("CIDFontType2"),BaseFont:tD(e._sub.psName),CIDSystemInfo:new t({Registry:new tN("Adobe"),Ordering:new tN("Identity"),Supplement:0}),FontDescriptor:i,FirstChar:s,LastChar:h,DW:Math.round(e._font.widthOfGlyph(0)),W:c,CIDToGIDMap:e._pdf.attach(e._makeCidToGidMap())}),u=e.props;u.BaseFont=tD(e._sub.psName),u.DescendantFonts=[e._pdf.attach(p)];var l=new tY(s,h,r.subset),f=new tG(tb(),null,!0);f.data(l),u.ToUnicode=e._pdf.attach(f)},e.prototype._makeCidToGidMap=function(){return new tG(W(this._sub.cidToGidMap()),null,!0)},e}(tz),tY=function(t){function e(e,r,o){t.call(this),this.firstChar=e,this.lastChar=r,this.map=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.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(){for(var r=e.firstChar;r<=e.lastChar;++r){var o=[e.map[r]].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("");t.indent("<",tM(r.toString(16),4),">","<");for(var n=0;n<o.length;++n)t(tM(o.charCodeAt(n).toString(16),4));t(">")}}),t.indent("endbfchar"),t.indent("endcmap"),t.indent("CMapName currentdict /CMap defineresource pop"),t.indent("end"),t.indent("end")},e}(tE);function tZ(t){return t.map(function(t){return tP(t)?tZ(t):"number"==typeof t?(Math.round(1e3*t)/1e3).toFixed(3):t}).join(" ")}var tJ=function(t){function e(e,r){t.call(this,r),this._pdf=e,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=[],(r=this.props).Type=tD("Page"),r.ProcSet=[tD("PDF"),tD("Text"),tD("ImageB"),tD("ImageC"),tD("ImageI")],r.Resources=new t({Font:new t(this._fontResources),ExtGState:new t(this._gsResources),XObject:new t(this._xResources),Pattern:new t(this._patResources),Shading:new t(this._shResources)}),r.Annots=this._annotations}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._out=function(){this._content.data.apply(null,arguments)},e.prototype.transform=function(t,e,r,o,n,i){var a,s,h,c,p,u,l,f,d,g,y,m,v;a=arguments,1===a[0]&&0===a[1]&&0===a[2]&&1===a[3]&&0===a[4]&&0===a[5]||(this._matrix=(s=arguments,h=this._matrix,c=s[0],p=s[1],u=s[2],l=s[3],f=s[4],d=s[5],g=h[0],y=h[1],[c*g+p*(m=h[2]),c*y+p*(v=h[3]),u*g+l*m,u*y+l*v,f*g+d*m+h[4],f*y+d*v+h[5]]),this._out(t," ",e," ",r," ",o," ",n," ",i," cm"),this._out("\n"))},e.prototype.translate=function(t,e){this.transform(1,0,0,1,t,e)},e.prototype.scale=function(t,e){this.transform(t,0,0,e,0,0)},e.prototype.rotate=function(t){var e=Math.cos(t),r=Math.sin(t);this.transform(e,r,-r,e,0,0)},e.prototype.beginText=function(){this._textMode=!0,this._out("BT","\n")},e.prototype.endText=function(){this._textMode=!1,this._out("ET","\n")},e.prototype._requireTextMode=function(){if(!this._textMode)throw Error("Text mode required; call page.beginText() first")},e.prototype._requireFont=function(){if(!this._font)throw Error("No font selected; call page.setFont() first")},e.prototype.setFont=function(t,e){this._requireTextMode(),null==t?t=this._font:t instanceof tW||(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","\n")},e.prototype.setTextLeading=function(t){this._requireTextMode(),this._out(t," TL","\n")},e.prototype.setTextRenderingMode=function(t){this._requireTextMode(),this._out(t," Tr","\n")},e.prototype.showText=function(t,e){if(this._requireFont(),t.length>1&&e&&this._font instanceof tW){var r=this._font.getTextWidth(this._fontSize,t);this._out(e/r*100," Tz ")}this._out(this._font.encodeText(t)," Tj","\n")},e.prototype.showTextNL=function(t){this._requireFont(),this._out(this._font.encodeText(t)," '","\n")},e.prototype.addLink=function(e,r){var o=this._toPage({x:r.left,y:r.bottom}),n=this._toPage({x:r.right,y:r.top});this._annotations.push(new t({Type:tD("Annot"),Subtype:tD("Link"),Rect:[o.x,o.y,n.x,n.y],Border:[0,0,0],A:new t({Type:tD("Action"),S:tD("URI"),URI:new tN(e)})}))},e.prototype.setStrokeColor=function(t,e,r){this._out(t," ",e," ",r," RG","\n")},e.prototype.setOpacity=function(t){this.setFillOpacity(t),this.setStrokeOpacity(t),this._opacity*=t},e.prototype.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","\n")}},e.prototype.setFillColor=function(t,e,r){this._out(t," ",e," ",r," rg","\n")},e.prototype.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","\n")}},e.prototype.gradient=function(t,e){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);var r,o,n,i,a,s,h,c=(r=this._pdf,o="radial"==t.type,n=function(t,e){var r,o,n,i,a,s=!1,h=[],c=[],p=[],u=[];for(r=1;r<e.length;++r)o=e[r-1],n=e[r],i=o.color,a=n.color,c.push(function(t,e,r,o,n,i,a){var s=tZ([e,r,o,n,i,a]),h=t.GRAD_COL_FUNCTIONS[s];return h||(h=t.GRAD_COL_FUNCTIONS[s]=t.attach(new tz({FunctionType:2,Domain:[0,1],Range:[0,1,0,1,0,1],N:1,C0:[e,r,o],C1:[n,i,a]}))),h}(t,i.r,i.g,i.b,a.r,a.g,a.b)),(i.a<1||a.a<1)&&(s=!0),p.push(n.offset),u.push(0,1);if(s)for(r=1;r<e.length;++r)o=e[r-1],n=e[r],i=o.color,a=n.color,h.push(function(t,e,r){var o=tZ([e,r]),n=t.GRAD_OPC_FUNCTIONS[o];return n||(n=t.GRAD_OPC_FUNCTIONS[o]=t.attach(new tz({FunctionType:2,Domain:[0,1],Range:[0,1],N:1,C0:[e],C1:[r]}))),n}(t,i.a,a.a));return p.pop(),{hasAlpha:s,colors:l(c),opacities:s?l(h):null};function l(t){return 1==t.length?t[0]:{FunctionType:3,Functions:t,Domain:[0,1],Bounds:p,Encode:u}}}(r,t.stops),i=o?[t.start.x,t.start.y,t.start.r,t.end.x,t.end.y,t.end.r]:[t.start.x,t.start.y,t.end.x,t.end.y],a=function(t,e,r,o,n,i){var a,s;if(!i){var h=[e].concat(o);r.forEach(function(t){h.push(t.offset,t.color.r,t.color.g,t.color.b)}),s=tZ(h),a=t.GRAD_COL[s]}return!a&&(a=new tz({Type:tD("Shading"),ShadingType:e?3:2,ColorSpace:tD("DeviceRGB"),Coords:o,Domain:[0,1],Function:n,Extend:[!0,!0]}),t.attach(a),a._resourceName="S"+ ++tv,s&&(t.GRAD_COL[s]=a)),a}(r,o,t.stops,i,n.colors,t.userSpace&&e),s=n.hasAlpha?function(t,e,r,o,n,i){var a,s;if(!i){var h=[e].concat(o);r.forEach(function(t){h.push(t.offset,t.color.a)}),s=tZ(h),a=t.GRAD_OPC[s]}return!a&&(a=new tz({Type:tD("ExtGState"),AIS:!1,CA:1,ca:1,SMask:{Type:tD("Mask"),S:tD("Luminosity"),G:t.attach(new tG("/a0 gs /s0 sh",{Type:tD("XObject"),Subtype:tD("Form"),FormType:1,BBox:i?[i.left,i.top+i.height,i.left+i.width,i.top]:[0,1,1,0],Group:{Type:tD("Group"),S:tD("Transparency"),CS:tD("DeviceGray"),I:!0},Resources:{ExtGState:{a0:{CA:1,ca:1}},Shading:{s0:{ColorSpace:tD("DeviceGray"),Coords:o,Domain:[0,1],ShadingType:e?3:2,Function:n,Extend:[!0,!0]}}}}))}}),t.attach(a),a._resourceName="O"+ ++tv,s&&(t.GRAD_OPC[s]=a)),a}(r,o,t.stops,i,n.opacities,t.userSpace&&e):null,{hasAlpha:n.hasAlpha,shading:a,opacity:s}),p=c.shading._resourceName;this._shResources[p]=c.shading,c.hasAlpha&&(h=c.opacity._resourceName,this._gsResources[h]=c.opacity,this._out("/"+h+" gs ")),this._out("/"+p+" sh","\n"),this.restore()},e.prototype.setDashPattern=function(t,e){this._out(t," ",e," d","\n")},e.prototype.setLineWidth=function(t){this._out(t," w","\n")},e.prototype.setLineCap=function(t){this._out(t," J","\n")},e.prototype.setLineJoin=function(t){this._out(t," j","\n")},e.prototype.setMitterLimit=function(t){this._out(t," M","\n")},e.prototype.save=function(){this._contextStack.push(this._context()),this._out("q","\n")},e.prototype.restore=function(){this._out("Q","\n"),this._context(this._contextStack.pop())},e.prototype.moveTo=function(t,e){this._out(t," ",e," m","\n")},e.prototype.lineTo=function(t,e){this._out(t," ",e," l","\n")},e.prototype.bezier=function(t,e,r,o,n,i){this._out(t," ",e," ",r," ",o," ",n," ",i," c","\n")},e.prototype.bezier1=function(t,e,r,o){this._out(t," ",e," ",r," ",o," y","\n")},e.prototype.bezier2=function(t,e,r,o){this._out(t," ",e," ",r," ",o," v","\n")},e.prototype.close=function(){this._out("h","\n")},e.prototype.rect=function(t,e,r,o){this._out(t," ",e," ",r," ",o," re","\n")},e.prototype.ellipse=function(t,e,r,o){this.moveTo(t+0,e+o),this.bezier(t+.5522847498307936*r,e+o,t+r,e+.5522847498307936*o,t+r,e+0),this.bezier(t+r,e+-(.5522847498307936*o),t+.5522847498307936*r,e+-o,t+0,e+-o),this.bezier(t+-(.5522847498307936*r),e+-o,t+-r,e+-(.5522847498307936*o),t+-r,e+0),this.bezier(t+-r,e+.5522847498307936*o,t+-(.5522847498307936*r),e+o,t+0,e+o)},e.prototype.circle=function(t,e,r){this.ellipse(t,e,r,r)},e.prototype.stroke=function(){this._out("S","\n")},e.prototype.nop=function(){this._out("n","\n")},e.prototype.clip=function(){this._out("W n","\n")},e.prototype.clipStroke=function(){this._out("W S","\n")},e.prototype.closeStroke=function(){this._out("s","\n")},e.prototype.fill=function(){this._out("f","\n")},e.prototype.fillStroke=function(){this._out("B","\n")},e.prototype.drawImage=function(t){var e=this._pdf.getImage(t);e&&(this._xResources[e._resourceName]=e,this._out(e._resourceName," Do","\n"))},e.prototype.comment=function(t){var e=this;t.split(/\r?\n/g).forEach(function(t){e._out("% ",t,"\n")})},e.prototype._context=function(t){if(null==t)return{opacity:this._opacity,matrix:this._matrix};this._opacity=t.opacity,this._matrix=t.matrix},e.prototype._toPage=function(t){var e=this._matrix,r=e[0],o=e[1],n=e[2],i=e[3],a=e[4],s=e[5];return{x:r*t.x+n*t.y+a,y:o*t.x+i*t.y+s}},e}(tz);function tK(t){return t.replace(/^\s*(['"])(.*)\1\s*$/,"$2")}function tQ(t){var e=/^\s*((normal|italic)\s+)?((normal|small-caps)\s+)?((normal|bold|\d+)\s+)?(([0-9.]+)(px|pt))(\/(([0-9.]+)(px|pt)|normal))?\s+(.*?)\s*$/i.exec(t);if(!e)return{fontSize:12,fontFamily:"sans-serif"};var r=e[8]?parseInt(e[8],10):12;return{italic:e[2]&&"italic"==e[2].toLowerCase(),variant:e[4],bold:e[6]&&/bold|700/i.test(e[6]),fontSize:r,lineHeight:e[12]?"normal"==e[12]?r:parseInt(e[12],10):null,fontFamily:e[14].split(/\s*,\s*/g).map(tK)}}function t0(t){var e,r,o=t.fontFamily;if(o instanceof Array)for(var n=0;n<o.length&&(e=o[n],t.bold&&(e+="|bold"),t.italic&&(e+="|italic"),!(r=t1[e.toLowerCase()]));++n);else r=t1[o.toLowerCase()];for(;"function"==typeof r;)r=r();return r||(r="Times-Roman"),r}var t1={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"};function t2(t,e){t1[t=t.toLowerCase()]=function(){return t1[e]},t1[t+"|bold"]=function(){return t1[e+"|bold"]},t1[t+"|italic"]=function(){return t1[e+"|italic"]},t1[t+"|bold|italic"]=function(){return t1[e+"|bold|italic"]}}function t3(){var t,e,r=new Promise(function(o,n){t=function(t){return r._state="resolved",o(t),r},e=function(t){return r._state="rejected",n(t),r}});return r._state="pending",r.resolve=t,r.reject=e,r.state=function(){return r._state},r}t2("Times New Roman","serif"),t2("Courier New","monospace"),t2("Arial","sans-serif"),t2("Helvetica","sans-serif"),t2("Verdana","sans-serif"),t2("Tahoma","sans-serif"),t2("Georgia","sans-serif"),t2("Monaco","monospace"),t2("Andale Mono","monospace");var t6=function(t){function e(e){t.call(this),this._size=e,this._length=0,this._map={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.put=function(t,e){var r=this._map,o={key:t,value:e};r[t]=o,this._head?(this._tail.newer=o,o.older=this._tail,this._tail=o):this._head=this._tail=o,this._length>=this._size?(r[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++},e.prototype.get=function(t){var e=this._map[t];if(e)return e===this._head&&e!==this._tail&&(this._head=e.newer,this._head.older=null),e!==this._tail&&(e.older&&(e.older.newer=e.newer,e.newer.older=e.older),e.older=this._tail,e.newer=null,this._tail.newer=e,this._tail=e),e.value},e}(b),t5=/\r?\n|\r|\t/g;function t9(){return{width:0,height:0,baseline:0}}var t4={baselineMarkerSize:1};"undefined"!=typeof document&&((o=document.createElement("div")).style.setProperty("position","absolute","important"),o.style.setProperty("top","-4000px","important"),o.style.setProperty("width","auto","important"),o.style.setProperty("height","auto","important"),o.style.setProperty("padding","0","important"),o.style.setProperty("margin","0","important"),o.style.setProperty("border","0","important"),o.style.setProperty("line-height","normal","important"),o.style.setProperty("visibility","hidden","important"),o.style.setProperty("white-space","pre","important"));var t8=function(t){function e(e){t.call(this),this._cache=new t6(1e3),this.options=Object.assign({},t4,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.measure=function(t,e,r){if(void 0===r&&(r={}),null==t)return t9();var n=function(t){for(var e=2166136261,r=0;r<t.length;++r)e+=(e<<1)+(e<<4)+(e<<7)+(e<<8)+(e<<24),e^=t.charCodeAt(r);return e>>>0}(t+function(t){var e=[];for(var r in t)e.push(r+t[r]);return e.sort().join("")}(e)),i=this._cache.get(n);if(i)return i;var a=t9(),s=r.box||o,h=this._baselineMarker().cloneNode(!1);for(var c in e){var p=e[c];void 0!==p&&(s.style[c]=p)}var u=!1!==r.normalizeText?String(t).replace(t5," "):String(t);return s.textContent=u,s.appendChild(h),document.body.appendChild(s),u.length&&(a.width=s.offsetWidth-this.options.baselineMarkerSize,a.height=s.offsetHeight,a.baseline=h.offsetTop+this.options.baselineMarkerSize),a.width>0&&a.height>0&&this._cache.put(n,a),s.parentNode.removeChild(s),a},e.prototype._baselineMarker=function(){var t=document.createElement("div");return t.style.display="inline-block",t.style.verticalAlign="baseline",t.style.width=this.options.baselineMarkerSize+"px",t.style.height=this.options.baselineMarkerSize+"px",t.style.overflow="hidden",t},e}(b);function t7(t,e,r){return t8.current.measure(t,e,r)}t8.current=new t8;var et={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"};function ee(t){for(var e=[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<e[0]?e.shift():(r+=et[e[0]],t-=e[0]);return r}function er(t,e){return t.length<2?t.slice():function t(r){if(r.length<=1)return r;var o=Math.floor(r.length/2),n=r.slice(0,o),i=r.slice(o);return function(t,r){for(var o=[],n=0,i=0,a=0;n<t.length&&i<r.length;)0>=e(t[n],r[i])?o[a++]=t[n++]:o[a++]=r[i++];return n<t.length&&o.push.apply(o,t.slice(n)),i<r.length&&o.push.apply(o,r.slice(i)),o}(n=t(n),i=t(i))}(t)}var eo={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},en=$.browser,ei=function(t){var e=Object.keys(eo);e.push("transparent");var r=RegExp("^("+e.join("|")+")(\\W|$)","i");return ei=function(t){return r.exec(t)},r.exec(t)},ea=function(t){function e(){t.call(this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toHSV=function(){return this},e.prototype.toRGB=function(){return this},e.prototype.toHex=function(t){return this.toBytes().toHex(t)},e.prototype.toBytes=function(){return this},e.prototype.toCss=function(t){return"#"+this.toHex(t)},e.prototype.toCssRgba=function(){var t=this.toBytes();return"rgba("+t.r+", "+t.g+", "+t.b+", "+parseFloat(Number(this.a).toFixed(3))+")"},e.prototype.toDisplay=function(){return en.msie&&en.version<9?this.toCss():this.toCssRgba()},e.prototype.equals=function(t){return t===this||null!=t&&this.toCssRgba()===ed(t).toCssRgba()},e.prototype.diff=function(t){if(null===t)return NaN;var e=this.toBytes(),r=t.toBytes();return Math.sqrt(Math.pow((e.r-r.r)*.3,2)+Math.pow((e.g-r.g)*.59,2)+Math.pow((e.b-r.b)*.11,2))},e.prototype.clone=function(){var t=this.toBytes();return t===this&&(t=new eh(t.r,t.g,t.b,t.a)),t},e}(b),es=function(t){function e(e,r,o,n){t.call(this),this.r=e,this.g=r,this.b=o,this.a=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toHSV=function(){var t,e,r=this.r,o=this.g,n=this.b,i=Math.max(r,o,n),a=i-Math.min(r,o,n);return 0===a?new ep(0,0,i,this.a):(0!==i?(e=a/i,(t=(r===i?(o-n)/a:o===i?2+(n-r)/a:4+(r-o)/a)*60)<0&&(t+=360)):(e=0,t=-1),new ep(t,e,i,this.a))},e.prototype.toHSL=function(){var t,e,r=this.r,o=this.g,n=this.b,i=Math.max(r,o,n),a=Math.min(r,o,n),s=(i+a)/2;if(i===a)t=e=0;else{var h=i-a;switch(e=s>.5?h/(2-i-a):h/(i+a),i){case r:t=(o-n)/h+(o<n?6:0);break;case o:t=(n-r)/h+2;break;case n:t=(r-o)/h+4}}return new eu(60*t,100*e,100*s,this.a)},e.prototype.toBytes=function(){return new eh(255*this.r,255*this.g,255*this.b,this.a)},e}(ea),eh=function(t){function e(e,r,o,n){t.call(this,Math.round(e),Math.round(r),Math.round(o),n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toRGB=function(){return new t(this.r/255,this.g/255,this.b/255,this.a)},e.prototype.toHSV=function(){return this.toRGB().toHSV()},e.prototype.toHSL=function(){return this.toRGB().toHSL()},e.prototype.toHex=function(t){var e=ec(this.r,2)+ec(this.g,2)+ec(this.b,2);return t&&t.alpha&&(e+=ec(Math.round(255*this.a),2)),e},e.prototype.toBytes=function(){return this},e}(es);function ec(t,e,r){void 0===r&&(r="0");for(var o=t.toString(16);e>o.length;)o=r+o;return o}var ep=function(t){function e(e,r,o,n){t.call(this),this.h=e,this.s=r,this.v=o,this.a=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toRGB=function(){var t,e,r,o=this.h,n=this.s,i=this.v;if(0===n)t=e=r=i;else{var a=Math.floor(o/=60),s=o-a,h=i*(1-n),c=i*(1-n*s),p=i*(1-n*(1-s));switch(a){case 0:t=i,e=p,r=h;break;case 1:t=c,e=i,r=h;break;case 2:t=h,e=i,r=p;break;case 3:t=h,e=c,r=i;break;case 4:t=p,e=h,r=i;break;default:t=i,e=h,r=c}}return new es(t,e,r,this.a)},e.prototype.toHSL=function(){return this.toRGB().toHSL()},e.prototype.toBytes=function(){return this.toRGB().toBytes()},e}(ea),eu=function(t){function e(e,r,o,n){t.call(this),this.h=e,this.s=r,this.l=o,this.a=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toRGB=function(){var t,e,r,o=this.h/360,n=this.s/100,i=this.l/100;if(0===n)t=e=r=i;else{var a=i<.5?i*(1+n):i+n-i*n,s=2*i-a;t=el(s,a,o+1/3),e=el(s,a,o),r=el(s,a,o-1/3)}return new es(t,e,r,this.a)},e.prototype.toHSV=function(){return this.toRGB().toHSV()},e.prototype.toBytes=function(){return this.toRGB().toBytes()},e}(ea);function el(t,e,r){var o=r;return(o<0&&(o+=1),o>1&&(o-=1),o<1/6)?t+(e-t)*6*o:o<.5?e:o<2/3?t+(e-t)*(2/3-o)*6:t}function ef(t){return parseFloat(parseFloat(parseInt(t,16)/255).toFixed(3))}function ed(t,e){if(!t||"none"===t)return null;if(t instanceof ea)return t;var r,o,n=t.toLowerCase();if(r=ei(n))return(n="transparent"===r[1]?new es(1,1,1,0):ed(eo[r[1]],e)).match=[r[1]],n;if((r=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(n))?o=new eh(parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16),1):(r=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(n))?o=new eh(parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16),parseInt(r[3]+r[3],16),1):(r=/^#?([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(n))?o=new eh(parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16),parseInt(r[3]+r[3],16),ef(r[4]+r[4])):(r=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(n))?o=new eh(parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16),ef(r[4])):(r=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(n))?o=new eh(parseInt(r[1],10),parseInt(r[2],10),parseInt(r[3],10),1):(r=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(n))?o=new eh(parseInt(r[1],10),parseInt(r[2],10),parseInt(r[3],10),parseFloat(r[4])):(r=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(n))?o=new es(parseFloat(r[1])/100,parseFloat(r[2])/100,parseFloat(r[3])/100,1):(r=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(n))?o=new es(parseFloat(r[1])/100,parseFloat(r[2])/100,parseFloat(r[3])/100,parseFloat(r[4])):(r=/^color\(\s*srgb\s*([0-9]*\.?[0-9]+)\s+([0-9]*\.?[0-9]+)\s+([0-9]*\.?[0-9]+)\s*(\/\s+([0-9]*\.?[0-9]+))?\)/.exec(n))&&(o=new es(parseFloat(r[1]),parseFloat(r[2]),parseFloat(r[3]),parseFloat(r[5]||"1"))),o)o.match=r;else if(!e)throw Error("Cannot parse color: "+n);return o}var eg={}.toString,ey=function(t){function e(e,r){for(var o in void 0===r&&(r=""),t.call(this),this.prefix=r,e){var n=e[o];n=this._wrap(n,o),this[o]=n}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){for(var e=t.split("."),r=this;e.length&&r;)r=r[e.shift()];return r},e.prototype.set=function(t,e){this.get(t)!==e&&(this._set(t,this._wrap(e,t)),this.optionsChange({field:this.prefix+t,value:e}))},e.prototype._set=function(t,r){var o=t.indexOf(".")>=0,n=this,i=t;if(o){for(var a=i.split("."),s=this.prefix;a.length>1;){s+=(i=a.shift())+".";var h=n[i];h||((h=new e({},s)).addObserver(this),n[i]=h),n=h}i=a[0]}n._clear(i),n[i]=r},e.prototype._clear=function(t){var e=this[t];e&&e.removeObserver&&e.removeObserver(this)},e.prototype._wrap=function(t,r){var o=eg.call(t),n=t;return null!==n&&x(n)&&"[object Object]"===o&&(t instanceof e||t instanceof b||(n=new e(n,this.prefix+r+".")),n.addObserver(this)),n},e}(T),em=1;function ev(){return"kdef"+em++}function ew(t){return""===t||null===t||"none"===t||"transparent"===t||!x(t)}var eb=function(t){function e(e){t.call(this),this._initOptions(e)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={nodeType:{configurable:!0}};return r.nodeType.get=function(){return"Rect"},e.prototype._initOptions=function(t){void 0===t&&(t={});var e=t.clip,r=t.transform;r&&(t.transform=B(r)),e&&!e.id&&(e.id=ev()),this.options=new ey(t),this.options.addObserver(this)},e.prototype.transform=function(t){if(!x(t))return this.options.get("transform");this.options.set("transform",B(t))},e.prototype.parentTransform=function(){for(var t,e=this;e.parent;){var r=(e=e.parent).transform();r&&(t=r.matrix().multiplyCopy(t||O.unit()))}if(t)return B(t)},e.prototype.currentTransform=function(t){void 0===t&&(t=this.parentTransform());var e,r=A(this.transform()),o=A(t);if(e=r&&o?o.multiplyCopy(r):r||o)return B(e)},e.prototype.visible=function(t){return x(t)?(this.options.set("visible",t),this):!1!==this.options.get("visible")},e.prototype.clip=function(t){var e=this.options;return x(t)?(t&&!t.id&&(t.id=ev()),e.set("clip",t),this):e.get("clip")},e.prototype.opacity=function(t){var e;return x(t)?(this.options.set("opacity",t),this):x(e=this.options.get("opacity"))?e:1},e.prototype.className=function(t){return x(t)?(this.options.set("className",t),this):this.options.get("className")},e.prototype.clippedBBox=function(t){var e=this._clippedBBox(t);if(e){var r=this.clip();return r?F.intersect(e,r.bbox(t)):e}},e.prototype.containsPoint=function(t,e){if(this.visible()){var r=this.currentTransform(e),o=t;return r&&(o=t.transformCopy(r.matrix().invert())),this._hasFill()&&this._containsPoint(o)||this._isOnPath&&this._hasStroke()&&this._isOnPath(o)}return!1},e.prototype._hasFill=function(){var t=this.options.fill;return t&&("Pattern"===t.nodeType||!ew(t.color))},e.prototype._hasStroke=function(){var t=this.options.stroke;return t&&t.width>0&&!ew(t.color)},e.prototype._clippedBBox=function(t){return this.bbox(t)},Object.defineProperties(e.prototype,r),e}(T),ex=function(t){return function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fill=function(t,e){var r=this.options;if(x(t)){if(t&&"Gradient"!==t.nodeType){var o={color:t};x(e)&&(o.opacity=e),r.set("fill",o)}else r.set("fill",t);return this}return r.get("fill")},e.prototype.stroke=function(t,e,r){return x(t)?(this.options.set("stroke.color",t),x(e)&&this.options.set("stroke.width",e),x(r)&&this.options.set("stroke.opacity",r),this):this.options.get("stroke")},e}(t)},e_=function(t,e){var r=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(t);return!function(t,e){for(var r=0;r<e.length;r++)t[e[r]]=function(t){var e="_"+t;return function(t){return x(t)?(this._observerField(e,P.create(t)),this.geometryChange(),this):this[e]}}(e[r])}(r.prototype,e),r},eS=function(t){function e(e,r,o){void 0===r&&(r=new P),void 0===o&&(o={}),t.call(this,o),this.content(e),this.position(r),this.options.font||(this.options.font="12px sans-serif"),x(this.options.fill)||this.fill("#000")}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={nodeType:{configurable:!0}};return r.nodeType.get=function(){return"Text"},e.prototype.content=function(t){return x(t)?(this.options.set("content",t),this):this.options.get("content")},e.prototype.measure=function(){return t7(this.content(),{font:this.options.get("font")})},e.prototype.rect=function(){var t=this.measure();return new F(this.position().clone(),[t.width,t.height])},e.prototype.bbox=function(t){var e=A(this.currentTransform(t));return this.rect().bbox(e)},e.prototype.rawBBox=function(){return this.rect().bbox()},e.prototype._containsPoint=function(t){return this.rect().containsPoint(t)},Object.defineProperties(e.prototype,r),e}(ex(e_(eb,["position"])));function eC(t,e,r){for(var o,n=0;n<t.length;n++){var i=t[n];if(i.visible()){var a=e?i.bbox(r):i.rawBBox();a&&(o=o?F.union(o,a):a)}}return o}function ek(t,e){for(var r,o=0;o<t.length;o++){var n=t[o];if(n.visible()){var i=n.clippedBBox(e);i&&(r=r?F.union(r,i):i)}}return r}var eO=function(t){function e(e){t.call(this,e),this.children=[]}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={nodeType:{configurable:!0}};return r.nodeType.get=function(){return"Group"},e.prototype.childrenChange=function(t,e,r){this.trigger("childrenChange",{action:t,items:e,index:r})},e.prototype.append=function(){var t,e;return t=this.children,e=arguments,t.push.apply(t,e),this._reparent(arguments,this),this.childrenChange("add",arguments),this},e.prototype.insert=function(t,e){return this.children.splice(t,0,e),e.parent=this,this.childrenChange("add",[e],t),this},e.prototype.insertAt=function(t,e){return this.insert(e,t)},e.prototype.remove=function(t){var e=this.children.indexOf(t);return e>=0&&(this.children.splice(e,1),t.parent=null,this.childrenChange("remove",[t],e)),this},e.prototype.removeAt=function(t){if(0<=t&&t<this.children.length){var e=this.children[t];this.children.splice(t,1),e.parent=null,this.childrenChange("remove",[e],t)}return this},e.prototype.clear=function(){var t=this.children;return this.children=[],this._reparent(t,null),this.childrenChange("remove",t,0),this},e.prototype.bbox=function(t){return eC(this.children,!0,this.currentTransform(t))},e.prototype.rawBBox=function(){return eC(this.children,!1)},e.prototype._clippedBBox=function(t){return ek(this.children,this.currentTransform(t))},e.prototype.currentTransform=function(t){return eb.prototype.currentTransform.call(this,t)||null},e.prototype.containsPoint=function(t,e){if(this.visible()){for(var r=this.children,o=this.currentTransform(e),n=0;n<r.length;n++)if(r[n].containsPoint(t,o))return!0}return!1},e.prototype._reparent=function(t,e){for(var r=0;r<t.length;r++){var o=t[r],n=o.parent;n&&n!==this&&n.remove&&n.remove(o),o.parent=e}},Object.defineProperties(e.prototype,r),e}(function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.traverse=function(t){for(var e=this.children,r=0;r<e.length;r++){var o=e[r];o.traverse?o.traverse(t):t(o)}return this},e}(eb)),eT=[].push,eM=[].pop,eA=[].splice,eP=[].shift,eR=[].slice,eF=[].unshift,eI=function(t){function e(e){void 0===e&&(e=[]),t.call(this),this.length=0,this._splice(0,e.length,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.elements=function(t){return t?(this._splice(0,this.length,t),this._change(),this):this.slice(0)},e.prototype.push=function(){var t=arguments,e=eT.apply(this,t);return this._add(t),e},e.prototype.slice=function(){return eR.call(this)},e.prototype.pop=function(){var t=this.length,e=eM.apply(this);return t&&this._remove([e]),e},e.prototype.splice=function(t,e){var r=eR.call(arguments,2),o=this._splice(t,e,r);return this._change(),o},e.prototype.shift=function(){var t=this.length,e=eP.apply(this);return t&&this._remove([e]),e},e.prototype.unshift=function(){var t=arguments,e=eF.apply(this,t);return this._add(t),e},e.prototype.indexOf=function(t){for(var e=this.length,r=0;r<e;r++)if(this[r]===t)return r;return -1},e.prototype._splice=function(t,e,r){var o=eA.apply(this,[t,e].concat(r));return this._clearObserver(o),this._setObserver(r),o},e.prototype._add=function(t){this._setObserver(t),this._change()},e.prototype._remove=function(t){this._clearObserver(t),this._change()},e.prototype._setObserver=function(t){for(var e=0;e<t.length;e++)t[e].addObserver(this)},e.prototype._clearObserver=function(t){for(var e=0;e<t.length;e++)t[e].removeObserver(this)},e.prototype._change=function(){},e}(T),eL=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._change=function(){this.geometryChange()},e}(eI);function eE(t,e,r){var o=Math.atan2(e.y-t.y,e.x-t.x)/_;return r.transformCopy(B().rotate(-o,t)).x<t.x}function eN(t,e,r){var o=1-t;return Math.pow(o,3)*r[0][e]+3*Math.pow(o,2)*t*r[1][e]+3*Math.pow(t,2)*o*r[2][e]+Math.pow(t,3)*r[3][e]}function eB(t,e){return[-t[0][e]+3*t[1][e]-3*t[2][e]+t[3][e],3*(t[0][e]-2*t[1][e]+t[2][e]),3*(-t[0][e]+t[1][e]),t[0][e]]}var ej=function(t){function e(e,r){void 0===e&&(e=0),void 0===r&&(r=0),t.call(this),this.real=e,this.img=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.add=function(t){return new e(k(this.real+t.real,10),k(this.img+t.img,10))},e.prototype.addConstant=function(t){return new e(this.real+t,this.img)},e.prototype.negate=function(){return new e(-this.real,-this.img)},e.prototype.multiply=function(t){return new e(this.real*t.real-this.img*t.img,this.real*t.img+this.img*t.real)},e.prototype.multiplyConstant=function(t){return new e(this.real*t,this.img*t)},e.prototype.nthRoot=function(t){var r=Math.atan2(this.img,this.real),o=Math.pow(Math.sqrt(Math.pow(this.img,2)+Math.pow(this.real,2)),1/t);return new e(o*Math.cos(r/t),o*Math.sin(r/t))},e.prototype.equals=function(t){return this.real===t.real&&this.img===t.img},e.prototype.isReal=function(){return 0===this.img},e}(b);function eD(t,e,r,o){if(0===t){var n;return n=Math.sqrt(Math.pow(r,2)-4*e*o),[(-r+n)/(2*e),(-r-n)/(2*e)]}var i,a,s,h,c,p,u,l=(2*Math.pow(e,3)-9*t*e*r+27*Math.pow(t,2)*o)/(27*Math.pow(t,3)),f=Math.pow((3*t*r-Math.pow(e,2))/(3*Math.pow(t,2))/3,3)+Math.pow(l/2,2),d=new ej(0,1),g=-e/(3*t);f<0?(i=new ej(-l/2,Math.sqrt(-f)).nthRoot(3),a=new ej(-l/2,-Math.sqrt(-f)).nthRoot(3)):(i=new ej(((i=-l/2+Math.sqrt(f))<0?-1:1)*Math.pow(Math.abs(i),1/3)),a=new ej(((a=-l/2-Math.sqrt(f))<0?-1:1)*Math.pow(Math.abs(a),1/3))),s=i.add(a),p=i.add(a).multiplyConstant(-.5),u=i.add(a.negate()).multiplyConstant(Math.sqrt(3)/2),h=p.add(d.multiply(u)),c=p.add(d.negate().multiply(u));var y=[];return s.isReal()&&y.push(k(s.real+g,10)),h.isReal()&&y.push(k(h.real+g,10)),c.isReal()&&y.push(k(c.real+g,10)),y}function ez(t,e,r,o,n){for(var i=eB(t,o),a=eD(i[0],i[1],i[2],i[3]-e[o]),s=0;s<a.length;s++)if(0<=a[s]&&a[s]<=1&&Math.abs(eN(a[s],r,t)-e[r])<=n)return!0}function eG(t,e,r){var o;if(t.x!==e.x){var n=Math.min(t.x,e.x),i=Math.max(t.x,e.x),a=Math.min(t.y,e.y),s=Math.max(t.y,e.y),h=n<=r.x&&r.x<i;o=a===s?r.y<=a&&h:h&&(s-a)*((t.x-e.x)*(t.y-e.y)>0?r.x-n:i-r.x)/(i-n)+a-r.y>=0}return o?1:0}var eq=function(t){function e(e,r,o){t.call(this),this.anchor(e||new P),this.controlIn(r),this.controlOut(o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.bboxTo=function(t,e){var r=this.anchor().transformCopy(e),o=t.anchor().transformCopy(e);return this.controlOut()&&t.controlIn()?this._curveBoundingBox(r,this.controlOut().transformCopy(e),t.controlIn().transformCopy(e),o):this._lineBoundingBox(r,o)},e.prototype._lineBoundingBox=function(t,e){return F.fromPoints(t,e)},e.prototype._curveBoundingBox=function(t,e,r,o){var n=[t,e,r,o],i=this._curveExtremesFor(n,"x"),a=this._curveExtremesFor(n,"y"),s=eU([i.min,i.max,t.x,o.x]),h=eU([a.min,a.max,t.y,o.y]);return F.fromPoints(new P(s.min,h.min),new P(s.max,h.max))},e.prototype._curveExtremesFor=function(t,e){var r=this._curveExtremes(t[0][e],t[1][e],t[2][e],t[3][e]);return{min:eN(r.min,e,t),max:eN(r.max,e,t)}},e.prototype._curveExtremes=function(t,e,r,o){var n=t-3*e+3*r-o,i=-2*(t-2*e+r),a=t-e,s=Math.sqrt(i*i-4*n*a),h=0,c=1;0===n?0!==i&&(h=c=-a/i):isNaN(s)||(h=(-i+s)/(2*n),c=(-i-s)/(2*n));var p=Math.max(Math.min(h,c),0);(p<0||p>1)&&(p=0);var u=Math.min(Math.max(h,c),1);return(u>1||u<0)&&(u=1),{min:p,max:u}},e.prototype._intersectionsTo=function(t,e){return this.controlOut()&&t.controlIn()?function(t,e,r){for(var o,n=eB(t,"x"),i=eD(n[0],n[1],n[2],n[3]-e.x),a=0,s=0;s<i.length;s++)(I(o=eN(i[s],"y",t),e.y)||o>e.y)&&((0===i[s]||1===i[s])&&r.bottomRight().x>e.x||0<i[s]&&i[s]<1)&&a++;return a}([this.anchor(),this.controlOut(),t.controlIn(),t.anchor()],e,this.bboxTo(t)):eG(this.anchor(),t.anchor(),e)},e.prototype._isOnCurveTo=function(t,e,r,o){if(this.bboxTo(t).expand(r,r).containsPoint(e)){var n=this.anchor(),i=this.controlOut(),a=t.controlIn(),s=t.anchor();if("start"===o&&n.distanceTo(e)<=r)return!eE(n,i,e);if("end"===o&&s.distanceTo(e)<=r)return!eE(s,a,e);var h=[n,i,a,s];if(ez(h,e,"x","y",r)||ez(h,e,"y","x",r))return!0;var c=B().rotate(45,e),p=[n.transformCopy(c),i.transformCopy(c),a.transformCopy(c),s.transformCopy(c)];return ez(p,e,"x","y",r)||ez(p,e,"y","x",r)}},e.prototype._isOnLineTo=function(t,e,r){var o=this.anchor(),n=t.anchor(),i=Math.atan2(n.y-o.y,n.x-o.x)/_;return new F([o.x,o.y-r/2],[o.distanceTo(n),r]).containsPoint(e.transformCopy(B().rotate(-i,o)))},e.prototype._isOnPathTo=function(t,e,r,o){return this.controlOut()&&t.controlIn()?this._isOnCurveTo(t,e,r/2,o):this._isOnLineTo(t,e,r)},e}(e_(T,["anchor","controlIn","controlOut"]));function eU(t){for(var e=t.length,r=S,o=C,n=0;n<e;n++)o=Math.max(o,t[n]),r=Math.min(r,t[n]);return{min:r,max:o}}function eH(t){if(t)return t[t.length-1]}function e$(t,e){for(;e[t+1]&&(e[t].equals(e[t+1])||e[t+1].equals(e[t+2]));)e.splice(t+1,1)}function eX(t,e){var r=(e.y-t.y)/(e.x-t.x);return[t.y-r*t.x,r]}function eV(t,e,r){var o="x",n="y",i=!1,a=!1;if(s=e0(eX(t,e),r.x),t.x===e.x&&e.x===r.x||k(s,1)===k(r.y,1))h=eY(t,e,"x","y");else{var s,h,c={x:eZ(t,e,r,"x"),y:eZ(t,e,r,"y")};c.x&&c.y?(h=eY(t,r,"x","y"),i=!0):(function(t,e,r){var o=!1;if(t.x===e.x)o=!0;else if(e.x===r.x)(e.y<r.y&&t.y<=e.y||r.y<e.y&&e.y<=t.y)&&(o=!0);else{var n=e0(eX(t,e),r.x);t.y<=e.y&&r.y<=n||e.y<=t.y&&r.y>=n||(o=!0)}return o}(t,e,r)&&(o="y",n="x"),c[o]?h=0:(h=.01*(r[n]<t[n]&&t[n]<=e[n]||t[n]<r[n]&&e[n]<=t[n]?(r[n]-t[n])*(e[o]-t[o])<=0?-1:1:-((r[o]-t[o])*(e[n]-t[n])<=0?-1:1)),a=!0))}var p=eK(h,t,e,o,n);if(a){var u=o;o=n,n=u}var l=eJ(h,e,r,o,n);return i&&(eW(t,e,p,h),eW(e,r,l,h)),[p,l]}function eW(t,e,r,o){t.y<e.y?e.y<r.y?(r.x=t.x+(e.y-t.y)/o,r.y=e.y):r.y<t.y&&(r.x=e.x-(e.y-t.y)/o,r.y=t.y):r.y<e.y?(r.x=t.x-(t.y-e.y)/o,r.y=e.y):t.y<r.y&&(r.x=e.x+(t.y-e.y)/o,r.y=t.y)}function eY(t,e,r,o){var n=e[r]-t[r],i=e[o]-t[o];return 0===n?0:i/n}function eZ(t,e,r,o){return r[o]>e[o]&&e[o]>t[o]||r[o]<e[o]&&e[o]<t[o]}function eJ(t,e,r,o,n){var i=e[o],a=(r[o]-i)*.333;return eQ(i+a,e[n]+a*t,o,n)}function eK(t,e,r,o,n){var i=e[o],a=r[o],s=(a-i)*.333;return eQ(a-s,r[n]-s*t,o,n)}function eQ(t,e,r,o){var n=new P;return n[r]=t,n[o]=e,n}function e0(t,e){for(var r=t.length,o=0,n=0;n<r;n++)o+=Math.pow(e,n)*t[n];return o}var e1=O.IDENTITY.toString(),e2=function(t){return function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.bbox=function(t){var e,r=A(this.currentTransform(t)),o=r?r.toString():e1;this._bboxCache&&this._matrixHash===o?e=this._bboxCache.clone():(e=this._bbox(r),this._bboxCache=e?e.clone():null,this._matrixHash=o);var n=this.options.get("stroke.width");return n&&e&&e.expand(n/2),e},e.prototype.geometryChange=function(){delete this._bboxCache,this.trigger("geometryChange",{element:this})},e}(t)};function e3(t,e,r){for(var o=e?0:1,n=0;n<t.length;n+=2)t.splice(n+o,0,r)}function e6(t,e){if(t&&e)return e.scaleCopy(2).translate(-t.x,-t.y)}var e5=1/3;function e9(t,e,r){var o=e.clone().scale(2/3);return{controlOut:o.clone().translateWith(t.scaleCopy(e5)),controlIn:o.translateWith(r.scaleCopy(e5))}}var e4={l:function(t,e){for(var r=e.parameters,o=e.position,n=0;n<r.length;n+=2){var i=new P(r[n],r[n+1]);e.isRelative&&i.translateWith(o),t.lineTo(i.x,i.y),o.x=i.x,o.y=i.y}},c:function(t,e){for(var r=e.parameters,o=e.position,n=0;n<r.length;n+=6){var i=new P(r[n],r[n+1]),a=new P(r[n+2],r[n+3]),s=new P(r[n+4],r[n+5]);e.isRelative&&(a.translateWith(o),i.translateWith(o),s.translateWith(o)),t.curveTo(i,a,s),o.x=s.x,o.y=s.y}},v:function(t,e){var r=e.isRelative?0:e.position.x;e3(e.parameters,!0,r),this.l(t,e)},h:function(t,e){var r=e.isRelative?0:e.position.y;e3(e.parameters,!1,r),this.l(t,e)},a:function(t,e){for(var r=e.parameters,o=e.position,n=0;n<r.length;n+=7){var i=r[n],a=r[n+1],s=r[n+2],h=r[n+3],c=r[n+4],p=new P(r[n+5],r[n+6]);e.isRelative&&p.translateWith(o),(o.x!==p.x||o.y!==p.y)&&(t.arcTo(p,i,a,h,c,s),o.x=p.x,o.y=p.y)}},s:function(t,e){var r,o=e.parameters,n=e.position,i=e.previousCommand;("s"===i||"c"===i)&&(r=eH(eH(t.paths).segments).controlIn());for(var a=0;a<o.length;a+=4){var s=new P(o[a],o[a+1]),h=new P(o[a+2],o[a+3]),c=void 0;e.isRelative&&(s.translateWith(n),h.translateWith(n)),c=r?e6(r,n):n.clone(),r=s,t.curveTo(c,s,h),n.x=h.x,n.y=h.y}},q:function(t,e){for(var r=e.parameters,o=e.position,n=0;n<r.length;n+=4){var i=new P(r[n],r[n+1]),a=new P(r[n+2],r[n+3]);e.isRelative&&(i.translateWith(o),a.translateWith(o));var s=e9(o,i,a);t.curveTo(s.controlOut,s.controlIn,a),o.x=a.x,o.y=a.y}},t:function(t,e){var r,o=e.parameters,n=e.position,i=e.previousCommand;("q"===i||"t"===i)&&(r=eH(eH(t.paths).segments).controlIn().clone().translateWith(n.scaleCopy(-1/3)).scale(1.5));for(var a=0;a<o.length;a+=2){var s=new P(o[a],o[a+1]);e.isRelative&&s.translateWith(n),r=r?e6(r,n):n.clone();var h=e9(n,r,s);t.curveTo(h.controlOut,h.controlIn,s),n.x=s.x,n.y=s.y}}},e8=/([a-df-z]{1})([^a-df-z]*)(z)?/gi,e7=/[,\s]?([+\-]?(?:\d*\.\d+|\d+)(?:[eE][+\-]?\d+)?)/g,rt=function(t,e){var r,o=new P;return e.replace(e8,function(e,n,i,a){var s,h,c=n.toLowerCase(),p=c===n,u=(s=i.trim(),h=[],s.replace(e7,function(t,e){h.push(parseFloat(e))}),h);if("m"===c&&(p?(o.x+=u[0],o.y+=u[1]):(o.x=u[0],o.y=u[1]),t.moveTo(o.x,o.y),u.length>2&&(c="l",u.splice(0,2))),e4[c])e4[c](t,{parameters:u,position:o,isRelative:p,previousCommand:r}),a&&"z"===a.toLowerCase()&&t.close();else if("m"!==c)throw Error("Error while parsing SVG path. Unsupported command: "+c);r=c}),t};function re(t,e,r){return Math.max(Math.min(t,r),e)}var rr=function(t){function e(e){t.call(this,e),this.segments=new eL,this.segments.addObserver(this),x(this.options.stroke)||(this.stroke("#000"),x(this.options.stroke.lineJoin)||this.options.set("stroke.lineJoin","miter"))}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={nodeType:{configurable:!0}};return r.nodeType.get=function(){return"Path"},e.prototype.moveTo=function(t,e){return this.suspend(),this.segments.elements([]),this.resume(),this.lineTo(t,e),this},e.prototype.lineTo=function(t,e){var r=new eq(x(e)?new P(t,e):t);return this.segments.push(r),this},e.prototype.curveTo=function(t,e,r){if(this.segments.length>0){var o=eH(this.segments),n=new eq(r,e);this.suspend(),o.controlOut(t),this.resume(),this.segments.push(n)}return this},e.prototype.arc=function(t,e,r,o,n){if(this.segments.length>0){var i=eH(this.segments).anchor(),a=t*_,s=new D(new P(i.x-r*Math.cos(a),i.y-o*Math.sin(a)),{startAngle:t,endAngle:e,radiusX:r,radiusY:o,anticlockwise:n});this._addArcSegments(s)}return this},e.prototype.arcTo=function(t,e,r,o,n,i){if(this.segments.length>0){var a=eH(this.segments).anchor(),s=D.fromPoints(a,P.create(t),e,r,o,n,i);this._addArcSegments(s)}return this},e.prototype._addArcSegments=function(t){this.suspend();for(var e=t.curvePoints(),r=1;r<e.length;r+=3)this.curveTo(e[r],e[r+1],e[r+2]);this.resume(),this.geometryChange()},e.prototype.close=function(){return this.options.closed=!0,this.geometryChange(),this},e.prototype.rawBBox=function(){return this._bbox()},e.prototype.toString=function(t){var e="",r=this.segments,o=r.length;if(o>0){for(var n,i=[],a=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return e.map(function(e){return e.toString(t)}).join(" ")},s=1;s<o;s++){var h,c,p=(h=r[s-1],c=r[s],h.controlOut()&&c.controlIn()?"C":"L");p!==n&&(n=p,i.push(p)),"L"===p?i.push(a(r[s].anchor())):i.push(a(r[s-1].controlOut(),r[s].controlIn(),r[s].anchor()))}e="M"+a(r[0].anchor())+" "+i.join(" "),this.options.closed&&(e+="Z")}return e},e.prototype._containsPoint=function(t){for(var e,r,o=this.segments,n=o.length,i=0,a=1;a<n;a++)e=o[a-1],r=o[a],i+=e._intersectionsTo(r,t);return(this.options.closed||!o[0].anchor().equals(o[n-1].anchor()))&&(i+=eG(o[0].anchor(),o[n-1].anchor(),t)),i%2!=0},e.prototype._isOnPath=function(t,e){var r=this.segments,o=r.length,n=e||this.options.stroke.width;if(o>1){if(r[0]._isOnPathTo(r[1],t,n,"start"))return!0;for(var i=2;i<=o-2;i++)if(r[i-1]._isOnPathTo(r[i],t,n))return!0;if(r[o-2]._isOnPathTo(r[o-1],t,n,"end"))return!0}return!1},e.prototype._bbox=function(t){var e,r=this.segments,o=r.length;if(1===o)e=new F(r[0].anchor().transformCopy(t),R.ZERO);else if(o>0)for(var n=1;n<o;n++){var i=r[n-1].bboxTo(r[n],t);e=e?F.union(e,i):i}return e},e.parse=function(t,e){return ro.parse(t,e)},e.fromRect=function(t,r){var o=new e(r),n=t.cornerRadius,i=n[0],a=n[1];if(0===i&&0===a)o.moveTo(t.topLeft()).lineTo(t.topRight()).lineTo(t.bottomRight()).lineTo(t.bottomLeft()).close();else{var s=t.origin,h=s.x,c=s.y,p=t.width(),u=t.height();i=re(i,0,p/2),a=re(a,0,u/2),o.moveTo(h+i,c).lineTo(h+p-i,c).arcTo([h+p,c+a],i,a,!1).lineTo(h+p,c+u-a).arcTo([h+p-i,c+u],i,a,!1).lineTo(h+i,c+u).arcTo([h,c+u-a],i,a,!1).lineTo(h,c+a).arcTo([h+i,c],i,a,!1)}return o},e.fromPoints=function(t,r){if(t){for(var o=new e(r),n=0;n<t.length;n++){var i=P.create(t[n]);i&&(0===n?o.moveTo(i):o.lineTo(i))}return o}},e.curveFromPoints=function(t,r){if(t){var o=function(t,e){var r,o,n=t.slice(0),i=[],a=n.length;if(a>2&&(e$(0,n),a=n.length),a<2||2===a&&n[0].equals(n[1]))return i;var s=n[0],h=n[1],c=n[2];for(i.push(new eq(s));s.equals(n[a-1]);)e=!0,n.pop(),a--;if(2===a){var p=eY(s,h,"x","y");return eH(i).controlOut(eJ(p,s,h,"x","y")),i.push(new eq(h,eK(p,s,h,"x","y"))),i}if(e){var u=eV(s=n[a-1],h=n[0],c=n[1]);r=u[1],o=u[0]}else r=eJ(eY(s,h,"x","y"),s,h,"x","y");for(var l=r,f=0;f<=a-3;f++)if(e$(f,n),f+3<=(a=n.length)){var d=eV(s=n[f],h=n[f+1],c=n[f+2]);eH(i).controlOut(l),l=d[1];var g=d[0];i.push(new eq(h,g))}if(e){var y=eV(s=n[a-2],h=n[a-1],c=n[0]);eH(i).controlOut(l),i.push(new eq(h,y[0])),eH(i).controlOut(y[1]),i.push(new eq(c,o))}else{var m=eY(h,c,"x","y");eH(i).controlOut(l),i.push(new eq(c,eK(m,h,c,"x","y")))}return i}(t),n=new e(r);return n.segments.push.apply(n.segments,o),n}},e.fromArc=function(t,r){var o=new e(r),n=t.startAngle,i=t.pointAt(n);return o.moveTo(i.x,i.y),o.arc(n,t.endAngle,t.radiusX,t.radiusY,t.anticlockwise),o},Object.defineProperties(e.prototype,r),e}(ex(e2(eb))),ro=function(t){function e(e){t.call(this,e),this.paths=new eL,this.paths.addObserver(this),x(this.options.stroke)||this.stroke("#000")}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={nodeType:{configurable:!0}};return e.parse=function(t,r){return rt(new e(r),t)},e.prototype.toString=function(t){var e=this.paths,r="";if(e.length>0){for(var o=[],n=0;n<e.length;n++)o.push(e[n].toString(t));r=o.join(" ")}return r},r.nodeType.get=function(){return"MultiPath"},e.prototype.moveTo=function(t,e){var r=new rr;return r.moveTo(t,e),this.paths.push(r),this},e.prototype.lineTo=function(t,e){return this.paths.length>0&&eH(this.paths).lineTo(t,e),this},e.prototype.curveTo=function(t,e,r){return this.paths.length>0&&eH(this.paths).curveTo(t,e,r),this},e.prototype.arc=function(t,e,r,o,n){return this.paths.length>0&&eH(this.paths).arc(t,e,r,o,n),this},e.prototype.arcTo=function(t,e,r,o,n,i){return this.paths.length>0&&eH(this.paths).arcTo(t,e,r,o,n,i),this},e.prototype.close=function(){return this.paths.length>0&&eH(this.paths).close(),this},e.prototype._bbox=function(t){return eC(this.paths,!0,t)},e.prototype.rawBBox=function(){return eC(this.paths,!1)},e.prototype._containsPoint=function(t){for(var e=this.paths,r=0;r<e.length;r++)if(e[r]._containsPoint(t))return!0;return!1},e.prototype._isOnPath=function(t){for(var e=this.paths,r=this.options.stroke.width,o=0;o<e.length;o++)if(e[o]._isOnPath(t,r))return!0;return!1},e.prototype._clippedBBox=function(t){return ek(this.paths,this.currentTransform(t))},Object.defineProperties(e.prototype,r),e}(ex(e2(eb))),rn=function(t,e){void 0===e&&(e=["geometry"]);var r=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(t);return!function(t,e){for(var r=0;r<e.length;r++)t[e[r]]=function(t){var e="_"+t;return function(t){return x(t)?(this._observerField(e,t),this.geometryChange(),this):this[e]}}(e[r])}(r.prototype,e),r},ri=function(t){function e(e,r,o){void 0===r&&(r=new F),void 0===o&&(o={}),t.call(this,o),this.src(e),this.rect(r)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={nodeType:{configurable:!0}};return r.nodeType.get=function(){return"Image"},e.prototype.src=function(t){return x(t)?(this.options.set("src",t),this):this.options.get("src")},e.prototype.bbox=function(t){var e=A(this.currentTransform(t));return this._rect.bbox(e)},e.prototype.rawBBox=function(){return this._rect.bbox()},e.prototype._containsPoint=function(t){return this._rect.containsPoint(t)},e.prototype._hasFill=function(){return this.src()},Object.defineProperties(e.prototype,r),e}(rn(eb,["rect"])),ra=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._change=function(){this.optionsChange({field:"stops"})},e}(eI),rs=function(t){function e(e,r,o){t.call(this),this.options=new ey({offset:e,color:r,opacity:x(o)?o:1}),this.options.addObserver(this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.create=function(t){if(x(t))return t instanceof e?t:t.length>1?new e(t[0],t[1],t[2]):new e(t.offset,t.color,t.opacity)},e}((f=["offset","color","opacity"],!function(t,e){for(var r=0;r<e.length;r++)t[e[r]]=function(t){return function(e){return x(e)?(this.options.set(t,e),this):this.options.get(t)}}(e[r])}((d=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(T)).prototype,f),d)),rh=function(t){function e(e){void 0===e&&(e={}),t.call(this),this.stops=new ra(this._createStops(e.stops)),this.stops.addObserver(this),this._userSpace=e.userSpace,this.id=ev()}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={nodeType:{configurable:!0}};return r.nodeType.get=function(){return"Gradient"},e.prototype.userSpace=function(t){return x(t)?(this._userSpace=t,this.optionsChange(),this):this._userSpace},e.prototype._createStops=function(t){void 0===t&&(t=[]);for(var e=[],r=0;r<t.length;r++)e.push(rs.create(t[r]));return e},e.prototype.addStop=function(t,e,r){this.stops.push(new rs(t,e,r))},e.prototype.removeStop=function(t){var e=this.stops.indexOf(t);e>=0&&this.stops.splice(e,1)},e.prototype.optionsChange=function(t){this.trigger("optionsChange",{field:"gradient"+(t?"."+t.field:""),value:this})},e.prototype.geometryChange=function(){this.optionsChange()},Object.defineProperties(e.prototype,r),e}(T),rc=function(t){function e(e){void 0===e&&(e={}),t.call(this,e),this.start(e.start||new P),this.end(e.end||new P(1,0))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(e_(rh,["start","end"])),rp=function(t){function e(e,r){void 0===e&&(e=new F),void 0===r&&(r={}),t.call(this,r),this.geometry(e),x(this.options.stroke)||this.stroke("#000")}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={nodeType:{configurable:!0}};return r.nodeType.get=function(){return"Rect"},e.prototype._bbox=function(t){return this._geometry.bbox(t)},e.prototype.rawBBox=function(){return this._geometry.bbox()},e.prototype._containsPoint=function(t){return this._geometry.containsPoint(t)},e.prototype._isOnPath=function(t){return this.geometry()._isOnPath(t,this.options.stroke.width/2)},Object.defineProperties(e.prototype,r),e}(ex(e2(rn(eb)))),ru=function(t){function e(e,r){void 0===e&&(e=new U),void 0===r&&(r={}),t.call(this,r),this.geometry(e),x(this.options.stroke)||this.stroke("#000")}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={nodeType:{configurable:!0}};return r.nodeType.get=function(){return"Circle"},e.prototype.rawBBox=function(){return this._geometry.bbox()},e.prototype._bbox=function(t){return this._geometry.bbox(t)},e.prototype._containsPoint=function(t){return this.geometry().containsPoint(t)},e.prototype._isOnPath=function(t){return this.geometry()._isOnPath(t,this.options.stroke.width/2)},Object.defineProperties(e.prototype,r),e}(ex(e2(rn(eb)))),rl=function(){return"undefined"!=typeof window},rf={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)(\.(\d+(\.\d+)?))?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},rd={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},rg={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i},ry={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i},rm=function(t,e,r){for(var o in e)if(e.hasOwnProperty(o)&&e[o].test(t))return o;return void 0!==r?r:t},rv=rl()&&window.navigator?window.navigator.userAgent:null,rw=rv?function(t){var e=null,r=[];for(var o in rg)if(rg.hasOwnProperty(o)&&(r=t.match(rg[o]))){(e={})[o]=!0,e[r[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,e.version=parseInt(document.documentMode||r[2],10);break}return e}(rv):null;rv&&function(t){var e,r=[];for(var o in rf)if(rf.hasOwnProperty(o)){if(!(r=t.match(rf[o])))continue;if("windows"===o&&"plugins"in window.navigator)return null;var n={};return n.device=o,n.browser=rm(t,ry,"default"),n.name=rm(o,rd),n[n.name]=!0,n.majorVersion=r[2],n.minorVersion=r[3]?r[3].replace("_","."):".0",e=n.minorVersion.replace(".","").substr(0,2),n.flatVersion=n.majorVersion+e+Array(3-(e.length<3?e.length:2)).join("0"),n.cordova=(window.PhoneGap,!0),n.appMode=window.navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||n.cordova,n}}(rv),rl()&&window,rw&&!rw.chrome&&window.MSPointerEvent,rw&&!rw.chrome&&window.PointerEvent;var rb=/\/\*[\s\S]*?\*\//g,rx=/([^:;\s]+?)\s*:\s*((?:[^;"']+|"(?:[^"\\]|\\.|url\([^)]*\))*"|'(?:[^'\\]|\\.|url\([^)]*\))*'|url\(\s*(?:[^'")\s]+|'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*")\s*\))*?)(?=;|$)/gi,r_=function(t,e){var r=function(t){for(var e,r,o={},n=(t||"").replace(rb,""),i=rx.exec(n);null!==i;)e=i[1].trim(),r=i[2].trim(),o[e]=r,i=rx.exec(n);return o}(e);Object.keys(r).forEach(function(e){t.style[e]=r[e]})},rS="data-style",rC=function(t){Array.from(t.querySelectorAll("["+rS+"]")).forEach(function(t){var e=t.getAttribute(rS);t.removeAttribute(rS),r_(t,e)})},rk=function(t,e){t.innerHTML=(e||"").replace(/\sstyle=/g," "+rS+"="),rC(t)},rO=$.browser||{};function rT(t){return Array.prototype.slice.call(t)}var rM="KENDO-PSEUDO-ELEMENT",rA="data-kendo-bullet-type",rP={},rR={};rR._root=rR;var rF="undefined"!=typeof window&&(rO.msie||rO.edge),rI=function(t){function e(e,r,o){t.call(this,e,r.getOrigin(),o),this._pdfRect=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.rect=function(){return this._pdfRect},e.prototype.rawBBox=function(){return this._pdfRect},e}(eS);function rL(t,e){Object.keys(e).forEach(function(r){t.style[r]=e[r]})}var rE="undefined"!=typeof Element&&Element.prototype&&((g=Element.prototype).matches?function(t,e){return t.matches(e)}:g.webkitMatchesSelector?function(t,e){return t.webkitMatchesSelector(e)}:g.mozMatchesSelector?function(t,e){return t.mozMatchesSelector(e)}:g.msMatchesSelector?function(t,e){return t.msMatchesSelector(e)}:function(t){return -1!==[].indexOf.call(document.querySelectorAll(t),this)});function rN(t,e){if(t.closest)return t.closest(e);for(;t&&!/^\[object (?:HTML)?Document\]$/.test(String(t));){if(1==t.nodeType&&rE(t,e))return t;t=t.parentNode}}var rB=(y="undefined"!=typeof window&&window.kendo&&window.kendo.jQuery)?function t(e){var r=e.cloneNode(!1);if(1==e.nodeType){var o,n=y(e),i=y(r),a=n.data();for(o in a)i.data(o,a[o]);for(/^canvas$/i.test(e.tagName)?r.getContext("2d").drawImage(e,0,0):/^(?:input|select|textarea|option)$/i.test(e.tagName)&&(r.removeAttribute("id"),r.removeAttribute("name"),/^textarea$/i.test(e.tagName)||(r.value=e.value),r.checked=e.checked,r.selected=e.selected),e._kendoExportVisual&&(r._kendoExportVisual=e._kendoExportVisual),o=e.firstChild;o;o=o.nextSibling)r.appendChild(t(o))}return r}:function(t){var e=function t(e){var r=e.cloneNode(!1);e._kendoExportVisual&&(r._kendoExportVisual=e._kendoExportVisual);for(var o=e.firstChild;o;o=o.nextSibling)r.appendChild(t(o));return r}(t),r=t.querySelectorAll("canvas");r.length&&rT(e.querySelectorAll("canvas")).forEach(function(t,e){t.getContext("2d").drawImage(r[e],0,0)});var o=t.querySelectorAll("input, select, textarea, option");return rT(e.querySelectorAll("input, select, textarea, option")).forEach(function(t,e){t.removeAttribute("id"),t.removeAttribute("name"),/^textarea$/i.test(t.tagName)||(t.value=o[e].value),t.checked=o[e].checked,t.selected=o[e].selected}),e};function rj(t,e){e||(e={});var r,o=t3();if(!t)return o.reject("No element to export");if("function"!=typeof window.getComputedStyle)throw Error("window.getComputedStyle is missing.  You are using an unsupported browser, or running in IE8 compatibility mode.  Drawing HTML is supported in Chrome, Firefox, Safari and IE9+.");!function t(e,r){if(1==arguments.length)for(var o in e)tA(e,o)&&t(o,e[o]);else switch(t1[e=e.toLowerCase()]=r,e){case"dejavu sans":t1["sans-serif"]=r;break;case"dejavu sans|bold":t1["sans-serif|bold"]=r;break;case"dejavu sans|italic":t1["sans-serif|italic"]=r;break;case"dejavu sans|bold|italic":t1["sans-serif|bold|italic"]=r;break;case"dejavu serif":t1.serif=r;break;case"dejavu serif|bold":t1["serif|bold"]=r;break;case"dejavu serif|italic":t1["serif|italic"]=r;break;case"dejavu serif|bold|italic":t1["serif|bold|italic"]=r;break;case"dejavu mono":t1.monospace=r;break;case"dejavu mono|bold":t1["monospace|bold"]=r;break;case"dejavu mono|italic":t1["monospace|italic"]=r;break;case"dejavu mono|bold|italic":t1["monospace|bold|italic"]=r}}(function(t){null==t&&(t=document);for(var e={},r=0;r<t.styleSheets.length;++r)!function t(r){if(r){var o=null;try{o=r.cssRules}catch(t){}o&&function(r,o){for(var n=0;n<o.length;++n){var i=o[n];switch(i.type){case 3:t(i.styleSheet);break;case 5:var a=i.style,s=rz(r0(a,"font-family")),h=/^([56789]00|bold)$/i.test(r0(a,"font-weight")),c="italic"==r0(a,"font-style"),p=function(t){var e=r0(t.style,"src");if(e)return rz(e).reduce(function(t,e){var r=rG(e);return r&&t.push(r),t},[]);var r=rG(t.cssText);return r?[r]:[]}(i);p.length>0&&function(t,r,o,n,i){/^data:/i.test(i)||/^[^\/:]+:\/\//.test(i)||/^\//.test(i)||(i=String(t.href).replace(/[^\/]*$/,"")+i),r.forEach(function(t){t=t.replace(/^(['"]?)(.*?)\1$/,"$2"),o&&(t+="|bold"),n&&(t+="|italic"),e[t]=i})}(r,s,h,c,p[0])}}}(r,o)}}(t.styleSheets[r]);return e}(t.ownerDocument));var n="number"==typeof(r=e.scale||1)?{x:r,y:r}:Array.isArray(r)?{x:r[0],y:r[1]}:{x:r.x,y:r.y};function i(t){var r,o,i=new eO,a=t.getBoundingClientRect();return r8(i,[n.x,0,0,n.y,-a.left*n.x,-a.top*n.y]),rR._clipbox=!1,rR._matrix=O.unit(),rR._stackingContext={element:t,group:i},!0===e.avoidLinks?rR._avoidLinks="a":rR._avoidLinks=e.avoidLinks,r="k-pdf-export",t.classList?t.classList.add(r):t.className+=" "+r,ou(t,i),o="k-pdf-export",t.classList?t.classList.remove(o):t.className=t.className.split(/\s+/).reduce(function(t,e){return e!=o&&t.push(e),t},[]).join(" "),i}return rZ([t],function(){var r=e&&e.forcePageBreak,a=e&&e.paperSize&&"auto"!=e.paperSize,s=tx(function(t,r){return"paperSize"==t?a?e[t]:"A4":t in e?e[t]:r}),h=a&&s.paperSize[0],c=a&&s.paperSize[1],p=e.margin&&s.margin,u=!!p;if(r||c){p||(p={left:0,top:0,right:0,bottom:0}),h&&(h/=n.x),c&&(c/=n.y),p.left/=n.x,p.right/=n.x,p.top/=n.y,p.bottom/=n.y;var l=new eO({pdf:{multiPage:!0,paperSize:a?s.paperSize:"auto",_ignoreMargin:u}});(function(t,e,r,o,n,i,a){var s=function(t){if(null!=t)return("string"==typeof t&&(t=function(){throw Error("Template implementation missing.")}(t.replace(/^\s+|\s+$/g,""))),"function"==typeof t)?function(e){var r=t(e);if(r&&"string"==typeof r){var o=document.createElement("div");rk(o,r),r=o.firstElementChild}return r}:function(){return t.cloneNode(!0)}}(a.template),h=e.ownerDocument,c=[],p=a._destructive?e:rB(e),u=h.createElement("KENDO-PDF-DOCUMENT"),l=0;function f(){("-"!=r||n)&&function t(e){if("TABLE"==e.tagName&&rL(e,{tableLayout:"fixed"}),!d(e)){var o=rQ(e),i=parseFloat(r0(o,"padding-bottom")),a=parseFloat(r0(o,"border-bottom-width")),s=l;l+=i+a;for(var c=!0,u=e.firstChild;u;u=u.nextSibling)if(1==u.nodeType){if(c=!1,rE(u,r)){g(u);continue}if(!n){t(u);continue}if(!/^(?:static|relative)$/.test(r0(rQ(u),"position")))continue;var f=m(u);1==f?g(u):f&&d(u)?g(u):t(u)}else 3==u.nodeType&&n&&(function t(e,r){if(/\S/.test(e.data)){var o=e.data.length,n=h.createRange();n.selectNodeContents(e);var i=m(n);if(i){var a=e;if(1==i)r?g(e.parentNode):g(e);else if(function t(r,o,i){return(n.setEnd(e,o),r==o||o==i)?o:m(n)?t(r,r+o>>1,o):t(o,o+i>>1,i)}(0,o>>1,o),!/\S/.test(n.toString())&&r)g(e.parentNode);else{a=e.splitText(n.endOffset);var s=y();n.setStartBefore(p),s.appendChild(n.extractContents()),p.parentNode.insertBefore(s,p),v(a.parentNode)}t(a)}}}(u,c),c=!1);l=s}}(p);var e=y();p.parentNode.insertBefore(e,p),e.appendChild(p),s&&c.forEach(function(t,e){var r=s({element:t,pageNum:e+1,totalPages:c.length});r&&t.appendChild(r)}),rZ(c,t.bind(null,{pages:c,container:u}))}function d(t){if(a.keepTogether&&rE(t,a.keepTogether)&&t.offsetHeight<=n-l)return!0;var e=t.tagName;return(!/^h[1-6]$/i.test(e)||!(t.offsetHeight>=n-l))&&(t.getAttribute("data-kendo-chart")||/^(?:img|tr|thead|th|tfoot|iframe|svg|object|canvas|input|textarea|select|video|h[1-6])/i.test(t.tagName))}function g(t){if(1==t.nodeType&&t!==p&&function(t){var e=t.parentNode,r=e.firstChild;if(t===r)return!0;if(t===e.children[0]){if(7==r.nodeType||8==r.nodeType)return!0;if(3==r.nodeType)return!/\S/.test(r.data)}return!1}(t))return g(t.parentNode);r=(e=rN(t,"table"))&&e.querySelector("colgroup"),a.repeatHeaders&&(o=e&&e.querySelector("thead"),(n=rN(t,".k-grid"))&&n.querySelector(".k-auto-scrollable")&&(i=n.querySelector(".k-grid-header")));var e,r,o,n,i,s=y(),c=h.createRange();c.setStartBefore(p),c.setEndBefore(t),s.appendChild(c.extractContents()),p.parentNode.insertBefore(s,p),v(t.parentNode),e&&(e=rN(t,"table"),a.repeatHeaders&&o&&e.insertBefore(o.cloneNode(!0),e.firstChild),r&&e.insertBefore(r.cloneNode(!0),e.firstChild)),a.repeatHeaders&&i&&(n=rN(t,".k-grid")).insertBefore(i.cloneNode(!0),n.firstChild)}function y(){var t=h.createElement("KENDO-PDF-PAGE");return rL(t,{display:"block",boxSizing:"content-box",width:o?o+"px":"auto",padding:i.top+"px "+i.right+"px "+i.bottom+"px "+i.left+"px",position:"relative",height:n?n+"px":"auto",overflow:n||o?"hidden":"visible",clear:"both"}),a&&a.pageClassName&&(t.className=a.pageClassName),c.push(t),t}function m(t){var e=t.getBoundingClientRect();if(0===e.width||0===e.height)return 0;var r=p.getBoundingClientRect().top,o=n-l;return e.height>o?3:e.top-r>o?1:e.bottom-r>o?2:0}function v(t){var e=rN(t,"li");e&&(e.setAttribute("kendo-no-bullet","1"),v(e.parentNode))}rT(p.querySelectorAll("tfoot")).forEach(function(t){t.parentNode.appendChild(t)}),rT(p.querySelectorAll("ol")).forEach(function(t){rT(t.children).forEach(function(t,e){t.setAttribute("kendo-split-index",e)})}),rL(u,{display:"block",position:"absolute",boxSizing:"content-box",left:"-10000px",top:"-10000px"}),o&&(rL(u,{width:o+"px",paddingLeft:i.left+"px",paddingRight:i.right+"px"}),rL(p,{overflow:"hidden"})),e.parentNode.insertBefore(u,e),u.appendChild(p),a.beforePageBreak?rY([u],function(){a.beforePageBreak(u,f)}):rY([u],f)})(function(t){if(e.progress){var r=!1,n=0;!function a(){if(n<t.pages.length){var s=i(t.pages[n]);l.append(s),e.progress({page:s,pageNum:++n,totalPages:t.pages.length,cancel:function(){r=!0}}),r?t.container.parentNode.removeChild(t.container):setTimeout(a)}else t.container.parentNode.removeChild(t.container),o.resolve(l)}()}else t.pages.forEach(function(t){l.append(i(t))}),t.container.parentNode.removeChild(t.container),o.resolve(l)},t,r,h?h-p.left-p.right:null,c?c-p.top-p.bottom:null,p,e)}else o.resolve(i(t))}),o}var rD=function(){var t=/^((-webkit-|-moz-|-o-|-ms-)?linear-gradient\s*)\(/,e=/^([-0-9.]+%)/,r=/^([-0-9.]+px)/,o=/^(left|right|top|bottom|to|center)\W/,n=/^([-0-9.]+(deg|grad|rad|turn)|0)/,i=/^(\s+)/,a=/^(\()/,s=/^(\))/,h=/^(,)/,c=/^(url)\(/,p=/^(.*?)\)/,u={},l={};function f(l){var f,d=l;if(rU(u,d))return u[d];function g(t){(e=i.exec(l))&&(l=l.substr(e[1].length));var e,r=t.exec(l);if(r)return l=l.substr(r[1].length),r[1]}return(f=g(t))?f=function(t){var i,c,p,u=[],f=!1;if(g(a)){if("0"==(i=g(n))&&(i="0deg"),i?(y=parseFloat(d=i),i=/grad$/.test(d)?Math.PI*y/200:/rad$/.test(d)?y:/turn$/.test(d)?Math.PI*y*2:/deg$/.test(d)?Math.PI*y/180:void 0):("to"==(c=g(o))?c=g(o):c&&/^-/.test(t)&&(f=!0),p=g(o)),g(h),/-moz-/.test(t)&&null==i&&null==c){var d,y,m=g(e),v=g(e);f=!0,"0%"==m?c="left":"100%"==m&&(c="right"),"0%"==v?p="top":"100%"==v&&(p="bottom"),g(h)}for(;l&&!g(s);){var w=function(){var t,o,n=ed(l,!0);if(n){var i=/^#[0-9a-f]+/i.exec(l)||/^rgba?\(.*?\)/i.exec(l)||/^..*?\b/.exec(l);return l=l.substr(i[0].length),n=n.toRGB(),(t=g(r))||(o=g(e)),{color:n,length:t,percent:o}}}();if(!w)break;u.push(w),g(h)}return{type:"linear",angle:i,to:c&&p?c+" "+p:c||p||null,stops:u,reverse:f}}}(f):(f=g(c))&&(f=function(){if(g(a)){var t=g(p);return t=t.replace(/^['"]+|["']+$/g,""),g(s),{type:"url",url:t}}}()),u[d]=f||{type:"none"}}return function(t){return rU(l,t)?l[t]:l[t]=rz(t).map(f)}}(),rz=(m={},function(t,e){e||(e=/^\s*,\s*/);var r,o=t+e;if(rU(m,o))return m[o];var n=[],i=0,a=0,s=0,h=!1;function c(e){return r=e.exec(t.substr(a))}function p(t){return t.replace(/^\s+|\s+$/g,"")}for(;a<t.length;)!h&&c(/^[\(\[\{]/)?(s++,a++):!h&&c(/^[\)\]\}]/)?(s--,a++):!h&&c(/^[\"\']/)?(h=r[0],a++):"'"==h&&c(/^\\\'/)?a+=2:'"'==h&&c(/^\\\"/)?a+=2:"'"==h&&c(/^\'/)?(h=!1,a++):'"'==h&&c(/^\"/)?(h=!1,a++):c(e)?(h||s||!(a>i)||(n.push(p(t.substring(i,a))),i=a+r[0].length),a+=r[0].length):a++;return i<a&&n.push(p(t.substring(i,a))),m[o]=n}),rG=(v=Object.create(null),function(t){var e,r=v[t];return!r&&((e=/url\((['"]?)([^'")]*?)\1\)\s+format\((['"]?)truetype\3\)/.exec(t))?r=v[t]=e[2]:(e=/url\((['"]?)([^'")]*?\.ttf)\1\)/.exec(t))&&(r=v[t]=e[2])),r}),rq=(w=Object.create(null),function(t){var e=w[t];return null==e&&(e=w[t]=t7("Mapq",{font:t}).height),e});function rU(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function rH(t,e){var r=rR;for(t="_counter_"+t;r&&!rU(r,t);)r=Object.getPrototypeOf(r);r||(r=rR._root),r[t]=(r[t]||0)+(null==e?1:e)}function r$(t,e){rR[t="_counter_"+t]=null==e?0:e}function rX(t,e,r){for(var o=0;o<t.length;){var n=t[o++],i=parseFloat(t[o]);isNaN(i)?e(n,r):(e(n,i),++o)}}function rV(t){var e=r0(t,"counter-reset");e&&rX(rz(e,/^\s+/),r$,0);var r=r0(t,"counter-increment");r&&rX(rz(r,/^\s+/),rH,1)}function rW(t,e){var r=ed(t,!0);return r&&(r=r.toRGB(),e?r=r.toCssRgba():0===r.a&&(r=null)),r}function rY(t,e){var r=0,o=!1;function n(){!o&&--r<=0&&(e(),o=!0)}t.forEach(function(t){for(var e=t.querySelectorAll("img"),o=0;o<e.length;++o){var i=e[o];i.complete||(r++,i.onload=i.onerror=n)}}),r||n()}function rZ(t,e){var r=[];function o(t){rP[t]||(rP[t]=!0,r.push(t))}t.forEach(function t(e){/^img$/i.test(e.tagName)&&o(e.src),rD(r0(rQ(e),"background-image")).forEach(function(t){"url"==t.type&&o(t.url)}),e.children&&rT(e.children).forEach(t)});var n=r.length;function i(){--n<=0&&rY(t,e)}0===n&&i(),r.forEach(function(t){var e=rP[t]=new window.Image;/^data:/i.test(t)||(e.crossOrigin="Anonymous"),e.src=t,e.complete?i():(e.onload=i,e.onerror=function(){rP[t]=null,i()})})}function rJ(t){var e="";do e=String.fromCharCode(97+t%26)+e,t=Math.floor(t/26);while(t>0);return e}function rK(t){if(null!=rR._clipbox){var e=t.bbox(rR._matrix);rR._clipbox?rR._clipbox=F.intersect(rR._clipbox,e):rR._clipbox=e}}function rQ(t,e){return window.getComputedStyle(t,e||null)}function r0(t,e,r){var o=t.getPropertyValue(e);return((null==o||""===o)&&(rO.webkit?o=t.getPropertyValue("-webkit-"+e):rO.mozilla?o=t.getPropertyValue("-moz-"+e):rO.opera?o=t.getPropertyValue("-o-"+e):rF&&(o=t.getPropertyValue("-ms-"+e))),arguments.length>2&&(null==o||""===o))?r:o}function r1(t,e,r,o){t.setProperty(e,r,o),rO.webkit?t.setProperty("-webkit-"+e,r,o):rO.mozilla?t.setProperty("-moz-"+e,r,o):rO.opera?t.setProperty("-o-"+e,r,o):rF&&(t.setProperty("-ms-"+e,r,o),t[e="ms"+e.replace(/(^|-)([a-z])/g,function(t,e,r){return e+r.toUpperCase()})]=r)}function r2(t,e){return{width:parseFloat(r0(t,(e="border-"+e)+"-width")),style:r0(t,e+"-style"),color:rW(r0(t,e+"-color"),!0)}}function r3(t,e){var r=t.style.cssText,o=e();return r_(t,r),o}function r6(t,e){var r=r0(t,"border-"+e+"-radius").split(/\s+/g).map(parseFloat);return 1==r.length&&r.push(r[0]),oe({x:r[0],y:r[1]})}function r5(t){var e=t.getBoundingClientRect();return e=r9(e,"border-*-width",t),e=r9(e,"padding-*",t)}function r9(t,e,r){var o,n,i,a,s;return"string"==typeof e?(n=parseFloat(r0(o=rQ(r),e.replace("*","top"))),i=parseFloat(r0(o,e.replace("*","right"))),a=parseFloat(r0(o,e.replace("*","bottom"))),s=parseFloat(r0(o,e.replace("*","left")))):"number"==typeof e&&(n=i=a=s=e),{top:t.top+n,right:t.right-i,bottom:t.bottom-a,left:t.left+s,width:t.right-t.left-i-s,height:t.bottom-t.top-a-n}}function r4(t){return 180*t/Math.PI%360}function r8(t,e){return e=new O(e[0],e[1],e[2],e[3],e[4],e[5]),t.transform(e),e}function r7(t,e){t.clip(e)}function ot(t,e,r,o){for(var n=new D([e,r],o).curvePoints(),i=1;i<n.length;)t.curveTo(n[i++],n[i++],n[i++])}function oe(t){return(t.x<=0||t.y<=0)&&(t.x=t.y=0),t}function or(t,e,r,o,n){var i=Math.max(0,e.x),a=Math.max(0,e.y),s=Math.max(0,r.x),h=Math.max(0,r.y),c=Math.max(0,o.x),p=Math.max(0,o.y),u=Math.max(0,n.x),l=Math.max(0,n.y),f=Math.min(t.width/(i+s),t.height/(h+p),t.width/(c+u),t.height/(l+a));return f<1&&(i*=f,a*=f,s*=f,h*=f,c*=f,p*=f,u*=f,l*=f),{tl:{x:i,y:a},tr:{x:s,y:h},br:{x:c,y:p},bl:{x:u,y:l}}}function oo(t,e,r){var o=rQ(t),n=r6(o,"top-left"),i=r6(o,"top-right"),a=r6(o,"bottom-left"),s=r6(o,"bottom-right");if("padding"==r||"content"==r){var h=r2(o,"top"),c=r2(o,"right"),p=r2(o,"bottom"),u=r2(o,"left");if(n.x-=u.width,n.y-=h.width,i.x-=c.width,i.y-=h.width,s.x-=c.width,s.y-=p.width,a.x-=u.width,a.y-=p.width,"content"==r){var l=parseFloat(r0(o,"padding-top")),f=parseFloat(r0(o,"padding-right")),d=parseFloat(r0(o,"padding-bottom")),g=parseFloat(r0(o,"padding-left"));n.x-=g,n.y-=l,i.x-=f,i.y-=l,s.x-=f,s.y-=d,a.x-=g,a.y-=d}}return"number"==typeof r&&(n.x-=r,n.y-=r,i.x-=r,i.y-=r,s.x-=r,s.y-=r,a.x-=r,a.y-=r),on(e,n,i,s,a)}function on(t,e,r,o,n){var i=or(t,e,r,o,n),a=i.tl,s=i.tr,h=i.br,c=i.bl,p=new rr({fill:null,stroke:null});return p.moveTo(t.left,t.top+a.y),a.x&&ot(p,t.left+a.x,t.top+a.y,{startAngle:-180,endAngle:-90,radiusX:a.x,radiusY:a.y}),p.lineTo(t.right-s.x,t.top),s.x&&ot(p,t.right-s.x,t.top+s.y,{startAngle:-90,endAngle:0,radiusX:s.x,radiusY:s.y}),p.lineTo(t.right,t.bottom-h.y),h.x&&ot(p,t.right-h.x,t.bottom-h.y,{startAngle:0,endAngle:90,radiusX:h.x,radiusY:h.y}),p.lineTo(t.left+c.x,t.bottom),c.x&&ot(p,t.left+c.x,t.bottom-c.y,{startAngle:90,endAngle:180,radiusX:c.x,radiusY:c.y}),p.close()}function oi(t,e){var r=String(parseFloat(t));switch(e){case"decimal-leading-zero":return r.length<2&&(r="0"+r),r;case"lower-roman":return ee(t).toLowerCase();case"upper-roman":return ee(t).toUpperCase();case"lower-latin":case"lower-alpha":return rJ(t-1);case"upper-latin":case"upper-alpha":return rJ(t-1).toUpperCase();default:return r}}function oa(t){if(t.cssText)return t.cssText;for(var e=[],r=0;r<t.length;++r)e.push(t[r]+": "+r0(t,t[r]));return e.join(";\n")}function os(t,e){if(t.tagName==rM){oh(t,e);return}var r=[];function o(e,o){var n=rQ(t,e),i=n.content;if(rV(n),i&&"normal"!=i&&"none"!=i&&"0px"!=n.width){var a=t.ownerDocument.createElement(rM);r_(a,oa(n)),a.textContent=function(t,e){function r(t,e,r){return r?(r=r.replace(/^\s*(["'])(.*)\1\s*$/,"$2"),(function(t){var e=[],r=rR;for(t="_counter_"+t;r;)rU(r,t)&&e.push(r[t]),r=Object.getPrototypeOf(r);return e.reverse()})(t).map(function(t){return oi(t,e)}).join(r)):oi(rR["_counter_"+t]||0,e)}var o,n=rz(e,/^\s+/),i=[];return n.forEach(function(e){var n;(o=/^\s*(["'])(.*)\1\s*$/.exec(e))?i.push(o[2].replace(/\\([0-9a-f]{4})/gi,function(t,e){return String.fromCharCode(parseInt(e,16))})):(o=/^\s*counter\((.*?)\)\s*$/.exec(e))?(n=rz(o[1]),i.push(r(n[0],n[1]))):(o=/^\s*counters\((.*?)\)\s*$/.exec(e))?(n=rz(o[1]),i.push(r(n[0],n[2],n[1]))):(o=/^\s*attr\((.*?)\)\s*$/.exec(e))?i.push(t.getAttribute(o[1])||""):i.push(e)}),i.join("")}(t,i),t.insertBefore(a,o),r.push(a)}}if(o(":before",t.firstChild),o(":after",null),r.length>0){var n=t.className;t.className+=" kendo-pdf-hide-pseudo-elements",oh(t,e),t.className=n,r.forEach(function(e){t.removeChild(e)})}else oh(t,e)}function oh(t,e){var r,o,n,i,a,s=rQ(t),h=r2(s,"top"),c=r2(s,"right"),p=r2(s,"bottom"),u=r2(s,"left"),l=r6(s,"top-left"),f=r6(s,"top-right"),d=r6(s,"bottom-left"),g=r6(s,"bottom-right"),y=r0(s,"direction"),m=r0(s,"background-color");m=rW(m);var v=rD(r0(s,"background-image")),w=rz(r0(s,"background-repeat")),b=rz(r0(s,"background-position")),x=rz(r0(s,"background-origin")),_=rz(r0(s,"background-size"));rF&&"ellipsis"==(r=s.textOverflow)&&(o=t.style.textOverflow,t.style.textOverflow="clip"),rO.msie&&rO.version<10&&(b=rz(t.currentStyle.backgroundPosition));var S=r9(t.getBoundingClientRect(),"border-*-width",t);!function(){var t=r0(s,"clip"),r=/^\s*rect\((.*)\)\s*$/.exec(t);if(r){var o=r[1].split(/[ ,]+/g),n="auto"==o[0]?S.top:parseFloat(o[0])+S.top,i="auto"==o[1]?S.right:parseFloat(o[1])+S.left,a="auto"==o[2]?S.bottom:parseFloat(o[2])+S.top,h="auto"==o[3]?S.left:parseFloat(o[3])+S.left,c=new eO,p=new rr().moveTo(h,n).lineTo(i,n).lineTo(i,a).lineTo(h,a).close();r7(c,p),e.append(c),e=c,rK(p)}}();var C=r0(s,"display");if("table-row"==C)for(i=0,n=[],a=t.children;i<a.length;++i)n.push(a[i].getBoundingClientRect());else 1==(n=t.getClientRects()).length&&(n=[t.getBoundingClientRect()]);for(i=0,n=function(e){if(/^td$/i.test(t.tagName)){var r=rR.table;if(r&&"collapse"==r0(r.style,"border-collapse")){var o=r2(r.style,"left").width,n=r2(r.style,"top").width;if(0===o&&0===n)return e;var i=r.element.getBoundingClientRect(),a=r.element.rows[0].cells[0].getBoundingClientRect();if(a.top==i.top||a.left==i.left)return rT(e).map(function(t){return{left:t.left+o,top:t.top+n,right:t.right+o,bottom:t.bottom+n,height:t.height,width:t.width}})}}return e}(n);i<n.length;++i)!function(r,o,n){if(0!==r.width&&0!==r.height){!function(r){var o=new eO;if(r7(o,on(r,l,f,g,d)),e.append(o),m){var n=new rr({fill:{color:m.toCssRgba()},stroke:null});n.moveTo(r.left,r.top).lineTo(r.right,r.top).lineTo(r.right,r.bottom).lineTo(r.left,r.bottom).close(),o.append(n)}for(var i=v.length;--i>=0;)!function(e,r,o,n,i,a,s){if(o&&"none"!=o){if("url"==o.type){var h=rP[o.url];h&&h.width>0&&h.height>0&&c(e,r,h.width,h.height,function(t,e){t.append(new ri(o.url,e))})}else{if("linear"!=o.type)return;c(e,r,r.width,r.height,function(t){return function(e,r){var o=r.width(),n=r.height();switch(t.type){case"linear":var i=null!=t.angle?t.angle:Math.PI;switch(t.to){case"top":i=0;break;case"left":i=-Math.PI/2;break;case"bottom":i=Math.PI;break;case"right":i=Math.PI/2;break;case"top left":case"left top":i=-Math.atan2(n,o);break;case"top right":case"right top":i=Math.atan2(n,o);break;case"bottom left":case"left bottom":i=Math.PI+Math.atan2(n,o);break;case"bottom right":case"right bottom":i=Math.PI-Math.atan2(n,o)}t.reverse&&(i-=Math.PI),(i%=2*Math.PI)<0&&(i+=2*Math.PI);var a=Math.abs(o*Math.sin(i))+Math.abs(n*Math.cos(i)),s=Math.atan(o*Math.tan(i)/n),h=Math.sin(s),c=Math.cos(s),p=Math.abs(h)+Math.abs(c),u=p/2*h,l=p/2*c;i>Math.PI/2&&i<=3*Math.PI/2&&(u=-u,l=-l);var f=[],d=0,g=t.stops.map(function(e,r){var o=e.percent;o?o=parseFloat(o)/100:e.length?o=parseFloat(e.length)/a:0===r?o=0:r==t.stops.length-1&&(o=1);var n={color:e.color.toCssRgba(),offset:o};return null!=o?(d=o,f.forEach(function(t,e){t.stop.offset=t.left+(d-t.left)*(e+1)/(f.length+1)}),f=[]):f.push({left:d,stop:n}),n}),y=[.5-u,.5+l],m=[.5+u,.5-l];e.append(rr.fromRect(r).stroke(null).fill(new rc({start:y,end:m,stops:g,userSpace:!1})));break;case"radial":window.console&&window.console.log&&window.console.log("Radial gradients are not yet supported in HTML renderer")}}}(o))}}function c(e,r,o,h,c){var p,u=o/h,l=r;if("content-box"==a?(l=r9(l,"border-*-width",t),l=r9(l,"padding-*",t)):"padding-box"==a&&(l=r9(l,"border-*-width",t)),!/^\s*auto(\s+auto)?\s*$/.test(s)){if("contain"==s)p=Math.min(l.width/o,l.height/h),o*=p,h*=p;else if("cover"==s)p=Math.max(l.width/o,l.height/h),o*=p,h*=p;else{var f=s.split(/\s+/g);o=/%$/.test(f[0])?l.width*parseFloat(f[0])/100:parseFloat(f[0]),h=1==f.length||"auto"==f[1]?o/u:/%$/.test(f[1])?l.height*parseFloat(f[1])/100:parseFloat(f[1])}}var d=String(i);switch(d){case"bottom":d="50% 100%";break;case"top":d="50% 0";break;case"left":d="0 50%";break;case"right":d="100% 50%";break;case"center":d="50% 50%"}1==(d=d.split(/\s+/)).length&&(d[1]="50%"),/%$/.test(d[0])?d[0]=parseFloat(d[0])/100*(l.width-o):d[0]=parseFloat(d[0]),/%$/.test(d[1])?d[1]=parseFloat(d[1])/100*(l.height-h):d[1]=parseFloat(d[1]);var g=new F([l.left+d[0],l.top+d[1]],[o,h]);function y(){for(;g.origin.x>r.left;)g.origin.x-=o}function m(){for(;g.origin.y>r.top;)g.origin.y-=h}function v(){for(;g.origin.x<r.right;)c(e,g.clone()),g.origin.x+=o}if("no-repeat"==n)c(e,g);else if("repeat-x"==n)y(),v();else if("repeat-y"==n)for(m();g.origin.y<r.bottom;)c(e,g.clone()),g.origin.y+=h;else if("repeat"==n){y(),m();for(var w=g.origin.clone();g.origin.y<r.bottom;)g.origin.x=w.x,v(),g.origin.y+=h}}}(o,r,v[i],w[i%w.length],b[i%b.length],x[i%x.length],_[i%_.length])}(r);var i=u.width>0&&(o&&"ltr"==y||n&&"rtl"==y),a=c.width>0&&(n&&"ltr"==y||o&&"rtl"==y);if(0!==h.width||0!==u.width||0!==c.width||0!==p.width){if(h.color==c.color&&h.color==p.color&&h.color==u.color&&h.width==c.width&&h.width==p.width&&h.width==u.width&&i&&a){var s=oo(t,r=r9(r,h.width/2),h.width/2);s.options.stroke={color:h.color,width:h.width},e.append(s);return}if(0===l.x&&0===f.x&&0===g.x&&0===d.x&&h.width<2&&u.width<2&&c.width<2&&p.width<2){h.width>0&&e.append(new rr({stroke:{width:h.width,color:h.color}}).moveTo(r.left,r.top+h.width/2).lineTo(r.right,r.top+h.width/2)),p.width>0&&e.append(new rr({stroke:{width:p.width,color:p.color}}).moveTo(r.left,r.bottom-p.width/2).lineTo(r.right,r.bottom-p.width/2)),i&&e.append(new rr({stroke:{width:u.width,color:u.color}}).moveTo(r.left+u.width/2,r.top).lineTo(r.left+u.width/2,r.bottom)),a&&e.append(new rr({stroke:{width:c.width,color:c.color}}).moveTo(r.right-c.width/2,r.top).lineTo(r.right-c.width/2,r.bottom));return}var S=or(r,l,f,g,d),C=S.tl,k=S.tr,T=S.br,M=S.bl;O(h.color,r.width,h.width,u.width,c.width,C,k,[1,0,0,1,r.left,r.top]),O(p.color,r.width,p.width,c.width,u.width,T,M,[-1,0,0,-1,r.right,r.bottom]),O(u.color,r.height,u.width,p.width,h.width,A(M),A(C),[0,-1,1,0,r.left,r.bottom]),O(c.color,r.height,c.width,h.width,p.width,A(k),A(T),[0,1,-1,0,r.right,r.top])}}function A(t){return{x:t.y,y:t.x}}}(n[i],0===i,i==n.length-1);if("A"==t.tagName&&t.href&&!/^#?$/.test(t.getAttribute("href"))&&(!rR._avoidLinks||!rE(t,rR._avoidLinks))){var k=document.createRange();k.selectNodeContents(t),rT(k.getClientRects()).forEach(function(r){var o=new eO;o._pdfLink={url:t.href,top:r.top,right:r.right,bottom:r.bottom,left:r.left},e.append(o)})}return n.length>0&&"list-item"==C&&!t.getAttribute("kendo-no-bullet")&&function(){var r=r0(s,"list-style-type");if("none"!=r){var o=r0(s,"list-style-position");switch(r){case"circle":case"disc":case"square":n(function(t){t.innerHTML="&nbsp;",t.setAttribute(rA,r)});break;case"decimal":case"decimal-leading-zero":n(function(t){i(function(e){++e,"decimal-leading-zero"==r&&e<10&&(e="0"+e),t.innerHTML=e+"."})});break;case"lower-roman":case"upper-roman":n(function(t){i(function(e){e=ee(e+1),"upper-roman"==r&&(e=e.toUpperCase()),t.innerHTML=e+"."})});break;case"lower-latin":case"lower-alpha":case"upper-latin":case"upper-alpha":n(function(t){i(function(e){e=rJ(e),/^upper/i.test(r)&&(e=e.toUpperCase()),t.innerHTML=e+"."})})}}function n(r){r3(t,function(){t.style.position="relative";var n=t.ownerDocument.createElement(rM);n.style.position="absolute",n.style.boxSizing="border-box","outside"==o?(n.style.width="6em",n.style.left="-6.8em",n.style.textAlign="right"):n.style.left="0px",r(n),t.insertBefore(n,t.firstChild),ou(n,e),t.removeChild(n)})}function i(e){var r=t.parentNode.children,o=t.getAttribute("kendo-split-index");if(null!=o)return e(0|o,r.length);for(var n=0;n<r.length;++n)if(r[n]===t)return e(n,r.length)}}(n[0]),!function(){function r(){var r=oo(t,S,"padding"),o=new eO;r7(o,r),e.append(o),e=o,rK(r)}/^(?:textarea|select|input)$/i.test(t.tagName)?r():/^(hidden|auto|scroll)/.test(r0(s,"overflow"))?r():/^(hidden|auto|scroll)/.test(r0(s,"overflow-x"))?r():/^(hidden|auto|scroll)/.test(r0(s,"overflow-y"))&&r()}(),!function(t,e){if(t._kendoExportVisual){var r,o=t.getBoundingClientRect(),n={width:o.width,height:o.height};r=t._kendoExportVisual(n)}else if(window.kendo&&window.kendo.jQuery&&t.getAttribute(window.kendo.attr("role"))){var i=window.kendo.widgetInstance(window.kendo.jQuery(t));i&&(i.exportDOMVisual||i.exportVisual)&&(r=i.exportDOMVisual?i.exportDOMVisual():i.exportVisual())}if(!r)return!1;var a=new eO;a.children.push(r);var s=t.getBoundingClientRect();return a.transform(B().translate(s.left,s.top)),e.append(a),!0}(t,e)&&!function(t,e){var r=t.getAttribute(rA);if(!r)return!1;var o=t.getBoundingClientRect(),n=rQ(t).color;if("square"===r){var i=o.height/5;e.append(new rp(new F([o.right-i,o.top+o.height/2.1],[i,i])).fill(n).stroke(n))}else{var a=o.height/7,s=new ru(new U([o.right-a,o.top+(o.height+a)/2],a));"circle"===r?s.stroke(n,.5):s.fill(n).stroke(null),e.append(s)}return!0}(t,e)&&function t(e,r){switch(rR._stackingContext.element===e&&(rR._stackingContext.group=r),e.tagName.toLowerCase()){case"img":oc(e,e.src,r);break;case"svg":var o="data:image/svg+xml;base64,"+ty(function(t){var e=new window.XMLSerializer,r=e.serializeToString(t);if(rO.mozilla&&!(t.getAttribute("width")&&t.getAttribute("height"))){var o=new window.DOMParser().parseFromString(r,"image/svg+xml").documentElement,n=r5(t);o.setAttribute("width",n.width),o.setAttribute("height",n.height),r=e.serializeToString(o)}return r}(e));oc(e,o,r);break;case"canvas":try{oc(e,e.toDataURL("image/png"),r)}catch(t){}break;case"textarea":case"input":case"select":!function(e,r){var o,n=e.tagName.toLowerCase();if("input"==n&&("checkbox"==e.type||"radio"==e.type))return h=r0(rQ(e),"color"),c=e.getBoundingClientRect(),void("checkbox"==e.type?(r.append(rr.fromRect(new F([c.left+1,c.top+1],[c.width-2,c.height-2])).stroke(h,1)),e.checked&&r.append(new rr().stroke(h,1.2).moveTo(c.left+.22*c.width,c.top+.55*c.height).lineTo(c.left+.45*c.width,c.top+.75*c.height).lineTo(c.left+.78*c.width,c.top+.22*c.width))):(r.append(new ru(new U([(c.left+c.right)/2,(c.top+c.bottom)/2],Math.min(c.width-2,c.height-2)/2)).stroke(h,1)),e.checked&&r.append(new ru(new U([(c.left+c.right)/2,(c.top+c.bottom)/2],Math.min(c.width-8,c.height-8)/2)).fill(h).stroke(null))));var i=e.parentNode,a=e.ownerDocument,s=a.createElement(rM);if(r_(s,oa(rQ(e))),"input"==n&&(s.style.whiteSpace="pre"),("select"==n||"textarea"==n)&&(s.style.overflow="auto"),"select"==n){if(e.multiple)for(var h,c,p=0;p<e.options.length;++p)r_(o=a.createElement(rM),oa(rQ(e.options[p]))),o.style.display="block",o.textContent=e.options[p].textContent,s.appendChild(o);else(o=e.selectedOptions&&e.selectedOptions.length>0?e.selectedOptions[0]:e.options[e.selectedIndex])&&(s.textContent=o.textContent)}else s.textContent=e.value;i.insertBefore(s,e),s.scrollLeft=e.scrollLeft,s.scrollTop=e.scrollTop,e.style.display="none",t(s,r),e.style.display="",i.removeChild(s)}(e,r);break;default:for(var n=[],i=[],a=[],s=e.firstChild;s;s=s.nextSibling)switch(s.nodeType){case 3:/\S/.test(s.data)&&function(t,e,r){if(null!=(o=rR._clipbox)&&(!o||0!==o.width()&&0!==o.height())){var o,n=rQ(t);if(!(-500>parseFloat(r0(n,"text-indent")))){var i=e.data,a=0,s=i.search(/\S\s*$/)+1;if(s){var h=r0(n,"font-size"),c=r0(n,"line-height"),p=[r0(n,"font-style"),r0(n,"font-variant"),r0(n,"font-weight"),h,r0(n,"font-family")].join(" ");if(h=parseFloat(h),c=parseFloat(c),!(0===h||isNaN(h))){var u=r0(n,"color"),l=t.ownerDocument.createRange(),f="justify"==r0(n,"text-align"),d=r0(n,"column-count",1),g=r0(n,"white-space"),y=r0(n,"text-transform"),m=t.getBoundingClientRect().width/h*5;0===m&&(m=500);var v=null,w=rR.underline,b=rR["line-through"],x=rR.overline,_=rR["underline-offset"];for(w&&S(function(t){var e=h/12,r=t.bottom;null!=_?r+=_:r+=e,k(e,t,w,r)});!function(){var t,o=a,n=i.substr(a).search(/\S/);if(a+=n,n<0||a>=s)return!0;l.setStart(e,a),l.setEnd(e,a+1),t=C(l);var h=!1;if((f||d>1)&&(n=i.substr(a).search(/\s/))>=0){l.setEnd(e,a+n);var w=C(l);w.bottom==t.bottom&&(t=w,h=!0,a+=n)}if(!h){if((n=function r(o,n,i){l.setEnd(e,n);var a=C(l);return a.bottom!=t.bottom&&o<n?r(o,o+n>>1,n):a.right==t.right?n:(t=a,n<i)?r(n,n+i>>1,i):n}(a,Math.min(s,a+m),s))==a)return!0;if(a=n,0===(n=l.toString().search(/\s+$/)))return!1;n>0&&(l.setEnd(e,l.startOffset+n),t=C(l))}rF&&(t=l.getClientRects()[0]);var b=l.toString();if(/^(?:pre|pre-wrap)$/i.test(g)){if(/\t/.test(b)){var x=0;for(n=o;n<l.startOffset;++n){var _=i.charCodeAt(n);9==_?x+=8-x%8:10==_||13==_?x=0:x++}for(;(n=b.search("	"))>=0;){var S="        ".substr(0,8-(x+n)%8);b=b.substr(0,n)+S+b.substr(n+1)}}}else b=b.replace(/\s+/g," ");h||(v=t.bottom),function(t,e){if(rF&&!isNaN(c)){var o=rq(p),n=(e.top+e.bottom-o)/2;e={top:n,right:e.right,bottom:n+o,left:e.left,height:o,width:e.right-e.left}}switch(y){case"uppercase":t=t.toUpperCase();break;case"lowercase":t=t.toLowerCase();break;case"capitalize":t=t.replace(/(?:^|\s)\S/g,function(t){return t.toUpperCase()})}var i=new rI(t,new F([e.left,e.top],[e.width,e.height]),{font:p,fill:{color:u}});r.append(i)}(b,t)}(););(b||x)&&S(function(t){var e=h/12;k(e,t,b,t.bottom-t.height/2.7),k(e,t,x,t.top)})}}}}function S(t){l.selectNode(e);var r=rT(l.getClientRects());(S=function(t){return r.forEach(t)})(t)}function C(t){if(rF||rO.chrome||rO.safari){for(var e=t.getClientRects(),r={top:1/0,right:-1/0,bottom:-1/0,left:1/0},o=!1,n=0;n<e.length;++n){var i=e[n];i.width<=1||i.bottom===v||(r.left=Math.min(i.left,r.left),r.top=Math.min(i.top,r.top),r.right=Math.max(i.right,r.right),r.bottom=Math.max(i.bottom,r.bottom),o=!0)}return o?(r.width=r.right-r.left,r.height=r.bottom-r.top,r):t.getBoundingClientRect()}return t.getBoundingClientRect()}function k(t,e,o,n){if(o){var i=new rr({stroke:{width:t,color:o}});n-=t,i.moveTo(e.left,n).lineTo(e.right,n),r.append(i)}}}(e,s,r);break;case 1:var h=rQ(s),c=r0(h,"float");"static"!=r0(h,"position")?a.push(s):"none"!=c?i.push(s):n.push(s)}er(n,op).forEach(function(t){ou(t,r)}),er(i,op).forEach(function(t){ou(t,r)}),er(a,op).forEach(function(t){ou(t,r)})}}(t,e),rF&&"ellipsis"==r&&(t.style.textOverflow=o),e;function O(t,r,o,n,i,a,s,h){if(!(o<=0)){var c,p=new eO;r8(p,h),e.append(p),oe(a),oe(s),c=new rr({fill:{color:t},stroke:null}),p.append(c),c.moveTo(a.x?Math.max(a.x,n):0,0).lineTo(r-(s.x?Math.max(s.x,i):0),0).lineTo(r-Math.max(s.x,i),o).lineTo(Math.max(a.x,n),o).close(),a.x&&u(n,a,[-1,0,0,1,a.x,0]),s.x&&u(i,s,[1,0,0,1,r-s.x,0])}function u(e,r,n){var i=Math.PI/2*e/(e+o),a={x:r.x-e,y:r.y-o},s=new rr({fill:{color:t},stroke:null}).moveTo(0,0);r8(s,n),ot(s,0,r.y,{startAngle:-90,endAngle:-r4(i),radiusX:r.x,radiusY:r.y}),a.x>0&&a.y>0?(s.lineTo(a.x*Math.cos(i),r.y-a.y*Math.sin(i)),ot(s,0,r.y,{startAngle:-r4(i),endAngle:-90,radiusX:a.x,radiusY:a.y,anticlockwise:!0})):a.x>0?s.lineTo(a.x,o).lineTo(0,o):s.lineTo(a.x,o).lineTo(a.x,0),p.append(s.close())}}}function oc(t,e,r){var o=r5(t),n=new ri(e,new F([o.left,o.top],[o.width,o.height]));r7(n,oo(t,o,"content")),r.append(n)}function op(t,e){var r=rQ(t),o=rQ(e),n=parseFloat(r0(r,"z-index")),i=parseFloat(r0(o,"z-index")),a=r0(r,"position"),s=r0(o,"position");return isNaN(n)&&isNaN(i)?/static|absolute/.test(a)&&/static|absolute/.test(s)?0:"static"==a?-1:"static"==s?1:0:isNaN(n)?0===i?0:i>0?-1:1:isNaN(i)?0===n?0:n>0?1:-1:parseFloat(n)-parseFloat(i)}function ou(t,e){var r,o=rQ(t);if(rV(o),!/^(style|script|link|meta|iframe|col|colgroup)$/i.test(t.tagName)&&null!=rR._clipbox){var n=parseFloat(r0(o,"opacity")),i=r0(o,"visibility"),a=r0(o,"display");if(0!==n&&"hidden"!=i&&"none"!=a){var s=function(t){var e=r0(t,"transform");if("none"==e)return null;var r=/^\s*matrix\(\s*(.*?)\s*\)\s*$/.exec(e);if(r){var o=r0(t,"transform-origin");return{matrix:r=r[1].split(/\s*,\s*/g).map(parseFloat),origin:o=o.split(/\s+/g).map(parseFloat)}}}(o),h=r0(o,"z-index");(s||n<1)&&"auto"==h&&(h=0),r=function(t,e,r){"auto"!=r?(o=rR._stackingContext.group,r=parseFloat(r)):(o=e,r=0);for(var o,n=o.children,i=0;i<n.length&&(null==n[i]._dom_zIndex||!(n[i]._dom_zIndex>r));++i);var a=new eO;if(o.insert(i,a),a._dom_zIndex=r,o!==e&&rR._clipbox){var s=rR._matrix.invert(),h=rR._clipbox.transformCopy(s);r7(a,rr.fromRect(h))}return a}(0,e,h),n<1&&r.opacity(n*r.opacity()),function(t,e,r){(rR=Object.create(rR))[t.tagName.toLowerCase()]={element:t,style:e};var o=r0(e,"text-decoration");if(o&&"none"!=o){var n=r0(e,"text-decoration-color");o.split(/\s+/g).forEach(function(t){if(!rR[t]&&(rR[t]=n,"underline"==t)){var r=r0(e,"text-underline-offset");"auto"!=r&&(rR["underline-offset"]=parseFloat(r))}})}(function(t){if("none"!=r0(t,"transform")||"static"!=r0(t,"position")||"auto"!=r0(t,"z-index")||1>r0(t,"opacity"))return!0})(e)&&(rR._stackingContext={element:t,group:r})}(t,o,r),s?r3(t,function(){r1(t.style,"transform","none","important"),r1(t.style,"transition","none","important"),"static"==r0(o,"position")&&r1(t.style,"position","relative","important");var e=t.getBoundingClientRect(),n=e.left+s.origin[0],i=e.top+s.origin[1],a=[1,0,0,1,-n,-i];a=ol(a,s.matrix),a=r8(r,a=ol(a,[1,0,0,1,n,i])),rR._matrix=rR._matrix.multiplyCopy(a),os(t,r)}):os(t,r),rR=Object.getPrototypeOf(rR)}}}function ol(t,e){var r=t[0],o=t[1],n=t[2],i=t[3],a=t[4],s=t[5],h=e[0],c=e[1],p=e[2],u=e[3];return[r*h+o*p,r*c+o*u,n*h+i*p,n*c+i*u,a*h+s*p+e[4],a*c+s*u+e[5]]}var of=function(t){function e(e){void 0===e&&(e={}),t.call(this,e),this.center(e.center||new P),this._radius=x(e.radius)?e.radius:1,this._fallbackFill=e.fallbackFill}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.radius=function(t){return x(t)?(this._radius=t,this.geometryChange(),this):this._radius},e.prototype.fallbackFill=function(t){return x(t)?(this._fallbackFill=t,this.optionsChange(),this):this._fallbackFill},e}(e_(rh,["center"])),od={fill:0,stroke:1,fillAndStroke:2},og={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:[]},oy={butt:0,round:1,square:2},om={miter:0,round:1,bevel:2};function ov(t,e){var r=t[e.nodeType];return r?r.call.apply(r,arguments):e}function ow(t,e,r){t.options._pdfDebug&&e.comment("BEGIN: "+t.options._pdfDebug);var o,n=t.transform(),i=t.opacity();if(e.save(),null!=i&&i<1&&e.setOpacity(i),function(t,e){var r=t.stroke&&t.stroke();if(r){var o=r.color;if(o){if(null==(o=oF(o)))return;e.setStrokeColor(o.r,o.g,o.b),1!=o.a&&e.setStrokeOpacity(o.a)}var n=r.width;if(null!=n){if(0===n)return;e.setLineWidth(n)}var i=r.dashType;i&&e.setDashPattern(og[i],0);var a=r.lineCap;a&&e.setLineCap(oy[a]);var s=r.lineJoin;s&&e.setLineJoin(om[s]);var h=r.opacity;null!=h&&e.setStrokeOpacity(h)}}(t,e,r),function(t,e){var r=t.fill&&t.fill();if(r&&!(r instanceof rh)){var o=r.color;if(o){if(null==(o=oF(o)))return;e.setFillColor(o.r,o.g,o.b),1!=o.a&&e.setFillOpacity(o.a)}var n=r.opacity;null!=n&&e.setFillOpacity(n)}}(t,e,r),n){var a=n.matrix();e.transform(a.a,a.b,a.c,a.d,a.e,a.f)}(o=t.clip())&&(oS(o,e,r),e.clip()),ov({Path:oC,MultiPath:ok,Circle:oO,Arc:oT,Text:oM,Image:oP,Group:oA,Rect:oR},t,e,r),e.restore(),t.options._pdfDebug&&e.comment("END: "+t.options._pdfDebug)}function ob(t){return t&&(t instanceof rh||t.color&&!/^(none|transparent)$/i.test(t.color)&&(null==t.width||t.width>0)&&(null==t.opacity||t.opacity>0))}function ox(t,e,r,o){var n=t.fill();if(n instanceof rh){o?e.clipStroke():e.clip();var i,a,s=n instanceof of;s?(i={x:n.center().x,y:n.center().y,r:0},a={x:n.center().x,y:n.center().y,r:n.radius()}):(i={x:n.start().x,y:n.start().y},a={x:n.end().x,y:n.end().y});var h=n.stops.elements().map(function(t){var e=t.offset();e=/%$/.test(e)?parseFloat(e)/100:parseFloat(e);var r=oF(t.color());return r.a*=t.opacity(),{offset:e,color:r}});h.unshift(h[0]),h.push(h[h.length-1]);var c={userSpace:n.userSpace(),type:s?"radial":"linear",start:i,end:a,stops:h},p=t.rawBBox(),u=p.topLeft(),l=p.getSize();return p={left:u.x,top:u.y,width:l.width,height:l.height},e.gradient(c,p),!0}}function o_(t,e,r){ob(t.fill())&&ob(t.stroke())?ox(t,e,r,!0)||e.fillStroke():ob(t.fill())?ox(t,e,r,!1)||e.fill():ob(t.stroke())?e.stroke():e.nop()}function oS(t,e,r){var o=t.segments;if(0!==o.length&&!function(t,e){var r=t.segments;if(4==r.length&&t.options.closed){for(var o=[],n=0;n<r.length;++n){if(r[n].controlIn())return!1;o[n]=r[n].anchor()}if(o[0].y==o[1].y&&o[1].x==o[2].x&&o[2].y==o[3].y&&o[3].x==o[0].x||o[0].x==o[1].x&&o[1].y==o[2].y&&o[2].x==o[3].x&&o[3].y==o[0].y)return e.rect(o[0].x,o[0].y,o[2].x-o[0].x,o[2].y-o[0].y),!0}}(t,e,r)){for(var n,i=0;i<o.length;++i){var a=o[i],s=a.anchor();if(n){var h=n.controlOut(),c=a.controlIn();h&&c?e.bezier(h.x,h.y,c.x,c.y,s.x,s.y):e.lineTo(s.x,s.y)}else e.moveTo(s.x,s.y);n=a}t.options.closed&&e.close()}}function oC(t,e,r){oS(t,e,r),o_(t,e,r)}function ok(t,e,r){for(var o=t.paths,n=0;n<o.length;++n)oS(o[n],e,r);o_(t,e,r)}function oO(t,e,r){var o=t.geometry();e.circle(o.center.x,o.center.y,o.radius),o_(t,e,r)}function oT(t,e,r){var o=t.geometry().curvePoints();e.moveTo(o[0].x,o[0].y);for(var n=1;n<o.length;)e.bezier(o[n].x,o[n++].y,o[n].x,o[n++].y,o[n].x,o[n++].y);o_(t,e,r)}function oM(t,e){var r,o=tQ(t.options.font),n=t._position;e.transform(1,0,0,-1,n.x,n.y+o.fontSize);var i=function(r){e.beginText(),e.setFont(t0(o),o.fontSize),e.setTextRenderingMode(r),e.showText(t.content(),t._pdfRect?t._pdfRect.width():null)};t.fill()&&t.stroke()?(r=od.fillAndStroke,"stroke"===t.options.paintOrder&&(i(od.stroke),r=od.fill)):t.fill()?r=od.fill:t.stroke()&&(r=od.stroke),i(r),e.endText()}function oA(t,e,r){t._pdfLink&&e.addLink(t._pdfLink.url,t._pdfLink);for(var o=t.children,n=0;n<o.length;++n)ow(o[n],e,r)}function oP(t,e){var r=t.src();if(r){var o=t.rect(),n=o.getOrigin(),i=o.getSize();e.transform(i.width,0,0,-i.height,n.x,n.y+i.height),e.drawImage(r)}}function oR(t,e,r){var o=t.geometry(),n=o.cornerRadius,i=n[0],a=n[1];0===i&&0===a?(e.rect(o.origin.x,o.origin.y,o.size.width,o.size.height),o_(t,e,r)):oC(rr.fromRect(o,t.options),e,r)}function oF(t){var e=ed(t,!0);return e?e.toRGB():null}function oI(t,e){var r,o=t3();for(var n in e)"margin"==n&&t.options.pdf&&t.options.pdf._ignoreMargin||t.options.set("pdf."+n,e[n]);return r=o.resolve,function(t,e){var r=[],o={},n=t.options;function i(t,e,r){return(r||(r=n),r.pdf&&null!=r.pdf[t])?r.pdf[t]:e}var a=i("multiPage"),s=i("imgDPI",300);function h(){if(!(--c>0)){var r=new tO({producer:i("producer"),title:i("title"),author:i("author"),subject:i("subject"),keywords:i("keywords"),creator:i("creator"),date:i("date"),autoPrint:i("autoPrint")});a?t.children.forEach(o):o(t),e(r.render(),r)}function o(t){var e=t.options,o=function(t){var e,r=!1,o=O.unit(),n=null;do e=!1,t=h(t);while(t&&e);return{root:t,bbox:n};function i(t){return e=!0,t}function a(t){return t.visible()&&t.opacity()>0&&(ob(t.fill())||ob(t.stroke()))}function s(t){for(var e=[],r=0;r<t.length;++r){var o=h(t[r]);null!=o&&e.push(o)}return e}function h(e){return function(t,e){var n=r,i=o;t.transform()&&(o=o.multiplyCopy(t.transform().matrix()));var a=t.clip();a&&"function"==typeof a.bbox&&(a=a.bbox())&&(a=a.bbox(o),r=r?F.intersect(r,a):a);try{return e()}finally{r=n,o=i}}(e,function(){if(!(e instanceof eO||e instanceof ro)){var h=function(t){if(null==r)return!1;var e=t.rawBBox();return e&&(e=e.bbox(o)),r&&e&&(e=F.intersect(e,r)),e}(e);if(!h)return i(null);n=n?F.union(n,h):h}return ov({Path:function(t){return 0!==t.segments.length&&a(t)?t:i(null)},MultiPath:function(t){if(!a(t))return i(null);var e=new ro(t.options);return(e.paths=s(t.paths),0===e.paths.length)?i(null):e},Circle:function(t){return a(t)?t:i(null)},Arc:function(t){return a(t)?t:i(null)},Text:function(t){return/\S/.test(t.content())&&a(t)?t:i(null)},Image:function(t){return t.visible()&&t.opacity()>0?t:i(null)},Group:function(e){if(!(e.visible()&&e.opacity()>0))return i(null);var r=new eO(e.options);return(r.children=s(e.children),r._pdfLink=e._pdfLink,e===t||0!==r.children.length||e._pdfLink)?r:i(null)},Rect:function(t){return a(t)?t:i(null)}},e)})}}(t),n=o.bbox;t=o.root;var a=i("paperSize",i("paperSize","auto"),e),s=!1;if("auto"==a){if(n){var h=n.getSize();a=[h.width,h.height],s=!0;var c=n.getOrigin();(o=new eO).transform(new O(1,0,0,1,-c.x,-c.y)),o.append(t),t=o}else a="A4"}ow(t,r.addPage({paperSize:a,margin:i("margin",i("margin"),e),addMargin:s,landscape:i("landscape",i("landscape",!1),e)}),r)}}tS={},t.traverse(function(t){ov({Image:function(t){var e=t.src(),r=t.bbox().size;if(s){var n=o[e];r={width:Math.ceil(r.width*s/72),height:Math.ceil(r.height*s/72)},n&&(r.width=Math.max(n.width,r.width),r.height=Math.max(n.height,r.height))}o[e]=r},Text:function(t){var e=t0(tQ(t.options.font));0>r.indexOf(e)&&r.push(e)}},t)});var c=2;tC(r,h),tk(o,h,{jpegQuality:i("jpegQuality",.92),keepPNG:i("keepPNG",!1)})}(t,function(t){r("data:application/pdf;base64,"+t.base64())}),o}function oL(t,e,r){void 0===r&&(r={});var o=oD;if(r.forceProxy&&!r.proxyURL)throw Error("No proxyURL is set, but forceProxy is true");!r.forceProxy&&(oN()&&(o=oj),navigator.msSaveBlob&&(o=oB)),o(t,e,r)}var oE=function(){return document.createElement("a")},oN=function(){return"download"in oE()};function oB(t,e){var r=t;if("string"==typeof t){for(var o=t.split(";base64,"),n=o[0],i=atob(o[1]),a=new Uint8Array(i.length),s=0;s<i.length;s++)a[s]=i.charCodeAt(s);r=new Blob([a.buffer],{type:n})}navigator.msSaveBlob(r,e)}function oj(t,e){var r=t;window.Blob&&t instanceof Blob&&(r=URL.createObjectURL(t));var o=oE();o.download=e,o.href=r;var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),o.dispatchEvent(n),setTimeout(function(){return URL.revokeObjectURL(r)})}function oD(t,e,r){if(r.proxyURL){var o=document.createElement("form");o.setAttribute("action",r.proxyURL),o.setAttribute("method","POST"),o.setAttribute("target",r.proxyTarget||"_self");var n=r.proxyData||{};n.fileName=e;var i=t.split(";base64,");for(var a in n.contentType=i[0].replace("data:",""),n.base64=i[1],n)if(n.hasOwnProperty(a)){var s=document.createElement("input");s.setAttribute("type","hidden"),s.setAttribute("name",a),s.setAttribute("value",n[a]),o.appendChild(s)}document.body.appendChild(o),o.submit(),document.body.removeChild(o)}}var oz=r(67294),oG=r(97762);class oq{constructor(t,e,r,o,n={}){this.drawDOM=t,this.exportPDF=e,this.saveAs=r,this.domElement=o,this.options=n,this.convertPageTemplateToHtml=t=>`<span>${oG.uS(oz.createElement(this.options.pageTemplate,{pageNum:t.pageNum,totalPages:t.totalPages}))}</span>`}savePDF(t){let e=this.drawDOM(this.domElement,this.getDrawOptions()).then(t=>this.exportPDF(t,this.getPDFOptions())).then(t=>this.saveAs(t,this.options.fileName||"export.pdf",this.getSaveOptions()));t&&e.then(t,t)}getDrawOptions(){return{avoidLinks:this.options.avoidLinks,forcePageBreak:this.options.forcePageBreak,keepTogether:this.options.keepTogether,margin:this.options.margin,paperSize:this.options.paperSize,landscape:this.options.landscape,repeatHeaders:this.options.repeatHeaders,scale:this.options.scale,template:this.options.pageTemplate&&this.convertPageTemplateToHtml}}getPDFOptions(){return{author:this.options.author,creator:this.options.creator||"KendoReact PDF Generator",date:this.options.date,imgDPI:this.options.imageResolution,keywords:this.options.keywords,landscape:this.options.landscape,margin:this.options.margin,multiPage:!0,paperSize:this.options.paperSize,producer:this.options.producer,subject:this.options.subject,title:this.options.title}}getSaveOptions(){return{forceProxy:this.options.forceProxy,proxyData:this.options.proxyData,proxyTarget:this.options.proxyTarget,proxyURL:this.options.proxyURL}}}function oU(t,e={},r){new oq(rj,oI,oL,t,e).savePDF(r)}}}]);