functiont(t,e,n,i){functionr(e){varn=l[e],i=l[e+1];s==n&&a==i||(t.beginPath(),t.moveTo(s,a),t.lineTo(n,i),t.stroke(),t.beginPath(),t.arc(n,i,o,0,2*Math.PI,!0),t.fill())}if(!(i<=0))for(vars,a,o=i/2,h=i-2,u=o-1,l=newArray(6),c=0,f=e.length;c<f;c++){vard=e[c],_=d._selection;if(d._transformCoordinates(n,l),s=l[0],a=l[1],2&_&&r(2),4&_&&r(4),t.fillRect(s-o,a-o,i,i),h>0&&!(1&_)){varg=t.fillStyle;t.fillStyle="#ffffff",t.fillRect(s-u,a-u,h,h),t.fillStyle=g}}}functione(t,e,n){functioni(e){if(n)e._transformCoordinates(n,_),r=_[0],s=_[1];else{vari=e._point;r=i._x,s=i._y}if(g)t.moveTo(r,s),g=!1;else{if(n)h=_[2],u=_[3];else{varf=e._handleIn;h=r+f._x,u=s+f._y}h===r&&u===s&&l===a&&c===o?t.lineTo(r,s):t.bezierCurveTo(l,c,h,u,r,s)}if(a=r,o=s,n)l=_[4],c=_[5];else{varf=e._handleOut;l=a+f._x,c=o+f._y}}for(varr,s,a,o,h,u,l,c,f=e._segments,d=f.length,_=newArray(6),g=!0,v=0;v<d;v++)i(f[v]);e._closed&&d>0&&i(f[0])}return{_draw:function(t,n,i,r){functions(t){returnc[(t%f+f)%f]}vara=n.dontStart,o=n.dontFinish||n.clip,h=this.getStyle(),u=h.hasFill(),l=h.hasStroke(),c=h.getDashArray(),f=!at.support.nativeDash&&l&&c&&c.length;if(a||t.beginPath(),(u||l&&!f||o)&&(e(t,this,r),this._closed&&t.closePath()),!o&&(u||l)&&(this._setStyles(t,n,i),u&&(t.fill(h.getFillRule()),t.shadowColor="rgba(0,0,0,0)"),l)){if(f){a||t.beginPath();vard,_=newB(this,.25,32,(!1),r),g=_.length,v=-h.getDashOffset(),p=0;for(v%=g;v>0;)v-=s(p--)+s(p--);for(;v<g;)d=v+s(p++),(v>0||d>0)&&_.drawPart(t,Math.max(v,0),Math.max(d,0)),v=d+s(p++)}t.stroke()}},_drawSelected:function(n,i){n.beginPath(),e(n,this,i),n.stroke(),t(n,this._segments,i,at.settings.handleSize)}}},newfunction(){functiont(t){vare=t._segments;if(!e.length)thrownewError("Use a moveTo() command first");returne[e.length-1]}return{moveTo:function(){vart=this._segments;1===t.length&&this.removeSegment(0),t.length||this._add([newA(f.read(arguments))])},moveBy:function(){thrownewError("moveBy() is unsupported on Path items.")},lineTo:function(){this._add([newA(f.read(arguments))])},cubicCurveTo:function(){vare=f.read(arguments),n=f.read(arguments),i=f.read(arguments),r=t(this);r.setHandleOut(e.subtract(r._point)),this._add([newA(i,n.subtract(i))])},quadraticCurveTo:function(){vare=f.read(arguments),n=f.read(arguments),i=t(this)._point;this.cubicCurveTo(e.add(i.subtract(e).multiply(1/3)),e.add(n.subtract(e).multiply(1/3)),n)},curveTo:function(){vare=f.read(arguments),n=f.read(arguments),i=r.pick(r.read(arguments),.5),s=1-i,a=t(this)._point,o=e.subtract(a.multiply(s*s)).subtract(n.multiply(i*i)).divide(2*i*s);if(o.isNaN())thrownewError("Cannot put a curve through points with parameter = "+i);this.quadraticCurveTo(o,n)},arcTo:function(){vare,n,i,s,a,o=Math.abs,h=Math.sqrt,u=t(this),c=u._point,d=f.read(arguments),g=r.peek(arguments),v=r.pick(g,!0);if("boolean"==typeofv)varp=c.add(d).divide(2),e=p.add(p.subtract(c).rotate(v?-90:90));elseif(r.remain(arguments)<=2)e=d,d=f.read(arguments);elseif(!c.equals(d)){varw=_.read(arguments),x=l.isZero;if(x(w.width)||x(w.height))returnthis.lineTo(d);varb=r.read(arguments),v=!!r.read(arguments),C=!!r.read(arguments),p=c.add(d).divide(2),S=c.subtract(p).rotate(-b),k=S.x,I=S.y,P=o(w.width),M=o(w.height),T=P*P,O=M*M,z=k*k,L=I*I,E=h(z/T+L/O);if(E>1&&(P*=E,M*=E,T=P*P,O=M*M),E=(T*O-T*L-O*z)/(T*L+O*z),o(E)<1e-12&&(E=0),E<0)thrownewError("Cannot create an arc with the given arguments");n=newf(P*I/M,-M*k/P).multiply((C===v?-1:1)*h(E)).rotate(b).add(p),a=(newm).translate(n).rotate(b).scale(P,M),s=a._inverseTransform(c),i=s.getDirectedAngle(a._inverseTransform(d)),!v&&i>0?i-=360:v&&i<0&&(i+=360)}if(e){varN=newy(c.add(e).divide(2),e.subtract(c).rotate(90),(!0)),B=newy(e.add(d).divide(2),d.subtract(e).rotate(90),(!0)),F=newy(c,d),j=F.getSide(e);if(n=N.intersect(B,!0),!n){if(!j)returnthis.lineTo(d);thrownewError("Cannot create an arc with the given arguments")}s=c.subtract(n),i=s.getDirectedAngle(d.subtract(n));varR=F.getSide(n,!0);0===R?i=j*o(i):j===R&&(i+=i<0?360:-360)}if(i){for(varD=1e-7,q=o(i),V=q>=360?4:Math.ceil((q-D)/90),U=i/V,H=U*Math.PI/360,Z=4/3*
t=t.width),this.canvases.length?r=this.canvases.pop():(r=i.createElement("canvas"),s=!1);vara=r.getContext("2d");if(!a)thrownewError("Canvas "+r+" is unable to provide a 2D context.");returnr.width===t&&r.height===e?s&&a.clearRect(0,0,t+1,e+1):(r.width=t,r.height=e),a.save(),r},getContext:function(t,e){varn=this.getCanvas(t,e);returnn?n.getContext("2d"):null},release:function(t){vare=t&&t.canvas?t.canvas:t;e&&e.getContext&&(e.getContext("2d").restore(),this.canvases.push(e))}},it=newfunction(){functiont(t,e,n){return.2989*t+.587*e+.114*n}functione(e,n,i,r){vars=r-t(e,n,i);d=e+s,_=n+s,g=i+s;varr=t(d,_,g),a=v(d,_,g),o=p(d,_,g);if(a<0){varh=r-a;d=r+(d-r)*r/h,_=r+(_-r)*r/h,g=r+(g-r)*r/h}if(o>255){varu=255-r,l=o-r;d=r+(d-r)*u/l,_=r+(_-r)*u/l,g=r+(g-r)*u/l}}functionn(t,e,n){returnp(t,e,n)-v(t,e,n)}functioni(t,e,n,i){varr,s=[t,e,n],a=p(t,e,n),o=v(t,e,n);o=o===t?0:o===e?1:2,a=a===t?0:a===e?1:2,r=0===v(o,a)?1===p(o,a)?2:1:0,s[a]>s[o]?(s[r]=(s[r]-s[o])*i/(s[a]-s[o]),s[a]=i):s[r]=s[a]=0,s[o]=0,d=s[0],_=s[1],g=s[2]}vars,a,o,h,u,l,c,f,d,_,g,v=Math.min,p=Math.max,m=Math.abs,y={multiply:function(){d=u*s/255,_=l*a/255,g=c*o/255},screen:function(){d=u+s-u*s/255,_=l+a-l*a/255,g=c+o-c*o/255},overlay:function(){d=u<128?2*u*s/255:255-2*(255-u)*(255-s)/255,_=l<128?2*l*a/255:255-2*(255-l)*(255-a)/255,g=c<128?2*c*o/255:255-2*(255-c)*(255-o)/255},"soft-light":function(){vart=s*u/255;d=t+u*(255-(255-u)*(255-s)/255-t)/255,t=a*l/255,_=t+l*(255-(255-l)*(255-a)/255-t)/255,t=o*c/255,g=t+c*(255-(255-c)*(255-o)/255-t)/255},"hard-light":function(){d=s<128?2*s*u/255:255-2*(255-s)*(255-u)/255,_=a<128?2*a*l/255:255-2*(255-a)*(255-l)/255,g=o<128?2*o*c/255:255-2*(255-o)*(255-c)/255},"color-dodge":function(){d=0===u?0:255===s?255:v(255,255*u/(255-s)),_=0===l?0:255===a?255:v(255,255*l/(255-a)),g=0===c?0:255===o?255:v(255,255*c/(255-o))},"color-burn":function(){d=255===u?255:0===s?0:p(0,255-255*(255-u)/s),_=255===l?255:0===a?0:p(0,255-255*(255-l)/a),g=255===c?255:0===o?0:p(0,255-255*(255-c)/o)},darken:function(){d=u<s?u:s,_=l<a?l:a,g=c<o?c:o},lighten:function(){d=u>s?u:s,_=l>a?l:a,g=c>o?c:o},difference:function(){d=u-s,d<0&&(d=-d),_=l-a,_<0&&(_=-_),g=c-o,g<0&&(g=-g)},exclusion:function(){d=u+s*(255-u-u)/255,_=l+a*(255-l-l)/255,g=c+o*(255-c-c)/255},hue:function(){i(s,a,o,n(u,l,c)),e(d,_,g,t(u,l,c))},saturation:function(){i(u,l,c,n(s,a,o)),e(d,_,g,t(u,l,c))},luminosity:function(){e(u,l,c,t(s,a,o))},color:function(){e(s,a,o,t(u,l,c))},add:function(){d=v(u+s,255),_=v(l+a,255),g=v(c+o,255)},subtract:function(){d=p(u-s,0),_=p(l-a,0),g=p(c-o,0)},average:function(){d=(u+s)/2,_=(l+a)/2,g=(c+o)/2},negation:function(){d=255-m(255-s-u),_=255-m(255-a-l),g=255-m(255-o-c)}},w=this.nativeModes=r.each(["source-over","source-in","source-out","source-atop","destination-over","destination-in","destination-out","destination-atop","lighter","darker","copy","xor"],function(t){this[t]=!0},{}),x=nt.getContext(1,1);x&&(r.each(y,function(t,e){varn="darken"===e,i=!1;x.save();try{x.fillStyle=n?"#300":"#a00",x.fillRect(0,0,1,1),x.globalCompositeOperation=e,x.globalCompositeOperation===e&&(x.fillStyle=n?"#a00":"#300",x.fillRect(0,0,1,1),i=x.getImageData(0,0,1,1).data[0]!==n?170:51)}catch(r){}x.restore(),w[e]=i}),nt.release(x)),this.process=function(t,e,n,i,r){varv=e.canvas,p="normal"===t;if(p||w[t])n.save(),n.setTransform(1,0,0,1,0,0),n.globalAlpha=i,p||(n.globalCompositeOperation=t),n.drawImage(v,r.x,r.y),n.restore();else{varm=y[t];if(!m)return;for(varx=n.getImageData(r.x,r.y,v.width,v.height),b=x.data,C=e.getImageData(0,0,v.width,v.height).data,S=0,k=b.length;S<k;S+=4){s=C[S],u=b[S],a=C[S+1],l=b[S+1],o=C[S+2],c=b[S+2],h=C[S+3],f=b[S+3],m();varI=h*i/255,P=1-I;b[S]=I*d+P*u,b[S+1]=I*_+P*l,b[S+2]=I*g+P*c,b[S+3]=h*i+P*f}n.putImageData(x,r.x,r.y)}}},rt=newfunction(){functiont(t,e,s){returnn(i.createElementNS(r,t),e,s)}functione(t,e){varn=o[e],i=n?t.getAttributeNS(n,e):t.getAttribute(e);return"null"===i?null:i}functionn(t,e,n){for(variine){varr=e[i],s=o[i];"number"==typeofr&&n&&(r=n.number(r)),s?t.setAttributeNS(s,i,r):t.setAttribute(i,r)}returnt}varr="http:/
Ot.pop(),N(e,"SwitchStatement");caseYt:returnA(),Je.test(ft.slice(Mt,mt))&&n(Mt,"Illegal newline after throw"),e.argument=X(),R(),N(e,"ThrowStatement");casete:if(A(),e.block=W(),e.handler=null,bt===qt){varl=L();A(),D(ge),l.param=lt(),zt&&Ve(l.param.name)&&n(l.param.start,"Binding "+l.param.name+" in strict mode"),D(ve),l.guard=null,l.body=W(),e.handler=N(l,"CatchClause")}returne.guardedHandlers=Lt,e.finalizer=F($t)?W():null,e.handler||e.finalizer||n(e.start,"Missing catch or finally clause"),N(e,"TryStatement");caseee:returnA(),J(e),R(),N(e,"VariableDeclaration");casene:returnA(),e.test=Z(),Ot.push(Ye),e.body=H(),Ot.pop(),N(e,"WhileStatement");caseie:returnzt&&n(mt,"'with' in strict mode"),A(),e.object=Z(),e.body=H(),N(e,"WithStatement");casede:returnW();caseme:returnA(),N(e,"EmptyStatement");default:varc=Ct,f=X();if(t===Ft&&"Identifier"===f.type&&F(ye)){for(varr=0;r<Ot.length;++r)Ot[r].name===c&&n(f.start,"Label '"+c+"' is already declared");vard=bt.isLoop?"loop":bt===Qt?"switch":null;returnOt.push({name:c,kind:d}),e.body=H(),Ot.pop(),e.label=f,N(e,"LabeledStatement")}returne.expression=f,R(),N(e,"ExpressionStatement")}}functionZ(){D(ge);vart=X();returnD(ve),t}functionW(t){vare,n=L(),i=!0,r=!1;for(n.body=[],D(de);!F(_e);){vars=H();n.body.push(s),i&&t&&B(s)&&(e=r,T(r=!0)),i=!1}returnr&&!e&&T(!1),N(n,"BlockStatement")}function$(t,e){returnt.init=e,D(me),t.test=bt===me?null:X(),D(me),t.update=bt===ve?null:X(),D(ve),t.body=H(),Ot.pop(),N(t,"ForStatement")}functionG(t,e){returnt.left=e,t.right=X(),D(ve),t.body=H(),Ot.pop(),N(t,"ForInStatement")}functionJ(t,e){for(t.declarations=[],t.kind="var";;){vari=L();if(i.id=lt(),zt&&Ve(i.id.name)&&n(i.id.start,"Binding "+i.id.name+" in strict mode"),i.init=F(Ce)?X(!0,e):null,t.declarations.push(N(i,"VariableDeclarator")),!F(pe))break}returnt}functionX(t,e){varn=K(e);if(!t&&bt===pe){vari=E(n);for(i.expressions=[n];F(pe);)i.expressions.push(K(e));returnN(i,"SequenceExpression")}returnn}functionK(t){vare=Q(t);if(bt.isAssign){varn=E(e);returnn.operator=Ct,n.left=e,A(),n.right=K(t),V(e),N(n,"AssignmentExpression")}returne}functionQ(t){vare=Y(t);if(F(xe)){varn=E(e);returnn.test=e,n.consequent=X(!0),D(ye),n.alternate=X(!0,t),N(n,"ConditionalExpression")}returne}functionY(t){returntt(et(),-1,t)}functiontt(t,e,n){vari=bt.binop;if(null!=i&&(!n||bt!==ue)&&i>e){varr=E(t);r.left=t,r.operator=Ct;vars=bt;A(),r.right=tt(et(),i,n);vara=N(r,s===Pe||s===Me?"LogicalExpression":"BinaryExpression");returntt(a,e,n)}returnt}functionet(){if(bt.prefix){vart=L(),e=bt.isUpdate;returnt.operator=Ct,t.prefix=!0,St=!0,A(),t.argument=et(),e?V(t.argument):zt&&"delete"===t.operator&&"Identifier"===t.argument.type&&n(t.start,"Deleting local variable in strict mode"),N(t,e?"UpdateExpression":"UnaryExpression")}for(vari=nt();bt.postfix&&!j();){vart=E(i);t.operator=Ct,t.prefix=!1,t.argument=i,V(i),A(),i=N(t,"UpdateExpression")}returni}functionnt(){returnit(rt())}functionit(t,e){if(F(we)){varn=E(t);returnn.object=t,n.property=lt(!0),n.computed=!1,it(N(n,"MemberExpression"),e)}if(F(ce)){varn=E(t);returnn.object=t,n.property=X(),n.computed=!0,D(fe),it(N(n,"MemberExpression"),e)}if(!e&&F(ge)){varn=E(t);returnn.callee=t,n.arguments=ut(ve,!1),it(N(n,"CallExpression"),e)}returnt}functionrt(){switch(bt){casese:vart=L();returnA(),N(t,"ThisExpression");caseFt:returnlt();caseEt:caseBt:caseNt:vart=L();returnt.value=Ct,t.raw=ft.slice(mt,yt),A(),N(t,"Literal");caseae:caseoe:casehe:vart=L();returnt.value=bt.atomValue,t.raw=bt.keyword,A(),N(t,"Literal");casege:vare=wt,n=mt;A();vari=X();returni.start=n,i.end=yt,ct.locations&&(i.loc.start=e,i.loc.end=xt),ct.ranges&&(i.range=[n,yt]),D(ve),i;casece:vart=L();returnA(),t.elements=ut(fe,!0,!0),N(t,"ArrayExpression");casede:returnat();caseJt:vart=L();returnA(),ht(t,!1);casere:returnst();default:q()}}functionst(){vart=L();returnA(),t.callee=it(rt(),!0),F(ge)?t.arguments=ut(ve,!1):t.arguments=Lt,N(t,"NewExpression")}functionat(){vart=L(),e=!0,i=!1;for(t.properties=[],A();!F(_e);){if(e)e=!1;e