text: /**
   * Hilo 1.0.1 for standalone
   * Copyright 2016 alibaba.com
   * Licensed under the MIT License
   */
  !function(t){var e=t.Hilo,i=e.Class,n=e.EventMixin,r=e.Matrix,o=function(){function t(t,e,i){for(var n,r,o,a,s=0,h=!1,u=0,y=i.length;y>u;u++){var x=i[u],l=i[(u+1)%y];if(x.y==l.y&&e==x.y&&(x.x>l.x?(n=l.x,r=x.x):(n=x.x,r=l.x),t>=n&&r>=t))h=!0;else if(x.y>l.y?(o=l.y,a=x.y):(o=x.y,a=l.y),!(o>e||e>a)){var d=(e-x.y)*(l.x-x.x)/(l.y-x.y)+x.x;if(d>t?s++:d==t&&(h=!0),x.x>t&&x.y==e){var c=i[(y+u-1)%y];(c.y<e&&l.y>e||c.y>e&&l.y<e)&&s++}}}return h||s%2==1}function o(t,e){var i=a(t,e,{overlap:-(1/0),normal:{x:0,y:0}});return i?a(e,t,i):!1}function a(t,e,i){for(var n,r,o,a,s,h,u,y,x,l=t.length,d=e.length,c={x:0,y:0},f=0;l>f;f++){n=t[f],r=t[l-1>f?f+1:0],c.x=n.y-r.y,c.y=r.x-n.x,o=Math.sqrt(c.x*c.x+c.y*c.y),c.x/=o,c.y/=o,a=s=t[0].x*c.x+t[0].y*c.y;for(var v=1;l>v;v++)y=t[v].x*c.x+t[v].y*c.y,y>s?s=y:a>y&&(a=y);for(h=u=e[0].x*c.x+e[0].y*c.y,v=1;d>v;v++)y=e[v].x*c.x+e[v].y*c.y,y>u?u=y:h>y&&(h=y);if(h>a?(x=h-s,c.x=-c.x,c.y=-c.y):x=a-u,x>=0)return!1;x>i.overlap&&(i.overlap=x,i.normal.x=c.x,i.normal.y=c.y)}return i}return i.create({Mixes:n,constructor:function(t){t=t||{},this.id=this.id||t.id||e.getUid("View"),e.copy(this,t,!0)},id:null,x:0,y:0,width:0,height:0,alpha:1,rotation:0,visible:!0,pivotX:0,pivotY:0,scaleX:1,scaleY:1,pointerEnabled:!0,background:null,mask:null,align:null,drawable:null,boundsArea:null,parent:null,depth:-1,getStage:function(){for(var t,e=this;t=e.parent;)e=t;return e.canvas?e:null},getScaledWidth:function(){return this.width*this.scaleX},getScaledHeight:function(){return this.height*this.scaleY},addTo:function(t,e){return"number"==typeof e?t.addChildAt(this,e):t.addChild(this),this},removeFromParent:function(){var t=this.parent;return t&&t.removeChild(this),this},getBounds:function(){for(var t,e,i,n,r,o,a,s=this.width,h=this.height,u=this.getConcatenatedMatrix(),y=this.boundsArea||[{x:0,y:0},{x:s,y:0},{x:s,y:h},{x:0,y:h}],x=[],l=0,d=y.length;d>l;l++)t=u.transformPoint(y[l],!0,!0),e=t.x,i=t.y,0==l?(n=r=e,o=a=i):(n>e?n=e:e>r&&(r=e),o>i?o=i:i>a&&(a=i)),x[l]=t;return x.x=n,x.y=o,x.width=r-n,x.height=a-o,x},getConcatenatedMatrix:function(t){for(var e=new r(1,0,0,1,0,0),i=this;i!=t&&i.parent;i=i.parent){var n=1,o=0,a=i.rotation%360,s=i.pivotX,h=i.pivotY,u=i.scaleX,y=i.scaleY;if(a){var x=a*Math.PI/180;n=Math.cos(x),o=Math.sin(x)}0!=s&&(e.tx-=s),0!=h&&(e.ty-=h),e.concat(n*u,o*u,-o*y,n*y,i.x,i.y)}return e},hitTestPoint:function(e,i,n){var r=this.getBounds(),o=e>=r.x&&e<=r.x+r.width&&i>=r.y&&i<=r.y+r.height;return o&&n&&(o=t(e,i,r)),o},hitTestObject:function(t,e){var i=this.getBounds(),n=t.getBounds(),r=i.x<=n.x+n.width&&n.x<=i.x+i.width&&i.y<=n.y+n.height&&n.y<=i.y+i.height;return r&&e&&(r=o(i,n)),!!r},_render:function(t,e){this.onUpdate&&this.onUpdate(e)===!1||!t.startDraw(this)||(t.transform(this),this.render(t,e),t.endDraw(this))},_fireMouseEvent:function(t){if(t.eventCurrentTarget=this,this.fire(t),"mousemove"==t.type){if(!this.__mouseOver){this.__mouseOver=!0;var i=e.copy({},t);i.type="mouseover",this.fire(i)}}else"mouseout"==t.type&&(this.__mouseOver=!1);var n=this.parent;t._stopped||t._stopPropagationed||!n||("mouseout"==t.type||"touchout"==t.type?n.hitTestPoint(t.stageX,t.stageY,!0)||n._fireMouseEvent(t):n._fireMouseEvent(t))},onUpdate:null,render:function(t,e){t.draw(this)},toString:function(){return e.viewToString(this)}})}();e.View=o}(window);