},getMaxDistance:function(){returnthis._maxDistance},setMaxDistance:function(t){this._maxDistance=t,null!=this._minDistance&&null!=this._maxDistance&&this._maxDistance<this._minDistance&&(this._minDistance=t)},getFixedDistance:function(){returnthis._minDistance==this._maxDistance?this._minDistance:null},setFixedDistance:function(t){this._minDistance=t,this._maxDistance=t},_updateEvent:function(t,e,n,i,r,s,a){if(!r){if(null!=n||null!=i){varo=null!=n?n:0,h=e.subtract(this._point),u=h.getLength();if(o>u)return!1;varl=null!=i?i:0;if(0!=l)if(u>l)e=this._point.add(h.normalize(l));elseif(a)return!1}if(s&&e.equals(this._point))return!1}switch(this._lastPoint=r&&"mousemove"==t?e:this._point,this._point=e,t){case"mousedown":this._lastPoint=this._downPoint,this._downPoint=this._point,this._downCount++;break;case"mouseup":this._lastPoint=this._downPoint}returnthis._count=r?0:this._count+1,!0},_fireEvent:function(t,e){varn=paper.project._removeSets;if(n){"mouseup"===t&&(n.mousedrag=null);vari=n[t];if(i){for(varrini){vars=i[r];for(varainn){varo=n[a];o&&o!=i&&deleteo[s._id]}s.remove()}n[t]=null}}returnthis.responds(t)&&this.fire(t,newY(this,t,e))},_handleEvent:function(t,e,n){paper=this._scope;vari=!1;switch(t){case"mousedown":this._updateEvent(t,e,null,null,!0,!1,!1),i=this._fireEvent(t,n);break;case"mousedrag":for(varr=!1,s=!1;this._updateEvent(t,e,this.minDistance,this.maxDistance,!1,r,s);)i=this._fireEvent(t,n)||i,r=!0,s=!0;break;case"mouseup":!e.equals(this._point)&&this._updateEvent("mousedrag",e,this.minDistance,this.maxDistance,!1,!1,!1)&&(i=this._fireEvent("mousedrag",n)),this._updateEvent(t,e,null,this.maxDistance,!1,!1,!1),i=this._fireEvent(t,n)||i,this._updateEvent(t,e,null,null,!0,!1,!1),this._firstMove=!0;break;case"mousemove":for(;this._updateEvent(t,e,this.minDistance,this.maxDistance,this._firstMove,!0,!1);)i=this._fireEvent(t,n)||i,this._firstMove=!1}returni&&n.preventDefault(),i}}),Q={request:function(t,e,n){vari=new(window.ActiveXObject||XMLHttpRequest)("Microsoft.XMLHTTP");returni.open(t.toUpperCase(),e,!0),"overrideMimeType"ini&&i.overrideMimeType("text/plain"),i.onreadystatechange=function(){if(4===i.readyState){vart=i.status;if(0!==t&&200!==t)throwError("Could not load "+e+" (Error "+t+")");n.call(i,i.responseText)}},i.send(null)}},te={canvases:[],getCanvas:function(t,e,n){vari,r=!0;"object"==typeoft&&(n=e,e=t.height,t=t.width),n?1!==n&&(t*=n,e*=n):n=1,i=this.canvases.length?this.canvases.pop():document.createElement("canvas");vars=i.getContext("2d");returni.width===t&&i.height===e?r&&s.clearRect(0,0,t+1,e+1):(i.width=t,i.height=e),s.save(),1!==n&&s.scale(n,n),i},getContext:function(t,e){returnthis.getCanvas(t,e).getContext("2d")},release:function(t){vare=t.canvas?t.canvas:t;e.getContext("2d").restore(),this.canvases.push(e)}},ee=newfunction(){functiont(t,e,n){return.2989*t+.587*e+.114*n}functionn(e,n,i,r){vars=r-t(e,n,i);f=e+s,_=n+s,g=i+s;varr=t(f,_,g),a=p(f,_,g),o=v(f,_,g);if(0>a){varh=r-a;f=r+(f-r)*r/h,_=r+(_-r)*r/h,g=r+(g-r)*r/h}if(o>255){varu=255-r,l=o-r;f=r+(f-r)*u/l,_=r+(_-r)*u/l,g=r+(g-r)*u/l}}functioni(t,e,n){returnv(t,e,n)-p(t,e,n)}functionr(t,e,n,i){varr,s=[t,e,n],a=v(t,e,n),o=p(t,e,n);o=o===t?0:o===e?1:2,a=a===t?0:a===e?1:2,r=0===p(o,a)?1===v(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,f=s[0],_=s[1],g=s[2]}vars,a,o,h,u,l,c,d,f,_,g,p=Math.min,v=Math.max,m=Math.abs,y={multiply:function(){f=u*s/255,_=l*a/255,g=c*o/255},screen:function(){f=u+s-u*s/255,_=l+a-l*a/255,g=c+o-c*o/255},overlay:function(){f=128>u?2*u*s/255:255-2*(255-u)*(255-s)/255,_=128>l?2*l*a/255:255-2*(255-l)*(255-a)/255,g=128>c?2*c*o/255:255-2*(255-c)*(255-o)/255},"soft-light":function(){vart=s*u/255;f=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(){f=128>s?2*s*u/255:255-2*(255-s)*(255-u)/255,_=128>a?2*a*l/255:255-2*(255-a)*(255-l)/255,g=128>o?2*o*c/255:255-2*(255-o)*(255-c)/255},"color-dodge":function(){f=0===u?0:255===s?255:p(255,255*u/(255-s)),_=0=
}for(vari=ne();be.postfix&&!B();){vart=E(i);t.operator=Ce,t.prefix=!1,t.argument=i,V(i),I(),i=N(t,"UpdateExpression")}returni}functionne(){returnie(re())}functionie(t,e){if(D(xn)){varn=E(t);returnn.object=t,n.property=le(!0),n.computed=!1,ie(N(n,"MemberExpression"),e)}if(D(dn)){varn=E(t);returnn.object=t,n.property=J(),n.computed=!0,F(fn),ie(N(n,"MemberExpression"),e)}if(!e&&D(pn)){varn=E(t);returnn.callee=t,n.arguments=ue(vn,!1),ie(N(n,"CallExpression"),e)}returnt}functionre(){switch(be){casean:vart=L();returnI(),N(t,"ThisExpression");caseDe:returnle();caseEe:caseje:caseNe:vart=L();returnt.value=Ce,t.raw=de.slice(me,ye),I(),N(t,"Literal");caseon:casehn:caseun:vart=L();returnt.value=be.atomValue,t.raw=be.keyword,I(),N(t,"Literal");casepn:vare=we,n=me;I();vari=J();returni.start=n,i.end=ye,ce.locations&&(i.loc.start=e,i.loc.end=xe),ce.ranges&&(i.range=[n,ye]),F(vn),i;casedn:vart=L();returnI(),t.elements=ue(fn,!0,!0),N(t,"ArrayExpression");case_n:returnae();case$e:vart=L();returnI(),he(t,!1);casesn:returnse();default:q()}}functionse(){vart=L();returnI(),t.callee=ie(re(),!0),t.arguments=D(pn)?ue(vn,!1):Le,N(t,"NewExpression")}functionae(){vart=L(),e=!0,i=!1;for(t.properties=[],I();!D(gn);){if(e)e=!1;elseif(F(mn),ce.allowTrailingCommas&&D(gn))break;varr,s={key:oe()},a=!1;if(D(wn)?(s.value=J(!0),r=s.kind="init"):ce.ecmaVersion>=5&&"Identifier"===s.key.type&&("get"===s.key.name||"set"===s.key.name)?(a=i=!0,r=s.kind=s.key.name,s.key=oe(),be!==pn&&q(),s.value=he(L(),!1)):q(),"Identifier"===s.key.type&&(Te||i))for(varo=0;o<t.properties.length;++o){varh=t.properties[o];if(h.key.name===s.key.name){varu=r==h.kind||a&&"init"===h.kind||"init"===r&&("get"===h.kind||"set"===h.kind);u&&!Te&&"init"===r&&"init"===h.kind&&(u=!1),u&&n(s.key.start,"Redefinition of property")}}t.properties.push(s)}returnN(t,"ObjectExpression")}functionoe(){returnbe===Ee||be===je?re():le(!0)}functionhe(t,e){be===De?t.id=le():e?q():t.id=null,t.params=[];vari=!0;for(F(pn);!D(vn);)i?i=!1:F(mn),t.params.push(le());varr=Ae,s=Oe;if(Ae=!0,Oe=[],t.body=W(!0),Ae=r,Oe=s,Te||t.body.body.length&&j(t.body.body[0]))for(vara=t.id?-1:0;a<t.params.length;++a){varo=0>a?t.id:t.params[a];if((Vn(o.name)||Zn(o.name))&&n(o.start,"Defining '"+o.name+"' in strict mode"),a>=0)for(varh=0;a>h;++h)o.name===t.params[h].name&&n(o.start,"Argument name clash in strict mode")}returnN(t,e?"FunctionDeclaration":"FunctionExpression")}functionue(t,e,n){for(vari=[],r=!0;!D(t);){if(r)r=!1;elseif(F(mn),e&&ce.allowTrailingCommas&&D(t))break;n&&be===mn?i.push(null):i.push(J(!0))}returni}functionle(t){vare=L();returne.name=be===De?Ce:t&&!ce.forbidReserved&&be.keyword||q(),I(),N(e,"Identifier")}t.version="0.3.2";varce,de,fe,_e;t.parse=function(t,n){returnde=t+"",fe=de.length,e(n),s(),Z(ce.program)};varge=t.defaultOptions={ecmaVersion:5,strictSemicolons:!1,allowTrailingCommas:!0,forbidReserved:!1,locations:!1,onComment:null,ranges:!1,program:null,sourceFile:null},pe=t.getLineInfo=function(t,e){for(varn=1,i=0;;){Yn.lastIndex=i;varr=Yn.exec(t);if(!(r&&r.index<e))break;++n,i=r.index+r[0].length}return{line:n,column:e-i}};t.tokenize=function(t,n){functioni(t){returny(t),r.start=me,r.end=ye,r.startLoc=we,r.endLoc=xe,r.type=be,r.value=Ce,r}de=t+"",fe=de.length,e(n),s();varr={};returni.jumpTo=function(t,e){if(ve=t,ce.locations){Pe=1,ke=Yn.lastIndex=0;for(varn;(n=Yn.exec(de))&&n.index<t;)++Pe,ke=n.index+n[0].length}Se=e,u()},i};varve,me,ye,we,xe,be,Ce,Se,Pe,ke,Me,ze,Ie,Ae,Oe,Te,Le=[],Ee={type:"num"},Ne={type:"regexp"},je={type:"string"},De={type:"name"},Be={type:"eof"},Re={keyword:"break"},Fe={keyword:"case",beforeExpr:!0},qe={keyword:"catch"},Ve={keyword:"continue"},Ze={keyword:"debugger"},He={keyword:"default"},Ue={keyword:"do",isLoop:!0},We={keyword:"else",beforeExpr:!0},Ge={keyword:"finally"},Xe={keyword:"for",isLoop:!0},$e={keyword:"function"},Je={keyword:"if"},Ye={keyword:"return",beforeExpr:!0},Ke={keyword:"switch"},Qe={keyword:"throw",beforeExpr:!0},tn={keyword:"try"},en={keyword:"var"},nn={keyword:"while",isLoop:!0},rn={keywo