//>>built
require({cache:{"dojox/gfx/shape":function(){define("./_base dojo/_base/lang dojo/_base/declare dojo/_base/kernel dojo/_base/sniff dojo/on dojo/_base/array dojo/dom-construct dojo/_base/Color ./matrix".split(" "),function(f,m,q,x,v,e,d,k,t,b){function n(a,b){if(!p)return a.splice(b,1);var d=a.length;if(d){for(;b<d;)a[b]=a[b+1],b++;a.length--}}var p=!!v("chrome"),h=f.shape={};h.Shape=q("dojox.gfx.shape.Shape",null,{constructor:function(){this.parentMatrix=this.parent=this.bbox=this.strokeStyle=this.fillStyle=
this.matrix=this.shape=this.rawNode=null;if(v("gfxRegistry")){var a=h.register(this);this.getUID=function(){return a}}},destroy:function(){v("gfxRegistry")&&h.dispose(this);this.rawNode&&"__gfxObject__"in this.rawNode&&(this.rawNode.__gfxObject__=null);this.rawNode=null},getNode:function(){return this.rawNode},getShape:function(){return this.shape},getTransform:function(){return this.matrix},getFill:function(){return this.fillStyle},getStroke:function(){return this.strokeStyle},getParent:function(){return this.parent},
getBoundingBox:function(){return this.bbox},getTransformedBoundingBox:function(){var a=this.getBoundingBox();if(!a)return null;var d=this._getRealMatrix();return[b.multiplyPoint(d,a.x,a.y),b.multiplyPoint(d,a.x+a.width,a.y),b.multiplyPoint(d,a.x+a.width,a.y+a.height),b.multiplyPoint(d,a.x,a.y+a.height)]},getEventSource:function(){return this.rawNode},setClip:function(a){this.clip=a},getClip:function(){return this.clip},setShape:function(a){this.shape=f.makeParameters(this.shape,a);this.bbox=null;
return this},setFill:function(a){if(!a)return this.fillStyle=null,this;var b=null;if("object"==typeof a&&"type"in a)switch(a.type){case "linear":b=f.makeParameters(f.defaultLinearGradient,a);break;case "radial":b=f.makeParameters(f.defaultRadialGradient,a);break;case "pattern":b=f.makeParameters(f.defaultPattern,a)}else b=f.normalizeColor(a);this.fillStyle=b;return this},setStroke:function(a){if(!a)return this.strokeStyle=null,this;if("string"==typeof a||m.isArray(a)||a instanceof t)a={color:a};a=
this.strokeStyle=f.makeParameters(f.defaultStroke,a);a.color=f.normalizeColor(a.color);return this},setTransform:function(a){this.matrix=b.clone(a?b.normalize(a):b.identity);return this._applyTransform()},_applyTransform:function(){return this},moveToFront:function(){var a=this.getParent();a&&(a._moveChildToFront(this),this._moveToFront());return this},moveToBack:function(){var a=this.getParent();a&&(a._moveChildToBack(this),this._moveToBack());return this},_moveToFront:function(){},_moveToBack:function(){},
applyRightTransform:function(a){return a?this.setTransform([this.matrix,a]):this},applyLeftTransform:function(a){return a?this.setTransform([a,this.matrix]):this},applyTransform:function(a){return a?this.setTransform([this.matrix,a]):this},removeShape:function(a){this.parent&&this.parent.remove(this,a);return this},_setParent:function(a,b){this.parent=a;return this._updateParentMatrix(b)},_updateParentMatrix:function(a){this.parentMatrix=a?b.clone(a):null;return this._applyTransform()},_getRealMatrix:function(){for(var a=
this.matrix,d=this.parent;d;)d.matrix&&(a=b.multiply(d.matrix,a)),d=d.parent;return a}});h._eventsProcessing={on:function(a,b){return e(this.getEventSource(),a,h.fixCallback(this,f.fixTarget,b))},connect:function(a,b,d){"on"==a.substring(0,2)&&(a=a.substring(2));return this.on(a,d?m.hitch(b,d):b)},disconnect:function(a){return a.remove()}};h.fixCallback=function(a,b,d,e){e||(e=d,d=null);if(m.isString(e)){d=d||x.global;if(!d[e])throw['dojox.gfx.shape.fixCallback: scope["',e,'"] is null (scope\x3d"',
d,'")'].join("");return function(k){return b(k,a)?d[e].apply(d,arguments||[]):void 0}}return d?function(k){return b(k,a)?e.apply(d,arguments||[]):void 0}:function(k){return b(k,a)?e.apply(d,arguments):void 0}};m.extend(h.Shape,h._eventsProcessing);h.Container={_init:function(){this.children=[];this._batch=0},openBatch:function(){return this},closeBatch:function(){return this},add:function(a){var b=a.getParent();b&&b.remove(a,!0);this.children.push(a);return a._setParent(this,this._getRealMatrix())},
remove:function(a,b){for(var d=0;d<this.children.length;++d)if(this.children[d]==a){b||(a.parent=null,a.parentMatrix=null);n(this.children,d);break}return this},clear:function(a){for(var b,d=0;d<this.children.length;++d)b=this.children[d],b.parent=null,b.parentMatrix=null,a&&b.destroy();this.children=[];return this},getBoundingBox:function(){if(this.children){var a=null;d.forEach(this.children,function(d){var e=d.getBoundingBox();e&&((d=d.getTransform())&&(e=b.multiplyRectangle(d,e)),a?(a.x=Math.min(a.x,
e.x),a.y=Math.min(a.y,e.y),a.endX=Math.max(a.endX,e.x+e.width),a.endY=Math.max(a.endY,e.y+e.height)):a={x:e.x,y:e.y,endX:e.x+e.width,endY:e.y+e.height})});a&&(a.width=a.endX-a.x,a.height=a.endY-a.y);return a}return null},_moveChildToFront:function(a){for(var b=0;b<this.children.length;++b)if(this.children[b]==a){n(this.children,b);this.children.push(a);break}return this},_moveChildToBack:function(a){for(var b=0;b<this.children.length;++b)if(this.children[b]==a){n(this.children,b);this.children.unshift(a);
break}return this}};h.Surface=q("dojox.gfx.shape.Surface",null,{constructor:function(){this._parent=this.rawNode=null;this._nodes=[];this._events=[]},destroy:function(){d.forEach(this._nodes,k.destroy);this._nodes=[];d.forEach(this._events,function(a){a&&a.remove()});this._events=[];this.rawNode=null;if(v("ie"))for(;this._parent.lastChild;)k.destroy(this._parent.lastChild);else this._parent.innerHTML="";this._parent=null},getEventSource:function(){return this.rawNode},_getRealMatrix:function(){return null},
isLoaded:!0,onLoad:function(a){},whenLoaded:function(a,b){var d=m.hitch(a,b);if(this.isLoaded)d(this);else e.once(this,"load",function(a){d(a)})}});m.extend(h.Surface,h._eventsProcessing);h.Rect=q("dojox.gfx.shape.Rect",h.Shape,{constructor:function(a){this.shape=f.getDefault("Rect");this.rawNode=a},getBoundingBox:function(){return this.shape}});h.Ellipse=q("dojox.gfx.shape.Ellipse",h.Shape,{constructor:function(a){this.shape=f.getDefault("Ellipse");this.rawNode=a},getBoundingBox:function(){if(!this.bbox){var a=
this.shape;this.bbox={x:a.cx-a.rx,y:a.cy-a.ry,width:2*a.rx,height:2*a.ry}}return this.bbox}});h.Circle=q("dojox.gfx.shape.Circle",h.Shape,{constructor:function(a){this.shape=f.getDefault("Circle");this.rawNode=a},getBoundingBox:function(){if(!this.bbox){var a=this.shape;this.bbox={x:a.cx-a.r,y:a.cy-a.r,width:2*a.r,height:2*a.r}}return this.bbox}});h.Line=q("dojox.gfx.shape.Line",h.Shape,{constructor:function(a){this.shape=f.getDefault("Line");this.rawNode=a},getBoundingBox:function(){if(!this.bbox){var a=
this.shape;this.bbox={x:Math.min(a.x1,a.x2),y:Math.min(a.y1,a.y2),width:Math.abs(a.x2-a.x1),height:Math.abs(a.y2-a.y1)}}return this.bbox}});h.Polyline=q("dojox.gfx.shape.Polyline",h.Shape,{constructor:function(a){this.shape=f.getDefault("Polyline");this.rawNode=a},setShape:function(a,b){a&&a instanceof Array?(this.inherited(arguments,[{points:a}]),b&&this.shape.points.length&&this.shape.points.push(this.shape.points[0])):this.inherited(arguments,[a]);return this},_normalizePoints:function(){var a=
this.shape.points,b=a&&a.length;if(b&&"number"==typeof a[0]){for(var d=[],e=0;e<b;e+=2)d.push({x:a[e],y:a[e+1]});this.shape.points=d}},getBoundingBox:function(){if(!this.bbox&&this.shape.points.length){for(var a=this.shape.points,b=a.length,d=a[0],e=d.x,k=d.y,h=d.x,n=d.y,c=1;c<b;++c)d=a[c],e>d.x&&(e=d.x),h<d.x&&(h=d.x),k>d.y&&(k=d.y),n<d.y&&(n=d.y);this.bbox={x:e,y:k,width:h-e,height:n-k}}return this.bbox}});h.Image=q("dojox.gfx.shape.Image",h.Shape,{constructor:function(a){this.shape=f.getDefault("Image");
this.rawNode=a},getBoundingBox:function(){return this.shape},setStroke:function(){return this},setFill:function(){return this}});h.Text=q(h.Shape,{constructor:function(a){this.fontStyle=null;this.shape=f.getDefault("Text");this.rawNode=a},getFont:function(){return this.fontStyle},setFont:function(a){this.fontStyle="string"==typeof a?f.splitFontString(a):f.makeParameters(f.defaultFont,a);this._setFont();return this},getBoundingBox:function(){var a=null;this.getShape().text&&(a=f._base._computeTextBoundingBox(this));
return a}});h.Creator={createShape:function(a){switch(a.type){case f.defaultPath.type:return this.createPath(a);case f.defaultRect.type:return this.createRect(a);case f.defaultCircle.type:return this.createCircle(a);case f.defaultEllipse.type:return this.createEllipse(a);case f.defaultLine.type:return this.createLine(a);case f.defaultPolyline.type:return this.createPolyline(a);case f.defaultImage.type:return this.createImage(a);case f.defaultText.type:return this.createText(a);case f.defaultTextPath.type:return this.createTextPath(a)}return null},
createGroup:function(){return this.createObject(f.Group)},createRect:function(a){return this.createObject(f.Rect,a)},createEllipse:function(a){return this.createObject(f.Ellipse,a)},createCircle:function(a){return this.createObject(f.Circle,a)},createLine:function(a){return this.createObject(f.Line,a)},createPolyline:function(a){return this.createObject(f.Polyline,a)},createImage:function(a){return this.createObject(f.Image,a)},createText:function(a){return this.createObject(f.Text,a)},createPath:function(a){return this.createObject(f.Path,
a)},createTextPath:function(a){return this.createObject(f.TextPath,{}).setText(a)},createObject:function(a,b){return null}};return h})},"dojox/gfx/path":function(){define(["./_base","dojo/_base/lang","dojo/_base/declare","./matrix","./shape"],function(f,m,q,x,v){v=q("dojox.gfx.path.Path",v.Shape,{constructor:function(e){this.shape=m.clone(f.defaultPath);this.segments=[];this.tbbox=null;this.absolute=!0;this.last={};this.rawNode=e;this.segmented=!1},setAbsoluteMode:function(e){this._confirmSegmented();
this.absolute="string"==typeof e?"absolute"==e:e;return this},getAbsoluteMode:function(){this._confirmSegmented();return this.absolute},getBoundingBox:function(){this._confirmSegmented();return this.bbox&&"l"in this.bbox?{x:this.bbox.l,y:this.bbox.t,width:this.bbox.r-this.bbox.l,height:this.bbox.b-this.bbox.t}:null},_getRealBBox:function(){this._confirmSegmented();if(this.tbbox)return this.tbbox;var e=this.bbox,d=this._getRealMatrix();this.bbox=null;for(var k=0,f=this.segments.length;k<f;++k)this._updateWithSegment(this.segments[k],
d);d=this.bbox;this.bbox=e;return this.tbbox=d?[{x:d.l,y:d.t},{x:d.r,y:d.t},{x:d.r,y:d.b},{x:d.l,y:d.b}]:null},getLastPosition:function(){this._confirmSegmented();return"x"in this.last?this.last:null},_applyTransform:function(){this.tbbox=null;return this.inherited(arguments)},_updateBBox:function(e,d,k){k&&(d=x.multiplyPoint(k,e,d),e=d.x,d=d.y);this.bbox&&"l"in this.bbox?(this.bbox.l>e&&(this.bbox.l=e),this.bbox.r<e&&(this.bbox.r=e),this.bbox.t>d&&(this.bbox.t=d),this.bbox.b<d&&(this.bbox.b=d)):
this.bbox={l:e,b:d,r:e,t:d}},_updateWithSegment:function(e,d){var k=e.args,t=k.length,b;switch(e.action){case "M":case "L":case "C":case "S":case "Q":case "T":for(b=0;b<t;b+=2)this._updateBBox(k[b],k[b+1],d);this.last.x=k[t-2];this.last.y=k[t-1];this.absolute=!0;break;case "H":for(b=0;b<t;++b)this._updateBBox(k[b],this.last.y,d);this.last.x=k[t-1];this.absolute=!0;break;case "V":for(b=0;b<t;++b)this._updateBBox(this.last.x,k[b],d);this.last.y=k[t-1];this.absolute=!0;break;case "m":b=0;"x"in this.last||
(this._updateBBox(this.last.x=k[0],this.last.y=k[1],d),b=2);for(;b<t;b+=2)this._updateBBox(this.last.x+=k[b],this.last.y+=k[b+1],d);this.absolute=!1;break;case "l":case "t":for(b=0;b<t;b+=2)this._updateBBox(this.last.x+=k[b],this.last.y+=k[b+1],d);this.absolute=!1;break;case "h":for(b=0;b<t;++b)this._updateBBox(this.last.x+=k[b],this.last.y,d);this.absolute=!1;break;case "v":for(b=0;b<t;++b)this._updateBBox(this.last.x,this.last.y+=k[b],d);this.absolute=!1;break;case "c":for(b=0;b<t;b+=6)this._updateBBox(this.last.x+
k[b],this.last.y+k[b+1],d),this._updateBBox(this.last.x+k[b+2],this.last.y+k[b+3],d),this._updateBBox(this.last.x+=k[b+4],this.last.y+=k[b+5],d);this.absolute=!1;break;case "s":case "q":for(b=0;b<t;b+=4)this._updateBBox(this.last.x+k[b],this.last.y+k[b+1],d),this._updateBBox(this.last.x+=k[b+2],this.last.y+=k[b+3],d);this.absolute=!1;break;case "A":for(b=0;b<t;b+=7)this._updateBBox(k[b+5],k[b+6],d);this.last.x=k[t-2];this.last.y=k[t-1];this.absolute=!0;break;case "a":for(b=0;b<t;b+=7)this._updateBBox(this.last.x+=
k[b+5],this.last.y+=k[b+6],d);this.absolute=!1}var n=[e.action];for(b=0;b<t;++b)n.push(f.formatNumber(k[b],!0));if("string"==typeof this.shape.path)this.shape.path+=n.join("");else for(b=0,t=n.length;b<t;++b)this.shape.path.push(n[b])},_validSegments:{m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7,z:0},_pushSegment:function(e,d){this.tbbox=null;var k=this._validSegments[e.toLowerCase()];"number"==typeof k&&(k?d.length>=k&&(k={action:e,args:d.slice(0,d.length-d.length%k)},this.segments.push(k),this._updateWithSegment(k)):
(k={action:e,args:[]},this.segments.push(k),this._updateWithSegment(k)))},_collectArgs:function(e,d){for(var k=0;k<d.length;++k){var f=d[k];"boolean"==typeof f?e.push(f?1:0):"number"==typeof f?e.push(f):f instanceof Array?this._collectArgs(e,f):"x"in f&&"y"in f&&e.push(f.x,f.y)}},moveTo:function(){this._confirmSegmented();var e=[];this._collectArgs(e,arguments);this._pushSegment(this.absolute?"M":"m",e);return this},lineTo:function(){this._confirmSegmented();var e=[];this._collectArgs(e,arguments);
this._pushSegment(this.absolute?"L":"l",e);return this},hLineTo:function(){this._confirmSegmented();var e=[];this._collectArgs(e,arguments);this._pushSegment(this.absolute?"H":"h",e);return this},vLineTo:function(){this._confirmSegmented();var e=[];this._collectArgs(e,arguments);this._pushSegment(this.absolute?"V":"v",e);return this},curveTo:function(){this._confirmSegmented();var e=[];this._collectArgs(e,arguments);this._pushSegment(this.absolute?"C":"c",e);return this},smoothCurveTo:function(){this._confirmSegmented();
var e=[];this._collectArgs(e,arguments);this._pushSegment(this.absolute?"S":"s",e);return this},qCurveTo:function(){this._confirmSegmented();var e=[];this._collectArgs(e,arguments);this._pushSegment(this.absolute?"Q":"q",e);return this},qSmoothCurveTo:function(){this._confirmSegmented();var e=[];this._collectArgs(e,arguments);this._pushSegment(this.absolute?"T":"t",e);return this},arcTo:function(){this._confirmSegmented();var e=[];this._collectArgs(e,arguments);this._pushSegment(this.absolute?"A":
"a",e);return this},closePath:function(){this._confirmSegmented();this._pushSegment("Z",[]);return this},_confirmSegmented:function(){if(!this.segmented){var e=this.shape.path;this.shape.path=[];this._setPath(e);this.shape.path=this.shape.path.join("");this.segmented=!0}},_setPath:function(e){e=m.isArray(e)?e:e.match(f.pathSvgRegExp);this.segments=[];this.absolute=!0;this.bbox={};this.last={};if(e){for(var d="",k=[],q=e.length,b=0;b<q;++b){var n=e[b],p=parseFloat(n);isNaN(p)?(d&&this._pushSegment(d,
k),k=[],d=n):k.push(p)}this._pushSegment(d,k)}},setShape:function(e){this.inherited(arguments,["string"==typeof e?{path:e}:e]);this.segmented=!1;this.segments=[];f.lazyPathSegmentation||this._confirmSegmented();return this},_2PI:2*Math.PI});q=q("dojox.gfx.path.TextPath",v,{constructor:function(e){"text"in this||(this.text=m.clone(f.defaultTextPath));"fontStyle"in this||(this.fontStyle=m.clone(f.defaultFont))},getText:function(){return this.text},setText:function(e){this.text=f.makeParameters(this.text,
"string"==typeof e?{text:e}:e);this._setText();return this},getFont:function(){return this.fontStyle},setFont:function(e){this.fontStyle="string"==typeof e?f.splitFontString(e):f.makeParameters(f.defaultFont,e);this._setFont();return this}});return f.path={Path:v,TextPath:q}})},"dojox/gfx/arc":function(){define(["./_base","dojo/_base/lang","./matrix"],function(f,m,q){function x(b){var d=Math.cos(b);b=Math.sin(b);var e={x:d+4/3*(1-d),y:b-4/3*d*(1-d)/b};return{s:{x:d,y:-b},c1:{x:e.x,y:-e.y},c2:e,e:{x:d,
y:b}}}var v=2*Math.PI,e=Math.PI/4,d=Math.PI/8,k=e+d,t=x(d);return f.arc={unitArcAsBezier:x,curvePI4:t,arcAsBezier:function(b,f,p,h,a,m,r,w){a=!!a;m=!!m;var l=q._degToRad(h);h=f*f;var n=p*p,u=q.multiplyPoint(q.rotate(-l),{x:(b.x-r)/2,y:(b.y-w)/2}),c=u.x*u.x,g=u.y*u.y;h=Math.sqrt((h*n-h*g-n*c)/(h*g+n*c));isNaN(h)&&(h=0);h={x:h*f*u.y/p,y:-h*p*u.x/f};a==m&&(h={x:-h.x,y:-h.y});h=q.multiplyPoint([q.translate((b.x+r)/2,(b.y+w)/2),q.rotate(l)],h);f=q.normalize([q.translate(h.x,h.y),q.rotate(l),q.scale(f,
p)]);h=q.invert(f);b=q.multiplyPoint(h,b);w=q.multiplyPoint(h,r,w);r=Math.atan2(b.y,b.x);h=r-Math.atan2(w.y,w.x);m&&(h=-h);0>h?h+=v:h>v&&(h-=v);p=d;w=t;p=m?p:-p;b=[];for(a=h;0<a;a-=e)a<k&&(p=a/2,w=x(p),p=m?p:-p,a=0),u=q.normalize([f,q.rotate(r+p)]),m?(h=q.multiplyPoint(u,w.c1),l=q.multiplyPoint(u,w.c2),u=q.multiplyPoint(u,w.e)):(h=q.multiplyPoint(u,w.c2),l=q.multiplyPoint(u,w.c1),u=q.multiplyPoint(u,w.s)),b.push([h.x,h.y,l.x,l.y,u.x,u.y]),r+=2*p;return b}}})},"dojox/gfx/gradient":function(){define(["dojo/_base/lang",
"./matrix","dojo/_base/Color"],function(f,m,q){function x(d,e,f,b,n,p){d=m.multiplyPoint(f,d,e);b=m.multiplyPoint(b,d);return{r:d,p:b,o:m.multiplyPoint(n,b).x/p}}function v(d,e){return d.o-e.o}var e=f.getObject("dojox.gfx.gradient",!0);e.rescale=function(d,e,f){var b=d.length,k=f<e,p;k&&(p=e,e=f,f=p);if(!b)return[];if(f<=d[0].offset)p=[{offset:0,color:d[0].color},{offset:1,color:d[0].color}];else if(e>=d[b-1].offset)p=[{offset:0,color:d[b-1].color},{offset:1,color:d[b-1].color}];else{var h=f-e,a,
m,r;p=[];0>e&&p.push({offset:0,color:new q(d[0].color)});for(r=0;r<b&&!(a=d[r],a.offset>=e);++r);r?(m=d[r-1],p.push({offset:0,color:q.blendColors(new q(m.color),new q(a.color),(e-m.offset)/(a.offset-m.offset))})):p.push({offset:0,color:new q(a.color)});for(;r<b;++r){a=d[r];if(a.offset>=f)break;p.push({offset:(a.offset-e)/h,color:new q(a.color)})}r<b?(m=d[r-1],p.push({offset:1,color:q.blendColors(new q(m.color),new q(a.color),(f-m.offset)/(a.offset-m.offset))})):p.push({offset:1,color:new q(d[b-1].color)})}if(k)for(p.reverse(),
r=0,b=p.length;r<b;++r)a=p[r],a.offset=1-a.offset;return p};e.project=function(d,f,q,b,n,p){d=d||m.identity;var h=m.multiplyPoint(d,f.x1,f.y1),a=m.multiplyPoint(d,f.x2,f.y2);n=Math.atan2(a.y-h.y,a.x-h.x);p=m.project(a.x-h.x,a.y-h.y);h=m.multiplyPoint(p,h);a=m.multiplyPoint(p,a);h=new m.Matrix2D([m.rotate(-n),{dx:-h.x,dy:-h.y}]);a=m.multiplyPoint(h,a).x;d=[x(q.x,q.y,d,p,h,a),x(b.x,b.y,d,p,h,a),x(q.x,b.y,d,p,h,a),x(b.x,q.y,d,p,h,a)].sort(v);f=e.rescale(f.colors,d[0].o,d[3].o);return{type:"linear",x1:d[0].p.x,
y1:d[0].p.y,x2:d[3].p.x,y2:d[3].p.y,colors:f,angle:n}};return e})},"*noref":1}});
define("dojox/gfx/vml","dojo/_base/lang dojo/_base/declare dojo/_base/array dojo/_base/Color dojo/_base/sniff dojo/_base/config dojo/dom dojo/dom-geometry dojo/dom-style dojo/_base/kernel ./_base ./shape ./path ./arc ./gradient ./matrix".split(" "),function(f,m,q,x,v,e,d,k,t,b,n,p,h,a,A,r){function w(c,g,a){a=a||b.global;g.call(a,c);(c instanceof n.Surface||c instanceof n.Group)&&q.forEach(c.children,function(c){w(c,g,a)})}var l=n.vml={},z=function(){l.xmlns="urn:schemas-microsoft-com:vml";try{document.namespaces.add("v",
l.xmlns);var c="* group roundrect oval shape rect imagedata path textpath text".split(" "),g=0,a=1,b=document.createStyleSheet();8<=v("ie")&&(g=1,a=c.length);for(;g<a;++g)b.addRule("v\\:"+c[g],"behavior:url(#default#VML); display:inline-block")}catch(B){setTimeout(z,10)}};z();l.text_alignment={start:"left",middle:"center",end:"right"};l._parseFloat=function(c){return c.match(/^\d+f$/i)?parseInt(c)/65536:parseFloat(c)};l._bool={t:1,"true":1};l._reparentEvents=function(c,g){for(var a in g)"on"==a.substr(0,
2).toLowerCase()&&(c[a]=g[a],g[a]=null)};l.Shape=m("dojox.gfx.vml.Shape",p.Shape,{setFill:function(c){if(!c)return this.fillStyle=null,this.rawNode.filled="f",this;var g,a,b;if("object"==typeof c&&"type"in c){switch(c.type){case "linear":var d=this._getRealMatrix(),e=this.getBoundingBox(),f=this._getRealBBox?this._getRealBBox():this.getTransformedBoundingBox();b=[];this.fillStyle!==c&&(this.fillStyle=n.makeParameters(n.defaultLinearGradient,c));c=n.gradient.project(d,this.fillStyle,{x:e.x,y:e.y},
{x:e.x+e.width,y:e.y+e.height},f[0],f[2]);a=c.colors;"0.00000"!=a[0].offset.toFixed(5)&&b.push("0 "+n.normalizeColor(a[0].color).toHex());for(g=0;g<a.length;++g)b.push(a[g].offset.toFixed(5)+" "+n.normalizeColor(a[g].color).toHex());g=a.length-1;"1.00000"!=a[g].offset.toFixed(5)&&b.push("1 "+n.normalizeColor(a[g].color).toHex());g=this.rawNode.fill;g.colors.value=b.join(";");g.method="sigma";g.type="gradient";g.angle=(270-r._radToDeg(c.angle))%360;g.on=!0;break;case "radial":this.fillStyle=c=n.makeParameters(n.defaultRadialGradient,
c);var d=parseFloat(this.rawNode.style.left),e=parseFloat(this.rawNode.style.top),f=parseFloat(this.rawNode.style.width),h=parseFloat(this.rawNode.style.height),k=isNaN(f)?1:2*c.r/f;a=[];0<c.colors[0].offset&&a.push({offset:1,color:n.normalizeColor(c.colors[0].color)});q.forEach(c.colors,function(c,g){a.push({offset:1-c.offset*k,color:n.normalizeColor(c.color)})});for(g=a.length-1;0<=g&&0>a[g].offset;)--g;if(g<a.length-1){b=a[g];var l=a[g+1];l.color=x.blendColors(b.color,l.color,b.offset/(b.offset-
l.offset));for(l.offset=0;2<a.length-g;)a.pop()}g=a.length-1;b=[];for(0<a[g].offset&&b.push("0 "+a[g].color.toHex());0<=g;--g)b.push(a[g].offset.toFixed(5)+" "+a[g].color.toHex());g=this.rawNode.fill;g.colors.value=b.join(";");g.method="sigma";g.type="gradientradial";isNaN(f)||isNaN(h)||isNaN(d)||isNaN(e)?g.focusposition="0.5 0.5":g.focusposition=((c.cx-d)/f).toFixed(5)+" "+((c.cy-e)/h).toFixed(5);g.focussize="0 0";g.on=!0;break;case "pattern":this.fillStyle=c=n.makeParameters(n.defaultPattern,c),
g=this.rawNode.fill,g.type="tile",g.src=c.src,c.width&&c.height&&(g.size.x=n.px2pt(c.width),g.size.y=n.px2pt(c.height)),g.alignShape="f",g.position.x=0,g.position.y=0,g.origin.x=c.width?c.x/c.width:0,g.origin.y=c.height?c.y/c.height:0,g.on=!0}this.rawNode.fill.opacity=1;return this}this.fillStyle=n.normalizeColor(c);(g=this.rawNode.fill)||(g=this.rawNode.ownerDocument.createElement("v:fill"));g.method="any";g.type="solid";g.opacity=this.fillStyle.a;if(b=this.rawNode.filters["DXImageTransform.Microsoft.Alpha"])b.opacity=
Math.round(100*this.fillStyle.a);this.rawNode.fillcolor=this.fillStyle.toHex();this.rawNode.filled=!0;return this},setStroke:function(c){if(!c)return this.strokeStyle=null,this.rawNode.stroked="f",this;if("string"==typeof c||f.isArray(c)||c instanceof x)c={color:c};c=this.strokeStyle=n.makeParameters(n.defaultStroke,c);c.color=n.normalizeColor(c.color);var g=this.rawNode;g.stroked=!0;g.strokecolor=c.color.toCss();g.strokeweight=c.width+"px";g.stroke&&(g.stroke.opacity=c.color.a,g.stroke.endcap=this._translate(this._capMap,
c.cap),"number"==typeof c.join?(g.stroke.joinstyle="miter",g.stroke.miterlimit=c.join):g.stroke.joinstyle=c.join,g.stroke.dashstyle="none"==c.style?"Solid":c.style);return this},_capMap:{butt:"flat"},_capMapReversed:{flat:"butt"},_translate:function(c,g){return g in c?c[g]:g},_applyTransform:function(){var c=this._getRealMatrix();if(c){var g=this.rawNode.skew;if("undefined"==typeof g)for(var a=0;a<this.rawNode.childNodes.length;++a)if("skew"==this.rawNode.childNodes[a].tagName){g=this.rawNode.childNodes[a];
break}if(g){g.on="f";var a=c.xx.toFixed(8)+" "+c.xy.toFixed(8)+" "+c.yx.toFixed(8)+" "+c.yy.toFixed(8)+" 0 0",c=Math.floor(c.dx).toFixed()+"px "+Math.floor(c.dy).toFixed()+"px",b=this.rawNode.style,d=parseFloat(b.left),e=parseFloat(b.top),f=parseFloat(b.width),b=parseFloat(b.height);isNaN(d)&&(d=0);isNaN(e)&&(e=0);if(isNaN(f)||!f)f=1;if(isNaN(b)||!b)b=1;d=(-d/f-.5).toFixed(8)+" "+(-e/b-.5).toFixed(8);g.matrix=a;g.origin=d;g.offset=c;g.on=!0}}this.fillStyle&&"linear"==this.fillStyle.type&&this.setFill(this.fillStyle);
this.clip&&this.setClip(this.clip);return this},_setDimensions:function(c,g){return this},setRawNode:function(c){c.stroked="f";c.filled="f";this.rawNode=c;this.rawNode.__gfxObject__=this},_moveToFront:function(){this.rawNode.parentNode.appendChild(this.rawNode);return this},_moveToBack:function(){var c=this.rawNode,g=c.parentNode,a=g.firstChild;g.insertBefore(c,a);"rect"==a.tagName&&a.swapNode(c);return this},_getRealMatrix:function(){return this.parentMatrix?new r.Matrix2D([this.parentMatrix,this.matrix]):
this.matrix},setClip:function(c){this.inherited(arguments);var g=this.rawNode.style;if(!c)g.position="absolute",g.clip="rect(0px "+g.width+" "+g.height+" 0px)";else if("width"in c){var a=this._getRealMatrix(),b=parseFloat(g.left),d=parseFloat(g.top);isNaN(b)&&(b=0);isNaN(d)&&(d=0);var e=r.multiplyRectangle(a,c),a=r.multiplyPoint(a,{x:b,y:d});g.clip="rect("+Math.round(e.y-a.y)+"px "+Math.round(e.x-a.x+e.width)+"px "+Math.round(e.y-a.y+e.height)+"px "+Math.round(e.x-a.x)+"px)"}return this}});(function(){var c=
l.Shape,g=c.prototype.setStroke,a=c.prototype.setFill;c.prototype.setStroke=function(){var c=g.apply(this,arguments),a=this.rawNode,a=a&&a.stroke,b=this.getParent();a&&b&&(a.opacity*=void 0!==b._esriIeOpacity&&null!==b._esriIeOpacity?b._esriIeOpacity:1);return c};c.prototype.setFill=function(){var c=a.apply(this,arguments),g=this.rawNode,b=g&&g.fill,d=this.getParent();b&&d&&(d=void 0!==d._esriIeOpacity&&null!==d._esriIeOpacity?d._esriIeOpacity:1,"tile"===b.type?t.set(g,"opacity",d):b.opacity*=d);
return c}})();l.Group=m("dojox.gfx.vml.Group",l.Shape,{constructor:function(){p.Container._init.call(this)},_applyTransform:function(){for(var c=this._getRealMatrix(),a=0;a<this.children.length;++a)this.children[a]._updateParentMatrix(c);this.clip&&this.setClip(this.clip);return this},_setDimensions:function(c,a){var g=this.rawNode,b=g.style,d=this.bgNode.style;b.width=c;b.height=a;g.coordsize=c+" "+a;d.width=c;d.height=a;for(g=0;g<this.children.length;++g)this.children[g]._setDimensions(c,a);return this},
setClip:function(c){this.clip=c;var a=this.rawNode.style;if(!c)a.position="absolute",a.clip="rect(0px "+a.width+" "+a.height+" 0px)";else if("width"in c){var b=this._getRealMatrix();c=r.multiplyRectangle(b,c);var d=this.getBoundingBox(),b=(d=d?r.multiplyRectangle(b,d):null)&&0>d.x?d.x:0,d=d&&0>d.y?d.y:0;a.position="absolute";a.clip="rect("+Math.round(c.y-d)+"px "+Math.round(c.x+c.width-b)+"px "+Math.round(c.y+c.height-d)+"px "+Math.round(c.x-b)+"px)"}return this},destroy:function(){this.clear(!0);
l.Shape.prototype.destroy.apply(this,arguments)}});l.Group.nodeType="group";l.Rect=m("dojox.gfx.vml.Rect",[l.Shape,p.Rect],{setShape:function(c){c=this.shape=n.makeParameters(this.shape,c);this.bbox=null;var a=Math.min(1,c.r/Math.min(parseFloat(c.width),parseFloat(c.height))).toFixed(8),b=this.rawNode.parentNode,d=null;if(b){if(b.lastChild!==this.rawNode)for(var e=0;e<b.childNodes.length;++e)if(b.childNodes[e]===this.rawNode){d=b.childNodes[e+1];break}b.removeChild(this.rawNode)}7<v("ie")?(e=this.rawNode.ownerDocument.createElement("v:roundrect"),
e.arcsize=a,e.style.display="inline-block",l._reparentEvents(e,this.rawNode),this.rawNode=e,this.rawNode.__gfxObject__=this):this.rawNode.arcsize=a;b&&(d?b.insertBefore(this.rawNode,d):b.appendChild(this.rawNode));a=this.rawNode.style;a.left=c.x.toFixed();a.top=c.y.toFixed();a.width="string"==typeof c.width&&0<=c.width.indexOf("%")?c.width:Math.max(c.width.toFixed(),0);a.height="string"==typeof c.height&&0<=c.height.indexOf("%")?c.height:Math.max(c.height.toFixed(),0);return this.setTransform(this.matrix).setFill(this.fillStyle).setStroke(this.strokeStyle)}});
l.Rect.nodeType="roundrect";l.Ellipse=m("dojox.gfx.vml.Ellipse",[l.Shape,p.Ellipse],{setShape:function(c){c=this.shape=n.makeParameters(this.shape,c);this.bbox=null;var a=this.rawNode.style;a.left=(c.cx-c.rx).toFixed();a.top=(c.cy-c.ry).toFixed();a.width=(2*c.rx).toFixed();a.height=(2*c.ry).toFixed();return this.setTransform(this.matrix)}});l.Ellipse.nodeType="oval";l.Circle=m("dojox.gfx.vml.Circle",[l.Shape,p.Circle],{setShape:function(c){c=this.shape=n.makeParameters(this.shape,c);this.bbox=null;
var a=this.rawNode.style;a.left=(c.cx-c.r).toFixed();a.top=(c.cy-c.r).toFixed();a.width=(2*c.r).toFixed();a.height=(2*c.r).toFixed();return this}});l.Circle.nodeType="oval";l.Line=m("dojox.gfx.vml.Line",[l.Shape,p.Line],{constructor:function(c){c&&c.setAttribute("dojoGfxType","line")},setShape:function(c){c=this.shape=n.makeParameters(this.shape,c);this.bbox=null;this.rawNode.path.v="m"+c.x1.toFixed()+" "+c.y1.toFixed()+"l"+c.x2.toFixed()+" "+c.y2.toFixed()+"e";return this.setTransform(this.matrix)}});
l.Line.nodeType="shape";l.Polyline=m("dojox.gfx.vml.Polyline",[l.Shape,p.Polyline],{constructor:function(c){c&&c.setAttribute("dojoGfxType","polyline")},setShape:function(c,a){c&&c instanceof Array?(this.shape=n.makeParameters(this.shape,{points:c}),a&&this.shape.points.length&&this.shape.points.push(this.shape.points[0])):this.shape=n.makeParameters(this.shape,c);this.bbox=null;this._normalizePoints();var g=[],b=this.shape.points;if(0<b.length&&(g.push("m"),g.push(b[0].x.toFixed(),b[0].y.toFixed()),
1<b.length)){g.push("l");for(var d=1;d<b.length;++d)g.push(b[d].x.toFixed(),b[d].y.toFixed())}g.push("e");this.rawNode.path.v=g.join(" ");return this.setTransform(this.matrix)}});l.Polyline.nodeType="shape";l.Image=m("dojox.gfx.vml.Image",[l.Shape,p.Image],{setShape:function(c){c=this.shape=n.makeParameters(this.shape,c);this.bbox=null;this.rawNode.firstChild.src=c.src;return this.setTransform(this.matrix)},_applyTransform:function(){var c=this._getRealMatrix(),a=this.rawNode,b=a.style,d=this.shape,
c=c?r.multiply(c,{dx:d.x,dy:d.y}):r.normalize({dx:d.x,dy:d.y});if(0==c.xy&&0==c.yx&&0<c.xx&&0<c.yy)b.filter="",b.width=Math.floor(c.xx*d.width),b.height=Math.floor(c.yy*d.height),b.left=Math.floor(c.dx),b.top=Math.floor(c.dy);else{var e=a.parentNode.style;b.left="0px";b.top="0px";b.width=e.width;b.height=e.height;c=r.multiply(c,{xx:d.width/parseInt(b.width),yy:d.height/parseInt(b.height)});(a=a.filters["DXImageTransform.Microsoft.Matrix"])?(a.M11=c.xx,a.M12=c.xy,a.M21=c.yx,a.M22=c.yy,a.Dx=c.dx,a.Dy=
c.dy):b.filter="progid:DXImageTransform.Microsoft.Matrix(M11\x3d"+c.xx+", M12\x3d"+c.xy+", M21\x3d"+c.yx+", M22\x3d"+c.yy+", Dx\x3d"+c.dx+", Dy\x3d"+c.dy+")"}return this},_setDimensions:function(c,a){var g=this.rawNode;return g.filters["DXImageTransform.Microsoft.Matrix"]?(g=g.style,g.width=c,g.height=a,this._applyTransform()):this}});l.Image.nodeType="rect";l.Text=m("dojox.gfx.vml.Text",[l.Shape,p.Text],{constructor:function(c){c&&c.setAttribute("dojoGfxType","text");this.fontStyle=null},_alignment:{start:"left",
middle:"center",end:"right"},setShape:function(c){this.shape=n.makeParameters(this.shape,c);this.bbox=null;var a=this.rawNode;c=this.shape;var b=c.x,d=c.y.toFixed();switch(c.align){case "middle":b-=5;break;case "end":b-=10}for(var d="m"+b.toFixed()+","+d+"l"+(b+10).toFixed()+","+d+"e",e=null,b=null,f=a.childNodes,h=0;h<f.length;++h){var k=f[h].tagName;if("path"==k){if(e=f[h],b)break}else if("textpath"==k&&(b=f[h],e))break}e||(e=a.ownerDocument.createElement("v:path"),a.appendChild(e));b||(b=a.ownerDocument.createElement("v:textpath"),
a.appendChild(b));e.v=d;e.textPathOk=!0;b.on=!0;a=l.text_alignment[c.align];b.style["v-text-align"]=a?a:"left";b.style["text-decoration"]=c.decoration;b.style["v-rotate-letters"]=c.rotated;b.style["v-text-kern"]=c.kerning;b.string=c.text;return this.setTransform(this.matrix)},_setFont:function(){for(var c=this.fontStyle,a=this.rawNode.childNodes,b=0;b<a.length;++b)if("textpath"==a[b].tagName){a[b].style.font=n.makeFontString(c);break}this.setTransform(this.matrix)},_getRealMatrix:function(){var c=
this.inherited(arguments);c&&(c=r.multiply(c,{dy:.35*-n.normalizedLength(this.fontStyle?this.fontStyle.size:"10pt")}));return c},getTextWidth:function(){var c=this.rawNode,a=c.style.display;c.style.display="inline";var b=n.pt2px(parseFloat(c.currentStyle.width));c.style.display=a;return b}});l.Text.nodeType="shape";l.Path=m("dojox.gfx.vml.Path",[l.Shape,h.Path],{constructor:function(c){c&&!c.getAttribute("dojoGfxType")&&c.setAttribute("dojoGfxType","path");this.vmlPath="";this.lastControl={}},_updateWithSegment:function(c){var a=
f.clone(this.last);this.inherited(arguments);1<arguments.length||(a=this[this.renderers[c.action]](c,a),"string"==typeof this.vmlPath?(this.vmlPath+=a.join(""),this.rawNode.path.v=this.vmlPath+" r0,0 e"):Array.prototype.push.apply(this.vmlPath,a))},setShape:function(c){this.vmlPath=[];this.lastControl.type="";this.inherited(arguments);this.vmlPath=this.vmlPath.join("");this.rawNode.path.v=this.vmlPath+" r0,0 e";return this},_pathVmlToSvgMap:{m:"M",l:"L",t:"m",r:"l",c:"C",v:"c",qb:"Q",x:"z",e:""},
renderers:{M:"_moveToA",m:"_moveToR",L:"_lineToA",l:"_lineToR",H:"_hLineToA",h:"_hLineToR",V:"_vLineToA",v:"_vLineToR",C:"_curveToA",c:"_curveToR",S:"_smoothCurveToA",s:"_smoothCurveToR",Q:"_qCurveToA",q:"_qCurveToR",T:"_qSmoothCurveToA",t:"_qSmoothCurveToR",A:"_arcTo",a:"_arcTo",Z:"_closePath",z:"_closePath"},_addArgs:function(c,a,b,d){for(a=a instanceof Array?a:a.args;b<d;++b)c.push(" ",a[b].toFixed())},_adjustRelCrd:function(c,a,b){a=a instanceof Array?a:a.args;var g=a.length,d=Array(g),e=0,f=
c.x;c=c.y;"number"!=typeof f&&(d[0]=f=a[0],d[1]=c=a[1],e=2);if("number"==typeof b&&2!=b)for(var y=b;y<=g;){for(;e<y;e+=2)d[e]=f+a[e],d[e+1]=c+a[e+1];f=d[y-2];c=d[y-1];y+=b}else for(;e<g;e+=2)d[e]=f+=a[e],d[e+1]=c+=a[e+1];return d},_adjustRelPos:function(c,a){for(var b=a instanceof Array?a:a.args,g=b.length,d=Array(g),e=0;e<g;++e)d[e]=c+=b[e];return d},_moveToA:function(c){var a=[" m"];c=c instanceof Array?c:c.args;var b=c.length;this._addArgs(a,c,0,2);2<b&&(a.push(" l"),this._addArgs(a,c,2,b));this.lastControl.type=
"";return a},_moveToR:function(c,a){return this._moveToA(this._adjustRelCrd(a,c))},_lineToA:function(c){var a=[" l"];c=c instanceof Array?c:c.args;this._addArgs(a,c,0,c.length);this.lastControl.type="";return a},_lineToR:function(a,b){return this._lineToA(this._adjustRelCrd(b,a))},_hLineToA:function(a,b){for(var c=[" l"],d=" "+b.y.toFixed(),g=a instanceof Array?a:a.args,e=g.length,f=0;f<e;++f)c.push(" ",g[f].toFixed(),d);this.lastControl.type="";return c},_hLineToR:function(a,b){return this._hLineToA(this._adjustRelPos(b.x,
a),b)},_vLineToA:function(a,b){for(var c=[" l"],d=" "+b.x.toFixed(),g=a instanceof Array?a:a.args,e=g.length,f=0;f<e;++f)c.push(d," ",g[f].toFixed());this.lastControl.type="";return c},_vLineToR:function(a,b){return this._vLineToA(this._adjustRelPos(b.y,a),b)},_curveToA:function(a){var c=[];a=a instanceof Array?a:a.args;for(var b=a.length,d=this.lastControl,e=0;e<b;e+=6)c.push(" c"),this._addArgs(c,a,e,e+6);d.x=a[b-4];d.y=a[b-3];d.type="C";return c},_curveToR:function(a,b){return this._curveToA(this._adjustRelCrd(b,
a,6))},_smoothCurveToA:function(a,b){var c=[],d=a instanceof Array?a:a.args,g=d.length,e=this.lastControl,f=0;"C"!=e.type&&(c.push(" c"),this._addArgs(c,[b.x,b.y],0,2),this._addArgs(c,d,0,4),e.x=d[0],e.y=d[1],e.type="C",f=4);for(;f<g;f+=4)c.push(" c"),this._addArgs(c,[2*b.x-e.x,2*b.y-e.y],0,2),this._addArgs(c,d,f,f+4),e.x=d[f],e.y=d[f+1];return c},_smoothCurveToR:function(a,b){return this._smoothCurveToA(this._adjustRelCrd(b,a,4),b)},_qCurveToA:function(a){var c=[];a=a instanceof Array?a:a.args;for(var b=
a.length,d=this.lastControl,e=0;e<b;e+=4)c.push(" qb"),this._addArgs(c,a,e,e+4);d.x=a[b-4];d.y=a[b-3];d.type="Q";return c},_qCurveToR:function(a,b){return this._qCurveToA(this._adjustRelCrd(b,a,4))},_qSmoothCurveToA:function(a,b){var c=[],d=a instanceof Array?a:a.args,e=d.length,g=this.lastControl,f=0;"Q"!=g.type&&(c.push(" qb"),this._addArgs(c,[g.x=b.x,g.y=b.y],0,2),g.type="Q",this._addArgs(c,d,0,2),f=2);for(;f<e;f+=2)c.push(" qb"),this._addArgs(c,[g.x=2*b.x-g.x,g.y=2*b.y-g.y],0,2),this._addArgs(c,
d,f,f+2);return c},_qSmoothCurveToR:function(a,b){return this._qSmoothCurveToA(this._adjustRelCrd(b,a,2),b)},_arcTo:function(c,b){for(var d=[],e=c.args,g=e.length,f="a"==c.action,h=0;h<g;h+=7){var k=e[h+5],l=e[h+6];f&&(k+=b.x,l+=b.y);for(var n=a.arcAsBezier(b,e[h],e[h+1],e[h+2],e[h+3]?1:0,e[h+4]?1:0,k,l),p=0;p<n.length;++p){d.push(" c");var m=n[p];this._addArgs(d,m,0,m.length);this._updateBBox(m[0],m[1]);this._updateBBox(m[2],m[3]);this._updateBBox(m[4],m[5])}b.x=k;b.y=l}this.lastControl.type="";
return d},_closePath:function(){this.lastControl.type="";return["x"]},_getRealBBox:function(){this._confirmSegmented();if(this.tbbox)return this.tbbox;"string"==typeof this.shape.path&&(this.shape.path="");return this.inherited(arguments)}});l.Path.nodeType="shape";l.EsriPath=m("dojox.gfx.vml.EsriPath",l.Path,{setShape:function(a){this.rawNode.path.v=this.vmlPath=a;return this}});l.EsriPath.nodeType="shape";l.TextPath=m("dojox.gfx.vml.TextPath",[l.Path,h.TextPath],{constructor:function(a){a&&a.setAttribute("dojoGfxType",
"textpath");this.fontStyle=null;"text"in this||(this.text=f.clone(n.defaultTextPath));"fontStyle"in this||(this.fontStyle=f.clone(n.defaultFont))},setText:function(a){this.text=n.makeParameters(this.text,"string"==typeof a?{text:a}:a);this._setText();return this},setFont:function(a){this.fontStyle="string"==typeof a?n.splitFontString(a):n.makeParameters(n.defaultFont,a);this._setFont();return this},_setText:function(){this.bbox=null;for(var a=this.rawNode,b=this.text,d=null,e=null,f=a.childNodes,
h=0;h<f.length;++h){var k=f[h].tagName;if("path"==k){if(d=f[h],e)break}else if("textpath"==k&&(e=f[h],d))break}d||(d=this.rawNode.ownerDocument.createElement("v:path"),a.appendChild(d));e||(e=this.rawNode.ownerDocument.createElement("v:textpath"),a.appendChild(e));d.textPathOk=!0;e.on=!0;a=l.text_alignment[b.align];e.style["v-text-align"]=a?a:"left";e.style["text-decoration"]=b.decoration;e.style["v-rotate-letters"]=b.rotated;e.style["v-text-kern"]=b.kerning;e.string=b.text},_setFont:function(){for(var a=
this.fontStyle,b=this.rawNode.childNodes,d=0;d<b.length;++d)if("textpath"==b[d].tagName){b[d].style.font=n.makeFontString(a);break}}});l.TextPath.nodeType="shape";l.Surface=m("dojox.gfx.vml.Surface",p.Surface,{constructor:function(){p.Container._init.call(this)},destroy:function(){this.clear(!0);this.inherited(arguments)},setDimensions:function(a,b){this.width=n.normalizedLength(a);this.height=n.normalizedLength(b);if(!this.rawNode)return this;var c=this.clipNode.style,d=this.rawNode,e=d.style,g=
this.bgNode.style,f=this._parent.style;f.width=a;f.height=b;c.width=a;c.height=b;c.clip="rect(0px "+a+"px "+b+"px 0px)";e.width=a;e.height=b;d.coordsize=a+" "+b;g.width=a;g.height=b;for(c=0;c<this.children.length;++c)this.children[c]._setDimensions(a,b);return this},getDimensions:function(){var a=this.rawNode?{width:n.normalizedLength(this.rawNode.style.width),height:n.normalizedLength(this.rawNode.style.height)}:null;0>=a.width&&(a.width=this.width);0>=a.height&&(a.height=this.height);return a}});
l.createSurface=function(a,b,e){if(!b&&!e){var c=k.position(a);b=b||c.w;e=e||c.h}"number"==typeof b&&(b+="px");"number"==typeof e&&(e+="px");c=new l.Surface;a=d.byId(a);var g=c.clipNode=a.ownerDocument.createElement("div"),f=c.rawNode=a.ownerDocument.createElement("v:group"),h=g.style,m=f.style;7<v("ie")&&(m.display="inline-block");c._parent=a;c._nodes.push(g);a.style.width=b;a.style.height=e;h.position="absolute";h.width=b;h.height=e;h.clip="rect(0px "+b+" "+e+" 0px)";m.position="absolute";m.width=
b;m.height=e;f.coordsize=("100%"===b?b:parseFloat(b))+" "+("100%"===e?e:parseFloat(e));f.coordorigin="0 0";var h=c.bgNode=f.ownerDocument.createElement("v:rect"),p=h.style;p.left=p.top=0;p.width=m.width;p.height=m.height;h.filled=h.stroked="f";f.appendChild(h);g.appendChild(f);a.appendChild(g);c.width=n.normalizedLength(b);c.height=n.normalizedLength(e);return c};m=function(a){if(this!=a.getParent()){var b=a.getParent();b&&b.remove(a);this.rawNode.appendChild(a.rawNode);u.add.apply(this,arguments);
w(this,function(a){"function"==typeof a.getFont&&(a.setShape(a.getShape()),a.setFont(a.getFont()));"function"==typeof a.setFill&&(a.setFill(a.getFill()),a.setStroke(a.getStroke()))})}return this};h=function(a){this!=a.getParent()&&(this.rawNode.appendChild(a.rawNode),a.getParent()||(a.setFill(a.getFill()),a.setStroke(a.getStroke())),u.add.apply(this,arguments));return this};var u=p.Container;e={add:!0===e.fixVmlAdd?m:h,remove:function(a,b){this==a.getParent()&&(this.rawNode==a.rawNode.parentNode&&
this.rawNode.removeChild(a.rawNode),u.remove.apply(this,arguments));return this},clear:function(){for(var a=this.rawNode;a.firstChild!=a.lastChild;)a.firstChild!=this.bgNode&&a.removeChild(a.firstChild),a.lastChild!=this.bgNode&&a.removeChild(a.lastChild);return u.clear.apply(this,arguments)},getBoundingBox:u.getBoundingBox,_moveChildToFront:u._moveChildToFront,_moveChildToBack:u._moveChildToBack};m={createGroup:function(){var a=this.createObject(l.Group,null),b=a.rawNode.ownerDocument.createElement("v:rect");
b.style.left=b.style.top=0;b.style.width=a.rawNode.style.width;b.style.height=a.rawNode.style.height;b.filled=b.stroked="f";a.rawNode.appendChild(b);a.bgNode=b;return a},createImage:function(a){if(!this.rawNode)return null;var b=new l.Image,c=this.rawNode.ownerDocument,d=c.createElement("v:rect");d.stroked="f";d.style.width=this.rawNode.style.width;d.style.height=this.rawNode.style.height;c=c.createElement("v:imagedata");d.appendChild(c);b.setRawNode(d);this.rawNode.appendChild(d);b.setShape(a);this.add(b);
return b},createRect:function(a){if(!this.rawNode)return null;var b=new l.Rect,c=this.rawNode.ownerDocument.createElement("v:roundrect");7<v("ie")&&(c.style.display="inline-block");b.setRawNode(c);this.rawNode.appendChild(c);b.setShape(a);this.add(b);return b},createObject:function(a,b){if(!this.rawNode)return null;var c=new a,d=this.rawNode.ownerDocument.createElement("v:"+a.nodeType);c.setRawNode(d);this.rawNode.appendChild(d);switch(a){case l.Group:case l.Line:case l.Polyline:case l.Image:case l.Text:case l.Path:case l.TextPath:this._overrideSize(d)}c.setShape(b);
this.add(c);return c},_overrideSize:function(a){var b=this.rawNode.style,c=b.width,b=b.height;a.style.width=c;a.style.height=b;a.coordsize=parseInt(c)+" "+parseInt(b)}};f.extend(l.Group,e);f.extend(l.Group,p.Creator);f.extend(l.Group,m);f.extend(l.Surface,e);f.extend(l.Surface,p.Creator);f.extend(l.Surface,m);l.fixTarget=function(a,b){a.gfxTarget||(a.gfxTarget=a.target.__gfxObject__);return!0};return l});