// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.7/esri/copyright.txt for details. //>>built define("require exports ../kernel ./Geometry ./Polygon ./Polyline ./Point ./Extent ./Multipoint dojo/_base/lang".split(" "),function(pa,za,ua,ca,ja,ka,ha,la,ma,qa){function W(d){if(void 0===ha.fromJson){if(void 0!==d.x&&void 0!==d.y)return new ha(d);if(void 0!==d.paths)return new ka(d);if(void 0!==d.rings)return new ja(d);if(void 0!==d.points)return new ma(d);if(void 0!==d.xmin&&void 0!==d.ymin&&void 0!==d.xmax&&void 0!==d.ymax)return new la(d)}else{if(void 0!==d.x&&void 0!==d.y)return ha.fromJson(d); if(void 0!==d.paths)return ka.fromJson(d);if(void 0!==d.rings)return ja.fromJson(d);if(void 0!==d.points)return ma.fromJson(d);if(void 0!==d.xmin&&void 0!==d.ymin&&void 0!==d.xmax&&void 0!==d.ymax)return la.fromJson(d)}}function Y(d){if(void 0===ha.fromJson){if(void 0!==d.x&&void 0!==d.y)return new ha(d);if(void 0!==d.paths)return new ka(d);if(void 0!==d.rings)return new ja(d);if(void 0!==d.points)return new ma(d);if(void 0!==d.xmin&&void 0!==d.ymin&&void 0!==d.xmax&&void 0!==d.ymax)return new la(d)}else{if(void 0!== d.x&&void 0!==d.y)return ha.fromJSON(d);if(void 0!==d.paths)return ka.fromJSON(d);if(void 0!==d.rings)return ja.fromJSON(d);if(void 0!==d.points)return ma.fromJSON(d);if(void 0!==d.xmin&&void 0!==d.ymin&&void 0!==d.xmax&&void 0!==d.ymax)return la.fromJSON(d)}}function X(d,m){var g;if(null==d||void 0===d||"number"===typeof d)return d;var b=d.toString();if(""===b)return null;if(2==m){if(g=va[b],void 0!==g)return g}else if(0==m){g=ra[b];if(void 0!==g)return g;g=sa[d];if(void 0!==g)return g}else if(3== m&&(g=ra[b],void 0!==g))return g;if(1==m&&(g=sa[d],void 0!==g))return g;if(!0===/^\d+$/.test(b))return parseInt(b);throw Error("Unrecognised Unit Type");}function na(d){if(void 0!==d&&null!==d)switch(d){case "loxodrome":return 1;case "great-elliptic":return 2;case "normal-section":return 3;case "shape-preserving":return 4}return 0}function Q(d,m){if(null===d||void 0===d||d.u())return null;switch(d.G()){case n.Fj.Point:var g=new ha(d.Be(),d.nf(),m);if(N){var b=d.hasAttribute(n.Wc.M);d.hasAttribute(n.Wc.Z)&& g.set("z",d.qH());b&&g.set("m",d.$G())}return g;case n.Fj.Polygon:var g=d.hasAttribute(n.Wc.Z),b=d.hasAttribute(n.Wc.M),a=oa(d,g,b),g=new ja({rings:a,hasZ:g,hasM:b});N?g.set("spatialReference",m):g.setSpatialReference(m);g.setCacheValue("_geVersion",d);return g;case n.Fj.Polyline:return g=d.hasAttribute(n.Wc.Z),b=d.hasAttribute(n.Wc.M),a=oa(d,g,b),g=new ka({paths:a,hasZ:g,hasM:b}),N?g.set("spatialReference",m):g.setSpatialReference(m),g.setCacheValue("_geVersion",d),g;case n.Fj.MultiPoint:var g=d.hasAttribute(n.Wc.Z), b=d.hasAttribute(n.Wc.M),c=a=null;g&&(a=d.Pa(n.Wc.Z));b&&(c=d.Pa(n.Wc.M));var e=new n.b,f=d.D();m=new ma(m);N&&(m.set("hasZ",g),m.set("hasM",b));for(var h=0;h>6)+1>>1};g.Jo=function(b){return 0!=(b&32)};g.k_=function(b){return 0!=(b&64)};g.NU=function(b){return 0!=(b&128)};g.Oc=function(b){return 0!=(b&256)};g.gh=function(b){return 0!=(b&512)};g.Ic=function(b){return 0!=(b&1024)};g.prototype.Vf=function(){var b=this.Ja();this.copyTo(b);return b};g.prototype.Gg=function(){return null};g.ne=function(b){var a=b.Ja();b.copyTo(a);return a};g.prototype.Bc=function(){0<=this.AB&& (this.AB+=2147483649)};g.fy=function(b){var a=b.G();if(g.gh(a))return b.D();if(b.u())return 0;if(197==a)return 4;if(33==a)return 1;if(g.Oc(a))return 2;throw d.f.X("missing type");};return g}();d.T=m})(n||(n={}));(function(d){var m=function(){function g(){this.y=this.x=0}g.pa=function(b,a){var c=new g;c.x=b;c.y=a;return c};g.El=function(b){var a=new g;a.x=b.x;a.y=b.y;return a};g.prototype.ka=function(b,a){this.x=b;this.y=a};g.prototype.L=function(b){this.x=b.x;this.y=b.y};g.prototype.Tq=function(b, a){return this.x===b&&this.y===a};g.prototype.vA=function(b){return 2.220446049250313E-16>=Math.abs(this.x-b.x)&&2.220446049250313E-16>=Math.abs(this.y-b.y)};g.prototype.ub=function(b){return this.x===b.x&&this.y===b.y};g.prototype.Eb=function(b){return b==this?!0:b instanceof g?this.x==b.x&&this.y==b.y:!1};g.prototype.sub=function(b){this.x-=b.x;this.y-=b.y};g.prototype.zc=function(b,a){this.x=b.x-a.x;this.y=b.y-a.y};g.prototype.add=function(b,a){void 0!==a?(this.x=b.x+a.x,this.y=b.y+a.y):(this.x+= b.x,this.y+=b.y)};g.prototype.Kr=function(){this.x=-this.x;this.y=-this.y};g.prototype.au=function(b){this.x=-b.x;this.y=-b.y};g.prototype.HU=function(b,a,c){this.x=b.x*(1-c)+a.x*c;this.y=b.y*(1-c)+a.y*c};g.prototype.qu=function(b,a){this.x=this.x*b+a.x;this.y=this.y*b+a.y};g.prototype.DX=function(b,a,c){this.x=a.x*b+c.x;this.y=a.y*b+c.y};g.prototype.scale=function(b){this.x*=b;this.y*=b};g.prototype.compare=function(b){return this.yb.y?1:this.xb.x?1:0};g.prototype.normalize= function(){var b=this.length();0==b&&(this.x=1,this.y=0);this.x/=b;this.y/=b};g.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y)};g.prototype.pk=function(){return this.x*this.x+this.y*this.y};g.Cb=function(b,a){return Math.sqrt(this.sc(b,a))};g.wz=function(b,a,c,e){b-=c;a-=e;return Math.sqrt(b*b+a*a)};g.prototype.oi=function(b){return this.x*b.x+this.y*b.y};g.prototype.xE=function(b){return Math.abs(this.x*b.x)+Math.abs(this.y*b.y)};g.prototype.Ui=function(b){return this.x* b.y-this.y*b.x};g.prototype.pu=function(b,a){var c=-this.x*a+this.y*b;this.x=this.x*b+this.y*a;this.y=c};g.prototype.tw=function(){var b=this.x;this.x=-this.y;this.y=b};g.prototype.$H=function(b){this.x=-b.y;this.y=b.x};g.prototype.Tr=function(){var b=this.x;this.x=this.y;this.y=-b};g.prototype.cv=function(){this.y=this.x=NaN};g.prototype.Gy=function(){return isNaN(this.x)};g.prototype.Zu=function(){return 0c?1:0=Math.abs(this.y)?Math.abs(this.x):Math.abs(this.y)};g.prototype.offset=function(b,a){var c=g.Cb(b,a),e=g.pa(this.x,this.y); if(0==c)return g.Cb(e,b);var f=new g;f.L(a);f.sub(b);e.sub(b);return e.Ui(f)/c};g.zp=function(b,a,c){var e=new d.Xb;e.set(a.x);e.sub(b.x);var f=new d.Xb;f.set(c.y);f.sub(b.y);var h=new d.Xb;h.set(a.y);h.sub(b.y);var l=new d.Xb;l.set(c.x);l.sub(b.x);e.Vg(f);h.Vg(l);e.sub(h);if(!e.kt())return c=e.value(),0>c?-1:0b?-1:0=c?e=b+(a-b)*c:e=a-(a-b)*(1-c);return e};d.bI=function(b,a,c,e){.5>=c?(e.x=b.x+(a.x-b.x)*c,e.y=b.y+(a.y-b.y)*c):(e.x=a.x-(a.x-b.x)*(1-c),e.y=a.y-(a.y-b.y)*(1-c))};d.lV=function(b,a,c,e,f,h){.5>=f?(h.x=b+(c-b)*f,h.y=a+(e-a)*f):(h.x=c-(c-b)*(1-f),h.y=e-(e-a)*(1-f))};return d}();d.Ub=m})(n||(n={}));(function(d){var m= function(g){function b(){g.call(this);this.oa=this.sa=this.ra=this.ua=0;this.la=null}O(b,g);b.prototype.ec=function(){return d.b.pa(this.ua,this.ra)};b.prototype.Oq=function(a){a.x=this.ua;a.y=this.ra};b.prototype.Mc=function(a){this.Rm(0,a)};b.prototype.vC=function(a,c){this.Rm(0,d.b.pa(a,c))};b.prototype.Dp=function(a){this.zE(0,a)};b.prototype.setStart=function(a){this.JE(0,a)};b.prototype.ct=function(a,c){return this.ae(0,a,c)};b.prototype.Sx=function(a,c,e){this.oo(0,a,c,e)};b.prototype.Cc=function(){return d.b.pa(this.sa, this.oa)};b.prototype.Os=function(a){a.x=this.sa;a.y=this.oa};b.prototype.Zc=function(a){this.Rm(1,a)};b.prototype.vm=function(a,c){this.Rm(1,d.b.pa(a,c))};b.prototype.Bp=function(a){this.zE(1,a)};b.prototype.setEnd=function(a){this.JE(1,a)};b.prototype.Ns=function(a,c){return this.ae(1,a,c)};b.prototype.Kx=function(a,c,e){this.oo(1,a,c,e)};b.prototype.tb=function(){return 1};b.prototype.u=function(){return this.Hc()};b.prototype.Oa=function(){};b.prototype.hf=function(){return 0};b.prototype.Ma= function(a,c,e,b,h){return this.OO(a,c,e,b,h)};b.prototype.Yb=function(a,c){return 0!=this.xs(a,c,!1)};b.prototype.lt=function(a,c){return this.$u(a,c,!1)};b.prototype.$u=function(){return null};b.prototype.Hc=function(){return!1};b.prototype.Iy=function(a){this.Bc();if(null==this.la&&0=d.na.Xa(c))throw d.f.vd();var f=this.description.mg(c);return 0<=f?(null!=this.la&&this.Iy(this.description.af.length-2),this.la[b.vl(this.description,a)+this.description.wk(f)-2+e]):d.na.pe(c)};b.prototype.oo=function(a,c,e,f){this.Bc();if(e>=d.na.Xa(c))throw d.f.vd();var h=this.description.mg(c);0>h&&(this.Ud(c),h=this.description.mg(c));0==c?0!=a?0!=e?this.oa=f:this.sa=f:0!=e?this.ra=f:this.ua=f:(null==this.la&&this.Iy(this.description.af.length- 2),this.la[b.vl(this.description,a)+this.description.wk(h)-2+e]=f)};b.prototype.copyTo=function(a){if(a.G()!=this.G())throw d.f.F();a.description=this.description;a.Iy(this.description.af.length-2);b.aX(this.la,a.la,2*(this.description.af.length-2));a.ua=this.ua;a.ra=this.ra;a.sa=this.sa;a.oa=this.oa;a.Bc();this.iq(a)};b.prototype.xf=function(a,c){var e=new d.Ac;if(this.Hc())return e.Oa(),e;e.ca=this.ae(0,a,c);e.ha=e.ca;e.ml(this.ae(1,a,c));return e};b.prototype.RJ=function(a){this.Hc()?a.Oa():(a.ca= this.ae(0,0,0),a.ha=a.ca,a.ml(this.ae(1,0,0)))};b.prototype.Ex=function(a,c){c.Fg(this.description);c.rb(this.gc(a));for(var e=1,b=this.description.Ea;ea||a>=this.qa)throw d.f.X("index out of bounds");this.tc();c.Fg(this.description);c.u()&&c.nq();for(var e=0;ea||a>=this.D())throw d.f.vd();this.tc();this.xa[0].fc(2*a,c)};b.prototype.Aa=function(a){var c=new d.b;this.w(a,c);return c};b.prototype.Nc=function(a,c){this.xa[0].fc(2*a,c)};b.prototype.rb=function(a,c,e){if(0>a||a>=this.qa)throw d.f.vd();this.tc();var b=this.xa[0];void 0!==e?(b.write(2*a,c),b.write(2*a+1,e)):b.ho(2*a,c);this.Dc(1993)};b.prototype.kA= function(a){if(0>a||a>=this.D())throw d.f.vd();this.tc();var c=this.xa[0],e=new d.qd;e.x=c.read(2*a);e.y=c.read(2*a+1);e.z=this.hasAttribute(1)?this.xa[1].Of(a):d.na.pe(1);return e};b.prototype.AC=function(a,c){if(0>a||a>=this.D())throw d.f.vd();this.Ud(1);this.tc();this.Dc(1993);var e=this.xa[0];e.write(2*a,c.x);e.write(2*a+1,c.y);this.xa[1].Dm(a,c.z)};b.prototype.Yc=function(a,c,e){if(0>c||c>=this.qa)throw d.f.vd();var b=d.na.Xa(a);if(e>=b)throw d.f.vd();this.tc();var h=this.description.mg(a);return 0<= h?this.xa[h].Of(c*b+e):d.na.pe(a)};b.prototype.JG=function(a,c,e){return this.Yc(a,c,e)};b.prototype.setAttribute=function(a,c,e,b){if(0>c||c>=this.qa)throw d.f.vd();var f=d.na.Xa(a);if(e>=f)throw d.f.vd();this.Ud(a);this.tc();a=this.description.mg(a);this.Dc(1993);this.xa[a].Dm(c*f+e,b)};b.prototype.Pa=function(a){this.Bu();this.Ud(a);this.tc();return this.xa[this.description.mg(a)]};b.prototype.Zn=function(a,c){if(null!=c&&d.na.si(a)!=c.si())throw d.f.F();this.Ud(a);a=this.description.mg(a);null== this.xa&&(this.xa=d.Uc.HB(this.description.Ea));this.xa[a]=c;this.Dc(16777215)};b.prototype.mo=function(a){var c=null;if(null!=this.xa)for(var e=d.ye.ux(a,this.description),c=[],b=0,h=a.Ea;bthis.qa+5?(5*this.qa+3)/4:this.qa),this.xa[a].resize(b*e,d.na.pe(c)));ba)throw d.f.F();a!=this.qa&&(this.qa=a,this.Dc(65535))};b.prototype.Kk=function(a){if(!this.xk(1)){if(!this.xk(2))return 0; if(this.NV>=a)return this.xk(8)?1:2}return-1};b.prototype.Zg=function(a,c){this.NV=c;if(-1==a)this.lg(1,!0),this.lg(8,!0);else if(this.lg(1,!1),this.lg(8,!0),0==a)this.lg(2,!1),this.lg(4,!1);else if(1==a)this.lg(2,!0),this.lg(4,!1);else if(2==a)this.lg(2,!0),this.lg(4,!0);else throw d.f.X("internal error.");};b.prototype.CO=function(){null!=this.ob&&(this.ob=null)};b.prototype.CE=function(a,c,e,b){if(0>a||a>=this.qa)throw d.f.X("index out of bounds");if(0>c||c>=this.qa)throw d.f.X("index out of bounds"); this.tc();b.Fg(this.description);b.u()&&b.nq();for(var f=0;fa||a>=this.qa)throw d.f.vd();if(c.u())throw d.f.F();this.tc();for(var e=c.description,b=0;bd.J.GB(this.Hn)>> 1:-1!=a)?b=a:e=l;for(a=!0;;){if(0>e)if(l=h[7*b],-1!=l)b=l;else{e=b;c=this.pb.nl([-1,-1,b,c,this.Ll(),-1,-1]);h=this.pb.g;h[7*b]=c;break}else if(l=h[7*b+1],-1!=l)b=l;else{e=h[7*b+6];c=this.pb.nl([-1,-1,b,c,this.Ll(),-1,-1]);h=this.pb.g;h[7*b+1]=c;break}a&&(e*=-1,a=!1)}this.Uy(c,h);-1===h[7*c+2]&&(h[7*f]=c);this.pq(e,c,f,h);return c};g.prototype.PG=function(){return this.ZS(this.qf)};g.prototype.Ld=function(b,a){a=-1==a?this.qf:a;this.Cw?this.GR(b,a):this.eZ(b,a)};g.prototype.search=function(b,a){for(a= this.ew(a);-1!=a;){var c=this.Oo.compare(this,b,a);if(0==c)return a;a=0>c?this.Pl(a):this.Nq(a)}return-1};g.prototype.GX=function(b){for(var a=this.ew(-1),c=-1;-1!=a;){var e=b.compare(this,a);if(0==e)return a;0>e?a=this.Pl(a):(c=a,a=this.Nq(a))}return c};g.prototype.kK=function(b){for(var a=this.ew(-1),c=-1;-1!=a;){var e=b.compare(this,a);if(0==e)return a;0>e?(c=a,a=this.Pl(a)):a=this.Nq(a)}return c};g.prototype.ja=function(b){return this.pb.S(b,3)};g.prototype.Pl=function(b){return this.pb.S(b,0)}; g.prototype.Nq=function(b){return this.pb.S(b,1)};g.prototype.getParent=function(b){return this.pb.S(b,2)};g.prototype.nb=function(b){return this.pb.S(b,6)};g.prototype.Ve=function(b){return this.pb.S(b,5)};g.prototype.xc=function(b){return-1==b?this.Ol(this.qf):this.Ol(b)};g.prototype.Fc=function(b){return-1==b?this.Ys(this.qf):this.Ys(b)};g.prototype.RT=function(b){return-1==b?this.mH(this.qf):this.mH(b)};g.prototype.jk=function(b,a){this.mC(b,a)};g.prototype.ew=function(b){return-1==b?this.hH(this.qf): this.hH(b)};g.prototype.clear=function(){this.pb.Vi(!1);this.qf=-1};g.prototype.size=function(b){return-1==b?this.jH(this.qf):this.jH(b)};g.prototype.NP=function(b,a){for(var c=a[7*b],e=a[7*b+1],f=a[7*b+4];-1!=c||-1!=e;){var h=-1!=c?a[7*c+4]:2147483647,e=-1!=e?a[7*e+4]:2147483647;if(f<=Math.min(h,e))break;h<=e?this.hK(c,a):this.gK(b,a);c=a[7*b];e=a[7*b+1]}};g.prototype.Uy=function(b,a){if(this.Cw)for(var c=a[7*b+4],e=a[7*b+2];-1!=e&&a[7*e+4]>c;)a[7*e]==b?this.hK(b,a):this.gK(e,a),e=a[7*b+2]};g.prototype.gK= function(b,a){var c=a[7*b+1],e;a[7*c+2]=a[7*b+2];a[7*b+2]=c;e=a[7*c];a[7*b+1]=e;-1!=e&&(a[7*e+2]=b);a[7*c]=b;e=a[7*c+2];-1!=e&&(a[7*e]==b?a[7*e]=c:a[7*e+1]=c)};g.prototype.hK=function(b,a){var c=a[7*b+2],e;a[7*b+2]=a[7*c+2];a[7*c+2]=b;e=a[7*b+1];a[7*c]=e;-1!=e&&(a[7*e+2]=c);a[7*b+1]=c;e=a[7*b+2];-1!=e&&(a[7*e]===c?a[7*e]=b:a[7*e+1]=b)};g.prototype.sl=function(b,a){this.pb.P(b,2,a)};g.prototype.qC=function(b,a){this.pb.P(b,0,a)};g.prototype.uC=function(b,a){this.pb.P(b,1,a)};g.prototype.tC=function(b, a){this.pb.P(b,5,a)};g.prototype.Px=function(b,a){this.pb.P(b,6,a)};g.prototype.NK=function(b,a){this.pb.P(a,0,b)};g.prototype.lY=function(b){this.pb.P(b,4,0)};g.prototype.oY=function(b,a){this.pb.P(a,5,b)};g.prototype.hH=function(b){return-1==b?-1:this.pb.S(b,0)};g.prototype.Ol=function(b){return-1==b?-1:this.pb.S(b,1)};g.prototype.Ys=function(b){return-1==b?-1:this.pb.S(b,2)};g.prototype.ZS=function(b){return-1==b?-1:this.pb.S(b,3)};g.prototype.jH=function(b){return-1==b?0:this.pb.S(b,4)};g.prototype.mH= function(b){return this.pb.S(b,5)};g.prototype.Ax=function(b){return this.pb.nl([-1,-1,-1,b,this.Ll(),-1,-1])};g.prototype.Kl=function(b){-1!=b&&this.pb.kd(b)};g.prototype.Ll=function(){this.Hn=d.J.GB(this.Hn);return this.Hn&1073741823};g.prototype.VE=function(b,a,c){var e=this.pb.g;if(-1==c||-1==e[7*c])return b=this.pb.nl([-1,-1,-1,b,this.Ll(),-1,-1]),e=this.pb.g,e[7*c]=b,this.pq(-1,b,c,e),b;for(var f=-1==c?-1:e[7*c];;){var h=-1==a?1:this.Oo.compare(this,b,f);if(0>h)if(h=this.Pl(f),-1!=h)f=h;else{a= f;b=this.pb.nl([-1,-1,f,b,this.Ll(),-1,-1]);e=this.pb.g;e[7*f]=b;break}else{if(1==a&&0==h)return e[7*c+3]=f,-1;h=e[7*f+1];if(-1!=h)f=h;else{a=e[7*f+6];b=this.pb.nl([-1,-1,f,b,this.Ll(),-1,-1]);e=this.pb.g;e[7*f+1]=b;break}}}this.Uy(b,e);-1===e[7*b+2]&&(e[7*c]=b);this.pq(a,b,c,e);return b};g.prototype.pq=function(b,a,c,e){var f;-1!=b?(f=e[7*b+5],e[7*b+5]=a):f=-1==c?-1:e[7*c+2];e[7*a+5]=f;-1!=f&&(e[7*f+6]=a);e[7*a+6]=b;b==(-1==c?-1:e[7*c+1])&&(e[7*c+1]=a);-1==b&&(e[7*c+2]=a);e[7*c+4]=(-1==c?0:e[7*c+ 4])+1};g.prototype.ZB=function(b,a){var c=this.pb.g,e=c[7*b+5];b=c[7*b+6];-1!=e?c[7*e+6]=b:c[7*a+1]=b;-1!=b?c[7*b+5]=e:c[7*a+2]=e;c[7*a+4]=-1===a?-1:c[7*a+4]-1};g.prototype.eZ=function(b,a){this.ZB(b,a);var c=this.Pl(b),e=this.Nq(b),f=this.getParent(b),h=b;if(-1!=c&&-1!=e){this.Hn=d.J.GB(this.Hn);var l;l=1073741823=b.ca:b.ha>=this.ca};g.prototype.move=function(b){this.u()||(this.ca+=b,this.ha+=b)};g.prototype.normalize=function(){if(!isNaN(this.ca)){if(this.ca> this.ha){var b=this.ca;this.ca=this.ha;this.ha=b}isNaN(this.ha)&&this.Oa()}};g.prototype.Oa=function(){this.ha=this.ca=NaN};g.prototype.u=function(){return isNaN(this.ca)};g.prototype.Nb=function(b){"number"===typeof b?this.u()?this.ha=this.ca=b:this.ml(b):b.u()||(this.u()?(this.ca=b.ca,this.ha=b.ha):(this.ca>b.ca&&(this.ca=b.ca),this.hathis.ha&&this.Oa()))};g.prototype.ml=function(b){bthis.ha&&(this.ha=b)};g.prototype.contains=function(b){return"number"=== typeof b?b>=this.ca&&b<=this.ha:b.ca>=this.ca&&b.ha<=this.ha};g.prototype.Ma=function(b){this.u()||b.u()?this.Oa():(this.cab.ha&&(this.ha=b.ha),this.ca>this.ha&&this.Oa())};g.prototype.O=function(b){this.u()||(this.ca-=b,this.ha+=b,this.haa?(this.ca=a,this.ha=b):(this.ca=b,this.ha=a)};g.prototype.vu= function(b){return d.J.nk(b,this.ca,this.ha)};g.prototype.N=function(){return this.ha-this.ca};g.prototype.Wf=function(){return.5*(this.ca+this.ha)};g.prototype.Eb=function(b){return b==this?!0:b instanceof g?this.u()&&b.u()?!0:this.ca!=b.ca||this.ha!=b.ha?!1:!0:!1};g.prototype.jc=function(){return d.J.Zi(d.J.Zi())};return g}();d.Ac=m})(n||(n={}));(function(d){var m=new d.Ac,g=new d.Ac,b=function(){return function(){this.Le=null;this.qb=-1;this.wb=new d.Hb;this.XA=55555555;this.Ew=this.Hw=!1;this.rg= new d.Ac;this.rg.jC(0,0)}}();d.j_=b;var a=function(){function a(a,c,h){this.a=a;this.il=NaN;this.$I=this.zr=0;this.aJ=NaN;this.ta=c;this.Cr=10*c;this.bJ=this.cJ=NaN;this.Ng=!1;this.sn=this.Xt=this.vp=this.Rt=this.Qt=-1;this.OA=h;this.yB=new b;this.jJ=new b;d.J.truncate(3*a.ud/2)}a.prototype.zH=function(a,c,b,d){a.Le=null===d?null:d[b[5*c]];a.Ew=null!=a.Le;a.Ew||(d=b[5*c+2],-1!==d&&this.a.fX(b[5*c],b[5*d],a.wb),a.Le=a.wb,a.rg.jC(a.wb.ua,a.wb.sa),a.rg.ha+=this.ta,a.wb.AJ(),a.Hw=a.wb.oa==a.wb.ra,a.Hw|| (a.XA=(a.wb.sa-a.wb.ua)/(a.wb.oa-a.wb.ra)))};a.prototype.QQ=function(a,c){var e=a.xs(c,this.ta,!0);if(0!=e)return 2==e?this.zz():this.Wi();a.Oq(da);a.Os(fa);c.Oq(ga);c.Os(ia);P.ka(this.zr,this.il);da.ub(ga)&&this.il==da.y?0>fa.compare(ia)?P.L(fa):P.L(ia):da.ub(ia)&&this.il==da.y?0>fa.compare(ga)?P.L(fa):P.L(ga):ga.ub(fa)&&this.il==ga.y?0>da.compare(ia)?P.L(da):P.L(ia):fa.ub(ia)&&this.il==fa.y&&(0>da.compare(ga)?P.L(da):P.L(ga));return a.pf(P.y,P.x)e&&0>a?-1:0c.sa){if(c.sa>c.ua&&c.oa-c.ra<2*this.ta&&a.Si(c.sa,c.oa,this.ta))return this.Wi()}else if((c.oa-c.ra)/(c.sa-c.ua)*(a.sa-a.ua) c.ua&&c.oa-c.ra<2*this.ta&&a.Si(c.sa,c.oa,this.ta))return this.Wi()}else if((c.oa-c.ra)/(c.sa-c.ua)*(a.ua-a.sa) b&&0>e?-1:0c+d?e:a.Si(b.ua,b.ra,this.ta)?this.Wi():fc+d?e:a.Si(b.sa,b.oa,this.ta)?this.Wi():fe?1:0};a.prototype.Fs=function(){this.Ng=!1};a.prototype.fn=function(){return this.mj};a.prototype.PK=function(a,c){this.il=a;this.zr=c;this.Xt=this.vp=this.Rt= this.Qt=-1};a.prototype.compare=function(a,c,b){if(this.Ng)return-1;a=a.ja(b);this.sn=b;return this.WF(c,c,a,a)};a.prototype.WF=function(a,c,b,d){var e;this.vp==c?e=this.yB:(this.vp=c,e=this.yB,this.yB.qb=a,this.zH(e,c,this.a.Dd.g,this.a.wf));var f;null==f&&(this.Xt=d,f=this.jJ,this.jJ.qb=b,this.zH(f,d,this.a.Dd.g,this.a.wf));if(e.Ew||f.Ew)return this.PQ(c,d,e,f);if(e.rg.hathis.rg.ha)return 1;if(this.Fe.ra==this.Fe.oa)return this.sn=b,this.Ng=!0,0;this.Fe.AJ();a=this.Fe.ec();c=new d.b;c.zc(this.Fe.Cc(),a);c.Tr();var e=new d.b;e.zc(this.vr,a);a=c.oi(e);a/=c.length();return a<10*-this.ta?-1:a>10*this.ta?1:this.Fe.lt(this.vr,this.ta)&&(c=Math.abs(a),ca?-1:1};return g}(); d.$N=m})(n||(n={}));(function(d){function m(b,a,c,e){c=new Float64Array(b.subarray(c,e));b.set(c,a)}var g=function(){function b(a){this.Fa=this.Ce=!1;this.g=[];var c=a;2>c&&(c=2);this.g=d.J.gf(c,b.Bb);this.size=a}b.prototype.rotate=function(a,c,e){if(this.Fa)throw d.f.X("invalid_call");if(ce||a>e)throw d.f.F();a!=c&&e!=c&&(this.Zd(a,c-a,1),this.Zd(c,e-c,1),this.Zd(a,e-a,1))};b.yd=function(a,c){b.Bb=c;a=new b(a);b.Bb=0;return a};b.Ak=function(a){var c=new b(0);c.g=a.g.slice(0);c.size=a.size; return c};b.$=function(a,c){var e=new b(0);e.size=a.size;e.size>c&&(e.size=c);e.g=a.g.slice(0,e.size);return e};b.prototype.yb=function(){};b.prototype.read=function(a){return this.g[a]};b.prototype.fc=function(a,c){c.x=this.g[a];c.y=this.g[a+1]};b.prototype.nX=function(a,c){c.x=this.g[a];c.y=this.g[a+1]};b.prototype.get=function(a){return this.g[a]};b.prototype.write=function(a,c){if(this.Fa)throw d.f.La();this.g[a]=c};b.prototype.set=function(a,c){if(this.Fa)throw d.f.La();this.g[a]=c};b.prototype.ho= function(a,c){if(this.Fa)throw d.f.La();this.g[a]=c.x;this.g[a+1]=c.y};b.prototype.add=function(a){this.resize(this.size+1);this.g[this.size-1]=a};b.prototype.Sr=function(a){return b.$(this,a)};b.prototype.Of=function(a){return this.read(a)};b.prototype.resize=function(a,c){void 0===c&&(c=0);if(this.Ce)throw d.f.X("invalid call. Attribute Stream is locked and cannot be resized.");if(a<=this.size){if(d.J.truncate(5*a/4)this.g.length){d.J.truncate(64> a?Math.max(2*a,4):5*a/4);for(var e=this.g.slice(0),b=this.g.length;bthis.g.length)&&this.resize(a);if(this.Ce)throw d.f.X("invalid call. Attribute Stream is locked and cannot be resized.");this.size=a};b.prototype.Dm=function(a,c){this.write(a,c)};b.prototype.zk=function(a,c,e){for(var b=this.size;cf||e>h&&f!=h)return!1;for(e>f&&(e=f);cl||0!=b%l))throw d.f.F();var f=this.size-k;fa||0>c||0>b)throw d.f.F();if(e.lengtha||0>c||0>b)throw d.f.F();if(!h&&(0>=l||0!=c%l))throw d.f.F();if(e.sizethis.size)throw d.f.La();if(0e||0!=c%e)throw d.f.La();for(var b=c>>1,h=0;hc||0>e||0>c||e+c>this.size)throw d.f.F();for(var b=c;ba||0>c||0>b)throw d.f.F();if(0!=c)for(this.size<(c<<1)+a&&this.resize((c<<1)+a),h||(a+=c-1<<1),h=h?2:-2,c+=b;ba||0>c||0>b)throw d.f.F();if(0!=c)for(this.size<(c<<1)+a&&this.resize((c<<1)+a),h||(a+=c-1<<1),h=h?2:-2,c+=b;ba||0>c||0>b||this.sizea||0>c||0>b||this.size<(c>>1)+a)throw d.f.F();if(0!=c)for(h||(a+=c-1),h=h?2:-2,c=b+c;bc&&(c=2);this.g=new Float64Array(c);this.size=a}b.prototype.rotate=function(a,c,e){if(this.Fa)throw d.f.X("invalid_call");if(ce||a>e)throw d.f.F();a!=c&&e!=c&&(this.Zd(a,c-a,1),this.Zd(c,e-c,1),this.Zd(a,e-a,1))};b.yd=function(a,c){var e= new b(a),f=e.g;2>a&&(a=2);if(0!==c)for(var h=0;hc&&(e.size=c);c=e.size;2>c&&(c=2);e.g=new Float64Array(c);e.g.set(a.g.length<=c?a.g:a.g.subarray(0,c),0);return e};b.prototype.yb=function(a){0>=a||(null==this.g?this.g=new Float64Array(a):a<=this.g.length||(0this.g.length&&(e=d.J.truncate(64>a?Math.max(2*a,4):5*a/4),e=new Float64Array(e),e.set(this.g),this.g=e);for(var e=this.g,b=this.size;bthis.g.length)&&this.resize(a);if(this.Ce)throw d.f.X("invalid call. Attribute Stream is locked and cannot be resized.");this.size=a};b.prototype.Dm=function(a,c){this.write(a,c)};b.prototype.zk=function(a,c,e){for(var b=this.size;cf||e>h&&f!=h)return!1;for(e>f&&(e=f);cl||0!=b%l))throw d.f.F();var f=this.size-k;fa||0>c||0>f)throw d.f.F();if(b.lengtha||0>c||0>f)throw d.f.F();if(!h&&(0>=l||0!=c%l))throw d.f.F();if(b.sizethis.size)throw d.f.La();0b||0!=c%b)throw d.f.La();for(var e=c>>1,h=0;hc||0>b||0>c||b+c>this.size)throw d.f.F();for(var e=c;ea||0>c||0>f)throw d.f.F();if(0!=c)for(this.size<(c<<1)+a&&this.resize((c<<1)+a),h||(a+=c-1<<1),h=h?2:-2,c+=f;fa||0>c||0>f)throw d.f.F();if(0!=c)for(this.size<(c<<1)+a&&this.resize((c<<1)+a),h||(a+=c-1<<1),h=h?2:-2,c+=f;fa||0>c||0>f||this.sizea||0>c||0>f||this.size<(c>>1)+a)throw d.f.F();if(0!=c)for(h||(a+=c-1),h=h?2:-2, c=f+c;fc&&(c=2);this.g=this.g=d.J.gf(c,b.Bb);this.size=a}b.prototype.rotate=function(a,c,b){if(this.Fa)throw d.f.X("invalid_call");if(cb||a>b)throw d.f.F();a!=c&&b!=c&&(this.Zd(a,c-a,1),this.Zd(c,b-c,1),this.Zd(a,b-a,1))};b.yd=function(a,c){b.Bb=c;a=new b(a);b.Bb=0;return a};b.Ak=function(a){var c=new b(0);c.g=a.g.slice(0);c.size=a.size;return c};b.$=function(a,c){var e=new b(0);e.size=a.size;e.size>c&&(e.size=c);e.g=a.g.slice(0,e.size);return e};b.prototype.yb=function(){}; b.prototype.read=function(a){return this.g[a]};b.prototype.fc=function(a,c){c.x=this.g[a];c.y=this.g[a+1]};b.prototype.get=function(a){return this.g[a]};b.prototype.write=function(a,c){if(this.Fa)throw d.f.La();this.g[a]=c};b.prototype.set=function(a,c){if(this.Fa)throw d.f.La();this.g[a]=c};b.prototype.ho=function(a,c){if(this.Fa)throw d.f.La();this.g[a]=c.x;this.g[a+1]=c.y};b.prototype.add=function(a){this.resize(this.size+1);this.g[this.size-1]=a};b.prototype.Sr=function(a){return b.$(this,a)}; b.prototype.Of=function(a){return this.read(a)};b.prototype.resize=function(a,c){void 0===c&&(c=0);if(this.Ce)throw d.f.X("invalid call. Attribute Stream is locked and cannot be resized.");if(a<=this.size){if(d.J.truncate(5*a/4)this.g.length){d.J.truncate(64>a?Math.max(2*a,4):5*a/4);for(var b=this.g.slice(0),f=this.g.length;fthis.g.length)&&this.resize(a);if(this.Ce)throw d.f.X("invalid call. Attribute Stream is locked and cannot be resized."); this.size=a};b.prototype.Dm=function(a,c){this.write(a,c)};b.prototype.zk=function(a,c,b){for(var e=this.size;cf||e>h&&f!=h)return!1;for(e>f&&(e=f);cl||0!=f%l))throw d.f.F();for(var e=0;ea||0>c||0>f)throw d.f.F(); if(b.lengtha||0>c||0>f)throw d.f.F();if(!h&&(0>=l||0!=c%l))throw d.f.F();if(b.sizethis.size)throw d.f.La();if(0b||0!=c%b)throw d.f.La();for(var e=c>>1,h=0;hc||0> b||0>c||b+c>this.size)throw d.f.F();for(var e=c;ea||0>c||0>f)throw d.f.F();if(0!=c)for(this.size<(c<<1)+a&&this.resize((c<<1)+a),h||(a+=c-1<<1),h=h?2:-2,c+=f;fa||0>c||0>f||this.sizec&&(c=2);this.g=new Int32Array(c);this.size=a}b.prototype.rotate= function(a,c,b){if(this.Fa)throw d.f.X("invalid_call");if(cb||a>b)throw d.f.F();a!=c&&b!=c&&(this.Zd(a,c-a,1),this.Zd(c,b-c,1),this.Zd(a,b-a,1))};b.yd=function(a,c){var e=new b(a),f=e.g;2>a&&(a=2);if(0!==c)for(var h=0;hc&&(e.size=c);c=e.size;2>c&&(c=2);e.g=new Int32Array(c);e.g.set(a.g.length<=c?a.g:a.g.subarray(0,c),0);return e};b.prototype.yb= function(a){0>=a||(null==this.g?this.g=new Int32Array(a):a<=this.g.length||(0this.g.length&&(b=d.J.truncate(64>a?Math.max(2*a, 4):5*a/4),b=new Int32Array(b),b.set(this.g),this.g=b);for(var b=this.g,f=this.size;fthis.g.length)&&this.resize(a);if(this.Ce)throw d.f.X("invalid call. Attribute Stream is locked and cannot be resized.");this.size=a};b.prototype.Dm=function(a,c){this.write(a,c)};b.prototype.zk=function(a,c,b){for(var e=this.size;cf||e>h&&f!=h)return!1;for(e>f&&(e=f);cl||0!=f%l))throw d.f.F();m(this.g,a+f,a,a+(k-a));this.g==c.g&&aa||0>c||0>f)throw d.f.F();if(b.lengtha||0>c||0>f)throw d.f.F();if(!h&&(0>=l||0!=c%l))throw d.f.F();if(b.sizethis.size)throw d.f.La();0b||0!=c%b)throw d.f.La();for(var e=c>>1,h=0;hc||0>b||0>c||b+c>this.size)throw d.f.F();for(var e=c;ea||0>c||0>f)throw d.f.F();if(0!= c)for(this.size<(c<<1)+a&&this.resize((c<<1)+a),h||(a+=c-1<<1),h=h?2:-2,c+=f;fa||0>c||0>f||this.sizec-a?b.ul(this.g,a,c,e):b.Oi(this.g,a,c-1,e)};b.prototype.si=function(){return 2}; b.prototype.Fc=function(){return this.g[this.size-1]};b.prototype.Pf=function(){this.resize(this.size-1)};b.prototype.BK=function(a){this.g[this.size-1]=a};b.prototype.GJ=function(a){a=c&&0=e))for(;;){if(9>e-c){b.ul(a,c,e+1,f);break}var h=a[c];b.Wg(a,c,e);for(var d=c,k=c;k=f(a[k],h)&&(b.Wg(a,d,k),d+=1);b.Wg(a,d,e);d-cc&&(c=2);this.g= d.J.gf(c,b.Bb);this.size=a}b.prototype.rotate=function(a,c,b){if(this.Fa)throw d.f.X("invalid_call");if(cb||a>b)throw d.f.F();a!=c&&b!=c&&(this.Zd(a,c-a,1),this.Zd(c,b-c,1),this.Zd(a,b-a,1))};b.yd=function(a,c){b.Bb=c;a=new b(a);b.Bb=0;return a};b.Ak=function(a){var c=new b(0);c.g=a.g.slice(0);c.size=a.size;return c};b.$=function(a,c){var e=new b(0);e.size=a.size;e.size>c&&(e.size=c);e.g=a.g.slice(0,e.size);return e};b.prototype.yb=function(){};b.prototype.read=function(a){return this.g[a]}; b.prototype.fc=function(a,c){c.x=this.g[a];c.y=this.g[a+1]};b.prototype.get=function(a){return this.g[a]};b.prototype.write=function(a,c){if(this.Fa)throw d.f.La();this.g[a]=c};b.prototype.set=function(a,c){if(this.Fa)throw d.f.La();this.g[a]=c};b.prototype.ho=function(a,c){if(this.Fa)throw d.f.La();this.g[a]=c.x;this.g[a+1]=c.y};b.prototype.add=function(a){this.resize(this.size+1);this.g[this.size-1]=a};b.prototype.Sr=function(a){return b.$(this,a)};b.prototype.Of=function(a){return this.read(a)}; b.prototype.resize=function(a,c){void 0===c&&(c=0);if(this.Ce)throw d.f.X("invalid call. Attribute Stream is locked and cannot be resized.");if(a<=this.size){if(d.J.truncate(5*a/4)this.g.length){d.J.truncate(64>a?Math.max(2*a,4):5*a/4);for(var b=this.g.slice(0),f=this.g.length;fthis.g.length)&&this.resize(a);if(this.Ce)throw d.f.X("invalid call. Attribute Stream is locked and cannot be resized."); this.size=a};b.prototype.Dm=function(a,c){this.write(a,c)};b.prototype.zk=function(a,c,b){for(var e=this.size;cf||e>h&&f!=h)return!1;for(e>f&&(e=f);cl||0!=f%l))throw d.f.F();for(var e=0;ea||0>c||0>f)throw d.f.F(); if(b.lengtha||0>c||0>f)throw d.f.F();if(!h&&(0>=l||0!=c%l))throw d.f.F();if(b.sizethis.size)throw d.f.La();if(0b||0!=c%b)throw d.f.La();for(var e=c>>1,h=0;hc||0> b||0>c||b+c>this.size)throw d.f.F();for(var e=c;ea||0>c||0>f)throw d.f.F();if(0!=c)for(this.size<(c<<1)+a&&this.resize((c<<1)+a),h||(a+=c-1<<1),h=h?2:-2,c+=f;fa||0>c||0>f||this.sizec&&(c=2);this.g=new Int8Array(c);this.size=a}b.prototype.rotate=function(a,c,b){if(this.Fa)throw d.f.X("invalid_call");if(cb||a>b)throw d.f.F();a!=c&&b!=c&&(this.Zd(a,c-a,1),this.Zd(c,b-c,1),this.Zd(a,b-a,1))};b.yd=function(a,c){var e=new b(a),f=e.g;2>a&&(a=2);if(0!==c)for(var h=0;hc&&(e.size=c);c=e.size;2>c&&(c=2);e.g=new Int8Array(c);e.g.set(a.g.length<=c?a.g:a.g.subarray(0,c),0);return e};b.prototype.yb=function(a){0>=a||(null==this.g?this.g=new Int8Array(a):a<=this.g.length||(0this.g.length&&(b=d.J.truncate(64>a?Math.max(2*a,4):5*a/4),b=new Int8Array(b),b.set(this.g),this.g=b);for(var b=this.g,f=this.size;fthis.g.length)&&this.resize(a);if(this.Ce)throw d.f.X("invalid call. Attribute Stream is locked and cannot be resized."); this.size=a};b.prototype.Dm=function(a,c){this.write(a,c)};b.prototype.zk=function(a,c,b){for(var e=this.size;cf||e>h&&f!=h)return!1;for(e>f&&(e=f);cl||0!=f%l))throw d.f.F();m(this.g,a+f,a,a+(k-a));this.g==c.g&&aa||0>c||0>f)throw d.f.F();if(b.lengtha||0>c||0>f)throw d.f.F();if(!h&&(0>=l||0!=c%l))throw d.f.F();if(b.sizethis.size)throw d.f.La();0b||0!=c%b)throw d.f.La();for(var e=c>>1,h=0;hc||0>b||0>c||b+c>this.size)throw d.f.F();for(var e=c;ea||0>c||0>f)throw d.f.F();if(0!=c)for(this.size<(c<<1)+a&&this.resize((c<<1)+a),h||(a+=c-1<<1),h=h?2:-2,c+=f;fa||0>c||0>f||this.sizea?-a:a};b.Qi=function(a){return 3.552713678800501E-15>a};b.LD=function(a,c,e){return b.K(a-c)<=e*(1+(b.K(a)+b.K(c))/2)};b.W=function(a,c){return b.LD(a,c,3.552713678800501E-15)}; b.iW=function(a){return 3.552713678800501E-15>=b.K(a)};b.wd=function(a){return b.iW(a)};return b}();d.l=m;var g=function(){function b(){}b.Sp=function(a,c){a=m.K(a);c=m.K(c);var b=0;0!=a+c&&(a>c?(b=c/a,b=a*Math.sqrt(1+b*b)):(b=a/c,b=c*Math.sqrt(1+b*b)));return b};b.Nr=function(a,c,e,f,h){for(var d=[0,0,0],k=[0,0,0],r=0;2>=r;r++)c[r]-=a[r],e[r]-=c[r];e=d[1]*k[2]-d[2]*k[1];c=d[2]*k[0]-d[0]*k[2];d=d[0]*k[1]-d[1]*k[0];a=-1*(e*a[0]+c*a[1]+d*a[2]);f[0]=e;f[1]=c;f[2]=d;f[3]=a;k=b.fo(f);f[0]/=k;f[1]/=k;f[2]/= k;f[3]/=k;0!=h&&(k=m.wd(d)?m.wd(a)?m.Ab(1,c):-m.Ab(1,a):m.Ab(1,d),k*=m.Ab(1,h),f[0]*=k,f[1]*=k,f[2]*=k,f[3]*=k)};b.ey=function(a,c,b){b[0]=a[1]*c[2]-c[1]*a[2];b[1]=a[2]*c[0]-c[2]*a[0];b[2]=a[0]*c[1]-c[0]*a[1]};b.Du=function(a,c){return a[0]*c[0]+a[1]*c[1]+a[2]*c[2]};b.fo=function(a){return b.Sp(b.Sp(a[0],a[1]),a[2])};b.Ck=function(a,c,e,f,h,d,k,r){a=b.n(a,c,e);var l=Math.cos(e);d.j=(a+h)*l*Math.cos(f);k.j=(a+h)*l*Math.sin(f);r.j=(a*(1-c)+h)*Math.sin(e)};b.iQ=function(a,c,e,f,h,d,k){var l=b.Sp(c,e), g=1*Math.sqrt(1-a),p=g/1;if(m.W(l,0))d.j=0,h.j=m.Ab(1.570796326794897,f),k.j=m.K(f)-g;else{d.j=Math.atan2(e,c);e=Math.atan2(1*f,g*l);d=Math.cos(e);var q=Math.sin(e);c=g*a/(1-a);a*=1;e=Math.atan2(f+c*q*q*q,l-a*d*d*d);3.141592653589793a){d=Math.sqrt(1-a);k=(1-d)/(1+d);r=k*k;g=k*r;p=k*g;e=k*p;q=k*e;f=k*q;h=1.572916666666667*g-3.2578125*e+4.295068359375*f;d=2.142578125*p-6.071484375*q;a=3.129296875* e-11.249837239583334*f;var u=4.775276692708333*q,v=7.958636765252976*f,x=Math.cos(2*c);return c+Math.sin(2*c)*(1.5*k-.84375*g+.525390625*e-.2688395182291667*f-h+a-v+x*(2*(1.3125*r-1.71875*p+1.650146484375*q)-4*d+6*u+x*(4*h-12*a+24*v+x*(8*d-32*u+x*(16*a-80*v+x*(32*u+64*x*v))))))}d=1-a;k=a/2;r=m.K(c);g=r*b.Su(a)/(1.570796326794897*d);p=9999;q=r;for(r=0;1E-16r;r++)f=b.Cm(a,q),e=(b.DG(q,a)-k*Math.sin(2*q)/f)/d-g,f=1/(f*f*f),h=e/f,e=q-h,p=m.K(h),q=e;return 0<=c?q:-q};b.oX=function(a,c){return m.Qi(c)? a:a*b.Su(c)/1.570796326794897};b.da=function(a){a=b.pG(a,6.283185307179586);return 0>a?a+6.283185307179586:3.141592653589793>m.K(a)||m.W(m.K(a),3.141592653589793)?a:a-6.283185307179586};b.pG=function(a,c){return a-Math.floor(a/c)*c};b.Yg=function(a,c){if(.006884661117170036>c){c=Math.sqrt(1-c);c=(1-c)/(1+c);var e=c*c,f=e*e;return a/(1+c)*(1+.25*e+.015625*f+.00390625*e*f)*1.570796326794897}return a*b.Su(c)};b.Mr=function(a,c){var e=m.Ab(1,Math.sin(c));c=m.K(b.pG(c,3.141592653589793));c=1.570796326794897>= c?c:3.141592653589793-c;var f;m.W(c,1.570796326794897)?f=c:f=Math.atan(Math.sqrt(1-a)*Math.tan(c));return f*e};b.q=function(a,c,e){if(.006884661117170036>c){c=Math.sqrt(1-c);c=(1-c)/(1+c);var f=c*c,h=c*f,d=c*h,k=c*d,r=c*k,g=c*r,p=-.7291666666666666*h+.2278645833333333*k+.03987630208333334*g,q=.615234375*d-.21533203125*r,u=-.54140625*k+.20302734375*g,v=.48876953125*r,x=-.4488699776785715*g,m=Math.cos(2*e);return a/(1+c)*((1+.25*f+.015625*d+.00390625*r)*e+Math.sin(2*e)*(-1.5*c+.1875*h+.0234375*k+.00732421875* g-p+u-x+m*(2*(.9375*f-.234375*d-.03662109375*r)-4*q+6*v+m*(4*p-12*u+24*x+m*(8*q-32*v+m*(16*u-80*x+m*(32*v+64*m*x)))))))}return a*(b.DG(e,c)-.5*c*Math.sin(2*e)/b.Cm(c,e))};b.Cm=function(a,c){c=Math.sin(c);return Math.sqrt(1-a*c*c)};b.Su=function(a){return m.LD(a,1,2.220446049250313E-16)?1:1>a?b.Kv(0,1-a)-a/3*b.Hv(0,1-a):NaN};b.DG=function(a,c){var e=m.Ab(1,a);a=m.K(a);var f=Math.floor(a/1.570796326794897),h;if(1 m.K(k)&&1E-4>m.K(r)&&1E-4>m.K(g))break;g=Math.sqrt(c);d=Math.sqrt(b);g=Math.sqrt(a)*(g+d)+g*d;f+=h/(d*(b+g));h*=.25;a=.25*(a+g);c=.25*(c+g);b=.25*(b+g)}a=k*r;b=g*g;c=a-b;b=a-6*b;k=b+c+c;return 3*f+h*(1+b*(-.2142857142857143+.10227272727272728*b-.1730769230769231*g*k)+g*(.1666666666666667*k+g*(-.4090909090909091*c+.1153846153846154*g*a)))/(d*Math.sqrt(d))};b.Kv=function(a,c){for(var b,f,h,d,k=1;;k=.25*(k+b)){b=(a+c+k)/3;f=2-(b+a)/b;h=2-(b+c)/b;d=2-(b+k)/b;if(1E-4>m.K(f)&&1E-4>m.K(h)&&1E-4>m.K(d))break; b=Math.sqrt(c);f=Math.sqrt(k);b=Math.sqrt(a)*(b+f)+b*f;a=.25*(a+b);c=.25*(c+b)}a=f*h-d*d;c=f*h*d;return(1+(.04166666666666666*a-.1-.06818181818181818*c)*a+.07142857142857142*c)/Math.sqrt(b)};b.Bx=function(a,c){if(m.Qi(a)||0==c||m.W(m.K(c),1.570796326794897))return c;var b,f,h;if(.006884661117170036>a){b=a*a;f=a*b;h=a*f;var d=a*h,k=a*d,r=a*k,g=-(.02708333333333333*f+.03430059523809524*h+.03149181547619048*d+.02634359154541446*k+.02156896735835538*r),p=.007669890873015873*h+.01299603174603175*d+.0148051353064374* k+.01454454953803912*r,q=-(.002275545634920635*d+.004830845032667949*k+.006558395368616723*r),u=6.957236677288761E-4*k+.001775193002406544*r,v=-(2.17324089394402E-4*r),x=Math.cos(2*c);return c+Math.sin(2*c)*(-(.5*a+.2083333333333333*b+.09375*f+.04878472222222222*h+.02916666666666667*d+.01938905423280423*k+.01388255931712963*r)-g+q-v+x*(2*(.1041666666666667*b+.0875*f+.06050347222222222*h+.04151785714285714*d+.02958958540013228*k+.02203667534722222*r)-4*p+6*u+x*(4*g-12*q+24*v+x*(8*p-32*u+x*(16*q-80* v+x*(32*u+64*x*v))))))}0==c||m.W(m.K(c),1.570796326794897)?b=c:(f=Math.sqrt(a),h=f*Math.sin(c),b=Math.tan(.7853981633974483+c/2)*Math.pow((1-h)/(1+h),f/2),b=2*Math.atan(b)-1.570796326794897);return b};b.AQ=function(a,c){if(m.Qi(a)||0==c||m.W(m.K(c),1.570796326794897))return c;var b,f;if(.006884661117170036>a){x=a*a;q=a*x;u=a*q;b=a*u;v=a*b;f=a*v;var h=.05833333333333333*q+.07232142857142858*u+.05634300595238095*b+.0355325796406526*v+.020235546186067*f,d=.02653149801587302*u+.04379960317460317*b+.0429211791776896* v+.03255384637546096*f,k=.01294022817460318*b+.02668104344536636*v+.03155651254609588*f,r=.00659454790965208*v+.0163075268674227*f,g=.003463473736911237*f,p=Math.cos(2*c);return c+Math.sin(2*c)*(.5*a+.2083333333333333*x+.08333333333333333*q+.03611111111111111*u+.01875*b+.01195601851851852*v+.008863673941798942*f-h+k-g+p*(2*(.1458333333333333*x+.1208333333333333*q+.07039930555555556*u+.03616071428571429*b+.01839451058201058*v+.01017113095238095*f)-4*d+6*r+p*(4*h-12*k+24*g+p*(8*d-32*r+p*(16*k-80*g+ p*(32*r+64*p*g))))))}for(var q=Math.sqrt(a),u=q/2,v=Math.tan(.7853981633974483+c/2),h=0,d=1,x=c;0!=d;x=f)if(b=q*Math.sin(x),f=v*Math.pow((1+b)/(1-b),u),f=2*Math.atan(f)-1.570796326794897,h++,m.W(f,x)||3E4this.ll&&(this.ll=0);var c=this.uf.getType();this.uI=c==d.Vc.PE_TYPE_PROJCS?2:1;if(c==d.Vc.PE_TYPE_PROJCS&&!b.loadConstants())throw d.f.F("PeProjcs.loadConstants failed");a=c==d.Vc.PE_TYPE_GEOGCS?this.uf:this.uf.getGeogcs();c!=d.Vc.PE_TYPE_GEOGCS&&d.Tf.getCode(a);this.Er=b.getUnit();this.dJ=a.getPrimem().getLongitude();this.HI=b=a.getUnit().getUnitFactor();b=Math.PI/(180*b);1E-10> Math.abs(b-1)&&(b=1);this.lB=b;0!=(c&d.Vc.PE_TYPE_PROJCS)?(a=this.uf,this.mB=1/a.getUnit().getUnitFactor(),this.ex=.001/this.uf.getUnit().getUnitFactor(),this.fx=d.Bg.generate(a,d.Bg.PE_PCSINFO_OPTION_NONE),this.al=this.fx.isPannableRectangle(),this.JA=d.Ib.pP(this.fx.getCentralMeridian(),this.lB)):(this.hx=this.al=!0,this.mB=0,c=1/a.getUnit().getUnitFactor(),this.ex=.001/a.getDatum().getSpheroid().getAxis()*c,this.JA=0);this.al&&(this.cy(),this.tL(),this.uL(),this.sL(),this.hZ(),this.iZ())}g.prototype.Zs= function(){return this.ll};g.prototype.Sj=function(){return this.fx};g.yz=function(b,a){return b==a?!0:null!=b&&null!=a&&0==b.ll&&0==a.ll?b.vt===a.vt:!1};g.prototype.Jc=function(){return this.al};g.prototype.Bh=function(b){b.I(this.gp)};g.prototype.aw=function(){return this.gp.o};g.prototype.$v=function(){return this.gp.v};g.prototype.yT=function(b){b.I(this.gx)};g.prototype.hZ=function(){var b=this.uf.getType();if(b==d.Vc.PE_TYPE_PROJCS){var b=this.uf,a=this.Sj().getCentralMeridian(),c=b.getGeogcs(); if(null==c)throw d.f.X("internal error");c=1/c.getUnit().getUnitFactor()*Math.PI;a=[[a+c,0]];d.fi.geogToProj(b,1,a);var a=a[0][0],c=b.getParameters()[d.Vc.PE_PARM_X0].getValue(),e=this.Lk(),b=new d.h;e.s(b);var e=Math.abs(a-c),a=e+c,c=-1*e+c,e=b.B,b=b.A,f=new d.h;f.I(c,b,a,e);null==this.gp&&(this.gp=f)}else if(b==d.Vc.PE_TYPE_GEOGCS)c=1/this.uf.getUnit().getUnitFactor()*Math.PI,b=new d.h,b.I(-c,-c/2,c,c/2),null==this.gp&&(this.gp=b);else throw d.f.X("internal error");};g.prototype.iZ=function(){var b= this.uf.getType();if(b==d.Vc.PE_TYPE_PROJCS){var a=this.uf,b=this.Sj().getCentralMeridian(),a=a.getGeogcs();if(null==a)throw d.f.X("internal error");var a=1/a.getUnit().getUnitFactor()*Math.PI,c=this.Us(),e=new d.h;c.s(e);c=new d.h;c.I(b-a,e.A,b+a,e.B);null==this.gx&&(this.gx=c)}else if(b==d.Vc.PE_TYPE_GEOGCS)a=1/this.uf.getUnit().getUnitFactor()*Math.PI,b=new d.h,b.I(-a,-a/2,a,a/2),null==this.gx&&(this.gx=b);else throw d.f.X("internal error");};g.prototype.de=function(){return this.lB};g.prototype.cn= function(){return this.mB};g.prototype.Us=function(){if(this.al)return this.Zl;var b=this.Zl;if(null!=b)return b;this.cy();return this.Zl};g.prototype.Vs=function(){if(this.al)return null;if(null!=this.Zl)return this.gI;this.cy();return this.gI};g.prototype.cy=function(){if(this.uf.getType()==d.Vc.PE_TYPE_PROJCS){var b;b=this.uf;var a=b.getGeogcs(),c=b.horizonGcsGenerate();if(null!=c){var e=c[0].getNump(),f=c[0].getKind();b=0r&&(c=-400*h,p.I(c,p.A,c+5*k,p.B)),c=new d.ci(p),null==this.Zl&&(this.Zl=c,this.uw=b);else{r=new d.Ia;k=this.Sj().isGcsHorizonMultiOverlap();p=d.Nu.hG(a,d.ss.Integer64); if(k){r=new d.PM;g=d.ei.local().V(r,p,null);for(u=0;uthis.mt&&(this.mt=0);this.Er=a=this.HV.getUnit(); this.WI=1/a.getUnitFactor();d.Tf.getCode(b)}g.yz=function(b,a){return b==a?!0:null!=b&&null!=a&&0==b.mt&&0==a.mt?b.vt===a.vt:!1};g.prototype.Zs=function(){return this.mt};return g}();d.EN=m})(n||(n={}));(function(d){var m=function(){function g(){}g.Cb=function(b,a,c,e,f,h,l,k){if(null!=h||null!=l||null!=k){e=d.C.da(e);a=d.C.da(a);c=d.C.da(c);f=d.C.da(f);1.570796326794897c?e:d.C.da(3.141592653589793-e):l.j=Math.atan2(q*x,g*u-p*q*v));null!=k&&(d.l.W(d.l.K(f),1.570796326794897)?k.j=0>f?a:d.C.da(3.141592653589793- a):(k.j=Math.atan2(g*x,u*g*v-q*p),k.j=d.C.da(k.j+3.141592653589793)))}}};g.Uf=function(b,a,c,e,f,h,l){if(null!=h||null!=l){a=d.C.da(a);c=d.C.da(c);1.570796326794897u?f:d.C.da(3.141592653589793-f):a:d.l.W(d.l.K(c),1.570796326794897)&&d.l.W(b,3.141592653589793)?0>c?f:d.C.da(3.141592653589793-f):d.C.da(a+Math.atan2(q*r,g*e-p*q*k)))}};return g}();d.vh=m})(n||(n={}));(function(d){var m=function(){function g(){}g.Cb=function(b,a,c,e,f,h,l,k,r){var g=new d.ea(0),p=new d.ea(0),q=[0,0,0],u=[0,0,0],v= [0,0,0],x=new d.ea(0),m=new d.ea(0),y=new d.ea(0),D=new d.ea(0),n=new d.ea(0);if(null!=l||null!=k||null!=r)if(d.l.Qi(a))d.vh.Cb(b,c,e,f,h,l,k,r);else{f=d.C.da(f);c=d.C.da(c);var B=d.C.da(f-c);if(d.l.W(e,h)&&(d.l.W(c,f)||d.l.W(d.l.K(e),1.570796326794897)))null!=l&&(l.j=0),null!=k&&(k.j=0),null!=r&&(r.j=0);else{if(d.l.W(e,-h)){if(d.l.W(d.l.K(e),1.570796326794897)){null!=l&&(l.j=2*d.C.Yg(b,a));null!=k&&(k.j=0B&&(A=1,C=c,c=f,f=C,C=e,e=h,h=C);var B=d.C.cu(a,e),E=d.C.cu(a,h);if(null!=k||null!=r)d.vh.Cb(b,c,B,f,E,null,g,p),g=Math.atan2(Math.sin(g.j)*Math.cos(e-B),Math.cos(g.j)),p=Math.atan2(Math.sin(p.j)*Math.cos(h-E),Math.cos(p.j)),0!=A&&(C=g,g=p,p=C),null!= k&&(k.j=g),null!=r&&(r.j=p);null!=l&&(d.C.Ck(1,a,e,c,0,y,D,n),q[0]=y.j,q[1]=D.j,q[2]=n.j,d.C.Ck(1,a,h,f,0,y,D,n),u[0]=y.j,u[1]=D.j,u[2]=n.j,v[0]=q[1]*u[2]-u[1]*q[2],v[1]=-(q[0]*u[2]-u[0]*q[2]),v[2]=q[0]*u[1]-u[0]*q[1],a=1-d.C.Cm(a,d.C.Mr(a,d.C.hk(a,Math.acos(v[2]/Math.sqrt(v[0]*v[0]+v[1]*v[1]+v[2]*v[2]))))),a*=2-a,k=Math.atan2(-v[1],-v[0]),v=d.C.da(k-1.570796326794897),k=d.C.da(k+1.570796326794897),v=d.l.K(d.C.da(c-v))<=d.l.K(d.C.da(c-k))?v:k,d.vh.Cb(1,v,0,c,B,x,null,null),d.vh.Cb(1,v,0,f,E,m,null, null),3.141592653589793f&&(f=d.l.K(f),h=d.C.da(h+3.141592653589793));c=d.C.da(c);e=d.C.da(e);1.570796326794897=d.l.K(h)?1:-1);h=d.C.da(c+Math.atan(Math.tan(h)*-Math.sin(y)));d.vh.Cb(b,h,0,c,y,null,p,null);y=d.l.K(1.570796326794897-d.l.K(p.j));y=d.C.hk(a, y);y=1-d.C.Cm(a,d.C.Mr(a,y));y*=2-y;d.C.Ck(1,a,0,h,0,v,x,m);q[0]=v.j;q[1]=x.j;q[2]=m.j;d.C.Ck(1,a,e,c,0,v,x,m);u[0]=v.j;u[1]=x.j;u[2]=m.j;e=Math.acos((q[0]*u[0]+q[1]*u[1]+q[2]*u[2])/Math.sqrt(u[0]*u[0]+u[1]*u[1]+u[2]*u[2]));e=d.C.hk(y,e);e=d.C.q(b,y,e)+f*D;f=0=G&&!d.l.W(H,A));if(0!=F)x*=g,v=x*(256+x*(-128+x*(74-47*x)))/1024,null!=l&&(l.j=m*(1+x*(4096+x*(-768+x*(320-175*x)))/16384)*(S-v*J*(p+v/4*(K*(2*q-1)-v/6* p*(4*J*J-3)*(4*q-3))))),null!=k&&(d.l.W(d.l.K(e),1.570796326794897)?k.j=0>e?f:d.C.da(3.141592653589793-f):k.j=Math.atan2(n*E,a*B-D*n*C)),null!=r&&(d.l.W(d.l.K(h),1.570796326794897)?r.j=0>h?c:d.C.da(3.141592653589793-c):(r.j=Math.atan2(a*E,a*B*C-D*n),r.j=d.C.da(r.j+3.141592653589793)));else{A=d.l.Ab(3.141592653589793,u);K=D*B-a*n;S=Math.acos(K);J=Math.sin(S);g=1;G=L=0;do q=L,g*=g,C=g*g,L=v*g*(1+v+v*v),p=v*v*C*(1+2.25*v),F=v*v*v*C*g,C=1-.25*L+.1875*p-.1953125*F,L=.25*L-.25*p+.29296875*F,E=.03125*p- .05859375*F,F*=.00651041666666667,p=K-2*D*B/g,1= G&&!d.l.W(q,L));null!=l&&(g*=g,x*=g,C=1+x*(4096+x*(-768+x*(320-175*x)))/16384,d.l.W(e,-h)?l.j=3.141592653589793*m*C:(p=K-2*D*B/g,g=Math.acos(p),K=Math.cos(2*g),H=Math.cos(3*g),l.j=m*(C*S+x*(-512+x*(128+x*(-60+35*x)))/2048*J*p+x*(-4+5*x)/6144*x*x*Math.sin(2*S)*K+F*Math.sin(3*S)*H+-7.62939453125E-5*x*x*x*x*Math.sin(4*S)*Math.cos(4*g))));null!=k&&(d.l.wd(e)&&d.l.wd(h)?(g=Math.sqrt(1-L*L),k.j=Math.acos(g),0>u&&(k.j*=-1)):d.l.W(d.l.K(e),1.570796326794897)?k.j=0>e?f:d.C.da(3.141592653589793-f):(l=L/a,m= Math.sqrt(1-l*l),0>a*B-D*n*Math.cos(A)&&(m*=-1),k.j=Math.atan2(l,m),d.l.W(e,-h)&&d.l.K(d.C.da(c-f))>3.141592653589793*(1-v*Math.cos(e))&&(0d.l.K(k.j)||0>e&&1.570796326794897h?c:d.C.da(3.141592653589793-c);else if(u=L/n,l=Math.sqrt(1-u*u),m=Math.sin(A/2),0>Math.sin(y-b)-2*a*B*m*m&&(l*=-1), r.j=Math.atan2(u,l),r.j=d.C.da(r.j+3.141592653589793),d.l.W(e,-h)&&!d.l.wd(e)&&!d.l.W(d.l.K(e),1.570796326794897)&&d.l.K(d.C.da(c-f))>3.141592653589793*(1-v*Math.cos(e))&&(null!=k?m=k.j:(l=L/a,m=Math.sqrt(1-l*l),0>a*B-D*n*Math.cos(A)&&(m*=-1),m=Math.atan2(l,m),d.l.W(e,-h)&&d.l.K(d.C.da(c-f))>3.141592653589793*(1-v*Math.cos(e))&&(0d.l.K(m)||0>e&&1.570796326794897=d.l.K(m)&&1.570796326794897d.l.K(r.j)))r.j=-1*d.C.da(r.j+3.141592653589793)}}}};g.Uf=function(b,a,c,e,f,h,l,k){if(null!=l||null!=k)if(d.l.Qi(a))d.vh.Uf(b,c,e,f,h,l,k);else if(h=d.C.da(h),d.l.W(d.l.K(e),1.570796326794897)||d.l.wd(h)||d.l.W(d.l.K(h),3.141592653589793))d.yl.Uf(b,a,c,e,f,h,l,k);else{var r=1.570796326794897==d.l.K(h)?0:Math.cos(h),g=3.141592653589793==d.l.K(h)?0:Math.sin(h);d.l.W(d.l.K(e),1.570796326794897)&&(c=0);h=1-Math.sqrt(1-a);var p=d.C.Mr(a,e);e=1.570796326794897==d.l.K(p)?0:Math.cos(p); var q=Math.sin(p),p=Math.atan2(Math.tan(p),r),u=e*g,v=u*u,x=1-v,m=a/(1-a)*x;a=m*(256+m*(-128+m*(74-47*m)))/1024;var y=a/4,n=a/6,z=f/(b*(1-h)*(1+m*(4096+m*(-768+m*(320-175*m)))/16384)),B=z,A;do{A=B;f=1.570796326794897==d.l.K(B)?0:Math.cos(B);var m=3.141592653589793==d.l.K(B)?0:Math.sin(B),C=m*m;b=Math.cos(2*p+B);B=b*b;B=a*m*(b+y*(f*(2*B-1)-n*b*(4*C-3)*(4*B-3)))+z}while(!d.l.W(A,B));f=1.570796326794897==d.l.K(B)?0:Math.cos(B);m=3.141592653589793==d.l.K(B)?0:Math.sin(B);null!=l&&(g=Math.atan2(m*g,e* f-q*m*r),x=h/16*x*(4+h*(4-3*x)),b=Math.cos(2*p+B),l.j=d.C.da(c+(g-(1-x)*h*u*(B+x*m*(b+x*f*(2*b*b-1))))));null!=k&&(x=q*m-e*f*r,x=(1-h)*Math.sqrt(v+x*x),k.j=Math.atan2(q*f+e*m*r,x))}};return g}();d.Mu=m})(n||(n={}));(function(d){var m=function(){function g(){}g.Cb=function(b,a,c,e,f,h,l,k,r){var g=d.C.da(f-c),p=d.l.W(d.l.K(e),1.570796326794897),q=d.l.W(d.l.K(h),1.570796326794897);if(d.l.W(e,h)&&(d.l.wd(g)||p))null!=l&&(l.j=0),null!=k&&(k.j=0),null!=r&&(r.j=0);else{var u,v;d.l.Qi(a)?(u=Math.sin(e), v=Math.sin(h),u=Math.sqrt((1+u)/(1-u)),v=Math.sqrt((1+v)/(1-v)),u=Math.log(v)-Math.log(u),u=Math.atan2(g,u),null!=l&&(l.j=d.l.W(e,h)?d.l.K(b*Math.cos(e)*g):d.l.K((b*h-b*e)/Math.cos(u)))):(v=d.C.Bx(a,h),u=Math.sin(d.C.Bx(a,e)),v=Math.sin(v),u=Math.sqrt((1+u)/(1-u)),v=Math.sqrt((1+v)/(1-v)),u=Math.log(v)-Math.log(u),u=Math.atan2(g,u),null!=l&&(d.l.W(e,h)?l.j=d.l.K(b*g*Math.cos(e)/d.C.Cm(a,e)):(g=d.C.q(b,a,e),b=d.C.q(b,a,h),l.j=d.l.K((b-g)/Math.cos(u)))));if(null!=k||null!=r)l=d.C.da(u+3.141592653589793), p&&q||!p&&!q||(p?u=0>e?f:d.C.da(3.141592653589793-f):q&&(l=0>h?c:d.C.da(3.141592653589793-c))),null!=k&&(k.j=u),null!=r&&(r.j=l)}};g.Uf=function(b,a,c,e,f,h,l,k){h=d.C.da(h);0>f&&(f=d.l.K(f),h=d.C.da(h+3.141592653589793));d.l.Qi(a)?d.l.W(d.l.K(e),1.570796326794897)?(c=0>e?h:d.C.da(3.141592653589793-h),h=f/b%6.283185307179586,3.141592653589793>=h?b=e-d.l.Ab(h,e):(c=d.C.da(c+3.141592653589793),b=-e+d.l.Ab(h-3.141592653589793,e))):d.l.W(d.l.K(h),1.570796326794897)?(c=d.C.da(c+d.l.Ab(f,h)/(b*Math.cos(e))), b=e):(b=e+f*Math.cos(h)/b,1.570796326794897e?h:d.C.da(3.141592653589793-h),h=f/d.C.oX(b,a),h%=6.283185307179586,3.141592653589793>=h?(b=e-d.l.Ab(h,e),b=d.C.xp(a, b)):(c=d.C.da(c+3.141592653589793),b=-e+d.l.Ab(h-3.141592653589793,e),b=d.C.xp(a,b))):d.l.W(d.l.K(h),1.570796326794897)?(c=d.C.da(c+d.l.Ab(f,h)*d.C.Cm(a,e)/(b*Math.cos(e))),b=e):(b=1.570796326794897*(f*Math.cos(h)+d.C.q(b,a,e))/d.C.Yg(b,a),1.570796326794897Math.PI||Math.abs(b.y)>.5*Math.PI||Math.abs(f.y)>.5*Math.PI||(Math.abs(b.y)==.5*Math.PI||Math.abs(f.y)==.5*Math.PI)&&b.x!=f.x)return NaN; h=a.QC(h,Math.min(b.x,f.x),Math.max(b.x,f.x));if(!(new d.Ac(b.x,f.x)).contains(h))return NaN;var e=m.pa(b);f=m.pa(f);e=a.Ru(c,e);f=a.Ru(c,f);f=e.iG(f);if(f.z.Lg())return b=b.y;var k=new d.Xb;k.set(f.x);k.Xm(f.z);k.yp(-1);var r=new d.Xb;r.set(f.y);r.Xm(f.z);r.yp(-1);var g=new d.Xb;g.set(r);g.Vg(r);e=new d.Xb;e.set(k);e.Vg(k);e.add(g);e.sqrt();if(e.Lg()||k.Lg()&&r.Lg())return b=b.y;b=Math.atan2(r.value(),k.value());b=Math.atan2(e.value()*Math.cos(b-h),1-c);h=a.lO(c,d.b.pa(h,b));c=new d.qd(h.x,h.y,-h.z); h=f.value().oi(h);c=f.value().oi(c);Math.abs(c)Math.PI||Math.abs(f.y)>.5*Math.PI||Math.abs(h.y)>.5*Math.PI||(Math.abs(f.y)==.5*Math.PI||Math.abs(h.y)==.5*Math.PI)&&f.x!=h.x||Math.abs(l)>=.5*Math.PI||0l&&h.y>l||0>f.y&&0>h.y&&f.yMath.abs(k[1]-f.x)&&(f=k[0],k[0]= k[1],k[1]=f));return l};a.QC=function(a,b,f){a>f?(b=Math.ceil((a-f)/(2*Math.PI)),a-=2*b*Math.PI):a.5*Math.PI?(a[0]+=Math.PI,b[0]=Math.PI-b[0]):b[0]<-.5*Math.PI&&(a[0]-=Math.PI,b[0]=-Math.PI-b[0])};return a}();d.xy=b})(n||(n={}));(function(d){var m=function(){function g(){}g.SY=function(b,a){var c=8;0>c&&(c=8);var e=[0,0,0,0],f=new d.b;f.L(a);f.scale(9102==d.fb.kc(b).Od().yc()?1:d.fb.kc(b).Od().Ai/3.141592653589793* 180);-180>f.x?(f.x-=f.x%360,-180>f.x&&(f.x+=360)):180f.y&&(f.y=-90);b=5*c;a=(b+31)/32;for(var h=-180,l=180,k=b-1,r=a-1;0<=r;r--)for(var t=k-32*r,p=Math.min(32,b-32*r),q=1;q=u?(e[r]|=1<=u?(e[r]|=1<>h&31,h=h+5;if(31a)for(d=0;d=a[0]?a:'"'+a.trim()+'"'}var g=[],b=function(){function a(){}a.vS=function(c){try{for(var b=0;bb||b>this.Ea)throw d.f.F();return this.wg[b]};g.prototype.mg=function(b){return this.Sh[b]};g.Vz=function(b){return g.uc[b]};g.si=function(b){return g.bd[b]};g.Mg=function(b){return g.ee[b]};g.Cj=function(b){return g.Mg(g.si(b))*g.Xa(b)};g.Xa=function(b){return g.Bb[b]};g.Wg=function(b){return 2>b};g.qk=function(b){return g.Wg(g.si(b))}; g.prototype.hasAttribute=function(b){return 0<=this.Sh[b]};g.prototype.tH=function(){return this.hasAttribute(1)};g.pe=function(b){return g.$[b]};g.prototype.DT=function(b){return this.Pt[b]};g.OH=function(b,a){return g.$[b]===a};g.Oi=function(b){if(4==b)return 2;if(8==b)return 3;throw d.f.F();};g.prototype.Eb=function(b){return this===b};g.prototype.zk=function(){for(var b=d.J.dh(this.wg[0]),a=1;ae||void 0!==c[e+1]||c[e-1]&1):3===f?h=h||void 0!==c[e]||0>e:(h=!1,0!==f&&g("!Big.RM!"));if(1>e||!c[0])h?(a.e=-b,a.Kd=[1]):a.Kd=[a.e=0];else{c.length=e--;if(h)for(;9<++c[e];)c[e]= 0,e--||(++a.e,c.unshift(1));for(e=c.length;!c[--e];c.pop());}}function g(a){a=Error(a);a.name="BigError";throw a;}var b=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,a=function(){function a(c){if(c instanceof a)this.le=c.le,this.e=c.e,this.Kd=c.Kd.slice();else{var e,h,d;0===c&&0>1/c?c="-0":b.test(c+="")||g(NaN);this.le="-"==c.charAt(0)?(c=c.slice(1),-1):1;-1<(e=c.indexOf("."))&&(c=c.replace(".",""));0<(h=c.search(/e/i))?(0>e&&(e=h),e+=+c.slice(h+1),c=c.substring(0,h)):0>e&&(e=c.length);for(h=0;"0"==c.charAt(h);h++); if(h==(d=c.length))this.Kd=[this.e=0];else{for(;"0"==c.charAt(--d););this.e=e-h-1;this.Kd=[];for(e=0;h<=d;this.Kd[e++]=+c.charAt(h++));}}}a.prototype.abs=function(){var c=new a(this);c.le=1;return c};a.prototype.QF=function(){var c=0,b=this.Kd,h=(c=new a(c)).Kd,d=this.le,k=c.le,r=this.e,g=c.e;if(!b[0]||!h[0])return b[0]?d:h[0]?-k:0;if(d!=k)return d;c=0>d;if(r!=g)return r>(g^c)?1:-1;d=-1;for(k=(r=b.length)<(g=h.length)?r:g;++d(h[d]^c)?1:-1;return r==g?0:r>(g^c)?1:-1}; a.prototype.Xm=function(c){var b=this.Kd,e=(c=new a(c)).Kd,d=this.le==c.le?1:-1,k=a.bd;(k!==~~k||0>k||1E6A?0:A;for(u.unshift(0);y++t;t++){if(r!=(y=w.length))p=r>y?1:-1;else for(q=-1,p=0;++qw[q]?1:-1;break}if(0>p){for(c=y==r?e:u;y;){if(w[--y]< c[y]){for(q=y;q&&!w[--q];w[q]=9);--w[q];w[y]+=10}w[y]-=c[y]}for(;!w[0];w.shift());}else break}z[B++]=p?t:++t;w[0]&&p?w[y]=b[v]||0:w=[b[v]]}while((v++A&&m(n,k,a.Mg,void 0!==w[0]);return n};a.prototype.ZT=function(){return 0this.QF()};a.prototype.Yt=function(c){var b,e,d=this.le,k=(c=new a(c)).le;if(d!=k)return c.le=-k,this.DJ(c);var r=this.Kd.slice();e=this.e;var g=c.Kd,p=c.e;if(!r[0]||!g[0])return g[0]? (c.le=-k,c):new a(r[0]?this:0);if(d=e-p){(b=0>d)?(d=-d,e=r):(p=e,e=g);e.reverse();for(k=d;k--;e.push(0));e.reverse()}else for(e=((b=r.lengthd;){if(r[--e]d.length-r.length&&(b=r,r=d,d=b);e=r.length;for(b=0;e;)b=(d[--e]=d[e]+r[e]+b)/10|0,d[e]%=10;b&&(d.unshift(b),++k);for(e=d.length;0==d[--e];d.pop());c.Kd=d;c.e=k;return c};a.prototype.pow=function(c){var b=this,e=new a(1),d=e,k=0>c;(c!==~~c||-1E6>c||1E6>=1;if(!c)break;b=b.cs(b)}return k?e.Xm(d):d};a.prototype.round=function(c,b){var e=this;null==c?c=0:(c!==~~c||0>c||1E6c&&g(NaN);c=Math.sqrt(this.toString());0==c||c==1/0?(c=b.join(""),c.length+h&1||(c+="0"),b=new a(Math.sqrt(c).toString()),b.e=((h+1)/2|0)-(0>h||h&1)):b=new a(c.toString()); c=b.e+(a.bd+=4);do h=b,b=d.cs(h.DJ(this.Xm(h)));while(h.Kd.slice(0,c).join("")!==b.Kd.slice(0,c).join(""));m(b,a.bd-=4,a.Mg);return b};a.prototype.cs=function(c){var b,e=this.Kd,d=(c=new a(c)).Kd,k=e.length,r=d.length,g=this.e,p=c.e;c.le=this.le==c.le?1:-1;if(!e[0]||!d[0])return new a(0*c.le);c.e=g+p;kg;)r=b[p]+d[g]*e[p-g-1]+r,b[p--]=r%10,r=r/10|0;b[p]=(b[p]+r)%10}r&&++c.e;b[0]||b.shift();for(g=b.length;!b[--g];b.pop()); c.Kd=b;return c};a.prototype.toString=function(){var a=this.e,c=this.Kd.join(""),b=c.length;if(-7>=a||21<=a)c=c.charAt(0)+(1a?"e":"e+")+a;else if(0>a){for(;++a;c="0"+c);c="0."+c}else if(0b)for(a-=b;a--;c+="0");else athis.le&&this.Kd[0]?"-"+c:c};a.bd=20;a.Mg=1;return a}();d.Tp=a})(n||(n={}));(function(d){var m=function(){function b(a){this.Nf=a}b.prototype.gs=function(a,c,b){var e= new d.b,h=new d.b,l=this.Nf;b.Gd(a,c,function(a,c){l.fc(2*a,e);l.fc(2*c,h);return e.compare(h)})};b.prototype.Qq=function(a){return this.Nf.read(2*a+1)};return b}(),g=function(){function b(){}b.Rq=function(a){if(a.u())return!1;var c=a.G();return 1736==c?0==a.hf()?!1:!0:1607==c?(c=[!1],b.lE(a,!0,c),c[0]):197==c||d.T.Oc(c)&&!a.NH()?!0:!1};b.Sm=function(a){var c=a.G();if(1736==c)return c=new d.Ua(a.description),a.u()||a.wE(c),c;if(1607==c)return b.lE(a,!1,null);if(197==c)return c=new d.Ua(a.description), a.u()||c.jd(a,!1),c;if(d.T.Oc(c)){c=new d.Ed(a.description);if(!a.u()&&!a.NH()){var e=new d.Wa;a.Dp(e);c.add(e);a.Bp(e);c.add(e)}return c}if(d.T.Jo(c))return null;throw d.f.F();};b.lE=function(a,c,b){null!=b&&(b[0]=!1);var e=null;c||(e=new d.Ed(a.description));if(!a.u()){var h=new d.ia(0);h.yb(2*a.aa());for(var l=0,k=a.aa();lh.get(u)?(h.set(r,2147483647),r=u):h.set(u,2147483647),g++;else{if(0==(g&1))h.set(r,2147483647);else if(c)return null!=b&&(b[0]=!0),null;k.L(q);r=u;g=1}if(0==(g&1))h.set(r,2147483647);else if(c)return null!=b&&(b[0]=!0),null;if(!c)for(h.Gd(0,h.size,function(a,c){return a-c}),u=0,v=h.size;uc-a)e.gs(a,c,b);else{var f=!0;try{for(var d=Infinity,l=-Infinity,k=a;kl&&(l=r)}if(this.reset(c-a,d,l,c-a)){for(k=a;kf&&e.gs(a+f,a+c,b);100b||c==a)return!1;b=Math.min(g.PV,b);this.ag.yb(b);this.ag.resize(b);this.ag.Zh(0,0,this.ag.size);this.TI=a;this.tt.resize(e);this.zt=(c-a)/(b-1);return!0}; g.prototype.KG=function(b){return d.J.truncate((b-this.TI)/this.zt)};g.PV=65536;return g}();d.Gu=m})(n||(n={}));(function(d){var m;(function(a){a[a.enum_line=1]="enum_line";a[a.enum_arc=2]="enum_arc";a[a.enum_dummy=4]="enum_dummy";a[a.enum_concave_dip=8]="enum_concave_dip";a[a.enum_connection=3]="enum_connection"})(m||(m={}));var g=function(){function a(){}a.Dv=function(c,b,e,f,g,p){var h=new a;h.vn=new d.b;h.Jn=new d.b;h.Nw=new d.b;h.vn.L(c);h.Jn.L(b);h.Nw.L(e);h.qp=f;h.Nh=g;h.Qh=p;return h};a.pa= function(c,b,e,f){var h=new a;h.vn=new d.b;h.Jn=new d.b;h.Nw=new d.b;h.vn.L(c);h.Jn.L(b);h.Nw.$c();h.qp=4;h.Nh=e;h.Qh=f;return h};return a}(),b=function(){function a(a,c,b,e,f,d){this.Kw=null;this.Ba=0;this.iB=a;this.nJ=this.lJ=0;this.Qa=c;this.ek=b;this.Xk=e;this.sr=f;this.lc=d}a.prototype.next=function(){for(var a=new d.Wa;;){if(this.Ba==this.iB.D())return null;this.iB.Ae(this.Ba,a);this.Ba++;if(!a.u())break}var c=!1;null==this.Kw&&(this.lJ=a.Be(),this.nJ=a.nf(),this.Kw=e.buffer(a,this.Qa,this.ek, this.Xk,this.sr,this.lc),c=!0);var b;this.Baf)throw d.f.F();if(a.u())return new d.Ia(a.description);var h=new d.h; a.ac(h);0=g&&(g=96);p.vb=Math.abs(p.Qa);p.ww=0!=p.vb?1/p.vb:0;isNaN(f)||0==f?f=1E-5*p.vb:f>.5*p.vb&&(f=.5*p.vb);12>g&&(g=12);a=Math.abs(c)*(1-Math.cos(Math.PI/g));a>f?f=a:(a=Math.PI/Math.acos(1-f/Math.abs(c)),ag&&(g=12,f=Math.abs(c)*(1-Math.cos(Math.PI/g)))));p.Xk=f;p.sr=g;p.YA=Math.min(p.Ut,.25*f);return p.xF()};e.prototype.Qv=function(){if(null==this.Wd)this.Wd=[];else if(0!== this.Wd.length)return;var a=this.BF(),a=d.J.truncate((a+3)/4),c=.5*Math.PI/a;this.VA=c;for(var b=0;b<4*a;b++)this.Wd.push(null);for(var e=Math.cos(c),c=Math.sin(c),f=d.b.pa(0,1),b=0;b= this.Qa&&(a=new d.h,this.Y.s(a),a.N()<=2*-this.Qa||a.fa()<=2*this.Qa))return new d.Ia(this.Y.description)}else return new d.Ia(this.Y.description);switch(this.Y.G()){case 33:return this.RP();case 550:return this.QP();case 1607:return this.TP();case 1736:return this.SP();case 197:return this.OP();default:throw d.f.ya();}};e.prototype.TP=function(){if(this.PH(this.Y)){var c=new d.Wa;this.Y.Ae(0,c);var b=new d.h;this.Y.s(b);c.rb(b.Wf());return this.qv(c)}this.Y=this.NW(this.Y);c=new a(this,this.cr); return d.ei.local().V(c,this.ek,this.lc).next()};e.prototype.SP=function(){if(0==this.Qa)return this.Y;var a=d.Lm.local();this.Qv();this.Y=a.V(this.Y,null,!1,this.lc);if(0>this.Qa){var b=this.Y,b=this.Vy(b,0,b.aa());return a.V(b,this.ek,!1,this.lc)}if(this.PH(this.Y))return a=new d.Wa,this.Y.Ae(0,a),b=new d.h,this.Y.s(b),a.rb(b.Wf()),this.qv(a);a=new c(this);return d.ei.local().V(a,this.ek,this.lc).next()};e.prototype.Vy=function(a,c,b){for(var f=new d.Ia(a.description);ca.Ka(c))){var h= a.Tm(c),l=new d.h;a.ik(c,l);if(0=this.Qa){if(0==this.Qa)a.jd(this.Y,!1);else{var c=new d.ci;this.Y.Rn(c);c.O(this.Qa,this.Qa);a.jd(c,!1)}return a}a.jd(this.Y,!1);this.Y= a;return this.vF(a,0)};e.prototype.vF=function(a,c){this.Qv();var b=new d.Ia(a.description),f=new d.b,h=new d.b,l=new d.b,g=new d.b,u=new d.b,v=new d.b,m=new d.b,w=new d.b,y=a.Ka(c),n=a.wa(c),z=0;for(c=a.Ka(c);za.Ka(c))return null;if(this.QH(a,c)&&0a?c=4:c=2*Math.PI/Math.acos(a)+.5;4>c?c=4:c>this.sr&&(c=this.sr);return d.J.truncate(c)};e.prototype.WE=function(a,c,b,e,f){this.Qv();var h=new d.b;h.zc(b,c);h.scale(this.ww);var l=new d.b;l.zc(e,c);l.scale(this.ww);h=Math.atan2(h.y,h.x)/this.VA;0>h&&(h=this.Wd.length+h);h=this.Wd.length-h;l=Math.atan2(l.y,l.x)/this.VA;0>l&&(l=this.Wd.length+l);l=this.Wd.length-l;lh.D(l)){if(0>f)return 1;f=a;h=new d.Wa;f.Ae(f.wa(c),h);this.hv(b,h);return 1}var k=h.Aa(h.cb(h.Pb(l))),r=new d.Hd; r.Ag(-k.x,-k.y);h.Xc(r);if(e&&(this.nS(h,l,f),2>h.D(l))){if(0>f)return 1;f=a;h=new d.Wa;f.Ae(f.wa(c),h);this.hv(b,h);return 1}this.te.length=0;var t=h.Pb(l);c=h.cb(t);var m=1==f?h.Ra(c):h.U(c);a=1==f?h.U(c):h.Ra(c);var y=!0;e=new d.b;for(var l=new d.b,n=new d.b,z=new d.b,B=new d.b,A=new d.b,C=new d.b,E=new d.b,F=new d.b,G=new d.b,H=this.vb,t=h.Ka(t),J=0;Jm||0>y&&0==m?this.te.push(g.Dv(z,B,e,2,this.te.length+1,this.te.length-1)):z.ub(B)||(this.te.push(g.pa(z,e,this.te.length+1,this.te.length-1,"dummy")),this.te.push(g.pa(e,B,this.te.length+1,this.te.length-1,"dummy"))),A.add(l,F),this.te.push(g.Dv(B,A,e,1,this.te.length+1,this.te.length-1)),z.L(A),G.L(F),n.L(e),e.L(l),E.L(C),m=c,c=a,y=!1,a=1==f?h.U(c):h.Ra(c);this.te[this.te.length-1].Nh=0;this.te[0].Qh=this.te.length-1;this.PW(b);r.Ag(k.x,k.y);b.jF(r,b.aa()-1);return 1};e.prototype.PW= function(a){for(var c=this.BQ(),b=!0,e=c+1,f=c;e!=c;f=e){var d=this.te[f],e=-1!=d.Nh?d.Nh:(f+1)%this.te.length;0!=d.qp&&(b&&a.yu(d.vn),2==d.qp?this.WE(a,d.Nw,d.vn,d.Jn,!0):a.aj(d.Jn),b=!1)}};e.prototype.BQ=function(){null==this.Et&&(this.Et=[null,null,null,null,null,null,null,null,null]);for(var a=0,c=0,b=this.te.length;c=this.vb)return!0}return!1};e.prototype.nS=function(a,c,b){for(var e=0;1>e;e++){var f= !1,h=a.Pb(c),l=a.Ka(h);if(0==l)break;var k=l;if(3>l)break;!a.Qb(h)&&(k=l-1);for(var h=a.cb(h),l=0L||0>I&&0==L||!this.rw(z,y,n)||(C.L(n),R=!1,++K,f=!0);if(R){if(0.5*this.Xk?(A.add(z,y),A.scale(.5),G.normalize(),G.Tr(),H.L(G),H.scale(J-K),A.add(H),a.Qf(l,A)):a.td(l,!0);K=0}z.L(y);m=h}y.L(n);l=h;h=g;g=0c)return this.cr=!1,a;this.cr=!0;return d.Dg.ol(a,this.Ut,!1,!0,this.lc)};e.prototype.hv=function(a,c){c=c.w();if(null!=this.Wd&&0!==this.Wd.length){var b=new d.b;b.L(this.Wd[0]);b.qu(this.vb,c);a.yu(b);for(var e=1,f=this.Wd.length;e=c?1:-1;case 1:if(b.A=c?1:-1;case 2:if(b.o>=c&&b.v>c)break;else return b.v<=c?1:-1;case 3:if(!(b.A>=c&&b.B>c))return b.B<=c?1:-1}return 0};g.prototype.gz=function(b,a,c){return 1736==b.G()?this.hz(b,a,c):this.iz(b,a)};g.prototype.hz=function(b,a,c){if(0==this.Ga.N()||0==this.Ga.fa())return b.Ja();a=new d.h;b.ac(a);this.Y=this.a.Jb(b);var e=new d.h,f=new d.h,h=new d.b,l=new d.b,k=[0,0,0,0,0,0,0,0,0],r=[0,0,0,0,0,0,0,0,0];new d.Cg;var g= new d.Hb,p=new d.ia(0);p.yb(Math.min(100,b.D()));for(var q=!1,u=0;!q&&4>u;u++){var v=!1,m=0!=(u&1),w=0;switch(u){case 0:w=this.Ga.o;v=a.o<=w&&a.v>=w;break;case 1:w=this.Ga.A;v=a.A<=w&&a.B>=w;break;case 2:w=this.Ga.v;v=a.o<=w&&a.v>=w;break;case 3:w=this.Ga.B,v=a.A<=w&&a.B>=w}if(v)for(q=!0,v=this.a.Pb(this.Y);-1!=v;){var y=-1,n=-1,z=this.a.cb(v),B=z;do{var A=this.a.ic(B);null==A&&(A=g,this.a.w(B,h),A.Mc(h),this.a.w(this.a.U(B),l),A.Zc(l));A.s(e);var C=this.ji(e,u,w),E=0,F=-1;if(-1==C){A=A.Sq(m,w,k, r);0this.a.Ka(v)?this.a.Qr(v):this.a.Sb(v)}}if(q)return b.Ja();this.eC();0r;r++){var g= !1,p=0!=(r&1),q=0;switch(r){case 0:q=this.Ga.o;g=k.o<=q&&k.v>=q;break;case 1:q=this.Ga.A;g=k.A<=q&&k.B>=q;break;case 2:q=this.Ga.v;g=k.o<=q&&k.v>=q;break;case 3:q=this.Ga.B,g=k.A<=q&&k.B>=q}if(g){g=l;l=b.Ja();g=g.Da();g.yj();for(var u,v=new d.b;g.Ya();)for(var m,w=!0;g.Ca();){var y=g.ba();y.s(a);var n=this.ji(a,r,q);if(-1==n){if(n=y.Sq(p,q,e,f),0=r))){for(var g=1;gf.size)){var p=this;f.Gd(0,f.size,function(a,c){return p.ki(a,c)});c=new d.b;h=new d.b;l=new d.b;h.$c();for(var q=-1,k=new d.ia(0),r=new d.ia(0),g=this.a.Vd(),u=this.a.Vd(),v=0,m=f.size;vthis.ki(q,n)&&(this.a.w(n,c),b?c.y==a:c.x==a)&&(k.add(q),z=!0,this.a.Va(q,u,1));0>this.ki(q,w)&&(this.a.w(w,c),b?c.y==a:c.x==a)&&(z||k.add(q),this.a.Va(q,g,1))}y=0;for(z=k.size;ythis.ki(m,y)&&(this.a.w(y,k),b?k.y==a:k.x==a)&&(w=y);var y=-1,n=this.a.Ra(m);0>this.ki(m,n)&&(this.a.w(n,k),b?k.y==a:k.x==a)&&(y=n);if(-1!=w&&-1!=y)this.ii(m,e,f),this.a.td(m,!1),this.ii(w,e,f),this.a.td(w,!1),p=!0;else if(-1!=w||-1!=y){for(n=v+1;nthis.ki(z,B)&&(this.a.w(B,k),b?k.y==a:k.x==a)&&(A=B);var B=this.a.Ra(z),C=-1;0>this.ki(z,B)&&(this.a.w(B,k),b?k.y==a:k.x==a)&&(C=B);if(-1!=A&&-1!=C){this.ii(z,e, f);this.a.td(z,!1);this.ii(A,e,f);this.a.td(A,!1);p=!0;break}if(-1!=w&&-1!=C){this.nu(e,m,w,z,C,f);p=!0;break}else if(-1!=y&&-1!=A){this.nu(e,z,A,m,y,f);p=!0;break}}}if(p)break}}}if(!p)break}q=h;r.L(c)}}this.a.ke(f)};g.prototype.ii=function(b,a,c){c=this.a.Sa(b,c);a.set(c,-1);c=this.a.Sa(b,this.Ki);this.od.set(c,-1);a=this.a.ld(b);-1!=a&&this.a.cb(a)==b&&(this.a.jg(a,-1),this.a.sh(a,-1))};g.prototype.nu=function(b,a,c,e,f,d){this.a.Kc(a,e);this.a.Lc(e,a);this.a.Lc(c,f);this.a.Kc(f,c);this.ii(e,b, d);this.a.Mi(e,!1);this.ii(f,b,d);this.a.Mi(f,!0)};g.prototype.Bz=function(){for(var b=0,a=this.od.size;b=k?(c=this.a.Sa(l,this.Ki),this.od.set(c,-1),l=this.a.td(l,!1),2==k&&(c=this.a.Sa(l,this.Ki),this.od.set(c,-1),this.a.td(l,!1)),k=d,d=this.a.Sb(d), this.a.jg(k,-1),this.a.Rr(k)):(this.a.Np(d,!1),this.a.sh(d,this.a.Ra(l)),this.a.mk(d,k),f+=k,e++,d=this.a.Sb(d))}}b=0;for(a=this.od.size;b=k?(c=this.a.Sa(l,this.Ki),this.od.set(c,-1),l=this.a.td(l,!1),2==k&&(c=this.a.Sa(l,this.Ki),0<=c&&this.od.set(c,-1),this.a.td(l,!1)),k=d,this.a.jg(k,-1),this.a.Rr(k)):(this.a.ao(d,!0),this.a.mk(d,k),this.a.jg(d,l),this.a.sh(d, this.a.Ra(l)),this.a.Np(d,!1),f+=k,e++)}this.a.wm(this.Y,e);this.a.kk(this.Y,f);b=0;for(a=this.a.rd;-1!=a;a=this.a.Ue(a))b+=this.a.D(a);this.a.yC(b)};g.Im=function(b,a,c,e){return(new g(a)).gz(b,c,e)};g.clip=function(b,a,c,e){if(b.u())return b;if(a.u())return b.Ja();var f=b.G();if(33==f)return c=b.w(),a.contains(c)?b:b.Ja();if(197==f)return c=new d.h,b.s(c),c.Ma(a)?(a=new d.ci,b.copyTo(a),a.Gp(c),a):b.Ja();var h=new d.h;b.ac(h);if(a.contains(h))return b;if(!a.Yb(h))return b.Ja();h=b.ob;if(null!=h&& (h=h.Hi,null!=h)){h=h.Sn(a);if(1==h){if(1736!=f)throw d.f.ya();b=new d.Ia(b.description);b.oq(a);return b}if(0==h)return b.Ja()}switch(f){case 550:e=null;for(var f=b.D(),h=b.Pa(0),l=0,k=0;k=c?1:-1;case 1:if(b.A=c?1:-1;case 2:if(b.o>=c&&b.v>c)break;else return b.v<=c?1:-1;case 3:if(!(b.A>=c&&b.B>c))return b.B<=c?1:-1}return 0};g.prototype.gz=function(b,a,c){return 1736==b.G()?this.hz(b,a,c):this.iz(b,a)};g.prototype.hz=function(b,a,c){if(0==this.Ga.N()||0== this.Ga.fa())return b.Ja();a=new d.h;b.ac(a);this.Y=this.a.Jb(b);var e=new d.h,f=new d.h,h=new d.b,l=new d.b,k=[0,0,0,0,0,0,0,0,0],r=[0,0,0,0,0,0,0,0,0],g=new d.Hb,p=new d.ia(0);p.yb(256);for(var q=!1,u=0;!q&&4>u;u++){var v=!1,m=0!=(u&1),w=0;switch(u){case 0:w=this.Ga.o;v=a.o<=w&&a.v>=w;break;case 1:w=this.Ga.A;v=a.A<=w&&a.B>=w;break;case 2:w=this.Ga.v;v=a.o<=w&&a.v>=w;break;case 3:w=this.Ga.B,v=a.A<=w&&a.B>=w}if(v)for(q=!0,v=this.a.Pb(this.Y);-1!=v;){var y=!0,n=-1,z=-1,B=this.a.cb(v),A=B;do{var C= this.a.ic(A);null==C&&(C=g,this.a.w(A,h),C.Mc(h),this.a.w(this.a.U(A),l),C.Zc(l));C.s(e);var E=this.ji(e,u,w),F=0,G=-1;if(-1==E){C=C.Sq(m,w,k,r);0u;u++){var v=!1,m=0!=(u&1),w=0;switch(u){case 0:w=this.Ga.o;v=k.o<=w&&k.v>=w;break;case 1:w=this.Ga.A;v=k.A<=w&&k.B>=w;break;case 2:w=this.Ga.v;v=k.o<=w&&k.v>=w;break;case 3:w=this.Ga.B,v=k.A<=w&&k.B>=w}if(v)for(v=l,l=b.Ja(),v= v.Da(),v.yj();v.Ya();)for(var y,n=!0;v.Ca();){var z=v.ba();z.s(a);var B=this.ji(a,u,w);if(-1==B){if(B=z.Sq(m,w,e,f),0e.x&&(e.x+=b)}else q=a.y-this.Ga.A,f.y=d.Ub.sign(c.y-a.y),e.y=b*d.Ub.Fl(Math.floor(Math.abs(q/b)),q)+this.Ga.A,0>e.y&&(e.y+=b);var q=0!=p?c.y-a.y:c.x-a.x,u=Math.abs(q);if(65536=m||(h[u]=m,u++)}0!=u&&this.a.zm(r,h,u)}}r=g}while(r!=k)}};g.prototype.Am=function(b,a){for(var c=-1,e=new d.b,f=null,h=this.a.Pb(this.Y);-1!=h;h=this.a.Sb(h))for(var l=this.a.cb(h),k=0,r=this.a.Ka(h);kf.size)){var p=this;f.Gd(0,f.size,function(a,c){return p.ki(a,c)});c=new d.b;h=new d.b;l=new d.b;h.$c();for(var q=-1,k=new d.ia(0),r=new d.ia(0),g=null,u=this.a.Vd(),v=this.a.Vd(),m=0,w=f.size;mh.compare(c)&&(b?c.y==a:c.x==a)&&(k.add(q),B=!0,this.a.Va(q,v,1));this.a.w(y,c);0>h.compare(c)&& (b?c.y==a:c.x==a)&&(B||k.add(q),this.a.Va(q,u,1))}n=0;for(B=k.size;nr.compare(k)&&(b?k.y==a:k.x==a)&&(w=y);var y=-1,n=this.a.Ra(m);this.a.w(n, k);0>r.compare(k)&&(b?k.y==a:k.x==a)&&(y=n);if(-1!=w&&-1!=y)this.ii(m,e,f),this.a.td(m,!1),this.ii(w,e,f),this.a.td(w,!1),p=!0;else if(-1!=w||-1!=y){for(n=v+1;nr.compare(k)&&(b?k.y==a:k.x==a)&&(A=B);var B=this.a.Ra(z),C=-1;this.a.w(B,k);0>r.compare(k)&&(b?k.y==a:k.x==a)&&(C=B);if(-1!=A&&-1!=C){this.ii(z,e,f);this.a.td(z,!1);this.ii(A,e,f);this.a.td(A,!1);p=!0;break}if(-1!=w&&-1!=C){this.nu(e,m,w,z,C,f);p=!0;break}else if(-1!= y&&-1!=A){this.nu(e,z,A,m,y,f);p=!0;break}}}if(p)break}}}if(!p)break}q=h;r.L(c)}this.a.ke(f)}};g.prototype.ii=function(b,a,c){c=this.a.Sa(b,c);a.set(c,-1);c=this.a.Sa(b,this.Ki);this.od.set(c,-1);a=this.a.ld(b);-1!=a&&this.a.cb(a)==b&&(this.a.jg(a,-1),this.a.sh(a,-1))};g.prototype.nu=function(b,a,c,e,f,d){this.a.Kc(a,e);this.a.Lc(e,a);this.a.Lc(c,f);this.a.Kc(f,c);this.ii(e,b,d);this.a.Mi(e,!1);this.ii(f,b,d);this.a.Mi(f,!0)};g.prototype.Bz=function(){for(var b=0,a=this.od.size;b=k?(c=this.a.Sa(l,this.Ki),this.od.set(c, -1),l=this.a.td(l,!1),2==k&&(c=this.a.Sa(l,this.Ki),0<=c&&this.od.set(c,-1),this.a.td(l,!1)),k=d,this.a.jg(k,-1),this.a.Rr(k)):(this.a.ao(d,!0),this.a.mk(d,k),this.a.jg(d,l),this.a.sh(d,this.a.Ra(l)),this.a.Np(d,!1),f+=k,e++)}this.a.wm(this.Y,e);this.a.kk(this.Y,f);b=0;for(a=this.a.rd;-1!=a;a=this.a.Ue(a))b+=this.a.D(a);this.a.yC(b)};g.We=function(b,a,c,e,f){return(new g(a,f)).gz(b,c,e)};g.clip=function(b,a,c,e,f){return g.rq(b,a,null,c,e,f)};g.rq=function(b,a,c,e,f,h){var l=b.G();if(33==l)return f= b.w(),a.contains(f)?b:b.Ja();if(197==l)return f=new d.h,b.s(f),f.Ma(a)?(a=new d.ci,b.copyTo(a),a.Gp(f),a):b.Ja();if(b.u())return b;if(a.u())return b.Ja();var k=new d.h;b.ac(k);if(a.contains(k))return b;if(!a.Yb(k))return b.Ja();if(null!=c||isNaN(e))e=d.ma.Yy(c,a,!1);if(!d.T.gh(l))throw d.f.F();c=b.ob;if(null!=c&&(c=c.Hi,null!=c)){c=c.Sn(a);if(1==c){if(1736!=l)throw d.f.X("internal error");b=new d.Ia(b.description);b.oq(a);return b}if(0==c)return b.Ja()}switch(l){case 550:h=null;l=b.D();e=b.Pa(0); c=0;f=new d.b;for(k=0;k=k;k+=1)for(var r=0;1>=r;r+=1){var g=a.uH(h+k,l+r),p=this.cm.gT(g);-1!=p&&(this.dr[e]=p,this.st[e]=g,e++)}for(h=e-1;1<=h;h--)for(p=this.dr[h], l=h-1;0<=l;l--)if(p==this.dr[l]){this.st[l]=-1;e--;h!=e&&(this.st[h]=this.st[e],this.dr[h]=this.dr[e]);break}for(l=0;la.tb())throw d.f.F(); if(0==c||a.u())return a;p=new e(p);p.Yo=a;p.Qa=c;p.ta=g;p.jj=b;p.hB=f;return p.zy()};e.prototype.yO=function(){var a=this.Yo,c=a.ec(),b=a.Cc(),e=new d.b;e.zc(b,c);e.normalize();e.tw();e.scale(this.Qa);c.add(e);b.add(e);e=a.Ja();a.Mc(c);a.Zc(b);return e};e.prototype.xO=function(){var a=this.Yo;if(0l&&(0this.Qa?-m:m;-1w&&(y=2*Math.acos(w),.017453292519943295>y&&(y=.017453292519943295),t=d.J.truncate(m/y+1.5),1w&&(y=2*Math.acos(w),.017453292519943295>y&&(y=.017453292519943295),t=d.J.truncate(Math.abs(p)/y+1.5),1p?(w=.5*(f-e),w=this.Qa/Math.abs(Math.sin(w)),e=a.ce(r,w,.5*(e+f)),f=d.b.pa(e.x,e.y),e=d.b.pa(r.x,r.y),r=new d.b,r.zc(f, e),f=new d.b,f.DX(p/r.length(),r,e),e=(t-p)*Math.abs(this.Qa)/Math.sqrt(t*t-this.Qa*this.Qa),0e&&(f-=g),t=e-fw?e+.25*m:e+.75*m,e=a.ce(r,w,y),this.pc(e,c),y=0>w?f-.25*m:f-.75*m,e=a.ce(r,w,y),this.pc(e)):(w=.5*(f- e),w=this.Qa/Math.abs(Math.sin(w)),fc))for(var b=0;b=f+1;b--)e=a.El(c.Aa(b)),e.type|=1024,this.Sg.push(e);if(this.yF())if(2<=this.$b.length){c=-1;(d=0!=(this.$b[this.Kf-1].type&1024))||(c=0);for(b=1;b=Math.min(b.x,e.x)&&Math.max(b.x,e.x)>=Math.min(a.x,c.x)&&Math.max(a.y,c.y)>=Math.min(b.y,e.y)&&Math.max(b.y,e.y)>=Math.min(a.y,c.y)};e.prototype.oS=function(c,b,e,f,d){d.nF=!1;var h,l,k;h=(b.y-c.y)*(f.x-e.x)-(b.x-c.x)*(f.y-e.y);l=(e.y-c.y)*(b.x-c.x)-(e.x-c.x)*(b.y-c.y);h=0==h?2:l/h;return 0<= h&&1>=h&&(k=h,h=(f.y-e.y)*(b.x-c.x)-(f.x-e.x)*(b.y-c.y),l=(c.y-e.y)*(f.x-e.x)-(c.x-e.x)*(f.y-e.y),h=0==h?2:l/h,0<=h&&1>=h)?(d.Qn=a.VQ(c.x+h*(b.x-c.x),c.y+h*(b.y-c.y)),d.Qn.ui=e.ui+k*(f.ui-e.ui),0!=k&&1!=k||0!=h&&1!=h||(d.nF=!0),d.N_=h,d.O_=k,(0==k||1==k)&&0h||(0==h||1==h)&&0k?!1:!0):!1};e.prototype.SQ=function(a){for(;this.$b[a].Qhf-e)return!0;b=new d.b;var k=new d.b,r=new d.b;c.fc(e,b);c.fc(e+2,k);c.fc(e+4,r);var g=a.ee(k,r,b);if(g.kt()||!a.uc(g.value()))return!1;for(var p=d.b.pa(k.x,k.y),q=new d.b,e=e+6;ee;e++){a.Fx(e,b);var k=this.zs(b);if(-1!=k){a.ig(e,c);var g=this.a.pc(this.Mt,c);this.Na.jk(k,g)}}};a.prototype.nP=function(a){var c=new d.Wa,b=a.ec(),b=this.zs(b);if(-1!=b){a.Dp(c);var e=this.a.pc(this.Mt,c);this.Na.jk(b, e)}b=a.Cc();b=this.zs(b);-1!=b&&(a.Bp(c),a=this.a.pc(this.Mt,c),this.Na.jk(b,a))};a.prototype.kP=function(a){var c=a.w(),c=this.zs(c);-1!=c&&(a=this.a.pc(this.Mt,a),this.Na.jk(c,a))};a.prototype.zs=function(a){var c=-1;if(0==this.Na.size(-1))return c=this.Na.addElement(-4,-1);if(1==this.Na.size(-1)){var b=this.a.Aa(this.Na.ja(this.Na.xc(-1)));a.vA(b)||(c=this.Na.ro(-5));return c}return c=this.NC(a)};a.prototype.NC=function(c){var b=-1,e=this.Na.xc(-1),l=this.Na.Fc(-1),k=this.Na.ja(e),g=this.Na.ja(l), t=new d.b,p=new d.b;this.wi.w(k,t);this.wi.w(g,p);k=d.b.zp(p,c,t);if(a.uc(k))b=this.Na.ro(-1),t=this.LC(c,l,e),t!=e&&this.MC(c,e,this.Na.Ve(t));else if(a.vl(k)){for(var p=this.Na.ew(-1),q=this.Na.xc(-1),u=this.Na.Fc(-1),v,k=new d.b,g=new d.b;q!=this.Na.Ve(u);)v=this.Na.ja(p),this.wi.w(v,k),v=d.b.zp(k,c,t),a.vl(v)?(u=p,p=this.Na.Pl(p)):(q=p,p=this.Na.Nq(p));p=u;t=q;v=this.Na.ja(p);q=this.Na.ja(t);this.wi.w(v,k);this.wi.w(q,g);if(t==e||(k=d.b.zp(g,c,k),a.uc(k)))b=this.Na.iv(t,p,-2,!1),this.MC(c,p,l), this.LC(c,t,e)}else null==this.wb&&(this.wb=new d.Hb),this.wb.Mc(p),this.wb.Zc(t),t=this.wb.oe(c,!0),0>t?(t=this.Na.Ve(l),this.Na.Ld(l,-1),b=this.Na.ro(-3),this.LC(c,t,e)):1a};a.vl=function(a){return 0< a};a.hq=function(a){return 0==a};return a}();d.Iu=a})(n||(n={}));(function(d){var m=function(){function g(b){this.je=this.a=null;this.EI=!0;this.je=b}g.xJ=function(b,a,c){b=d.ma.Bs(b);return d.Hu.ow(a.Be(),a.nf(),c.Be(),c.nf(),d.Ub.Xx(b))};g.EQ=function(b,a){var c=new d.Wa;d.Hu.UV(b,a,c);return c};g.V=function(b,a,c,e){c=new g(c);c.a=b;c.ta=a;c.EI=e;return c.KO()};g.prototype.EO=function(b){return d.Hu.aS(this.a,b)};g.prototype.HO=function(b){return d.Ju.V(this.a,b,this.je)};g.prototype.KO=function(){for(var b= this.ta,a=d.ma.Bs(b),b=d.ma.qP(b),c=1.00001*b,b=1.000001*b,e=!1,f=30f)throw d.f.X("Internal Error: max number of iterations exceeded");var k=this.EO(a),e=e||k;this.EI&&(k=0!=this.a.zq(a,!0,!1),e=e||k);k=!1;if(0==h||l||d.Ju.sJ(!0,this.a,b,null,this.je))k=this.HO(c),e=e||k;if(!k)break}return e};return g}();d.rk=m})(n||(n={}));(function(d){var m=function(){function b(a){this.we=this.Tc=null;this.jx=0;this.lc=a;this.KA=!0}b.prototype.fw= function(a,c){var b=this.a.ic(a);if(null==b){if(!this.a.pd(a,c))return null;b=c}return b};b.prototype.Or=function(a){void 0===a&&(a=!1);this.jx++;if(a||0==(this.jx&4095))this.jx=0};b.prototype.lR=function(){var a=this.a.Pr(!1),c=!1,b=new d.Hb,f=new d.Hb,h=new d.h;h.Oa();var l=new d.h;l.Oa();for(var k=new d.Wa,g=new d.cE,t=a.next();-1!=t;t=a.next()){var p=null,q=!1;if(!d.T.Jo(this.a.hc(a.Bk))){p=this.fw(t,b);if(null==p)continue;p.s(h);h.O(this.ta,this.ta);if(p.fh(this.ta))if(p.fh(0))q=!0,p=null;else continue}var u= this.a.Pr(a),v=u.next();for(-1!=v&&(v=u.next());-1!=v;v=u.next()){var m=null,w=!1;if(!d.T.Jo(this.a.hc(u.Bk))){m=this.fw(v,f);if(null==m)continue;m.s(l);if(m.fh(this.ta))if(m.fh(0))w=!0,m=null;else continue}var n=0,D=0;if(null!=p&&null!=m)h.SH(l)&&(g.Ap(p),g.Ap(m),g.Ma(this.ta,!1),n=g.Rl(0),D=g.Rl(1),0(nc?1:wb?1:0)&&(g.add(m),g.add(D)));-1!=z&&(c=p.S(z,0),b=q[2*c],c=q[2*c+1],0>(nc?1:wb?1:0)&&(g.add(z),g.add(z)));b=this.a.Sa(m,h);-1!=b&&(k.add(b),this.a.Va(m,h,-1)); b=this.a.Sa(m,l);-1!=b&&(k.add(b),this.a.Va(m,l,-1));m=f.get(t++);-1!==m&&(n=p.S(m,0),w=q[2*n],n=q[2*n+1])}while(-1!=m&&w===u&&n===v);w=1==k.size&&2==g.size;b=n=-1;D=0;for(z=k.size;Da.ud)a=c.lR();else return c.mR(); return a};b.V=function(a,c,e){return b.Hm(a,a.SG(),c,e)};b.sJ=function(a,c,e,f,h){if(!b.Cj(c))return!1;var l=new b(h);l.a=c;l.ta=e;l.KA=a;if(l.tJ())return null!=f&&f.ls(l.mj),!0;var k=new d.Hd;k.wC();c.Xc(k);l=new b(h);l.a=c;l.ta=e;l.KA=a;a=l.tJ();k.wC();c.Xc(k);return a?(null!=f&&f.ls(l.mj),!0):!1};b.qm=function(a,c){a=a.D();return 16>a?!1:2*a+Math.log(a)*Math.LOG10E/Math.log(2)*1*c<1*a*c};b.jR=function(a,c,e,f){if(d.T.Ic(c.G()))return(new b(f)).kR(a,c,e);throw d.f.X("crack_A_with_B");};b.prototype.kR= function(a,c,e){var f=new d.h;a.ac(f);var h=new d.h;c.ac(h);h.O(e,e);if(!h.Yb(f))return a;var l=a.ob,k=null;null!=l&&(k=l.Mb);b.qm(a,a.D())&&(k=d.ma.Lj(a,h));var r=null!=k?k.mf():null,t=c.Da();c=a.Da();for(var p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],h=[];t.Ya();)for(;t.Ca();){var q=t.ba();if(null!=k)for(r.Xn(q,e),l=r.next();-1!=l;l=r.next()){if(this.Or(),c.Tb(k.ja(l),-1),c.Ca())for(var l=c.ba(),u=l.Ma(q,null,p,null,e),l=0;lc.t?1:a.tc.index?1:-1};return b}()})(n||(n={}));(function(d){(function(a){a[a.Left=0]="Left";a[a.Right=1]="Right";a[a.Coincident=2]="Coincident";a[a.Undefined=3]="Undefined";a[a.Uncut=4]="Uncut"})(d.UL||(d.UL={}));var m=function(){return function(a,b,f,d,l,k,g,t,p,q,u){this.Y=a;this.mx=b;this.Ht=f;this.Pg=d;this.zn=q;this.em=u}}();d.FZ=m;var g=function(){function a(a,c){this.XI=a;this.gj=c}a.prototype.GO=function(a,c){var b=new d.b;this.gj.w(a,b);var e=new d.b;this.gj.w(c, e);b=b.compare(e);if(0!=b)return b;b=this.gj.Sa(a,this.XI);e=this.gj.Sa(c,this.XI);return be&&(l=new b(k,l,v[0],NaN,e,t,g,m[0],NaN),h.push(l),l=c.Sa(k,a),0>l&&c.Va(k,a,h.length-1));return!0};a.uZ=function(a,c,h,l,k,g,t){var e,f;f=new d.Hb;var r=new d.Hb,v=[0,0],m=[0,0];e=c.ic(k);null==e&&(c.pd(k,f),e=f);f=c.ic(t);null==f&&(c.pd(t,r),f=r);e=e.Ma(f,null,v,m,0);return 2>e?(l=new b(k,l,v[0],NaN,e,t,g,m[0],NaN),h.push(l),l=c.Sa(k,a),0>l&&c.Va(k,a,h.length-1),!0):!1};a.wZ=function(a,c,h,l,k,g,t,p){var e,f;f=new d.Hb;var r=new d.Hb, m=[0,0],w=[0,0];e=c.ic(k);null==e&&(c.pd(k,f),e=f);f=c.ic(t);null==f&&(c.pd(t,r),f=r);e=e.Ma(f,null,m,w,0);if(2==e)return l=new b(k,l,m[0],m[1],e,t,g,w[0],w[1]),h.push(l),l=c.Sa(k,a),0>l&&c.Va(k,a,h.length-1),!0;r=!1;k==p&&(l=new b(k,l,m[0],NaN,e,t,g,w[0],NaN),h.push(l),l=c.Sa(k,a),0>l&&c.Va(k,a,h.length-1),r=!0);return r};a.FL=function(a,c,h,l,k,g,t,p){var e,f;f=new d.Hb;var r=new d.Hb,m=[0,0],w=[0,0];e=c.ic(k);null==e&&(c.pd(k,f),e=f);f=c.ic(t);null==f&&(c.pd(t,r),f=r);e=e.Ma(f,null,m,w,0);if(2== e)return l=new b(k,l,m[0],m[1],e,t,g,w[0],w[1]),h.push(l),l=c.Sa(k,a),0>l&&c.Va(k,a,h.length-1),!0;r=!1;k==p&&(l=new b(k,l,m[0],NaN,e,t,g,w[0],NaN),h.push(l),l=c.Sa(k,a),0>l&&c.Va(k,a,h.length-1),r=!0);return r};a.sW=function(c,b,h,l){var e,f=[];f[0]=new d.b;f[1]=new d.b;f[2]=new d.b;f[3]=new d.b;var g=new d.b,p=new d.b,q=new d.b,u=new d.b,v=null;null!=l&&(v=new d.Cg,v.Is());var x,w=0,n=null,D=new d.Hb;new d.Hb;for(var z=h.Pb(h.rd);-1!=z;z=h.Sb(z)){var B,A=4,C=-1,E,F,G,H=-1,J,K,S,L,I=-1,R=-1,M=NaN; B=!0;var O=!1,N=!0,Q=!0,Z=!0,T=0;G=z;J=0;for(var P=h.cb(z),X=h.Ka(z),ca=0;ca.01*a&&(b=b.Gb/a,e*=1+(1+b)*b);this.qb=c;this.Gb=e+2.220446049250313E-16*Math.abs(c)};d.prototype.sqrt=function(){var b,a;0<=this.qb?(b=Math.sqrt(this.qb),a=this.qb>10*this.Gb?.5*this.Gb/b:this.qb>this.Gb?b-Math.sqrt(this.qb-this.Gb):Math.max(b,Math.sqrt(this.qb+this.Gb)-b),a+=2.220446049250313E-16* Math.abs(b)):this.qb<-1*this.Gb?a=b=NaN:(b=0,a=Math.sqrt(this.Gb));this.qb=b;this.Gb=a};d.prototype.sin=function(b){var a=Math.sin(b.qb),c=Math.cos(b.qb);this.qb=a;a=Math.abs(a);this.Gb=(Math.abs(c)+.5*a*b.Gb)*b.Gb+2.220446049250313E-16*a};d.prototype.cos=function(b){var a=Math.sin(b.qb),c=Math.cos(b.qb);this.qb=c;c=Math.abs(c);this.Gb=(Math.abs(a)+.5*c*b.Gb)*b.Gb+2.220446049250313E-16*c};d.prototype.Lg=function(){return Math.abs(this.qb)<=this.Gb};d.prototype.kt=function(){return this.Lg()&&0!=this.Gb}; return d}();d.Xb=m})(n||(n={}));var P=new n.b,da=new n.b,fa=new n.b,ga=new n.b,ia=new n.b;(function(d){var m;(function(b){b[b.closedPath=1]="closedPath";b[b.exteriorPath=2]="exteriorPath";b[b.ringAreaValid=4]="ringAreaValid"})(m||(m={}));var g=function(){function b(a,c,b,f,d,l,k){void 0!==c?(this.bb=a,this.Bk=c,this.Gl=b,this.Ji=f,this.Ba=l,this.PA=k,this.Tw=d):(this.bb=a.bb,this.Bk=a.Bk,this.Gl=a.Gl,this.Ji=a.Ji,this.Ba=a.Ba,this.PA=a.PA,this.Tw=a.Tw);this.mI=!0}b.prototype.next=function(){return this.mI? (this.mI=!1,this.Ji):-1!=this.Ji?(this.Ji=this.bb.U(this.Ji),this.Ba++,-1!=this.Ji&&this.Ji!=this.Tw?this.Ji:this.XV()):-1};b.prototype.XV=function(){this.Gl=this.bb.Sb(this.Gl);for(this.Ba=0;-1!=this.Bk;){for(;-1!=this.Gl;this.Gl=this.bb.Sb(this.Gl))if(this.Tw=this.Ji=this.bb.cb(this.Gl),-1!=this.Ji)return this.Ji;this.Bk=this.bb.Ue(this.Bk);if(-1==this.Bk)break;if(!this.PA||d.T.Ic(this.bb.hc(this.Bk)))this.Gl=this.bb.Pb(this.Bk)}return-1};b.wR=function(a,c,e,f,d,l,k){return new b(a,c,e,f,d,l,k)}; return b}();d.LZ=g;m=function(){function b(){this.Xo=this.pn=this.Yk=this.md=this.el=this.jp=this.nj=this.sd=this.Bi=this.ph=this.wf=this.Gr=this.Jr=this.xb=this.nm=null;this.bx=this.rd=-1;this.ud=0;this.NA=!1;this.Gr=this.Jr=this.xb=null}b.prototype.ti=function(a){return null!=this.wf?this.wf[a]:null};b.prototype.th=function(a,c){if(null==this.wf){if(null==c)return;this.wf=[];for(var b=0,f=this.xb.D();b=this.nj.size&&(a=16>c?16:d.J.truncate(3*c/2),this.nj.resize(a),this.jp.resize(a));this.nj.set(c,0);this.jp.set(c,0);return c};b.prototype.CG= function(a){this.sd.kd(a)};b.prototype.Cz=function(a){this.Dd.kd(a);this.ud--};b.prototype.wJ=function(a){null==this.sd&&(this.sd=new d.ad(8),this.Dd=new d.ad(5),this.nj=new d.Sd(0),this.jp=new d.Sd(0));var c=this.Dd.Pe(),b=0<=a?a:c;this.Dd.P(c,0,b);if(0>a){if(b>=this.xb.D()){a=16>b?16:d.J.truncate(3*b/2);this.xb.resize(a);if(null!=this.wf)for(var f=0;fc.Ka(f))){var l=this.Yf(a,-1);this.ao(l,c.Qb(f));for(var k=c.wa(f),g=c.Gc(f);ka.Ka(c))return b;this.nm.Jd(a,a.wa(c),a.Gc(c));this.Jr=this.xb.Pa(0);var f=this.Yf(b,-1);this.ao(f,a.Qb(c)||!0);var h=null!=this.wf&&null!=a.cf,l=a.wa(c);for(c=a.Gc(c);l=c.size&&c.resize(Math.max(d.J.truncate(1.25*a),16),-1);c.write(a,b)};b.prototype.UG=function(a,c){a=this.TG(a);c=this.Yk[c];return at:2>t)?(k=this.Qr(k),e=0q){var u=q;null!=g&&(u=0u){var m=u;null!=g&&(m=0e||h>this.ud-1)throw d.f.F("invalid call");if(e>h&&!this.Qb(a))throw d.f.F("cannot iterate across an open path");for(a=0;c!=b;c=this.U(c))e=this.Za(c),h=this.ti(e),null!=h?a+=h.Rb():(h=this.Za(this.U(c)),a+=this.xb.ws(e,h));return a};b.prototype.Yh=function(a,c){var b=this.Za(a);this.xb.uu(b,c);b=this.ti(b);null!=b&&b.setStart(c);a=this.Ra(a);-1!=a&&(a=this.Za(a),null!=this.ti(a)&&b.setEnd(c))}; b.prototype.wj=function(a,c){a=this.Za(a);this.xb.Ae(a,c)};b.prototype.Qf=function(a,c){this.rb(a,c.x,c.y)};b.prototype.rb=function(a,c,b){var e=this.Za(a);this.xb.rb(e,c,b);e=this.ti(e);null!=e&&e.vC(c,b);a=this.Ra(a);-1!=a&&(a=this.Za(a),null!=this.ti(a)&&e.vm(c,b))};b.prototype.w=function(a,c){this.xb.w(this.Dd.S(a,0),c)};b.prototype.Nc=function(a,c){this.xb.xa[0].fc(2*this.Dd.S(a,0),c)};b.prototype.Aa=function(a){var c=new d.b;this.xb.w(this.Dd.S(a,0),c);return c};b.prototype.oH=function(a,c){this.Jr.fc(2* a,c)};b.prototype.Yc=function(a,c,b){return this.xb.Yc(a,this.Za(c),b)};b.prototype.setAttribute=function(a,c,b,f){this.xb.setAttribute(a,this.Za(c),b,f)};b.prototype.Za=function(a){return this.Dd.S(a,0)};b.prototype.nf=function(a){var c=new d.b;this.w(a,c);return c.y};b.prototype.Tq=function(a,c){a=this.Za(a);c=this.Za(c);var b=this.xb.xa[0].g;return b[2*a]===b[2*c]&&b[2*a+1]===b[2*c+1]};b.prototype.pw=function(a,c){a=this.Za(a);var b=this.xb.xa[0].g;return b[2*a]===c.x&&b[2*a+1]===c.y};b.prototype.pY= function(a,c){1>c&&(c=1);if(null==this.ph){if(1==c)return;this.ph=d.Uc.Vm(this.xb.D(),1)}a=this.Za(a);a>=this.ph.size&&this.ph.resize(a+1,1);this.ph.write(a,c)};b.prototype.nH=function(a){a=this.Za(a);return null==this.ph||a>=this.ph.size?1:this.ph.read(a)};b.prototype.Va=function(a,c,b){c=this.Bi[c];a=this.Za(a);c.sizec?1:ed?1:0})};b.prototype.cU=function(){for(var a=this.rd;-1!=a;a=this.Ue(a))if(!d.T.Ic(this.hc(a)))return!0; return!1};b.prototype.DC=function(a,c){for(var b=this.Pb(a),f=this.Pb(c),d=this.Wv(a),l=this.Wv(c),k=this.Pb(a);-1!=k;k=this.Sb(k))this.Qx(k,c);for(k=this.Pb(c);-1!=k;k=this.Sb(k))this.Qx(k,a);this.Ip(a,f);this.Ip(c,b);this.Jp(a,l);this.Jp(c,d);b=this.D(a);f=this.aa(a);d=this.aa(c);this.kk(a,this.D(c));this.kk(c,b);this.wm(a,d);this.wm(c,f);b=this.md.S(a,2);this.md.P(a,2,this.md.S(c,2));this.md.P(c,2,b)};return b}();d.fd=m})(n||(n={}));(function(d){var m=function(g){function b(a,c,b,f){g.call(this); this.R=new d.h;void 0===a?this.ZF():"number"===typeof a?this.XQ(a,c,b,f):a instanceof d.Wa?void 0!==c?this.Dv(a,c,b):this.YQ(a):a instanceof d.na?void 0!==c?this.$Q(a,c):this.ZQ(a):a instanceof d.h?this.WQ(a):this.ZF()}O(b,g);b.prototype.Dv=function(a,c,b){this.description=d.ye.Ig();this.R.Oa();a.u()||this.bv(a,c,b)};b.prototype.WQ=function(a){this.description=d.ye.Ig();this.R.I(a);this.R.normalize()};b.prototype.ZQ=function(a){if(null==a)throw d.f.F();this.description=a;this.R.Oa()};b.prototype.$Q= function(a,c){if(null==a)throw d.f.F();this.description=a;this.R.I(c);this.R.normalize()};b.prototype.ZF=function(){this.description=d.ye.Ig();this.R.Oa()};b.prototype.YQ=function(a){this.description=d.ye.Ig();this.R.Oa();a.u()||this.bv(a)};b.prototype.XQ=function(a,c,b,f){this.description=d.ye.Ig();this.I(a,c,b,f)};b.prototype.I=function(a,c,b,f){this.Bc();if("number"===typeof a)this.R.I(a,c,b,f);else for(this.Oa(),c=0,b=a.length;c=d.na.Xa(c))throw d.f.F();var e=this.description.mg(c); this.Xu();return 0<=e?this.la[this.aT(this.description,a)+this.description.DT(e)-2+b]:d.na.pe(c)};b.prototype.Xu=function(){this.Bc();if(null==this.la&&2=d.na.Xa(c))throw d.f.vd();var f=this.description.mg(c);return 0<=f?(this.Xu(),this.la[b.$(this.description,a)+this.description.wk(f)-2+e]):d.na.pe(c)};b.prototype.KE=function(a,c,e,f){this.Bc();if(0==c)0!=a?0!=e?this.R.B=f:this.R.v=f:0!=e?this.R.A=f:this.R.o=f;else{if(e>=d.na.Xa(c))throw d.f.vd();if(!this.hasAttribute(c)){if(d.na.OH(c,f))return;this.Ud(c)}c=this.description.mg(c);this.Xu();this.la[b.$(this.description,a)+this.description.wk(c)-2+e]=f}};b.$=function(a,c){return c*(a.af.length- 2)};b.prototype.Ma=function(a){this.Bc();var c=new d.h;a.s(c);return this.R.Ma(c)};b.prototype.Yb=function(a){return a instanceof d.h?this.R.Yb(a):this.R.Yb(a.R)};b.prototype.wv=function(a,c,b){this.Bc();a.u()?this.Oa():void 0!==c?this.bv(a,c,b):this.R.wv(a.Be(),a.nf())};b.prototype.offset=function(a,c){this.Bc();this.R.offset(a,c)};b.prototype.normalize=function(){this.Bc();this.R.normalize()};b.prototype.Wf=function(a){if(void 0!==a)if(a.Fg(this.description),this.u())a.Oa();else{for(var c=this.description.Ea, b=1;bthis.v&&(this.v=e.x);e.ythis.B&&(this.B=e.y)}}else if(null==b||0==b.length)this.Oa();else for(e=b[0],this.I(e.x,e.y),c=1;cb?this.o=b:this.va?this.A=a:this.Bb?this.o=b:this.va?this.A=a:this.Bthis.v||this.A>this.B)&&this.Oa())}; g.prototype.scale=function(b){0>b&&this.Oa();this.u()||(this.o*=b,this.v*=b,this.A*=b,this.B*=b)};g.prototype.Yb=function(b){return!this.u()&&!b.u()&&(this.o<=b.o?this.v>=b.o:b.v>=this.o)&&(this.A<=b.A?this.B>=b.A:b.B>=this.A)};g.prototype.SH=function(b){return(this.o<=b.o?this.v>=b.o:b.v>=this.o)&&(this.A<=b.A?this.B>=b.A:b.B>=this.A)};g.prototype.Ma=function(b){if(this.u()||b.u())return!1;b.o>this.o&&(this.o=b.o);b.vthis.A&&(this.A=b.A);b.Bb.length)throw d.f.F();null!=b[0]?b[0].ka(this.o,this.A):b[0]=d.b.pa(this.o,this.A);null!=b[1]?b[1].ka(this.o,this.B):b[1]=d.b.pa(this.o,this.B);null!=b[2]?b[2].ka(this.v,this.B):b[2]=d.b.pa(this.v,this.B);null!= b[3]?b[3].ka(this.v,this.A):b[3]=d.b.pa(this.v,this.A)};g.prototype.HG=function(){return this.u()?0:this.N()*this.fa()};g.prototype.YG=function(){return this.u()?0:2*(this.N()+this.fa())};g.prototype.Gk=function(){return(this.v+this.o)/2};g.prototype.Cq=function(){return(this.B+this.A)/2};g.prototype.N=function(){return this.v-this.o};g.prototype.fa=function(){return this.B-this.A};g.prototype.move=function(b,a){this.u()||(this.o+=b,this.A+=a,this.v+=b,this.B+=a)};g.prototype.wv=function(b,a){if(void 0!== a)this.move(b-this.Gk(),a-this.Cq());else if(b instanceof d.b)this.wv(b.x,b.y);else if(b instanceof d.Wa){a=(this.v-this.o)/2;var c=(this.B-this.A)/2;this.o=b.Be()-a;this.v=b.Be()+a;this.A=b.nf()-c;this.B=b.nf()+c}else throw d.f.F();};g.prototype.offset=function(b,a){this.o+=b;this.v+=b;this.A+=a;this.B+=a};g.prototype.normalize=function(){if(!this.u()){var b=Math.min(this.o,this.v),a=Math.max(this.o,this.v);this.o=b;this.v=a;b=Math.min(this.A,this.B);a=Math.max(this.A,this.B);this.A=b;this.B=a}}; g.prototype.Un=function(b){b.ka(this.o,this.A)};g.prototype.SJ=function(b){b.ka(this.v,this.A)};g.prototype.VJ=function(b){b.ka(this.o,this.B)};g.prototype.Vn=function(b){b.ka(this.v,this.B)};g.prototype.YU=function(){return this.u()||this.o<=this.v&&this.A<=this.B};g.prototype.Wf=function(){return d.b.pa((this.v+this.o)/2,(this.B+this.A)/2)};g.prototype.Xz=function(){return d.b.pa(this.o,this.A)};g.prototype.contains=function(b,a){if(void 0!==a)return b>=this.o&&b<=this.v&&a>=this.A&&a<=this.B;if(b instanceof d.Wa)return this.contains(b.Be(),b.nf());if(b instanceof d.b)return this.contains(b.x,b.y);if(b instanceof g)return b.o>=this.o&&b.v<=this.v&&b.A>=this.A&&b.B<=this.B;throw d.f.F();};g.prototype.Um=function(b,a){if(void 0!==a)return b>this.o&&bthis.A&&athis.o&&b.vthis.A&&b.B>>32),a=d.J.dh(b),b=this.v,b=d.J.truncate(b^b>>>32),a=d.J.dh(b,a),b=this.A,b=d.J.truncate(b^b>>>32),a=d.J.dh(b,a),b=this.B,b=d.J.truncate(b^b>>>32);return a=d.J.dh(b,a)};g.prototype.My=function(b){var a=new d.b;a.L(b);if(a.Gy())return a;if(this.u())return a.cv(),a;a.xthis.v&&(a.x=this.v);a.ythis.B&&(a.y=this.B);if(!a.Eb(b))return a;b=this.Wf();(a.xl?0!=(c&g.bd)?(0!=(c&g.Bb)?(b.y+=l*(this.o-b.x)/d,b.x=this.o):(b.y+=l*(this.v-b.x)/d,b.x=this.v),c=this.vk(b)):0!=(e&g.bd)?(0!=(e&g.Bb)?(a.y+=l*(this.o-a.x)/d,a.x=this.o):(a.y+=l*(this.v-a.x)/d,a.x=this.v),e=this.vk(a)):0!=c?(0!= (c&g.uc)?(b.x+=d*(this.A-b.y)/l,b.y=this.A):(b.x+=d*(this.B-b.y)/l,b.y=this.B),c=this.vk(b)):(0!=(e&g.uc)?(a.x+=d*(this.A-a.y)/l,a.y=this.A):(a.x+=d*(this.B-a.y)/l,a.y=this.B),e=this.vk(a)):0!=(c&g.ee)?(0!=(c&g.uc)?(b.x+=d*(this.A-b.y)/l,b.y=this.A):(b.x+=d*(this.B-b.y)/l,b.y=this.B),c=this.vk(b)):0!=(e&g.ee)?(0!=(e&g.uc)?(a.x+=d*(this.A-a.y)/l,a.y=this.A):(a.x+=d*(this.B-a.y)/l,a.y=this.B),e=this.vk(a)):0!=c?(0!=(c&g.Bb)?(b.y+=l*(this.o-b.x)/d,b.x=this.o):(b.y+=l*(this.v-b.x)/d,b.x=this.v),c=this.vk(b)): (0!=(e&g.Bb)?(a.y+=l*(this.o-a.x)/d,a.x=this.o):(a.y+=l*(this.v-a.x)/d,a.x=this.v),e=this.vk(a));if(0!=(c&e))return 0}while(0!=(c|e));return f};g.prototype.vk=function(b){return(b.xthis.v?1:0)<<1|(b.ythis.B?1:0)<<3};g.prototype.fh=function(b){return!this.u()&&(this.N()<=b||this.fa()<=b)};g.prototype.Cb=function(b){return b instanceof d.b?Math.sqrt(this.YK(b)):Math.sqrt(this.Yx(b))};g.prototype.Yx=function(b){var a=0,c=0,e;e=this.o-b.v;e>a&&(a=e);e=this.A-b.B; e>c&&(c=e);e=b.o-this.v;e>a&&(a=e);e=b.A-this.B;e>c&&(c=e);return a*a+c*c};g.prototype.YK=function(b){var a=0,c=0,e;e=this.o-b.x;e>a&&(a=e);e=this.A-b.y;e>c&&(c=e);e=b.x-this.v;e>a&&(a=e);e=b.y-this.B;e>c&&(c=e);return a*a+c*c};g.prototype.Tn=function(b){this.u()?b.Oa():b.I(this.o,this.v)};g.BO=function(b,a,c,e){var f=1;isNaN(b)||(f+=Math.abs(b));isNaN(a)||(f+=Math.abs(a));isNaN(c)||(f+=Math.abs(c));isNaN(e)||(f+=Math.abs(e));return 2.220446049250313E-14*f};g.Bb=1;g.uc=4;g.bd=3;g.ee=12;return g}(); d.h=m})(n||(n={}));(function(d){var m;(function(b){b[b.initialize=0]="initialize";b[b.initializeRed=1]="initializeRed";b[b.initializeBlue=2]="initializeBlue";b[b.initializeRedBlue=3]="initializeRedBlue";b[b.sweep=4]="sweep";b[b.sweepBruteForce=5]="sweepBruteForce";b[b.sweepRedBlueBruteForce=6]="sweepRedBlueBruteForce";b[b.sweepRedBlue=7]="sweepRedBlue";b[b.sweepRed=8]="sweepRed";b[b.sweepBlue=9]="sweepBlue";b[b.iterate=10]="iterate";b[b.iterateRed=11]="iterateRed";b[b.iterateBlue=12]="iterateBlue"; b[b.iterateBruteForce=13]="iterateBruteForce";b[b.iterateRedBlueBruteForce=14]="iterateRedBlueBruteForce";b[b.resetRed=15]="resetRed";b[b.resetBlue=16]="resetBlue"})(m||(m={}));var g=function(){function b(a,c){this.Ci=a;this.oI=c}b.prototype.gs=function(a,c,b){this.Ci.CY(b,a,c,this.oI)};b.prototype.Qq=function(a){return this.Ci.Ls(a,this.oI)};return b}();m=function(){function b(){this.$w=this.bp=this.If=this.Bd=null;this.kr=new d.h;this.pn=this.bk=this.ck=this.Rd=this.fg=this.Yd=this.Pw=this.Uo=this.Ad= this.Lb=null;this.Zb=-1;this.ta=0;this.ql()}b.prototype.bs=function(){this.ql();this.Aw=!0;null==this.Lb?(this.Uo=new d.ia(0),this.Lb=[]):(this.Uo.yf(0),this.Lb.length=0)};b.prototype.jd=function(a,c){if(!this.Aw)throw d.f.La();var b=new d.h;b.I(c);this.Uo.add(a);this.Lb.push(b)};b.prototype.yq=function(){if(!this.Aw)throw d.f.La();this.Aw=!1;null!=this.Lb&&0this.Lb.length)return this.Ne=this.Lb.length,this.Zb=5,!0;null==this.Bd&&(this.Bd=new d.ms(!0),this.bp=this.Bd.mf(),this.Yd=new d.ia(0));this.Bd.bs();for(var a=0;athis.Lb.length||10>this.Ad.length)return this.Ne=this.Lb.length,this.Zb=6,!0;null==this.Bd&&(this.Bd=new d.ms(!0),this.bp=this.Bd.mf(),this.Yd=new d.ia(0));this.Bd.bs();for(var a=0;athis.Lb.length||10>this.Ad.length)return this.Ne=this.Lb.length,this.Zb=6,!0;null==this.If&&(this.If=new d.ms(!0),this.$w=this.If.mf(),this.fg=new d.ia(0));this.If.bs();for(var a=0;athis.Lb.length||10>this.Ad.length)return this.Ne=this.Lb.length,this.Zb=6,!0;null==this.Bd&&(this.Bd=new d.ms(!0),this.bp=this.Bd.mf(),this.Yd=new d.ia(0));null==this.If&&(this.If=new d.ms(!0),this.$w=this.If.mf(),this.fg=new d.ia(0)); this.Bd.bs();for(var a=0;a>1;if(b.Hm(a))return this.Bd.remove(c),0==this.Ne?(this.bg=this.sg=-1,this.Pc=!0,!1):!0;this.bp.cC(this.Lb[c].o,this.Lb[c].v,this.ta);this.sg=c;this.Zb=10;return!0};b.prototype.IY=function(){if(-1==--this.Ne)return this.bg=this.sg=-1,this.Pc=!0,!1;this.nh=this.sg=this.Ne;this.Zb=13;return!0};b.prototype.JY=function(){if(-1==--this.Ne)return this.bg= this.sg=-1,this.Pc=!0,!1;this.sg=this.Ne;this.nh=this.Ad.length;this.Zb=14;return!0};b.prototype.KY=function(){var a=this.Yd.get(this.Ne-1),c=this.fg.get(this.nh-1),e=this.Ls(a,!0),f=this.Ls(c,!1);return e>f?this.ay():e>1;if(b.Hm(a))return-1!=this.eg&&-1!=this.ck.get(c)?(this.Rd.kd(this.eg,this.ck.get(c)),this.ck.set(c,-1)):this.Bd.remove(c),0==this.Ne?(this.bg=this.sg=-1,this.Pc= !0,!1):!0;if(-1!=this.dg&&0>1;if(b.Hm(a))return-1!=this.dg&&-1!=this.bk.get(c)?(this.Rd.kd(this.dg,this.bk.get(c)),this.bk.set(c,-1)):this.If.remove(c),0==this.nh?(this.bg=this.sg=-1,this.Pc=!0,!1):!0;if(-1!=this.eg&&0>1;this.Bd.eh(a);this.Zb=4;return!0};b.prototype.bV=function(){this.sg=this.bp.next();if(-1!=this.sg)return!1;this.bg=this.sg=-1;var a=this.fg.get(this.nh)>>1;this.If.eh(a);this.Zb=7;return!0};b.prototype.ZU= function(){this.bg=this.$w.next();if(-1!=this.bg)return!1;var a=this.Yd.get(this.Ne)>>1;this.Bd.eh(a);this.Zb=7;return!0};b.prototype.$U=function(){if(-1==--this.nh)return this.Zb=5,!0;this.kr.I(this.Lb[this.Ne]);var a=this.Lb[this.nh];this.kr.O(this.ta,this.ta);return this.kr.Yb(a)?(this.bg=this.nh,!1):!0};b.prototype.aV=function(){if(-1==--this.nh)return this.Zb=6,!0;this.kr.I(this.Lb[this.Ne]);var a=this.Ad[this.nh];this.kr.O(this.ta,this.ta);return this.kr.Yb(a)?(this.bg=this.nh,!1):!0};b.prototype.ZJ= function(){if(null==this.Bd)return this.Pc=!0,!1;this.Ne=this.Yd.size;0>1],e=b.Hm(a)?c.A-e:c.B+e;c=this.Ad[a>>1];return e=b.Hm(a)?c.A-e:c.B+e};return b}();d.eD=m})(n||(n={}));(function(d){var m=function(){function g(){}g.pa=function(b,a,c,e,f,d){var h=new g;h.o=b;h.A=a;h.Bf=c;h.v=e;h.B=f;h.$g=d;return h};g.prototype.Oa=function(){this.Bf=this.o=NaN};g.prototype.u=function(){return isNaN(this.o)}; g.prototype.PU=function(){return isNaN(this.Bf)};g.prototype.I=function(b,a,c,e,f,d){void 0!==e?"number"===typeof b?(this.o=b,this.A=a,this.Bf=c,this.v=e,this.B=f,this.$g=d):(this.o=b.x-.5*a,this.v=this.o+a,this.A=b.y-.5*c,this.B=this.A+c,this.Bf=b.z-.5*e,this.$g=this.Bf+e):(this.o=b,this.A=a,this.Bf=c,this.v=b,this.B=a,this.$g=c)};g.prototype.move=function(b){this.o+=b.x;this.A+=b.y;this.Bf+=b.z;this.v+=b.x;this.B+=b.y;this.$g+=b.z};g.prototype.copyTo=function(b){b.o=this.o;b.A=this.A;b.v=this.v; b.B=this.B};g.prototype.ml=function(b,a,c){this.o>b?this.o=b:this.va?this.A=a:this.Bc?this.Bf=c:this.$gb.length)throw d.f.F();b[0]=new d.qd(this.o,this.A,this.Bf);b[1]=new d.qd(this.o,this.B,this.Bf);b[2]=new d.qd(this.v,this.B,this.Bf);b[3]=new d.qd(this.v,this.A,this.Bf);b[4]=new d.qd(this.o,this.A,this.$g);b[5]=new d.qd(this.o,this.B,this.$g);b[6]=new d.qd(this.v,this.B,this.$g);b[7]=new d.qd(this.v,this.A,this.$g)};g.prototype.Lx= function(b){if(null==b||0==b.length)this.Oa();else{var a=b[0];this.I(a.x,a.y,a.z);for(a=1;athis.kB;){var k=this.Cd.ba();f.L(k.ec());h.L(k.Cc());f.scale(this.$a.mc);h.scale(this.$a.mc);d.Ej.Av(f,h)?f.x=h.x:d.Ej.yv(f,h)&&(h.x=f.x);this.Wk.length=0;d.Ej.FG(this.$a.Vb,this.$a.rc,this.$a.$e,f,h,this.$a.uB,this.$a.St,l,this.fk,this.Bt,this.Wk,this.Ow);null!=this.So&&(k=this.Wk.slice(0),this.So.DH(this.So.aa()-1,k,k.length-1));d.Ej.zv(f,h)?(this.er.Oa(),this.$a.Xy(f,this.Wl,this.er),this.Mo=!0):(this.er.Oa(),this.Mo= this.cz(l[0],this.er));if(this.Mo){this.Cd.Li();if(this.Cd.nA()){this.Cd.Li();this.Cd.ba();break}this.Cd.yX();break}null==a&&(a=new d.Ia,a.Bl(null,0));this.cF(a);e++}this.Ow[0]=0;if(0= this.fk[0]?(f=this.Di+1.570796326794897,h=f+3.141592653589793-(this.Di-this.fk[0])):(f=this.Di+1.570796326794897,h=f+3.141592653589793-(6.283185307179586-(this.fk[0]-this.Di)));k=this.Di>=this.fk[0]&&3.141592653589793>=this.Di-this.fk[0]?!1:this.Di f;)t-=6.283185307179586;tc.x-this.Uk[0]?this.Uk[0]-=6.283185307179586:3.141592653589793l?e.rY():e.Po=l;f=c.G();d.T.Oc(f)?(f=new d.Ua(c.description),f.dc(c,!0),c=f,f=1607):197==f&&(f=new d.h,c.s(f),f.N()<=e.ta||f.fa()<=e.ta?(f=new d.Ua(c.description),f.jd(c,!1),c=f,f=1607):(f=new d.Ia(c.description),f.jd(c,!1),c=f,f=1736));e.sY();d.T.Jo(f)||e.tY();if(e.vb<=.5*e.Po)return 1736!= f?new d.Ia(c.description):e.Iw?c:d.Ej.Ks(c,e.mh,e.$e,e.uB,-1,k);if(0>e.Qa&&1736!=f)return new d.Ia(c.description);e.Iw&&d.T.Ic(f)?(b=d.Ej.Ks(c,b,4,NaN,e.Po,k),c=d.fb.Xg(b,e.mh,e.Qc,k)):c=d.fb.Xg(c,e.mh,e.Qc,k);c=d.gi.Mj(c,e.Qc);if(c.u())return new d.Ia(c.description);!e.Iw&&d.T.Ic(f)&&(c=d.Ej.yJ(e.mc,c));c=a.lQ(c,e.Qc);switch(f){case 1736:k=e.WP(c);break;case 1607:k=e.XP(c);break;case 550:k=e.UP(c);break;case 33:k=e.VP(c);break;default:throw d.f.X("corrupted_geometry");}e=d.fb.Xg(k,e.Qc,e.mh,e.lc); e.om(c.description);return e};a.prototype.WP=function(a){var c=new d.Ia;a=new g(this,a,c);a=d.ei.local().V(a,this.Qc,this.lc).next();a=d.Vp.Nj(a,this.Qc,2);var b=new d.Hd;b.scale(1/this.mc,1/this.mc);c.Xc(b);c=d.Vp.Nj(c,this.Qc,2);return 0<=this.Qa?d.ei.local().V(c,a,this.Qc,this.lc):d.cq.local().V(c,a,this.Qc,this.lc)};a.prototype.XP=function(a){a=new g(this,a,null);a=d.ei.local().V(a,this.Qc,this.lc).next();return a=d.Vp.Nj(a,this.Qc,2)};a.prototype.UP=function(a){a=new m(this,a);a=d.ei.local().V(a, this.Qc,this.lc).next();return a=d.Vp.Nj(a,this.Qc,2)};a.prototype.VP=function(a){a=a.w();a.scale(this.mc);var c=new d.Ia;this.Xy(a,!1,c);return c=d.Vp.Nj(c,this.Qc,2)};a.prototype.cz=function(c,b,f,h,l,k){var e=c[0],g=c[c.length-1],p=e.y>g.y?e.y:g.y,q=d.C.q(this.Vb,this.rc,e.ya.hf()?(this.LW(a),!0):!1};a.prototype.HJ=function(a,b,f){var c=f.D(),e=0k.x?(k=this.nr,h.Ag(-this.Dt,0)):(k=-this.nr,h.Ag(this.Dt,0));c.add(a,!1);a.Oa();b.add(c,!1);b.Xc(h);l=new d.h;b.s(l);l.O((this.Dt-l.N())/2,0);l.A=-this.nr;l.B=this.nr;for(var t=0;t=g)break;d.mb.Xi(c,b,l.x,l.y,h,C,e,r);p?n.ka(e.j,r.j):(v.ka(e.j,r.j),a.KF(l.x,v.x,B.x,q),n.ka(q[0]+v.x,v.y),B.L(n));n.scale(f);u.Zf(0,-1,n);k=C;C=A++*t}}};a.yD=function(a,b,f,h,l,k,g,t,p,q){var c=new d.b,e=new d.b,r=new d.ea(0),m=new d.ea(0);d.mb.Xi(a,b,h.x,h.y,f,l,r,m);c.ka(r.j, m.j);d.mb.Xi(a,b,h.x,h.y,f,k,r,m);e.ka(r.j,m.j);f=new d.ea(0);d.mb.Ez(a,b,g.x,g.y,c.x,c.y,f);p[0]=f.j;d.mb.Ez(a,b,g.x,g.y,e.x,e.y,f);for(q[0]=f.j;p[0]<=q[0];)p[0]+=6.283185307179586;for(;p[0]>q[0];)p[0]-=6.283185307179586;for(;p[0]>=t;)p[0]-=6.283185307179586,q[0]-=6.283185307179586;for(;p[0]k[c]?1:0});g=a.Ja();for(t=0;tthis.vb/a&&(a=this.vb/500);.01>a&&(a=.01);this.Po=a};return a}();d.qM=b})(n||(n={}));(function(d){var m=function(){function g(){}g.uc=function(b,a){var c=new d.b;c.L(a);b.push(c)};g.qk=function(b,a){b.add(a.x);b.add(a.y)}; g.XC=function(b){b.yf(b.size-2)};g.ny=function(b,a){a.ka(b.get(b.size-2),b.get(b.size-1))};g.Ks=function(b,a,c,e,f,h){if(null==b)throw d.f.F();var l=b.G();if(b.u()||d.T.Jo(l))return b;var k=new g;k.mh=a;k.Qc=d.fb.kc(a);var r=d.fb.gw(k.Qc);k.lc=h;k.Vb=d.fb.Rv(k.Qc);k.rc=r*(2-r);k.mc=k.Qc.Od().Ai;k.or=k.Qc.Bo();k.St=k.or*k.mc;k.fB=e;k.eB=f;k.$e=c;197==l?(c=new d.Ia(b.description),c.jd(b,!1)):d.T.Oc(l)?(c=new d.Ua(b.description),c.dc(b,!0)):c=b;if(4!=k.$e){a=0==k.mh.Eb(k.Qc)?d.fb.Xg(c,k.mh,k.Qc,h):d.gi.Mj(c, k.Qc);if(a.u())return a;a=g.yJ(k.mc,a);a=k.Fz(a);a=d.Vp.Nj(a,k.Qc,k.$e);k=d.fb.Xg(a,k.Qc,k.mh,h)}else{2==d.Td.Fb(a)?(b=d.fb.Lk(a),h=d.sk.local().V(c,b,a,h),h==b&&(h=new d.Ia,b.copyTo(h))):h=d.gi.Mj(c,k.Qc);a=h;if(a.u())return a;k=k.vY(a)}return k};g.yJ=function(b,a){var c=new d.h;a.ac(c);if(3.141592653589793>c.N()*b)return a;for(var e=!1,c=a.Da(),f=new d.b,h=new d.b;c.Ya();)for(;c.Ca();){var l=c.ba();f.L(l.ec());h.L(l.Cc());f.scale(b);h.scale(b);if(3.141592653589793h.x-f.x)for(;-6.283185307179586>h.x-f.x;)h.x+=6.283185307179586; g.ee(h.x,NaN,w);q.L(h)}else t.L(h),g.UM(t),g.ee(t.x,x,w),q.ka(w[0]+t.x,t.y);.5>Math.abs(q.x-h.x)&&q.L(h);r?(l.Ex(0,m),u.L(p),u.scale(1/b),m.rb(u),(k=c.kn())?e.Rf(m):e.lineTo(m),c.Io()&&!a.Qb(c.Ta)&&(l.Ex(1,m),u.L(q),u.scale(1/b),m.rb(u),e.lineTo(m))):((k=c.kn())&&e.qA(null,0),l=e.aa()-1,u.L(p),u.scale(1/b),e.Zf(l,-1,u),c.Io()&&!a.Qb(c.Ta)&&(u.L(q),u.scale(1/b),e.Zf(l,-1,u)))}return e};g.FG=function(b,a,c,e,f,h,l,k,r,t,p,q){var u=new d.b,m=new d.b,x=0D&&(D+=6.283185307179586);0>w&&(w+=6.283185307179586);null!=r&&(r[0]=n);null!=t&&(t[0]=D);null!=p&&(p[0]=w);t=r=NaN;null!=q&&(t=d.C.Yg(b,a),p=d.C.q(b,a,e.y),r=(t-p)/n,t=(t+p)/n);p=g.Av(e,f);var w=g.yv(e,f),D=p||w,z=g.sE(e,f,k),B=new d.ea(0),A=new d.ea(0),C=new d.b,E=new d.b,F=new d.b;g.ee(e.x,NaN,m);var G=[m[0]];if(n<=h)g.uc(u,e),g.ee(f.x,NaN,m),null!= q&&q.add(0),D?(p&&g.ly(e,f,q,u),w&&g.hy(e,f,q,u)):z?g.ky(e,f,v,r,t,q,u):0F.x&&(m[0]+=6.283185307179586,F.ka(m[0]+C.x,C.y)):J.xl.x?l.x+=6.283185307179586:3.141592653589793L;L++)if(K=H[L]*t+(1-H[L])*r,d.mb.Oj(b,a,e.x,e.y,K*f,h,n,D,c),C.ka(n.j,D.j),0==L&&(I=K,E.L(C)),g.wO(B,C,A,G),G.gc(G.oe(C,!0),F),d.mb.Md(b,a,C.x,C.y,F.x,F.y,z,null,null,2),z.j>p){J=!0;break}J? (A.L(E),t=I,g.qk(l,A),k.add(t)):(g.XC(l),k.Ek(k.size-1,1,k.size-1),0=l&&N.j<=h&&3.141592653589793>Math.abs(x.x- w.x))break;if(e.Cy(K,I)<=f)break}ba=O[G]*I+(1-O[G])*K;e.gc(ba,q);F?n.ka(q.x*c,q.y*c):(E[0][0]=q.x,E[0][1]=q.y,d.fb.ku(),n.x=E[0][0]*c,n.y=E[0][1]*c);if(0==G&&(U=ba,m.L(q),z.L(n),0h||3.141592653589793<=Math.abs(x.x-w.x)))){V=!0;break}if(L&&0h||3.141592653589793<=Math.abs(x.x-n.x)){V=!0;break}}else if(0l){V=!0;break}if(L){d.mb.Md(b,a,C.x,C.y,D.x,D.y,W,null,null,2);if(W.j>l){V=!0;break}d.mb.Md(b,a,D.x,D.y,n.x,n.y,Y,null,null,2);if(Y.j>l){V=!0;break}}}else{V=!0;break}}V?(p.L(m),w.L(z),I=U,g.qk(H,p),g.qk(M,w),R.add(I)):(g.XC(H),g.XC(M),R.Ek(R.size-1,1,R.size-1),g.uc(r,p),J+=N.j,null!=k&&k.add(J),0Math.abs(a.x-b.x)?(e.Mc(b),3.141592653589793<=c.x-b.x?e.vm(c.x-6.283185307179586,c.y):3.141592653589793<=b.x-c.x?e.vm(c.x+6.283185307179586,c.y):e.vm(c.x,c.y)):(e.Mc(c),3.141592653589793<=b.x-c.x?e.vm(b.x-6.283185307179586,b.y):3.141592653589793<=c.x-b.x?e.vm(b.x+6.283185307179586,b.y):e.vm(b.x,b.y))};g.qG=function(b,a){for(var c=0;cb.x)for(;-3.141592653589793>b.x;)b.x+=6.283185307179586;if(3.141592653589793b.o+ f&&lb?-1*(c-a):0b?-b:b};g.Ab=function(b,a){return 0<=a?g.K(b):-g.K(b)};g.W=function(b,a){return b==a||g.K(b-a)<=g.fD*(1+(g.K(b)+g.K(a))/2)};g.wd=function(b){return 0==b|| g.K(b)<=g.fD};g.Eu=function(b){b=g.eV(b,g.lA);return g.K(b)<=g.Oi?b:0>b?b+g.lA:b-g.lA};g.JB=function(b,a){b.j=g.Eu(b.j);a.j=g.Eu(a.j);g.K(a.j)>g.rs&&(b.j=g.Eu(b.j+g.Oi),a.j=g.Ab(g.Oi,a.j)-a.j)};g.Yg=function(b,a){a=Math.sqrt(1-a);a=(1-a)/(1+a);var c=a*a;return b/(1+a)*(1+c*(.25+c*(.015625+1/256*c)))*g.rs};g.RS=function(b,a,c,e,f){var h,l,k,r,t,p,q,u=0,m=p=0,x=0,w=0,n=0;t=0;var D,z,B;q=0;var A,C,E;B=new d.ea;h=new d.ea;if(null!=f)if(B.j=b,h.j=a,g.JB(B,h),b=B.j,a=h.j,B.j=c,h.j=e,g.JB(B,h),c=B.j,e=h.j, c=g.Eu(c-b),g.W(a,e)&&(g.wd(c)||g.W(g.K(a),g.rs)))null!=f&&(f.j=0);else{if(g.W(a,-e)){if(g.W(g.K(a),g.rs)){null!=f&&(f.j=2*g.Yg(6378137,.0066943799901413165));return}if(g.W(g.K(c),g.Oi)){null!=f&&(f.j=2*g.Yg(6378137,.0066943799901413165));return}}if(g.wd(.0066943799901413165))w=Math.cos(a),n=Math.cos(e),null!=f&&(u=Math.sin((e-a)/2),p=Math.sin(c/2),q=2*Math.asin(Math.sqrt(u*u+w*n*p*p)),f.j=6378137*q);else{B=1-Math.sqrt(.9933056200098587);b=1-B;h=Math.atan(b*Math.tan(a));a=Math.sin(h);h=Math.cos(h); l=Math.atan(b*Math.tan(e));e=Math.sin(l);l=Math.cos(l);r=k=c;C=0;E=1;A=c;for(z=!0;1==z;)C+=1,1==E&&(t=Math.sin(A),p=Math.cos(A),u=l*t,q=h*e-a*l*p,u=Math.sqrt(u*u+q*q),p=a*e+h*l*p,q=Math.atan2(u,p),m=1E-15>g.K(u)?h*l*t/g.Ab(1E-15,u):h*l*t/u,x=1-m*m,w=1E-15>g.K(x)?p-a*e/g.Ab(1E-15,x)*2:p-a*e/x*2,n=w*w,t=((-3*x+4)*B+4)*x*B/16),D=(1-t)*B*(q+t*u*(w+p*t*(2*n-1))),1==E?(A=c+D*m,1E-14>g.K(A-r)?z=!1:g.K(A)>g.Oi?(E=2,A=g.Oi,0>c&&(A=-A),m=0,x=1,k=r=2,q=g.Oi-g.K(Math.atan(a/h)+Math.atan(e/l)),u=Math.sin(q),p= Math.cos(q),t=((-3*x+4)*B+4)*x*B/16,1E-14>g.K(m-k)?z=!1:(w=1E-15>g.K(x)?p-a*e/g.Ab(1E-15,x)*2:p-a*e/x*2,n=w*w)):(0>(A-r)*(r-k)&&5(m-r)*(r-k)&&5g.K(m-k)?z=!1:(w=1E-15>g.K(x)?p-a*e/g.Ab(1E-15,x)*2:p-a*e/x*2,n=w*w));null!=f&&(m=Math.sqrt(1+(1/(b*b)-1)*x),m=(m-1)/(m+1), x=m*(1-.375*m*m),f.j=(1+m*m/4)/(1-m)*b*6378137*(q-x*u*(w+x/4*(p*(-1+2*n)-x/6*w*(-3+4*u*u)*(-3+4*n)))))}}};g.Oi=3.141592653589793;g.rs=1.5707963267948966;g.lA=6.283185307179586;g.fD=3.552713678800501E-15;return g}();d.oM=m})(n||(n={}));(function(d){var m=function(){return function(b){this.ue=b;this.ll=this.ue.getCode();0>this.ll&&(this.ll=0)}}();d.RZ=m;var g=function(){function b(a){void 0===a&&(a=null);this.Kh=null;this.on=!1;null!==a&&(this.Kh=new m(a))}b.prototype.yc=function(){return null!=this.Kh? this.Kh.ll:0};b.prototype.Vf=function(){var a=new b;this.copyTo(a);return a};b.prototype.copyTo=function(a){a.Kh=this.Kh;a.on=this.on};b.prototype.Vv=function(){var a=this.Vf();a.jt();return a};b.prototype.jt=function(){this.on=!this.on};b.prototype.dn=function(){return null!=this.Kh?this.Kh.ue:null};b.prototype.AK=function(a){if(0>=a)throw d.f.F();if(a!=this.yc()){a=d.Tf.geogtran(a);if(null==a)throw d.f.F("Geogtran not found.");this.Kh=new m(a)}};b.prototype.lH=function(){return null==this.Kh?null: this.Kh.ue.toString()};b.prototype.getName=function(){if(null==this.Kh||null==this.Kh.ue)return"";var a="";this.on&&(a+="~");return a+=this.Kh.ue.getName()};b.prototype.nY=function(a){if(null==a)throw d.f.F();var c=null;try{c=d.Tf.fromString(d.Vc.PE_TYPE_GEOGTRAN,a)}catch(e){throw d.f.F();}this.Kh=new m(c)};b.prototype.Eb=function(a){return a==this?!0:a instanceof b&&(!(0>=this.yc()||this.yc()!=a.yc())||this.dn().isEqual(a.dn()))?this.on==a.on:!1};b.prototype.toString=function(){var a=toString(); return 200t||a[t].wn!=d.wn||a[t].xn!=d.xn){d=m.pa(e,c,0,0);c=-1;for(p=0;pk&&(k=-k,a=!0);0>g&&(g=-g,d=!0);return b.eO(k,a,g,d,h)};b.prototype.kq=function(){this.AE(this.NI)&& (this.Gw=!0);this.AE(this.ZA)&&(this.iI=!0);this.hI=!this.Gw};b.prototype.AE=function(a){try{for(var c=[],c=c.sort(m.Gs),b=0;bb.D()?!1:!0};d.HF=function(b){return b.u()||1607!=b.G()&&1736!=b.G()||20>b.D()?!1:!0};return d}();d.wl=m})(n||(n={}));(function(d){var m=function(){function g(){}g.lX=function(b){var a=new d.Ia;a.Zx(b.R.o,b.R.A);a.Wj(b.R.o,b.R.B);a.Wj(b.R.v,b.R.B);a.Wj(b.R.v,b.R.A);return a};g.Xg=function(b,a){return null===b?null:d.ns.local().V(b,a,null)};g.fZ=function(b,a){var c=d.ei.local();b=new d.hd(b);return c.V(b,a,null).next()};g.Wm=function(b,a,c){return d.cq.local().V(b,a,c,null)};g.Pp=function(b, a,c){return d.ty.local().V(b,a,c,null)};g.NY=function(b,a,c){var e=d.ty.local();b=new d.hd(b);a=new d.hd(a);c=e.V(b,a,c,null);for(e=[];null!=(a=c.next());)e.push(a);return e};g.Eb=function(b,a,c){return d.Gj.local().V(3,b,a,c,null)};g.PR=function(b,a,c){return d.Gj.local().V(4,b,a,c,null)};g.KU=function(b,a,c){var e=d.sk.local();b=new d.hd(b);a=new d.hd(a);c=e.V(b,a,c,null);for(e=[];null!=(a=c.next());)e.push(a);return e};g.MR=function(b,a,c){var e=d.cq.local();b=new d.hd(b);a=new d.hd(a);c=e.V(b, a,c,null);for(e=[];null!=(a=c.next());)e.push(a);return e};g.Ma=function(b,a,c){return d.sk.local().V(b,a,c,null)};g.qZ=function(b,a,c){return d.Gj.local().V(2,b,a,c,null)};g.contains=function(b,a,c){return d.Gj.local().V(1,b,a,c,null)};g.xR=function(b,a,c){return d.Gj.local().V(16,b,a,c,null)};g.touches=function(b,a,c){return d.Gj.local().V(8,b,a,c,null)};g.nW=function(b,a,c){return d.Gj.local().V(32,b,a,c,null)};g.MU=function(b,a,c){return d.Gj.local().V(1073741824,b,a,c,null)};g.XB=function(b, a,c,e){return d.oN.local().V(b,a,c,e,null)};g.Cb=function(b,a,c,e){var f=null;if(null!=c){if(f=c.Od(),null!=e&&f.yc()!=e.yc()&&f.nd!=e.nd)throw d.f.uk();}else if(null!=e)throw d.f.F();b=d.gN.local().V(b,a,null);null!==f&&null!==e&&(b=d.oc.li(b,f,e));return b};g.clip=function(b,a,c){return d.aN.local().V(b,d.h.pa(a.R.o,a.R.A,a.R.v,a.R.B),c,null)};g.Hl=function(b,a,c){if(null==b||null==a)return null;b=d.cN.local().V(!0,b,a,c,null);for(a=[];null!=(c=b.next());)c.u()||a.push(c);return a.slice(0)};g.PP= function(b,a,c,e,f,h,l,k){if(!0===f)return g.XM(b,a,c,e,h,l,k);f=c;if(null!=a){if(l=a.Od(),null!=e&&l.yc()!=e.yc()){if(l.nd!=e.nd)throw d.f.uk();f=[];d.oc.cG(c,c.length,e,l,f)}}else if(null!=e)throw d.f.F();c=d.BD.local();if(h){b=new d.hd(b);a=c.V(b,a,f,h,null);for(b=[];null!=(h=a.next());)b.push(h);h=b.slice(0)}else for(h=[],e=0;eb.tb())return 0;var e= null;if(null!=a){if(e=a.Od(),null!=c&&e.yc()!=c.yc()&&e.nd!=c.nd)throw d.f.uk();}else if(null!=c)throw d.f.F();1736==b.G()||197==b.G()?a=b.Gg():d.T.Oc(b.G())?(a=new d.Ua(b.description),a.dc(b,!0)):a=b;b=0;a=a.Da();for(var f=new d.b,h=new d.b;a.Ya();)for(;a.Ca();){var l=a.ba();l.Oq(f);l.Os(h);b+=d.b.Cb(f,h)}null!==e&&null!==c&&(b=d.oc.li(b,e,c));return b};g.ZZ=function(b,a){return d.Td.OS(b,a)};g.bG=function(b){return void 0!==b.points?g.jW(b,void 0===b.hasZ?!1:b.hasZ,void 0===b.hasM?!1:b.hasM):void 0!== b.rings?g.vH(b.rings,void 0===b.hasZ?!1:b.hasZ,void 0===b.hasM?!1:b.hasM,"P"):void 0!==b.paths?g.vH(b.paths,void 0===b.hasZ?!1:b.hasZ,void 0===b.hasM?!1:b.hasM,"L"):void 0!==b.x?g.tW(b):void 0!==b.xmin?g.bW(b):null};g.tW=function(b){if(null==b.x||"NaN"==b.x)return new d.Wa;var a=new d.Wa(b.x,b.y);void 0!==b.z&&null!==b.z&&a.qY(b.z);void 0!==b.m&&null!==b.m&&a.aY(b.m);return a};g.bW=function(b){if(null==b.xmin||"NaN"==b.xmin)return new d.ci;var a=new d.ci(b.xmin,b.ymin,b.xmax,b.ymax);void 0!==b.zmin&& null!==b.zmin&&a.setInterval(1,0,b.zmin,b.zmax);void 0!==b.mmin&&null!==b.mmin&&a.setInterval(2,0,b.mmin,b.mmax);return a};g.jW=function(b,a,c){var e=0,f=new d.Ed,h=3*b.points.length;0!=h%2&&h++;2>h&&(h=2);var l=d.J.truncate(3*b.points.length/2);4>l?l=4:16>l&&(l=16);for(var h=d.Uc.Vm(h,0),k=d.Uc.Vm(l),l=d.Uc.Vm(l),g=0;g=l?(m[v]=!1,p+=1,k.add(t),g.add(h),t+=n):m[v]=!0}e=3*t;0!=e%2&&e++;2>e&&(e=2);v=d.J.truncate(3*t/2);4>v?v=4:16>v&&(v=16);e=d.Uc.Vm(e,0);h=d.Uc.Vm(v);l=d.Uc.Vm(v);for(v=n=0;va!=h){a= f.yE(k);var r=f.yE(b),t,p=h?1:3;do a=a+p&3,t=f.Fx(a),0!=l&&(e=g.YD(k,t,c,e,f,h,l)),c[e++].ka(t.x,t.y),k=t;while((a&3)!=r);0!=l&&(e=g.YD(k,b,c,e,f,h,l))}else if(f=new d.b,f.ka(b.x-k.x,b.y-k.y),0!=l&&(l=d.J.truncate(f.QO()/l),0e&&b.write(h,e)}};g.tP=function(b,a,c,e){var d=e.ca;e=e.ha;for(var h=0;he&&b.write(h,e)}};g.TK=function(b,a,c){if(b.hasAttribute(c)){var e=b.G();if(d.T.gh(e)){var f=d.na.si(c),e=d.na.Xa(c),h=b.D();if(1==f){b=b.Pa(c);g.DP(b,h*e,e,a);return}if(2==f){b=b.Pa(c);g.tP(b, h*e,e,a);return}throw d.f.X("snap_coordinate not implemented");}if(197==e)h=b.xf(c,0),e=!1,h.caa.ha&&(e=!0,h.ha=a.ha),e&&b.setInterval(c,0,h);else if(33==e)h=b.Yc(c,0),e=!1,ha.ha&&(e=!0,h=a.ha),e&&b.setAttribute(c,0,h);else if(d.T.Oc(e))h=b.ct(c,0),e=!1,ha.ha&&(e=!0,h=a.ha),e&&b.Sx(c,0,h),h=b.Ns(c,0),ha.ha&&(e=!0,h=a.ha),e&&b.Kx(c,0,h);else throw d.f.X("snap_coordinate not implemented");}};g.jo=function(b, a,c,e,d){var f=0;null!=a&&(f=a.re(b),d&&!e||null==a||(f+=1.01*a.eA(b)));e&&(c*=4,f*=1.01);return Math.max(f,c)};g.T_=function(b,a,c,e){a=d.h.BO(a.Be(),a.nf(),c.Be(),c.nf());return g.jo(0,b,a,e,!1)};g.Yy=function(b,a,c){a=a.no();return g.jo(0,b,a,c,!1)};g.U_=function(b,a,c){a=a.no();return g.jo(1,b,a,c,!1)};g.fQ=function(b,a){var c=new d.h;a.s(c);return g.Yy(b,c,!0)};g.Zy=function(b,a){a=a.no();return g.jo(0,b,a,!1,!0)};g.V_=function(b,a,c){a=a.no();return g.jo(1,b,a,c,!0)};g.uv=function(b,a){var c= new d.h;a.s(c);return g.Zy(b,c)};g.MH=function(b,a,c,e){e*=e;var f=new d.b;f.zc(b,a);b=new d.b;b.zc(c,a);a=f.pk();c=b.pk();if(a<=e&&c<=e)return!0;var h=d.Ub.Xx(f.Ui(b));return h<=e*a||h<=e*c?0<=f.oi(b):!1};g.UK=function(b,a,c,e){for(var f=0;fc)throw d.f.F();this.pj.ca=a-b;this.pj.ha=c+b;this.oh.resize(0);this.Ee=0;this.Og[0]=0};a.prototype.Xn=function(a,c){this.pj.ca=a-c;this.pj.ha=a+c;this.oh.resize(0);this.Ee=0;this.Og[0]=0};a.prototype.next=function(){if(!this.ab.$q)throw d.f.La();if(0>this.Ee)return-1;for(var a=!0;a;)switch(this.Og[this.Ee]){case 1:a=this.oW();break;case 2:a=this.pW();break;case 3:a=this.qW();break;case 4:a=this.rW(); break;case 5:a=this.BX();break;case 6:a=this.kV();break;case 7:a=this.uP();break;case 0:a=this.pA();break;default:throw d.f.ya();}return-1!=this.jh?this.Gq()>>1:-1};a.BZ=function(c,b,e){var d=new a;d.ab=c;d.oh.yb(20);d.Ni(b,e);return d};a.CZ=function(c,b,e){var d=new a;d.ab=c;d.oh.yb(20);d.Xn(b,e);return d};a.pa=function(c){var b=new a;b.ab=c;b.oh.yb(20);b.Ee=-1;return b};a.prototype.pA=function(){this.jh=this.GI=this.lj=this.Sc=-1;if(null!=this.ab.Je&&0=this.pj.ca)return this.Ei=this.IT(),!1;this.Ee--;return!0};a.prototype.uP= function(){this.jh=this.Ei;if(-1!=this.jh&&c.Uq(this.Gq()))return this.Ei=this.cH(),!1;this.Ee--;return!0};a.prototype.cH=function(){return this.ab.pg?this.ab.vg.nb(this.jh):this.ab.sj.nb(this.jh)};a.prototype.IT=function(){return this.ab.pg?this.ab.vg.Ve(this.jh):this.ab.sj.Ve(this.jh)};a.prototype.Gq=function(){return this.ab.pg?this.ab.vg.ja(this.jh):this.ab.sj.getData(this.jh)};return a}();d.VZ=a;var c=function(){function c(a){this.pn=this.zi=this.vg=this.sj=this.yn=this.$j=this.Je=this.ak=null; this.pg=a;this.$q=this.Dw=!1}c.prototype.bs=function(){this.ql(!0)};c.prototype.ys=function(a,c){if(!this.Dw)throw d.f.La();this.ak.push(new d.Ac(a,c))};c.prototype.yq=function(){if(!this.Dw)throw d.f.X("invalid call");this.Dw=!1;this.$q=!0;this.pg||(this.pU(),this.Lw=this.ak.length)};c.prototype.eh=function(a){if(!this.pg||!this.$q)throw d.f.F("invalid call");if(-1==this.Mf){var c=this.ak.length;if(this.QA){var b=new d.ia(0);b.yb(2*c);this.UJ(b);this.zi.yb(2*c);this.zi.resize(0);this.TJ(b);this.yn.resize(c, -1);this.yn.Zh(-1,0,c);this.QA=!1}else this.yn.Zh(-1,0,c);this.Mf=this.Gv()}c=this.CH(a<<1,this.Mf);b=this.vg.addElement((a<<1)+1,this.gA(c));this.LK(c,b);this.yn.set(a,c);this.Lw++};c.prototype.remove=function(a){if(!this.pg||!this.$q)throw d.f.X("invalid call");var c=this.yn.get(a);if(-1==c)throw d.f.F("the interval does not exist in the interval tree");this.yn.set(a,-1);this.Lw--;var b=this.gA(c),e;e=this.vg.RT(b);this.vg.Ld(this.oT(c),b);this.vg.Ld(this.LT(c),b);a=this.vg.size(b);0==a&&(this.vg.HR(b), this.OK(e,-1));this.$j.kd(c);for(var b=this.eH(e),f=this.Qj(e),g=this.Mk(e),c=0;!(0>1);-1!=g?this.LK(g,this.sj.addElement(this.gA(g),e)):(g=this.CH(e,this.Mf),b.set(e>>1,g))}};c.prototype.CH=function(a,c){var b=c,e=c,f,h=-1,g=0,q=this.zi.size-1,m=0,v=a>>1,n=NaN,w=NaN;f=!0;for(var y=this.vT(v),v=this.sT(v);f;){gD&&(DD)-1!=c&&(c==b?(e=b,n=D,c=this.Mk(b),-1!=c?w=this.Hq(c):w=NaN):w>1];return c.Uq(a)?b.ca:b.ha};return c}();d.ms=c})(n||(n={}));(function(d){var m=function(){function g(b){if(null==b)throw d.f.X("Invalid arguement");this.Ke=b;var a=b.dT();a.aU()?b.ie.TH()?this.Zo=d.di.PannableFold:this.Zo=d.di.Clip:this.Zo=d.di.DontClip;a.bU()?b.He.TH()?this.En=d.di.PannableFold:this.En=d.di.Clip:this.En=d.di.DontClip;this.qn=a.xv;this.xI=a.sz;b=this.Ke.DI; this.lI=b.dt(2147483648);this.Fw=b.dt(1073741824)}g.Xg=function(b,a,c){return a.wr.Xg(b,c)};g.fs=function(b,a,c,e){return b.wr.fs(a,c,e)};g.Cu=function(b,a,c,e){c=0>c?a.length:c;b=b.wr.fs(a,c,e);if(b==c)return b;for(var d=a=0;dc?a.length:c;b=b.wr.KC(a,c,e);if(b==c)return b;for(var d=a=0;da?b.length:a;if(this.Ke.Ho()){for(var e=0;ef.B){var v=d.h.pa(b.o- 1,f.A,b.v+1,f.B),m=d.uh.rq(m,v,c,NaN,0,a);if(m.u())return m}b.N()>2*f.N()&&(m=d.Ib.Aq(m,-2*f.N(),2*f.N(),c,!0,0,!0,a))}b=this.xI;(f=!isNaN(b))&&(m=d.Km.local().V(m,b,a));var v=t?e.Sj():null,n=NaN;r&&(n=c.pi());var w=null!=e.Vs();if(this.lI)r&&(d.Ib.ps(c,n,m,l),f&&(r=c.Ch(),n=c.kc().Ch(),b*=n/r)),d.Ib.os(this.Ke,m,q,l),f&&(r=c.kc().Ch(),n=e.kc().Ch(),b*=n/r),c=m;else{var y=new d.Ua(m.description);y.TE(m);r&&(d.Ib.ps(c,n,y,l),f&&(r=c.Ch(),n=c.kc().Ch(),b*=n/r));d.Ib.os(this.Ke,y,q,l);f&&(r=c.kc().cn(), n=e.kc().cn(),b*=n/r);q=NaN;t?(v=e.Sj(),q=e.pi()):isNaN(this.qn)||(q=this.qn);r=g.se(c)|g.se(e);n=10*p.re(0);this.Fw&&(r=3,n=0);c=d.Ib.JS(m,c,y,p,q,a,r,n)}w&&(c=d.Ib.iF(c,e,a));t&&(h||(t=p.qe().N(),c.xf(0,0).N()>=t-p.re(0)&&(p=v.getNorthPoleLocation(),t=v.getSouthPoleLocation(),m=v.getNorthPoleGeometry(),v=v.getSouthPoleGeometry(),q=0,m==d.Bg.PE_POLE_POINT&&p!=d.Bg.PE_POLE_OUTSIDE_BOUNDARY&&(q=1),v==d.Bg.PE_POLE_POINT&&t!=d.Bg.PE_POLE_OUTSIDE_BOUNDARY&&(q|=2),0!==q&&(h=!0))),c=d.Ib.sA(c,e,this.En, a),f&&(c=d.Km.local().V(c,b,a)),d.Ib.uy(e,c,l));if(c.u())return c;h&&(c=d.Lm.local().V(c,e,!1,a));null!=k&&(c=k.Cl(c,!1),this.qq(k,d.Pm.reverse,c),c=k.Dl(c,!1));return c};g.se=function(b){if(2!=b.Fb())return 0;var a=0,c=b.Sj();b=c.getNorthPoleLocation();var e=c.getSouthPoleLocation(),f=c.getNorthPoleGeometry(),c=c.getSouthPoleGeometry();f==d.Bg.PE_POLE_POINT&&b!=d.Bg.PE_POLE_OUTSIDE_BOUNDARY&&(a=1);c==d.Bg.PE_POLE_POINT&&e!=d.Bg.PE_POLE_OUTSIDE_BOUNDARY&&(a|=2);return a};g.prototype.XW=function(b, a){var c=this.Ke.ie,e=this.Ke.He,f=c.Fb(),h=e.Fb(),l=d.J.pv(Math.min(b.D(),64));b=d.Ua.ne(b);if(3==f){var k=c.ij,c=k.Fk(),f=c.Fb();b=k.Dl(b,!0);this.qq(k,d.Pm.forward,b);b=k.Cl(b,!0)}k=null;3==h&&(k=e.ij,e=k.Fk(),h=e.Fb());var r=2==f,f=(h=2==h)?e.kc():e,t=!h&&!this.Fw;if(r){if(b=d.Ib.LJ(b,c,this.Zo,a),b.u())return b}else{var p=new d.h;b.ac(p);var q=c.qe();if(p.Aq.B)if(p=d.h.pa(p.o-1,q.A,p.v+1,q.B),b=d.uh.rq(b,p,c,NaN,0,a),b.u())return b}var m=NaN;r&&(m=c.pi());var p=null!=e.Vs(),q=this.xI, v=!isNaN(q);v&&(b=d.Km.local().V(b,q,a));if(this.lI)r&&d.Ib.ps(c,m,b,l),v&&(r=c.Ch(),m=c.kc().Ch(),q*=m/r),d.Ib.os(this.Ke,b,t,l),v&&(r=c.kc().Ch(),m=e.kc().Ch(),q*=m/r),c=b;else{var n=new d.Ua(b.description);n.TE(b);r&&(d.Ib.ps(c,m,n,l),v&&(r=c.Ch(),m=c.kc().Ch(),q*=m/r));d.Ib.os(this.Ke,n,t,l);v&&(r=c.kc().Ch(),m=e.kc().Ch(),q*=m/r);t=NaN;h?t=e.pi():isNaN(this.qn)||(t=this.qn);r=g.se(c)|g.se(e);m=10*f.re(0);this.Fw&&(r=3,m=0);c=d.Ib.KS(b,c,n,f,t,a,r,m)}p&&(c=d.Ib.iF(c,e,a));h&&(c=d.Ib.sA(c,e,this.En, a),v&&(c=d.Km.local().V(c,q,a)),d.Ib.uy(e,c,l));if(c.u())return c;null!=k&&(c=k.Cl(c,!1),this.qq(k,d.Pm.reverse,c),c=k.Dl(c,!1));return c};g.prototype.UW=function(b,a){var c=(b.fa()+b.N())/400;if(0!=c){var e=d.Km.local().V(b,c,a),e=this.MJ(e,a),c=b.Ja();e.Rn(c)}else c=new d.Wa(b.Bq()),e=this.OJ(c),c=b.Ja(),e.u()?c.Oa():(b.copyTo(c),e=e.w(),c.I(e.x,e.y,e.x,e.y));return c};g.prototype.VW=function(b,a){b=d.T.ne(b);var c=this.Ke.ie,e=this.Ke.He,f=c.Fb(),h=e.Fb(),l=d.J.pv(Math.min(b.D(),64));if(3==f){var k= c.ij,c=k.Fk(),f=c.Fb();b=k.Cl(b,!0);this.qq(k,d.Pm.forward,b);b=k.Dl(b,!0)}if(2==f){this.Zo==d.di.Clip?b=d.sk.local().V(b,c.Lk(),c,a):c.Jc()&&(f=new d.h,b.ac(f),c.qe().contains(f)||(this.Zo==d.di.PannableFold&&(b=d.Ib.Mj(b,c)),d.Ib.wu(b,c.qe(),c.re(0),!0),b=d.Ib.Ym(b,c,0,!0,0,a)));if(b.u())return b;d.Ib.ps(c,0,b,l)}else d.Ib.wu(b,c.qe(),c.re(0),!0);d.Ib.os(this.Ke,b,!1,l);c=0;f=!1;k=null;3==h&&(f=!0,k=e.ij,e=k.Fk(),h=e.Fb());(h=2==h)?c=e.pi():isNaN(this.qn)||(c=this.qn);h&&this.En!=d.di.Clip||(b= d.Ib.Ym(b,e.kc(),c,!1,0,a));if(h&&(b=d.Ib.sA(b,e,this.En,a),d.Ib.uy(e,b,l),b.u()))return b;f&&(b=k.Cl(b,!0),this.qq(k,d.Pm.reverse,b),b=k.Dl(b,!0));return b};g.prototype.qq=function(b,a,c){var e=c.D();if(0!=e){for(var f=c.Pa(0),h=d.J.gf(200,0),l=[],k=0;kf.o+h&&ka?this.ct(c,b):this.Ns(c,b);case 1:var e=this.ct(c,b);c=this.Ns(c,b);return d.Ub.Wq(e,c,a);case 2:throw d.f.X("not implemented");}throw d.f.ya();};b.prototype.oe=function(a,c){var b=this.sa-this.ua,d=this.oa-this.ra,h=b*b+d*d;if(0==h)return.5;b=((a.x-this.ua)*b+(a.y-this.ra)*d)/h;c||(0>b?b=0:1c||1c||1a?-1:b<-a?1:0};b.prototype.lq=function(a,c,b,f){var e=this.ua,l=this.ra,k=a-e,g=c-l,k=Math.sqrt(k*k+g*g);if(k<=Math.max(b,6.661338147750939E-16*k))return f&&0==k?NaN:0;k=a-this.sa;g=c-this.oa;k=Math.sqrt(k*k+g*g);if(k<=Math.max(b,6.661338147750939E-16*k))return f&&0==k?NaN:1;k=this.sa-this.ua;g=this.oa-this.ra;f=Math.sqrt(k*k+g*g);if(0f+v)return NaN;if(Math.abs(p*k+q*g)<=Math.max(b,1.7763568394002505E-15*(Math.abs(p*k)+Math.abs(q*g)))&&(k=d.J.nk(m*t,0,1),.5>=k?(g=this.ua+(this.sa-this.ua)*k,f=this.ra+(this.oa-this.ra)*k):(g=this.sa-(this.sa-this.ua)*(1-k),f=this.oa-(this.oa-this.ra)*(1-k)),d.b.wz(g,f,a,c)<=b)){if(.5>k){if(d.b.wz(g,f,e,l)<=b)return 0}else if(d.b.wz(g,f,this.sa,this.oa)<=b)return 1;return k}}return NaN};b.prototype.Eb=function(a){return null==a?!1:a==this?!0:a.constructor!==this.constructor? !1:this.LO(a)};b.prototype.HE=function(a,c,b){var e=b?this.ua:this.sa;b=b?this.ra:this.oa;var h=new d.b;h.x=a.sa-e;h.y=a.oa-b;return c.oi(h)>6.661338147750939E-16*c.xE(h)?(h.x=a.ua-e,h.y=a.ra-b,c.oi(h)<=6.661338147750939E-16*c.xE(h)):!0};b.prototype.GE=function(a){var c=new d.b;c.x=this.sa-this.ua;c.y=this.oa-this.ra;if(!this.HE(a,c,!1))return!1;c.Kr();return this.HE(a,c,!0)?!0:!1};b.We=function(a,c){var b=a.dv(c.ua,c.ra),d=a.dv(c.sa,c.oa);if(0>b&&0>d||0b&&0>d||0d?a.GE(c):c.GE(a)};b.se=function(a,c,b){var e=d.b.pa(NaN,NaN),h=a.sa-a.ua,l=a.oa-a.ra,k=c.sa-c.ua,g=c.oa-c.ra,t=k*l-h*g;if(0==t)return e;var p=8.881784197001252E-16*(Math.abs(k*l)+Math.abs(h*g)),q=c.ua-a.ua,m=c.ra-a.ra,v=k*m-q*g,n=v/t,w=Math.abs(t),k=(8.881784197001252E-16*(Math.abs(k*m)+Math.abs(q*g))*w+p*Math.abs(v))/(t*t)+2.220446049250313E-16*Math.abs(n);if(n<-k||n>1+k)return e;g=h*m-q*l;k=g/t;h=(8.881784197001252E-16*(Math.abs(h* m)+Math.abs(q*l))*w+p*Math.abs(g))/(t*t)+2.220446049250313E-16*Math.abs(k);if(k<-h||k>1+h)return e;n=d.J.nk(n,0,1);h=d.J.nk(k,0,1);l=a.gc(n);t=c.gc(h);p=new d.b;p.zc(l,t);if(p.length()>b&&(p.add(l,t),p.scale(.5),n=a.oe(p,!1),h=c.oe(p,!1),a=a.gc(n),c=c.gc(h),a.sub(c),a.length()>b))return e;e.ka(n,h);return e};b.PO=function(a,c,e,d){var f=0;if(a.ua==c.ua&&a.ra==c.ra||a.ua==c.sa&&a.ra==c.oa)if(f++,!d)return 1;if(a.sa==c.ua&&a.oa==c.ra||a.sa==c.sa&&a.oa==c.oa){f++;if(2==f)return 2;if(!d)return 1}return c.Si(a.ua, a.ra,e)||c.Si(a.sa,a.oa,e)||a.Si(c.ua,c.ra,e)||a.Si(c.sa,c.oa,e)?1:d&&0!=f?0:0==b.We(a,c)?0:1};b.Fy=function(a,c,e,f,h,l){var k=0,g=a.lq(c.ua,c.ra,l,!1),t=a.lq(c.sa,c.oa,l,!1),p=c.lq(a.ua,a.ra,l,!1),q=c.lq(a.sa,a.oa,l,!1);isNaN(g)||(null!=f&&(f[k]=g),null!=h&&(h[k]=0),null!=e&&(e[k]=d.b.pa(c.ua,c.ra)),k++);isNaN(t)||(null!=f&&(f[k]=t),null!=h&&(h[k]=1),null!=e&&(e[k]=d.b.pa(c.sa,c.oa)),k++);2==k||isNaN(p)||0==g&&0==p||0==t&&1==p||(null!=f&&(f[k]=0),null!=h&&(h[k]=p),null!=e&&(e[k]=d.b.pa(a.ua,a.ra)), k++);2==k||isNaN(q)||1==g&&0==q||1==t&&1==q||(null!=f&&(f[k]=1),null!=h&&(h[k]=q),null!=e&&(e[k]=d.b.pa(c.sa,c.oa)),k++);if(0f[1]&&(a=f[0],f[0]=f[1],f[1]=a,null!=h&&(f=h[0],h[0]=h[1],h[1]=f),null!=e&&(h=d.b.pa(e[0].x,e[0].y),e[0]=e[1],e[1]=h)),k;k=b.se(a,c,l);if(isNaN(k.x))return 0;null!=e&&(e[0]=a.gc(k.x));null!=f&&(f[0]=k.x);null!=h&&(h[0]=k.y);return 1};b.prototype.pH=function(){return 0};b.prototype.iq=function(){};b.prototype.toString=function(){return"Line: ["+ this.ua.toString()+", "+this.ra.toString()+", "+this.sa.toString()+", "+this.oa.toString()+"]"};return b}(d.bE);d.Hb=m})(n||(n={}));(function(d){var m=function(){function d(){this.am=[];this.Ba=-1}d.prototype.Ha=function(){return this.Ba};d.prototype.next=function(){if(null!=this.am&&0!=this.am.length){this.Ba++;var b=this.am[0];1>=this.am.length?this.am=[]:this.am=this.am.slice(1);return b}return this.am=null};d.prototype.RY=function(b){this.am.push(b)};d.prototype.Re=function(){return!0};return d}(); d.PM=m})(n||(n={}));(function(d){(function(d){d[d.enumFillRuleOddEven=0]="enumFillRuleOddEven";d[d.enumFillRuleWinding=1]="enumFillRuleWinding"})(d.HN||(d.HN={}));var m=function(g){function b(a,c){g.call(this);this.$f=!1;this.tr=null;this.fr=this.gr=0;this.bj=null;this.hh=!1;this.Xd=this.tj=this.cf=this.jb=this.kb=null;this.lr=this.Ta=this.hr=0;if(void 0===c)this.$f=a,this.hh=!1,this.qa=this.fr=this.gr=this.hr=0,this.description=d.ye.Ig();else{if(null==c)throw d.f.F();this.$f=a;this.hh=!1;this.qa= this.fr=this.gr=this.hr=0;this.description=c}this.bj=null;this.Ta=0}O(b,g);b.prototype.jn=function(){return 0c)throw d.f.ya();if(this.Qb(a)){if(null==this.jb)throw d.f.ya();var b=this.qa,f=this.wa(a),h=this.Gc(a);this.zl(this.qa+1);this.tc();for(var l=0,k=this.description.Ea;la;c--)b=this.kb.read(c),this.kb.write(c,b+1);this.jb.ez(a,1)}};b.prototype.sq=function(){var a;this.Bu();void 0=== a&&(this.hh=!1,a=this.aa()-1);var c=this.jb.read(a);this.jb.write(a,c|1);null!=this.cf&&(a=this.Gc(a)-1,this.cf.write(a,1),this.tj.write(a,-1))};b.Dj=function(a){return b.se[a]};b.prototype.Qb=function(a){return 0!=(this.jb.read(a)&1)};b.prototype.Eo=function(a){if(this.Qb(a))return!0;var c=this.wa(a);a=this.Gc(a)-1;if(c>a)return!1;c=this.Aa(c);a=this.Aa(a);return c.ub(a)};b.prototype.et=function(a){return 0!=(this.jb.read(a)&2)};b.prototype.dc=function(a,c){this.om(a.description);if(322==a.G()){var b= new d.Wa;if(c||this.u())a.Dp(b),this.Rf(b);a.Bp(b);this.lineTo(b)}else throw d.f.ya();};b.prototype.oq=function(a){var c=0==this.qa;this.Zx(a.o,a.A);this.Wj(a.o,a.B);this.Wj(a.v,a.B);this.Wj(a.v,a.A);this.sq();this.hh=!1;c&&this.lg(256,!1)};b.prototype.jd=function(a,c){if(!a.u()){for(var b=0==this.qa,f=new d.Wa(this.description),h=0;4>h;h++)a.ig(c?4-h-1:h,f),0==h?this.Rf(f):this.lineTo(f);this.sq();this.hh=!1;b&&!c&&this.lg(256,!1)}};b.prototype.add=function(a,c){for(var b=0;bc&&(c=a.aa()-1);if(c>=a.aa()||0>b||0>f||f>a.dw(c))throw d.f.X("index out of bounds");if(0!=f){var e=a.Qb(c)&&b+f==a.dw(c);if(!e||1!=f){this.hh=!1;this.om(a.description);b=a.wa(c)+b+1;h&&(f++,b--);e&&f--;e=this.qa;this.zl(this.qa+f);this.tc();if(h){if(0==f)return;this.kb.add(this.qa);h=a.jb.read(c);h&=-5;this.$f&&(h|=1);this.jb.write(this.jb.size- 1,h);this.jb.add(0)}else this.kb.write(this.jb.size-1,this.qa);h=0;for(var k=this.description.Ea;hp||null==a.xa[p]?this.xa[h].Qk(t*e,d.na.pe(g),f*t,t*e):this.xa[h].Rk(t*e,a.xa[p],t*b,f*t,!0,t,t*e)}if(this.jn())throw d.f.ya();if(a.et(c))throw d.f.ya();this.Dc(1993)}}};b.prototype.dK=function(){for(var a=0,c=this.aa();a=this.aa())throw d.f.F();var c=this.wa(a),b=this.Ka(a); a=this.Qb(a)?1:0;for(var f=0,h=this.description.Ea;fa&&(a=c-1);if(a>=c)throw d.f.F();for(var b=this.wa(a),f=this.Ka(a),h=0,l=this.description.Ea;h=c.aa())throw d.f.F();var e=this.aa();if(a>e)throw d.f.F();0>a&&(a=e);0>b&&(b=c.aa()-1);this.hh=!1;this.om(c.description);c.tc();var l=c.wa(b),k=c.Ka(b),g=this.qa,t=c.Qb(b)&&!f?1:0;this.zl(this.qa+k);this.tc();for(var p=a=a+1;f--)l=this.kb.read(f-1),this.kb.write(f,l+k);c.et(b);this.jb.add(0);for(f=e-1;f>=a+1;f--)e=this.jb.read(f),e&=-5,this.jb.write(f+1,e);e=c.BT().read(b);e&=-5;this.$f&&(e|=1);this.jb.write(a,e)};b.prototype.qA=function(a,c){var b=-1,f=this.aa();if(b>f)throw d.f.F();0>b&&(b=f);this.hh=!1;var h= this.qa;if(null!=a){this.zl(this.qa+c);this.tc();for(var l=b=b+1;h--)l=this.kb.read(h-1),this.kb.write(h,l+c);this.jb.add(0);for(h=f-1;h>=b+1;h--)f=this.jb.read(h), f&=-5,this.jb.write(h+1,f);this.$f&&this.jb.write(b,1)};b.prototype.DH=function(a,c,b){var e=-1;0>a&&(a=this.aa());if(a>this.aa()||e>this.Ka(a)||b>c.length)throw d.f.X("index out of bounds");if(0!=b){a==this.aa()&&(this.kb.add(this.qa),this.$f?this.jb.add(1):this.jb.add(0));0>e&&(e=this.Ka(a));this.tc();var h=this.qa;this.zl(this.qa+b);this.tc();for(var l=0,k=this.description.Ea;la&&(a=this.aa());if(a>=e||c>this.Ka(a))throw d.f.X("index out of bounds");a== this.aa()&&(this.kb.add(this.qa),this.$f?this.jb.add(1):this.jb.add(0));0>c&&(c=this.Ka(a));var h=this.qa;this.zl(this.qa+1);this.tc();var l=this.wa(a);this.xa[0].eh(2*(l+c),b,2*h);b=1;for(var k=this.description.Ea;ba&&(a=b-1);if(a>=b||c>=this.Ka(a))throw d.f.X("index out of bounds");this.tc();var f=this.wa(a); 0>c&&(c=this.Ka(a)-1);f+=c;c=0;for(var h=this.description.Ea;c=a+1;b--)f=this.kb.read(b),this.kb.write(b,f-1);this.qa--;this.lh--;this.Dc(1993)};b.prototype.DF=function(a,c,b,f){a=this.wa(a)+c;b=this.wa(b)+f;if(ba||b>this.D()-1)throw d.f.F();f=this.Da();c=0;f.Tb(a);do{for(;f.Ca();){a=f.ba();if(f.Db()==b)break;a=a.Rb();c+=a}if(f.Db()==b)break}while(f.Ya());return c};b.prototype.eQ=function(a, c,b){c=this.wa(a)+c;b=this.wa(a)+b;if(0>c||b>this.D()-1)throw d.f.F();var e=this.Da();if(c>b){if(!this.Qb(a))throw d.f.F("cannot iterate across an open path");e.iC()}var h=a=0;e.Tb(c);do h+=a,a=e.ba().Rb();while(e.Db()!=b);return h};b.prototype.Gg=function(){return d.Pi.Sm(this,null)};b.prototype.EU=function(a,c,b,f){for(var e=a;ec?(l=this.jn(),g=0,r=this.qa):(l=this.et(c),g=this.wa(c),r=this.Gc(c));g=this.wa(c))return c;c--}else c++;if(0<=c&&c=this.wa(c)&&ab){for(c=0;cc;){var f=c+(b-c>>1),h=this.wa(f);if(a=c)c=f+1;else return this.Ta=f}return this.Ta=c};b.prototype.lT=function(a){var c= this.Pa(0);this.CT();var b=this.Gc(a),f=this.wa(a);a=-1;var h=new d.b,l=new d.b;h.y=-Infinity;h.x=-Infinity;for(f+=0;fb.JT())this.ob.Ly(null);else return!0;b=d.wy.create(this,a,c);this.ob.Ly(b);return!0};b.prototype.jc=function(){var a=g.prototype.jc.call(this);if(!this.Hc()){var c=this.aa();null!=this.kb&&this.kb.zk(a,0,c+1);null!=this.jb&&this.jb.zk(a,0,c)}return a};b.prototype.iH=function(a){return null!=this.cf?this.cf.read(a):1};b.prototype.ic=function(a,c,b){var e=this.bw(a);if(a==this.Gc(e)- 1&&!this.Qb(e))throw d.f.X("index out of bounds");this.tc();var h=this.cf,l=1;null!=h&&(l=h.read(a)&7);switch(l){case 1:c.Is();break;case 2:throw d.f.ya();case 4:throw d.f.ya();default:throw d.f.ya();}c=c.get();b?c.Fg(d.ye.Ig()):c.Fg(this.description);e=a==this.Gc(e)-1&&this.Qb(e)?this.wa(e):a+1;h=new d.b;this.w(a,h);c.Mc(h);this.w(e,h);c.Zc(h);if(!b)for(b=1,h=this.description.Ea;b=this.aa())throw d.f.F();if(this.u())c.Oa();else{if(this.et(a))throw d.f.X("not implemented");var b=this.Pa(0),f=new d.b,h=new d.h;h.Oa();var l=this.wa(a);for(a=this.Gc(a);l=this.aa())throw d.f.F();if(this.u())c.Oa();else{if(this.et(a))throw d.f.X("not implemented");var b=this.Pa(0),f=new d.b,h=new d.h;h.Oa();var l=this.wa(a);for(a=this.Gc(a);lthis.D())return!1;a=d.ma.zF(this);this.ob.ME(a);return!0};b.prototype.AO=function(){null==this.ob&&(this.ob=new d.wl);if(null!=this.ob.np)return!0;this.ob.NE(null);var a=d.ma.$P(this);this.ob.NE(a);return!0};b.prototype.Hp=function(a){this.lr=a};b.prototype.xo=function(){return this.lr};b.prototype.TE=function(a){if(this==a)throw d.f.X("MultiPathImpl.add");for(var c=this.aa(),b=0;b=c||ab?a.D():b;if(0>c||c>a.D()||bc?b:c;if(0>b||0>c)throw d.f.F();if(0!=c){b=c-0;c=this.qa;this.resize(this.qa+b);for(var f=0;fa||a>=this.D())throw d.f.X("index out of bounds");this.tc();for(var c=0,b=this.description.Ea;cc||0>c||0>b)throw d.f.F();this.Ud(1);if(0!=b){c=b-0;b=this.qa;this.$J(this.qa+c);for(var f=this.Pa(0),h=0;hc?b:c;if(0>b||0>c)throw d.f.F();if(0!=c){b=c-0;if(0!=(b&1))throw d.f.F();c=this.qa;this.$J(this.qa+b/2);this.xa[0].hs(2*c,b,a,0,!0)}};b.prototype.$J=function(a){var c=this.qa;this.zl(a);if(this.qa>c){a=1;for(var b=this.description.Ea;ac||c>=this.qa||b=this.qa||0>b||a.length!=c)throw d.f.F();c=this.Pa(0);var f=null,h=d.na.pe(1),l=this.hasAttribute(1);l&&(f=this.Pa(1));var b=b-0,g=[],r=[];c.pl(0,2*b,g,0,!0);f.pl(0,b,r,0,!0);for(c=0;cc?c:b};g.s_=function(){return 4};g.dh=function(b,a){var c=5381;void 0!==a?c=(a<<5)+a+(b&255):c=(c<<5)+c+(b&255);c=(c<<5)+c+(b>>8&255);c=(c<<5)+c+(b>>16&255);return(c<<5)+c+(b>>24&255)&2147483647};g.Zi=function(){throw Error("Not Implemented");};g.o_=function(){return-Infinity};g.q_=function(){return Infinity}; g.g_=function(){return 2147483647};g.TZ=function(){return 2.220446049250313E-16};g.UZ=function(){return 1.7976931348623157E308};g.GB=function(b){return g.cZ(b)+12345&2147483647};g.fI=function(b){var a=32,c=b%g.oA|0,e=b/g.oA|0;if(0===(a&=63))return b;32>a?(b=c>>>a|e<<32-a,a=e>>a):(b=e>>a-32,a=0<=e?0:-1);return a*g.oA+(b>>>0)};g.cZ=function(b){b|=0;return(1103495168*b|0)+(20077*b|0)|0};g.truncate=function(b){return 0>b?-1*Math.floor(Math.abs(b)):Math.floor(b)};g.fV=Math.pow(2,53)-1;g.WZ=-g.fV;g.hD= 65536;g.J_=16777216;g.oA=g.hD*g.hD;return g}();d.J=m})(n||(n={}));(function(d){(function(d){d[d.Project=0]="Project";d[d.Union=1]="Union";d[d.Difference=2]="Difference";d[d.Proximity2D=3]="Proximity2D";d[d.Relate=4]="Relate";d[d.Equals=5]="Equals";d[d.Disjoint=6]="Disjoint";d[d.Intersects=7]="Intersects";d[d.Within=8]="Within";d[d.Contains=9]="Contains";d[d.Crosses=10]="Crosses";d[d.Touches=11]="Touches";d[d.Overlaps=12]="Overlaps";d[d.Buffer=13]="Buffer";d[d.Distance=14]="Distance";d[d.Intersection= 15]="Intersection";d[d.Clip=16]="Clip";d[d.Cut=17]="Cut";d[d.DensifyByLength=18]="DensifyByLength";d[d.DensifyByAngle=19]="DensifyByAngle";d[d.LabelPoint=20]="LabelPoint";d[d.GeodesicBuffer=21]="GeodesicBuffer";d[d.GeodeticDensifyByLength=22]="GeodeticDensifyByLength";d[d.ShapePreservingDensify=23]="ShapePreservingDensify";d[d.GeodeticLength=24]="GeodeticLength";d[d.GeodeticArea=25]="GeodeticArea";d[d.Simplify=26]="Simplify";d[d.SimplifyOGC=27]="SimplifyOGC";d[d.Offset=28]="Offset";d[d.Generalize= 29]="Generalize";d[d.SymmetricDifference=30]="SymmetricDifference";d[d.ConvexHull=31]="ConvexHull";d[d.Boundary=32]="Boundary";d[d.SimpleRelation=33]="SimpleRelation"})(d.rN||(d.rN={}));var m=function(){function g(){}g.prototype.G=function(){return null};g.prototype.qo=function(){return!1};g.prototype.vv=function(){return!1};g.MZ=function(b){d.T.gh(b.G())&&(b=b.ob,null!=b&&(b.Ly(null),b.ME(null)))};return g}();d.ef=m})(n||(n={}));(function(d){var m=function(g){function b(){g.apply(this,arguments)} O(b,g);b.prototype.G=function(){return 13};b.local=function(){null===b.$&&(b.$=new b);return b.$};b.prototype.V=function(a,c,b,f,h){return a instanceof d.T?(h=new d.hd(a),this.V(h,c,[b],!1,f).next()):!0===f?(b=new d.CD(a,c,b,!1,h),d.ei.local().V(b,c,h)):new d.CD(a,c,b,!1,h)};b.$=null;return b}(d.ef);d.BD=m})(n||(n={}));(function(d){var m=function(){function g(b,a,c,e,f){this.Ba=-1;this.he=b;this.HA=a;this.xt=c;this.sV=new d.h;this.sV.Oa();this.To=-1;this.lc=f}g.prototype.next=function(){for(var b;null!= (b=this.he.next());)return this.Ba=this.he.Ha(),this.To+1=b.D()?!0:!1:1!=b.aa()?!1:2>=b.D()?!0:d.Iu.UH(b,0)};return g}();d.ED=m})(n||(n={}));(function(d){var m=function(g){function b(){g.apply(this,arguments)}O(b,g);b.prototype.G= function(){return 17};b.local=function(){null===b.$&&(b.$=new b);return b.$};b.prototype.V=function(a,c,b,f,h){return new d.dN(a,c,b,f,h)};b.$=null;return b}(d.ef);d.cN=m})(n||(n={}));(function(d){var m=function(){function g(b,a,c,e,f){this.qg=null;if(null==a||null==c)throw d.f.X("invalid argument");this.pV=b;this.UA=a;this.wI=c;b=d.ma.Yv(a,c);this.ta=d.ma.be(e,b,!0);this.vI=-1;this.je=f}g.prototype.Ha=function(){return 0};g.prototype.next=function(){this.GS();return++this.vIthis.qg.length&& (this.qg.length=0)};g.prototype.HS=function(){var b=new d.ia(0),a=new d.fd,c=a.gG(),e=a.Jb(this.UA),f=a.Jb(this.wI),h=new d.Dg;try{h.Wr(a,this.ta,this.je);h.Hl(c,e,f,b);var l=a.Se(e),k=new d.Ia,g=new d.Ia;this.qg.length=0;this.qg.push(k);this.qg.push(g);for(e=0;e=c)throw d.f.F();return new d.eN(a,c,b)};b.$=null;return b}(d.ef); d.Km=m})(n||(n={}));(function(d){var m=function(){function g(b,a){this.Ba=-1;this.he=b;this.Jt=a}g.prototype.Ha=function(){return this.Ba};g.prototype.next=function(){var b;return null!=(b=this.he.next())?(this.Ba=this.he.Ha(),this.IR(b)):null};g.prototype.IR=function(b){if(b.u()||1>b.tb())return b;var a=b.G();if(1736==a||1607==a)return this.vz(b);if(d.T.Oc(a))return this.KR(b);if(197==a)return this.JR(b);throw d.f.ya();};g.prototype.KR=function(b){if(b.Rb()<=this.Jt)return b;var a=new d.Ua(b.description); a.dc(b,!0);return this.vz(a)};g.prototype.JR=function(b){var a=new d.Ia(b.description);a.jd(b,!1);var c=new d.h;b.s(c);b=c.fa();return c.N()<=this.Jt&&b<=this.Jt?a:this.vz(a)};g.prototype.vz=function(b){for(var a=b.Ja(),c=b.Da();c.Ya();)for(var e=!0;c.Ca();){var f=c.ba();if(322!=f.G())throw d.f.X("not implemented");var h=c.Fo(),l=f.Rb();if(l>this.Jt){var k=Math.ceil(l/this.Jt),l=new d.Wa(b.description);e&&(f.Dp(l),a.Rf(l));for(var g=e=1/k,t=0,k=k-1;tl)return a;var k= a.G(),g=c.G(),t=new d.h,p=new d.h,q=new d.h;a.s(t);c.s(p);q.I(t);q.Nb(p);var q=d.ma.be(e,q,!1),m=q*Math.sqrt(2)*1.00001,v=new d.h;v.I(t);v.O(m,m);if(!v.Yb(p))return a;if(1==h&&2==l)return b.RL(a,c,g,e,f);if(33==k)switch(d.xl.Oc(g)?(e=new d.Ua(c.description),e.dc(c,!0)):e=c,g){case 1736:return b.fO(a,e,q);case 1607:return b.jO(a,e,q);case 550:return b.UN(a,e,q);case 197:return b.ON(a,e,q);case 33:return b.bO(a,e,q);default:throw d.f.F();}else if(550==k)switch(g){case 1736:return b.BM(a,c,q);case 197:return b.lM(a, c,q);case 33:return b.wM(a,c,q)}return d.Dg.Wm(a,c,e,f)};b.fO=function(a,c,b){return 0==d.gd.VH(c,a,b)?a:a.Ja()};b.jO=function(a,c,b){var e=a.w();c=c.Da();for(var h=b*Math.sqrt(2)*1.00001,l=h*h,k=new d.h;c.Ya();)for(;c.Ca();){var g=c.ba();g.s(k);k.O(h,h);if(k.contains(e)){if(g.lt(e,b))return a.Ja();var t=g.ec();if(d.b.sc(e,t)<=l)return a.Ja();t=g.Cc();if(d.b.sc(e,t)<=l)return a.Ja()}}return a};b.UN=function(a,c,b){var e=c.Pa(0);c=c.D();var h=a.w(),l=new d.b;b=b*Math.sqrt(2)*1.00001;b*=b;for(var k= 0;kb.D())return this.sF(a,b,c);this.Au();c=this.sF(b,a,c);this.Au();return c}if(550==a.G()&&d.T.Ic(b.G()))return c=this.tF(b,a,c),this.Au(),c;if(550==b.G()&&d.T.Ic(a.G()))return this.tF(a,b,c);if(550==a.G()&&550==b.G()){if(a.D()>b.D())return this.uF(a,b);this.Au();c=this.uF(b,a);this.Au();return c}return 0};b.prototype.sF=function(a,b,e){var c=a.Da(),h=b.Da(),l=new d.h,g=new d.h,r=1.7976931348623157E308;if(!e&&this.pZ(a,b,c,h))return 0;for(;c.Ya();)for(;c.Ca();)if(a=c.ba(),a.s(l), !(l.Yx(this.Jh)>r)){for(;h.Ya();)for(;h.Ca();)if(b=h.ba(),b.s(g),l.Yx(g)l)){for(var q=0;qc))for(var p=0;pb.Ka(a))){var f=b.wa(a),h=b.Gc(a)-1,l=b.Pa(0),g=b.Qb(a),r=new d.ia(0);r.yb(b.Ka(a)+1);var t=new d.ia(0);t.yb(b.Ka(a)+1);r.add(g?f:h);r.add(f);for(f=new d.b;1this.SI&&g>h&&(d=e,h=g)}return d};g.prototype.Re=function(){return!0};return g}();d.hN=m})(n||(n={}));(function(d){var m= function(g){function b(){g.apply(this,arguments)}O(b,g);b.prototype.G=function(){return 29};b.prototype.V=function(a,b,e,f){return a instanceof d.T?(a=new d.hd(a),this.V(a,b,e,f).next()):new d.hN(a,b,e,f)};b.local=function(){null===b.$&&(b.$=new b);return b.$};b.$=null;return b}(d.ef);d.FD=m})(n||(n={}));(function(d){var m=function(g){function b(){g.apply(this,arguments)}O(b,g);b.prototype.G=function(){return 21};b.local=function(){null===b.$&&(b.$=new b);return b.$};b.prototype.V=function(a,b,e, f,h,l,g,r){return a instanceof d.T?(r=new d.hd(a),this.V(r,b,e,[f],h,l,!1,g).next()):!0===g?(e=new d.HD(a,b,e,f,h,!1,!1,r),d.ei.local().V(e,b,r)):new d.HD(a,b,e,f,h,!1,!1,r)};b.$=null;return b}(d.ef);d.GD=m})(n||(n={}));(function(d){var m=function(){function g(b,a,c,e,f,h,l,g){if(h)throw d.f.df();if(null==a)throw d.f.F();this.Ba=-1;this.Gt=b;this.Rg=a;this.$e=c;this.xt=e;this.Po=f;this.To=-1;this.lc=g;this.tV=new d.h;this.tV.Oa()}g.prototype.next=function(){for(var b;null!=(b=this.Gt.next());)return this.Ba= this.Gt.Ha(),this.To+1a.tb())return 0;if(4==e)throw d.f.df();var c=d.fb.kc(b),l=d.fb.gw(c),g=d.fb.Rv(c),l=l*(2-l),r=c.Od().Ai,t=a.G(),p;1736==t||197==t?p=a.Gg():d.T.Oc(t)?(p=new d.Ua(a.description),p.dc(a,!0)):p=a;if(0==c.Eb(b)){if(d.fb.Jc(b)){p=d.gi.Mj(p,b);1607==t&&p==a&&(p=d.T.ne(a));a=new d.Ac;d.fb.Bh(b).Tn(a);for(var t=0,q=p.D();t=this.ej||7f?this.cK():0==c?550==a&&33==this.Zj?this.cK():g.$(b,e):g.$(b,e);if((-1==this.ej||4==this.ej)&&197==a&&197==this.Zj)return c=this.sf,a=new d.h,b.s(a),e=new d.h,c.s(e),a.Ma(e),c=new d.ci,b.copyTo(c),c.Gp(a),c;if(197==a&&0==d.T.lf(this.Zj)||197==this.Zj&&0==d.T.lf(a))return e=197==a?b:this.sf,b=197==a?this.sf:b,a=new d.h,e.s(a),d.me.clip(b,a,c,0);if(0==d.T.lf(a)&&0g&&(g=c.hA());h=c.D()+e.D();if(g*e.D()>Math.log(h)*h*4)return null;h=null;g=e.Da();null!=r&&null!=r.Mb&&(h=r.Mb);null==h&&20z){if(null!=h)for(null==r?r=h.nT(B,f):r.Xn(B,f),z=r.next();-1!=z;z=r.next()){g.Tb(h.ja(z));for(var z=g.ba(),A=B.Ma(z,null,p,null,f),z=0;zD?(b=t.Db()-c.wa(y),v=1,D=0==D?3:2):v++:(e.dc(C,0==D),D=1);break;case 0:D=0;b=-1;v=0;break;default:return null}C=F}}}else{z=this.dF(a,B.ec(),f);if(0>z)return null;1==z?(2>D&&(b=t.Db()-c.wa(y),D=0==D?3:2),v++):(b=-1,v=0)}q.clear(!1)}else 0!=z&&1==z&&(0==D?(D=3,b=t.Db()-c.wa(y)):1==D?(D=2,b=t.Db()-c.wa(y)):v++)}2<=D&&(e.As(c,y,b,v,3==D),b=-1)}return e};g.prototype.dF=function(b,a,c){return d.ff.ln(b, a,c)};g.prototype.eF=function(b,a,c){var e=a.ec();a=a.Cc();var f=d.ff.ln(b,e,c),h=d.ff.ln(b,a,c);if(1==f&&0==h||0==f&&1==h)return-1;if(0==f||0==h)return 0;if(1==f||1==h)return 1;f=new d.b;f.add(e,a);f.scale(.5);b=d.ff.ln(b,f,c);return 0==b?0:1==b?1:-1};g.$=function(b,a){return a?b:b.Ja()};g.prototype.cK=function(){null==this.JI&&(this.JI=this.sf.Ja());return this.JI};g.prototype.Re=function(){return!0};return g}();d.JD=m})(n||(n={}));(function(d){var m=function(g){function b(){g.apply(this,arguments)} O(b,g);b.prototype.G=function(){return 28};b.local=function(){null===b.$&&(b.$=new b);return b.$};b.prototype.V=function(a,b,e,f,h,l,g){return a instanceof d.T?(a=new d.hd(a),this.V(a,b,e,f,h,l,g).next()):new d.mN(a,b,e,f,h,l,g)};b.$=null;return b}(d.ef);d.KD=m})(n||(n={}));(function(d){var m=function(){function g(b,a,c,e,d,h,l){this.Ba=-1;this.he=b;this.ek=a;this.Qa=c;this.jj=e;this.hB=d;this.FI=h;this.je=l}g.prototype.next=function(){var b=this.he.next();return null!=b?(this.Ba=this.he.Ha(),this.$M(b)): null};g.prototype.Ha=function(){return this.Ba};g.prototype.$M=function(b){var a;a=0>=this.FI?d.ma.ah(this.ek,b,!1):this.FI;return d.SL.V(b,this.Qa,this.jj,this.hB,a,this.je)};g.prototype.Re=function(){return!0};return g}();d.mN=m})(n||(n={}));(function(d){(function(d){d[d.clipToDomainOnly=1]="clipToDomainOnly";d[d.clipWithHorizon=2]="clipWithHorizon";d[d.foldAndClipWithHorizon=3]="foldAndClipWithHorizon"})(d.Up||(d.Up={}));var m=function(g){function b(){g.apply(this,arguments)}O(b,g);b.prototype.G= function(){return 0};b.local=function(){null===b.$&&(b.$=new b);return b.$};b.prototype.V=function(a,b,e){return a instanceof d.T?(a=new d.hd(a),this.V(a,b,e).next()):new d.nN(a,b,e)};b.prototype.transform=function(a,b,e,f){return d.ko.transform(a,b,e,f,!0)};b.prototype.iL=function(a,b,e){return d.ko.iL(a,b,e)};b.prototype.Cu=function(a,b,e,f){return d.ko.Cu(a,b,e,f)};b.prototype.VY=function(a,b,e,f){return d.ko.fs(a,b,e,f)};b.prototype.hL=function(a,b,e,f){return d.ko.hL(a,b,e,f)};b.$=null;return b}(d.ef); d.ns=m})(n||(n={}));(function(d){var m=function(){function g(b,a,c){this.Ba=-1;this.he=b;this.JV=a;this.je=c}g.prototype.next=function(){var b=this.he.next();return null!=b?(this.Ba=this.he.Ha(),d.ko.Xg(b,this.JV,this.je)):null};g.prototype.Ha=function(){return this.Ba};g.prototype.Re=function(){return!0};return g}();d.nN=m})(n||(n={}));(function(d){var m=function(){function b(){}b.prototype.reset=function(){this.Lh=this.Zk=-1;this.pt=this.Zq=!1};b.prototype.rS=function(a,b,e){for(a.Tb(b,e);a.Ca();){var c= a.ba(),c=c.Rb();if(0!=c)return a.Db()}for(a.Tb(b,e);a.nA();)if(c=a.Li(),c=c.Rb(),0!=c)return a.Db();return-1};b.prototype.sS=function(a,b){for(a.Tb(b,-1);a.nA();)if(0!=a.Li().Rb())return a.Db();return-1};b.prototype.qS=function(a,b){a.Tb(b,-1);for(a.ba();a.Ca();)if(0!=a.ba().Rb())return a.Db();return-1};b.prototype.pS=function(a,b,e,f){this.Zk=this.rS(b,e,f);if(-1!=this.Zk){b.Tb(this.Zk,-1);var c=b.ba(),l=c.gc(c.oe(a,!1));e=d.b.sc(l,a);f=new d.b;f.L(l);f.sub(c.ec());l=new d.b;l.L(a);l.sub(c.ec()); this.Zq=0>f.Ui(l);this.Lh=this.qS(b,this.Zk);if(-1!=this.Lh){b.Tb(this.Lh,-1);var c=b.ba(),g=c.oe(a,!1),g=c.gc(g),r=d.b.sc(g,a);r>e?this.Lh=-1:(f.L(g),f.sub(c.ec()),l.L(a),l.sub(c.ec()),this.pt=0>f.Ui(l))}-1==this.Lh&&(this.Lh=this.sS(b,this.Zk),-1!=this.Lh&&(b.Tb(this.Lh,-1),c=b.ba(),g=c.oe(a,!1),g=c.gc(g),r=d.b.sc(g,a),r>e?this.Lh=-1:(f.L(g),f.sub(c.ec()),l.L(a),l.sub(c.ec()),this.pt=0>f.Ui(l),a=this.Zk,this.Zk=this.Lh,this.Lh=a,a=this.Zq,this.Zq=this.pt,this.pt=a)))}};b.prototype.cQ=function(a, b,e,d,h){e=e.Da();this.pS(a,e,d,h);if(-1!=this.Zk&&-1==this.Lh)return this.Zq;if(-1!=this.Zk&&-1!=this.Lh){if(this.Zq==this.pt)return this.Zq;e.Tb(this.Zk,-1);a=e.ba().Eg(1);e.Tb(this.Lh,-1);b=e.ba().Eg(0);return 0<=a.Ui(b)?!0:!1}return b};return b}(),g=function(b){function a(){b.apply(this,arguments)}O(a,b);a.local=function(){null===a.$&&(a.$=new a);return a.$};a.prototype.G=function(){return 3};a.prototype.Yz=function(a,b,f,h){void 0===h&&(h=!1);if(a.u())return new d.Nm;b=b.w();var c=a,e=a.G(); 197==e&&(c=new d.Ia,c.jd(a,!1),e=1736);switch(e){case 33:return this.EJ(c,b);case 550:return this.qJ(c,b);case 1607:case 1736:return this.YV(c,b,f,h);default:throw d.f.X("not implemented");}};a.prototype.Zz=function(a,b){if(a.u())return new d.Nm;b=b.w();var c=a,e=a.G();197==e&&(c=new d.Ia,c.jd(a,!1),e=1736);switch(e){case 33:return this.EJ(c,b);case 550:case 1607:case 1736:return this.qJ(c,b);default:throw d.f.X("not implemented");}};a.prototype.$z=function(a,b,f,h){if(0>h)throw d.f.F();if(a.u())return[]; b=b.w();var c=a,e=a.G();197==e&&(c=new d.Ia,c.jd(a,!1),e=1736);switch(e){case 33:return this.DW(c,b,f,h);case 550:case 1607:case 1736:return this.aW(c,b,f,h);default:throw d.f.X("not implemented");}};a.prototype.YV=function(a,b,f,h){if(1736==a.G()&&f&&(f=new d.h,a.s(f),f=d.ma.be(null,f,!1),0!=(h?d.gd.fe(a,b,0):d.gd.fe(a,b,f)))){var c=new d.Nm(b,0,0);h&&c.MK(!0);return c}for(var e=a.Da(),c=new d.b,g=f=-1,t=1.7976931348623157E308,p=0;e.Ya();)for(;e.Ca();){var q=e.ba(),q=q.gc(q.oe(b,!1)),u=d.b.sc(q, b);ud.b.zp(b,q.ec(),q.Cc()),1=b)return a.slice(0);a.length=h;return a.slice(0)};a.$=null; return a}(d.ef);d.ry=g})(n||(n={}));(function(d){var m=function(g){function b(){g.apply(this,arguments)}O(b,g);b.prototype.G=function(){return 4};b.prototype.V=function(a,b,e,f,h){return d.Om.XB(a,b,e,f,h)};b.local=function(){null===b.$&&(b.$=new b);return b.$};b.prototype.vv=function(a){return d.Fu.bz(a)};b.prototype.qo=function(a,b,e){return d.Fu.SE(a,b,e)};b.$=null;return b}(d.ef);d.oN=m})(n||(n={}));(function(d){var m=function(g){function b(){g.apply(this,arguments)}O(b,g);b.prototype.G=function(){return 33}; b.prototype.V=function(a,b,e,f,h){return 1073741824===a?!d.Fd.YB(b,e,f,4,h):d.Fd.YB(b,e,f,a,h)};b.local=function(){null===b.$&&(b.$=new b);return b.$};b.prototype.vv=function(a){return d.Fu.bz(a)};b.prototype.qo=function(a,b,e){return d.Fu.SE(a,b,e)};b.$=null;return b}(d.ef);d.Gj=m})(n||(n={}));(function(d){var m=function(){function g(b,a,c,e){this.je=e;this.qV=c;this.Ba=-1;if(null==b)throw d.f.F();this.$k=b;this.ek=a}g.prototype.next=function(){var b;return null!=(b=this.$k.next())?(this.Ba=this.$k.Ha(), this.BC(b)):null};g.prototype.Ha=function(){return this.Ba};g.prototype.BC=function(b){if(null==b)throw d.f.F();return d.sy.SK(b,this.ek,this.qV,this.je)};g.prototype.Re=function(){return!0};return g}();d.pN=m})(n||(n={}));(function(d){var m=function(g){function b(){g.apply(this,arguments)}O(b,g);b.prototype.G=function(){return 26};b.prototype.V=function(a,b,e,f){return a instanceof d.T?(a=new d.hd(a),this.V(a,b,e,f).next()):new d.pN(a,b,e,f)};b.prototype.Vq=function(a,b,e,f,h){return 0<(void 0!== f?d.sy.Vq(a,b,e,f,h):d.sy.Vq(a,b,!1,null,e))};b.local=function(){null===b.$&&(b.$=new b);return b.$};b.$=null;return b}(d.ef);d.Lm=m})(n||(n={}));(function(d){var m=function(){function a(){this.mr=0}a.prototype.gY=function(a){this.mr&=-2;this.mr|=a?1:0};a.prototype.gn=function(){return 0!=(this.mr&1)};a.prototype.gH=function(){return this.gn()?0:1};return a}();d.JZ=m;var g=function(){return function(){}}(),b=function(){return function(a,b,c,e){this.x=a;this.y=b;this.$i=c;this.mn=e}}(),a=function(){function a(a){this.bf= a}a.prototype.compare=function(a,b,c){a=a.ja(c);b=this.bf.Nf.read(2*b);a=this.bf.Nf.read(2*a);b-=a;return 0>b?-1:0f?1:0};return a}(),e=function(){function a(a, b){this.PJ=new d.b;this.parent=a;this.XT=b}a.prototype.gs=function(a,b,c){var e=this.parent,d=this.XT;c.Gd(a,b,function(a,b){return e.ki(a,b,d)})};a.prototype.Qq=function(a){a=this.parent.Gi.get(a);this.parent.Nf.fc(2*(a>>1),this.PJ);return this.PJ.y+(0!=(a&1)?this.parent.gk:-this.parent.gk)};return a}(),f=function(){function f(a,b,c,e,f){this.yI=a.description;this.Y=a;this.mh=b;this.gk=d.ma.ah(this.mh,a,!1);this.pp=d.ma.ah(this.mh,a,!0);this.cB=c;this.oV=this.yI.Ea;this.ib=[];this.cp=[];this.Hh= new d.Xp;this.hb=new d.tk;this.ve=new d.$d;this.jI=this.Ul=f}f.prototype.zA=function(){this.jI=!0;return(!d.T.Ic(this.Y.G())||this.MF()&&this.LF(!1))&&this.oQ()?d.T.Ic(this.Y.G())?this.rQ()?1607==this.Y.G()?this.tQ()?2:0:this.uQ()?this.vQ():0:0:2:0};f.prototype.HC=function(a,b){var c=this.Nf.read(2*a);a=this.Nf.read(2*a+1);var e=this.Nf.read(2*b);b=this.Nf.read(2*b+1);var f=!d.Hu.ow(c,a,e,b,this.gk*this.gk);return f?f:0==this.Y.tb()?!1:c==e&&a==b};f.prototype.MF=function(){for(var a=this.Y,b=a.$f? 3:2,c=0,e=a.aa();cthis.gk)){if(a&&e){var h=f.ct(1,0),f=f.ct(1,0);if(Math.abs(f-h)>b)continue}this.ve=new d.$d(2,c.Db(),-1);return!1}}return!0};f.prototype.oQ=function(){var b=this.Y,c=null;d.T.Ic(this.Y.G())&&(c=this.Y);var f=(this.jI||this.Ul)&&null!=c,h=b.D();this.Nf=b.Pa(0);this.Gi=new d.ia(0); this.Gi.yb(2*h);this.Fi=new d.ia(0);this.Fi.yb(2*h);f&&(null==this.im&&(this.im=new d.ia(0)),this.im.yb(h));for(var g=b=0;g=c.Gc(b);)b++;this.im.add(b)}(new d.Gu).sort(this.Fi,0,2*h,new e(this,f));this.hb.clear();this.hb.Ep(new a(this));this.hb.Qe(h);c=0;for(h*=2;c>1,0==(b&1)){b=this.hb.addElement(f,-1);g=this.hb.Ve(b);if(-1!=g&&!this.HC(this.hb.ja(g),f))return this.ve= new d.$d(3,f,this.hb.ja(g)),!1;var q=this.hb.nb(b);if(-1!=q&&!this.HC(this.hb.ja(q),f))return this.ve=new d.$d(3,f,this.hb.ja(q)),!1}else if(b=this.hb.search(f,-1),g=this.hb.Ve(b),q=this.hb.nb(b),this.hb.Ld(b,-1),-1!=g&&-1!=q&&!this.HC(this.hb.ja(g),this.hb.ja(q)))return this.ve=new d.$d(3,this.hb.ja(g),this.hb.ja(q)),!1;return!0};f.prototype.rQ=function(){return 10>this.Y.D()?this.pQ():this.qQ()};f.prototype.qQ=function(){var a=new d.fd;a.Jb(this.Y);var b=new d.$d;return d.Ju.sJ(!1,a,this.gk,b,this.je)? (b.lm=a.Za(b.lm),b.mm=a.Za(b.mm),this.ve.ls(b),!1):!0};f.prototype.pQ=function(){for(var a=this.Y,b=a.Da(),a=a.Da();b.Ya();)for(;b.Ca();){var c=b.ba();if(!b.Io()||!b.SU()){a.xX(b);do for(;a.Ca();){var e=a.ba(),e=c.xs(e,this.gk,!0);if(0!=e)return this.ve=new d.$d(2==e?5:4,b.Db(),a.Db()),!1}while(a.Ya())}}return!0};f.prototype.uQ=function(){var a=this.Y;this.ib.length=0;this.cp.length=0;this.ug=a.Da();this.ug.iC();var b=new d.ia(0);b.yb(10);for(var c=NaN,e=0,f=0,a=2*a.D();f>1,g=this.Nf.read(2*h),m=this.Nf.read(2*h+1);if(0!=b.size&&(g!=c||m!=e)){if(!this.JJ(b))return!1;null!=b&&b.clear(!1)}b.add(h);c=g;e=m}}return this.JJ(b)?!0:!1};f.prototype.tQ=function(){for(var a=this.Y,b=Array(a.aa()),c=0,e=a.aa();c>1;this.Nf.fc(2*n,v);c=this.im.get(n);f=b[c];h=a.wa(c);m=a.Gc(c)-1;e.Il=n==h||n==m;e.Ty=this.Ul?!f&&e.Il:e.Il;e.$i=c;e.x=v.x;e.y=v.y;e.mn=n;for(var w= new g,y=1,D=this.Fi.size;y>1;this.Nf.fc(2*n,v);c=this.im.get(n);c!=e.$i&&(f=b[c],h=a.wa(c),m=a.Gc(c)-1);var z,B=n==h||n==m;z=this.Ul?!f&&e.Il:e.Il;w.x=v.x;w.y=v.y;w.$i=c;w.mn=n;w.Ty=z;w.Il=B;if(w.x==e.x&&w.y==e.y)if(this.Ul){if(!w.Ty||!e.Ty)if(w.$i!=e.$i||!w.Il&&!e.Il)return this.ve=new d.$d(8,w.mn,e.mn),!1}else if(!w.Il||!e.Il)return this.ve=new d.$d(5,w.mn,e.mn),!1;c=e;e=w;w=c}return!0};f.prototype.OF=function(){for(var a=this.Y,c=[],e=-1, f=!1,h=0,g=a.aa();h>1;this.Nf.fc(2*m,f);for(var h=this.im.get(m),e=new b(f.x,f.y,h,m,c[h]),a=[],v=1,g=this.Fi.size;v>1;this.Nf.fc(2*m,f);h=this.im.get(m);h=new b(f.x,f.y,h,m,c[h]);if(h.x==e.x&&h.y==e.y){if(h.$i==e.$i)return this.ve=new d.$d(9,h.mn,e.mn),!1;0<=c[h.$i]&&c[h.$i]==c[e.$i]&&(0!=a.length&&a[a.length-1]==e||a.push(e), a.push(h))}e=h}if(0==a.length)return!0;h=new d.Xp(!0);d.J.Mv(c,-1);f=-1;v=new d.b;v.$c();e=0;for(g=a.length;e=a.hf())return this.ve=new d.$d(6,1==a.aa()?1:-1,-1),0;if(1==a.aa())return this.Ul&&!this.OF()?0:2;this.hp=d.ia.yd(a.aa(),0);this.oB=d.ia.yd(a.aa(),-1);for(var b=-1,e=0,f=0,h=a.aa();fg?0:256);if(0b||e>=1;f=this.Nf.read(2*e+1);if(f!=this.wp&&0!=a.size){if(!this.iu(a))return 0;null!=a&&a.clear(!1)}a.add(e);this.wp=f}return 0< this.Vt&&!this.iu(a)?0:this.Ul?0==this.ve.Ii&&this.OF()?2:0:0==this.ve.Ii?2:1};f.prototype.JJ=function(a){if(1==a.size)return!0;for(var b=0,c=a.size;bf.oa){var l=this.ug.Db(),g=this.Fv(f,e,this.ug.Ta,!0);0a.Ka(b.Ta))){c.zX();for(var w,y,D=!0;b.Ca();){var z=b.ba(),B=c.Li();if(b.Db()> c.Db())break;D&&(m.add(b.Db()),n.add(c.Ik()),D=!1);y=m.Fc();var A=b.Ik();if(1this.pp?m.add(b.Ik()):h&&(w=a.Yc(1,m.Fc(),0),z=z.Ns(1,0),Math.abs(z-w)>g&&m.add(b.Ik()));y>this.pp?n.add(c.Db()):h&&(w=a.Yc(1,n.Fc(),0),z=B.Ns(1,0),Math.abs(z-w)>g&&n.add(c.Db()))}m.Fc()n.size?m.Pf():n.Pf():(m.Fc()!=n.Fc()&&n.Pf(),n.Pf());if(2<=n.size+m.size){D= new d.Wa;B=0;for(z=m.size;B>1;var f=e>>1,h=new d.b,l=new d.b;this.Nf.fc(2*b,h);h.y+=0!=(a&1)?this.gk:-this.gk;this.Nf.fc(2*f,l);l.y+=0!=(e&1)?this.gk:-this.gk;a=h.compare(l);return 0==a&&c?(c=this.im.get(b)-this.im.get(f),0>c?-1:0f.x)return 1;if(e.yf.y)return 1;for(e=1;e< this.oV;e++)for(var f=this.yI.zd(e),h=d.na.Xa(f),l=0;lk)return 1}return 0};f.prototype.RQ=function(a,b){var c=this.Bv(a,b);return 0==c?ab?1:0l?a:c;if(a.u())return c;if(c.u())return a;var g=new d.h,r=new d.h,t=new d.h;a.s(g);c.s(r);t.I(g);t.Nb(r);g=d.ma.be(e,t,!1); r=a.G();t=c.G();return 33==r&&33==t?b.mO(a,c,g):r!=t?0l?a:c:550==r?b.WJ(a,c,g):b.WJ(c,a,g):d.Dg.Pp(a,c,e,f)};b.mO=function(a,b,e){e=e*Math.sqrt(2)*1.00001;e*=e;var c=a.w(),h=b.w(),l=new d.Ed(a.description);d.b.sc(c,h)>e&&(l.add(a),l.add(b));return l};b.WJ=function(a,b,e){var c=a.Pa(0),h=a.D(),l=b.w(),g=a.Ja();e=e*Math.sqrt(2)*1.00001;var r=new d.h;a.s(r);r.O(e,e);if(r.contains(l)){e*=e;for(var r=!1,t=[],p=0;pthis.bl||0>this.Ro)throw d.f.ya();if(this.OI[this.Ro])break}this.Ba++;return this.rH(this.Ro)}this.Ba=0;this.Ro=this.bl;return this.rH(this.bl)};a.prototype.Ha=function(){return this.Ba};a.prototype.bL=function(){if(this.Pc)return!0;var a=null;null!=this.he&&(a=this.he.next(),null==a&&(this.Pc=!0,this.he=null));if(null!=a){var b=a.tb();this.OI[b]=!0;b>=this.bl&&!this.RA&&(this.bF(b,!1, a),b>this.bl&&!this.RA&&this.vX(b))}if(0this.rp.length)for(var f=0,k=Math.max(2,b+1);ff?d.C.Nr(m,p,t,u,0):d.C.Nr(m,t,p,u,0);for(var n=[0,0,0],w=[0,0,0],z=[0,0,0],t=[0,0,0],v=[0,0,0],B=Math.acos(u[2]/1),A=1-a,C=Math.tan(B),E=1+C*C/A,F=2*m[2]*C/A,C=Math.sqrt(F*F-4*E*(m[2]*m[2]/A-1)),E=2*E,A=(-F+C)/E,F=(-F-C)/E,C=Math.tan(B),E=C*A+m[2],B=(A+F)/2,m=(E+(C*F+m[2]))/2,C=d.C.Sp(A- B,E-m),A=m/D*1.570796326794897,F=0;100>F;F++){E=d.C.Cm(a,A);E=E*E/Math.cos(A)*(Math.sin(A)-m*E/(1*(1-a)));if(d.l.wd(E))break;A-=E}var m=d.C.n(1,a,A)*Math.cos(A),m=Math.sqrt((m-B)*(m+B)),C=1-C/m,C=C*(2-C),E=d.C.fo(n),B=d.C.fo(w),A=d.C.fo(z),G=d.C.Du(z,n),F=d.C.Du(z,w);d.C.ey(z,n,t);d.C.ey(z,w,v);n=Math.acos(G/(A*E));w=Math.acos(F/(A*B));w*=d.l.Ab(1,d.C.Du(t,v));if(1.570796326794897<=d.l.K(n)&&1.570796326794897<=d.l.K(w)||3.141592653589793v&&0>f&&(f=d.C.da(f+3.141592653589793));null!= l&&(l.j=t);null!=k&&(k.j=v);null!=r&&(r.j=f)}}};g.Uf=function(b,a,c,e,f,h,l,g){var k=[0,0,0],t=[0,0,0],p=[0,0,0],m=[0,0,0],u=[0,0,0],v=[0,0,0],n=[0,0,0],w=[0,0,0,0],y=new d.ea(0),D=new d.ea(0),z=new d.ea(0),B=new d.ea(0),A=new d.ea(0),C=new d.ea(0);if(null!=l&&null!=g)if(d.l.Qi(a))d.vh.Uf(b,c,e,f,h,l,g);else if(d.l.wd(f))null!=l&&(l.j=c),null!=g&&(g.j=e);else if(h=d.C.da(h),0>f&&(f=d.l.K(f),h=d.C.da(h+3.141592653589793)),c=d.C.da(c),e=d.C.da(e),1.570796326794897h?d.C.Nr(n,u,k,w,0):d.C.Nr(n,k,u,w,0);k=Math.acos(w[2]/1);w=Math.atan2(-w[1],-w[0]); e=1-a;u=Math.tan(k);A=1+u*u/e;B=2*n[2]*u/e;u=Math.sqrt(B*B-4*A*(n[2]*n[2]/e-1));A*=2;e=(-B+u)/A;B=(-B-u)/A;u=Math.tan(k);A=u*e+n[2];k=(e+B)/2;n=(A+(u*B+n[2]))/2;u=d.C.Sp(e-k,A-n);E=n/E*1.570796326794897;for(e=0;100>e;e++){B=d.C.Cm(a,E);B=B*B/Math.cos(E)*(Math.sin(E)-n*B/(1*(1-a)));if(d.l.wd(B))break;E-=B}E=d.C.n(1,a,E)*Math.cos(E);E=Math.sqrt((E-k)*(E+k));n=1-u/E;n*=2-n;v=Math.acos(d.C.Du(v,t)/(d.C.fo(v)*d.C.fo(t)));v*=d.l.Ab(1,t[0]);h=(d.C.q(E,n,d.C.hk(n,v))+b*d.l.Ab(1,h))/d.C.Yg(E,n);h=d.C.da(1.570796326794897* h);h=d.C.xp(n,h);d.C.n(E,n,h);u=d.C.da(w+c);c=Math.cos(u);h=Math.sin(u);p[0]=m[0]*c+m[1]*-h;p[1]=m[0]*h+m[1]*c;p[2]=m[2];d.C.iQ(a,p[0],p[1],p[2],z,D,y);null!=l&&(l.j=D.j);null!=g&&(g.j=z.j)}};return g}();d.UD=m})(n||(n={}));(function(d){var m=function(){function a(a){this.ab=null;this.lu=new d.b;this.mu=new d.b;this.a=a}a.prototype.compare=function(a,b,c){this.a.Nc(b,this.lu);this.a.Nc(a.ja(c),this.mu);return this.lu.compare(this.mu)};return a}(),g=function(){function a(a){this.cg=new d.b;this.fl= new d.b;this.a=a}a.prototype.Yh=function(a){this.cg.L(a)};a.prototype.compare=function(a,b){this.a.Nc(a.ja(b),this.fl);return this.cg.compare(this.fl)};return a}(),b=function(a){function b(b){a.call(this,b.a,b.ta,!1);this.bb=b}O(b,a);b.prototype.compare=function(a,b,c){if(this.Ng)return-1;var e=this.bb.ge.yo(this.bb.ri(b));a=a.ja(c);var d=this.bb.ge.yo(this.bb.ri(a));this.sn=c;return this.WF(b,e,a,d)};return b}(d.eE),a=function(a){function b(b){a.call(this,b.a,b.ta);this.bb=b}O(b,a);b.prototype.compare= function(a,b){if(this.Ng)return-1;a=this.bb.ge.yo(this.bb.ri(a.ja(b)));this.sn=b;return this.XF(b,a)};return b}(d.$N),c=function(){function c(){this.Tc=this.Hf=this.Xo=this.ge=this.Gh=this.Pd=this.ib=this.a=null;this.ih=!1;this.Th=this.Bn=this.Fe=this.hl=this.Ih=this.cl=this.gg=this.we=null;this.Vh=this.yr=this.zB=this.ta=0;this.Jw=this.Lo=!1;this.mp=new d.b;this.oj=new d.b;this.ib=new d.ad(8);this.Pd=new d.ad(5);this.Gh=new d.Ku;this.ge=new d.Ku;this.ih=!1;this.Th=new d.b;this.Th.ka(0,0);this.ta= 0;this.Vh=-1;this.Lo=!1;this.a=null;this.Hf=new d.tk;this.Tc=new d.tk;this.Ih=new d.ia(0);this.hl=new d.cE;this.gg=new d.ia(0);this.cl=new d.ia(0);this.Xo=new d.Wa}c.prototype.HY=function(a,b){var c=new d.Hd;c.wC();a.Xc(c);this.Xr(a);this.Lo=!1;this.ta=b;this.zB=b*b;b=this.FC();a.Xc(c);b||(this.kS(),b||this.FC());-1!=this.Vh&&(this.a.ke(this.Vh),this.Vh=-1);this.a=null;return this.Lo};c.prototype.LY=function(a,b){this.Xr(a);this.Lo=!1;this.ta=b;this.zB=b*b;this.ih=!1;this.FC();this.ih||(this.ih=1== a.zq(b,!0,!1));-1!=this.Vh&&(this.a.ke(this.Vh),this.Vh=-1);this.a=null};c.prototype.Jg=function(a,b){return this.ib.S(a,0+b)};c.prototype.kC=function(a,b,c){this.ib.P(a,0+b,c)};c.prototype.ri=function(a){return this.ib.S(a,2)};c.prototype.TX=function(a,b){this.ib.P(a,2,b)};c.prototype.bH=function(a,b){return this.ib.S(a,3+b)};c.prototype.Jq=function(a){return this.ib.S(a,7)};c.prototype.um=function(a,b){this.ib.P(a,7,b)};c.prototype.Kq=function(a,b){return this.ib.S(a,3+this.Iq(a,b))};c.prototype.Yr= function(a,b,c){this.ib.P(a,3+this.Iq(a,b),c)};c.prototype.FT=function(a,b){return this.ib.S(a,5+this.Iq(a,b))};c.prototype.$r=function(a,b,c){this.ib.P(a,5+this.Iq(a,b),c)};c.prototype.Ms=function(a){return this.Pd.S(a,0)};c.prototype.QX=function(a,b){this.Pd.P(a,0,b)};c.prototype.Lz=function(a){return this.Pd.S(a,4)};c.prototype.Ur=function(a,b){this.Pd.P(a,4,b)};c.prototype.Nl=function(a){return this.Pd.S(a,1)};c.prototype.bo=function(a,b){this.Pd.P(a,1,b)};c.prototype.Kz=function(a){return this.Pd.S(a, 3)};c.prototype.su=function(a,b){this.Pd.P(a,3,b)};c.prototype.Nn=function(a){var b=this.Pd.Pe(),c=this.Gh.mi();this.QX(b,c);-1!=a?(this.Gh.addElement(c,a),this.a.Va(a,this.Vh,b),this.Ur(b,this.a.Za(a))):this.Ur(b,-1);return b};c.prototype.CR=function(a){this.Pd.kd(a)};c.prototype.$E=function(a,b){this.Gh.addElement(this.Ms(a),b);this.a.Va(b,this.Vh,a)};c.prototype.bu=function(a){var b=this.ib.Pe(),c=this.ge.mi();this.TX(b,c);-1!=a&&this.ge.addElement(c,a);return b};c.prototype.aF=function(a,b){this.ge.addElement(this.ri(a), b)};c.prototype.Iv=function(a){this.ib.kd(a);a=this.Ih.Nv(a);0<=a&&this.Ih.GJ(a)};c.prototype.Jj=function(a,b){if(-1==this.Jg(a,0))this.kC(a,0,b);else if(-1==this.Jg(a,1))this.kC(a,1,b);else throw d.f.ya();this.Qy(a,b)};c.prototype.Qy=function(a,b){var c=this.Nl(b);if(-1!=c){var e=this.Kq(c,b);this.$r(e,b,a);this.Yr(a,b,e);this.Yr(c,b,a);this.$r(a,b,c)}else this.$r(a,b,a),this.Yr(a,b,a),this.bo(b,a)};c.prototype.Iq=function(a,b){return this.Jg(a,0)==b?0:1};c.prototype.Mn=function(a,b){var c=this.Kz(b); -1!=c&&(this.Hf.Ld(c,-1),this.su(b,-1));var e,c=this.Nl(b);if(-1!=c){var d=e=c,f;do{f=!1;var h=this.Iq(e,b),g=this.bH(e,h);if(this.Jg(e,h+1&1)==a){this.Jv(e);this.ge.zh(this.ri(e));this.Iv(e);if(e==g){c=-1;break}c==e&&(c=this.Nl(b),d=g,f=!0)}e=g}while(e!=d||f);if(-1!=c){do h=this.Iq(e,b),g=this.bH(e,h),this.kC(e,h,a),e=g;while(e!=d);e=this.Nl(a);-1!=e?(d=this.Kq(e,a),f=this.Kq(c,a),d==e?(this.bo(a,c),this.Qy(e,a),this.bo(a,e)):f==c&&this.Qy(c,a),this.Yr(c,a,d),this.$r(d,a,c),this.Yr(e,a,f),this.$r(f, a,e)):this.bo(a,c)}}c=this.Ms(a);e=this.Ms(b);for(d=this.Gh.xc(e);-1!=d;d=this.Gh.nb(d))this.a.Va(this.Gh.ja(d),this.Vh,a);this.Gh.lz(c,e);this.CR(b)};c.prototype.SV=function(a,b){var c=this.Jg(a,0),e=this.Jg(a,1),d=this.Jg(b,0),f=this.Jg(b,1);this.ge.lz(this.ri(a),this.ri(b));b==this.Nl(c)&&this.bo(c,a);b==this.Nl(e)&&this.bo(e,a);this.Jv(b);this.Iv(b);c==d&&e==f||e==d&&c==f||(this.wo(c,this.mp),this.wo(d,this.oj),this.mp.ub(this.oj)?(c!=d&&this.Mn(c,d),e!=f&&this.Mn(e,f)):(e!=d&&this.Mn(e,d),c!= f&&this.Mn(c,f)))};c.prototype.Jv=function(a){var b=this.Jg(a,1);this.kG(a,this.Jg(a,0));this.kG(a,b)};c.prototype.kG=function(a,b){var c=this.Kq(a,b),e=this.FT(a,b),d=this.Nl(b);c!=a?(this.Yr(e,b,c),this.$r(c,b,e),d==a&&this.bo(b,c)):this.bo(b,-1)};c.prototype.hF=function(a,b,c){var e=this.ge.xc(a),d=this.ge.ja(e);a=this.jf(d);var f=this.jf(this.a.U(d));this.a.as(d,b,c,!0);for(e=this.ge.nb(e);-1!=e;e=this.ge.nb(e)){var d=this.ge.ja(e),h=this.jf(d)==a;this.a.as(d,b,c,h)}e=b.Mq(c,0).ec();b=b.Mq(c, b.Rl(c)-1).Cc();this.rL(a,e);this.rL(f,b)};c.prototype.dG=function(a,b,c){var e=this.ri(a),d=this.Jg(a,0),f=this.Jg(a,1),h=this.bu(-1);this.Ih.add(h);this.um(h,-3);this.gg.add(h);this.Jj(h,d);a=1;for(b=b.Rl(c);athis.Lz(h)&&this.Ur(h,this.a.Za(f))),h=this.gg.get(a),a-=2,this.aF(h,f),f=this.a.U(f);while(0<=a)}this.gg.clear(!1)};c.prototype.jf=function(a){return this.a.Sa(a,this.Vh)};c.prototype.KJ=function(a,b,c){var e=this.Jg(b,0),f=new d.b;this.wo(e,f);var h=new d.b,l=this.Jg(b,1);this.wo(l,h);var g=c.Rl(a),m=c.Mq(a,0),v=new d.b;m.Oq(v);if(!f.ub(v)){if(!this.ih){var n= f.compare(this.Th),v=v.compare(this.Th);0>n*v&&(this.ih=!0)}this.GG(e,this.gg);this.cl.add(e)}!this.ih&&1m.compare(this.Th)&&(this.ih=!0));m=c.Mq(a,g-1);a=m.Cc();h.ub(a)||(this.ih||(n=h.compare(this.Th),v=a.compare(this.Th),0>n*v&&(this.ih=!0)),this.GG(l,this.gg),this.cl.add(l));this.gg.add(b);h=0;for(l=this.gg.size;hMath.max(100,this.a.ud)){this.Ih.clear(!1);this.ih=!0;break}var a= this.Ih.Fc();this.Ih.Pf();this.um(a,-1);-1!=this.OU(a)&&this.qU(a);this.Ko=!1}};c.prototype.qU=function(a){var b;this.Ko?(b=this.Tc.iv(this.ZI,this.VI,a,!0),this.Ko=!1):b=this.Tc.ZE(a);-1==b?this.SV(this.Tc.ja(this.Tc.PG()),a):(this.um(a,b),this.we.Ng&&(this.we.Fs(),this.xG(this.we.sn,b)))};c.prototype.OU=function(a){var b=this.Jg(a,0);a=this.Jg(a,1);this.wo(b,this.mp);this.wo(a,this.oj);if(d.b.sc(this.mp,this.oj)<=this.zB)return this.ih=!0,-1;var c=this.mp.compare(this.Th),e=this.oj.compare(this.Th); return 0>=c&&0=e&&0c&&(this.Ud(a),c=this.description.mg(a)); null==this.la&&this.nq();this.la[this.description.wk(c)+b]=e};b.prototype.G=function(){return 33};b.prototype.tb=function(){return 0};b.prototype.Oa=function(){this.Bc();null!=this.la&&(this.la[0]=NaN,this.la[1]=NaN)};b.prototype.mo=function(a){if(null!=this.la){for(var b=d.ye.ux(a,this.description),e=[],f=0,h=0,l=a.Ea;h>>32),a=d.J.dh(f,a);return a};b.prototype.Gg=function(){return null};return b}(d.T);d.Wa=m})(n||(n={}));(function(d){var m=function(){function d(b,a,c){void 0!==b&&(this.x=b,this.y=a,this.z=c)}d.pa=function(b,a,c){var e=new d;e.x=b;e.y=a;e.z=c;return e}; d.prototype.I=function(b,a,c){this.x=b;this.y=a;this.z=c};d.prototype.Ux=function(){this.z=this.y=this.x=0};d.prototype.normalize=function(){var b=this.length();0==b&&(this.x/=b,this.y/=b,this.z/=b)};d.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)};d.prototype.sub=function(b){return new d(this.x-b.x,this.y-b.y,this.z-b.z)};d.prototype.Vg=function(b){return new d(this.x*b,this.y*b,this.z*b)};d.prototype.cv=function(){this.x=NaN};d.prototype.Gy=function(){return isNaN(this.x)}; d.prototype.oi=function(b){return this.x*b.x+this.y*b.y+this.z*b.z};return d}();d.qd=m})(n||(n={}));(function(d){var m=function(){function g(b,a,c){this.sx=this.cx=null;this.tg=a;this.CV=a.y-c;this.BV=a.y+c;this.Hr=0;this.LA=b;this.ta=c;this.OV=c*c;this.MA=0!=c;this.xw=!1}g.prototype.result=function(){return 0!=this.Hr?1:0};g.prototype.WO=function(b){b=b.gc(b.oe(this.tg,!1));return d.b.sc(b,this.tg)<=this.OV?!0:!1};g.prototype.nG=function(b){if(!this.MA&&(this.LA&&this.tg.ub(b.ec())||this.tg.ub(b.Cc())))this.xw= !0;else if(b.ra==this.tg.y&&b.ra==b.oa){if(this.LA&&!this.MA){var a=Math.max(b.ua,b.sa);this.tg.x>Math.min(b.ua,b.sa)&&this.tg.xa?c=!0:this.tg.x>=Math.min(b.ua,b.sa)&&(c=0b.Cc().y?1:-1)}}};g.prototype.ju=function(b){var a= b.xf(0,1);if(a.ca>this.BV||a.hathis.tg.y||a.hab.Tm(c.Ta))){for(a.Hr=0;c.Ca();)if(e=c.ba(),a.ju(e))return-1;if(0!=a.Hr)return 1}return a.result()};g.Oi=function(b,a,c,e,f){var h=b.Da();h.dC(a);if(!h.Ya()||!h.Ca())throw d.f.X("corrupted geometry");for(a=2;2==a&&h.Ca();)a=h.ba().gc(.5),a=g.xA(b,c,a,e,f);if(2==a)throw d.f.X("internal error");return 1== a?!0:!1};g.qm=function(b,a){b=b.D();return 16>b?!1:2*b+Math.log(b)/Math.log(2)*1*a<1*b*a};return g}();d.ff=m})(n||(n={}));(function(d){var m=function(d){function b(a){d.call(this,!0,a)}O(b,d);b.prototype.Ja=function(){return new b(this.description)};b.prototype.tb=function(){return 2};b.prototype.G=function(){return 1736};b.prototype.JH=function(a,b,e){this.DU(a,b,e)};b.prototype.fT=function(){this.xT()};return b}(d.xl);d.Ia=m})(n||(n={}));(function(d){(function(d){d[d.PiPOutside=0]="PiPOutside"; d[d.PiPInside=1]="PiPInside";d[d.PiPBoundary=2]="PiPBoundary"})(d.GN||(d.GN={}));var m=function(){function g(){}g.VH=function(b,a,c){b=d.ff.UU(b,a,c);return 0==b?0:1==b?1:2};g.fe=function(b,a,c){b=d.ff.ln(b,a,c);return 0==b?0:1==b?1:2};g.bX=function(b,a,c,e){b=d.ff.VU(b,a,c,e);return 0==b?0:1==b?1:2};g.l_=function(b,a,c,e){return 0==d.ff.xA(b,a,c,e,null)?0:1};g.wA=function(b,a,c){return 0==d.ff.wA(b,a,c)?0:1};g.LR=function(b,a,c,e,f){if(a.lengtha)return 0>a?a+=360:360<=a&&(a-=360),a;a=d.Ub.fM(a);0>a&&(a+=360);return a};b.TN=function(a){a=b.aO(a);180l||ll||!f&&l<-z.y&&B.y>l||l<-B.y&&z.y>l){do if(!(Math.abs(z.x-B.x)>=.5*q.N())){2==d.Td.Fb(c)?(u[0][0]=b.On(z.x,q),u[0][1]=z.y,u[1][0]=b.On(B.x,q),u[1][1]=B.y,d.fb.TW(),A.x=u[0][0]*m,A.y=u[0][1]*m,C.x= u[1][0]*m,C.y=u[1][1]*m):(A.x=z.x*m,A.y=z.y*m,C.x=B.x*m,C.y=B.y*m);C.x=6.283185307179586*(B.x-z.x)/q.N()+A.x;if(f){if(D.x=g,D.y=b.DB(r,p,A,C,g,e),isNaN(D.y))break}else{D.x=b.BB(r,p,A,C,e);if(isNaN(D.x))break;D.y=0}d.mb.Md(r,p,A.x,A.y,C.x,C.y,v,null,null,e);var J=v.j;d.mb.Md(r,p,A.x,A.y,D.x,D.y,v,null,null,e);var K=v.j;2==d.Td.Fb(c)?(u[0][0]=D.x/m,u[0][1]=D.y/m,d.fb.SS(),f?(y.y=u[0][1],y.x=h):(y.x=b.Zp(u[0][0],z.x,B.x,q),y.y=h)):f?(y.x=h,y.y=D.y/m):(y.x=b.Zp(D.x/m,z.x,B.x,q),y.y=h);w[0]=0f.x?g=f:(g=e,e=f);f=new d.ea(0);var r=new d.ea(0),m=new d.ea(0);d.mb.Md(a,c,g.x,g.y,e.x,e.y,r,f,null,l);var p=r.j,q=0,u=1,v=new d.b;for(v.L(g);p*(u-q)>1E-12*a;){var n=.5*(q+u);d.mb.Oj(a,c,g.x, g.y,p*n,f.j,r,m,l);v.x=r.j;v.y=m.j;if(v.x==h)break;if(b.Cj(g.x,v.x,h))u=n;else if(b.Cj(e.x,v.x,h))q=n;else return NaN}return v.y};b.Cj=function(a,b,e){a=m.uq(a);b=m.Vx(a,m.uq(b));e=m.Vx(a,m.uq(e));return 0==e||0b&&0>e&&e>=b?!0:!1};b.On=function(a,b){var c=b.ha-b.ca;return b.vu(a-Math.floor((a-b.ca)/c)*c)};b.Zp=function(a,b,e,f){var c=new d.Ac;c.I(b,e);e=f.N();a=Math.floor((a-b)/e)*e+a;for(c=c.Wf();Math.abs(a-c)>Math.abs(a+e-c);)a+=e;return a};b.BB=function(a,b,e,f,h){var c;e.y>f.y? c=f:(c=e,e=f);f=new d.Ac;f.I(c.y,e.y);if(!f.contains(0)||3.141592653589793<=Math.abs(c.x-e.x))return NaN;if(c.x==e.x)return c.x;var g=new d.ea(0),r=new d.ea(0),m=new d.ea(0);d.mb.Md(a,b,c.x,c.y,e.x,e.y,r,g,null,h);var p=r.j,q=0,u=1,n=new d.b;for(n.L(c);p*(u-q)>1E-12*a;){var x=.5*(q+u);d.mb.Oj(a,b,c.x,c.y,p*x,g.j,r,m,h);n.x=r.j;n.y=m.j;f.I(c.y,n.y);if(0==n.y)break;if(f.contains(0))u=x;else if(f.I(e.y,n.y),f.contains(0))q=x;else return NaN}return n.x};b.Aq=function(a,b,e,f,h,l,g){var c=new d.h;a.s(c); if(c.u())return a;var k=new d.Ac;c.Tn(k);var m=new d.Ac;m.I(b,b+e);if(m.contains(k)&&m.ha!=k.ha)return a;var q=new d.h;q.I(c);var u=a.G();if(33==u){q=h?a:a.Vf();c=q.Be();if(c=m.ha||g&&c==m.ha)c+=Math.ceil((m.ca-c)/e)*e,c=m.vu(c),q.zC(c);return q}if(550==u){q=h?a:a.Vf();f=q.Pa(0);u=2*q.D();a=!1;for(h=0;h=m.ha||g&&c==m.ha)a=!0,c+=Math.ceil((m.ca-c)/e)*e,c=m.vu(c),f.write(h,c);a&&q.Dc(1993);return q}if(m.contains(k))return a;if(197==u)return e=h?a:a.Vf(),c.Ma(q), e.Gp(c),e;var n=.1*Math.max(c.fa(),c.N());q.O(0,n);g=a;m=f.re(0);a=d.ei.local();h=new d.Hd;for(var x=0;;){var w=Math.floor((k.ca-b)/e),y=Math.ceil((k.ha-b)/e);if(3q.o;){n=d.me.clip(g,q,m,0);n.s(k);if(1607==u?!n.u()&&(k.N()>m||k.fa()>m):!n.u()&&(1736!=u||k.N()>m))n.Xc(h),n.s(k),b.s(l),l.O(m,m),l.Yb(k)&&1736==u?b=a.V(b,n,f,null):b.add(n,!1);q.move(e,0);h.shift(-e,0)}return b};b.NJ=function(a,b,e,f,h){var c=new d.Ed(e.description);c.Jd(e,0,-1);h=d.fb.Xg(c,a,b,h);c=e.D();f.Oa();if(!d.fb.Jc(a)||c!=h.D())return!1;var g=new d.h;e.s(g);var r=new d.h;h.s(r);g=g.N();r=r.N();if(0!=g&&0!=r){if(r/=g,a=d.fb.Bh(b).N()/d.fb.Bh(a).N(), 1E-10=a[f]?b[f]=a[f].toUpperCase():a[f];return b.join()}return a.toString(d.Vc.PE_STR_AUTH_TOP)};a.ps=function(a,b,f,h){var c=h.length,e=f.D();if(0!=e){var g=f.Pa(0),m=Math.min(e,c),p=0,q=a.Kg();isNaN(b)&&(b=0);var u=a.Jc();a=u?a.kc().qe().N():0;for(var n=179*a/360;0y*d.Ub.sign(D)&&Math.abs(w)>n&&(h[x][0]+=-y*a)}g.gy(p<<1,m,h,0,!0);p+=m;e-=m;m=Math.min(e,c)}f.Dc(1993)}};a.I_=function(a,b,f,h){var c=a.Kg();isNaN(b)&&(b=0);var e=f.Be();h[0][0]=e;h[0][1]=f.nf();d.fi.projToGeogCenter(c,1,h,b);a.Jc()&&(b=d.Ub.sign(h[0][0]-b),0>b*d.Ub.sign(e)&&(a=a.kc().qe().N(),Math.abs(h[0][0])>179*a/360&&(h[0][0]-=b*a)));f.rb(h[0][0],h[0][1])};a.vN=function(a,b,f,h){var c=0,e=a.Kg();isNaN(c)&&(c=0); var g=a.Jc(),m=a.de();a=360*m;for(var m=179*m,p=h.length,q=0;qD*d.Ub.sign(w)&&Math.abs(y)>m&&(h[u][0]-=D*a)}d.ma.mz(b,q,h,n);q+=n}}};a.uy=function(a,b,f){var c=f.length,e=b.D();if(!(1>e)){var g=b.Pa(0),r=Math.min(e,c),m=0,p=a.Kg(),q=a.Jc(),u=q?a.qe().N(): 0,n=179*u/360,x=0;for(q&&(x=a.pi());0y*d.Ub.sign(D)&&Math.abs(w)>n&&(f[a][0]+=-y*u)}g.gy(m<<1,r,f,0,!0);m+=r;e-=r;r=Math.min(e,c)}b.Dc(1993)}};a.A_=function(a,b,f){if(!b.u()){var c=a.Kg();f[0][0]=b.Be();f[0][1]=b.nf();d.fi.geogToProj(c,1,f);if(a.Jc()){var c=d.Ub.sign(f[0][0]),e=a.pi();0>c*d.Ub.sign(b.Be()-e)&&(a=a.qe().N(),Math.abs(f[0][0])>179*a/360&&(f[0][0]-=c*a))}b.rb(f[0][0], f[0][1])}};a.uN=function(a,b,f,h){if(0!=f){var c=a.Kg(),e=a.Jc(),g=e?a.qe().N():0,m=179*g/360,p=0;e&&(p=a.pi());for(a=0;aw*d.Ub.sign(b[n].x-p)&&Math.abs(x)>m&&(h[q][0]-=w*g)}d.ma.mz(b,a,h,u);a+=u}}}};a.os=function(a,b,f,h){var c=b.D();if(0!=c){var e=b.Pa(0),g=a.ie,m= a.He,p=g.kc().Yi(),q=m.kc().Yi(),u=g.de(),n=m.de();a=a.ue;if(null==a||0==a.count()){f=p/q;h=(g.en()-m.en())*n;q=-90*u;a=90*u;p=!1;n=1;for(g=2*c;nz?h[n][1]=z:h[n][1]<-z&&(h[n][1]=-z));for(u=0;un?h[0][1]=n:h[0][1]<-n&&(h[0][1]=-n));b.rb(h[0][0],h[0][1])}else{f=c.de();a=d.J.nk(h[0][1],-90*f,90*f)!=h[0][1];n=e.de();g=(c.en()-e.en())*n;m/=p;if(1!=m||0!=g)a=!0,h[0][0]*=m,h[0][0]+=g,h[0][1]*=m;a&&b.rb(h[0][0],h[0][1])}return a}; a.tN=function(a,b,f,h){var c;if(a.rr)h=90*a.ie.de(),d.ma.UK(b,f,-h,h);else{var e=a.ue,g=a.ie,m=a.He;a=g.Ws();var p=m.Ws(),q=g.de(),n=90*q,v=m.de();if(null==e||0==e.count()){if(h=a/p,e=(g.en()-m.en())*v,d.ma.UK(b,f,-n,n),0!=e||1!=h)for(v=0;vn){if(C){var W=G+(N+11*t&&(C=!1)}C||(K-=d.Ub.Fl(l,T-I),T=Z+K,++L,Q=0!=K,P.x=T)}else M||d.ma.MH(O,R,P,F)&&(M=!0);Q&&H.write(2*N,T);I=T;O.L(R);R.L(P)}0b?r=1:0>=m&&0.99*m&&(r=-1)):r=-1);0!=r&&(e=new d.Ia(g.description),e.oq(c),e=d.Km.local().V(e,f,k),e.add(g,!1),z=!0,g=e);z&&(g=d.Lm.local().V(g,h,!1,k));return g};a.fS=function(b,e,f,h,g){var c=f.D(),l=f.Aa(0),m=f.Aa(c-1);h=a.Uu(h,g);g=h.N();var l=d.Ub.sign(m.x-l.x),p=new d.h;f.ac(p);var q=h.Gk(),n,m=q-g,q=q+g;if(0<= l){for(var v=Math.ceil((m-p.o)/g),v=v*g;m>p.o+v;)v+=g;for(;mp.o+v;)v+=g;n=v;720m;)1024<=D&&(D=0),x.move(v,0),w.Wb=v,f.Xc(w),y+=v,h.o<=y&&h.v>=y&&(g=p.D()-1),f.rb(0,n),n=f.Aa(c- 1),p.As(f,0,0,c-1,!1);f=new d.Ia(p.description);c=0l?c:!c)?(l=d.b.pa(m.x,h.B),f.aj(l),l=d.b.pa(h.Gk(),h.B),f.aj(l),h=d.b.pa(b.x,h.B)):(l=d.b.pa(m.x,h.A),f.aj(l),l=d.b.pa(h.Gk(),h.A),f.aj(l),h=d.b.pa(b.x,h.A));f.aj(h);f.JH(0,e,0);f.mQ(g);return f};a.SR=function(b,e,f,h,g){var c=new d.Ia(b.description);c.add(b,!1);c.bC(0,c.D()-1);var l=new d.h;c.ac(l);f=a.Uu(e,f);for(var m=f.N(),p=Math.ceil((f.o-l.o)/m),p=p*m;f.o>l.o+p;)p+=m;for(;f.ol.v)return g&&(g=c.hf(),c=d.Lm.local().V(c,e,!0,h),e=c.hf(),(e=d.Ub.sign(g)!=d.Ub.sign(e))&&c.dK()),c;b=new d.Ia(b.description);b.add(c,!1);for(g=g||l.N()>m-e.re(0);l.o=f){l=!0;break}if(0!=(g&2)&&q.y<=-f){l=!0;break}}if(!l)return!1;c=!1;a&&(c=b.Eo(0));a=new d.fd;var e=a.Jb(b),l=a.Pb(e),n=-1,v=!0,x=new d.b;x.$c();for(var m=new d.Wa,w=-1,y=a.cb(l);-1!=y;y=a.U(y)){var q=a.Aa(y),D=0!=(g&1)&&90<=q.y?1:0,D=D|(0!=(g&2)&&q.y<=-f?2:0);if(0t){(new d.h).I(x.o-r,-t,x.v+r,t);c=d.uh.rq(c,e,b,NaN,0,h);if(c.u())return c;c.s(x)}if(y&&(e.Bx.B))return c.Ja();x.N()>q&&(c=a.Aq(c,n-p,q,b,!0,0,!0,h),c.s(x));t=a.BN(x.o,x.v,e.o,e.v,q);0!=t&&x.move(t,0);if(x.v>e.v||x.oe.v)for(;x.o>=e.v;)x.move(-q,0),t-=q;for(;x.ot;t++){D?r=d.T.Ic(g)?d.uh.clip(c,e,f,v,h):d.uh.clip(c,e,f,0,h):(r=d.sk.local().V(c,w,b,h),r==w&&(r=d.T.ne(r)));if(e.o<=x.o&&e.v>=x.v||e.o>=x.o&&e.v<=x.v)return r;y[t]=r;0==t&&(x.move(-q,0),r=new d.Hd,r.Ag(-q,0),c.Xc(r))}if(550==g)y[0].Jd(y[1],0,-1);else if(d.T.Ic(g))y[0].add(y[1],!1);else if(33==g)y[0].u()&&(y[0]=y[1]);else throw d.f.X("intersect_with_GCS_horizon: unexpected geometry type");return y[0]}if(e.Bx.B)return c;for(g=0;!c.u()&& x.v>e.o;)0!=g&&(r=new d.Hd,r.Ag(g,0),c.Xc(r)),d.Gj.local().V(4,c,w,b,h)||(c=d.cq.local().V(c,w,b,h),w==c&&(c=d.T.ne(c))),0!=g&&(v=new d.Hd,v.Ag(-g,0),c.Xc(v)),g-=q,x.move(-q,0);return c};a.KH=function(b,e,f,h){if(0!=e&&h!=m.DontClip)if(h==m.PannableFold){h=f.zT();for(var c=e,g=0;gh.B||b[g].yr||b[g].y<-r)b[g].$c(),c--;if(0!=c){c=new d.h;c.Lx(b,e);var r=f.Us(),p=f.Tv(), g=197==r.G(),q=new d.h;r.s(q);if(!p||!(q.Bc.B))if(p)if(a.Tu(b,e,q.Gk()-t,h),c=e,g)for(g=0;g=b&&(c=1),f.A<=-b&&(c|=2),c;var e=f.Sj();if(null==e)return 0;var g=null;0<=b&&(g=a);for(var r=0;2>r;r++)if((0b?d.ff.wA(a,m,0):d.ff.xA(g,b,m,0,null),c|=m<=e||r&&l==e)l+=Math.ceil((b-l)/f)*f,l=d.J.nk(l,b,e),h.zC(l);return h}if(a.u())return a;l=new d.h;a.s(l); if(l.u())return a;var t=new d.Ac;l.Tn(t);var n=new d.Ac;n.I(b,e);if(n.contains(t))return a;e=new d.h;e.I(l);if(550===c){h=g?a:a.Vf();m=h.Pa(0);c=2*h.D();e=!1;for(b=0;b=n.ha||r&&l==n.ha)e=!0,l+=Math.ceil((n.ca-l)/f)*f,l=n.vu(l),m.write(b,l);e&&h.Dc(1993);return h}if(197==c)return f=g?a:a.Vf(),l.Ma(e),f.Gp(l),f;var w=.1*Math.max(l.fa(),l.N());e.O(0,w);r=a;n=h.re(0);a=d.ei.local();for(g=new d.Hd;;){var y=Math.floor((t.ca-b)/f),D=Math.ceil((t.ha-b)/f);if(3e.o;){w=d.uh.clip(r,e,n,0,m);w.s(t);if(1607==c?!w.u()&&(t.N()>n||t.fa()>n):!w.u()&&(1736!=c||t.N()>n))w.Xc(g),w.s(t), b.s(k),k.O(n,n),k.Yb(t)&&1736==c?b=a.V(b,w,h,null):b.add(w,!1);e.move(f,0);g.shift(-f,0)}return b};a.Tu=function(a,b,f,h){for(var c=f+h,e=0;ec||g==c)||(g+=Math.ceil((f-g)/h)*h,g=d.J.nk(g,f,c),a[e].x=g)}};a.Ym=function(b,e,f,h,g,k){if(!e.Jc())throw d.f.X("fold_into_360_degree_range");if(b.u())return b;var c;if(2==e.Fb())f=e.aw(),c=e.$v()-f;else{var l=e.de();c=360*l;f-=180*l}return a.Aq(b,f,c,e,h,g,!0,k)};a.AG=function(b,e,d,h){if(2==d.Fb())h=d.aw(),d=d.$v()- h;else{var c=d.de();d=360*c;h-=180*c}a.Tu(b,e,h,d)};a.Mj=function(a,b){var c=b.qe();if(33==a.G()){var e=a.nf();return c.A<=e&&e<=c.B?a:a.Ja()}e=new d.h;a.s(e);var g=new d.h;g.I(c);g.o=e.o;g.v=e.v;g.O(.01*g.fa(),0);c=d.ma.Zy(b,e);return g.contains(e)?a:d.uh.clip(a,g,c,0,null)};a.Jm=function(a,b,d){return a>b.v&&a-b.vd.B?b[c].$c():b[c].x=a.Jm(b[c].x,d,h)};a.wu= function(b,e,f,h){if(!b.u()){var c=b.G();if(!h||1736!=c)if(d.T.gh(c)){h=b.Pa(0);for(var c=0,g=b.D();ch||hh)||!k&&(0!=r||h<-E.y&&F.y>h||h<-F.y&&E.y>h)){do if(!(Math.abs(E.x-F.x)>=.5*v.N())){2==f.Fb()?(w[0][0]=a.On(E.x,v),w[0][1]=E.y,w[1][0]=a.On(F.x,v),w[1][1]=F.y,d.fi.projToGeogCenter(x,2,w,0),G.x=w[0][0]*m,G.y=w[0][1]*m,H.y=w[1][1]*m):(G.x=E.x*m,G.y=E.y*m,H.y=F.y*m);H.x=2*(F.x-E.x)*Math.PI/v.N()+G.x;var L;if(k){B.x=c;B.y=a.DB(q,n,G,H,c,l);if(isNaN(B.y))break;C[0]=B;L=1}else if(l== g.GreatElliptic){var N=[0,0];L=d.xy.tA(q,n,G,H,c,N);if(0==L)break;B.x=N[0];B.y=c;C[0]=B;2==L&&(A.x=N[1],A.y=c,C[1]=A)}else{B.x=a.BB(q,n,G,H,l);if(isNaN(B.x))break;B.y=0;C[0]=B;L=1}for(var R=-1,N=0;ND[0]||(R=b.Ra(M),b.zm(R,D,1),b.rb(b.U(R),z.x,z.y),R=D[0])}}while(0)}E.L(F)}}};a.On=function(a,b){var c=b.ha-b.ca;return b.vu(a-Math.floor((a-b.ca)/c)*c)};a.Zp=function(a,b,f,h){var c=new d.Ac;c.I(b,f);f=h.N();a=Math.floor((a-b)/f)*f+a;for(c=c.Wf();Math.abs(a-c)>Math.abs(a+f-c);)a+=f;return a};a.Cj=function(a,b,f){a=d.ks.uq(a);b=d.ks.Vx(a,d.ks.uq(b));f=d.ks.Vx(a,d.ks.uq(f));return 0==f||0b&&0>f&&f>=b?!0:!1};a.DB=function(b, e,f,h,l,k){if(k==g.GreatElliptic)return d.xy.LU(e,f,h,l);if(Math.abs(f.x-h.x)>=Math.PI||!a.Cj(f.x,h.x,l))return NaN;var c;f.x>h.x?c=h:(c=f,f=h);h=new d.ea;var m=new d.ea,p=new d.ea;d.mb.Md(b,e,c.x,c.y,f.x,f.y,m,h,null,k);var q=m.j,n=0,v=1,x=new d.b;for(x.L(c);q*(v-n)>1E-12*b;){var w=.5*(n+v);d.mb.Oj(b,e,c.x,c.y,q*w,h.j,m,p,k);x.x=m.j;x.y=p.j;if(x.x==l)break;if(a.Cj(c.x,x.x,l))v=w;else if(a.Cj(f.x,x.x,l))n=w;else return NaN}return x.y};a.BB=function(a,b,f,h,l){if(l==g.GreatElliptic)return l=[0,0], d.xy.tA(a,b,f,h,0,l),l[0];var c;f.y>h.y?c=h:(c=f,f=h);h=new d.Ac;h.I(c.y,f.y);if(!h.contains(0)||Math.abs(c.x-f.x)>=Math.PI)return NaN;if(c.x==f.x)return c.x;var e=new d.ea,m=new d.ea,p=new d.ea;d.mb.Md(a,b,c.x,c.y,f.x,f.y,m,e,null,l);var q=m.j,n=0,v=1,x=new d.b;for(x.L(c);q*(v-n)>1E-12*a;){var w=.5*(n+v);d.mb.Oj(a,b,c.x,c.y,q*w,e.j,m,p,l);x.x=m.j;x.y=p.j;h.I(c.y,x.y);if(0==x.y)break;if(h.contains(0))v=w;else if(h.I(f.y,x.y),h.contains(0))n=w;else return NaN}return x.x};a.w_=function(a,b,f,h,g,k){if(b== g&&f!=k)throw d.f.F();if(0>=h)return 0;if(a.Ho()){k*=2;var c=2*f;a=2*h;for(f=0;f=h){k=[new d.b,new d.b];for(c=0;c=180*b&&(a-=360*b);return a};a.LJ=function(b,e,f,h){if(f==m.Clip){var c=e.Lk();197==c.G()?(f=new d.h,c.s(f),c=d.ma.Zy(e,f),b=d.uh.clip(b,f,c,5E4*e.cn(),h)):d.Gj.local().V(1,c,b,e,h)||(b=d.sk.local().V(b,c,e,h),b==c&&(b=d.xl.ne(b)))}else e.Jc()&&(h=new d.h,b.ac(h),e.qe().contains(h)||(a.wu(b, e.qe(),e.re(0),!0),f==m.PannableFold&&(b=a.Mj(b,e)),b=a.Ym(b,e,0,!0,1E5*e.cn(),null)));return b};a.iF=function(a,b,f){var c=b.Vs();if(null==c)return a;b=b.kc();var e=b.qe().N(),g=new d.h;a.ac(g);var r=new d.Ac;g.Tn(r);for(var g=c.Da(),c=null,m=new d.Hd;g.Ya();)for(;g.Ca();){var p=g.ba(),q=p.xf(0,0),n=new d.Ac;n.I(q.ca,q.ha);for(q=0;n.ha>r.ca;)n.move(-e),--q;for(;n.ca<=r.ha;){if(n.Yb(r)){null==c&&(c=new d.Ua);var v=d.Hb.eR(p.ec(),p.Cc());0!=q&&(m.Ag(q*e,0),v.Xc(m));c.dc(v,!0)}n.move(e);++q}}return null!= c?(b=d.ma.fQ(b,c),b=d.ma.Bs(b),d.Ju.jR(a,c,b,f)):a};a.BN=function(b,e,d,h,g){return b>=d&&e<=h?0:a.oE(.5*(e+b),d,h,g)};a.oE=function(a,b,f,h){return d.Ub.round((.5*(f+b)-a)/h)*h};a.KS=function(b,e,f,h,g,k,r,m){var c=a.Uu(h,g),l=c.N(),t=l/360,n=a.jE*t,x=b.Pa(0),w=e.Jc(),y=w?l/e.qe().N():0,D;e=b.Ja();for(var z=0,B=f.aa();zn){if(A){var Y=E+P-1,aa=E;if(!F||P+11*t&&(w=!1)}A||(H-=d.Ub.Fl(l,Z-J),Z=X+H,++I,Q=0!=H,W.x=Z)}else L||d.ma.MH(N,O,W,M)&&(L=!0);Q&&G.write(2*P,Z);J=Z;N.L(O);O.L(W)}0!=I&&C.Dc(1993);A=C.Aa(0);D=C.Aa(D-1);d.b.Cb(A,D);C=a.DS(C,h,isNaN(g)?0:g,k);e.add(C,!1)}b=h.re(0);f=c.N()/180;a.wu(e, c,.1*b,!1);return d.uh.clip(e,c,b,f,k)};a.DS=function(b,e,d,h){return a.Ym(b,e,d,!0,0,h)};a.IU=function(a,b,f,h){var c=a.G();if(1736==c)for(b=null!=b?b.re(0):0,c=0;cf)for(var c=new d.Wa,e=0;ef)for(var c=new d.Wa,e=0;ethis.up};g.prototype.Mz=function(){if(this.u())throw d.f.X("invalid call");return new d.Wa(this.wt.x,this.wt.y)};g.prototype.Za=function(){if(this.u())throw d.f.X("invalid call");return this.up};g.prototype.Pz=function(){if(this.u())throw d.f.X("invalid call");return this.Qa};g.prototype.yA= function(){return 0!=(this.Zw&1)};g.prototype.Ky=function(b,a,c,e){this.wt.x=b;this.wt.y=a;this.up=c;this.Qa=e};return g}();d.Nm=m})(n||(n={}));(function(d){var m=function(){function b(){}b.prototype.Xn=function(a,b){this.Rh.resize(0);this.hj.length=0;this.Vk=-1;a.ac(this.gl);this.gl.O(b,b);this.gl.Yb(this.Mb.Ga)?((this.qt=d.T.Oc(a.G()))?(this.fJ=a.ec(),this.eJ=a.Cc(),this.ta=b):this.ta=NaN,this.Rh.add(this.Mb.Mf),this.hj.push(this.Mb.Ga),this.Kt=this.Mb.Ts(this.Mb.Mf)):this.Kt=-1};b.prototype.Ni= function(a,b){this.Rh.resize(0);this.hj.length=0;this.Vk=-1;this.gl.I(a);this.gl.O(b,b);this.ta=NaN;this.gl.Yb(this.Mb.Ga)?(this.Rh.add(this.Mb.Mf),this.hj.push(this.Mb.Ga),this.Kt=this.Mb.Ts(this.Mb.Mf),this.qt=!1):this.Kt=-1};b.prototype.next=function(){if(0==this.Rh.size)return-1;this.Vk=this.Kt;var a=null,b=null,e,f=null,h=null;this.qt&&(a=new d.b,b=new d.b,f=new d.h);for(var l=!1;!l;){for(;-1!=this.Vk;){e=this.Mb.Iz(this.Mb.Sv(this.Vk));if(e.Yb(this.gl))if(this.qt){if(a.L(this.fJ),b.L(this.eJ), f.I(e),f.O(this.ta,this.ta),0k;k++){var m=this.Mb.Eq(e,k);if(-1!=m&&0>f);0==h?(b.o=.5*(b.o+b.v),b.A=.5*(b.A+b.B)):1==h?(b.v=.5*(b.o+b.v),b.A=.5*(b.A+b.B)):(2==h?b.v=.5*(b.o+b.v):b.o=.5*(b.o+b.v),b.B=.5*(b.A+b.B))}return b};b.prototype.OT=function(a){return this.jA(a)};b.prototype.nT=function(a,b){return m.dR(this,a,b)};b.prototype.Wz=function(a,b){return m.cR(this,a,b)};b.prototype.mf=function(){return m.bR(this)}; b.prototype.ql=function(a,b){if(0>b||32<2*b)throw d.f.F("invalid height");this.yV=b;this.Ga.I(a);this.Mf=this.Lf.Pe();this.Tx(this.Mf,0);this.Nx(this.Mf,0);this.DK(this.Mf,0);this.zK(this.Mf,0)};b.prototype.lw=function(a,c,e,f,h,g,k){if(!f.contains(c))return 0==e?-1:this.lw(a,c,0,this.Ga,this.Mf,g,k);if(!g)for(var l=h;-1!=l;l=this.AT(l))this.Tx(l,this.jA(l)+1);l=new d.h;l.I(f);f=h;var m=[];m[0]=new d.h;m[1]=new d.h;m[2]=new d.h;for(m[3]=new d.h;eq;q++)if(m[q].contains(c)){var p=!0,n=this.Eq(f,q);-1==n&&(n=this.oR(f,q));this.Tx(n,this.jA(n)+1);f=n;l.I(m[q]);break}if(!p)break}return this.mU(a,c,e,l,f,g,h,k)};b.prototype.mU=function(a,b,e,d,h,g,k,m){var c=this.WG(h);if(g){if(h==k)return m;this.OR(m);g=m}else g=this.rR(),this.mC(g,a),this.IX(this.Sv(g),b);this.fY(g,h);-1!=c?(this.Rx(g,c),this.Ox(c,g)):this.vK(h,g);this.pC(h,g);this.Nx(h,this.Xv(h)+1);this.gQ(h)&&this.AS(e,d,h);return g};b.prototype.OR=function(a){var b=this.fH(a),e=this.WG(b), d=this.GT(a),h=this.Zv(a);this.Ts(b)==a?(-1!=h?this.Rx(h,-1):this.pC(b,-1),this.vK(b,h)):e==a?(this.Ox(d,-1),this.pC(b,d)):(this.Rx(h,d),this.Ox(d,h));this.Rx(a,-1);this.Ox(a,-1);this.Nx(b,this.Xv(b)-1)};b.tK=function(a,b){var c=.5*(a.o+a.v),d=.5*(a.A+a.B);b[0].I(c,d,a.v,a.B);b[1].I(a.o,d,c,a.B);b[2].I(a.o,a.A,c,d);b[3].I(c,a.A,a.v,d)};b.prototype.gQ=function(a){return 8==this.Xv(a)&&!this.sH(a)};b.prototype.AS=function(a,b,e){var c,d,g=this.Ts(e);do d=this.Sv(g),c=this.yi.S(g,0),d=this.Iz(d),this.lw(c, d,a,b,e,!0,g),g=c=this.Zv(g);while(-1!=g)};b.prototype.hQ=function(a){return 8<=this.Xv(a)||this.sH(a)};b.prototype.sH=function(a){return-1!=this.Eq(a,0)||-1!=this.Eq(a,1)||-1!=this.Eq(a,2)||-1!=this.Eq(a,3)};b.prototype.oR=function(a,b){var c=this.Lf.Pe();this.MX(a,b,c);this.Tx(c,0);this.Nx(c,0);this.sl(c,a);this.zK(c,this.Uv(a)+1);this.DK(c,b<<2*this.Uv(a)|this.aH(a));return c};b.prototype.rR=function(){var a=this.yi.Pe(),b;0>4)]|=this.tI<<2*(d&15)};return b}();d.h_=m;var g=function(){function b(a,b,e){this.Dh=null;this.xB=this.jl=this.oJ=this.mJ=this.zt=this.BI=this.hg=this.In=0;this.qj=this.kl=this.$l=null;this.jw(a,b,e)}b.create=function(a,c,e){if(!b.az(a))throw d.f.F(); return b.ee(a,c,e)};b.Cj=function(a,c,e){if(!b.az(a))throw d.f.F();return b.se(a,c,e)};b.jX=function(a){switch(a){case 0:a=1024;break;case 1:a=16384;break;case 2:a=262144;break;default:throw d.f.X("Internal Error");}return a};b.az=function(a){return a.u()||1607!=a.G()&&1736!=a.G()?!1:!0};b.prototype.lS=function(a,b){b=b.Da();for(var c=new d.b,f=new d.b;b.Ya();)for(;b.Ca();){var h=b.ba();if(322!=h.G())throw d.f.X("Internal Error");a.$h(h.ec(),c);a.$h(h.Cc(),f);this.qj.Py(c.x,c.y,f.x,f.y)}this.qj.XJ(d.yy.oy)}; b.prototype.mS=function(){throw d.f.X("Internal Error");};b.prototype.Az=function(a,b){for(var c=1;4>c;c++)a.Py(b[c-1].x,b[c-1].y,b[c].x,b[c].y);a.Py(b[3].x,b[3].y,b[0].x,b[0].y);this.qj.XJ(d.yy.oy)};b.prototype.cL=function(a,b,e){for(var c=[null,null,null,null],h=0;hx;0==x?h.ka(1,0):(w||q.L(t),h.scale(e/x),g.ka(-h.y,h.x),k.ka(h.y,-h.x),m.sub(h),t.add(h),c[0].add(m,g),c[1].add(m,k),c[2].add(t,k),c[3].add(t,g),w?n=!0:this.Az(a,c))}else n&&(this.Az(a,c),n=!1),v=!0}n&&this.Az(a,c)}};b.prototype.TC=function(a){return d.J.truncate(a*this.BI+this.mJ)};b.prototype.UC=function(a){return d.J.truncate(a*this.zt+this.oJ)};b.ee=function(a,c, e){return new b(a,c,e)};b.se=function(a,c,e){return new b(a,c,e)};b.prototype.jw=function(a,b,e){this.hg=Math.max(d.J.truncate(2*Math.sqrt(e)+.5),64);this.In=d.J.truncate((2*this.hg+31)/32);this.$l=new d.h;this.jl=b;e=0;for(var c=this.hg,h=this.In;8<=c;)e+=c*h,c=d.J.truncate(c/2),h=d.J.truncate((2*c+31)/32);this.Dh=d.J.gf(e,0);this.qj=new d.yy;e=new m(this.Dh,this.In,this);this.qj.uY(this.hg,this.hg,e);a.s(this.$l);this.$l.O(b,b);var c=new d.h,h=d.h.pa(1,1,this.hg-2,this.hg-2),g=b*h.N();b*=h.fa(); c.I(this.$l.Wf(),Math.max(g,this.$l.N()),Math.max(b,this.$l.fa()));this.xB=this.jl;this.kl=new d.Hd;this.kl.jU(c,h);new d.Hd;switch(a.G()){case 550:e.Jx(this.qj,2);this.mS();break;case 1607:e.Jx(this.qj,2);this.cL(this.qj,a,this.xB);break;case 1736:e.Jx(this.qj,1),this.lS(this.kl,a),e.Jx(this.qj,2),this.cL(this.qj,a,this.xB)}this.BI=this.kl.lb;this.zt=this.kl.gb;this.mJ=this.kl.Wb;this.oJ=this.kl.bc;this.ZP()};b.prototype.ZP=function(){this.qj.flush();for(var a=0,b=this.hg*this.In,e=this.hg,f=d.J.truncate(this.hg/ 2),h=this.In,g=d.J.truncate((2*f+31)/32);8>4,p=2*(p&15),v=q>>4,q=2*(q&15),x=this.Dh[a+h*k+n]>>p&3,x=x|this.Dh[a+h*k+v]>>q&3,x=x|this.Dh[a+h*m+n]>>p&3,x=x|this.Dh[a+h*m+v]>>q&3;this.Dh[b+g*e+(t>>4)]|=x<<2*(t&15)}e=f;h=g;a=b;f=d.J.truncate(e/2);g=d.J.truncate((2*f+31)/32);b=a+h*e}};b.prototype.rm=function(a,b){if(!this.$l.contains(a,b))return 0;a=this.TC(a);b=this.UC(b);if(0>a||a>=this.hg||0>b||b>=this.hg)return 0;a=this.Dh[this.In* b+(a>>4)]>>2*(a&15)&3;return 0==a?0:1==a?1:2};b.prototype.Sn=function(a){if(!a.Ma(this.$l))return 0;var b=this.TC(a.o),e=this.TC(a.v),f=this.UC(a.A);a=this.UC(a.B);0>b&&(b=0);0>f&&(f=0);e>=this.hg&&(e=this.hg-1);a>=this.hg&&(a=this.hg-1);if(b>e||f>a)return 0;for(var h=Math.max(e-b,1)*Math.max(a-f,1),g=0,k=this.In,m=this.hg,t=0;;){if(32>h||16>m){for(h=f;h<=a;h++)for(var p=b;p<=e;p++)if(t=this.Dh[g+k*h+(p>>4)]>>2*(p&15)&3,14*Math.max(a.D(),c.D())*e?!1:b.NB(a,c,e,!0)};b.gS=function(a,c,e){var d=b.wc(a,c,!0);return 4==d?!0:1==d||2==d||1073741824==d?!1:b.aD(a,c,e)};b.kW=function(a,c,e){var d=b.wc(a,c,!1);return 4==d||1==d||2==d?!1:b.gD(a,c,e,null)};b.gV=function(a,c,e,d){var f=b.wc(a,c,!1);return 4==f||1==f||2==f?!1:b.bD(a,c,e,d)};b.Dx=function(a,c,e,f){var h=new d.h,g=new d.h;a.s(h);c.s(g);if(!b.Ec(h,g,e))return!1;h=b.wc(a,c,!1);return 4==h||2==h?!1:1==h?!0:b.AL(a,c, e,f)};b.ES=function(a,c,e){var d=b.wc(a,c,!0);return 4==d?!0:1==d||1073741824==d?!1:b.aD(a,c,e)};b.uW=function(a,c,e,d){var f=b.wc(a,c,!1);return 4==f||1==f?!1:b.iD(a,c,e,d)};b.CP=function(a,c,e){var d=b.wc(a,c,!1);return 4==d||1==d?!1:b.$C(a,c,e,null)};b.KB=function(a,c,e,f){var h=new d.h,g=new d.h;a.s(h);c.s(g);if(!b.Ec(h,g,e))return!1;h=b.wc(a,c,!1);return 4==h?!1:1==h?!0:b.BL(a,c,e,f)};b.VR=function(a,b,e){return 0==d.gd.VH(a,b,e)?!0:!1};b.cW=function(a,c,e){c=c.w();return b.dD(a,c,e)};b.vO=function(a, c,e){c=c.w();return b.zL(a,c,e)};b.AR=function(a,c,e){var f=b.wc(a,c,!1);if(4==f)return!0;if(1==f)return!1;f=new d.h;a.s(f);f.O(e,e);for(var h=new d.b,g=0;ge&&g.N()>e||g.fa()<=e&&g.N()<=e)return!1;h=new d.Ua;g=new d.Wa;c.ig(0, g);h.Rf(g);c.ig(2,g);h.lineTo(g);return b.$C(a,h,e,f)};b.NL=function(a,c,e){var f=new d.h,h=new d.h;a.s(f);c.s(h);return b.We(f,h,e)&&4!=b.wc(a,c,!1)?b.pJ(a,c,e)?!0:b.NB(a,c,e,!1):!1};b.xZ=function(a,b,e){return 4==this.wc(a,b,!1)?!0:(new d.Mm(a,b,e,!0)).next()?!this.eI(a,b,e):!1};b.sD=function(a,c,e){if(4==b.wc(a,c,!1))return!1;var f=new d.Sd(0);if(0!=b.QB(a,c,e,f))return!1;for(var h=new d.Ed,g=0;ge&&h.N()>e?!1:b.We(f,h,e)};b.oZ=function(a,c,e){var f=new d.h,h=new d.h;a.s(f);c.s(h);return b.Ec(h, f,e)?!1:!b.WH(a,h,e)};b.iM=function(a,c,e){var f=new d.h,h=new d.h;a.s(f);c.s(h);if(h.fa()<=e&&h.N()<=e)return h=c.Bq(),b.fC(a,h,e);if(h.fa()<=e||h.N()<=e)return h=new d.Ua,f=new d.Wa,c.ig(0,f),h.Rf(f),c.ig(2,f),h.lineTo(f),b.sD(a,h,e);a=a.Da();c=new d.h;f=new d.h;c.I(h);f.I(h);c.O(-e,-e);f.O(e,e);for(var h=!1,g=new d.h,k=new d.h;a.Ya();)for(;a.Ca();){a.ba().s(g);k.I(c);k.Ma(g);if(!k.u()&&(k.fa()>e||k.N()>e))return!1;k.I(f);k.Ma(g);k.u()||(h=!0)}return h};b.YL=function(a,c,e){var f=new d.h,h=new d.h; a.s(f);c.s(h);if(b.Ec(f,h,e)||b.Ec(h,f,e)||b.Ec(h,f,e)||h.fa()>e&&h.N()>e||h.fa()<=e&&h.N()<=e)return!1;f=new d.Ua;h=new d.Wa;c.ig(0,h);f.Rf(h);c.ig(2,h);f.lineTo(h);return b.ZH(a,f,e)};b.CM=function(a,c,e){var f=new d.h,h=new d.h;a.s(f);c.s(h);if(!b.Ec(h,f,e)||h.fa()<=e&&h.N()<=e)return!1;if(h.fa()<=e||h.N()<=e)return b.Ec(h,f,e);a=a.Da();c=new d.h;c.I(h);c.O(-e,-e);for(var h=!1,f=new d.h,g=new d.h;a.Ya();)for(;a.Ca();)a.ba().s(f),c.Um(f)?h=!0:(g.I(c),g.Ma(f),!g.u()&&(g.fa()>e||g.N()>e)&&(h=!0)); return h};b.mX=function(a,c,e){var f=new d.h,h=new d.h;c.s(h);a.s(f);if(!b.Ec(f,h,e)||h.fa()>e&&h.N()>e)return!1;if(h.fa()<=e&&h.N()<=e)return c=c.Bq(),b.xH(a,c,e);f=new d.Ua;h=new d.Wa;c.ig(0,h);f.Rf(h);c.ig(2,h);f.lineTo(h);return b.Wg(f,a,e,!1)};b.dZ=function(a,c,e){var f=new d.h,h=new d.h;a.s(f);c.s(h);if(b.Ec(h,f,e)||h.fa()<=e&&h.N()<=e)return!1;if(h.fa()<=e||h.N()<=e)return f=new d.Ua,h=new d.Wa,c.ig(0,h),f.Rf(h),c.ig(2,h),f.lineTo(h),b.oD(a,f,e);a=a.Da();c=new d.h;f=new d.h;f.I(h);c.I(h);f.O(-e, -e);c.O(e,e);for(var g=h=!1,k=new d.h,m=new d.h;a.Ya();)for(;a.Ca();)if(a.ba().s(k),g||c.contains(k)||(g=!0),h||(m.I(f),m.Ma(k),!m.u()&&(m.fa()>e||m.N()>e)&&(h=!0)),h&&g)return!0;return!1};b.aM=function(a,c,e){var f=new d.h,h=new d.h;a.s(f);c.s(h);return b.We(f,h,e)?b.hM(a,c,e)?!0:b.PC(a,c,e,!1,!0,!1):!1};b.QL=function(a,c,e){return!b.BJ(a,c,e)};b.GM=function(a,c,e){return b.PC(a,c,e,!1,!1,!0)};b.rJ=function(a,c,e){var f=new d.h,h=new d.h;a.s(f);c.s(h);return b.Ec(f,h,e)?b.PC(c,a,e,!0,!1,!1):!1}; b.xx=function(a,b,e){e*=e;for(var c=new d.b,h=new d.b,g=0;ge||h.N()>e?!1:b.We(f,h,e)};b.ML=function(a,c, e){var f=new d.h,h=new d.h;a.s(f);c.s(h);if(b.Ec(h,f,e))return!1;c=new d.h;c.I(h);c.O(e,e);e=new d.b;for(h=0;he?g.O(0,-e):g.O(-e,0);for(var m=0;me){if(b.y>g.A&&b.yg.o&&b.xe?f.O(0,-e):f.O(-e,0);g.O(e,e);for(var k=new d.b,m=0;me?k.y>f.A&&k.yf.o&&k.xe||h.N()>e)return!1;c=c.Bq();return!b.Zt(a,c,e)};b.GL=function(a,c,e){var f=new d.h,h=new d.h;a.s(f);c.s(h);if(b.Ec(h,f,e)||h.fa()<=e&&h.N()<=e)return!1;if(h.fa()<=e||h.N()<=e){c=new d.h;f=new d.h;c.I(h);h.fa()>e?c.O(0,-e):c.O(-e,0);f.I(h);f.O(e,e);for(var g=new d.b,k=!1,m= !1,t=0;te?g.y>c.A&&g.yc.o&&g.xe*e?!0:!1};b.dL=function(a,c,e){return b.xL(a,c,e)};b.oL=function(a,c,e){var f=new d.h;f.I(a); return b.We(f,c,e)};b.Cx=function(a,b,e){var c=new d.h;c.I(b);c.O(e,e);return!c.contains(a)};b.VC=function(a,b,e){if(b.fa()<=e&&b.N()<=e)return!1;var c=new d.h,h=new d.h;c.I(b);c.O(e,e);if(!c.contains(a))return!1;if(b.fa()<=e||b.N()<=e){h.I(b);b.fa()>e?h.O(0,-e):h.O(-e,0);if(b.fa()>e){if(a.y>h.A&&a.yh.o&&a.x e?c.O(0,-e):c.O(-e,0);var h=!1;b.fa()>e?a.y>c.A&&a.yc.o&&a.xe&&a.N()>e&&(c.fa()<=e||c.N()<=e)?f=c:(f=a,a=c);if(f.fa()<=e|| f.N()<=e){if(a.fa()<=e||a.N()<=e){c=new d.Hb;var h=new d.Hb,g=[0,0],k=[0,0],m=new d.b;f.Un(m);c.Mc(m);f.Vn(m);c.Zc(m);a.Un(m);h.Mc(m);a.Vn(m);h.Zc(m);c.Ma(h,null,g,k,e);return 1!=c.Ma(h,null,null,null,e)?!1:0==g[0]||1==g[1]||0==k[0]||1==k[1]}c=new d.h;h=new d.h;c.I(a);c.O(-e,-e);h.I(c);h.Ma(f);return!h.u()&&(h.fa()>e||h.N()>e)?!1:!0}a.O(e,e);h=new d.h;h.I(f);h.Ma(a);return h.u()||!h.u()&&h.fa()>e&&h.N()>e?!1:!0};b.ZO=function(a,c,e){if(b.Ec(a,c,e)||b.Ec(c,a,e)||a.fa()<=e&&a.N()<=e||c.fa()<=e&&c.N()<= e)return!1;if(a.fa()<=e||a.N()<=e){if(c.fa()>e&&c.N()>e)return!1;var f=new d.Hb,h=new d.Hb,g=[0,0],k=[0,0],m=new d.b;a.Un(m);f.Mc(m);a.Vn(m);f.Zc(m);c.Un(m);h.Mc(m);c.Vn(m);h.Zc(m);f.Ma(h,null,g,k,e);return 2!=f.Ma(h,null,null,null,e)?!1:(0g[1])&&(0k[1])}if(c.fa()<=e||c.N()<=e)return!1;f=new d.h;f.I(a);f.Ma(c);return f.u()||f.fa()<=e||f.N()<=e?!1:!0};b.QE=function(a,c,e){if(!b.Ec(a,c,e))return!1;if(a.fa()<=e&&a.N()<=e)return a=a.Wf(),b.WC(a,c,e);if(c.fa()<=e&&c.N()<=e)return c=c.Wf(), b.WC(c,a,e);if(a.fa()<=e||a.N()<=e)return b.Ec(a,c,e);if(c.fa()<=e||c.N()<=e){var f=new d.h;f.I(a);f.O(-e,-e);if(f.Um(c))return!0;a=new d.h;a.I(f);a.Ma(c);return a.u()||a.fa()<=e&&a.N()<=e?!1:!0}return b.Ec(a,c,e)};b.CL=function(a,c,e){if(b.Ec(a,c,e)||b.Ec(c,a,e)||a.fa()<=e&&a.N()<=e||c.fa()<=e&&c.N()<=e||c.fa()>e&&c.N()>e&&a.fa()>e&&a.N()>e)return!1;var f;a.fa()>e&&a.N()>e?f=c:(f=a,a=c);if(a.fa()>e&&a.N()>e){c=new d.h;var h=new d.h;h.I(a);h.O(-e,-e);c.I(h);c.Ma(f);return c.u()||c.fa()<=e&&c.N()<= e?!1:!0}c=new d.Hb;var h=new d.Hb,g=[0,0],k=[0,0],m=new d.b;f.Un(m);c.Mc(m);f.Vn(m);c.Zc(m);a.Un(m);h.Mc(m);a.Vn(m);h.Zc(m);c.Ma(h,null,g,k,e);return 1!=c.Ma(h,null,null,null,e)?!1:0g[1]&&0k[1]};b.aD=function(a,b,e){var c,h,g=new d.h,k=new d.h,m=new d.Mm(a,b,e,!0);if(!m.next())return!0;if(this.eI(a,b,e))return!1;var t;t=a;var p;p=null;1736==b.G()&&(p=b);var q=!1,n=!1;do{c=m.Ql();h=m.Ml();h=b.Aa(b.wa(h));g.I(m.dA());g.O(e,e);if(g.contains(h)&&(h=d.gd.fe(t,h,0),0!=h)||1736==b.G()&& (c=a.Aa(a.wa(c)),k.I(m.Hz()),k.O(e,e),k.contains(c)&&(h=d.gd.fe(p,c,0),0!=h)))return!1;q||(!d.ff.qm(a,b.aa()-1)||null!=a.ob&&null!=a.ob.Mb?t=a:(t=new d.Ia,a.copyTo(t),t.Hj(1)),q=!0);1736!=b.G()||n||(n=b,!d.ff.qm(n,a.aa()-1)||null!=b.ob&&null!=b.ob.Mb?p=b:(p=new d.Ia,n.copyTo(p),p.Hj(1)),n=!0)}while(m.next());return!0};b.Ec=function(a,b,e){var c=new d.h;c.I(a);c.O(e,e);return c.contains(b)};b.Yp=function(a,b,e){var c=new d.h;c.I(b);c.O(e,e);b=new d.b;a.Un(b);if(!c.contains(b))return!0;a.SJ(b);if(!c.contains(b))return!0; a.VJ(b);if(!c.contains(b))return!0;a.Vn(b);return c.contains(b)?!1:!0};b.pJ=function(a,b,e){if(a.aa()!=b.aa()||a.D()!=b.D())return!1;var c=new d.b,h=new d.b,g=!0;e*=e;for(var k=0;ke){g=!1;break}if(!g)break}return g?!0:!1};b.hM=function(a,b,e){if(a.D()!=b.D())return!1;var c=new d.b,h=new d.b,g=!0;e*=e;for(var k=0;ke){g=!1;break}return g?!0:!1};b.PC= function(a,b,e,f,h,g){var c=!1,l;a.D()>b.D()?(f&&(f=!1,c=!0),l=b):(l=a,a=b);b=null;if(h||g||c){b=new d.Gm(a.D());for(var m=0;mb.D()?c=b:(c=a,a=b);b=new d.h;var h=new d.h,g=new d.h;c.s(b);a.s(h);b.O(e,e);h.O(e,e);g.I(b);g.Ma(h);for(var h=new d.b,k=new d.b,m=e*e,n=d.ma.AF(a,g),p=n.mf(),q=0;qe)return!1;B=u.rj;if(D*(1-B)<=e||1==B)break}if(D*(1-B)>e)return!1;n=0;p.resize(0);q.Ph.length=0}}return g};b.ZH=function(a,c,e){if(1>b.QB(a,c,e,null))return!1;var f=new d.h,h=new d.h;a.s(f);c.s(h);var g=b.Yp(f,h,e),f=b.Yp(h,f,e);return g&&f?!0:g&& !f?!b.Wg(c,a,e,!1):f&&!g?!b.Wg(a,c,e,!1):!b.Wg(a,c,e,!1)&&!b.Wg(c,a,e,!1)};b.QB=function(a,c,e,f){function h(a,b){return x.VF(a,b)}var g,k;a.hA()>c.hA()?(g=c,k=a):(g=a,k=c);a=g.Da();c=k.Da();var r=[0,0],n=[0,0],p=-1,q=0,u,v=new d.ia(0),x=new b,w,y=new d.h,D=new d.h,z=new d.h;g.s(y);k.s(D);y.O(e,e);D.O(e,e);z.I(y);z.Ma(D);g=null;null!=f&&(g=new d.b);u=D=D=null;var B=k.ob;null!=B?(D=B.Mb,u=B.np,null==D&&(D=d.ma.Lj(k,z))):D=d.ma.Lj(k,z);k=D.mf();B=null;for(null!=u&&(B=u.mf());a.Ya();)for(u=0;a.Ca();){var A= a.ba();A.s(y);if(y.Yb(z)&&(null==B||(B.Ni(y,e),-1!=B.next()))){var C=A.Rb();k.Xn(A,e);for(var E=k.next();-1!=E;E=k.next()){var F=D.ja(E);c.Tb(F);w=c.ba();var G=w.Rb(),H=A.Ma(w,null,r,n,e);if(0e)return p=1;var M=C*(J-E);if(c.Ca()){w=c.ba();H=A.Ma(w,null,r,null,e);if(2==H){var H=r[0],L=r[1],H=C*(L-H);if(M+H>e)return p=1}c.Tb(F);c.ba()}if(!c.kn()){c.Li();w=c.Li();H=A.Ma(w,null,r,null,e);if(2==H&&(H=r[0],L=r[1],H=C*(L-H),M+H>e))return p= 1;c.Tb(F);c.ba()}if(a.Ca()){F=a.Db();A=a.ba();H=A.Ma(w,null,r,null,e);if(2==H&&(H=r[0],L=r[1],H=C*(L-H),M+H>e))return p=1;a.Tb(F);a.ba()}if(!a.kn()){F=a.Db();a.Li();A=a.Li();H=A.Ma(w,null,r,null,e);if(2==H&&(H=r[0],L=r[1],H=G*(L-H),M+H>e))return p=1;a.Tb(F);a.ba()}w=m.pa(a.Db(),a.Ta,E,J,c.Db(),c.Ta,p,I);x.Ph.push(w);v.add(v.size)}p=0;null!=f&&(A.gc(E,g),f.add(g.x),f.add(g.y))}}if(qe)u=C*(w.rj-w.dk),A=w.rj,E=w.An;else{w.An!=E?(u=C*(w.rj-w.dk),E=w.An):u+=C*(w.rj-w.dk);if(u>e)return p=1;A=w.rj;if(1==A)break}C*(1-A)>e&&(u=0);q=0;v.resize(0);x.Ph.length=0}}}return p};b.eI=function(a,b,e){var c=a.Da(),h=b.Da();for(a=new d.Mm(a,b,e,!1);a.next();){b=a.Ql();var g=a.Ml();c.Tb(b);h.Tb(g);b=c.ba();if(0e)return!1;q=!0}else if(0!=v){q=m[0];u=n[0];if(0q&&0u)return!1;q=!0}}if(!q)return!1;g=new d.h;k=new d.h;c=new d.h;a.s(g);b.s(k);g.O(1E3*e,1E3*e);k.O(1E3*e,1E3*e);c.I(g);c.Ma(k);return 10e&&(n=!0,p&&q))return!0}else if(0!=D&&(D=x[0],z=w[0],0D&&0z))return!0}h=new d.h;u=new d.h;h.I(g);h.O(1E3*e,1E3*e);u.I(k);u.O(1E3*e,1E3*e);m.I(h);m.Ma(u);g="";g=n?g+"**":g+"T*";if(p){if(10q&&0u)))return f[0]=!0,!1}if(!p){f[0]=!0;k=new d.h;a.s(k);k.O(e,e);n=a;p=!1;m=new d.h;f=0;for(c=b.aa();fp&&0q)return!1;p=!0}}if(!p)return!1;g=new d.h;k=new d.h;c=new d.h;a.s(g); b.s(k);g.O(1E3*e,1E3*e);k.O(1E3*e,1E3*e);c.I(g);c.Ma(k);return 10p&&0q)return!0;p=!0}}if(!p)return!1;g=new d.h;k=new d.h;m=new d.h;n=new d.h;h=new d.h;a.s(g);c.s(k); return b.Yp(k,g,e)?(m.I(g),m.O(1E3*e,1E3*e),n.I(k),n.O(1E3*e,1E3*e),h.I(m),h.Ma(n),10c;c++){var g=f.charAt(c);if("*"!=g&&"T"!=g&&"F"!=g&&"0"!=g&&"1"!=g&&"2"!=g)throw d.f.X("relation string");}c=this.ET(f,a.tb(),b.tb());if(0!=c)return d.Fd.YB(a, b,e,c,h);c=new d.h;a.s(c);g=new d.h;b.s(g);var m=new d.h;m.I(c);m.Nb(g);e=d.ma.be(e,m,!1);a=this.aG(a,e);b=this.aG(b,e);if(a.u()||b.u())return this.rX(a,b,f);c=b.G();g=!1;switch(a.G()){case 1736:switch(c){case 1736:g=this.fu(a,b,e,f,h);break;case 1607:g=this.Pn(a,b,e,f,h);break;case 33:g=this.eu(a,b,e,f,h);break;case 550:g=this.du(a,b,e,f,h)}break;case 1607:switch(c){case 1736:g=this.Pn(b,a,e,this.Pq(f),h);break;case 1607:g=this.LB(a,b,e,f,h);break;case 33:g=this.hu(a,b,e,f,h);break;case 550:g=this.gu(a, b,e,f,h)}break;case 33:switch(c){case 1736:g=this.eu(b,a,e,this.Pq(f),h);break;case 1607:g=this.hu(b,a,e,this.Pq(f),h);break;case 33:g=this.FW(a,b,e,f);break;case 550:g=this.$t(b,a,e,this.Pq(f),h)}break;case 550:switch(c){case 1736:g=this.du(b,a,e,this.Pq(f),h);break;case 1607:g=this.gu(b,a,e,this.Pq(f),h);break;case 550:g=this.CB(a,b,e,f,h);break;case 33:g=this.$t(a,b,e,f,h)}break;default:g=!1}return g};b.fu=function(a,c,e,f,h){var g=new b;g.xj();g.Bj(f);g.nK();var k=new d.h,m=new d.h;a.s(k);c.s(m); f=!1;d.Fd.Dk(k,m,e)&&(g.lv(a,c),f=!0);f||(k=d.Fd.wc(a,c,!1),4==k?(g.lv(a,c),f=!0):1==k?(g.Ry(c),f=!0):2==k&&(g.kF(a),f=!0));f||(f=new d.fd,a=f.Jb(a),c=f.Jb(c),g.Fp(f,e,h),g.tq(a,c),g.i.qh());return b.zg(g.H,g.dd)};b.Dx=function(a,c,e,f){var h=new b;h.xj();h.Bj("T*****F**");h.nK();var g=new d.h,k=new d.h;a.s(g);c.s(k);var m=!1;d.Fd.Dk(g,k,e)&&(h.lv(a,c),m=!0);m||(g=d.Fd.wc(a,c,!1),4==g?(h.lv(a,c),m=!0):1==g?(h.Ry(c),m=!0):2==g&&(h.kF(a),m=!0));if(m)return g=this.zg(h.H,h.dd);m=new d.fd;a=m.Jb(a);g= m.Jb(c);d.rk.V(m,e,f,!1);e=m.Se(g).Gg();m.zq(0,!0,!0);d.lo.V(m,a,-1,!1,f);if(0==m.D(a))return!1;d.lo.V(m,g,-1,!1,f);h.Xr(m,f);c=0==m.D(g);if(!c&&(h.tq(a,g),h.i.qh(),g=this.zg(h.H,h.dd),!g))return g;a=m.Se(a);m=new d.fd;a=m.Jb(a);g=m.Jb(e);h.Xr(m,f);h.Ie=0;h.xj();h.Bj(c?"T*****F**":"******F**");h.gC();h.tq(a,g);h.i.qh();return g=this.zg(h.H,h.dd)};b.Pn=function(a,c,e,f,h){var g=new b;g.xj();g.Bj(f);g.gC();var k=new d.h,m=new d.h;a.s(k);c.s(m);f=!1;d.Fd.Dk(k,m,e)&&(g.mv(a,c),f=!0);f||(k=d.Fd.wc(a,c, !1),4==k?(g.mv(a,c),f=!0):1==k&&(g.lF(c),f=!0));f||(f=new d.fd,a=f.Jb(a),c=f.Jb(c),g.Fp(f,e,h),g.Fh=g.i.wq(),b.ov(c,g.i,g.Fh),g.tq(a,c),g.i.xq(g.Fh),g.i.qh());return b.zg(g.H,g.dd)};b.KB=function(a,c,e,f){var h=new b;h.xj();h.Bj("T*****F**");h.gC();var g=new d.h,k=new d.h;a.s(g);c.s(k);var m=!1;d.Fd.Dk(g,k,e)&&(h.mv(a,c),m=!0);m||(g=d.Fd.wc(a,c,!1),4==g?(h.mv(a,c),m=!0):1==g&&(h.lF(c),m=!0));if(m)return e=this.zg(h.H,h.dd);m=new d.fd;a=m.Jb(a);c=m.Jb(c);h.Fp(m,e,f);if(0==m.D(a))return!1;h.tq(a,c); h.i.qh();return e=this.zg(h.H,h.dd)};b.du=function(a,c,e,f,h){var g=new b;g.xj();g.Bj(f);g.oK();var k=new d.h,m=new d.h;a.s(k);c.s(m);f=!1;d.Fd.Dk(k,m,e)&&(g.nv(a),f=!0);f||(k=d.Fd.wc(a,c,!1),4==k?(g.nv(a),f=!0):1==k&&(g.AP(),f=!0));f||(f=new d.fd,a=f.Jb(a),c=f.Jb(c),g.Fp(f,e,h),g.kz(a,c),g.i.qh());return b.zg(g.H,g.dd)};b.LB=function(a,c,e,f,h){var g=new b;g.xj();g.Bj(f);g.YX();f=new d.h;var k=new d.h;a.s(f);c.s(k);var m=!1;d.Fd.Dk(f,k,e)&&(g.cI(a,c),m=!0);m||4!=d.Fd.wc(a,c,!1)||(g.cI(a,c),m=!0); m||(f=new d.fd,a=f.Jb(a),c=f.Jb(c),g.Fp(f,e,h),g.xi=g.i.wq(),g.Fh=g.i.wq(),b.ov(a,g.i,g.xi),b.ov(c,g.i,g.Fh),g.tq(a,c),g.i.xq(g.xi),g.i.xq(g.Fh),g.i.qh());return b.zg(g.H,g.dd)};b.gu=function(a,c,e,f,h){var g=new b;g.xj();g.Bj(f);g.CK();f=new d.h;var k=new d.h;a.s(f);c.s(k);var m=!1;d.Fd.Dk(f,k,e)&&(g.FA(a),m=!0);m||4!=d.Fd.wc(a,c,!1)||(g.FA(a),m=!0);m||(f=new d.fd,a=f.Jb(a),c=f.Jb(c),g.Fp(f,e,h),g.xi=g.i.wq(),b.ov(a,g.i,g.xi),g.kz(a,c),g.i.xq(g.xi),g.i.qh());return b.zg(g.H,g.dd)};b.CB=function(a, c,e,f,h){var g=new b;g.xj();g.Bj(f);g.HK();f=new d.h;var k=new d.h;a.s(f);c.s(k);var m=!1;d.Fd.Dk(f,k,e)&&(g.FJ(),m=!0);m||(f=new d.fd,a=f.Jb(a),c=f.Jb(c),g.Fp(f,e,h),g.kz(a,c),g.i.qh());return b.zg(g.H,g.dd)};b.eu=function(a,c,e,f){var h=new b;h.xj();h.Bj(f);h.oK();var g=new d.h;a.s(g);c=c.w();var k=!1;d.Fd.Cx(c,g,e)&&(h.nv(a),k=!0);k||(e=d.gd.fe(a,c,e),1==e?(h.H[0]=0,h.H[2]=2,h.H[3]=-1,h.H[5]=1,h.H[6]=-1):2==e?(h.H[6]=-1,0!=a.hf()?(h.H[0]=-1,h.H[3]=0,h.H[2]=2,h.H[5]=1):(h.H[0]=0,h.H[3]=-1,h.H[5]= -1,e=new d.h,a.s(e),h.H[2]=0==e.fa()&&0==e.N()?-1:1)):h.nv(a));return this.zg(h.H,f)};b.hu=function(a,c,e,f,h){var g=new b;g.xj();g.Bj(f);g.CK();var k=new d.h;a.s(k);f=c.w();var m=!1;d.Fd.Cx(f,k,e)&&(g.FA(a),m=!0);if(!m){var k=null,n=m=!1;if(g.ga[0]||g.ga[6])d.Fd.GA(a,f,e)?(g.ga[0]&&(k=d.Pi.Sm(a,h),n=!d.Fd.Zt(k,f,e),m=!0,g.H[0]=n?-1:0),g.H[6]=-1):(g.H[0]=-1,g.H[6]=0);g.ga[3]&&(null!=k&&k.u()?g.H[3]=-1:(m||(null==k&&(k=d.Pi.Sm(a,h)),n=!d.Fd.Zt(k,f,e),m=!0),g.H[3]=n?0:-1));g.ga[5]&&(null!=k&&k.u()? g.H[5]=-1:m&&!n?g.H[5]=0:(null==k&&(k=d.Pi.Sm(a,h)),h=d.Fd.yx(k,c,e),g.H[5]=h?-1:0));g.ga[2]&&(0!=a.Rb()?g.H[2]=1:(h=new d.Ed(a.description),h.Jd(a,0,a.D()),a=d.Fd.yx(h,c,e),g.H[2]=a?-1:0))}return this.zg(g.H,g.dd)};b.$t=function(a,c,e,f){var h=new b;h.xj();h.Bj(f);h.HK();var g=new d.h;a.s(g);c=c.w();var k=!1;d.Fd.Cx(c,g,e)&&(h.FJ(),k=!0);if(!k){g=!1;k=!0;e*=e;for(var m=0;mg;g++)h[g]=-1;d.b.sc(a,c)<=e*e?h[0]=0:(h[2]=0,h[6]=0);h[8]=2;return b.zg(h,f)};b.zg=function(a,b){for(var c=0;9>c;c++)switch(b.charAt(c)){case "T":if(-1==a[c])return!1;break;case "F":if(-1!=a[c])return!1;break;case "0":if(0!=a[c])return!1;break;case "1":if(1!=a[c])return!1;break;case "2":if(2!=a[c])return!1}return!0};b.rX=function(a,b,e){var c=[-1,-1,-1,-1,-1,-1,-1,-1,-1];if(a.u()&&b.u()){for(var h=0;9>h;h++)c[h]=-1; return this.zg(c,e)}h=!1;a.u()&&(a=b,h=!0);c[0]=-1;c[1]=-1;c[3]=-1;c[4]=-1;c[6]=-1;c[7]=-1;c[8]=2;b=a.G();d.T.Ic(b)?1736==b?0!=a.hf()?(c[2]=2,c[5]=1):(c[5]=-1,b=new d.h,a.s(b),c[2]=0==b.fa()&&0==b.N()?0:1):(b=0!=a.Rb(),c[2]=b?1:0,c[5]=d.Pi.Rq(a)?0:-1):(c[2]=0,c[5]=-1);h&&this.jL(c);return this.zg(c,e)};b.ET=function(a,c,e){return b.jQ(a)?3:b.rO(a)?4:b.fU(a,c,e)?8:b.iO(a,c,e)?16:b.NN(a)?1:b.YM(a,c,e)?32:0};b.jQ=function(a){return"T"==a.charAt(0)&&"*"==a.charAt(1)&&"F"==a.charAt(2)&&"*"==a.charAt(3)&& "*"==a.charAt(4)&&"F"==a.charAt(5)&&"F"==a.charAt(6)&&"F"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1};b.rO=function(a){return"F"==a.charAt(0)&&"F"==a.charAt(1)&&"*"==a.charAt(2)&&"F"==a.charAt(3)&&"F"==a.charAt(4)&&"*"==a.charAt(5)&&"*"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1};b.fU=function(a,b,e){if(0==b&&0==e)return!1;if(2!=b||2!=e)if("F"==a.charAt(0)&&"*"==a.charAt(1)&&"*"==a.charAt(2)&&"T"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&&"*"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8)|| 1==b&&1==e&&"F"==a.charAt(0)&&"T"==a.charAt(1)&&"*"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&&"*"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8))return!0;return 0!=e&&"F"==a.charAt(0)&&"*"==a.charAt(1)&&"*"==a.charAt(2)&&"*"==a.charAt(3)&&"T"==a.charAt(4)&&"*"==a.charAt(5)&&"*"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1};b.iO=function(a,b,e){return b>e?"T"==a.charAt(0)&&"*"==a.charAt(1)&&"*"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&& "T"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1:1==b&&1==e&&"0"==a.charAt(0)&&"*"==a.charAt(1)&&"*"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&&"*"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1};b.NN=function(a){return"T"==a.charAt(0)&&"*"==a.charAt(1)&&"*"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&&"F"==a.charAt(6)&&"F"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1};b.YM=function(a,b,e){if(b==e){if(1!=b)return"T"==a.charAt(0)&&"*"==a.charAt(1)&& "T"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&&"T"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1;if("1"==a.charAt(0)&&"*"==a.charAt(1)&&"T"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&&"T"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8))return!0}return!1};b.ov=function(a,b,e){a=b.Ha(a);for(var c=b.rf;-1!=c;c=b.og(c))if(0!=(b.Nd(c)&a)){var d=b.kf(c);if(-1==d)b.eo(c,e,0);else{var g=d,k=0;do 0!=(b.Ah(g)&a)&&k++,g=b.qc(b.za(g));while(g!=d);b.eo(c, e,k)}}};b.Pq=function(a){var b;b=""+a.charAt(0);b+=a.charAt(3);b+=a.charAt(6);b+=a.charAt(1);b+=a.charAt(4);b+=a.charAt(7);b+=a.charAt(2);b+=a.charAt(5);return b+=a.charAt(8)};b.prototype.xj=function(){for(var a=0;9>a;a++)this.H[a]=-2,this.eb[a]=-2};b.jL=function(a){var b=a[1],e=a[2],d=a[5];a[1]=a[3];a[2]=a[6];a[5]=a[7];a[3]=b;a[6]=e;a[7]=d};b.prototype.Bj=function(a){this.dd=a;for(a=0;9>a;a++)"*"!=this.dd.charAt(a)?(this.ga[a]=!0,this.Ie++):this.ga[a]=!1};b.prototype.KK=function(){for(var a=0;9> a;a++)this.ga[a]&&-2==this.H[a]&&(this.H[a]=-1,this.ga[a]=!1)};b.prototype.vc=function(a){if(-2==this.H[a])return!1;if(-1==this.H[a])return this.ga[a]=!1,this.Ie--,!0;if("T"!=this.dd.charAt(a)&&"F"!=this.dd.charAt(a)){if(this.H[a]f?1:0};a.prototype.reset=function(){this.dB=-1};return a}(), b=function(){function a(){this.Ln=this.jm=null;this.hb=new d.tk;this.hb.NR();this.we=new g(this);this.hb.Ep(this.we)}a.prototype.xS=function(){var a=!1;this.Uw&&(a=this.yS());if(1==this.a.aa(this.Y)){var b=this.a.Pb(this.Y),a=this.a.fA(b);this.a.nC(b,!0);return 0>a?(a=this.a.cb(b),this.a.eK(a),this.a.sh(b,this.a.Ra(a)),!0):!1}this.hm=this.a.qz();this.kp=this.a.qz();for(b=this.a.Pb(this.Y);-1!=b;b=this.a.Sb(b))this.a.Zr(b,this.hm,0),this.a.Zr(b,this.kp,-1);b=new d.ia(0);this.Wh=NaN;var f=new d.b;this.Wt= this.a.aa(this.Y);this.fp=this.a.Vd();this.Lt=this.a.Vd();for(var h=this.jm.xc(this.jm.Ge);-1!=h;h=this.jm.nb(h)){var g=this.jm.getData(h);this.a.Nc(g,f);f.y!=this.Wh&&0!=b.size&&(a=this.iu(b)||a,this.we.reset(),b.clear(!1));b.add(g);this.Wh=f.y;if(0==this.Wt)break}0=this.qB.length&&this.qB.push(new d.Cg);var a=this.qB[this.rx];this.rx++;return a};b.prototype.clear=function(){this.VB(this.$o);this.VB(this.Tt);this.VB(this.lx);this.rx=0};b.prototype.Ap=function(a){this.$o.push(this.zx(a))};b.prototype.Rl=function(a){return 0==a?this.Tt.length:this.lx.length};b.prototype.Mq=function(a,b){return this.KT(a,b).zj};b.prototype.Ma=function(a,b){if(2!=this.$o.length)throw d.f.ya();this.ta=a;var c=d.Ub.Xx(.01*a),f=!1,h=this.$o[0],g=this.$o[1]; if(b||0!=(h.zj.xs(g.zj,a,!0)&5)){if(322==h.zj.G()&&(b=h.zj,322==g.zj.G())){var k=g.zj,m=d.Hb.Fy(b,k,null,this.ur,this.dl,a);if(0==m)throw d.Hb.Fy(b,k,null,this.ur,this.dl,a),d.f.ya();a=Array(9);d.J.Mv(a,null);for(var n=0;nc&&(f=!0)):u>x?(b.gc(p, y),p=new d.b,k.gc(q,p),d.b.sc(y,p)>c&&(f=!0)):(k.gc(q,y),u=new d.b,b.gc(p,u),d.b.sc(y,u)>c&&(f=!0));a[n]=y}h=0;g=-1;for(n=0;n<=m;n++)w=nthis.dl[1]&&(w=this.dl[0],this.dl[0]=this.dl[1],this.dl[1]=w,n=b[0],b[0]=b[1],b[1]=n);h=0;g=-1;for(n=0;n<=m;n++)w=n=g;g++){b=1>g?this.ur[g]:1;if(b!=e){var k=this.FB();a.yh(e,b,k);-1!=h&&k.get().Mc(c);1!=g&&k.get().Zc(c);e=b;this.Tt.push(this.zx(k.get()))}h=g}this.cg.rb(c)}else throw d.f.ya();};return b}();d.cE=g})(n||(n={}));(function(d){var m=function(){function g(b){this.yt=this.Tk=this.wb=null;this.gm=this.vf=this.cd=this.Ze=this.Oh=this.Ta=0;this.bb=null;this.Sl=this.nn=!1;this.Ze=-1;this.Oh=this.cd=0;this.Ta=-1;this.bb=b;this.vf=this.vs(this.Oh);this.nn=!1;this.Tk=null;this.gm=-1;this.Sl=!1;this.yt=new d.b} g.$p=function(b,a){if(0>a||a>=b.D())throw d.f.vd();var c=new g(b),e=b.bw(a);c.cd=a-b.wa(e);c.Oh=e+1;c.Ta=e;c.vf=c.vs(c.Ta);c.gm=c.bb.wa(c.Ta);c.Sl=c.bb.Qb(c.Ta);return c};g.Zp=function(b,a,c){if(0>a||a>=b.aa()||0>c)throw d.f.vd();var e=b.Qb(a)?0:1;if(c>=b.Ka(a)-e)throw d.f.vd();b=new g(b);b.Ze=-1;b.cd=c;b.Ta=a;b.Oh=b.cd+1;b.vf=b.vs(b.Oh);b.gm=b.bb.wa(b.Ta);b.Sl=b.bb.Qb(b.Ta);return b};g.prototype.xX=function(b){if(this.bb!=b.bb)throw d.f.La();this.Ze=b.Ze;this.cd=b.cd;this.Ta=b.Ta;this.Oh=b.Oh;this.vf= b.vf;this.nn=b.nn;this.gm=b.gm;this.Tk=null;this.Sl=b.Sl};g.prototype.ba=function(){this.Ze!=this.cd&&this.PE();if(this.nn)this.cd=(this.cd+1)%this.vf;else{if(this.cd==this.vf)throw d.f.vd();this.cd++}return this.Tk};g.prototype.Li=function(){if(this.nn)this.cd=(this.vf+this.cd-1)%this.vf;else{if(0==this.cd)throw d.f.vd();this.cd--}this.cd!=this.Ze&&this.PE();return this.Tk};g.prototype.yX=function(){this.Ze=-1;this.cd=0};g.prototype.zX=function(){this.cd=this.vf;this.Ze=-1};g.prototype.Tb=function(b, a){void 0===a&&(a=-1);if(0<=this.Ta&&this.Ta=c&&b=this.bb.wa(a)&&b=this.bb.aa())return!1;this.Ze=-1;this.cd=0;this.vf=this.vs(this.Ta);this.gm=this.bb.wa(this.Ta);this.Sl= this.bb.Qb(this.Ta);this.Oh++;return!0};g.prototype.yj=function(){this.vf=this.cd=this.Ze=-1;this.Oh=0;this.Ta=-1;this.Sl=!1;this.gm=-1};g.prototype.dC=function(b){if(0>b)throw d.f.vd();this.Oh=b;this.gm=this.vf=this.cd=this.Ze=this.Ta=-1;this.Sl=!1};g.prototype.vs=function(b){if(this.bb.Hc())return 0;var a=1;this.bb.Qb(b)&&(a=0);return this.bb.Ka(b)-a};g.prototype.Fo=function(){return this.Ze==this.vf-1&&this.bb.Qb(this.Ta)};g.prototype.iC=function(){this.nn=!0};g.prototype.Db=function(){return this.bb.kb.g[this.Ta]+ this.Ze};g.prototype.NO=function(){return this.bb.wa(this.Ta)};g.prototype.Ik=function(){return this.Fo()?this.bb.wa(this.Ta):this.Db()+1};g.prototype.kn=function(){return 0==this.Ze};g.prototype.Io=function(){return this.Ze==this.vf-1};g.prototype.Ca=function(){return this.cd this.cd||this.cd>=this.vf)throw d.f.vd();this.Ze=this.cd;var b=this.Db();this.bb.tc();var a=this.bb.cf,c=1;null!=a&&(c=a.read(b)&7);a=this.bb.description;switch(c){case 1:null==this.wb&&(this.wb=new d.Hb);this.Tk=this.wb;break;case 2:throw d.f.X("internal error");case 4:throw d.f.ya();default:throw d.f.ya();}this.Tk.Fg(a);c=this.Ik();this.bb.Nc(b,this.yt);this.Tk.Mc(this.yt);this.bb.Nc(c,this.yt);this.Tk.Zc(this.yt);for(var e=1,f=a.Ea;ef&&(c=a,a=e,e=c,c= b,b=f,f=c,c=-1);if(!(0>f||b>=this.Pk)){0>a&&0>e?e=a=-1:a>=this.ai&&e>=this.ai&&(e=a=this.ai);var g=(e-a)/(f-b);f>this.Pk&&(f=this.Pk,e=g*(f-b)+a);0>b&&(a=g*(0-b)+a,b=0);var k=Math.max(this.ai+1,8388607);-8388607>a?(b=(0-a)/g+b,a=0):a>k&&(b=(this.ai-a)/g+b,a=this.ai);-8388607>e?f=(0-a)/g+b:e>k&&(f=(this.ai-a)/g+b);b=d.J.truncate(b);f=d.J.truncate(f);b!=f&&(e=new m,e.x=d.J.truncate(4294967296*a),e.y=b,e.B=f,e.RR=d.J.truncate(4294967296*g),e.dir=c,null==this.Fm&&(this.Fm=d.J.gf(this.Pk,null)),e.next= this.Fm[e.y],this.Fm[e.y]=e,e.ythis.vx&&(this.vx=e.B),this.Lr++)}}};b.prototype.rP=function(){if(null!=this.hi){for(var a=!1,b=null,e=this.hi;null!=e;)if(e.y++,e.y==e.B){var d=e,e=e.next;null!=b?b.next=e:this.hi=e;d.next=null}else e.x+=e.RR,null!=b&&b.x>e.x&&(a=!0),b=e,e=e.next;a&&(this.hi=this.VK(this.hi))}};b.prototype.iP=function(a){if(!(a>=this.Pk)){var b=this.Fm[a];if(null!=b){this.Fm[a]=null;b=this.VK(b);this.Lr-=this.WK;a=this.hi;for(var e=!0,d=b,h=null;null!=a&& null!=d;)a.x>d.x?(e&&(this.hi=d),e=d.next,d.next=a,null!=h&&(h.next=d),h=d,d=e):(e=a.next,a.next=d,null!=h&&(h.next=a),h=a,a=e),e=!1;null==this.hi&&(this.hi=b)}}};b.vG=function(a,b){return 0>a?0:a>b?b:a};b.prototype.XR=function(){if(null!=this.hi)for(var a=0,c=this.hi,e=d.J.truncate(d.J.fI(c.x)),f=c.next;null!=f;f=f.next)if(a=this.tG?a^1:a+f.dir,f.x>c.x){var h=d.J.truncate(d.J.fI(f.x));0!=a&&(c=b.vG(e,this.ai),e=b.vG(h,this.ai),e>c&&cthis.kg[1].x&&(a=this.kg[0],this.kg[0]=this.kg[1],this.kg[1]=a):b.TM(this.kg,c,function(a,b){return a==b?0:a.xb.x?1:0});a=this.kg[0]; this.kg[0]=null;e=a;for(f=1;fthis.vi.size)break;var n=this;this.Xe.Gd(0,this.Xe.size,function(a,b){return n.FO(a,b)});e=0;for(f=this.Xe.size;ee?1:df?1:0;0==d&&(d=m[n*a+3],e=m[n*b+3],d=df;f++){l=u[f];m=c[f];for(n=f-1;0<=n&&u[n]>l;)u[n+1]=u[n],c[n+1]=c[n],n--;u[n+1]=l;c[n+1]=m}u=0; 0!=c[0]&&(u|=1);0!=c[1]&&(u|=2);0!=c[2]&&(u|=4);0!=c[3]&&(u|=8);if(5!=u&&10!=u)return!1;b==a?b?(this.a.Kc(k,e),this.a.Lc(e,k),this.a.Kc(d,g),this.a.Lc(g,d)):(this.a.Lc(k,e),this.a.Kc(e,k),this.a.Lc(d,g),this.a.Kc(g,d)):b?(this.a.Lc(e,h),this.a.Kc(h,e),this.a.Lc(g,d),this.a.Kc(d,g)):(this.a.Kc(e,h),this.a.Lc(h,e),this.a.Kc(g,d),this.a.Lc(d,g));return!0};g.prototype.IE=function(b,a,c,e,d,h){this.B_?this.TO():this.SO(b,a,c,e,d,h)};g.prototype.TO=function(){throw d.f.X("not implemented.");};g.prototype.SO= function(b,a,c,e,d,h){if(b!=a)b?(this.a.Kc(c,d),this.a.Lc(d,c),this.a.Kc(h,e),this.a.Lc(e,h),this.po(d,c),this.Ri(d,!0),this.a.Mi(d,!0),this.yk(c),this.po(h,e),this.Ri(h,!0),this.a.Mi(h,!1)):(this.a.Kc(d,c),this.a.Lc(c,d),this.a.Kc(e,h),this.a.Lc(h,e),this.po(d,c),this.Ri(d,!0),this.a.Mi(d,!1),this.yk(c),this.po(h,e),this.Ri(h,!0),this.a.Mi(h,!0)),this.yk(e);else{var f=b?c:e,g=a?d:h;b=b?e:c;a=a?h:d;d=!1;this.a.Kc(f,g);this.a.Kc(g,f);this.a.Lc(b,a);this.a.Lc(a,b);for(h=a;h!=g;)c=this.a.Ra(h),e=this.a.U(h), this.a.Lc(h,e),this.a.Kc(h,c),d=d||h==f,h=e;d||(c=this.a.Ra(g),e=this.a.U(g),this.a.Lc(g,e),this.a.Kc(g,c));this.po(g,f);this.Ri(g,!0);this.a.Mi(g,!1);this.yk(f);this.po(a,b);this.Ri(a,!0);this.a.Mi(a,!1);this.yk(b)}};g.prototype.vE=function(){for(var b=!1,a=this.a.Pb(this.Y);-1!=a;){for(var c=this.a.cb(a),e=0,d=this.a.Ka(a);ethis.a.Ka(a)){b= this.a.cb(a);e=0;for(d=this.a.Ka(a);e=b)throw d.f.F("Invalid or unsupported wkid: "+b);var a=new g;a.yg=b;return a};g.nR=function(b){if(null==b||0==b.length)throw d.f.F("Cannot create SpatialReference from null or empty text.");var a=new g;a.Uh=b;return a};g.prototype.Eb=function(b){return this==b?!0:null==b||this.constructor!=b.constructor||this.yg!=b.yg||0==this.yg&&this.Uh!==b.Uh?!1:!0};g.OS=function(b,a){var c=Math.PI/180,e=new d.ea;d.oM.RS(b.w().x*c,b.w().y*c,a.w().x*c,a.w().y*c,e);return e.j}; g.prototype.toString=function(){return"[ tol: "+this.Bo()+"; wkid: "+this.yc()+"; wkt: "+this.lH()+"]"};g.prototype.jc=function(){if(""!==this.jq)return this.jq;var b=this.toString();if(Array.prototype.reduce)return this.jq="S"+b.split("").reduce(function(a,b){a=(a<<5)-a+b.charCodeAt(0);return a&a},0);var a=0;if(0===b.length)return"";for(var c=0;c=a.length)throw d.f.F();var c=null;try{c=d.PD.fromString(a)}catch(e){c=null}return null==c?null:b.rD(c,!0)};b.prototype.Jy=function(a){this.Qd=a;this.Er=this.Qd.Od()};b.prototype.Jc=function(){return 0==this.Fb()||3==this.Fb()?!1:this.Qd.Jc()};b.prototype.TH=function(){return 0==this.Fb()?!1:3==this.Fb()?this.ij.Fk().Jc():this.Qd.Jc()};b.prototype.Kg=function(){return null!=this.Qd?this.Qd.uf:null};b.prototype.cn=function(){return this.Qd.cn()};b.prototype.de=function(){return this.Qd.de()}; b.prototype.Ch=function(){return null!=this.Qd?this.Qd.ex:NaN};b.prototype.en=function(){return this.Qd.en()};b.prototype.Vs=function(){return this.Qd.Vs()};b.prototype.Sj=function(){return this.Qd.Sj()};b.prototype.gU=function(a){return d.SD.yz(this.Qd,a.Qd)};b.prototype.Lk=function(){return this.Qd.Lk()};b.prototype.Us=function(){return this.Qd.Us()};b.prototype.pi=function(){return 3==this.Fb()?this.ij.Fk().pi():this.Qd.pi()};b.prototype.Bh=function(){if(!this.Jc())throw d.f.F("!isPannable()"); var a=new d.h;this.Qd.Bh(a);return a};b.prototype.qe=function(){if(!this.Jc())throw d.f.F("!isPannable()");return this.Qd.gp};b.prototype.zT=function(){if(!this.Jc())throw d.f.F("!isPannable()");var a=new d.h;this.Qd.yT(a);return a};b.prototype.aw=function(){if(!this.Jc())throw d.f.F("!isPannable()");return this.Qd.aw()};b.prototype.$v=function(){if(!this.Jc())throw d.f.F("!isPannable()");return this.Qd.$v()};b.prototype.Ws=function(){return null!=this.ij?this.ij.Fk().Ws():this.Qd.Ws()};b.prototype.CS= function(){return this.Qd.Tv()};b.prototype.hX=function(a){a.assign(this.lp)};b.prototype.Yi=function(){return this.Er.getUnitFactor()};b.prototype.eA=function(a){return this.lp.eA(a)};b.prototype.kc=function(){var a=this.Fb();if(1==a)return this;if(3==a)return this.ij.Fk().kc();if(0==a)throw d.f.X("invalid call");if(4===a)throw d.f.X("invalid call");if(null!==this.Ww)return this.Ww;a=this.Kg().getGeogcs();if(null==a)throw d.f.ya();return this.Ww=b.hG(a,this.lp.at())};b.hG=function(a,c){if(null== a)throw d.f.F("null pointer.");var e=new b;a=b.Ou(a,!0);e.lp.Dy(a,null,c);e.Jy(a);e.yg=a.Zs();return e};b.prototype.Fb=function(){var a=this.Kg();if(null!=a)switch(a.getType()){case d.Vc.PE_TYPE_GEOGCS:return 1;case d.Vc.PE_TYPE_PROJCS:return 2}return 4};b.prototype.cA=function(a){var b=new d.b;this.Qd.cA(a,b);return b};b.prototype.Tv=function(){return this.Qd.Tv()};b.Ou=function(a,c){var e=a.getCode();if(0>=e&&(e=d.Tf.getCode(a),0=e?a:d.Tf.coordsys(e);c=new d.SD(c);b.yH[f]=c;0=a)throw d.f.F("Invalid or unsupported wkid: "+a);var c=b.Lv[a];if(null!=c)return c;c=d.Tf.coordsys(a);if(null==c)throw d.f.F("Invalid or unsupported wkid: "+a);c=b.Ou(c,!1);c.Zs()!=a&&(b.Lv[a]=c);return c};b.OY=function(a){if(null==a||void 0===a||0==a.length)throw d.f.F("Cannot create SpatialReference from null or empty text."); var c=null;try{c=d.Tf.fromString(d.Vc.PE_TYPE_COORDSYS,a)}catch(e){throw d.f.F("Cannot create SpatialReference from text. "+e.message);}if(null===c)throw d.f.F("Cannot create SpatialReference from text. ");return b.Ou(c,!0)};b.rD=function(a,c){var e=a.getCode();if(0>=e&&(e=d.Tf.getCode(a),0=e||(f=d.Tf.vertcs(e));if(null===f)throw d.f.F();c=new d.EN(f);b.XH[a]= c;0a&&(this.uj=a/(e-this.Xl));b=this.Yl+b;f=d.J.truncate((b-this.Yl)*this.uj);f>a&&(this.uj=a/(b-this.Yl))}};b.prototype.xC=function(a,b){switch(a){case 0:this.jl=b;case 1:this.Br=b;case 2:this.Ar=b}};b.prototype.Bo=function(a){switch(a){case 0:return this.jl;case 1:return this.Br;case 2:return this.Ar}return 0};b.prototype.VT=function(){var a= new d.h;switch(this.at()){case m.Integer32:var b=d.Td.rv/this.Sz();a.I(this.Qs(),this.Rs(),this.Qs()+b,this.Rs()+b);break;case m.Integer64:b=d.Td.sv/this.Sz();a.I(this.Qs(),this.Rs(),this.Qs()+b,this.Rs()+b);break;case m.FloatingPoint:a.I(-1.7976931348623157E308,-1*1.7976931348623157E308,1.7976931348623157E308,1.7976931348623157E308);break;default:throw d.f.X("internal error");}return a};b.prototype.WT=function(){var a=new d.Ac;switch(this.at()){case m.Integer32:var b=d.Td.rv/this.Tz();a.I(this.Ss(), this.Ss()+b);break;case m.Integer64:b=d.Td.sv/this.Tz();a.I(this.Ss(),this.Ss()+b);break;case m.FloatingPoint:a.I(-1*1.7976931348623157E308,1.7976931348623157E308);break;default:throw d.f.X("internal error");}return a};b.prototype.rT=function(){var a=new d.Ac;switch(this.at()){case m.Integer32:var b=d.Td.rv/this.Rz();a.I(this.Ps(),this.Ps()+b);break;case m.Integer64:b=d.Td.sv/this.Rz();a.I(this.Ps(),this.Ps()+b);break;case m.FloatingPoint:a.I(-1*1.7976931348623157E308,1.7976931348623157E308);break; default:throw d.f.X("internal error");}return a};b.prototype.eA=function(a){if(this.Fn==m.FloatingPoint)return 0;switch(a){case 0:return 1/this.uj;case 1:return 1/this.Kn;case 2:return 1/this.Kn;default:return 0}};b.prototype.toString=function(){var a;a="SRPD [m_toleranceXY: "+this.jl.toString();a=a+";m_falseX: "+this.Xl.toString();a=a+";m_falseY: "+this.Yl.toString();a=a+";m_unitsXY: "+this.uj.toString();a=a+";m_falseZ: "+this.Sw.toString();a=a+";m_unitsZ: "+this.Kn.toString();a=a+";m_falseM: "+ this.Rw.toString();a=a+";m_toleranceZ: "+this.Br.toString();a=a+";m_toleranceM: "+this.Ar.toString();a=a+";m_precision: "+this.Fn.toString();return a+"] "};return b}();d.dE=g})(n||(n={}));(function(d){function m(a,b){89.99999b&&(b=-89.99999);b*=.017453292519943;return[111319.49079327169*a,3189068.5*Math.log((1+Math.sin(b))/(1-Math.sin(b)))]}function g(a,b,c){a=a/6378137*57.29577951308232;return c?[a,57.29577951308232*(1.5707963267948966-2*Math.atan(Math.exp(-1*b/6378137)))]: [a-360*Math.floor((a+180)/360),57.29577951308232*(1.5707963267948966-2*Math.atan(Math.exp(-1*b/6378137)))]}function b(a,b){var c=a.Vf();if(33===a.G()){var e=b(c.Be(),c.nf());c.rb(e[0],e[1])}else if(197===a.G())e=b(a.R.o,a.R.A,!0),a=b(a.R.v,a.R.B,!0),c.I(e[0],e[1],a[0],a[1]);else for(e=new d.b,a=0;ac&&(c=637.100877141506);for(var d=[],f,h=0;hthis.xd&&this.Co(b)};g.prototype.$x=function(b,a,c){var e=this.g[this.ed*a+c];this.g[this.ed*a+c]=this.g[this.ed*b+c];this.g[this.ed*b+c]=e};g.Jm=function(){return-2};g.jo=function(){return-3};g.AA=function(b){return 0<=b};g.prototype.Co=function(b){null==this.g&&(this.g=[]);this.xd=b};return g}();d.ad=m;m=function(){function g(b){this.g=new Int32Array(0);this.kh=-1;this.xd=this.size=this.Jf=0;this.ed=b}g.prototype.kd=function(b){b< this.Jf?(this.g[b*this.ed]=this.kh,this.kh=b):this.Jf--;this.size--};g.prototype.S=function(b,a){return this.g[b*this.ed+a]};g.prototype.P=function(b,a,c){this.g[b*this.ed+a]=c};g.prototype.Pe=function(){var b=this.kh;if(-1==b){if(this.Jf==this.xd){b=0!=this.xd?d.J.truncate(3*(this.xd+1)/2):1;2147483647this.xd&&this.Co(b)};g.prototype.$x=function(b,a,c){var e=this.g[this.ed*a+c];this.g[this.ed* a+c]=this.g[this.ed*b+c];this.g[this.ed*b+c]=e};g.Jm=function(){return-2};g.jo=function(){return-3};g.AA=function(b){return 0<=b};g.prototype.Co=function(b){null==this.g&&(this.g=new Int32Array(0));var a=new Int32Array(this.ed*b);a.set(this.g,0);this.g=a;this.xd=b};return g}();d.ZN=m;!0===d.Xh.Bm&&(d.ad=d.ZN)})(n||(n={}));(function(d){var m;(function(a){a[a.enumInputModeBuildGraph=0]="enumInputModeBuildGraph";a[a.enumInputModeSimplifyAlternate=4]="enumInputModeSimplifyAlternate";a[a.enumInputModeSimplifyWinding= 5]="enumInputModeSimplifyWinding";a[a.enumInputModeIsSimplePolygon=7]="enumInputModeIsSimplePolygon"})(m||(m={}));var g=function(){function a(a){this.bf=a;this.Wh=NaN;this.pI=new d.Cg;this.qI=new d.Cg;this.ht=new d.Ac;this.it=new d.Ac}a.prototype.compare=function(a,b,d){a=a.ja(d);this.bf.PB(b,this.pI);this.bf.PB(a,this.qI);b=this.pI.get();a=this.qI.get();this.ht.I(b.ua,b.sa);this.it.I(a.ua,a.sa);if(this.ht.hathis.it.ha)return 1;d=b.ra==b.oa;var c=a.ra==a.oa;if(d|| c){if(d&&c)return 0;if(b.ra==a.ra&&b.ua==a.ua)return d?1:-1;if(b.oa==a.oa&&b.sa==a.sa)return d?-1:1}d=b.pf(this.Wh,this.ht.ca);c=a.pf(this.Wh,this.it.ca);d==c&&(d=Math.min(b.oa,a.oa),c=.5*(d+this.Wh),c==this.Wh&&(c=d),d=b.pf(c,this.ht.ca),c=a.pf(c,this.it.ca));return dc?1:0};a.prototype.QK=function(a){this.Wh=a};return a}(),b=function(){function a(a){this.bb=a;this.iJ=new d.Cg;this.cg=new d.b;this.bB=new d.Ac}a.prototype.dY=function(a){this.cg.L(a)};a.prototype.compare=function(a,b){this.bb.PB(a.ja(b), this.iJ);a=this.iJ.get();this.bB.I(a.ua,a.sa);if(this.cg.xthis.bB.ha)return 1;a=a.pf(this.cg.y,this.cg.x);return this.cg.xa?1:0};return a}();m=function(){function a(){this.sI=this.cj=this.fj=this.SA=this.No=this.Ye=this.Rc=this.Eh=this.De=null;this.sp=this.Tg=-1;this.rI=!0;this.WA=!1;this.TA=NaN;this.mj=new d.$d;this.bQ=2147483647;this.aQ=d.J.truncate(-2147483648);this.xg=this.xe=this.km=this.qr=this.rn=this.pr=this.It=this.rf=-1;this.qa=0}a.prototype.dz= function(a){this.TA=a};a.prototype.Nn=function(){null==this.De&&(this.De=new d.ad(8));var a=this.De.Pe();this.De.P(a,1,0);return a};a.prototype.eW=function(){null==this.Rc&&(this.Rc=new d.ad(8));var a=this.Rc.Pe();this.Rc.P(a,2,0);this.Rc.P(a,3,0);var b=this.Rc.Pe();this.Rc.P(b,2,0);this.Rc.P(b,3,0);this.yK(a,b);this.yK(b,a);return a};a.prototype.uJ=function(){null==this.Ye&&(this.Ye=new d.ad(8));var a=this.Ye.Pe();this.Ye.P(a,2,0);return a};a.prototype.PX=function(a,b){this.De.P(a,7,b)};a.prototype.co= function(a,b){this.De.P(a,2,b)};a.prototype.OX=function(a,b){this.De.P(a,1,b)};a.prototype.eY=function(a,b){this.De.P(a,3,b)};a.prototype.bY=function(a,b){this.De.P(a,4,b)};a.prototype.Ur=function(a,b){this.De.P(a,5,b)};a.prototype.VS=function(a){return this.De.S(a,5)};a.prototype.NX=function(a,b){this.De.P(a,6,b)};a.prototype.$O=function(a,b){this.NX(b,a)};a.prototype.xK=function(a,b){this.Rc.P(a,1,b)};a.prototype.yK=function(a,b){this.Rc.P(a,4,b)};a.prototype.ym=function(a,b){this.Rc.P(a,5,b)}; a.prototype.xm=function(a,b){this.Rc.P(a,6,b)};a.prototype.UX=function(a,b){this.Rc.P(a,2,b)};a.prototype.Mx=function(a,b){this.Rc.P(a,3,b)};a.prototype.VG=function(a){return this.Rc.S(a,3)};a.prototype.tu=function(a,b){this.Rc.P(a,7,b)};a.prototype.wL=function(a,b){if(-1!=this.an(a))for(b=b?-1:a,a=this.an(a);-1!=a;a=this.ft(a))this.a.Va(this.Uj(a),this.qr,b)};a.prototype.dy=function(a,b){-1!=a&&(this.wL(a,b),this.wL(this.za(a),b))};a.prototype.ru=function(a,b){this.Ye.P(a,1,b)};a.prototype.rh=function(a, b){this.Ye.P(a,2,b)};a.prototype.$n=function(a,b){this.Ye.P(a,3,b);this.LX(a,this.US(b));this.KX(b,a)};a.prototype.KX=function(a,b){this.Ye.P(a,4,b)};a.prototype.LX=function(a,b){this.Ye.P(a,5,b)};a.prototype.sK=function(a,b){this.Ye.P(a,6,b)};a.prototype.qK=function(a,b){this.Ye.P(a,7,b)};a.prototype.pK=function(a,b){this.No.write(a,b)};a.prototype.rK=function(a,b){this.SA.write(a,b)};a.prototype.gZ=function(a){var b=0,c=0,h=this.LG(a),g=new d.b,k=new d.b,m=new d.b;this.Xs(h,g);k.L(g);var n=h;do this.$m(n, m),c+=d.b.Cb(k,m),this.Ef(this.za(n))!=a&&(b+=(m.x-g.x-(k.x-g.x))*(m.y-g.y+(k.y-g.y))*.5),k.L(m),n=this.qc(n);while(n!=h);this.No.write(a,b);this.SA.write(a,c)};a.prototype.AW=function(a){var c=new g(this),f=new d.tk;f.Qe(d.J.truncate(this.qa/2));f.Ep(c);for(var h=new d.ia(0),l=this.xh(),k=null,m=0,n=new d.b,p=this.rf;-1!=p;p=this.og(p)){m++;var q=this.kf(p);if(-1!=q){h.yf(0);if(!this.$Y(f,l,h,q)){this.w(p,n);c.QK(n.y);var u=q;do{var v=this.Kb(u,l);-1!=v&&(f.Ld(v,-1),this.Ob(u,l,-2));u=this.qc(this.za(u))}while(q!= u);u=q;do v=this.Kb(u,l),-1==v&&(v=f.addElement(u,-1),h.add(v)),u=this.qc(this.za(u));while(q!=u)}for(q=h.size-1;0<=q;q--)v=h.get(q),u=f.ja(v),this.Ob(this.za(u),l,v),this.zW(f,v,a)}else-1==this.Jz(p)&&(null==k&&(k=new b(this)),this.w(p,n),k.dY(n),u=f.GX(k),q=this.km,-1!=u&&(v=f.ja(u),this.Ef(v)==this.Ef(this.za(v))&&(v=this.XG(f,u)),-1!=v&&(q=this.Ef(v))),this.$O(q,p))}this.ni(l)};a.prototype.zW=function(a,b,d){var c=a.ja(b),e=this.Ef(c);if(-1==this.vo(e)){var f=this.XG(a,b),g=this.za(c),m=this.Ef(g); this.Dq(e);this.Dq(m);var n=this.vo(e),q=this.vo(m);-1==f&&-1==n&&(m==e?(this.$n(m,this.km),n=q=this.km):(-1==q&&(this.$n(m,this.km),q=this.km),this.$n(e,m),n=m));if(-1!=f){var u=this.Ef(f);-1==q&&(0>=this.Dq(u)?(q=this.vo(u),this.$n(m,q)):(this.$n(m,u),q=u),m==e&&(n=q))}-1==n&&this.aZ(e,m);0==d?this.ZW(a,b,c,f,e,m):5==d?this.$W(a,b,c,g,e,m):4==d&&this.YW(c,f,e,m)}};a.prototype.ZW=function(a,b,d,h,g,k){var c=this.Hk(g);if(-1!=h){var e=this.Hk(k),f=this.Hk(this.Ef(h));h=c&e&f;f^=f&this.Ah(d);f|=h; 0!=f&&(this.rh(k,e|f),this.rh(g,f|c),c=c||f)}for(b=a.nb(b);-1!=b;b=a.nb(b)){h=a.ja(b);d=this.Ef(this.za(h));g=this.Hk(d);k=this.Ah(h);e=this.Ef(h);f=this.Hk(e);h=g&f&c;c^=c&k;c|=h;if(0==c)break;this.rh(d,g|c);this.rh(e,f|c)}};a.prototype.$W=function(a,b,f,h,g,k){if(g!=k){f=this.Kb(f,this.xg);f+=this.Kb(h,this.xg);h=0;var c=new d.ia(0),e=new d.ia(0);e.add(0);for(var l=a.xc(-1);l!=b;l=a.nb(l)){var m=a.ja(l),n=this.za(m),v=this.Ef(m),x=this.Ef(n);if(v!=x){m=this.Kb(m,this.xg);m+=this.Kb(n,this.xg);h+= m;n=!1;0!=c.size&&c.Fc()==x&&(e.Pf(),c.Pf(),n=!0);if(-1==this.vo(x))throw d.f.ya();n&&this.vo(x)==v||(e.add(h),c.add(v))}}h+=f;0!=c.size&&c.Fc()==k&&(e.Pf(),c.Pf());0!=h?0==e.Fc()&&(a=this.a.rd,a=this.Ha(a),this.rh(g,a)):0!=e.Fc()&&(a=this.a.rd,a=this.Ha(a),this.rh(g,a))}};a.prototype.YW=function(a,b,d,h){var c=this.Ha(this.a.rd);if(-1==b)this.rh(h,this.sp),a=this.Kb(a,this.Tg),0!=(a&1)?this.rh(d,c):this.rh(d,this.sp);else{var e=this.Hk(h);0==e&&(e=this.Hk(this.Ef(b)),this.rh(h,e));a=this.Kb(a,this.Tg); 0!=(a&1)?this.rh(d,e==c?this.sp:c):this.rh(d,e)}};a.prototype.$Y=function(a,b,d,h){var c=h,e=-1,f=-1,g=0;do{if(2==g)return!1;var m=this.Kb(c,b);if(-1!=m){if(-1!=e)return!1;e=m}else{if(-1!=f)return!1;f=c}g++;c=this.qc(this.za(c))}while(h!=c);if(-1==f||-1==e)return!1;this.Ob(a.ja(e),b,-2);a.jk(e,f);d.add(e);return!0};a.prototype.aZ=function(a,b){var c=this.Dq(a);if(0!=c){var d=this.Dq(b);0d?this.$n(a,b):0>c&&0q.compare(g)?p=1:k=-1,this.Ob(v,this.xe,0),this.Ob(u,this.xe,0),this.Ob(u,this.xg,p),this.Ob(v,this.xg,k)):7==a?(this.Ob(v,this.xe,this.sp),this.Ob(u,this.xe,1736==n?m:0)):4==a&&(this.Ob(v,this.xe,0),this.Ob(u,this.xe,0),this.Ob(u,this.Tg,1),this.Ob(v,this.Tg,1));n=1736==n?this.aQ:0;this.Mx(u,m|n);this.Mx(v, m|n)}}}}};a.prototype.TV=function(a,b){var c=this.an(b);if(-1!=c){var d=this.an(a);this.Eh.P(c,1,d);this.tu(a,c);this.tu(b,-1)}a=this.za(a);b=this.za(b);c=this.an(b);-1!=c&&(d=this.an(a),this.Eh.P(c,1,d),this.tu(a,c),this.tu(b,-1))};a.prototype.BY=function(a){function b(a,b){return h.JQ(a,b)}var c=new d.ia(0);c.yb(10);for(var h=this,g=this.rf;-1!=g;g=this.og(g)){c.clear(!1);var k=this.kf(g);if(-1!=k){var m=k;do c.add(m),m=this.qc(this.za(m));while(m!=k);if(1a.tb())return g.bd(g.Bb(a.Ja()),b,"\x26")}h=new g;f=new d.fd;m=f.Jb(g.Bb(b));a=f.Jb(g.Bb(a));h.Wr(f,c,e);e=h.mw(m,a);b=g.bd(f.Se(e),b,"\x26");d.T.Ic(b.G())&&(b.Zg(2,c),1736==b.G()&&b.Al());return b};g.wD=function(b,a,c,e){if(b.u())return b.Ja();if(a.u())return e?b.Ja():null;var f=[null],g=[0],m=2==a.tb();if(1!=a.tb()&&2!=a.tb())throw d.f.ya();f[0]=b.w();m?d.gd.eL(a, f,1,c,g):d.gd.fL(a,f,1,c,g);a=0==g[0];e||(a=!a);return a?b.Ja():b};g.SZ=function(b,a,c){return b instanceof d.Ed?g.uD(b,a,c,!1):a instanceof d.Wa?b.u()?b.Ja():a.u()?b:d.rk.xJ(c,b,a)?b.Ja():b:g.wD(b,a,c,!1)};g.prototype.CJ=function(b,a,c,e,f){if(b.u())return b;var g=new d.fd;b=g.Jb(b);return this.ol(g,b,a,c,e,f)};g.prototype.yW=function(b,a,c,e,f,g){if(f&&550!=b.hc(a)){var h=new d.VD;h.LY(b,c);h.ih?(d.rk.V(b,c,g,!0),f=!1):this.i.dz(c)}else d.rk.V(b,c,g,!0),f=!1;e&&550!=b.hc(a)?this.i.mK(b,a):this.i.lK(b, a);if(this.i.WA)return this.i.qh(),this.i=null,this.ol(b,a,c,e,!1,g);this.i.dz(NaN);g=this.i.Ha(a);this.Do(g+1);this.Mh[g]=!0;if(1736==b.hc(a)||e&&550!=b.hc(a))return b.Hp(a,0),a=this.ds(a,-1,-1),b=b.Se(a),b.Hp(0),f?b.Zg(1,0):(b.Zg(2,c),b.Al()),b;if(1607==b.hc(a))return a=this.es(-1),b=b.Se(a),f||b.Zg(2,c),b;if(550==b.hc(a))return a=this.Qp(),b=b.Se(a),f||b.Zg(2,c),b;throw d.f.ya();};g.prototype.ol=function(b,a,c,e,f,g){this.i=new d.Pu;try{return this.yW(b,a,c,e,f,g)}finally{this.i.qh()}};g.ol=function(b, a,c,d,f){return(new g).CJ(b,a,c,d,f)};g.prototype.xW=function(b,a,c){this.ot=b;this.i=new d.Pu;b=a.xo(c);var e=a.hc(c);1!=b||550==e?this.i.lK(a,c):this.i.mK(a,c);if(!this.i.WA)if(this.i.dz(NaN),e=this.i.Ha(c),this.Do(e+1),this.Mh[e]=!0,1736==a.hc(c)||1==b&&550!=a.hc(c))a.Hp(c,0),b=this.ds(c,-1,-1),a.DC(b,c),a.$B(b);else if(1607==a.hc(c))b=this.es(-1),a.DC(b,c),a.$B(b);else if(550==a.hc(c))b=this.Qp(),a.DC(b,c),a.$B(b);else throw d.f.X("internal error");};g.CC=function(b,a,c,d){var e=new g;e.ot=!0; return e.CJ(b,a,!1,c,d)};g.prototype.Wm=function(b,a){var c=d.T.lf(this.i.a.hc(b)),e=d.T.lf(this.i.a.hc(a));if(c>e)return b;var f=this.i.Ha(b),g=this.i.Ha(a);this.Do((f|g)+1);this.Mh[this.i.Ha(b)]=!0;if(2==c&&2==e)return this.ds(b,a,-1);if(1==c&&2==e||1==c&&1==e)return this.es(-1);if(0==c)return this.Qp();throw d.f.ya();};g.prototype.lG=function(b,a){var c=d.T.lf(this.i.a.hc(b)),e=d.T.lf(this.i.a.hc(a));if(c>e)return b;if(ca.tb())return g.bd(g.Bb(b),b,"-");var f=new d.h;b.s(f);var h=new d.h;a.s(h);if(!f.Yb(h))return g.bd(g.Bb(b),b,"-");var m=new d.h;m.I(f);m.Nb(h);c=d.ma.be(c,m,!0);h=new g;f=new d.fd;m=f.Jb(g.Bb(b));a=f.Jb(g.Bb(a));h.Wr(f,c,e);e=h.Wm(m,a);e=f.Se(e);b=g.bd(e,b,"-");d.T.Ic(b.G())&&(b.Zg(2,c),1736==b.G()&&b.Al()); return b};g.lG=function(b,a,c,e){if(b.tb()>a.tb())return g.bd(g.Bb(b),b,"|");if(b.tb()b.length)throw d.f.F("not enough geometries to dissolve");for(var e=0,f=0,h=b.length;ft)return g.Bb(b[p]);b=2==e;a=d.ma.be(0==e? a:null,m,!0);return(new g).ol(k,n,a,b,!0,c)};g.uA=function(b,a,c,e){var f=[null,null,null],h=new d.h;b.s(h);var m=new d.h;a.s(m);var k=new d.h;k.I(h);k.Nb(m);c=d.ma.be(c,k,!0);k=new d.h;k.I(m);m=d.ma.Bs(c);k.O(m,m);if(!h.Yb(k)){if(b.tb()<=a.tb())return b=g.bd(g.Bb(b.Ja()),b,"\x26"),f[b.tb()]=b,f;if(b.tb()>a.tb())return b=g.bd(g.Bb(a.Ja()),b,"\x26"),f[b.tb()]=b,f}m=new g;h=new d.fd;k=h.Jb(g.Bb(b));a=h.Jb(g.Bb(a));m.Wr(h,c,e);e=m.uA(k,a);for(a=0;aa.tb())return g.bd(g.Bb(b),b,"^");if(b.tb()=b.D()?(c=new d.Wa(b.description),b.u()||b.Ae(0,c),c):b};g.prototype.zS=function(b,a){var c=this.i.a;b=c.Yf(b,-1);for(var d=a.size,f=0;fc;c++)a[c]=new d.b;b.OB(a);this.ZY(a,a);b.Lx(a,4)}};g.prototype.ZY=function(b,a){for(var c=0;ca?Math.sqrt(e):Math.sqrt(a))};g.prototype.oC=function(){this.lb=1;this.zb=this.Wb=this.sb=0;this.gb=1;this.bc=0};g.prototype.Ho=function(b){if(void 0!==b){var a=d.b.pa(0, 1);this.$h(a,a);a.sub(d.b.pa(0,1));if(a.pk()>b*b)return!1;a.ka(0,0);this.$h(a,a);if(a.pk()>b*b)return!1;a.ka(1,0);this.$h(a,a);a.sub(d.b.pa(1,0));return a.pk()<=b*b}return 1==this.lb&&1==this.gb&&0==this.sb&&0==this.Wb&&0==this.zb&&0==this.bc};g.prototype.fh=function(b){return Math.abs(this.lb*this.gb-this.zb*this.sb)<=2*b*(Math.abs(this.lb*this.gb)+Math.abs(this.zb*this.sb))};g.prototype.Ag=function(b,a){this.lb=1;this.sb=0;this.Wb=b;this.zb=0;this.gb=1;this.bc=a};g.prototype.Op=function(b,a){void 0!== a?(this.lb=b,this.zb=this.Wb=this.sb=0,this.gb=a,this.bc=0):this.Op(b,b)};g.prototype.wC=function(){this.lb=0;this.sb=1;this.Wb=0;this.zb=1;this.bc=this.gb=0};g.prototype.iY=function(b){this.jY(Math.cos(b),Math.sin(b))};g.prototype.jY=function(b,a){this.lb=b;this.sb=-a;this.Wb=0;this.zb=a;this.gb=b;this.bc=0};g.prototype.shift=function(b,a){this.Wb+=b;this.bc+=a};g.prototype.scale=function(b,a){this.lb*=b;this.sb*=b;this.Wb*=b;this.zb*=a;this.gb*=a;this.bc*=a};g.prototype.rotate=function(b){var a= new g;a.iY(b);this.multiply(a)};g.prototype.inverse=function(b){if(void 0!==b){var a=this.lb*this.gb-this.sb*this.zb;0==a?b.Ux():(a=1/a,b.Wb=(this.sb*this.bc-this.Wb*this.gb)*a,b.bc=(this.Wb*this.zb-this.lb*this.bc)*a,b.lb=this.gb*a,b.sb=-this.sb*a,b.zb=-this.zb*a,b.gb=this.lb*a)}else this.inverse(this)};return g}();d.Hd=m})(n||(n={}));(function(d){var m=function(){function g(){}g.prototype.Ux=function(){this.bi=this.bc=this.Wb=this.Df=this.Af=this.zf=this.Cf=this.gb=this.sb=this.Sf=this.zb=this.lb= 0};g.prototype.Op=function(b,a,c){this.lb=b;this.sb=this.Sf=this.zb=0;this.gb=a;this.Af=this.zf=this.Cf=0;this.Df=c;this.bi=this.bc=this.Wb=0};g.prototype.JC=function(b){if(b.u())return b;for(var a=new d.qd[8],c=0;8>c;c++)a[c]=new d.qd;b.OB(a);this.transform(a,8,a);b.Lx(a);return b};g.prototype.transform=function(b,a,c){for(var e=0;ea;a++)this.Sh[a]=-1;this.Sh[this.wg[0]]=0}this.Yq=!0}O(a,b);a.prototype.Ud=function(a){this.hasAttribute(a)||(this.Sh[a]=0,this.BE())};a.prototype.removeAttribute=function(a){if(0==a)throw d.f.F("Position attribue cannot be removed"); this.hasAttribute(a)&&(this.Sh[a]=-1,this.BE())};a.prototype.reset=function(){this.wg[0]=0;this.Ea=1;for(var a=0;aa;a++)0<=this.Sh[a]&&(this.wg[b]=a,this.Sh[a]=b,b++,this.Ea++);this.Yq=!0};a.prototype.jc= function(){this.Yq&&(this.bm=this.zk(),this.Yq=!1);return this.bm};a.prototype.Eb=function(b){if(null==b)return!1;if(b==this)return!0;if(!(b instanceof a)||b.Ea!=this.Ea)return!1;for(var c=0;ce;e++)!b.hasAttribute(e)&&d.hasAttribute(e)&&(null==c&&(c=new a(b)),c.Ud(e));return null!=c?c.Nz():b};a.rs=function(b,d){b=new a(b);b.removeAttribute(d);return b.Nz()};return a}(d.na);d.ye=m;var g=function(){function b(){this.map=[];var a=new m;this.add(a);a=new m;a.Ud(1);this.add(a)}b.zo=function(){return b.hV};b.prototype.ST=function(){return b.aq};b.prototype.TT=function(){return b.bq};b.prototype.add=function(a){var c= a.jc();if(null!=b.aq&&b.aq.jc()==c&&a.RH(b.aq))return b.aq;if(null!=b.bq&&b.bq.jc()==c&&a.RH(b.bq))return b.bq;var d=null;void 0!==this.map[c]&&(d=this.map[c]);null==d&&(d=a.IO(),1==d.Ea?b.aq=d:2==d.Ea&&1==d.zd(1)?b.bq=d:this.map[c]=d);return d};b.hV=new b;return b}()})(n||(n={}));var N=0==ua.version.indexOf("4."),ta;(function(d){d[d.Linear=0]="Linear";d[d.Angular=1]="Angular";d[d.Area=2]="Area";d[d.LinearOrAngular=3]="LinearOrAngular"})(ta||(ta={}));var ra={feet:9002,kilometers:9036,meters:9001, miles:9035,"nautical-miles":9030,yards:9096},va={acres:109402,ares:109463,hectares:109401,"square-feet":109405,"square-kilometers":109414,"square-meters":109404,"square-miles":109413,"square-yards":109442},sa={degrees:9102,radians:9101};void 0===ca.prototype.getCacheValue&&qa.extend(ca,{cache:null,getCacheValue:function(d){if(null===this.cache||void 0===this.cache)this.cache={};return this.cache[d]},setCacheValue:function(d,m){if(null===this.cache||void 0===this.cache)this.cache={};this.cache[d]= m}});var xa=n.Td.create(4326),wa=n.Td.create(102100);pa=function(){function d(){}d.extendedSpatialReferenceInfo=function(d){if(null===d)return null;d=aa(d);var g=d.Od();return{tolerance:d.Bo(),unitType:null==g?-1:g.nd,unitID:null==g?-1:g.yc(),unitBaseFactor:null==g?0:g.Ai,unitSquareDerivative:null==g?0:n.oc.kH(g).yc()}};d.clip=function(d,g){if(null===d)return null;g=n.cc.clip(I(d),I(g),M(d));return Q(g,d.spatialReference)};d.cut=function(d,g){g=I(g);g=n.cc.Hl(I(d),g,M(d));for(var b=[],a=0;a