// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define(["exports","./_commonjsHelpers"],function(ya,ta){var ma={exports:{}};(function(sa,qa){qa=function(){function fa(g){if("number"===typeof g)return D.Tc.Zg(g);if(null==g)return null;if(null!=za[g])return D.Tc.Zg(za[g]);throw Error("Unrecognised Unit Type");}function ja(g){if("number"===typeof g)return D.Tc.Zg(g);if(null==g)return null;if(null!=Aa[g])return D.Tc.Zg(Aa[g]);throw Error("Unrecognised Unit Type");}function ha(g){if(g)switch(g){case "loxodrome":return 1;case "great-elliptic":return 2; case "normal-section":return 3;case "shape-preserving":return 4}return 0}function W(g,v,l,c){if(null==l||l.B())return null;switch(l.getType()){case D.qn.Point:return g.exportPoint(v,l,c);case D.qn.Polygon:return g.exportPolygon(v,l,c);case D.qn.Polyline:return g.exportPolyline(v,l,c);case D.qn.MultiPoint:return g.exportMultipoint(v,l,c);case D.qn.Envelope:return g.exportExtent(v,l,c)}return null}function wa(g,v,l,c){if(l.getType()!==D.qn.Point)throw Error("Geometry not Point");return g.exportPoint(v, l,c)}function N(g){var v=g.wkid;g=g.wkt2||g.wkt;var l=na.get(v||g);null==l&&(-1!==v&&null!=v?(l=D.Eg.create(v),na.set(v,l)):g&&(l=D.Eg.qP(g),na.set(g,l)),ra.has(v||g)&&l.VW(ra.get(v||g)));return l}function Ca(g){var v,l,c;if(null==g)return null;var a=N(g);g=a.Hd();a=a.Kn();return v={},v.tolerance=a,v.unitType=null==g?-1:g.od,v.unitID=null==g?-1:g.Ec(),v.unitBaseFactor=null==g?0:g.ai,v.unitSquareDerivative=null==g?0:null!==(c=null===(l=D.Tc.aG(g))||void 0===l?void 0:l.Ec())&&void 0!==c?c:0,v}function Da(g, v,l,c){if(null==l)return null;l=D.$b.clip(g.convertToGEGeometry(K,l),g.convertToGEGeometry(K,c),N(v));return W(g,K,l,v)}function Ea(g,v,l,c){l=D.$b.dl(g.convertToGEGeometry(K,l),g.convertToGEGeometry(K,c),N(v));c=[];for(var a=0;a>6)+1>>1};l.Rn=function(c){return 0!=(c&32)};l.US=function(c){return 0!=(c&128)};l.yd=function(c){return 0!=(c&256)}; l.xj=function(c){return 0!=(c&512)};l.Hc=function(c){return 0!=(c&1024)};l.prototype.Of=function(){var c=this.Ia();this.copyTo(c);return c};l.prototype.mg=function(){return null};l.jg=function(c){var a=c.Ia();c.copyTo(a);return a};l.prototype.vc=function(){0<=this.VA&&(this.VA+=2147483649)};l.Ax=function(c){var a=c.getType();if(l.xj(a))return c.I();if(c.B())return 0;if(197==a)return 4;if(33==a)return 1;if(l.yd(a))return 2;throw g.i.fa("missing type");};return l}();g.aa=v})(D||={});(function(g){var v= function(){function l(){this.y=this.x=0}l.construct=function(c,a){var b=new l;b.x=c;b.y=a;return b};l.al=function(c){var a=new l;a.x=c.x;a.y=c.y;return a};l.prototype.ma=function(c,a){this.x=c;this.y=a};l.prototype.L=function(c){this.x=c.x;this.y=c.y};l.prototype.fq=function(c,a){return this.x===c&&this.y===a};l.prototype.Rz=function(c){return 2.220446049250313E-16>=Math.abs(this.x-c.x)&&2.220446049250313E-16>=Math.abs(this.y-c.y)};l.prototype.qb=function(c){return this.x===c.x&&this.y===c.y};l.prototype.Nb= function(c){return c==this?!0:c instanceof l?this.x==c.x&&this.y==c.y:!1};l.prototype.sub=function(c){this.x-=c.x;this.y-=c.y};l.prototype.uc=function(c,a){this.x=c.x-a.x;this.y=c.y-a.y};l.prototype.add=function(c,a){void 0!==a?(this.x=c.x+a.x,this.y=c.y+a.y):(this.x+=c.x,this.y+=c.y)};l.prototype.Sq=function(){this.x=-this.x;this.y=-this.y};l.prototype.mt=function(c){this.x=-c.x;this.y=-c.y};l.prototype.NS=function(c,a,b){this.x=c.x*(1-b)+a.x*b;this.y=c.y*(1-b)+a.y*b};l.prototype.Ct=function(c,a){this.x= this.x*c+a.x;this.y=this.y*c+a.y};l.prototype.HW=function(c,a,b){this.x=a.x*c+b.x;this.y=a.y*c+b.y};l.prototype.scale=function(c){this.x*=c;this.y*=c};l.prototype.compare=function(c){return this.yc.y?1:this.xc.x?1:0};l.prototype.normalize=function(){var c=this.length();0==c&&(this.x=1,this.y=0);this.x/=c;this.y/=c};l.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y)};l.prototype.Sk=function(){return this.x*this.x+this.y*this.y};l.tb=function(c, a){return Math.sqrt(this.yc(c,a))};l.Oy=function(c,a,b,d){c-=b;a-=d;return Math.sqrt(c*c+a*a)};l.prototype.Qh=function(c){return this.x*c.x+this.y*c.y};l.prototype.fD=function(c){return Math.abs(this.x*c.x)+Math.abs(this.y*c.y)};l.prototype.wi=function(c){return this.x*c.y-this.y*c.x};l.prototype.Bt=function(c,a){var b=-this.x*a+this.y*c;this.x=this.x*c+this.y*a;this.y=b};l.prototype.Hv=function(){var c=this.x;this.x=-this.y;this.y=c};l.prototype.MG=function(c){this.x=-c.y;this.y=c.x};l.prototype.ar= function(){var c=this.x;this.x=this.y;this.y=-c};l.prototype.qu=function(){return 0c?1:0b?-1:0c?-1:0=b?c+(a-c)*b:a-(a-c)*(1-b)};l.OG=function(c,a,b,d){.5>=b?(d.x=c.x+(a.x-c.x)*b,d.y=c.y+(a.y-c.y)*b):(d.x=a.x-(a.x-c.x)*(1-b),d.y=a.y-(a.y-c.y)*(1-b))};l.lT=function(c,a,b,d,e,f){.5>=e?(f.x=c+(b-c)*e,f.y=a+(d-a)*e):(f.x=b-(b-c)*(1-e),f.y=d-(d-a)*(1-e))};return l}()})(D||={});(function(g){var v= function(l){function c(){var a=l.call(this)||this;a.sa=0;a.na=0;a.pa=0;a.la=0;a.ka=null;return a}R(c,l);c.prototype.ac=function(){return g.h.construct(this.sa,this.na)};c.prototype.Yp=function(a){a.x=this.sa;a.y=this.na};c.prototype.Dc=function(a){this.em(0,a)};c.prototype.ZB=function(a,b){this.em(0,g.h.construct(a,b))};c.prototype.To=function(a){this.hD(0,a)};c.prototype.setStart=function(a){this.uD(0,a)};c.prototype.wv=function(a,b){return this.Od(0,a,b)};c.prototype.YB=function(a,b,d){this.tn(0, a,b,d)};c.prototype.wc=function(){return g.h.construct(this.pa,this.la)};c.prototype.Tr=function(a){a.x=this.pa;a.y=this.la};c.prototype.Qc=function(a){this.em(1,a)};c.prototype.Ql=function(a,b){this.em(1,g.h.construct(a,b))};c.prototype.Po=function(a){this.hD(1,a)};c.prototype.setEnd=function(a){this.uD(1,a)};c.prototype.gv=function(a,b){return this.Od(1,a,b)};c.prototype.OB=function(a,b,d){this.tn(1,a,b,d)};c.prototype.Db=function(){return 1};c.prototype.B=function(){return this.Ac()};c.prototype.Oa= function(){};c.prototype.Ke=function(){return 0};c.prototype.Ea=function(a,b,d,e,f){return this.KM(a,b,d,e,f)};c.prototype.isIntersecting=function(a,b){return 0!=this.zr(a,b,!1)};c.prototype.qs=function(a,b){return this.ru(a,b,!1)};c.prototype.ru=function(){return null};c.prototype.Ac=function(){return!1};c.prototype.ay=function(a){this.vc();if(null==this.ka&&0=g.ra.Va(b))throw g.i.ce();var e=this.description.Pf(b);return 0<=e?(null!=this.ka&&this.ay(this.description.Ae.length-2),this.ka[c.Gg(this.description,a)+this.description.$j(e)-2+d]):g.ra.se(b)};c.prototype.tn=function(a,b,d,e){this.vc();if(d>=g.ra.Va(b))throw g.i.ce();var f=this.description.Pf(b);0> f&&(this.re(b),f=this.description.Pf(b));0==b?0!=a?0!=d?this.la=e:this.pa=e:0!=d?this.na=e:this.sa=e:(null==this.ka&&this.ay(this.description.Ae.length-2),this.ka[c.Gg(this.description,a)+this.description.$j(f)-2+d]=e)};c.prototype.copyTo=function(a){if(a.getType()!=this.getType())throw g.i.N();a.description=this.description;a.ay(this.description.Ae.length-2);c.gM(this.ka,a.ka,2*(this.description.Ae.length-2));a.sa=this.sa;a.na=this.na;a.pa=this.pa;a.la=this.la;a.vc();this.op(a)};c.prototype.Tg=function(a, b){var d=new g.Nc;if(this.Ac())return d.Oa(),d;d.oa=this.Od(0,a,b);d.va=d.oa;d.Lk(this.Od(1,a,b));return d};c.prototype.ZI=function(a){this.Ac()?a.Oa():(a.oa=this.Od(0,0,0),a.va=a.oa,a.Lk(this.Od(1,0,0)))};c.prototype.Tw=function(a,b){b.Nf(this.description);b.Cb(this.hc(a));for(var d=1,e=this.description.Aa;da||a>=this.wa)throw g.i.fa("index out of bounds");this.mc();b.Nf(this.description);b.B()&&b.un();for(var d=0;d< this.description.Aa;d++)for(var e=this.description.Ed(d),f=0,h=g.ra.Va(e);fa||a>=this.I())throw g.i.ce();this.mc();this.za[0].tc(2*a,b)};c.prototype.Na=function(a){var b=new g.h;this.D(a,b);return b};c.prototype.Gc=function(a,b){this.za[0].tc(2* a,b)};c.prototype.Cb=function(a,b,d){if(0>a||a>=this.wa)throw g.i.ce();this.mc();var e=this.za[0];void 0!==d?(e.write(2*a,b),e.write(2*a+1,d)):e.Tt(2*a,b);this.Pc(1993)};c.prototype.Cz=function(){if(void 0>=this.I())throw g.i.ce();this.mc();var a=this.za[0],b=new g.Nd;b.x=a.read(NaN);b.y=a.read(NaN);b.z=this.hasAttribute(1)?this.za[1].eg():g.ra.se(1);return b};c.prototype.dC=function(a){if(0>a||a>=this.I())throw g.i.ce();this.re(1);this.mc();this.Pc(1993);var b=this.za[0];b.write(2*a,(void 0).x); b.write(2*a+1,(void 0).y);this.za[1].pr(a,(void 0).z)};c.prototype.Uc=function(a,b,d){if(0>b||b>=this.wa)throw g.i.ce();var e=g.ra.Va(a);if(d>=e)throw g.i.ce();this.mc();var f=this.description.Pf(a);return 0<=f?this.za[f].eg(b*e+d):g.ra.se(a)};c.prototype.yF=function(a,b){return this.Uc(a,b)};c.prototype.setAttribute=function(a,b,d,e){if(0>b||b>=this.wa)throw g.i.ce();var f=g.ra.Va(a);if(d>=f)throw g.i.ce();this.re(a);this.mc();a=this.description.Pf(a);this.Pc(1993);this.za[a].pr(b*f+d,e)};c.prototype.ub= function(a){this.wx();this.re(a);this.mc();return this.za[this.description.Pf(a)]};c.prototype.hn=function(a,b){if(null!=b&&g.ra.Tp(a)!=b.Tp())throw g.i.N();this.re(a);a=this.description.Pf(a);null==this.za&&(this.za=g.Yc.qI(this.description.Aa));this.za[a]=b;this.Pc(16777215)};c.prototype.sn=function(a){var b=null;if(null!=this.za){var d=g.ee.Iw(a,this.description);b=[];for(var e=0,f=a.Aa;ethis.wa+5?(5*this.wa+3)/4:this.wa),this.za[a].resize(e* d,g.ra.se(b)));ea)throw g.i.N();a!=this.wa&&(this.wa=a,this.Pc(65535))};c.prototype.om=function(a){if(!this.ak(1)){if(!this.ak(2))return 0;if(this.QT>=a)return this.ak(8)?1:2}return-1};c.prototype.Ch=function(a,b){this.QT=b;if(-1==a)this.Lf(1,!0),this.Lf(8,!0);else if(this.Lf(1,!1),this.Lf(8,!0),0==a)this.Lf(2,!1),this.Lf(4,!1);else if(1==a)this.Lf(2,!0),this.Lf(4,!1); else if(2==a)this.Lf(2,!0),this.Lf(4,!0);else throw g.i.fa("internal error.");};c.prototype.lM=function(){null!=this.Bb&&(this.Bb=null)};c.prototype.kD=function(a,b,d,e){if(0>a||a>=this.wa)throw g.i.fa("index out of bounds");if(0>b||b>=this.wa)throw g.i.fa("index out of bounds");this.mc();e.Nf(this.description);e.B()&&e.un();for(var f=0;fa||a>=this.wa)throw g.i.ce();this.mc();var b=new g.Sa;b.Nf(this.description);b.B()&&b.un();for(var d=0;da||a>=this.wa)throw g.i.ce();if(b.B())throw g.i.N();this.mc();for(var d= b.description,e=0;eg.O.bB(this.Tm)>>1:-1!=a)?c=a:d=h;for(a=!0;;){if(0>d)if(h=f[7*c],-1!=h)c=h;else{d=c;b=this.ob.Ll([-1,-1,c,b,this.gl(),-1,-1]);f=this.ob.o;f[7*c]=b;break}else if(h=f[7*c+1],-1!=h)c=h;else{d=f[7*c+6];b=this.ob.Ll([-1,-1,c,b,this.gl(),-1,-1]);f=this.ob.o;f[7*c+1]=b;break}a&&(d*=-1,a=!1)}this.oy(b,f);-1===f[7*b+2]&&(f[7*e]=b);this.vp(d,b,e,f);return b};l.prototype.FF=function(){return this.iR(this.Qe)};l.prototype.vd=function(c,a){a=-1==a?this.Qe:a;this.Rv?this.LP(c,a):this.iY(c, a)};l.prototype.search=function(c,a){for(a=this.sv(a);-1!=a;){var b=this.Zn.compare(this,c,a);if(0==b)return a;a=0>b?this.ll(a):this.Xp(a)}return-1};l.prototype.IW=function(c){for(var a=this.sv(-1),b=-1;-1!=a;){var d=c.compare(this,a);if(0==d)return a;0>d?a=this.ll(a):(b=a,a=this.Xp(a))}return b};l.prototype.uJ=function(c){for(var a=this.sv(-1),b=-1;-1!=a;){var d=c.compare(this,a);if(0==d)return a;0>d?(b=a,a=this.ll(a)):a=this.Xp(a)}return b};l.prototype.ja=function(c){return this.ob.T(c,3)};l.prototype.ll= function(c){return this.ob.T(c,0)};l.prototype.Xp=function(c){return this.ob.T(c,1)};l.prototype.getParent=function(c){return this.ob.T(c,2)};l.prototype.lb=function(c){return this.ob.T(c,6)};l.prototype.we=function(c){return this.ob.T(c,5)};l.prototype.rc=function(c){return-1==c?this.kl(this.Qe):this.kl(c)};l.prototype.Fc=function(c){return-1==c?this.Zr(this.Qe):this.Zr(c)};l.prototype.ZR=function(c){return-1==c?this.bG(this.Qe):this.bG(c)};l.prototype.Sj=function(c,a){this.NB(c,a)};l.prototype.sv= function(c){return-1==c?this.YF(this.Qe):this.YF(c)};l.prototype.clear=function(){this.ob.mj(!1);this.Qe=-1};l.prototype.size=function(c){return-1==c?this.$F(this.Qe):this.$F(c)};l.prototype.KN=function(c,a){for(var b=a[7*c],d=a[7*c+1],e=a[7*c+4];-1!=b||-1!=d;){var f=-1!=b?a[7*b+4]:2147483647;d=-1!=d?a[7*d+4]:2147483647;if(e<=Math.min(f,d))break;f<=d?this.sJ(b,a):this.rJ(c,a);b=a[7*c];d=a[7*c+1]}};l.prototype.oy=function(c,a){if(this.Rv)for(var b=a[7*c+4],d=a[7*c+2];-1!=d&&a[7*d+4]>b;)a[7*d]==c?this.sJ(c, a):this.rJ(d,a),d=a[7*c+2]};l.prototype.rJ=function(c,a){var b=a[7*c+1];a[7*b+2]=a[7*c+2];a[7*c+2]=b;var d=a[7*b];a[7*c+1]=d;-1!=d&&(a[7*d+2]=c);a[7*b]=c;d=a[7*b+2];-1!=d&&(a[7*d]==c?a[7*d]=b:a[7*d+1]=b)};l.prototype.sJ=function(c,a){var b=a[7*c+2];a[7*c+2]=a[7*b+2];a[7*b+2]=c;var d=a[7*c+1];a[7*b]=d;-1!=d&&(a[7*d+2]=b);a[7*c+1]=b;d=a[7*c+2];-1!=d&&(a[7*d]===b?a[7*d]=c:a[7*d+1]=c)};l.prototype.Pk=function(c,a){this.ob.S(c,2,a)};l.prototype.TB=function(c,a){this.ob.S(c,0,a)};l.prototype.XB=function(c, a){this.ob.S(c,1,a)};l.prototype.WB=function(c,a){this.ob.S(c,5,a)};l.prototype.ex=function(c,a){this.ob.S(c,6,a)};l.prototype.XJ=function(c,a){this.ob.S(a,0,c)};l.prototype.rX=function(c){this.ob.S(c,4,0)};l.prototype.uX=function(c,a){this.ob.S(a,5,c)};l.prototype.YF=function(c){return-1==c?-1:this.ob.T(c,0)};l.prototype.kl=function(c){return-1==c?-1:this.ob.T(c,1)};l.prototype.Zr=function(c){return-1==c?-1:this.ob.T(c,2)};l.prototype.iR=function(c){return-1==c?-1:this.ob.T(c,3)};l.prototype.$F= function(c){return-1==c?0:this.ob.T(c,4)};l.prototype.bG=function(c){return this.ob.T(c,5)};l.prototype.Pw=function(){return this.ob.Ll([-1,-1,-1,void 0,this.gl(),-1,-1])};l.prototype.fl=function(c){-1!=c&&this.ob.jd(c)};l.prototype.gl=function(){this.Tm=g.O.bB(this.Tm);return this.Tm&1073741823};l.prototype.FD=function(c,a,b){var d=this.ob.o;if(-1==b||-1==d[7*b])return c=this.ob.Ll([-1,-1,-1,c,this.gl(),-1,-1]),d=this.ob.o,d[7*b]=c,this.vp(-1,c,b,d),c;for(var e=-1==b?-1:d[7*b];;){var f=-1==a?1:this.Zn.compare(this, c,e);if(0>f)if(f=this.ll(e),-1!=f)e=f;else{a=e;c=this.ob.Ll([-1,-1,e,c,this.gl(),-1,-1]);d=this.ob.o;d[7*e]=c;break}else{if(1==a&&0==f)return d[7*b+3]=e,-1;f=d[7*e+1];if(-1!=f)e=f;else{a=d[7*e+6];c=this.ob.Ll([-1,-1,e,c,this.gl(),-1,-1]);d=this.ob.o;d[7*e+1]=c;break}}}this.oy(c,d);-1===d[7*c+2]&&(d[7*b]=c);this.vp(a,c,b,d);return c};l.prototype.vp=function(c,a,b,d){if(-1!=c){var e=d[7*c+5];d[7*c+5]=a}else e=-1==b?-1:d[7*b+2];d[7*a+5]=e;-1!=e&&(d[7*e+6]=a);d[7*a+6]=c;c==(-1==b?-1:d[7*b+1])&&(d[7*b+ 1]=a);-1==c&&(d[7*b+2]=a);d[7*b+4]=(-1==b?0:d[7*b+4])+1};l.prototype.AB=function(c,a){var b=this.ob.o,d=b[7*c+5];c=b[7*c+6];-1!=d?b[7*d+6]=c:b[7*a+1]=c;-1!=c?b[7*c+5]=d:b[7*a+2]=d;b[7*a+4]=-1===a?-1:b[7*a+4]-1};l.prototype.iY=function(c,a){this.AB(c,a);var b=this.ll(c),d=this.Xp(c),e=this.getParent(c),f=c;if(-1!=b&&-1!=d){this.Tm=g.O.bB(this.Tm);var h=1073741823=c.oa:c.va>=this.oa};l.prototype.move=function(c){this.B()||(this.oa+=c,this.va+=c)}; l.prototype.normalize=function(){if(!isNaN(this.oa)){if(this.oa>this.va){var c=this.oa;this.oa=this.va;this.va=c}isNaN(this.va)&&this.Oa()}};l.prototype.Oa=function(){this.va=this.oa=NaN};l.prototype.B=function(){return isNaN(this.oa)};l.prototype.Zb=function(c){"number"===typeof c?this.B()?this.va=this.oa=c:this.Lk(c):c.B()||(this.B()?(this.oa=c.oa,this.va=c.va):(this.oa>c.oa&&(this.oa=c.oa),this.vathis.va&&this.Oa()))};l.prototype.Lk=function(c){cthis.va&&(this.va=c)};l.prototype.contains=function(c){return"number"===typeof c?c>=this.oa&&c<=this.va:c.oa>=this.oa&&c.va<=this.va};l.prototype.Ea=function(c){this.B()||c.B()?this.Oa():(this.oac.va&&(this.va=c.va),this.oa>this.va&&this.Oa())};l.prototype.W=function(c){this.B()||(this.oa-=c,this.va+=c,this.vaa?(this.oa=a,this.va=c):(this.oa=c,this.va=a)};l.prototype.It=function(c){return g.O.Rk(c,this.oa,this.va)};l.prototype.R=function(){return this.va-this.oa};l.prototype.sf=function(){return.5*(this.oa+this.va)};l.prototype.Nb=function(c){return c==this?!0:c instanceof l?this.B()&&c.B()?!0:this.oa!=c.oa||this.va!=c.va?!1:!0:!1};l.prototype.cc=function(){return g.O.uj(g.O.uj())};return l}();g.Nc=v})(D||={});(function(g){var v=new g.Nc,l=new g.Nc,c=function(){return function(){this.ne= null;this.pb=-1;this.sb=new g.yb;this.qA=55555555;this.Tv=this.Vv=!1;this.Uf=new g.Nc;this.Uf.KB(0,0)}}();g.IY=c;var a=function(){function b(d,e,f){this.g=d;this.Hk=NaN;this.NH=this.Kq=0;this.OH=NaN;this.qa=e;this.Nq=10*e;this.PH=this.QH=NaN;this.rg=!1;this.Dm=this.gt=this.Lo=this.Xs=this.Ws=-1;this.gA=f;this.TA=new c;this.YH=new c;g.O.truncate(3*d.fd/2)}b.prototype.mG=function(d,e,f,h){d.ne=null===h?null:h[f[5*e]];d.Tv=null!=d.ne;d.Tv||(h=f[5*e+2],-1!==h&&this.g.mW(f[5*e],f[5*h],d.sb),d.ne=d.sb, d.Uf.KB(d.sb.sa,d.sb.pa),d.Uf.va+=this.qa,d.sb.rI(),d.Vv=d.sb.la==d.sb.na,d.Vv||(d.qA=(d.sb.pa-d.sb.sa)/(d.sb.la-d.sb.na)))};b.prototype.OO=function(d,e){var f=d.zr(e,this.qa,!0);if(0!=f)return 2==f?this.Qy():this.xi();d.Yp(ia);d.Tr(ka);e.Yp(la);e.Tr(oa);aa.ma(this.Kq,this.Hk);ia.qb(la)&&this.Hk==ia.y?0>ka.compare(oa)?aa.L(ka):aa.L(oa):ia.qb(oa)&&this.Hk==ia.y?0>ka.compare(la)?aa.L(ka):aa.L(la):la.qb(ka)&&this.Hk==la.y?0>ia.compare(oa)?aa.L(ia):aa.L(oa):ka.qb(oa)&&this.Hk==ka.y&&(0>ia.compare(la)? aa.L(ia):aa.L(la));return d.Pe(aa.y,aa.x)f&&0>d?-1:0e.pa){if(e.pa>e.sa&&e.la-e.na<2*this.qa&&d.vi(e.pa,e.la,this.qa))return this.xi()}else if((e.la-e.na)/(e.pa-e.sa)*(d.pa-d.sa)< this.Nq&&e.vi(d.pa,d.la,this.qa))return this.xi();return 1};b.prototype.JO=function(d,e){if(d.sae.sa&&e.la-e.na<2*this.qa&&d.vi(e.pa,e.la,this.qa))return this.xi()}else if((e.la-e.na)/(e.pa-e.sa)*(d.sa-d.pa)h&&0>f?-1:0e+m?f:h.vi(d.sa,d.na,this.qa)?this.xi():ke+m?f:h.vi(d.pa,d.la,this.qa)?this.xi():kk?1:0};b.prototype.Kr=function(){this.rg=!1};b.prototype.rm= function(){return this.Ni};b.prototype.$J=function(d,e){this.Hk=d;this.Kq=e;this.gt=this.Lo=this.Xs=this.Ws=-1};b.prototype.compare=function(d,e,f){if(this.rg)return-1;d=d.ja(f);this.Dm=f;return this.RE(e,e,d,d)};b.prototype.RE=function(d,e,f,h){if(this.Lo==e)var k=this.TA;else this.Lo=e,k=this.TA,this.TA.pb=d,this.mG(k,e,this.g.td.o,this.g.We);if(null==m){this.gt=h;var m=this.YH;this.YH.pb=f;this.mG(m,h,this.g.td.o,this.g.We)}if(k.Tv||m.Tv)return this.NO(e,h,k,m);if(k.Uf.vathis.Uf.va)return 1;if(this.ie.na==this.ie.la)return this.Dm=c,this.rg=!0,0;this.ie.rI();b=this.ie.ac();a=new g.h;a.uc(this.ie.wc(),b);a.ar();var d=new g.h;d.uc(this.Gq,b);b=a.Qh(d);b/=a.length();return b<10*-this.qa?-1:b>10*this.qa?1:this.ie.qs(this.Gq,this.qa)&&(a=Math.abs(b), ab?-1:1};return l}();g.aM=v})(D||={});(function(g){function v(c,a,b,d){b=new Float64Array(c.subarray(b,d));c.set(b,a)}var l=function(){function c(a){this.Pb=this.pk=!1;this.o=null;var b=a;2>b&&(b=2);this.o=new Float64Array(b);this.size=a}c.prototype.rotate=function(a,b,d){if(this.Pb)throw g.i.fa("invalid_call");if(bd||a>d)throw g.i.N();a!=b&&d!=b&&(this.ni(a,b-a,1),this.ni(b,d-b,1),this.ni(a,d-a,1))};c.qf=function(a,b){var d=new c(a), e=d.o;2>a&&(a=2);if(0!==b)for(var f=0;fb&&(d.size=b);b=d.size;2>b&&(b=2);d.o=new Float64Array(b);d.o.set(a.o.length<=b?a.o:a.o.subarray(0,b),0);return d};c.prototype.Jb=function(a){0>=a||(null==this.o?this.o=new Float64Array(a):a<=this.o.length||(0this.o.length&&(d=g.O.truncate(64>a?Math.max(2*a,4):5*a/4),d=new Float64Array(d),d.set(this.o),this.o=d);d=this.o;for(var e=this.size;ethis.o.length)&&this.resize(a);if(this.pk)throw g.i.fa("invalid call. Attribute Stream is locked and cannot be resized.");this.size=a};c.prototype.pr=function(a,b){this.write(a,b)};c.prototype.An=function(a,b,d){for(var e=this.size;be||d>f&&e!=f)return!1;for(d>e&&(d=e);bf||0!=d%f))throw g.i.N();var h=this.size;this.resize(h+d);if(e)this.o.set(a.o.subarray(b,b+d),h);else{e=d;for(var k=0;kh||0!=e%h))throw g.i.N();var m=this.size-k;mh&&(h=this.size);this.size+2*e>this.o.length?this.resize(this.size+2*e):this.size+=2*e;v(this.o,a+2*e,a,a+(h-a));if(f)for(f=0;fa||0>b||0>e)throw g.i.N();if(!f&&(0>=h||0!=b%h))throw g.i.N();if(d.sizethis.size)throw g.i.Hb();0d||0!=b%d)throw g.i.Hb();for(var e=b>>1,f=0;fb||0>d||0>b||d+b>this.size)throw g.i.N();for(var e=b;ea||0>b||0>e)throw g.i.N();if(0!=b)for(this.size<(b<<1)+a&&this.resize((b<<1)+a),f||(a+=b-1<<1),f=f?2:-2,b+=e;ea||0>b)throw g.i.N();if(0!=b){this.size<(b<<1)+a&&this.resize((b<<1)+a);b+=0;for(var e=0;ea||0>b||0>e||this.sizea||0>b||this.size<(b>>1)+a)throw g.i.N();if(0!=b){b=0+b;for(var e=0;eb&&(b=2);this.o=new Int32Array(b);this.size=a}c.prototype.rotate=function(a,b,d){if(this.Pb)throw g.i.fa("invalid_call");if(bd||a>d)throw g.i.N();a!=b&&d!=b&&(this.ni(a,b-a,1),this.ni(b,d-b,1),this.ni(a,d-a,1))};c.qf=function(a, b){var d=new c(a),e=d.o;2>a&&(a=2);if(0!==b)for(var f=0;fb&&(d.size=b);b=d.size;2>b&&(b=2);d.o=new Int32Array(b);d.o.set(a.o.length<=b?a.o:a.o.subarray(0,b),0);return d};c.prototype.Jb=function(a){0>=a||(null==this.o?this.o=new Int32Array(a):a<=this.o.length||(0this.o.length&&(d=g.O.truncate(64>a?Math.max(2*a,4):5*a/4),d=new Int32Array(d),d.set(this.o),this.o=d);d=this.o;for(var e=this.size;ethis.o.length)&&this.resize(a);if(this.pk)throw g.i.fa("invalid call. Attribute Stream is locked and cannot be resized.");this.size=a};c.prototype.pr=function(a,b){this.write(a,b)};c.prototype.An=function(a,b,d){for(var e=this.size;be||d>f&&e!=f)return!1;for(d>e&&(d=e);bf||0!=d%f))throw g.i.N();var h=this.size;this.resize(h+d);if(e)this.o.set(a.o.subarray(b,b+d),h);else{e=d;for(var k=0;kh||0!=e%h))throw g.i.N();v(this.o,a+e,a,a+(k-a));this.o==b.o&&ah&&(h=this.size);this.size+2*e>this.o.length?this.resize(this.size+2*e):this.size+=2*e;v(this.o,a+2*e,a,a+(h-a));if(f)for(f=0;fa||0>b||0>e)throw g.i.N();if(!f&&(0>=h||0!=b%h))throw g.i.N();if(d.sizethis.size)throw g.i.Hb(); 0d||0!=b%d)throw g.i.Hb();for(var e=b>>1,f=0;fb||0>d||0>b||d+b>this.size)throw g.i.N();for(var e=b;ea||0>b||0>e)throw g.i.N();if(0!=b)for(this.size<(b<<1)+a&&this.resize((b<<1)+a),f||(a+=b-1<<1),f=f?2:-2,b+=e;ea||0>b||0>e||this.sizeb-a?c.rG(this.o,a,b,d):c.qB(this.o,a,b-1,d)};c.prototype.Tp=function(){return 2};c.prototype.Fc=function(){return this.o[this.size-1]};c.prototype.If=function(){this.resize(this.size-1)};c.prototype.bX=function(a){this.o[this.size-1]=a};c.prototype.SV=function(a){a=b&&0=d))for(;;){if(9>d-b){c.rG(a,b,d+1,e);break}var f=a[b];c.tx(a,b,d);for(var h=b,k=b;k=e(a[k],f)&&(c.tx(a,h,k),h+=1);c.tx(a,h,d);h-bb&&(b=2);this.o=new Int8Array(b);this.size=a}c.prototype.rotate=function(a,b,d){if(this.Pb)throw g.i.fa("invalid_call");if(bd||a>d)throw g.i.N();a!=b&&d!=b&&(this.ni(a,b-a,1),this.ni(b,d-b,1),this.ni(a,d-a,1))};c.qf=function(a,b){var d=new c(a),e=d.o;2>a&&(a=2);if(0!==b)for(var f=0;fb&&(d.size=b);b=d.size;2>b&&(b=2);d.o=new Int8Array(b);d.o.set(a.o.length<=b?a.o:a.o.subarray(0,b),0);return d};c.prototype.Jb=function(a){0>=a||(null==this.o?this.o=new Int8Array(a):a<=this.o.length||(0this.o.length&&(d=g.O.truncate(64>a?Math.max(2*a,4):5*a/4),d=new Int8Array(d),d.set(this.o),this.o=d);d=this.o;for(var e=this.size;ethis.o.length)&&this.resize(a);if(this.pk)throw g.i.fa("invalid call. Attribute Stream is locked and cannot be resized.");this.size=a};c.prototype.pr=function(a,b){this.write(a,b)};c.prototype.An= function(a,b,d){for(var e=this.size;be||d>f&&e!=f)return!1;for(d>e&&(d=e);bf||0!=d%f))throw g.i.N();var h=this.size;this.resize(h+d);if(e)this.o.set(a.o.subarray(b,b+d),h);else{e=d;for(var k=0;kh||0!=e%h))throw g.i.N();v(this.o,a+e,a,a+(k-a));this.o==b.o&&ah&&(h=this.size);this.size+2*e>this.o.length? this.resize(this.size+2*e):this.size+=2*e;v(this.o,a+2*e,a,a+(h-a));if(f)for(f=0;fa||0>b||0>e)throw g.i.N();if(!f&&(0>=h||0!=b%h))throw g.i.N();if(d.sizethis.size)throw g.i.Hb();0d||0!=b%d)throw g.i.Hb();for(var e=b>>1,f=0;fb||0>d||0>b||d+b>this.size)throw g.i.N();for(var e=b;ea||0>b||0>e)throw g.i.N();if(0!=b)for(this.size<(b<<1)+a&&this.resize((b<< 1)+a),f||(a+=b-1<<1),f=f?2:-2,b+=e;ea||0>b||0>e||this.sizec?-c:c};l.ti=function(c){return 3.552713678800501E-15> c};l.KC=function(c,a,b){return l.P(c-a)<=b*(1+(l.P(c)+l.P(a))/2)};l.Y=function(c,a){return l.KC(c,a,3.552713678800501E-15)};l.FL=function(c){return 3.552713678800501E-15>=l.P(c)};l.Cd=function(c){return l.FL(c)};return l}();g.s=v;g.F=function(){function l(){}l.gp=function(c,a){c=v.P(c);a=v.P(a);var b=0;0!=c+a&&(c>a?(b=a/c,b=c*Math.sqrt(1+b*b)):(b=c/a,b=a*Math.sqrt(1+b*b)));return b};l.Wq=function(c,a,b,d,e){for(var f=[0,0,0],h=[0,0,0],k=0;2>=k;k++)a[k]-=c[k],b[k]-=a[k];b=f[1]*h[2]-f[2]*h[1];a=f[2]* h[0]-f[0]*h[2];f=f[0]*h[1]-f[1]*h[0];c=-1*(b*c[0]+a*c[1]+f*c[2]);d[0]=b;d[1]=a;d[2]=f;d[3]=c;h=l.on(d);d[0]/=h;d[1]/=h;d[2]/=h;d[3]/=h;0!=e&&(h=v.Cd(f)?v.Cd(c)?v.Mb(1,a):-v.Mb(1,c):v.Mb(1,f),h*=v.Mb(1,e),d[0]*=h,d[1]*=h,d[2]*=h,d[3]*=h)};l.zx=function(c,a,b){b[0]=c[1]*a[2]-a[1]*c[2];b[1]=c[2]*a[0]-a[2]*c[0];b[2]=c[0]*a[1]-a[0]*c[1]};l.St=function(c,a){return c[0]*a[0]+c[1]*a[1]+c[2]*a[2]};l.on=function(c){return l.gp(l.gp(c[0],c[1]),c[2])};l.cl=function(c,a,b,d,e,f,h,k){c=l.n(c,a,b);var m=Math.cos(b); f.u=(c+e)*m*Math.cos(d);h.u=(c+e)*m*Math.sin(d);k.u=(c*(1-a)+e)*Math.sin(b)};l.jO=function(c,a,b,d,e,f,h){var k=l.gp(a,b),m=1*Math.sqrt(1-c),n=m/1;if(v.Y(k,0))f.u=0,e.u=v.Mb(1.570796326794897,d),h.u=v.P(d)-m;else{f.u=Math.atan2(b,a);b=Math.atan2(1*d,m*k);f=Math.cos(b);var p=Math.sin(b);a=m*c/(1-c);c*=1;b=Math.atan2(d+a*p*p*p,k-c*f*f*f);3.141592653589793c){var b=Math.sqrt(1-c),d=(1-b)/(1+b),e=d*d,f= d*e,h=d*f,k=d*h,m=d*k,n=d*m,p=1.572916666666667*f-3.2578125*k+4.295068359375*n;c=2.142578125*h-6.071484375*m;b=3.129296875*k-11.249837239583334*n;var q=4.775276692708333*m,r=7.958636765252976*n,t=Math.cos(2*a);return a+Math.sin(2*a)*(1.5*d-.84375*f+.525390625*k-.2688395182291667*n-p+b-r+t*(2*(1.3125*e-1.71875*h+1.650146484375*m)-4*c+6*q+t*(4*p-12*b+24*r+t*(8*c-32*q+t*(16*b-80*r+t*(32*q+64*t*r))))))}b=1-c;d=c/2;e=v.P(a);f=e*l.Zu(c)/(1.570796326794897*b);h=9999;m=e;for(e=0;1E-16e;e++)n=l.w(c, m),k=(l.kG(m,c)-d*Math.sin(2*m)/n)/b-f,n=1/(n*n*n),p=k/n,k=m-p,h=v.P(p),m=k;return 0<=a?m:-m};l.qW=function(c,a){return v.ti(a)?c:c*l.Zu(a)/1.570796326794897};l.ba=function(c){c=l.pF(c,6.283185307179586);return 0>c?c+6.283185307179586:3.141592653589793>v.P(c)||v.Y(v.P(c),3.141592653589793)?c:c-6.283185307179586};l.pF=function(c,a){return c-Math.floor(c/a)*a};l.Ah=function(c,a){if(.006884661117170036>a){a=Math.sqrt(1-a);a=(1-a)/(1+a);var b=a*a,d=b*b;return c/(1+a)*(1+.25*b+.015625*d+.00390625*b*d)* 1.570796326794897}return c*l.Zu(a)};l.Vq=function(c,a){var b=v.Mb(1,Math.sin(a));a=v.P(l.pF(a,3.141592653589793));a=1.570796326794897>=a?a:3.141592653589793-a;return(v.Y(a,1.570796326794897)?a:Math.atan(Math.sqrt(1-c)*Math.tan(a)))*b};l.q=function(c,a,b){if(.006884661117170036>a){a=Math.sqrt(1-a);a=(1-a)/(1+a);var d=a*a,e=a*d,f=a*e,h=a*f,k=a*h,m=a*k,n=-.7291666666666666*e+.2278645833333333*h+.03987630208333334*m,p=.615234375*f-.21533203125*k,q=-.54140625*h+.20302734375*m,r=.48876953125*k,t=-.4488699776785715* m,u=Math.cos(2*b);return c/(1+a)*((1+.25*d+.015625*f+.00390625*k)*b+Math.sin(2*b)*(-1.5*a+.1875*e+.0234375*h+.00732421875*m-n+q-t+u*(2*(.9375*d-.234375*f-.03662109375*k)-4*p+6*r+u*(4*n-12*q+24*t+u*(8*p-32*r+u*(16*q-80*t+u*(32*r+64*u*t)))))))}return c*(l.kG(b,a)-.5*a*Math.sin(2*b)/l.w(a,b))};l.w=function(c,a){a=Math.sin(a);return Math.sqrt(1-c*a*a)};l.Zu=function(c){return v.KC(c,1,2.220446049250313E-16)?1:1>c?l.Xw(0,1-c)-c/3*l.Uw(0,1-c):NaN};l.kG=function(c,a){var b=v.Mb(1,c);c=v.P(c);var d=Math.floor(c/ 1.570796326794897);if(1v.P(h)&&1E-4>v.P(k)&&1E-4>v.P(m))break;m=Math.sqrt(d);f=Math.sqrt(e);m=Math.sqrt(b)*(m+f)+m*f;a+=c/(f*(e+m));c*=.25;b=.25*(b+m);d=.25*(d+m);e=.25*(e+m)}b=h*k;e=m*m;d=b-e;e=b-6*e;h=e+d+d;return 3*a+c*(1+e*(-.2142857142857143+.10227272727272728*e-.1730769230769231*m*h)+m*(.1666666666666667*h+m*(-.4090909090909091*d+.1153846153846154*m*b)))/(f*Math.sqrt(f))};l.Xw=function(c, a){for(var b,d,e,f,h=1;;h=.25*(h+b)){b=(c+a+h)/3;d=2-(b+c)/b;e=2-(b+a)/b;f=2-(b+h)/b;if(1E-4>v.P(d)&&1E-4>v.P(e)&&1E-4>v.P(f))break;b=Math.sqrt(a);d=Math.sqrt(h);b=Math.sqrt(c)*(b+d)+b*d;c=.25*(c+b);a=.25*(a+b)}c=d*e-f*f;a=d*e*f;return(1+(.04166666666666666*c-.1-.06818181818181818*a)*c+.07142857142857142*a)/Math.sqrt(b)};l.Qw=function(c,a){if(v.ti(c)||0==a||v.Y(v.P(a),1.570796326794897))return a;if(.006884661117170036>c){var b=c*c,d=c*b,e=c*d,f=c*e,h=c*f,k=c*h,m=-(.02708333333333333*d+.03430059523809524* e+.03149181547619048*f+.02634359154541446*h+.02156896735835538*k),n=.007669890873015873*e+.01299603174603175*f+.0148051353064374*h+.01454454953803912*k,p=-(.002275545634920635*f+.004830845032667949*h+.006558395368616723*k),q=6.957236677288761E-4*h+.001775193002406544*k,r=-(2.17324089394402E-4*k),t=Math.cos(2*a);return a+Math.sin(2*a)*(-(.5*c+.2083333333333333*b+.09375*d+.04878472222222222*e+.02916666666666667*f+.01938905423280423*h+.01388255931712963*k)-m+p-r+t*(2*(.1041666666666667*b+.0875*d+.06050347222222222* e+.04151785714285714*f+.02958958540013228*h+.02203667534722222*k)-4*n+6*q+t*(4*m-12*p+24*r+t*(8*n-32*q+t*(16*p-80*r+t*(32*q+64*t*r))))))}0==a||v.Y(v.P(a),1.570796326794897)?b=a:(d=Math.sqrt(c),e=d*Math.sin(a),b=Math.tan(.7853981633974483+a/2)*Math.pow((1-e)/(1+e),d/2),b=2*Math.atan(b)-1.570796326794897);return b};l.yO=function(c,a){if(v.ti(c)||0==a||v.Y(v.P(a),1.570796326794897))return a;if(.006884661117170036>c){t=c*c;p=c*t;q=c*p;var b=c*q;r=c*b;var d=c*r,e=.05833333333333333*p+.07232142857142858* q+.05634300595238095*b+.0355325796406526*r+.020235546186067*d,f=.02653149801587302*q+.04379960317460317*b+.0429211791776896*r+.03255384637546096*d,h=.01294022817460318*b+.02668104344536636*r+.03155651254609588*d,k=.00659454790965208*r+.0163075268674227*d,m=.003463473736911237*d,n=Math.cos(2*a);return a+Math.sin(2*a)*(.5*c+.2083333333333333*t+.08333333333333333*p+.03611111111111111*q+.01875*b+.01195601851851852*r+.008863673941798942*d-e+h-m+n*(2*(.1458333333333333*t+.1208333333333333*p+.07039930555555556* q+.03616071428571429*b+.01839451058201058*r+.01017113095238095*d)-4*f+6*k+n*(4*e-12*h+24*m+n*(8*f-32*k+n*(16*h-80*m+n*(32*k+64*n*m))))))}var p=Math.sqrt(c),q=p/2,r=Math.tan(.7853981633974483+a/2);c=0;e=1;for(var t=a;0!=e;t=d)if(b=p*Math.sin(t),d=r*Math.pow((1+b)/(1-b),q),d=2*Math.atan(d)-1.570796326794897,c++,v.Y(d,t)||3E4this.Kk&&(this.Kk=0);var b=this.Ue.getType();this.jH=b==g.Sc.PE_TYPE_PROJCS?2:1;if(b==g.Sc.PE_TYPE_PROJCS&&!c.loadConstants())throw g.i.N("PeProjcs.loadConstants failed");a=b==g.Sc.PE_TYPE_GEOGCS?this.Ue:this.Ue.getGeogcs();b!=g.Sc.PE_TYPE_GEOGCS&&g.pf.getCode(a);this.Eo=c.getUnit(); this.RH=a.getPrimem().getLongitude();this.wH=c=a.getUnit().getUnitFactor();c=Math.PI/(180*c);1E-10>Math.abs(c-1)&&(c=1);this.GA=c;0!=(b&g.Sc.PE_TYPE_PROJCS)?(a=this.Ue,this.HA=1/a.getUnit().getUnitFactor(),this.sw=.001/this.Ue.getUnit().getUnitFactor(),this.tw=g.Cg.generate(a,g.Cg.PE_PCSINFO_OPTION_NONE),this.zl=this.tw.isPannableRectangle(),this.bA=g.zb.qN(this.tw.getCentralMeridian(),this.GA)):(this.KA=this.zl=!0,this.HA=0,b=1/a.getUnit().getUnitFactor(),this.sw=.001/a.getDatum().getSpheroid().getAxis()* b,this.bA=0);this.zl&&(this.xx(),this.DK(),this.nY(),this.CK(),this.lY(),this.mY())}l.prototype.$r=function(){return this.Kk};l.prototype.kk=function(){return this.tw};l.Py=function(c,a){return c==a?!0:null!=c&&null!=a&&0==c.Kk&&0==a.Kk?c.As===a.As:!1};l.prototype.Wc=function(){return this.zl};l.prototype.gh=function(c){c.K(this.so)};l.prototype.pv=function(){return this.so.v};l.prototype.ov=function(){return this.so.C};l.prototype.GR=function(c){c.K(this.uw)};l.prototype.lY=function(){var c=this.Ue.getType(); if(c==g.Sc.PE_TYPE_PROJCS){c=this.Ue;var a=this.kk().getCentralMeridian(),b=c.getGeogcs();if(null==b)throw g.i.fa("internal error");b=1/b.getUnit().getUnitFactor()*Math.PI;a=[[a+b,0]];g.ej.geogToProj(c,1,a);a=a[0][0];b=c.getParameters()[g.Sc.PE_PARM_X0].getValue();var d=this.ml();c=new g.l;d.A(c);d=Math.abs(a-b);a=d+b;b=-1*d+b;d=c.H;c=c.G;var e=new g.l;e.K(b,c,a,d);null==this.so&&(this.so=e)}else if(c==g.Sc.PE_TYPE_GEOGCS)b=1/this.Ue.getUnit().getUnitFactor()*Math.PI,c=new g.l,c.K(-b,-b/2,b,b/2), null==this.so&&(this.so=c);else throw g.i.fa("internal error");};l.prototype.mY=function(){var c=this.Ue.getType();if(c==g.Sc.PE_TYPE_PROJCS){var a=this.Ue;c=this.kk().getCentralMeridian();a=a.getGeogcs();if(null==a)throw g.i.fa("internal error");a=1/a.getUnit().getUnitFactor()*Math.PI;var b=this.Vr(),d=new g.l;b.A(d);b=new g.l;b.K(c-a,d.G,c+a,d.H);null==this.uw&&(this.uw=b)}else if(c==g.Sc.PE_TYPE_GEOGCS)a=1/this.Ue.getUnit().getUnitFactor()*Math.PI,c=new g.l,c.K(-a,-a/2,a,a/2),null==this.uw&&(this.uw= c);else throw g.i.fa("internal error");};l.prototype.bf=function(){return this.GA};l.prototype.pm=function(){return this.HA};l.prototype.Vr=function(){if(this.zl)return this.ul;var c=this.ul;if(null!=c)return c;this.xx();return this.ul};l.prototype.Wr=function(){if(this.zl)return null;if(null!=this.ul)return this.YG;this.xx();return this.YG};l.prototype.xx=function(){if(this.Ue.getType()==g.Sc.PE_TYPE_PROJCS){var c=this.Ue,a=c.getGeogcs(),b=c.horizonGcsGenerate();if(null!=b){var d=b[0].getNump(), e=b[0].getKind();c=0m&&(b=-400*f,p.K(b,p.G,b+5*k,p.H)),b=new g.Fh(p),null== this.ul&&(this.ul=b,this.Iv=c);else{m=new g.Da;k=this.kk().isGcsHorizonMultiOverlap();p=g.gu.bF(a,g.hu.Integer64);if(k){m=new g.gL;n=g.Gh.local().V(m,p,null);for(r=0;rthis.ss&&(this.ss=0);this.Eo=a=this.KT.getUnit();this.IH=1/a.getUnitFactor();g.pf.getCode(c)}l.Py=function(c,a){return c==a?!0:null!=c&&null!=a&&0==c.ss&&0==a.ss?c.As===a.As:!1};l.prototype.$r=function(){return this.ss};return l}();g.PL=v})(D||={});(function(g){g.Yg=function(){function v(){}v.tb=function(l,c,a,b,d,e,f,h){if(null!=e||null!=f||null!=h){b=g.F.ba(b);c=g.F.ba(c);a=g.F.ba(a);d=g.F.ba(d);1.570796326794897a?b:g.F.ba(3.141592653589793-b):Math.atan2(p*t,m*q-n*p*r));null!=h&&(g.s.Y(g.s.P(d), 1.570796326794897)?h.u=0>d?c:g.F.ba(3.141592653589793-c):(h.u=Math.atan2(m*t,q*m*r-p*n),h.u=g.F.ba(h.u+3.141592653589793)))}}};v.rf=function(l,c,a,b,d,e,f){if(null!=e||null!=f){c=g.F.ba(c);a=g.F.ba(a);1.570796326794897q?d:g.F.ba(3.141592653589793-d):c:g.s.Y(g.s.P(a),1.570796326794897)&&g.s.Y(l,3.141592653589793)?0>a?d:g.F.ba(3.141592653589793-d):g.F.ba(c+Math.atan2(p*k,m*b-n*p*h)))}};return v}()})(D||={});(function(g){g.Wk=function(){function v(){}v.tb=function(l,c,a,b,d,e,f,h,k){var m=new g.ga(0), n=new g.ga(0),p=[0,0,0],q=[0,0,0],r=[0,0,0],t=new g.ga(0),u=new g.ga(0),w=new g.ga(0),y=new g.ga(0),x=new g.ga(0);if(null!=f||null!=h||null!=k)if(g.s.ti(c))g.Yg.tb(l,a,b,d,e,f,h,k);else{d=g.F.ba(d);a=g.F.ba(a);var z=g.F.ba(d-a);if(g.s.Y(b,e)&&(g.s.Y(a,d)||g.s.Y(g.s.P(b),1.570796326794897)))null!=f&&(f.u=0),null!=h&&(h.u=0),null!=k&&(k.u=0);else{if(g.s.Y(b,-e)){if(g.s.Y(g.s.P(b),1.570796326794897)){null!=f&&(f.u=2*g.F.Ah(l,c));null!=h&&(h.u=0z){A=1;var B=a;a=d;d=B;B=b;b=e;e=B}z=g.F.ot(c,b);var C=g.F.ot(c,e);if(null!=h||null!=k)g.Yg.tb(l,a,z,d,C,null,m,n),m=Math.atan2(Math.sin(m.u)*Math.cos(b-z),Math.cos(m.u)),n=Math.atan2(Math.sin(n.u)*Math.cos(e- C),Math.cos(n.u)),0!=A&&(B=m,m=n,n=B),null!=h&&(h.u=m),null!=k&&(k.u=n);null!=f&&(g.F.cl(1,c,b,a,0,w,y,x),p[0]=w.u,p[1]=y.u,p[2]=x.u,g.F.cl(1,c,e,d,0,w,y,x),q[0]=w.u,q[1]=y.u,q[2]=x.u,r[0]=p[1]*q[2]-q[1]*p[2],r[1]=-(p[0]*q[2]-q[0]*p[2]),r[2]=p[0]*q[1]-q[0]*p[1],c=1-g.F.w(c,g.F.Vq(c,g.F.Qj(c,Math.acos(r[2]/Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]))))),c*=2-c,h=Math.atan2(-r[1],-r[0]),r=g.F.ba(h-1.570796326794897),h=g.F.ba(h+1.570796326794897),r=g.s.P(g.F.ba(a-r))<=g.s.P(g.F.ba(a-h))?r:h,g.Yg.tb(1,r, 0,a,z,t,null,null),g.Yg.tb(1,r,0,d,C,u,null,null),3.141592653589793d&&(d=g.s.P(d),e=g.F.ba(e+3.141592653589793)),a=g.F.ba(a),b=g.F.ba(b),1.570796326794897=g.s.P(e)?1:-1);e=g.F.ba(a+Math.atan(Math.tan(e)*-Math.sin(w)));g.Yg.tb(l,e,0, a,w,null,n,null);w=g.s.P(1.570796326794897-g.s.P(n.u));w=g.F.Qj(c,w);w=1-g.F.w(c,g.F.Vq(c,w));w*=2-w;g.F.cl(1,c,0,e,0,r,t,u);p[0]=r.u;p[1]=t.u;p[2]=u.u;g.F.cl(1,c,b,a,0,r,t,u);q[0]=r.u;q[1]=t.u;q[2]=u.u;b=Math.acos((p[0]*q[0]+p[1]*q[1]+p[2]*q[2])/Math.sqrt(q[0]*q[0]+q[1]*q[1]+q[2]*q[2]));b=g.F.Qj(w,b);b=g.F.q(l,w,b)+d*y;d=0=F&&!g.s.Y(H,A));if(0!=E)t*=m,r=t*(256+t*(-128+t*(74-47*t)))/1024,null!=f&&(f.u=u*(1+t*(4096+t*(-768+t*(320-175* t)))/16384)*(I-r*G*(n+r/4*(J*(2*p-1)-r/6*n*(4*G*G-3)*(4*p-3))))),null!=h&&(h.u=g.s.Y(g.s.P(b),1.570796326794897)?0>b?d:g.F.ba(3.141592653589793-d):Math.atan2(x*C,c*z-y*x*B)),null!=k&&(g.s.Y(g.s.P(e),1.570796326794897)?k.u=0>e?a:g.F.ba(3.141592653589793-a):(k.u=Math.atan2(c*C,c*z*B-y*x),k.u=g.F.ba(k.u+3.141592653589793)));else{A=g.s.Mb(3.141592653589793,q);J=y*z-c*x;I=Math.acos(J);G=Math.sin(I);m=1;F=L=0;do p=L,m*=m,B=m*m,L=r*m*(1+r+r*r),n=r*r*B*(1+2.25*r),E=r*r*r*B*m,B=1-.25*L+.1875*n-.1953125*E, L=.25*L-.25*n+.29296875*E,C=.03125*n-.05859375*E,E*=.00651041666666667,n=J-2*y*z/m,1=F&&!g.s.Y(p,L));null!=f&&(m*=m,t*=m,B=1+t*(4096+t*(-768+t*(320-175*t)))/16384,g.s.Y(b,-e)?f.u=3.141592653589793*u*B:(n=J-2*y*z/m,m=Math.acos(n),J=Math.cos(2*m),H=Math.cos(3*m),f.u=u*(B*I+t*(-512+t*(128+t*(-60+35*t)))/2048*G*n+t*(-4+5*t)/6144*t*t*Math.sin(2*I)*J+E*Math.sin(3*I)*H+-7.62939453125E-5*t*t*t*t*Math.sin(4*I)*Math.cos(4*m))));null!=h&&(g.s.Cd(b)&&g.s.Cd(e)?(m=Math.sqrt(1-L*L),h.u=Math.acos(m),0>q&&(h.u*=-1)):g.s.Y(g.s.P(b),1.570796326794897)?h.u=0>b? d:g.F.ba(3.141592653589793-d):(f=L/c,u=Math.sqrt(1-f*f),0>c*z-y*x*Math.cos(A)&&(u*=-1),h.u=Math.atan2(f,u),g.s.Y(b,-e)&&g.s.P(g.F.ba(a-d))>3.141592653589793*(1-r*Math.cos(b))&&(0g.s.P(h.u)||0>b&&1.570796326794897e?a:g.F.ba(3.141592653589793-a);else if(q=L/x,f=Math.sqrt(1-q*q),u=Math.sin(A/ 2),0>Math.sin(w-l)-2*c*z*u*u&&(f*=-1),k.u=Math.atan2(q,f),k.u=g.F.ba(k.u+3.141592653589793),g.s.Y(b,-e)&&!g.s.Cd(b)&&!g.s.Y(g.s.P(b),1.570796326794897)&&g.s.P(g.F.ba(a-d))>3.141592653589793*(1-r*Math.cos(b))&&(null!=h?u=h.u:(f=L/c,u=Math.sqrt(1-f*f),0>c*z-y*x*Math.cos(A)&&(u*=-1),u=Math.atan2(f,u),g.s.Y(b,-e)&&g.s.P(g.F.ba(a-d))>3.141592653589793*(1-r*Math.cos(b))&&(0g.s.P(u)||0>b&&1.570796326794897=g.s.P(u)&&1.570796326794897< g.s.P(k.u)||1.570796326794897<=g.s.P(u)&&1.570796326794897>g.s.P(k.u)))k.u=-1*g.F.ba(k.u+3.141592653589793)}}}};v.rf=function(l,c,a,b,d,e,f,h){if(null!=f||null!=h)if(g.s.ti(c))g.Yg.rf(l,a,b,d,e,f,h);else if(e=g.F.ba(e),g.s.Y(g.s.P(b),1.570796326794897)||g.s.Cd(e)||g.s.Y(g.s.P(e),3.141592653589793))g.Wk.rf(l,c,a,b,d,e,f,h);else{var k=1.570796326794897==g.s.P(e)?0:Math.cos(e),m=3.141592653589793==g.s.P(e)?0:Math.sin(e);g.s.Y(g.s.P(b),1.570796326794897)&&(a=0);e=1-Math.sqrt(1-c);var n=g.F.Vq(c,b);b= 1.570796326794897==g.s.P(n)?0:Math.cos(n);var p=Math.sin(n);n=Math.atan2(Math.tan(n),k);var q=b*m,r=q*q,t=1-r,u=c/(1-c)*t;c=u*(256+u*(-128+u*(74-47*u)))/1024;var w=c/4,y=c/6,x=d/(l*(1-e)*(1+u*(4096+u*(-768+u*(320-175*u)))/16384)),z=x;do{var A=z;d=1.570796326794897==g.s.P(z)?0:Math.cos(z);u=3.141592653589793==g.s.P(z)?0:Math.sin(z);var B=u*u;l=Math.cos(2*n+z);z=l*l;z=c*u*(l+w*(d*(2*z-1)-y*l*(4*B-3)*(4*z-3)))+x}while(!g.s.Y(A,z));d=1.570796326794897==g.s.P(z)?0:Math.cos(z);u=3.141592653589793==g.s.P(z)? 0:Math.sin(z);null!=f&&(m=Math.atan2(u*m,b*d-p*u*k),t=e/16*t*(4+e*(4-3*t)),l=Math.cos(2*n+z),f.u=g.F.ba(a+(m-(1-t)*e*q*(z+t*u*(l+t*d*(2*l*l-1))))));null!=h&&(t=p*u-b*d*k,t=(1-e)*Math.sqrt(r+t*t),h.u=Math.atan2(p*d+b*u*k,t))}};return v}()})(D||={});(function(g){g.PC=function(){function v(){}v.tb=function(l,c,a,b,d,e,f,h,k){var m=g.F.ba(d-a),n=g.s.Y(g.s.P(b),1.570796326794897),p=g.s.Y(g.s.P(e),1.570796326794897);if(g.s.Y(b,e)&&(g.s.Cd(m)||n))null!=f&&(f.u=0),null!=h&&(h.u=0),null!=k&&(k.u=0);else{if(g.s.ti(c)){var q= Math.sin(b),r=Math.sin(e);q=Math.sqrt((1+q)/(1-q));r=Math.sqrt((1+r)/(1-r));q=Math.log(r)-Math.log(q);q=Math.atan2(m,q);null!=f&&(f.u=g.s.Y(b,e)?g.s.P(l*Math.cos(b)*m):g.s.P((l*e-l*b)/Math.cos(q)))}else r=g.F.Qw(c,e),q=Math.sin(g.F.Qw(c,b)),r=Math.sin(r),q=Math.sqrt((1+q)/(1-q)),r=Math.sqrt((1+r)/(1-r)),q=Math.log(r)-Math.log(q),q=Math.atan2(m,q),null!=f&&(g.s.Y(b,e)?f.u=g.s.P(l*m*Math.cos(b)/g.F.w(c,b)):(m=g.F.q(l,c,b),l=g.F.q(l,c,e),f.u=g.s.P((l-m)/Math.cos(q))));if(null!=h||null!=k)f=g.F.ba(q+ 3.141592653589793),n&&p||!n&&!p||(n?q=0>b?d:g.F.ba(3.141592653589793-d):p&&(f=0>e?a:g.F.ba(3.141592653589793-a))),null!=h&&(h.u=q),null!=k&&(k.u=f)}};v.rf=function(l,c,a,b,d,e,f,h){e=g.F.ba(e);0>d&&(d=g.s.P(d),e=g.F.ba(e+3.141592653589793));g.s.ti(c)?g.s.Y(g.s.P(b),1.570796326794897)?(a=0>b?e:g.F.ba(3.141592653589793-e),e=d/l%6.283185307179586,3.141592653589793>=e?l=b-g.s.Mb(e,b):(a=g.F.ba(a+3.141592653589793),l=-b+g.s.Mb(e-3.141592653589793,b))):g.s.Y(g.s.P(e),1.570796326794897)?(a=g.F.ba(a+g.s.Mb(d, e)/(l*Math.cos(b))),l=b):(l=b+d*Math.cos(e)/l,1.570796326794897b?e:g.F.ba(3.141592653589793-e),e=d/g.F.qW(l,c),e%=6.283185307179586,3.141592653589793>=e? l=b-g.s.Mb(e,b):(a=g.F.ba(a+3.141592653589793),l=-b+g.s.Mb(e-3.141592653589793,b)),l=g.F.Rq(c,l)):g.s.Y(g.s.P(e),1.570796326794897)?(a=g.F.ba(a+g.s.Mb(d,e)*g.F.w(c,b)/(l*Math.cos(b))),l=b):(l=1.570796326794897*(d*Math.cos(e)+g.F.q(l,c,b))/g.F.Ah(l,c),1.570796326794897Math.PI||Math.abs(b.y)>.5*Math.PI||Math.abs(d.y)>.5*Math.PI||(Math.abs(b.y)==.5*Math.PI||Math.abs(d.y)==.5*Math.PI)&&b.x!=d.x)return NaN;e=c.cB(e,Math.min(b.x,d.x),Math.max(b.x,d.x));if(!(new g.Nc(b.x,d.x)).contains(e))return NaN;var f=v.construct(b);d=v.construct(d);f=c.Yu(a,f);d=c.Yu(a,d);d=f.cF(d);if(d.z.qg())return b=b.y;var h=new g.Wb;h.set(d.x);h.jm(d.z); h.No(-1);var k=new g.Wb;k.set(d.y);k.jm(d.z);k.No(-1);var m=new g.Wb;m.set(k);m.Ag(k);f=new g.Wb;f.set(h);f.Ag(h);f.add(m);f.sqrt();if(f.qg()||h.qg()&&k.qg())return b=b.y;b=Math.atan2(k.value(),h.value());b=Math.atan2(f.value()*Math.cos(b-e),1-a);e=c.DP(a,g.h.construct(e,b));a=new g.Nd(e.x,e.y,-e.z);e=d.value().Qh(e);a=d.value().Qh(a);Math.abs(a)Math.PI||Math.abs(b.y)>.5*Math.PI||Math.abs(d.y)>.5*Math.PI|| (Math.abs(b.y)==.5*Math.PI||Math.abs(d.y)==.5*Math.PI)&&b.x!=d.x||Math.abs(e)>=.5*Math.PI||0e&&d.y>e||0>b.y&&0>d.y&&b.yMath.abs(f[1]-b.x)&&(b=f[0],f[0]=f[1],f[1]=b));return e};c.cB=function(a,b,d){a>d?(b=Math.ceil((a-d)/(2*Math.PI)),a-=2*b*Math.PI):ab.x?(b.x-=b.x%360,-180>b.x&&(b.x+=360)):180b.y&&(b.y=-90);l=40;c=(l+31)/32;for(var d=-180,e=180,f=l-1,h=c-1;0<=h;h--)for(var k=f-32*h,m=Math.min(32,l-32*h),n=1;n=p?(a[h]|=1<=p?(a[h]|=1<>e&31;e+=5;if(31c)for(f=0;f=c[0]?c:'"'+c.trim()+'"'}var l= [];g.XC=function(){function c(){}c.EQ=function(a){try{for(var b=0;bc||c>this.Aa)throw g.i.N();return this.bg[c]};l.prototype.Pf=function(c){return this.uh[c]};l.lz=function(c){return l.JM[c]};l.Tp=function(c){return l.SM[c]};l.Va=function(c){return l.rM[c]};l.prototype.hasAttribute=function(c){return 0<=this.uh[c]};l.prototype.iG=function(){return this.hasAttribute(1)};l.se=function(c){return l.eD[c]};l.prototype.LR=function(c){return this.Vs[c]};l.DG=function(c,a){return l.eD[c]===a};l.prototype.Nb=function(c){return this===c}; l.prototype.An=function(){for(var c=g.O.Th(this.bg[0]),a=1;a++h&&l(f,m,e.eu);for(n[0]?k?m=h:(n=f.c,m=f.e+m+1):++m;n.length< m;n.push(0));m=f.e;return 1===k||k&&(h<=m||m<=a)?(0>f.Bd&&n[0]?"-":"")+(1m?"e":"e+")+m:f.toString()}function l(f,h,k,m){var n=f.c,p=f.e+h+1;1===k?m=5<=n[p]:2===k?m=5p||void 0!==n[p+1]||n[p-1]&1):3===k?m=m||void 0!==n[p]||0>p:(m=!1,0!==k&&c("!Big.RM!"));if(1>p||!n[0])m?(f.e=-h,f.c=[1]):f.c=[f.e=0];else{n.length=p--;if(m)for(;9<++n[p];)n[p]=0,p--||(++f.e,n.unshift(1));for(p=n.length;!n[--p];n.pop());}return f}function c(f){f=Error(f); f.name="BigError";throw f;}var a=-7,b=21,d=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,e=function(){function f(h){if(h instanceof f)this.Bd=h.Bd,this.e=h.e,this.c=h.c.slice();else{var k,m,n;0===h&&0>1/h?h="-0":d.test(h+="")||c(NaN);this.Bd="-"==h.charAt(0)?(h=h.slice(1),-1):1;-1<(k=h.indexOf("."))&&(h=h.replace(".",""));0<(m=h.search(/e/i))?(0>k&&(k=m),k+=+h.slice(m+1),h=h.substring(0,m)):0>k&&(k=h.length);for(m=0;"0"==h.charAt(m);m++);if(m==(n=h.length))this.c=[this.e=0];else{for(;"0"==h.charAt(--n);); this.e=k-m-1;this.c=[];for(k=0;m<=n;this.c[k++]=+h.charAt(m++));}}}f.prototype.abs=function(){var h=new f(this);h.Bd=1;return h};f.prototype.cmp=function(h){var k=this.c,m=(h=new f(h)).c,n=this.Bd,p=h.Bd,q=this.e,r=h.e;if(!k[0]||!m[0])return k[0]?n:m[0]?-p:0;if(n!=p)return n;h=0>n;if(q!=r)return q>(r^h)?1:-1;n=-1;for(p=(q=k.length)<(r=m.length)?q:r;++n(m[n]^h)?1:-1;return q==r?0:q>(r^h)?1:-1};f.prototype.jm=function(h){var k=this.c,m=(h=new f(h)).c,n=this.Bd==h.Bd?1: -1,p=f.rr;(p!==~~p||0>p||1E6C?0:C;for(t.unshift(0);x++r;r++){if(q!=(x=y.length))var E=q>x?1:-1;else{var F=-1;for(E=0;++Fy[F]?1:-1;break}}if(0>E){for(h=x==q?m:t;x;){if(y[--x]C&&l(z,p,f.eu,void 0!==y[0]);return z};f.prototype.fS=function(){return 0this.cmp(0)};f.prototype.jt=function(h){var k,m=this.Bd,n=(h=new f(h)).Bd;if(m!=n)return h.Bd=-n,this.tI(h);var p=this.c.slice(),q=this.e,r=h.c,t=h.e;if(!p[0]||!r[0])return r[0]?(h.Bd=-n,h):new f(p[0]?this:0);if(m=q-t){(k=0>m)?(m=-m,q=p):(t=q,q=r);q.reverse(); for(n=m;n--;q.push(0));q.reverse()}else for(q=((k=p.lengthm;){if(p[--q]n.length-q.length&&(m=q,q=n,n=m);k=q.length;for(m=0;k;)m=(n[--k]=n[k]+q[k]+m)/10|0,n[k]%=10;m&&(n.unshift(m),++p);for(k=n.length;0==n[--k];n.pop());h.c=n;h.e=p;return h};f.prototype.pow=function(h){var k=this,m=new f(1),n=m,p=0>h;(h!==~~h||-1E6>h||1E6>=1;if(!h)break;k=k.lr(k)}return p?m.jm(n):n}; f.prototype.round=function(h,k){var m=this;null==h?h=0:(h!==~~h||0>h||1E6k&&c(NaN);k=Math.sqrt(this.toString());0==k||k==1/0?(k=h.join(""),k.length+m&1||(k+="0"),h=new f(Math.sqrt(k).toString()),h.e=((m+1)/2|0)-(0>m||m&1)):h=new f(k.toString());k=h.e+(f.rr+=4);do m=h,h=n.lr(m.tI(this.jm(m)));while(m.c.slice(0,k).join("")!==h.c.slice(0, k).join(""));l(h,f.rr-=4,f.eu);return h};f.prototype.lr=function(h){var k=this.c,m=(h=new f(h)).c,n=k.length,p=m.length,q=this.e,r=h.e;h.Bd=this.Bd==h.Bd?1:-1;if(!k[0]||!m[0])return new f(0*h.Bd);h.e=q+r;if(nq;)p=t[r]+m[q]*k[r-q-1]+p,t[r--]=p%10,p=p/10|0;t[r]=(t[r]+p)%10}p&&++h.e;t[0]||t.shift();for(q=t.length;!t[--q];t.pop());h.c=t;return h};f.prototype.toString=function(){var h=this.e,k=this.c.join(""), m=k.length;if(h<=a||h>=b)k=k.charAt(0)+(1h?"e":"e+")+h;else if(0>h){for(;++h;k="0"+k);k="0."+k}else if(0m)for(h-=m;h--;k+="0");else hthis.Bd&&this.c[0]?"-"+k:k};f.prototype.toExponential=function(h){null==h?h=this.c.length-1:(h!==~~h||0>h||1E6=h&&(n=v(this,this.e+h),0>this.Bd&&this.c[0]&&0>n.indexOf("-")&&(n="-"+n));a=k;b=m;n||c("!toFix!");return n};f.prototype.toPrecision=function(h){if(null==h)return this.toString();(h!==~~h||1>h||1E6e.get(q)?(e.set(k,2147483647),k=q):e.set(q,2147483647),m++;else{if(0==(m&1))e.set(k, 2147483647);else if(a)return null!=b&&(b[0]=!0),null;h.L(p);k=q;m=1}if(0==(m&1))e.set(k,2147483647);else if(a)return null!=b&&(b[0]=!0),null;if(!a)for(e.Vd(0,e.size,function(t,u){return t-u}),q=0,r=e.size;qb-a)d.nr(a,b,c);else{var e=!0;try{for(var f=Infinity,h= -Infinity,k=a;kh&&(h=m)}if(this.reset(b-a,f,h,b-a)){for(k=a;ke&&d.nr(a+e,a+b,c);100c||b==a)return!1;c=Math.min(l.hL,c);this.yf.Jb(c);this.yf.resize(c);this.yf.Wj(0,0,this.yf.size);this.EH=a;this.ys.resize(d);this.Es=(b-a)/(c-1);return!0};l.prototype.zF=function(c){return g.O.truncate((c-this.EH)/this.Es)};l.hL=65536;return l}();g.Xt=v})(D||={});(function(g){var v;(function(e){e[e.enum_line=1]="enum_line"; e[e.enum_arc=2]="enum_arc";e[e.enum_dummy=4]="enum_dummy";e[e.enum_concave_dip=8]="enum_concave_dip";e[e.enum_connection=3]="enum_connection"})(v||={});var l=function(){function e(){}e.Qu=function(f,h,k,m,n,p){var q=new e;q.Im=new g.h;q.Vm=new g.h;q.aw=new g.h;q.Im.L(f);q.Vm.L(h);q.aw.L(k);q.Co=m;q.qh=n;q.sh=p;return q};e.construct=function(f,h,k,m){var n=new e;n.Im=new g.h;n.Vm=new g.h;n.aw=new g.h;n.Im.L(f);n.Vm.L(h);n.aw.Rc();n.Co=4;n.qh=k;n.sh=m;return n};return e}(),c=function(){function e(f, h,k,m,n,p){this.Yv=null;this.ya=0;this.EA=f;this.bI=this.$H=0;this.Ka=h;this.Mj=k;this.vk=m;this.Dq=n;this.Ub=p}e.prototype.next=function(){for(var f=new g.Sa;;){if(this.ya==this.EA.I())return null;this.EA.ve(this.ya,f);this.ya++;if(!f.B())break}var h=!1;null==this.Yv&&(this.$H=f.Lg(),this.bI=f.ih(),this.Yv=d.buffer(f,this.Ka,this.Mj,this.vk,this.Dq,this.Ub),h=!0);if(this.yam)throw g.i.N();if(f.B())return new g.Da(f.description);var q=new g.l;f.xc(q);0=n&&(n=96);p.rb=Math.abs(p.Ka);p.Kv=0!=p.rb? 1/p.rb:0;isNaN(m)||0==m?m=1E-5*p.rb:m>.5*p.rb&&(m=.5*p.rb);12>n&&(n=12);f=Math.abs(h)*(1-Math.cos(Math.PI/n));f>m?m=f:(f=Math.PI/Math.acos(1-m/Math.abs(h)),fn&&(n=12,m=Math.abs(h)*(1-Math.cos(Math.PI/n)))));p.vk=m;p.Dq=n;p.tA=Math.min(p.ct,.25*m);return p.lE()};e.prototype.cv=function(){if(null==this.Id)this.Id=[];else if(0!==this.Id.length)return;var f=this.qE();f=g.O.truncate((f+3)/4);var h=.5*Math.PI/f;this.oA=h;for(var k=0;k<4*f;k++)this.Id.push(null);var m=Math.cos(h); h=Math.sin(h);var n=g.h.construct(0,1);for(k=0;k=this.Ka&&(f=new g.l,this.X.A(f),f.R()<=2*-this.Ka||f.ca()<=2*this.Ka))return new g.Da(this.X.description)}else return new g.Da(this.X.description); switch(this.X.getType()){case 33:return this.PN();case 550:return this.ON();case 1607:return this.RN();case 1736:return this.QN();case 197:return this.LN();default:throw g.i.Qa();}};e.prototype.RN=function(){if(this.EG(this.X)){var f=new g.Sa;this.X.ve(0,f);var h=new g.l;this.X.A(h);f.Cb(h.sf());return this.Gu(f)}this.X=this.WV(this.X);f=new a(this,this.oq);return g.Gh.local().V(f,this.Mj,this.Ub).next()};e.prototype.QN=function(){if(0==this.Ka)return this.X;var f=g.Yl.local();this.cv();this.X=f.V(this.X, null,!1,this.Ub);if(0>this.Ka){var h=this.X;h=this.py(h,0,h.da());return f.V(h,this.Mj,!1,this.Ub)}if(this.EG(this.X))return f=new g.Sa,this.X.ve(0,f),h=new g.l,this.X.A(h),f.Cb(h.sf()),this.Gu(f);f=new b(this);return g.Gh.local().V(f,this.Mj,this.Ub).next()};e.prototype.py=function(f,h,k){for(var m=new g.Da(f.description);hf.Ja(h))){var n=f.Ir(h),p=new g.l;f.Rj(h,p);if(0=this.Ka){if(0==this.Ka)f.ad(this.X,!1);else{var h=new g.Fh;this.X.bn(h);h.W(this.Ka,this.Ka);f.ad(h,!1)}return f}f.ad(this.X,!1);this.X=f;return this.jE(f,0)};e.prototype.jE=function(f,h){this.cv();var k=new g.Da(f.description),m=new g.h,n=new g.h,p=new g.h,q=new g.h,r=new g.h, t=new g.h,u=new g.h,w=new g.h,y=f.Ja(h),x=f.Ba(h),z=0;for(h=f.Ja(h);zf.Ja(h))return null;if(this.FG(f,h)&&0f?4:2*Math.PI/Math.acos(f)+.5;4>f?f=4:f>this.Dq&&(f=this.Dq);return g.O.truncate(f)};e.prototype.GD=function(f,h,k,m,n){this.cv();var p=new g.h;p.uc(k,h);p.scale(this.Kv);var q=new g.h;q.uc(m,h);q.scale(this.Kv);p=Math.atan2(p.y,p.x)/this.oA;0>p&&(p=this.Id.length+p);p=this.Id.length-p;q=Math.atan2(q.y,q.x)/this.oA;0>q&&(q=this.Id.length+q);q=this.Id.length-q;qp.I(q)){if(0>n)return 1;n=f;p=new g.Sa;n.ve(n.Ba(h),p);this.yu(k,p);return 1}var r=p.Na(p.Xa(p.Ob(q))),t=new g.Dd;t.gg(-r.x,-r.y);p.Oc(t);if(m&&(this.tQ(p, q,n),2>p.I(q))){if(0>n)return 1;n=f;p=new g.Sa;n.ve(n.Ba(h),p);this.yu(k,p);return 1}this.Zd.length=0;var u=p.Ob(q);h=p.Xa(u);var w=1==n?p.Ma(h):p.U(h);f=1==n?p.U(h):p.Ma(h);var y=!0;m=new g.h;q=new g.h;var x=new g.h,z=new g.h,A=new g.h,B=new g.h,C=new g.h,E=new g.h,F=new g.h,H=new g.h,G=this.rb;u=p.Ja(u);for(var J=0;Jw||0>y&&0==w? this.Zd.push(l.Qu(z,A,m,2,this.Zd.length+1,this.Zd.length-1)):z.qb(A)||(this.Zd.push(l.construct(z,m,this.Zd.length+1,this.Zd.length-1,"dummy")),this.Zd.push(l.construct(m,A,this.Zd.length+1,this.Zd.length-1,"dummy"))),B.add(q,F),this.Zd.push(l.Qu(A,B,m,1,this.Zd.length+1,this.Zd.length-1)),z.L(B),H.L(F),x.L(m),m.L(q),E.L(C),w=h,h=f,y=!1,f=1==n?p.U(h):p.Ma(h);this.Zd[this.Zd.length-1].qh=0;this.Zd[0].sh=this.Zd.length-1;this.YV(k);t.gg(r.x,r.y);k.YD(t,k.da()-1);return 1};e.prototype.YV=function(f){for(var h= this.zO(),k=!0,m=h+1,n=h;m!=h;n=m){var p=this.Zd[n];m=-1!=p.qh?p.qh:(n+1)%this.Zd.length;0!=p.Co&&(k&&f.Lt(p.Im),2==p.Co?this.GD(f,p.aw,p.Im,p.Vm,!0):f.Ci(p.Vm),k=!1)}};e.prototype.zO=function(){null==this.Ks&&(this.Ks=[null,null,null,null,null,null,null,null,null]);for(var f=0,h=0,k=this.Zd.length;h=this.rb)return!0}return!1};e.prototype.tQ=function(f,h,k){for(var m=0;1>m;m++){var n=!1,p=f.Ob(h),q=f.Ja(p); if(0==q)break;var r=q;if(3>q)break;!f.dc(p)&&(r=q-1);p=f.Xa(p);q=0M||0>Q&&0==M||!this.Fv(z,y,x)||(C.L(x),U=!1,++I,n=!0);if(U){if(0.5*this.vk?(B.add(z,y),B.scale(.5),H.normalize(),H.ar(),G.L(H),G.scale(J-I),B.add(G),f.mf(q,B)):f.pd(q,!0);I=0}z.L(y);u=p}y.L(x);q=p;p=t;t=0h)return this.oq=!1,f;this.oq=!0;return g.Fg.Mk(f,this.ct,!1,!0,this.Ub)};e.prototype.yu=function(f,h){h=h.D();if(null!=this.Id&&0!==this.Id.length){var k=new g.h;k.L(this.Id[0]);k.Ct(this.rb,h);f.Lt(k);for(var m=1,n=this.Id.length;m=b?1:-1;case 1:if(c.G=b?1:-1;case 2:if(c.v>=b&&c.C>b)break;else return c.C<=b?1:-1;case 3:if(!(c.G>=b&&c.H>b))return c.H<=b?1:-1}return 0};l.prototype.Ay=function(c,a){return 1736==c.getType()?this.Cy(c,a):this.Dy(c)};l.prototype.Cy=function(c,a){if(0==this.Ca.R()||0==this.Ca.ca())return c.Ia();var b=new g.l;c.xc(b);this.X=this.g.Ib(c);var d=new g.l,e=new g.l,f=new g.h,h=new g.h,k=[0,0,0,0,0,0,0,0,0],m=[0,0,0,0,0,0,0,0,0];new g.ig;var n=new g.yb, p=new g.ia(0);p.Jb(Math.min(100,c.I()));for(var q=!1,r=0;!q&&4>r;r++){var t=!1,u=0!=(r&1),w=0;switch(r){case 0:w=this.Ca.v;t=b.v<=w&&b.C>=w;break;case 1:w=this.Ca.G;t=b.G<=w&&b.H>=w;break;case 2:w=this.Ca.C;t=b.v<=w&&b.C>=w;break;case 3:w=this.Ca.H,t=b.G<=w&&b.H>=w}if(t)for(q=!0,t=this.g.Ob(this.X);-1!=t;){var y=-1,x=-1,z=this.g.Xa(t),A=z;do{var B=this.g.bc(A);null==B&&(B=n,this.g.D(A,f),B.Dc(f),this.g.D(this.g.U(A),h),B.Qc(h));B.A(d);var C=this.Lh(d,r,w),E=0,F=-1;if(-1==C){B=B.cq(u,w,k,m);E=0this.g.Ja(t)?this.g.Zq(t):this.g.Rb(t)}}if(q)return c.Ia();this.FB();0m;m++){var n=!1,p= 0!=(m&1),q=0;switch(m){case 0:q=this.Ca.v;n=k.v<=q&&k.C>=q;break;case 1:q=this.Ca.G;n=k.G<=q&&k.H>=q;break;case 2:q=this.Ca.C;n=k.v<=q&&k.C>=q;break;case 3:q=this.Ca.H,n=k.G<=q&&k.H>=q}if(n){n=h;h=c.Ia();n=n.Ga();n.Zi();for(var r,t=new g.h;n.$a();)for(var u,w=!0;n.Ha();){var y=n.ha();y.A(a);var x=this.Lh(a,m,q);if(-1==x){if(x=y.cq(p,q,d,e),0=m))){for(var n=1;ne.size)){var p=this;e.Vd(0,e.size,function(C,E){return p.Mh(C,E)});b=new g.h;f=new g.h;h=new g.h;f.Rc();var q=-1;k=new g.ia(0);m=new g.ia(0);n=this.g.Gd();for(var r=this.g.Gd(),t=0,u=e.size;tthis.Mh(q,x)&&(this.g.D(x,b),c?b.y==a:b.x==a)&&(k.add(q),z=!0,this.g.Ra(q,r,1));0>this.Mh(q,w)&&(this.g.D(w,b),c?b.y==a:b.x==a)&&(z||k.add(q),this.g.Ra(q,n,1))}y=0;for(z=k.size;ythis.Mh(u,y)&&(this.g.D(y,k),c?k.y==a:k.x==a)&&(w=y);y=-1;var x=this.g.Ma(u);0>this.Mh(u,x)&&(this.g.D(x,k),c?k.y==a:k.x==a)&&(y=x);if(-1!=w&&-1!=y)this.Kh(u,d,e),this.g.pd(u,!1),this.Kh(w,d,e),this.g.pd(w,!1),p=!0;else if(-1!=w||-1!=y){for(x=t+1;xthis.Mh(z,A)&&(this.g.D(A,k),c?k.y==a:k.x==a)&&(B=A);A=this.g.Ma(z);var C=-1;0>this.Mh(z,A)&&(this.g.D(A,k),c?k.y==a:k.x==a)&&(C=A);if(-1!=B&&-1!=C){this.Kh(z,d, e);this.g.pd(z,!1);this.Kh(B,d,e);this.g.pd(B,!1);p=!0;break}if(-1!=w&&-1!=C){this.zt(d,u,w,z,C,e);p=!0;break}else if(-1!=y&&-1!=B){this.zt(d,z,B,u,y,e);p=!0;break}}}if(p)break}}}if(!p)break}q=f;m.L(b)}}this.g.Td(e)};l.prototype.Kh=function(c,a,b){b=this.g.Pa(c,b);a.set(b,-1);b=this.g.Pa(c,this.ji);this.dd.set(b,-1);a=this.g.bd(c);-1!=a&&this.g.Xa(a)==c&&(this.g.Jf(a,-1),this.g.Wg(a,-1))};l.prototype.zt=function(c,a,b,d,e,f){this.g.Bc(a,d);this.g.Cc(d,a);this.g.Cc(b,e);this.g.Bc(e,b);this.Kh(d,c, f);this.g.mi(d,!1);this.Kh(e,c,f);this.g.mi(e,!0)};l.prototype.Ty=function(){for(var c=0,a=this.dd.size;c=k?(b=this.g.Pa(h,this.ji),this.dd.set(b,-1),h=this.g.pd(h,!1),2==k&&(b=this.g.Pa(h,this.ji),this.dd.set(b,-1),this.g.pd(h,!1)),k=f,f=this.g.Rb(f), this.g.Jf(k,-1),this.g.$q(k)):(this.g.cp(f,!1),this.g.Wg(f,this.g.Ma(h)),this.g.Vj(f,k),e+=k,d++,f=this.g.Rb(f))}}c=0;for(a=this.dd.size;c=k?(b=this.g.Pa(h,this.ji),this.dd.set(b,-1),h=this.g.pd(h,!1),2==k&&(b=this.g.Pa(h,this.ji),0<=b&&this.dd.set(b,-1),this.g.pd(h,!1)),k=f,this.g.Jf(k,-1),this.g.$q(k)):(this.g.kn(f,!0),this.g.Vj(f,k),this.g.Jf(f,h),this.g.Wg(f, this.g.Ma(h)),this.g.cp(f,!1),e+=k,d++)}this.g.Rl(this.X,d);this.g.Tj(this.X,e);c=0;for(a=this.g.ld;-1!=a;a=this.g.ue(a))c+=this.g.I(a);this.g.bC(c)};l.By=function(c,a,b){return(new l(a)).Ay(c,b)};l.clip=function(c,a,b,d){if(c.B())return c;if(a.B())return c.Ia();b=c.getType();if(33==b)return d=c.D(),a.contains(d)?c:c.Ia();if(197==b)return d=new g.l,c.A(d),d.Ea(a)?(a=new g.Fh,c.copyTo(a),a.Xo(d),a):c.Ia();var e=new g.l;c.xc(e);if(a.contains(e))return c;if(!a.isIntersecting(e))return c.Ia();e=c.Bb; if(null!=e&&(e=e.Fk,null!=e)){e=e.Ro(a);if(1==e){if(1736!=b)throw g.i.Qa();c=new g.Da(c.description);c.tp(a);return c}if(0==e)return c.Ia()}switch(b){case 550:b=null;e=c.I();for(var f=c.ub(0),h=0,k=0;k=b?1:-1;case 1:if(c.G=b?1:-1;case 2:if(c.v>=b&&c.C>b)break;else return c.C<=b?1:-1;case 3:if(!(c.G>=b&&c.H>b))return c.H<=b?1:-1}return 0};l.prototype.Ay=function(c,a){return 1736==c.getType()?this.Cy(c,a):this.Dy(c)};l.prototype.Cy=function(c,a){if(0==this.Ca.R()||0== this.Ca.ca())return c.Ia();var b=new g.l;c.xc(b);this.X=this.g.Ib(c);var d=new g.l,e=new g.l,f=new g.h,h=new g.h,k=[0,0,0,0,0,0,0,0,0],m=[0,0,0,0,0,0,0,0,0],n=new g.yb,p=new g.ia(0);p.Jb(256);for(var q=!1,r=0;!q&&4>r;r++){var t=!1,u=0!=(r&1),w=0;switch(r){case 0:w=this.Ca.v;t=b.v<=w&&b.C>=w;break;case 1:w=this.Ca.G;t=b.G<=w&&b.H>=w;break;case 2:w=this.Ca.C;t=b.v<=w&&b.C>=w;break;case 3:w=this.Ca.H,t=b.G<=w&&b.H>=w}if(t)for(q=!0,t=this.g.Ob(this.X);-1!=t;){var y=!0,x=-1,z=-1,A=this.g.Xa(t),B=A;do{var C= this.g.bc(B);null==C&&(C=n,this.g.D(B,f),C.Dc(f),this.g.D(this.g.U(B),h),C.Qc(h));C.A(d);var E=this.Lh(d,r,w),F=0,H=-1;if(-1==E){C=C.cq(u,w,k,m);F=0r;r++){var t=!1,u=0!=(r&1),w=0;switch(r){case 0:w=this.Ca.v;t=k.v<=w&&k.C>=w;break;case 1:w=this.Ca.G;t=k.G<=w&&k.H>=w;break;case 2:w=this.Ca.C;t=k.v<=w&&k.C>=w;break;case 3:w=this.Ca.H,t=k.G<=w&&k.H>=w}if(t)for(t=h,h=c.Ia(),t= t.Ga(),t.Zi();t.$a();)for(var y,x=!0;t.Ha();){var z=t.ha();z.A(a);var A=this.Lh(a,r,w);if(-1==A){if(A=z.cq(u,w,d,e),0d.x&&(d.x+=c)}else q=a.y-this.Ca.G,e.y=g.lc.sign(b.y-a.y),d.y=c*g.lc.Cn(Math.floor(Math.abs(q/c)),q)+this.Ca.G,0>d.y&&(d.y+=c);q=0!=p?b.y-a.y:b.x-a.x;var r=Math.abs(q);if(65536=u||(f[r]=u,r++)}0!=r&&this.g.Ul(m,f,r)}}m=n}while(m!=k)}};l.prototype.Vl=function(c,a){for(var b=-1,d=new g.h,e=null,f=this.g.Ob(this.X);-1!=f;f=this.g.Rb(f))for(var h=this.g.Xa(f),k=0,m=this.g.Ja(f);ke.size)){var p=this;e.Vd(0,e.size,function(C,E){return p.Mh(C,E)});b=new g.h;f=new g.h;h=new g.h;f.Rc();var q=-1;k=new g.ia(0);m=new g.ia(0);n=null;for(var r=this.g.Gd(),t=this.g.Gd(),u=0,w=e.size;uf.compare(b)&&(c?b.y==a:b.x==a)&&(k.add(q),A=!0,this.g.Ra(q,t,1));this.g.D(y,b);0>f.compare(b)&& (c?b.y==a:b.x==a)&&(A||k.add(q),this.g.Ra(q,r,1))}x=0;for(A=k.size;xm.compare(k)&&(c?k.y==a:k.x==a)&&(w=y);y=-1;var x=this.g.Ma(u);this.g.D(x, k);0>m.compare(k)&&(c?k.y==a:k.x==a)&&(y=x);if(-1!=w&&-1!=y)this.Kh(u,d,e),this.g.pd(u,!1),this.Kh(w,d,e),this.g.pd(w,!1),p=!0;else if(-1!=w||-1!=y){for(x=t+1;xm.compare(k)&&(c?k.y==a:k.x==a)&&(B=A);A=this.g.Ma(z);var C=-1;this.g.D(A,k);0>m.compare(k)&&(c?k.y==a:k.x==a)&&(C=A);if(-1!=B&&-1!=C){this.Kh(z,d,e);this.g.pd(z,!1);this.Kh(B,d,e);this.g.pd(B,!1);p=!0;break}if(-1!=w&&-1!=C){this.zt(d,u,w,z,C,e);p=!0;break}else if(-1!= y&&-1!=B){this.zt(d,z,B,u,y,e);p=!0;break}}}if(p)break}}}if(!p)break}q=f;m.L(b)}this.g.Td(e)}};l.prototype.Kh=function(c,a,b){b=this.g.Pa(c,b);a.set(b,-1);b=this.g.Pa(c,this.ji);this.dd.set(b,-1);a=this.g.bd(c);-1!=a&&this.g.Xa(a)==c&&(this.g.Jf(a,-1),this.g.Wg(a,-1))};l.prototype.zt=function(c,a,b,d,e,f){this.g.Bc(a,d);this.g.Cc(d,a);this.g.Cc(b,e);this.g.Bc(e,b);this.Kh(d,c,f);this.g.mi(d,!1);this.Kh(e,c,f);this.g.mi(e,!0)};l.prototype.Ty=function(){for(var c=0,a=this.dd.size;c=k?(b=this.g.Pa(h,this.ji),this.dd.set(b, -1),h=this.g.pd(h,!1),2==k&&(b=this.g.Pa(h,this.ji),0<=b&&this.dd.set(b,-1),this.g.pd(h,!1)),k=f,this.g.Jf(k,-1),this.g.$q(k)):(this.g.kn(f,!0),this.g.Vj(f,k),this.g.Jf(f,h),this.g.Wg(f,this.g.Ma(h)),this.g.cp(f,!1),e+=k,d++)}this.g.Rl(this.X,d);this.g.Tj(this.X,e);c=0;for(a=this.g.ld;-1!=a;a=this.g.ue(a))c+=this.g.I(a);this.g.bC(c)};l.By=function(c,a,b,d){return(new l(a,d)).Ay(c,b)};l.clip=function(c,a,b,d,e){return l.Nu(c,a,null,b,d,e)};l.Nu=function(c,a,b,d,e,f){var h=c.getType();if(33==h)return e= c.D(),a.contains(e)?c:c.Ia();if(197==h)return e=new g.l,c.A(e),e.Ea(a)?(a=new g.Fh,c.copyTo(a),a.Xo(e),a):c.Ia();if(c.B())return c;if(a.B())return c.Ia();var k=new g.l;c.xc(k);if(a.contains(k))return c;if(!a.isIntersecting(k))return c.Ia();(null!=b||isNaN(d))&&g.ta.ty(b,a,!1);if(!g.aa.xj(h))throw g.i.N();b=c.Bb;if(null!=b&&(b=b.Fk,null!=b)){b=b.Ro(a);if(1==b){if(1736!=h)throw g.i.fa("internal error");c=new g.Da(c.description);c.tp(a);return c}if(0==b)return c.Ia()}switch(h){case 550:f=null;h=c.I(); b=c.ub(0);d=0;e=new g.h;for(k=0;k=k;k+=1)for(var m=0;1>=m;m+=1){var n=a.jG(f+k,h+m),p=this.xl.rR(n);-1!=p&&(this.pq[e]=p,this.xs[e]=n,e++)}for(f=e-1;1<=f;f--)for(p= this.pq[f],h=f-1;0<=h;h--)if(p==this.pq[h]){this.xs[h]=-1;e--;f!=e&&(this.xs[f]=this.xs[e],this.pq[f]=this.pq[e]);break}for(h=0;hf.Db())throw g.i.N();if(0==h||f.B())return f;p=new e(p);p.ko=f;p.Ka=h;p.qa=n;p.Ki=k;p.CA=m;return p.Rx()};e.prototype.eM=function(){var f=this.ko,h=f.ac(),k=f.wc(),m=new g.h;m.uc(k,h);m.normalize();m.Hv();m.scale(this.Ka);h.add(m);k.add(m);m=f.Ia();f.Dc(h);f.Qc(k);return m};e.prototype.dM=function(){var f=this.ko;if(0p&&(0 this.Ka?-v:v;-1t&&(u=2*Math.acos(t),.017453292519943295>u&&(u=.017453292519943295),q=g.O.truncate(v/u+1.5),1t&&(u=2*Math.acos(t),.017453292519943295>u&&(u=.017453292519943295),q=g.O.truncate(Math.abs(r)/u+1.5),1r?(t=.5*(z-x),t=this.Ka/Math.abs(Math.sin(t)),x=a.Pd(p,t,.5*(x+z)),z=g.h.construct(x.x,x.y),x=g.h.construct(p.x,p.y),p=new g.h,p.uc(z,x),z=new g.h,z.HW(r/p.length(),p,x),x=(q-r)*Math.abs(this.Ka)/Math.sqrt(q*q-this.Ka*this.Ka),0x&&(z-=l),q=x- zt?x+.25*v:x+.75*v,x=a.Pd(p,t,u),this.fc(x,f),u=0>t?z-.25*v:z-.75*v,x=a.Pd(p,t,u),this.fc(x)):(t=.5*(z-x),t=this.Ka/Math.abs(Math.sin(t)),zh))for(var k=0;k=m+1;h--)k=a.al(f.Na(h)),k.type|=1024,this.wg.push(k);if(this.mE())if(2<=this.Yb.length){f=-1;(n=0!=(this.Yb[this.gf-1].type&1024))||(f=0);for(h=1;h=Math.min(k.x,m.x)&&Math.max(k.x,m.x)>=Math.min(f.x,h.x)&&Math.max(f.y,h.y)>=Math.min(k.y, m.y)&&Math.max(k.y,m.y)>=Math.min(f.y,h.y)};e.prototype.xQ=function(f,h,k,m,n){n.bE=!1;var p=(h.y-f.y)*(m.x-k.x)-(h.x-f.x)*(m.y-k.y),q=(k.y-f.y)*(h.x-f.x)-(k.x-f.x)*(h.y-f.y);p=0==p?2:q/p;if(0<=p&&1>=p){var r=p;p=(m.y-k.y)*(h.x-f.x)-(m.x-k.x)*(h.y-f.y);q=(f.y-k.y)*(m.x-k.x)-(f.x-k.x)*(m.y-k.y);p=0==p?2:q/p;if(0<=p&&1>=p)return n.an=a.TO(f.x+p*(h.x-f.x),f.y+p*(h.y-f.y)),n.an.Uh=k.Uh+r*(m.Uh-k.Uh),0!=r&&1!=r||0!=p&&1!=p||(n.bE=!0),n.VY=p,n.WY=r,(0==r||1==r)&&0p||(0==p||1==p)&&0r?!1:!0}return!1}; e.prototype.QO=function(f){for(;this.Yb[f].shh-f)return!0;e=new g.h;var k=new g.h,m=new g.h;d.tc(f,e);d.tc(f+2,k);d.tc(f+4,m);var n= b.Wu(k,m,e);if(n.ps()||!b.um(n.value()))return!1;var p=g.h.construct(k.x,k.y),q=new g.h;for(f+=6;fh;h++){d.mB(h,f);var k=this.Cr(f);if(-1!=k){d.Hf(h,e);var m=this.g.fc(this.Ss,e);this.Fa.Sj(k,m)}}};b.prototype.oN=function(d){var e=new g.Sa,f=d.ac();f=this.Cr(f);if(-1!=f){d.To(e);var h=this.g.fc(this.Ss,e);this.Fa.Sj(f,h)}f=d.wc();f=this.Cr(f);-1!=f&&(d.Po(e),d=this.g.fc(this.Ss,e),this.Fa.Sj(f,d))};b.prototype.nN=function(d){var e=d.D();e=this.Cr(e);-1!=e&&(d=this.g.fc(this.Ss,d),this.Fa.Sj(e,d))};b.prototype.Cr=function(d){var e=-1;if(0==this.Fa.size(-1))return e=this.Fa.addElement(-4, -1);if(1==this.Fa.size(-1)){var f=this.g.Na(this.Fa.ja(this.Fa.rc(-1)));d.Rz(f)||(e=this.Fa.xn(-5));return e}return e=this.pC(d)};b.prototype.pC=function(d){var e=-1,f=this.Fa.rc(-1),h=this.Fa.Fc(-1),k=this.Fa.ja(f),m=this.Fa.ja(h),n=new g.h,p=new g.h;this.Xh.D(k,n);this.Xh.D(m,p);k=g.h.Uq(p,d,n);if(b.um(k))e=this.Fa.xn(-1),n=this.nC(d,h,f),n!=f&&this.oC(d,f,this.Fa.we(n));else if(b.CG(k)){p=this.Fa.sv(-1);var q=this.Fa.rc(-1),r=this.Fa.Fc(-1);k=new g.h;for(m=new g.h;q!=this.Fa.we(r);){var t=this.Fa.ja(p); this.Xh.D(t,k);t=g.h.Uq(k,d,n);b.CG(t)?(r=p,p=this.Fa.ll(p)):(q=p,p=this.Fa.Xp(p))}p=r;n=q;t=this.Fa.ja(p);q=this.Fa.ja(n);this.Xh.D(t,k);this.Xh.D(q,m);if(n==f||(k=g.h.Uq(m,d,k),b.um(k)))e=this.Fa.zu(n,p,-2,!1),this.oC(d,p,h),this.nC(d,n,f)}else null==this.sb&&(this.sb=new g.yb),this.sb.Dc(p),this.sb.Qc(n),n=this.sb.fe(d,!0),0>n?(n=this.Fa.we(h),this.Fa.vd(h,-1),e=this.Fa.xn(-3),this.nC(d,n,f)):1d};b.CG=function(d){return 0e)throw g.i.fa("Internal Error: max number of iterations exceeded");var k=this.nM(a);d=d||k;this.tH&&(k=0!=this.g.Gp(a,!0,!1),d=d||k); k=!1;if(0==f||h||g.$t.kI(!0,this.g,c,null,this.nd))k=this.sM(b),d=d||k;if(!k)break;g.mp.zp(this.nd)}return d};return l}();g.Tk=v})(D||={});(function(g){var v=function(){function c(a){this.$d=this.Mc=null;this.Ys=0;this.Ub=a;this.cA=!0}c.prototype.uv=function(a,b){var d=this.g.bc(a);if(null==d){if(!this.g.ed(a,b))return null;d=b}return d};c.prototype.Xq=function(){var a;void 0===a&&(a=!1);this.Ys++;if(a||0==(this.Ys&4095))this.Ys=0,g.mp.zp(this.Ub)};c.prototype.nP=function(){var a=this.g.Yq(!1),b= !1,d=new g.yb,e=new g.yb,f=new g.l;f.Oa();var h=new g.l;h.Oa();for(var k=new g.Sa,m=new g.TC,n=a.next();-1!=n;n=a.next()){g.mp.zp(this.Ub);var p=null,q=!1;if(!g.aa.Rn(this.g.ic(a.ck))){p=this.uv(n,d);if(null==p)continue;p.A(f);f.W(this.qa,this.qa);if(p.Bi(this.qa))if(p.Bi(0))q=!0,p=null;else continue}var r=this.g.Yq(a),t=r.next();for(-1!=t&&(t=r.next());-1!=t;t=r.next()){var u=null,w=!1;if(!g.aa.Rn(this.g.ic(r.ck))){u=this.uv(t,e);if(null==u)continue;u.A(h);if(u.Bi(this.qa))if(u.Bi(0))w=!0,u=null; else continue}var y=0,x=0;if(null!=p&&null!=u)f.HG(h)&&(m.Oo(p),m.Oo(u),m.Ea(this.qa,!1),y=m.ol(0),x=m.ol(1),0(ux?1:tz?1:0)&&(h.add(r),h.add(w))}-1!=y&&(x=m.T(y,0),z=n[2*x],x=n[2*x+1],0>(ux?1:tz?1:0)&&(h.add(y),h.add(y)));z=this.g.Pa(r,d);-1!=z&&(f.add(z),this.g.Ra(r,d,-1));z=this.g.Pa(r,e);-1!=z&&(f.add(z),this.g.Ra(r,e,-1));r=b.get(k++);-1!==r&&(u=m.T(r,0),t=n[2*u],u=n[2*u+1])}while(-1!=r&&t===p&&u===q);t=1==f.size&&2==h.size;z=u=-1;w=0;for(y=f.size;wa.fd)a=b.nP();else return b.oP();return a};c.V=function(a,b,d){return c.fQ(a,a.IF(),b,d)};c.kI=function(a,b,d,e,f){if(!c.yE(b))return!1;var h=new c(f);h.g=b;h.qa=d;h.cA=a;if(h.lI())return null!=e&&e.Wt(h.Ni),!0;var k=new g.Dd;k.$B();b.Oc(k);h=new c(f); h.g=b;h.qa=d;h.cA=a;a=h.lI();k.$B();b.Oc(k);return a?(null!=e&&e.Wt(h.Ni),!0):!1};c.Ml=function(a,b){a=a.I();return 16>a?!1:2*a+Math.log(a)*Math.LOG10E/Math.log(2)*b<1*a*b};c.lP=function(a,b,d,e){var f=b.getType();if(g.aa.Hc(f))return(new c(e)).mP(a,b,d);throw g.i.fa("crack_A_with_B");};c.prototype.mP=function(a,b,d){var e=new g.l;a.xc(e);var f=new g.l;b.xc(f);f.W(d,d);if(!f.isIntersecting(e))return a;var h=a.Bb,k=null;null!=h&&(k=h.Fb);c.Ml(a,a.I())&&(k=g.ta.jj(a,f));var m=null!=k?k.getIterator(): null,n=b.Ga();b=a.Ga();var p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(f=[];n.$a();)for(;n.Ha();){var q=n.ha();if(null!=k)for(m.Uo(q,d),h=m.next();-1!=h;h=m.next()){if(this.Xq(),b.Vb(k.ja(h),-1),b.Ha()){h=b.ha();var r=h.Ea(q,null,p,null,d);for(h=0;hb.t?1:a.tb.index?1:-1};return c}()})(D||={});(function(g){(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"})(g.KK||(g.KK={}));var v=function(){return function(a,b,d,e,f,h,k,m,n,p,q){this.X=a;this.bt=b;this.Ns=d;this.tg=e;this.Lm=p;this.Al=q}}();g.uY=v;var l=function(){function a(b,d){this.JH=b;this.Hi=d}a.prototype.qM=function(b,d){var e=new g.h;this.Hi.D(b,e);var f=new g.h;this.Hi.D(d,f);e=e.compare(f);if(0!=e)return e;b=this.Hi.Pa(b,this.JH);d=this.Hi.Pa(d,this.JH);return bt&&(f=new c(h,f,q[0],NaN,t,m,k,r[0],NaN),e.push(f),f=d.Pa(h,b),0>f&&d.Ra(h,b,e.length-1));return!0};a.wM=function(b,d,e,f,h,k,m){var n=new g.yb,p=new g.yb,q=[0,0],r=[0,0],t=d.bc(h);null==t&&(d.ed(h,n),t=n);n=d.bc(m);null==n&&(d.ed(m,p),n=p);t=t.Ea(n,null,q,r,0);return 2>t?(f=new c(h,f,q[0],NaN,t,m,k,r[0],NaN),e.push(f),f=d.Pa(h,b),0>f&&d.Ra(h,b,e.length-1),!0):!1};a.xM=function(b,d,e,f,h,k,m,n){var p=new g.yb,q=new g.yb, r=[0,0],t=[0,0],u=d.bc(h);null==u&&(d.ed(h,p),u=p);p=d.bc(m);null==p&&(d.ed(m,q),p=q);u=u.Ea(p,null,r,t,0);if(2==u)return f=new c(h,f,r[0],r[1],u,m,k,t[0],t[1]),e.push(f),f=d.Pa(h,b),0>f&&d.Ra(h,b,e.length-1),!0;q=!1;h==n&&(f=new c(h,f,r[0],NaN,u,m,k,t[0],NaN),e.push(f),f=d.Pa(h,b),0>f&&d.Ra(h,b,e.length-1),q=!0);return q};a.yM=function(b,d,e,f,h,k,m,n){var p=new g.yb,q=new g.yb,r=[0,0],t=[0,0],u=d.bc(h);null==u&&(d.ed(h,p),u=p);p=d.bc(m);null==p&&(d.ed(m,q),p=q);u=u.Ea(p,null,r,t,0);if(2==u)return f= new c(h,f,r[0],r[1],u,m,k,t[0],t[1]),e.push(f),f=d.Pa(h,b),0>f&&d.Ra(h,b,e.length-1),!0;q=!1;h==n&&(f=new c(h,f,r[0],NaN,u,m,k,t[0],NaN),e.push(f),f=d.Pa(h,b),0>f&&d.Ra(h,b,e.length-1),q=!0);return q};a.cM=function(b,d,e,f){var h=[];h[0]=new g.h;h[1]=new g.h;h[2]=new g.h;h[3]=new g.h;var k=new g.h,m=new g.h,n=new g.h,p=new g.h,q=null;null!=f&&(q=new g.ig,q.Or());var r=0,t=null,u=new g.yb;new g.yb;for(var w=e.Ob(e.ld);-1!=w;w=e.Rb(w)){for(var y=4,x=-1,z=-1,A=-1,B=-1,C=NaN,E=!0,F=!1,H=!0,G=!0,J=!0, I=0,L=w,M=0,Q=e.Xa(w),U=e.Ja(w),ba=0;ba=d.length-2||d[r+2].Ns!=x)y=0}else{if(O!=P||V&&0==P)null!=f?(T=new v(t,3,x,S,O,y,L,z,M,Z,X,ea,A,B,C),f.push(T)):null.add(I);y=1}else if(0!=y){if(O!=P||V&&0==P)null!=f?(T=new v(t,0,x,S,O,y,L,z,M,Z,X,ea,A,B,C),f.push(T)):null.add(I);if(!ca)y=0;else if(r>=d.length-2||d[r+2].Ns!=x)y=1}else{if(O!=P||V&&0==P)null!=f?(T=new v(t,3,x,S,O,y,L,z,M,Z,X,ea,A,B,C),f.push(T)):null.add(I); y=0}if(O!=P||V&&0==P)P=O,L=x,z=S,M=O,A=Z,B=X,C=ea,E=H=!1,G=J=!0}}}r++}1!=P&&(J&&(null!=f?t=new g.Ta:I=0),null!=f?(Y.ah(P,1,q),t.oc(q.get(),G)):I++,G=J=!1,H=!0)}H&&(O=1,S=e.rj(w),S=e.Ma(S),X=Z=-1,ea=NaN,E?null!=f?(T=new v(t,4,x,S,O,y,L,z,M,Z,X,ea,A,B,C),f.push(T)):null.add(I):(E=1==y?0:0==y?1:3,null!=f?(T=new v(t,E,x,S,O,y,L,z,M,Z,X,ea,A,B,C),f.push(T)):null.add(I)))}};a.CM=function(b,d,e,f,h,k){var m=e[f].VH;if(1==m)return a.AM(b,d,e,f,h,k);if(0==m)return a.BM(b,d,e,f,h,k);throw g.i.Qa();};a.AM=function(b, d,e,f,h,k){var m=new g.yb,n=e[f].tg,p=e[f].Lm,q=e[f].Al,r=-1,t=-1,u=-1,w=-1;if(!b&&0.01*a&&(c=c.xb/a,d*=1+(1+c)*c);this.pb=b;this.xb=d+2.220446049250313E-16*Math.abs(b)};l.prototype.sqrt=function(){if(0<=this.pb){var c=Math.sqrt(this.pb),a=this.pb>10*this.xb? .5*this.xb/c:this.pb>this.xb?c-Math.sqrt(this.pb-this.xb):Math.max(c,Math.sqrt(this.pb+this.xb)-c);a+=2.220446049250313E-16*Math.abs(c)}else this.pb<-1*this.xb?a=c=NaN:(c=0,a=Math.sqrt(this.xb));this.pb=c;this.xb=a};l.prototype.sin=function(c){var a=Math.sin(c.pb),b=Math.cos(c.pb);this.pb=a;a=Math.abs(a);this.xb=(Math.abs(b)+.5*a*c.xb)*c.xb+2.220446049250313E-16*a};l.prototype.cos=function(c){var a=Math.sin(c.pb),b=Math.cos(c.pb);this.pb=b;b=Math.abs(b);this.xb=(Math.abs(a)+.5*b*c.xb)*c.xb+2.220446049250313E-16* b};l.prototype.qg=function(){return Math.abs(this.pb)<=this.xb};l.prototype.ps=function(){return this.qg()&&0!=this.xb};return l}();g.Wb=v})(D||={});var aa=new D.h,ia=new D.h,ka=new D.h,la=new D.h,oa=new D.h;(function(g){(function(c){c[c.closedPath=1]="closedPath";c[c.exteriorPath=2]="exteriorPath";c[c.ringAreaValid=4]="ringAreaValid"})(l||={});var v=function(){function c(a,b,d,e,f,h,k){void 0!==b?(this.ib=a,this.ck=b,this.bl=d,this.ii=e,this.ya=h,this.hA=k,this.ew=f):(this.ib=a.ib,this.ck=a.ck,this.bl= a.bl,this.ii=a.ii,this.ya=a.ya,this.hA=a.hA,this.ew=a.ew);this.bH=!0}c.prototype.next=function(){return this.bH?(this.bH=!1,this.ii):-1!=this.ii?(this.ii=this.ib.U(this.ii),this.ya++,-1!=this.ii&&this.ii!=this.ew?this.ii:this.$T()):-1};c.prototype.$T=function(){this.bl=this.ib.Rb(this.bl);for(this.ya=0;-1!=this.ck;){for(;-1!=this.bl;this.bl=this.ib.Rb(this.bl))if(this.ew=this.ii=this.ib.Xa(this.bl),-1!=this.ii)return this.ii;this.ck=this.ib.ue(this.ck);if(-1==this.ck)break;if(!this.hA||g.aa.Hc(this.ib.ic(this.ck)))this.bl= this.ib.Ob(this.ck)}return-1};c.AP=function(a,b,d,e,f,h,k){return new c(a,b,d,e,f,h,k)};return c}();g.zY=v;var l=function(){function c(){this.jo=this.Am=this.wk=this.cd=this.Ck=this.vo=this.Oi=this.md=this.bi=this.Sg=this.We=this.Il=null;this.qw=this.ld=-1;this.fd=0;this.fA=!1;this.ht=this.it=this.vb=null}c.prototype.Sh=function(a){return null!=this.We?this.We[a]:null};c.prototype.Xg=function(a,b){if(null==this.We){if(null==b)return;this.We=[];for(var d=0,e=this.vb.I();d=this.Oi.size&&(a=16>b?16:g.O.truncate(3*b/2),this.Oi.resize(a),this.vo.resize(a)); this.Oi.set(b,0);this.vo.set(b,0);return b};c.prototype.sF=function(a){this.md.jd(a)};c.prototype.Vy=function(a){this.td.jd(a);this.fd--};c.prototype.oI=function(a){null==this.md&&(this.md=new g.$c(8),this.td=new g.$c(5),this.Oi=new g.be(0),this.vo=new g.be(0));var b=this.td.Ce(),d=0<=a?a:b;this.td.S(b,0,d);if(0>a){if(d>=this.vb.I()){a=16>d?16:g.O.truncate(3*d/2);this.vb.resize(a);if(null!=this.We)for(var e=0;eb.Ja(e))){var h=this.vf(a,-1);this.kn(h,b.dc(e));for(var k=b.Ba(e),m=b.Vc(e);ka.Ja(b))return d;this.Il.Fd(a,a.Ba(b),a.Vc(b));this.it=this.vb.ub(0);var e=this.vf(d,-1);this.kn(e,a.dc(b)||!0);var f=null!=this.We&&null!=a.Ve,h=a.Ba(b);for(b=a.Vc(b);h=b.size&&b.resize(Math.max(g.O.truncate(1.25*a),16),-1);b.write(a,d)};c.prototype.KF=function(a,b){a=this.JF(a);b=this.wk[b];return an:2>n)?(k=this.Zq(k),e=0q){var r=q;null!=m&&(r=0r){var t=r; null!=m&&(t=0e||f>this.fd-1)throw g.i.N("invalid call");if(e>f&&!this.dc(a))throw g.i.N("cannot iterate across an open path");for(a=0;b!=d;b=this.U(b))e=this.Ua(b),f=this.Sh(e),null!=f?a+=f.Qb():(f=this.Ua(this.U(b)),a+=this.vb.yr(e,f));return a};c.prototype.Dh=function(a,b){var d=this.Ua(a); this.vb.Ht(d,b);d=this.Sh(d);null!=d&&d.setStart(b);a=this.Ma(a);-1!=a&&(a=this.Ua(a),null!=this.Sh(a)&&d.setEnd(b))};c.prototype.Vi=function(a,b){a=this.Ua(a);this.vb.ve(a,b)};c.prototype.mf=function(a,b){this.Cb(a,b.x,b.y)};c.prototype.Cb=function(a,b,d){var e=this.Ua(a);this.vb.Cb(e,b,d);e=this.Sh(e);null!=e&&e.ZB(b,d);a=this.Ma(a);-1!=a&&(a=this.Ua(a),null!=this.Sh(a)&&e.Ql(b,d))};c.prototype.D=function(a,b){this.vb.D(this.td.T(a,0),b)};c.prototype.Gc=function(a,b){this.vb.za[0].tc(2*this.td.T(a, 0),b)};c.prototype.Na=function(a){var b=new g.h;this.vb.D(this.td.T(a,0),b);return b};c.prototype.dG=function(a,b){this.it.tc(2*a,b)};c.prototype.Uc=function(a,b,d){return this.vb.Uc(a,this.Ua(b),d)};c.prototype.setAttribute=function(a,b,d,e){this.vb.setAttribute(a,this.Ua(b),d,e)};c.prototype.Ua=function(a){return this.td.T(a,0)};c.prototype.ih=function(){var a=new g.h;this.D(void 0,a);return a.y};c.prototype.fq=function(a,b){a=this.Ua(a);b=this.Ua(b);var d=this.vb.za[0].o;return d[2*a]===d[2*b]&& d[2*a+1]===d[2*b+1]};c.prototype.Dv=function(a,b){a=this.Ua(a);var d=this.vb.za[0].o;return d[2*a]===b.x&&d[2*a+1]===b.y};c.prototype.vX=function(a,b){1>b&&(b=1);if(null==this.Sg){if(1==b)return;this.Sg=g.Yc.Dn(this.vb.I(),1)}a=this.Ua(a);a>=this.Sg.size&&this.Sg.resize(a+1,1);this.Sg.write(a,b)};c.prototype.cG=function(a){a=this.Ua(a);return null==this.Sg||a>=this.Sg.size?1:this.Sg.read(a)};c.prototype.Ra=function(a,b,d){b=this.bi[b];a=this.Ua(a);b.sizef?1:hm?1:0})};c.prototype.jS=function(){for(var a=this.ld;-1!=a;a=this.ue(a))if(!g.aa.Hc(this.ic(a)))return!0;return!1};c.prototype.hC=function(a,b){for(var d=this.Ob(a),e=this.Ob(b),f=this.kv(a),h=this.kv(b),k=this.Ob(a);-1!=k;k=this.Rb(k))this.gx(k,b);for(k=this.Ob(b);-1!=k;k=this.Rb(k))this.gx(k,a);this.Zo(a,e);this.Zo(b,d);this.$o(a,h);this.$o(b,f);d=this.I(a);e=this.da(a);f=this.da(b);this.Tj(a,this.I(b));this.Tj(b,d);this.Rl(a,f);this.Rl(b,e);d=this.cd.T(a, 2);this.cd.S(a,2,this.cd.T(b,2));this.cd.S(b,2,d)};return c}();g.gd=l})(D||={});(function(g){var v=function(l){function c(a,b,d,e){var f=l.call(this)||this;f.$=new g.l;void 0===a?f.UE():"number"===typeof a?f.VO(a,b,d,e):a instanceof g.Sa?void 0!==b?f.Qu(a,b,d):f.WO(a):a instanceof g.ra?void 0!==b?f.YO(a,b):f.XO(a):a instanceof g.l?f.UO(a):f.UE();return f}R(c,l);c.prototype.Qu=function(a,b,d){this.description=g.ee.og();this.$.Oa();a.B()||this.tu(a,b,d)};c.prototype.UO=function(a){this.description= g.ee.og();this.$.K(a);this.$.normalize()};c.prototype.XO=function(a){if(null==a)throw g.i.N();this.description=a;this.$.Oa()};c.prototype.YO=function(a,b){if(null==a)throw g.i.N();this.description=a;this.$.K(b);this.$.normalize()};c.prototype.UE=function(){this.description=g.ee.og();this.$.Oa()};c.prototype.WO=function(a){this.description=g.ee.og();this.$.Oa();a.B()||this.tu(a)};c.prototype.VO=function(a,b,d,e){this.description=g.ee.og();this.K(a,b,d,e)};c.prototype.K=function(a,b,d,e){this.vc(); if("number"===typeof a)this.$.K(a,b,d,e);else for(this.Oa(),b=0,d=a.length;b=g.ra.Va(b))throw g.i.N();var e=this.description.Pf(b);this.ou();return 0<=e?this.ka[this.kR(this.description,a)+this.description.LR(e)-2+d]:g.ra.se(b)};c.prototype.ou=function(){this.vc();if(null==this.ka&&2=g.ra.Va(b))throw g.i.ce();var e=this.description.Pf(b);return 0<=e?(this.ou(),this.ka[c.Gg(this.description,a)+this.description.$j(e)-2+d]):g.ra.se(b)};c.prototype.vD=function(a,b,d,e){this.vc();if(0==b)0!=a?0!=d?this.$.H=e:this.$.C=e:0!=d?this.$.G=e:this.$.v=e;else{if(d>=g.ra.Va(b))throw g.i.ce(); if(!this.hasAttribute(b)){if(g.ra.DG(b,e))return;this.re(b)}b=this.description.Pf(b);this.ou();this.ka[c.Gg(this.description,a)+this.description.$j(b)-2+d]=e}};c.Gg=function(a,b){return b*(a.Ae.length-2)};c.prototype.Ea=function(a){this.vc();var b=new g.l;a.A(b);return this.$.Ea(b)};c.prototype.isIntersecting=function(a){return a instanceof g.l?this.$.isIntersecting(a):this.$.isIntersecting(a.$)};c.prototype.Ju=function(a,b){this.vc();a.B()?this.Oa():void 0!==b?this.tu(a,b):this.$.Ju(a.Lg(),a.ih())}; c.prototype.offset=function(a,b){this.vc();this.$.offset(a,b)};c.prototype.normalize=function(){this.vc();this.$.normalize()};c.prototype.sf=function(a){if(void 0!==a)if(a.Nf(this.description),this.B())a.Oa();else{for(var b=this.description.Aa,d=1;dthis.C&&(this.C=d.x); d.ythis.H&&(this.H=d.y)}}else if(null==c||0==c.length)this.Oa();else for(d=c[0],this.K(d.x,d.y),b=1;bc?this.v=c:this.Ca?this.G=a:this.Hc?this.v=c:this.Ca?this.G=a:this.Hthis.C||this.G>this.H)&&this.Oa())};l.prototype.scale=function(c){0>c&&this.Oa();this.B()||(this.v*=c,this.C*=c,this.G*=c,this.H*=c)};l.prototype.zoom=function(c,a){this.B()||this.K(this.sf(),c*this.R(),a*this.ca())};l.prototype.isIntersecting= function(c){return!this.B()&&!c.B()&&(this.v<=c.v?this.C>=c.v:c.C>=this.v)&&(this.G<=c.G?this.H>=c.G:c.H>=this.G)};l.prototype.HG=function(c){return(this.v<=c.v?this.C>=c.v:c.C>=this.v)&&(this.G<=c.G?this.H>=c.G:c.H>=this.G)};l.prototype.Ea=function(c){if(this.B()||c.B())return!1;c.v>this.v&&(this.v=c.v);c.Cthis.G&&(this.G=c.G);c.Hc.length)throw g.i.N();null!=c[0]?c[0].ma(this.v,this.G):c[0]=g.h.construct(this.v,this.G);null!=c[1]?c[1].ma(this.v,this.H):c[1]=g.h.construct(this.v,this.H);null!=c[2]?c[2].ma(this.C,this.H):c[2]=g.h.construct(this.C,this.H);null!=c[3]?c[3].ma(this.C,this.G):c[3]=g.h.construct(this.C,this.G)};l.prototype.wF= function(){return this.B()?0:this.R()*this.ca()};l.prototype.yR=function(){return this.B()?0:2*(this.R()+this.ca())};l.prototype.gk=function(){return(this.C+this.v)/2};l.prototype.Jp=function(){return(this.H+this.G)/2};l.prototype.R=function(){return this.C-this.v};l.prototype.ca=function(){return this.H-this.G};l.prototype.move=function(c,a){this.B()||(this.v+=c,this.G+=a,this.C+=c,this.H+=a)};l.prototype.Ju=function(c,a){if(void 0!==a)this.move(c-this.gk(),a-this.Jp());else if(c instanceof g.h)this.Ju(c.x, c.y);else if(c instanceof g.Sa){a=(this.C-this.v)/2;var b=(this.H-this.G)/2;this.v=c.Lg()-a;this.C=c.Lg()+a;this.G=c.ih()-b;this.H=c.ih()+b}else throw g.i.N();};l.prototype.offset=function(c,a){this.v+=c;this.C+=c;this.G+=a;this.H+=a};l.prototype.normalize=function(){if(!this.B()){var c=Math.min(this.v,this.C),a=Math.max(this.v,this.C);this.v=c;this.C=a;c=Math.min(this.G,this.H);a=Math.max(this.G,this.H);this.G=c;this.H=a}};l.prototype.dn=function(c){c.ma(this.v,this.G)};l.prototype.$I=function(c){c.ma(this.C, this.G)};l.prototype.cJ=function(c){c.ma(this.v,this.H)};l.prototype.en=function(c){c.ma(this.C,this.H)};l.prototype.fT=function(){return this.B()||this.v<=this.C&&this.G<=this.H};l.prototype.sf=function(){return g.h.construct((this.C+this.v)/2,(this.H+this.G)/2)};l.prototype.mz=function(){return g.h.construct(this.v,this.G)};l.prototype.contains=function(c,a){if(void 0!==a)return c>=this.v&&c<=this.C&&a>=this.G&&a<=this.H;if(c instanceof g.Sa)return this.contains(c.Lg(),c.ih());if(c instanceof g.h)return this.contains(c.x, c.y);if(c instanceof l)return c.v>=this.v&&c.C<=this.C&&c.G>=this.G&&c.H<=this.H;throw g.i.N();};l.prototype.hm=function(c,a){if(void 0!==a)return c>this.v&&cthis.G&&athis.v&&c.Cthis.G&&c.H>>32);var a=g.O.Th(c);c=this.C;c=g.O.truncate(c^c>>>32);a=g.O.Th(c,a);c=this.G;c=g.O.truncate(c^c>>>32);a=g.O.Th(c,a);c=this.H;c=g.O.truncate(c^c>>>32);return a=g.O.Th(c,a)};l.prototype.xr=function(){return this.B()?2.220446049250313E-14:2.220446049250313E-14*(Math.abs(this.v)+Math.abs(this.C)+Math.abs(this.G)+Math.abs(this.H)+1)};l.prototype.zy=function(c,a){var b=this.Zj(c),d=this.Zj(a);if(0!=(b&d))return 0;if(0==(b|d))return 4;var e=(0!=b?1:0)|(0!=d?2:0);do{var f=a.x-c.x,h=a.y-c.y;f>h?0!=(b& l.YC)?(0!=(b&l.ju)?(c.y+=h*(this.v-c.x)/f,c.x=this.v):(c.y+=h*(this.C-c.x)/f,c.x=this.C),b=this.Zj(c)):0!=(d&l.YC)?(0!=(d&l.ju)?(a.y+=h*(this.v-a.x)/f,a.x=this.v):(a.y+=h*(this.C-a.x)/f,a.x=this.C),d=this.Zj(a)):0!=b?(0!=(b&l.ku)?(c.x+=f*(this.G-c.y)/h,c.y=this.G):(c.x+=f*(this.H-c.y)/h,c.y=this.H),b=this.Zj(c)):(0!=(d&l.ku)?(a.x+=f*(this.G-a.y)/h,a.y=this.G):(a.x+=f*(this.H-a.y)/h,a.y=this.H),d=this.Zj(a)):0!=(b&l.ZC)?(0!=(b&l.ku)?(c.x+=f*(this.G-c.y)/h,c.y=this.G):(c.x+=f*(this.H-c.y)/h,c.y=this.H), b=this.Zj(c)):0!=(d&l.ZC)?(0!=(d&l.ku)?(a.x+=f*(this.G-a.y)/h,a.y=this.G):(a.x+=f*(this.H-a.y)/h,a.y=this.H),d=this.Zj(a)):0!=b?(0!=(b&l.ju)?(c.y+=h*(this.v-c.x)/f,c.x=this.v):(c.y+=h*(this.C-c.x)/f,c.x=this.C),b=this.Zj(c)):(0!=(d&l.ju)?(a.y+=h*(this.v-a.x)/f,a.x=this.v):(a.y+=h*(this.C-a.x)/f,a.x=this.C),d=this.Zj(a));if(0!=(b&d))return 0}while(0!=(b|d));return e};l.prototype.Zj=function(c){return(c.xthis.C?1:0)<<1|(c.ythis.H?1:0)<<3};l.prototype.Bi=function(c){return!this.B()&& (this.R()<=c||this.ca()<=c)};l.prototype.tb=function(c){return c instanceof g.h?Math.sqrt(this.iK(c)):Math.sqrt(this.px(c))};l.prototype.px=function(c){var a=0,b=0,d=this.v-c.C;d>a&&(a=d);d=this.G-c.H;d>b&&(b=d);d=c.v-this.C;d>a&&(a=d);d=c.G-this.H;d>b&&(b=d);return a*a+b*b};l.prototype.iK=function(c){var a=0,b=0,d=this.v-c.x;d>a&&(a=d);d=this.G-c.y;d>b&&(b=d);d=c.x-this.C;d>a&&(a=d);d=c.y-this.H;d>b&&(b=d);return a*a+b*b};l.prototype.cn=function(c){this.B()?c.Oa():c.K(this.v,this.C)};l.ju=1;l.ku= 4;l.YC=3;l.ZC=12;return l}();g.l=v})(D||={});(function(g){(function(c){c[c.initialize=0]="initialize";c[c.initializeRed=1]="initializeRed";c[c.initializeBlue=2]="initializeBlue";c[c.initializeRedBlue=3]="initializeRedBlue";c[c.sweep=4]="sweep";c[c.sweepBruteForce=5]="sweepBruteForce";c[c.sweepRedBlueBruteForce=6]="sweepRedBlueBruteForce";c[c.sweepRedBlue=7]="sweepRedBlue";c[c.sweepRed=8]="sweepRed";c[c.sweepBlue=9]="sweepBlue";c[c.iterate=10]="iterate";c[c.iterateRed=11]="iterateRed";c[c.iterateBlue= 12]="iterateBlue";c[c.iterateBruteForce=13]="iterateBruteForce";c[c.iterateRedBlueBruteForce=14]="iterateRedBlueBruteForce";c[c.resetRed=15]="resetRed";c[c.resetBlue=16]="resetBlue"})(l||={});var v=function(){function c(a,b){this.ci=a;this.dH=b}c.prototype.nr=function(a,b,d){this.ci.JX(d,a,b,this.dH)};c.prototype.$p=function(a){return this.ci.Rr(a,this.dH)};return c}();var l=function(){function c(){this.ow=this.oo=this.ff=this.rd=null;this.wq=new g.l;this.Am=this.Hj=this.Ij=this.Ad=this.Ef=this.Ld= this.cw=this.fo=this.qd=this.Eb=null;this.Xb=-1;this.qa=0;this.Nk()}c.prototype.kr=function(){this.Nk();this.Pv=!0;null==this.Eb?(this.fo=new g.ia(0),this.Eb=[]):(this.fo.Bh(0),this.Eb.length=0)};c.prototype.ad=function(a,b){if(!this.Pv)throw g.i.Hb();var d=new g.l;d.K(b);this.fo.add(a);this.Eb.push(d)};c.prototype.Fp=function(){if(!this.Pv)throw g.i.Hb();this.Pv=!1;null!=this.Eb&&0this.Eb.length)return this.pe=this.Eb.length,this.Xb=5,!0;null==this.rd&&(this.rd=new g.sr(!0),this.oo=this.rd.getIterator(),this.Ld=new g.ia(0));this.rd.kr();for(var a=0;athis.Eb.length||10>this.qd.length)return this.pe=this.Eb.length,this.Xb=6,!0;null==this.rd&&(this.rd=new g.sr(!0),this.oo=this.rd.getIterator(),this.Ld=new g.ia(0));this.rd.kr();for(var a=0;athis.Eb.length||10>this.qd.length)return this.pe=this.Eb.length,this.Xb=6,!0;null==this.ff&&(this.ff=new g.sr(!0),this.ow=this.ff.getIterator(),this.Ef=new g.ia(0));this.ff.kr();for(var a=0;athis.Eb.length||10>this.qd.length)return this.pe=this.Eb.length,this.Xb=6,!0;null==this.rd&&(this.rd=new g.sr(!0),this.oo=this.rd.getIterator(),this.Ld=new g.ia(0));null== this.ff&&(this.ff=new g.sr(!0),this.ow=this.ff.getIterator(),this.Ef=new g.ia(0));this.rd.kr();for(var a=0;a>1;if(c.eq(a))return this.rd.remove(b),0==this.pe?(this.Af=this.Vf=-1,this.Ic=!0,!1):!0;this.oo.EB(this.Eb[b].v,this.Eb[b].C,this.qa);this.Vf=b;this.Xb=10;return!0};c.prototype.QX=function(){if(-1==--this.pe)return this.Af=this.Vf=-1,this.Ic= !0,!1;this.Rg=this.Vf=this.pe;this.Xb=13;return!0};c.prototype.RX=function(){if(-1==--this.pe)return this.Af=this.Vf=-1,this.Ic=!0,!1;this.Vf=this.pe;this.Rg=this.qd.length;this.Xb=14;return!0};c.prototype.SX=function(){var a=this.Ld.get(this.pe-1),b=this.Ef.get(this.Rg-1),d=this.Rr(a,!0),e=this.Rr(b,!1);return d>e?this.ux():d>1;if(c.eq(a))return-1!=this.Df&&-1!=this.Ij.get(b)?(this.Ad.jd(this.Df, this.Ij.get(b)),this.Ij.set(b,-1)):this.rd.remove(b),0==this.pe?(this.Af=this.Vf=-1,this.Ic=!0,!1):!0;if(-1!=this.Cf&&0>1;if(c.eq(a))return-1!=this.Cf&&-1!=this.Hj.get(b)?(this.Ad.jd(this.Cf,this.Hj.get(b)),this.Hj.set(b,-1)):this.ff.remove(b),0==this.Rg?(this.Af=this.Vf=-1,this.Ic=!0,!1):!0;if(-1!=this.Df&&0>1;this.rd.vj(a);this.Xb=4;return!0};c.prototype.jT=function(){this.Vf=this.oo.next();if(-1!=this.Vf)return!1; this.Af=this.Vf=-1;var a=this.Ef.get(this.Rg)>>1;this.ff.vj(a);this.Xb=7;return!0};c.prototype.gT=function(){this.Af=this.ow.next();if(-1!=this.Af)return!1;var a=this.Ld.get(this.pe)>>1;this.rd.vj(a);this.Xb=7;return!0};c.prototype.hT=function(){if(-1==--this.Rg)return this.Xb=5,!0;this.wq.K(this.Eb[this.pe]);var a=this.Eb[this.Rg];this.wq.W(this.qa,this.qa);return this.wq.isIntersecting(a)?(this.Af=this.Rg,!1):!0};c.prototype.iT=function(){if(-1==--this.Rg)return this.Xb=6,!0;this.wq.K(this.Eb[this.pe]); var a=this.qd[this.Rg];this.wq.W(this.qa,this.qa);return this.wq.isIntersecting(a)?(this.Af=this.Rg,!1):!0};c.prototype.kJ=function(){if(null==this.rd)return this.Ic=!0,!1;this.pe=this.Ld.size;0>1],a=c.eq(a)?b.G-d:b.H+d;b=this.qd[a>>1];return a=c.eq(a)?b.G-d:b.H+d};return c}();g.xC=l})(D||={});(function(g){var v=function(){function l(){}l.construct=function(c,a,b,d,e, f){var h=new l;h.v=c;h.G=a;h.Ye=b;h.C=d;h.H=e;h.Bg=f;return h};l.prototype.Oa=function(){this.Ye=this.v=NaN};l.prototype.B=function(){return isNaN(this.v)};l.prototype.XS=function(){return isNaN(this.Ye)};l.prototype.K=function(c,a,b,d,e,f){void 0!==d?"number"===typeof c?(this.v=c,this.G=a,this.Ye=b,this.C=d,this.H=e,this.Bg=f):(this.v=c.x-.5*a,this.C=this.v+a,this.G=c.y-.5*b,this.H=this.G+b,this.Ye=c.z-.5*d,this.Bg=this.Ye+d):(this.v=c,this.G=a,this.Ye=b,this.C=c,this.H=a,this.Bg=b)};l.prototype.move= function(c){this.v+=c.x;this.G+=c.y;this.Ye+=c.z;this.C+=c.x;this.H+=c.y;this.Bg+=c.z};l.prototype.copyTo=function(c){c.v=this.v;c.G=this.G;c.C=this.C;c.H=this.H};l.prototype.Lk=function(c,a,b){this.v>c?this.v=c:this.Ca?this.G=a:this.Hb?this.Ye=b:this.Bgc.length)throw g.i.N();c[0]=new g.Nd(this.v,this.G,this.Ye);c[1]=new g.Nd(this.v,this.H,this.Ye);c[2]=new g.Nd(this.C,this.H,this.Ye);c[3]=new g.Nd(this.C,this.G,this.Ye);c[4]=new g.Nd(this.v,this.G, this.Bg);c[5]=new g.Nd(this.v,this.H,this.Bg);c[6]=new g.Nd(this.C,this.H,this.Bg);c[7]=new g.Nd(this.C,this.G,this.Bg)};l.prototype.Zw=function(c){if(null==c||0==c.length)this.Oa();else{var a=c[0];this.K(a.x,a.y,a.z);for(a=1;athis.FA;){var k=this.sd.ha();e.L(k.ac());f.L(k.wc());e.scale(this.Wa.ec);f.scale(this.Wa.ec);g.cj.Mu(e,f)?e.x=f.x:g.cj.Ku(e,f)&&(f.x=e.x);this.uk.length=0;g.cj.tF(this.Wa.Tb,this.Wa.kc,this.Wa.ze,e,f,this.Wa.QA,this.Wa.Zs,h,this.Nj,this.Gs,this.uk,this.bw);null!=this.co&& (k=this.uk.slice(0),this.co.qG(this.co.da()-1,k,k.length-1));g.cj.Lu(e,f)?(this.qq.Oa(),this.Wa.sy(e,this.sl,this.qq),this.Xn=!0):(this.qq.Oa(),this.Xn=this.xy(h[0],this.qq));if(this.Xn){this.sd.li();if(this.sd.Ez()){this.sd.li();this.sd.ha();break}this.sd.DW();break}null==b&&(b=new g.Da,b.Yk(null,0));this.OD(b);d++}this.bw[0]=0;if(0=this.Nj[0]){var h=this.di+1.570796326794897;e=h+3.141592653589793-(this.di-this.Nj[0])}else h=this.di+1.570796326794897,e=h+3.141592653589793-(6.283185307179586-(this.Nj[0]-this.di));var k=this.di>=this.Nj[0]&&3.141592653589793>=this.di-this.Nj[0]?!1:this.dih;)n-=6.283185307179586;nd.x-this.sk[0]?this.sk[0]-=6.283185307179586:3.141592653589793h?m.xX():m.$n=h;e=b.getType();g.aa.yd(e)?(e=new g.Ta(b.description),e.oc(b,!0),b=e,e=1607):197==e&&(e=new g.l,b.A(e),e.R()<=m.qa|| e.ca()<=m.qa?(e=new g.Ta(b.description),e.ad(b,!1),b=e,e=1607):(e=new g.Da(b.description),e.ad(b,!1),b=e,e=1736));m.yX();g.aa.Rn(e)||m.zX();if(m.rb<=.5*m.$n)return 1736!=e?new g.Da(b.description):m.Wv?b:g.cj.Qr(b,m.Qg,m.ze,m.QA,-1,k);if(0>m.Ka&&1736!=e)return new g.Da(b.description);m.Wv&&g.aa.Hc(e)?(d=g.cj.Qr(b,d,4,NaN,m.$n,k),b=g.cb.zh(d,m.Qg,m.Jc)):b=g.cb.zh(b,m.Qg,m.Jc);b=g.Hh.lj(b,m.Jc);if(b.B())return new g.Da(b.description);!m.Wv&&g.aa.Hc(e)&&(b=g.cj.pI(m.ec,b));b=a.KX(b,m.Jc);switch(e){case 1736:d= m.UN(b);break;case 1607:d=m.VN(b);break;case 550:d=m.SN(b);break;case 33:d=m.TN(b);break;default:throw g.i.fa("corrupted_geometry");}m=g.cb.zh(d,m.Jc,m.Qg);m.Jl(b.description);return m};a.prototype.UN=function(b){var d=new g.Da;b=new l(this,b,d);b=g.Gh.local().V(b,this.Jc,this.Ub).next();b=g.ip.nj(b,this.Jc,2);var e=new g.Dd;e.scale(1/this.ec,1/this.ec);d.Oc(e);d=g.ip.nj(d,this.Jc,2);return 0<=this.Ka?g.Gh.local().V(d,b,this.Jc,this.Ub):g.kp.local().V(d,b,this.Jc,this.Ub)};a.prototype.VN=function(b){b= new l(this,b,null);b=g.Gh.local().V(b,this.Jc,this.Ub).next();return b=g.ip.nj(b,this.Jc,2)};a.prototype.SN=function(b){b=new v(this,b);b=g.Gh.local().V(b,this.Jc,this.Ub).next();return b=g.ip.nj(b,this.Jc,2)};a.prototype.TN=function(b){b=b.D();b.scale(this.ec);var d=new g.Da;this.sy(b,!1,d);return d=g.ip.nj(d,this.Jc,2)};a.prototype.xy=function(b,d,e,f,h,k){var m=b[0],n=b[b.length-1],p=m.y>n.y?m.y:n.y,q=g.F.q(this.Tb,this.kc,m.yb.Ke()?(this.UV(b),!0):!1};a.prototype.OI= function(b,d,e){var f=e.I(),h=0k.x?(k=this.zq,f.gg(-this.Js,0)):(k=-this.zq,f.gg(this.Js,0));d.add(b,!1);b.Oa();e.add(d,!1);e.Oc(f);h=new g.l;e.A(h);h.W((this.Js-h.R())/2,0);h.G=-this.zq;h.H=this.zq;for(var n=0;n< e.I();n++)e.D(n,m),d.wf(0,-1,m);e.Oc(f);for(n=0;n=m)break;g.kb.yi(b,d,h.x,h.y,f,C,w,y);p?z.ma(w.u,y.u):(x.ma(w.u,y.u),a.gJ(h.x,x.x,A.x,q),z.ma(q[0]+x.x,x.y),A.L(z));z.scale(e);r.wf(0, -1,z);k=C;C=B++*n}}};a.dJ=function(b,d,e,f,h,k,m,n,p,q){var r=new g.h,t=new g.h,u=new g.ga(0),w=new g.ga(0);g.kb.yi(b,d,f.x,f.y,e,h,u,w);r.ma(u.u,w.u);g.kb.yi(b,d,f.x,f.y,e,k,u,w);t.ma(u.u,w.u);e=new g.ga(0);g.kb.Xy(b,d,m.x,m.y,r.x,r.y,e);p[0]=e.u;g.kb.Xy(b,d,m.x,m.y,t.x,t.y,e);for(q[0]=e.u;p[0]<=q[0];)p[0]+=6.283185307179586;for(;p[0]>q[0];)p[0]-=6.283185307179586;for(;p[0]>=n;)p[0]-=6.283185307179586,q[0]-=6.283185307179586;for(;p[0]k[r]?1:0});d=b.Ia();for(n=0;nthis.rb/b&&(b=this.rb/500);.01> b&&(b=.01);this.$n=b};return a}();g.VK=c})(D||={});(function(g){var v=function(){function l(){}l.Mf=function(c,a){var b=new g.h;b.L(a);c.push(b)};l.up=function(c,a){c.add(a.x);c.add(a.y)};l.hB=function(c){c.Bh(c.size-2)};l.oB=function(c,a){a.ma(c.get(c.size-2),c.get(c.size-1))};l.Qr=function(c,a,b,d,e,f){if(null==c)throw g.i.N();var h=c.getType();if(c.B()||g.aa.Rn(h))return c;var k=new l;k.Qg=a;k.Jc=g.cb.sc(a);var m=g.cb.vv(k.Jc);k.Ub=f;k.Tb=g.cb.ev(k.Jc);k.kc=m*(2-m);k.ec=k.Jc.Hd().ai;k.Aq=k.Jc.Kn(); k.Zs=k.Aq*k.ec;k.AA=d;k.zA=e;k.ze=b;197==h?(b=new g.Da(c.description),b.ad(c,!1)):g.aa.yd(h)?(b=new g.Ta(c.description),b.oc(c,!0)):b=c;if(4!=k.ze){a=0==k.Qg.Nb(k.Jc)?g.cb.zh(b,k.Qg,k.Jc):g.Hh.lj(b,k.Jc);if(a.B())return a;a=l.pI(k.ec,a);a=k.Zy(a);a=g.ip.nj(a,k.Jc,k.ze);k=g.cb.zh(a,k.Jc,k.Qg)}else{2==g.Eg.Sb(a)?(c=g.cb.ml(),a=g.Xj.local().V(b,c,a,f),a==c&&(a=new g.Da,c.copyTo(a))):a=g.Hh.lj(b,k.Jc);if(a.B())return a;k=k.CX(a)}return k};l.pI=function(c,a){var b=new g.l;a.xc(b);if(3.141592653589793> b.R()*c)return a;var d=!1;b=a.Ga();for(var e=new g.h,f=new g.h;b.$a();)for(;b.Ha();){var h=b.ha();e.L(h.ac());f.L(h.wc());e.scale(c);f.scale(c);if(3.141592653589793f.x-e.x)for(;-6.283185307179586>f.x-e.x;)f.x+=6.283185307179586;l.Wi(f.x,NaN,w);q.L(f)}else n.L(f),l.AU(n),l.Wi(n.x,u,w),q.ma(w[0]+n.x,n.y);.5>Math.abs(q.x-f.x)&&q.L(f);m?(h.Tw(0,t),r.L(p),r.scale(1/c),t.Cb(r),(k=b.vm())?d.nf(t):d.lineTo(t),b.Qn()&&!a.dc(b.gb)&&(h.Tw(1,t),r.L(q),r.scale(1/c),t.Cb(r),d.lineTo(t))):((k=b.vm())&&d.Hz(null,0),h=d.da()-1,r.L(p),r.scale(1/ c),d.wf(h,-1,r),b.Qn()&&!a.dc(b.gb)&&(r.L(q),r.scale(1/c),d.wf(h,-1,r)))}return d};l.tF=function(c,a,b,d,e,f,h,k,m,n,p,q){var r=new g.h,t=new g.h,u=0x&&(x+=6.283185307179586);0>w&&(w+=6.283185307179586);null!=m&&(m[0]=y);null!=n&&(n[0]=x);null!=p&&(p[0]=w);n=m=NaN;null!=q&&(n=g.F.Ah(c,a),p=g.F.q(c,a,d.y), m=(n-p)/y,n=(n+p)/y);p=l.Mu(d,e);w=l.Ku(d,e);x=p||w;var z=l.FE(d,e,k),A=new g.ga(0),B=new g.ga(0),C=new g.h,E=new g.h,F=new g.h;l.Wi(d.x,NaN,t);var H=[t[0]];if(y<=f)l.Mf(r,d),l.Wi(e.x,NaN,t),null!=q&&q.add(0),x?(p&&l.kB(d,e,q,r),w&&l.iB(d,e,q,r)):z?l.jB(d,e,u,m,n,q,r):0F.x&&(t[0]+=6.283185307179586,F.ma(t[0]+C.x,C.y)):J.xh.x?h.x+= 6.283185307179586:3.141592653589793M;M++)if(I=G[M]*n+(1-G[M])*m,g.kb.oj(c,a,d.x,d.y,I*e,f,y,x,b),C.ma(y.u,x.u),0==M&&(L=I,E.L(C)),l.WW(A,C,B,H),H.hc(H.fe(C,!0),F),g.kb.wd(c,a,C.x,C.y,F.x,F.y,z,null,null,2),z.u>p){J=!0;break}J?(B.L(E),n=L,l.up(h,B),k.add(n)):(l.hB(h),k.En(k.size-1,1,k.size-1),0=h&&P.u<=f&&3.141592653589793>Math.abs(u.x-w.x))break;if(d.Ux(I,L)<=e)break}var pa=ba[H]*L+(1-ba[H])*I;d.hc(pa,q);F?y.ma(q.x*b,q.y*b):(E[0][0]=q.x,E[0][1]=q.y,g.cb.vt(),y.x=E[0][0]*b,y.y=E[0][1]*b);if(0==H&&(V=pa,t.L(q),z.L(y),0f||3.141592653589793<=Math.abs(u.x-w.x)))){ca=!0;break}if(M&&0f||3.141592653589793<=Math.abs(u.x-y.x)){ca=!0;break}}else if(0h){ca=!0;break}if(M){g.kb.wd(c,a,C.x,C.y,x.x,x.y,ea,null,null,2);if(ea.u>h){ca=!0;break}g.kb.wd(c,a,x.x,x.y,y.x,y.y,T,null,null,2);if(T.u>h){ca=!0;break}}}else{ca= !0;break}}ca?(p.L(t),w.L(z),L=V,l.up(G,p),l.up(Q,w),U.add(L)):(l.hB(G),l.hB(Q),U.En(U.size-1,1,U.size-1),l.Mf(m,p),J+=P.u,null!=k&&k.add(J),0Math.abs(a.x-c.x)?(d.Dc(c),3.141592653589793<=b.x-c.x?d.Ql(b.x-6.283185307179586,b.y):3.141592653589793<=c.x-b.x?d.Ql(b.x+6.283185307179586, b.y):d.Ql(b.x,b.y)):(d.Dc(b),3.141592653589793<=c.x-b.x?d.Ql(c.x-6.283185307179586,c.y):3.141592653589793<=b.x-c.x?d.Ql(c.x+6.283185307179586,c.y):d.Ql(c.x,c.y))};l.YJ=function(c,a){for(var b=0;bc.x)for(;-3.141592653589793>c.x;)c.x+=6.283185307179586;if(3.141592653589793l.v+d&&fl?-l:l};v.Mb=function(l,c){return 0<= c?v.P(l):-v.P(l)};v.Y=function(l,c){return l==c||v.P(l-c)<=v.JC*(1+(v.P(l)+v.P(c))/2)};v.Cd=function(l){return 0==l||v.P(l)<=v.JC};v.Ah=function(l,c){c=Math.sqrt(1-c);c=(1-c)/(1+c);var a=c*c;return l/(1+c)*(1+a*(.25+a*(.015625+1/256*a)))*v.EL};v.EL=1.5707963267948966;v.JC=3.552713678800501E-15;return v}()})(D||={});(function(g){var v=function(){return function(c){this.Wf=c;this.Kk=this.Wf.getCode();0>this.Kk&&(this.Kk=0)}}();g.DY=v;var l=function(){function c(a){void 0===a&&(a=null);this.Cj=null; this.Un=!1;null!==a&&(this.Cj=new v(a))}c.prototype.Ec=function(){return null!=this.Cj?this.Cj.Kk:0};c.prototype.Of=function(){var a=new c;this.copyTo(a);return a};c.prototype.copyTo=function(a){a.Cj=this.Cj;a.Un=this.Un};c.prototype.Qz=function(){this.Un=!this.Un};c.prototype.qm=function(){return null!=this.Cj?this.Cj.Wf:null};c.prototype.LJ=function(a){if(0>=a)throw g.i.N();if(a!=this.Ec()){a=g.pf.geogtran(a);if(null==a)throw g.i.N("Geogtran not found.");this.Cj=new v(a)}};c.prototype.Bz=function(){return null== this.Cj?null:this.Cj.Wf.toString()};c.prototype.tX=function(a){if(null==a)throw g.i.N();var b=null;try{b=g.pf.fromString(g.Sc.PE_TYPE_GEOGTRAN,a)}catch(d){throw g.i.N();}this.Cj=new v(b)};c.prototype.Nb=function(a){return a==this?!0:a instanceof c&&(!(0>=this.Ec()||this.Ec()!=a.Ec())||this.qm().isEqual(a.qm()))?this.Un==a.Un:!1};c.prototype.toString=function(){var a="GeographicTransformation: "+this.Bz();return 200c.I()?!1:!0};l.BE=function(c){return c.B()|| 1607!=c.getType()&&1736!=c.getType()||20>c.I()?!1:!0};return l}();g.Uk=v})(D||={});(function(g){g.$b=function(){function v(){}v.TT=function(l){var c=new g.Da;c.sx(l.es(),l.gs());c.yj(l.es(),l.fs());c.yj(l.ds(),l.fs());c.yj(l.ds(),l.gs());return c};v.zh=function(l,c){return null===l?null:g.Hx.local().V(l,c,null)};v.jY=function(l,c){var a=g.Gh.local();l=new g.Zc(l);return a.V(l,c,null).next()};v.im=function(l,c,a){return g.kp.local().V(l,c,a,null)};v.ep=function(l,c,a){return g.Kx.local().V(l,c,a,null)}; v.VX=function(l,c,a){var b=g.Kx.local();l=new g.Zc(l);c=new g.Zc(c);a=b.V(l,c,a,null);for(b=[];null!=(c=a.next());)b.push(c);return b};v.Nb=function(l,c,a){return g.dj.local().V(3,l,c,a,null)};v.TP=function(l,c,a){return g.dj.local().V(4,l,c,a,null)};v.RS=function(l,c,a){var b=g.Xj.local();l=new g.Zc(l);c=new g.Zc(c);a=b.V(l,c,a,null);for(b=[];null!=(c=a.next());)b.push(c);return b};v.QP=function(l,c,a){var b=g.kp.local();l=new g.Zc(l);c=new g.Zc(c);a=b.V(l,c,a,null);for(b=[];null!=(c=a.next());)b.push(c); return b};v.Ea=function(l,c,a){return g.Xj.local().V(l,c,a,null)};v.QS=function(l,c,a){l=g.Xj.local().V(l,c,a,null,1);if(null===l)return[];if(550===l.getType()){c=[];for(a=0;al.Db())return 0;var b=null;if(null!=c){if(b=c.Hd(),null!=a&&b.Ec()!=a.Ec()&&b.od!=a.od)throw g.i.Xk();}else if(null!=a)throw g.i.N();1736==l.getType()||197==l.getType()?c=l.mg():g.aa.yd(l.getType())?(c=new g.Ta(l.description),c.oc(l,!0)):c=l;l=0;c=c.Ga();for(var d=new g.h,e=new g.h;c.$a();)for(;c.Ha();){var f=c.ha();f.Yp(d);f.Tr(e);l+=g.h.tb(d,e)}null!==b&&null!==a&&(l=g.Tc.Nh(l,b,a));return l};v.fP=function(l){return void 0!==l.points?v.mS(l,void 0=== l.hasZ?!1:l.hasZ,void 0===l.hasM?!1:l.hasM):void 0!==l.rings?v.lG(l.rings,void 0===l.hasZ?!1:l.hasZ,void 0===l.hasM?!1:l.hasM,"P"):void 0!==l.paths?v.lG(l.paths,void 0===l.hasZ?!1:l.hasZ,void 0===l.hasM?!1:l.hasM,"L"):void 0!==l.x?v.nS(l):void 0!==l.xmin?v.lS(l):null};v.nS=function(l){if(null==l.x||"NaN"==l.x)return new g.Sa;var c=new g.Sa(l.x,l.y);void 0!==l.z&&null!==l.z&&c.wX(l.z);void 0!==l.m&&null!==l.m&&c.hX(l.m);return c};v.lS=function(l){if(null==l.xmin||"NaN"==l.xmin)return new g.Fh;var c= new g.Fh(l.xmin,l.ymin,l.xmax,l.ymax);void 0!==l.zmin&&null!==l.zmin&&c.setInterval(1,0,l.zmin,l.zmax);void 0!==l.mmin&&null!==l.mmin&&c.setInterval(2,0,l.mmin,l.mmax);return c};v.mS=function(l,c,a){var b=0,d=new g.de,e=3*l.points.length;0!=e%2&&e++;2>e&&(e=2);var f=g.O.truncate(3*l.points.length/2);4>f?f=4:16>f&&(f=16);e=g.Yc.Dn(e,0);var h=g.Yc.Dn(f);f=g.Yc.Dn(f);for(var k=0;k=e?(q[r]=!1,n+=1,h.add(m),k.add(d),m+=t):q[r]=!0}b=3*m;0!=b%2&&b++;2>b&&(b=2);r=g.O.truncate(3*m/2);4>r?r=4:16>r&&(r=16);b=g.Yc.Dn(b,0);d=g.Yc.Dn(r);e=g.Yc.Dn(r);for(r=t=0;rf)throw g.i.N();this.Qi.oa=e-h;this.Qi.va=f+h;this.hi.resize(0);this.he=0;this.sg[0]=0};d.prototype.Uo=function(e,f){this.Qi.oa=e-f;this.Qi.va=e+f;this.hi.resize(0);this.he=0;this.sg[0]=0};d.prototype.next=function(){if(!this.Ya.lq)throw g.i.Hb();if(0>this.he)return-1;for(var e=!0;e;)switch(this.sg[this.he]){case 1:e=this.FU();break;case 2:e=this.GU();break;case 3:e=this.HU();break;case 4:e=this.IU();break;case 5:e=this.GW();break;case 6:e=this.kT();break;case 7:e=this.tN();break; case 0:e=this.Gz();break;default:throw g.i.Qa();}return-1!=this.Og?this.Mp()>>1:-1};d.construct=function(e){var f=new d;f.Ya=e;f.hi.Jb(20);f.he=-1;return f};d.prototype.Gz=function(){this.Og=this.vH=this.Mi=this.Lc=-1;if(null!=this.Ya.me&&0=this.Qi.oa)return this.ei=this.QR(),!1;this.he--;return!0};d.prototype.tN=function(){this.Og=this.ei;if(-1!=this.Og&&b.gq(this.Mp()))return this.ei=this.SF(),!1;this.he--;return!0};d.prototype.SF=function(){return this.Ya.Sf?this.Ya.$f.lb(this.Og):this.Ya.Ti.lb(this.Og)};d.prototype.QR= function(){return this.Ya.Sf?this.Ya.$f.we(this.Og):this.Ya.Ti.we(this.Og)};d.prototype.Mp=function(){return this.Ya.Sf?this.Ya.$f.ja(this.Og):this.Ya.Ti.getData(this.Og)};return d}();g.EY=a;var b=function(){function d(e){this.Am=this.$h=this.$f=this.Ti=this.Km=this.Ej=this.me=this.Fj=null;this.Sf=e;this.lq=this.Sv=!1}d.prototype.kr=function(){this.Nk(!0)};d.prototype.Br=function(e,f){if(!this.Sv)throw g.i.Hb();this.Fj.push(new g.Nc(e,f))};d.prototype.Fp=function(){if(!this.Sv)throw g.i.fa("invalid call"); this.Sv=!1;this.lq=!0;this.Sf||(this.vS(),this.Zv=this.Fj.length)};d.prototype.vj=function(e){if(!this.Sf||!this.lq)throw g.i.N("invalid call");if(-1==this.kf){var f=this.Fj.length;if(this.iA){var h=new g.ia(0);h.Jb(2*f);this.bJ(h);this.$h.Jb(2*f);this.$h.resize(0);this.aJ(h);this.Km.resize(f,-1);this.Km.Wj(-1,0,f);this.iA=!1}else this.Km.Wj(-1,0,f);this.kf=this.Tu()}f=this.pG(e<<1,this.kf);h=this.$f.addElement((e<<1)+1,this.xz(f));this.VJ(f,h);this.Km.set(e,f);this.Zv++};d.prototype.remove=function(e){if(!this.Sf|| !this.lq)throw g.i.fa("invalid call");var f=this.Km.get(e);if(-1==f)throw g.i.N("the interval does not exist in the interval tree");this.Km.set(e,-1);this.Zv--;var h=this.xz(f),k=this.$f.ZR(h);this.$f.vd(this.wR(f),h);this.$f.vd(this.TR(f),h);e=this.$f.size(h);0==e&&(this.$f.MP(h),this.ZJ(k,-1));this.Ej.jd(f);h=this.UF(k);var m=this.qj(k),n=this.lk(k);for(f=0;!(0>1);-1!=m?this.VJ(m,this.Ti.addElement(this.xz(m),k)):(m=this.pG(k,this.kf),h.set(k>>1,m))}};d.prototype.pG=function(e, f){var h=f,k=f,m=-1,n=0,p=this.$h.size-1,q=0,r=e>>1,t=NaN,u=NaN,w=!0,y=this.DR(r);for(r=this.AR(r);w;){nx&&(x x)-1!=f&&(f==h?(k=h,t=x,f=this.lk(h),u=-1!=f?this.Np(f):NaN):u>1];return d.gq(e)?f.oa:f.va};return d}();g.sr=b})(D||={});(function(g){var v= function(){function l(c){if(null==c)throw g.i.fa("Invalid arguement");this.hf=c;var a=c.nR();a.hS()?c.ef.IG()?this.lo=g.si.PannableFold:this.lo=g.si.Clip:this.lo=g.si.DontClip;a.iS()?c.Yf.IG()?this.Qm=g.si.PannableFold:this.Qm=g.si.Clip:this.Qm=g.si.DontClip;this.Bm=a.Jr;this.mH=a.Vu;c=this.hf.sH;this.aH=c.hs(2147483648);this.Uv=c.hs(1073741824)}l.zh=function(c,a,b){return a.ww.zh(c,b)};l.Rt=function(c,a,b,d){return c.ww.Rt(a,b,d)};l.Qt=function(c,a,b,d){b=0>b?a.length:b;c=c.ww.Rt(a,b,d);if(c==b)return c; for(var e=a=0;ee.H){var t=g.l.construct(k.v-1,e.G,k.C+1,e.H);r=g.ri.Nu(r,t,b,NaN,0,a);if(r.B())return r}k.R()>2*e.R()&&(r=g.zb.Hp(r,-2*e.R(),2* e.R(),b,!0,0,!0,a))}k=this.mH;(e=!isNaN(k))&&(r=g.Xl.local().V(r,k,a));t=n?d.kk():null;var u=NaN;m&&(u=b.zi());var w=null!=d.Wr();if(this.aH)m&&(g.zb.ur(b,u,r,h),e&&(m=b.hh(),u=b.sc().hh(),k*=u/m)),g.zb.tr(this.hf,r,q,h),e&&(m=b.sc().hh(),u=d.sc().hh(),k*=u/m),b=r;else{var y=new g.Ta(r.description);y.DD(r);m&&(g.zb.ur(b,u,y,h),e&&(m=b.hh(),u=b.sc().hh(),k*=u/m));g.zb.tr(this.hf,y,q,h);e&&(m=b.sc().pm(),u=d.sc().pm(),k*=u/m);q=NaN;n?(t=d.kk(),q=d.zi()):isNaN(this.Bm)||(q=this.Bm);m=l.tv(b)|l.tv(d); u=10*p.Xd(0);this.Uv&&(m=3,u=0);b=g.zb.UQ(r,b,y,p,q,a,m,u)}w&&(b=g.zb.XD(b,d,a));n&&(f||(n=p.Oe().R(),b.Tg(0,0).R()>=n-p.Xd(0)&&(p=t.getNorthPoleLocation(),n=t.getSouthPoleLocation(),r=t.getNorthPoleGeometry(),t=t.getSouthPoleGeometry(),q=0,r==g.Cg.PE_POLE_POINT&&p!=g.Cg.PE_POLE_OUTSIDE_BOUNDARY&&(q=1),t==g.Cg.PE_POLE_POINT&&n!=g.Cg.PE_POLE_OUTSIDE_BOUNDARY&&(q|=2),0!==q&&(f=!0))),b=g.zb.Mz(b,d,this.Qm,a),e&&(b=g.Xl.local().V(b,k,a)),g.zb.Lx(d,b,h));if(b.B())return b;f&&(b=g.Yl.local().V(b,d,!1,a)); null!=c&&(b=c.Zk(b,!1),this.wp(c,g.bm.reverse,b),b=c.$k(b,!1));return b};l.tv=function(c){if(2!=c.Sb())return 0;var a=0,b=c.kk();c=b.getNorthPoleLocation();var d=b.getSouthPoleLocation(),e=b.getNorthPoleGeometry();b=b.getSouthPoleGeometry();e==g.Cg.PE_POLE_POINT&&c!=g.Cg.PE_POLE_OUTSIDE_BOUNDARY&&(a=1);b==g.Cg.PE_POLE_POINT&&d!=g.Cg.PE_POLE_OUTSIDE_BOUNDARY&&(a|=2);return a};l.prototype.hW=function(c,a){var b=this.hf.ef,d=this.hf.Yf,e=b.Sb(),f=d.Sb(),h=g.O.Fu(Math.min(c.I(),64)),k=g.Ta.jg(c);3==e&& (c=b.Ji,b=c.fk(),e=b.Sb(),k=c.$k(k,!0),this.wp(c,g.bm.forward,k),k=c.Zk(k,!0));c=null;3==f&&(c=d.Ji,d=c.fk(),f=d.Sb());var m=2==e;e=(f=2==f)?d.sc():d;var n=!f&&!this.Uv;if(m){if(k=g.zb.UI(k,b,this.lo,a),k.B())return k}else{var p=new g.l;k.xc(p);var q=b.Oe();if(p.Gq.H)if(p=g.l.construct(p.v-1,q.G,p.C+1,q.H),k=g.ri.Nu(k,p,b,NaN,0,a),k.B())return k}var r=NaN;m&&(r=b.zi());p=null!=d.Wr();q=this.mH;var t=!isNaN(q);t&&(k=g.Xl.local().V(k,q,a));if(this.aH)m&&g.zb.ur(b,r,k,h),t&&(m=b.hh(),r=b.sc().hh(), q*=r/m),g.zb.tr(this.hf,k,n,h),t&&(m=b.sc().hh(),r=d.sc().hh(),q*=r/m),b=k;else{var u=new g.Ta(k.description);u.DD(k);m&&(g.zb.ur(b,r,u,h),t&&(m=b.hh(),r=b.sc().hh(),q*=r/m));g.zb.tr(this.hf,u,n,h);t&&(m=b.sc().hh(),r=d.sc().hh(),q*=r/m);n=NaN;f?n=d.zi():isNaN(this.Bm)||(n=this.Bm);m=l.tv(b)|l.tv(d);r=10*e.Xd(0);this.Uv&&(m=3,r=0);b=g.zb.VQ(k,b,u,e,n,a,m,r)}p&&(b=g.zb.XD(b,d,a));f&&(b=g.zb.Mz(b,d,this.Qm,a),t&&(b=g.Xl.local().V(b,q,a)),g.zb.Lx(d,b,h));if(b.B())return b;null!=c&&(b=c.Zk(b,!1),this.wp(c, g.bm.reverse,b),b=c.$k(b,!1));return b};l.prototype.eW=function(c,a){var b=(c.ca()+c.R())/400;0!=b?(b=g.Xl.local().V(c,b,a),b=this.VI(b,a),a=c.Ia(),b.bn(a)):(a=new g.Sa(c.Ip()),b=this.XI(a),a=c.Ia(),b.B()?a.Oa():(c.copyTo(a),c=b.D(),a.K(c.x,c.y,c.x,c.y)));return a};l.prototype.fW=function(c,a){c=g.aa.jg(c);var b=this.hf.ef,d=this.hf.Yf,e=b.Sb(),f=d.Sb(),h=g.O.Fu(Math.min(c.I(),64));if(3==e){var k=b.Ji;b=k.fk();e=b.Sb();c=k.Zk(c,!0);this.wp(k,g.bm.forward,c);c=k.$k(c,!0)}if(2==e){this.lo==g.si.Clip? c=g.Xj.local().V(c,b.ml(),b,a):b.Wc()&&(e=new g.l,c.xc(e),b.Oe().contains(e)||(this.lo==g.si.PannableFold&&(c=g.zb.lj(c,b)),g.zb.Jt(c,b.Oe(),b.Xd(0),!0),c=g.zb.Fn(c,b,0,!0,0,a)));if(c.B())return c;g.zb.ur(b,0,c,h)}else g.zb.Jt(c,b.Oe(),b.Xd(0),!0);g.zb.tr(this.hf,c,!1,h);b=0;e=!1;k=null;3==f&&(e=!0,k=d.Ji,d=k.fk(),f=d.Sb());(f=2==f)?b=d.zi():isNaN(this.Bm)||(b=this.Bm);f&&this.Qm!=g.si.Clip||(c=g.zb.Fn(c,d.sc(),b,!1,0,a));if(f&&(c=g.zb.Mz(c,d,this.Qm,a),g.zb.Lx(d,c,h),c.B()))return c;e&&(c=k.Zk(c, !0),this.wp(k,g.bm.reverse,c),c=k.$k(c,!0));return c};l.prototype.wp=function(c,a,b){var d=b.I();if(0!=d){for(var e=b.ub(0),f=g.O.lg(200,0),h=[],k=0;ke.v+f&&ka?this.wv(b,d):this.gv(b,d);case 1:var e=this.wv(b,d);b=this.gv(b,d);return g.lc.hq(e,b,a);case 2:throw g.i.fa("not implemented");}throw g.i.Qa();};c.prototype.fe=function(a,b){var d= this.pa-this.sa,e=this.la-this.na,f=d*d+e*e;if(0==f)return.5;a=((a.x-this.sa)*d+(a.y-this.na)*e)/f;b||(0>a?a=0:1b||1b||1b?-1:a<-b?1:0};c.prototype.rp=function(a,b,d,e){var f=this.sa,h=this.na,k=a-f,m=b-h;k=Math.sqrt(k*k+m*m);if(k<=Math.max(d,6.661338147750939E-16*k))return e&&0==k?NaN:0;k=a-this.pa;m=b-this.la;k=Math.sqrt(k*k+m*m);if(k<=Math.max(d,6.661338147750939E-16*k))return e&&0==k?NaN:1;k=this.pa-this.sa;m=this.la-this.na;e=Math.sqrt(k*k+ m*m);if(0e+t)return NaN;if(Math.abs(p*k+q*m)<=Math.max(d,1.7763568394002505E-15*(Math.abs(p*k)+Math.abs(q*m)))&&(k=g.O.Rk(r*n,0,1),.5>=k?(m=this.sa+(this.pa-this.sa)*k,e=this.na+(this.la-this.na)*k):(m=this.pa-(this.pa-this.sa)*(1-k),e=this.la-(this.la-this.na)*(1-k)),g.h.Oy(m,e,a,b)<=d)){if(.5>k){if(g.h.Oy(m,e,f,h)<=d)return 0}else if(g.h.Oy(m,e,this.pa, this.la)<=d)return 1;return k}}return NaN};c.prototype.Nb=function(a){return null==a?!1:a==this?!0:a.constructor!==this.constructor?!1:this.FM(a)};c.prototype.rD=function(a,b,d){var e=d?this.sa:this.pa;d=d?this.na:this.la;var f=new g.h;f.x=a.pa-e;f.y=a.la-d;return b.Qh(f)>6.661338147750939E-16*b.fD(f)?(f.x=a.sa-e,f.y=a.na-d,b.Qh(f)<=6.661338147750939E-16*b.fD(f)):!0};c.prototype.qD=function(a){var b=new g.h;b.x=this.pa-this.sa;b.y=this.la-this.na;if(!this.rD(a,b,!1))return!1;b.Sq();return this.rD(a, b,!0)?!0:!1};c.NM=function(a,b){var d=a.uu(b.sa,b.na),e=a.uu(b.pa,b.la);if(0>d&&0>e||0d&&0>e||0e?a.qD(b):b.qD(a)};c.LM=function(a,b,d){var e=g.h.construct(NaN,NaN),f=a.pa-a.sa,h=a.la-a.na,k=b.pa-b.sa,m=b.la-b.na,n=k*h-f*m;if(0==n)return e;var p=8.881784197001252E-16*(Math.abs(k*h)+Math.abs(f*m)),q=b.sa-a.sa,r=b.na-a.na,t=k*r-q*m,u=t/n,w=Math.abs(n);k=(8.881784197001252E-16*(Math.abs(k*r)+Math.abs(q* m))*w+p*Math.abs(t))/(n*n)+2.220446049250313E-16*Math.abs(u);if(u<-k||u>1+k)return e;m=f*r-q*h;k=m/n;f=(8.881784197001252E-16*(Math.abs(f*r)+Math.abs(q*h))*w+p*Math.abs(m))/(n*n)+2.220446049250313E-16*Math.abs(k);if(k<-f||k>1+f)return e;u=g.O.Rk(u,0,1);f=g.O.Rk(k,0,1);h=a.hc(u);n=b.hc(f);p=new g.h;p.uc(h,n);if(p.length()>d&&(p.add(h,n),p.scale(.5),u=a.fe(p,!1),f=b.fe(p,!1),a=a.hc(u),b=b.hc(f),a.sub(b),a.length()>d))return e;e.ma(u,f);return e};c.OM=function(a,b,d,e){var f=0;if(a.sa==b.sa&&a.na==b.na|| a.sa==b.pa&&a.na==b.la)if(f++,!e)return 1;if(a.pa==b.sa&&a.la==b.na||a.pa==b.pa&&a.la==b.la){f++;if(2==f)return 2;if(!e)return 1}return b.vi(a.sa,a.na,d)||b.vi(a.pa,a.la,d)||a.vi(b.sa,b.na,d)||a.vi(b.pa,b.la,d)?1:e&&0!=f?0:0==c.NM(a,b)?0:1};c.Zx=function(a,b,d,e,f,h){var k=0,m=a.rp(b.sa,b.na,h,!1),n=a.rp(b.pa,b.la,h,!1),p=b.rp(a.sa,a.na,h,!1),q=b.rp(a.pa,a.la,h,!1);isNaN(m)||(null!=e&&(e[k]=m),null!=f&&(f[k]=0),null!=d&&(d[k]=g.h.construct(b.sa,b.na)),k++);isNaN(n)||(null!=e&&(e[k]=n),null!=f&&(f[k]= 1),null!=d&&(d[k]=g.h.construct(b.pa,b.la)),k++);2==k||isNaN(p)||0==m&&0==p||0==n&&1==p||(null!=e&&(e[k]=0),null!=f&&(f[k]=p),null!=d&&(d[k]=g.h.construct(a.sa,a.na)),k++);2==k||isNaN(q)||1==m&&0==q||1==n&&1==q||(null!=e&&(e[k]=1),null!=f&&(f[k]=q),null!=d&&(d[k]=g.h.construct(b.pa,b.la)),k++);if(0e[1]&&(a=e[0],e[0]=e[1],e[1]=a,null!=f&&(e=f[0],f[0]=f[1],f[1]=e),null!=d&&(f=g.h.construct(d[0].x,d[0].y),d[0]=d[1],d[1]=f)),k;k=c.LM(a,b,h);if(isNaN(k.x))return 0;null!=d&& (d[0]=a.hc(k.x));null!=e&&(e[0]=k.x);null!=f&&(f[0]=k.y);return 1};c.prototype.eG=function(){return 0};c.prototype.op=function(){};c.prototype.toString=function(){return"Line: ["+this.sa.toString()+", "+this.na.toString()+", "+this.pa.toString()+", "+this.la.toString()+"]"};return c}(g.SC);g.yb=v})(D||={});(function(g){var v=function(){function l(){this.Jm=[];this.ya=-1}l.prototype.La=function(){return this.ya};l.prototype.next=function(){if(null!=this.Jm&&0!=this.Jm.length){this.ya++;var c=this.Jm[0]; this.Jm=1>=this.Jm.length?[]:this.Jm.slice(1);return c}return this.Jm=null};l.prototype.ZX=function(c){this.Jm.push(c)};l.prototype.qe=function(){};return l}();g.gL=v})(D||={});(function(g){(function(l){l[l.enumFillRuleOddEven=0]="enumFillRuleOddEven";l[l.enumFillRuleWinding=1]="enumFillRuleWinding"})(g.SL||(g.SL={}));var v=function(l){function c(a,b){var d=l.call(this)||this;d.xf=!1;d.Eq=null;d.sq=0;d.rq=0;d.Aj=null;d.Mg=!1;d.nb=null;d.mb=null;d.Ve=null;d.Lj=null;d.Sd=null;d.tq=0;d.gb=0;d.xq=0;if(void 0=== b)d.xf=a,d.Mg=!1,d.tq=0,d.sq=0,d.rq=0,d.wa=0,d.description=g.ee.og();else{if(null==b)throw g.i.N();d.xf=a;d.Mg=!1;d.tq=0;d.sq=0;d.rq=0;d.wa=0;d.description=b}d.Aj=null;d.gb=0;return d}R(c,l);c.prototype.tm=function(){return 0b)throw g.i.Qa();if(this.dc(a)){if(null==this.mb)throw g.i.Qa();var d=this.wa,e=this.Ba(a),f=this.Vc(a);this.dm(this.wa+1);this.mc();for(var h=0,k=this.description.Aa;ha;b--)d= this.nb.read(b),this.nb.write(b,d+1);this.mb.KE(a,1)}};c.prototype.Ap=function(){this.wx();if(void 0===a){this.Mg=!1;var a=this.da()-1}var b=this.mb.read(a);this.mb.write(a,b|1);null!=this.Ve&&(a=this.Vc(a)-1,this.Ve.write(a,1),this.Lj.write(a,-1))};c.prototype.dc=function(a){return 0!=(this.mb.read(a)&1)};c.prototype.Nn=function(a){if(this.dc(a))return!0;var b=this.Ba(a);a=this.Vc(a)-1;if(b>a)return!1;b=this.Na(b);a=this.Na(a);return b.qb(a)};c.prototype.yv=function(a){return 0!=(this.mb.read(a)& 2)};c.prototype.oc=function(a,b){this.Jl(a.description);if(322==a.getType()){var d=new g.Sa;if(b||this.B())a.To(d),this.nf(d);a.Po(d);this.lineTo(d)}else throw g.i.Qa();};c.prototype.tp=function(a){var b=0==this.wa;this.sx(a.v,a.G);this.yj(a.v,a.H);this.yj(a.C,a.H);this.yj(a.C,a.G);this.Ap();this.Mg=!1;b&&this.Lf(256,!1)};c.prototype.ad=function(a,b){if(!a.B()){for(var d=0==this.wa,e=new g.Sa(this.description),f=0;4>f;f++)a.Hf(b?4-f-1:f,e),0==f?this.nf(e):this.lineTo(e);this.Ap();this.Mg=!1;d&&!b&& this.Lf(256,!1)}};c.prototype.add=function(a,b){for(var d=0;db&&(b=a.da()-1);if(b>=a.da()||0>d||0>e||e>a.rv(b))throw g.i.fa("index out of bounds");if(0!=e){var h=a.dc(b)&&d+e==a.rv(b);if(!h||1!=e){this.Mg=!1;this.Jl(a.description);d=a.Ba(b)+d+1;f&&(e++,d--);h&&e--;h=this.wa;this.dm(this.wa+e);this.mc();if(f){if(0== e)return;this.nb.add(this.wa);f=a.mb.read(b);f&=-5;this.xf&&(f|=1);this.mb.write(this.mb.size-1,f);this.mb.add(0)}else this.nb.write(this.mb.size-1,this.wa);f=0;for(var k=this.description.Aa;fp||null==a.za[p]?this.za[f].Ln(n*h,g.ra.se(m),e*n,n*h):this.za[f].Mn(n*h,a.za[p],n*d,e*n,!0,n,n*h)}if(this.tm())throw g.i.Qa();if(a.yv(b))throw g.i.Qa();this.Pc(1993)}}};c.prototype.oJ=function(){for(var a=0,b=this.da();a=this.da())throw g.i.N();var b=this.Ba(a),d=this.Ja(a);a=this.dc(a)?1:0;for(var e=0,f=this.description.Aa;ea&&(a=b-1);if(a>=b)throw g.i.N();for(var d=this.Ba(a),e=this.Ja(a),f=0,h=this.description.Aa;f=b.da())throw g.i.N();var f=this.da();if(a>f)throw g.i.N();0>a&&(a=f);0>d&&(d=b.da()-1);this.Mg=!1;this.Jl(b.description);b.mc();var h=b.Ba(d),k=b.Ja(d),m=this.wa,n=b.dc(d)&&!e?1:0;this.dm(this.wa+k);this.mc();for(var p=a< f?this.Ba(a):m,q=0,r=this.description.Aa;q=a+1;e--)h=this.nb.read(e-1),this.nb.write(e,h+k);b.yv(d);this.mb.add(0);for(e=f-1;e>=a+1;e--)f=this.mb.read(e),f&=-5,this.mb.write(e+1,f);f=b.JR().read(d);f&=-5;this.xf&&(f|=1);this.mb.write(a, f)};c.prototype.Hz=function(a,b){var d=-1,e=this.da();if(d>e)throw g.i.N();0>d&&(d=e);this.Mg=!1;var f=this.wa;this.dm(this.wa+b);this.mc();var h=d=d+1;f--)h=this.nb.read(f-1),this.nb.write(f,h+b);this.mb.add(0);for(f=e-1;f>=d+1;f--)b= this.mb.read(f),b&=-5,this.mb.write(f+1,b);this.xf&&this.mb.write(d,1)};c.prototype.qG=function(a,b,d){var e=-1;0>a&&(a=this.da());if(a>this.da()||e>this.Ja(a)||d>b.length)throw g.i.fa("index out of bounds");if(0!=d){a==this.da()&&(this.nb.add(this.wa),this.xf?this.mb.add(1):this.mb.add(0));0>e&&(e=this.Ja(a));this.mc();var f=this.wa;this.dm(this.wa+d);this.mc();for(var h=0,k=this.description.Aa;ha&&(a=this.da());if(a>=e||b>this.Ja(a))throw g.i.fa("index out of bounds"); a==this.da()&&(this.nb.add(this.wa),this.xf?this.mb.add(1):this.mb.add(0));0>b&&(b=this.Ja(a));var f=this.wa;this.dm(this.wa+1);this.mc();var h=this.Ba(a);this.za[0].vj(2*(h+b),d,2*f);d=1;for(var k=this.description.Aa;da&&(a=d-1);if(a>=d||b>=this.Ja(a))throw g.i.fa("index out of bounds");this.mc();var e=this.Ba(a); 0>b&&(b=this.Ja(a)-1);b=e+b;e=0;for(var f=this.description.Aa;e=a+1;d--)b=this.nb.read(d),this.nb.write(d,b-1);this.wa--;this.Pg--;this.Pc(1993)};c.prototype.uE=function(a,b,d){var e=this.Ba(a)+b;d=this.Ba(d)+void 0;if(de||d>this.I()-1)throw g.i.N();a=this.Ga();b=0;a.Vb(e);do{for(;a.Ha();){e=a.ha();if(a.wb()==d)break;e=e.Qb();b+=e}if(a.wb()==d)break}while(a.$a());return b};c.prototype.fO= function(a,b,d){b=this.Ba(a)+b;d=this.Ba(a)+d;if(0>b||d>this.I()-1)throw g.i.N();var e=this.Ga();if(b>d){if(!this.dc(a))throw g.i.N("cannot iterate across an open path");e.JB()}var f=a=0;e.Vb(b);do f+=a,a=e.ha().Qb();while(e.wb()!=d);return f};c.prototype.mg=function(){return g.pi.gm(this,null)};c.prototype.KS=function(a,b,d){for(var e=a;eb){var h=this.tm(),k=0;b=this.wa}else h=this.yv(b),k=this.Ba(b),b=this.Vc(b);for(;k=this.Ba(b))return b;b--}else b++;if(0<=b&&b=this.Ba(b)&&ad){for(b=0;bb;){var e=b+(d-b>>1),f=this.Ba(e);if(a=b)b=e+1;else return this.gb=e}return this.gb=b};c.prototype.yz=function(){var a= this.I();if(!this.xf){a-=this.da();for(var b=0,d=this.da();bd.RR())this.Bb.yD(null);else return!0;d=g.Nx.create(this,a,b);this.Bb.yD(d);return!0};c.prototype.cc=function(){var a= l.prototype.cc.call(this);if(!this.Ac()){var b=this.da();null!=this.nb&&this.nb.An(a,0,b+1);null!=this.mb&&this.mb.An(a,0,b)}return a};c.prototype.ZF=function(a){return null!=this.Ve?this.Ve.read(a):1};c.prototype.bc=function(a,b,d){var e=this.sz(a);if(a==this.Vc(e)-1&&!this.dc(e))throw g.i.fa("index out of bounds");this.mc();var f=this.Ve,h=1;null!=f&&(h=f.read(a)&7);switch(h){case 1:b.Or();break;case 2:throw g.i.Qa();case 4:throw g.i.Qa();default:throw g.i.Qa();}b=b.get();d?b.Nf(g.ee.og()):b.Nf(this.description); e=a==this.Vc(e)-1&&this.dc(e)?this.Ba(e):a+1;f=new g.h;this.D(a,f);b.Dc(f);this.D(e,f);b.Qc(f);if(!d)for(d=1,f=this.description.Aa;d=this.da())throw g.i.N();if(this.B())b.Oa();else{if(this.yv(a))throw g.i.fa("not implemented");var d=this.ub(0),e=new g.h,f=new g.l;f.Oa();var h=this.Ba(a);for(a=this.Vc(a);hthis.I())return!1;a=g.ta.nE(this);this.Bb.WM(a);return!0};c.prototype.hM=function(){null==this.Bb&&(this.Bb=new g.Uk);if(null==this.Bb.zo){this.Bb.xD(null);var a=g.ta.YN(this);this.Bb.xD(a)}};c.prototype.Yo=function(a){this.xq=a};c.prototype.In=function(){return this.xq};c.prototype.DD=function(a){if(this==a)throw g.i.fa("MultiPathImpl.add");for(var b=this.da(),d=0;d=b||ad?a.I():d;if(0>b||b>a.I()||db?d:b;if(0>d||0>b)throw g.i.N();if(0!=b){d=b-0;b=this.wa;this.resize(this.wa+d);for(var e=0;ea||a>=this.I())throw g.i.fa("index out of bounds");this.mc();for(var b=0,d=this.description.Aa;bb||b>=this.wa||da?a:l};v.Th=function(l,c){var a=5381;a=void 0!==c?(c<<5)+c+(l&255):(a<<5)+a+(l&255);a=(a<<5)+a+(l>>8&255);a=(a<<5)+a+(l>>16&255);return(a<<5)+a+(l>>24&255)&2147483647};v.uj=function(){throw Error("Not Implemented");};v.bB=function(l){return v.aU(l)+12345&2147483647};v.XG=function(l){var c= 32,a=l%v.Qx|0,b=l/v.Qx|0;if(0===(c&=63))return l;32>c?(l=a>>>c|b<<32-c,c=b>>c):(l=b>>c-32,c=0<=b?0:-1);return c*v.Qx+(l>>>0)};v.aU=function(l){l|=0;return(1103495168*l|0)+(20077*l|0)|0};v.truncate=function(l){return 0>l?-1*Math.floor(Math.abs(l)):Math.floor(l)};v.MAX_SAFE_INTEGER=Math.pow(2,53)-1;v.MIN_SAFE_INTEGER=-v.MAX_SAFE_INTEGER;v.VC=65536;v.Qx=v.VC*v.VC;return v}()})(D||={});(function(g){(function(l){l[l.Project=0]="Project";l[l.Union=1]="Union";l[l.Difference=2]="Difference";l[l.Proximity2D= 3]="Proximity2D";l[l.Relate=4]="Relate";l[l.Equals=5]="Equals";l[l.Disjoint=6]="Disjoint";l[l.Intersects=7]="Intersects";l[l.Within=8]="Within";l[l.Contains=9]="Contains";l[l.Crosses=10]="Crosses";l[l.Touches=11]="Touches";l[l.Overlaps=12]="Overlaps";l[l.Buffer=13]="Buffer";l[l.Distance=14]="Distance";l[l.Intersection=15]="Intersection";l[l.Clip=16]="Clip";l[l.Cut=17]="Cut";l[l.DensifyByLength=18]="DensifyByLength";l[l.DensifyByAngle=19]="DensifyByAngle";l[l.LabelPoint=20]="LabelPoint";l[l.GeodesicBuffer= 21]="GeodesicBuffer";l[l.GeodeticDensifyByLength=22]="GeodeticDensifyByLength";l[l.ShapePreservingDensify=23]="ShapePreservingDensify";l[l.GeodeticLength=24]="GeodeticLength";l[l.GeodeticArea=25]="GeodeticArea";l[l.Simplify=26]="Simplify";l[l.SimplifyOGC=27]="SimplifyOGC";l[l.Offset=28]="Offset";l[l.Generalize=29]="Generalize";l[l.SymmetricDifference=30]="SymmetricDifference";l[l.ConvexHull=31]="ConvexHull";l[l.Boundary=32]="Boundary";l[l.SimpleRelation=33]="SimpleRelation"})(g.CL||(g.CL={}));var v= function(){function l(){}l.prototype.getType=function(){return null};l.prototype.wn=function(){};l.prototype.Iu=function(){return!1};return l}();g.Je=v})(D||={});(function(g){var v=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}R(c,l);c.prototype.getType=function(){return 13};c.local=function(){null===c.instance&&(c.instance=new c);return c.instance};c.prototype.V=function(a,b,d,e,f){return a instanceof g.aa?(f=new g.Zc(a),this.V(f,b,[d],!1,e).next()):!0===e?(d=new g.BC(a, b,d,!1,f),g.Gh.local().V(d,b,f)):new g.BC(a,b,d,!1,f)};c.instance=null;return c}(g.Je);g.AC=v})(D||={});(function(g){var v=function(){function l(c,a,b,d,e){this.ya=-1;this.Rd=c;this.$z=a;this.Cs=b;this.tT=new g.l;this.tT.Oa();this.eo=-1;this.Ub=e}l.prototype.next=function(){for(var c;null!=(c=this.Rd.next());)return this.ya=this.Rd.La(),this.eo+1=c.I()?!0:!1:1!=c.da()?!1:2>=c.I()?!0:g.Zt.JG(c,0)};return l}();g.DC=v})(D||={});(function(g){var v=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}R(c,l);c.prototype.getType=function(){return 17};c.local=function(){null===c.instance&&(c.instance=new c);return c.instance};c.prototype.V= function(a,b,d,e,f){return new g.nL(a,b,d,e,f)};c.instance=null;return c}(g.Je);g.mL=v})(D||={});(function(g){var v=function(){function l(c,a,b,d,e){this.Tf=null;if(null==a||null==b)throw g.i.fa("invalid argument");this.qT=c;this.nA=a;this.lH=b;c=g.ta.mv(a,b);this.qa=g.ta.Wd(d,c,!0);this.kH=-1;this.nd=e}l.prototype.La=function(){return 0};l.prototype.next=function(){this.RQ();return++this.kHthis.Tf.length&&(this.Tf.length=0)};l.prototype.SQ= function(){var c=new g.ia(0),a=new g.gd,b=a.aF(),d=a.Ib(this.nA),e=a.Ib(this.lH),f=new g.Fg;try{f.Ft(a,this.qa,this.nd);f.dl(b,d,e,c);var h=a.Ne(d),k=new g.Da,m=new g.Da;this.Tf.length=0;this.Tf.push(k);this.Tf.push(m);for(d=0;d=b)throw g.i.N();return new g.oL(a,b,d)};c.instance=null; return c}(g.Je);g.Xl=v})(D||={});(function(g){var v=function(){function l(c,a){this.ya=-1;this.Rd=c;this.Ps=a}l.prototype.La=function(){return this.ya};l.prototype.next=function(){var c;return null!=(c=this.Rd.next())?(this.ya=this.Rd.La(),this.NP(c)):null};l.prototype.NP=function(c){if(c.B()||1>c.Db())return c;var a=c.getType();if(1736==a||1607==a)return this.Ny(c);if(g.aa.yd(a))return this.PP(c);if(197==a)return this.OP(c);throw g.i.Qa();};l.prototype.PP=function(c){if(c.Qb()<=this.Ps)return c; var a=new g.Ta(c.description);a.oc(c,!0);return this.Ny(a)};l.prototype.OP=function(c){var a=new g.Da(c.description);a.ad(c,!1);var b=new g.l;c.A(b);c=b.ca();return b.R()<=this.Ps&&c<=this.Ps?a:this.Ny(a)};l.prototype.Ny=function(c){for(var a=c.Ia(),b=c.Ga();b.$a();)for(var d=!0;b.Ha();){var e=b.ha();if(322!=e.getType())throw g.i.fa("not implemented");var f=b.On(),h=e.Qb();if(h>this.Ps){var k=Math.ceil(h/this.Ps);h=new g.Sa(c.description);d&&(e.To(h),a.nf(h));var m=d=1/k,n=0;for(--k;nh)return a;var k=a.getType(),m=b.getType(),n=new g.l,p=new g.l,q=new g.l;a.A(n);b.A(p);q.K(n);q.Zb(p);q=g.ta.Wd(d,q,!0);var r=q*Math.sqrt(2)*1.00001,t=new g.l;t.K(n);t.W(r,r);if(!t.isIntersecting(p))return a;if(1==f&&2==h)return c.KV(a,b,m,d,e);if(33==k)switch(g.Vk.yd(m)?(d=new g.Ta(b.description),d.oc(b,!0)):d=b,m){case 1736:return c.XU(a,d,q);case 1607:return c.YU(a,d,q);case 550:return c.VU(a,d,q);case 197:return c.UU(a,d,q);case 33:return c.WU(a, d,q);default:throw g.i.N();}else if(550==k)switch(m){case 1736:return c.nU(a,b,q);case 197:return c.lU(a,b,q);case 33:return c.mU(a,b,q)}return g.Fg.im(a,b,d,e)};c.XU=function(a,b,d){return 0==g.hd.KG(b,a,d)?a:a.Ia()};c.YU=function(a,b,d){var e=a.D();b=b.Ga();for(var f=d*Math.sqrt(2)*1.00001,h=f*f,k=new g.l;b.$a();)for(;b.Ha();){var m=b.ha();m.A(k);k.W(f,f);if(k.contains(e)){if(m.qs(e,d))return a.Ia();var n=m.ac();if(g.h.yc(e,n)<=h)return a.Ia();n=m.wc();if(g.h.yc(e,n)<=h)return a.Ia()}}return a}; c.VU=function(a,b,d){var e=b.ub(0);b=b.I();var f=a.D(),h=new g.h;d=d*Math.sqrt(2)*1.00001;d*=d;for(var k=0;kb.I())return this.gE(a,b,d);this.Nt();a=this.gE(b,a,d);this.Nt();return a}if(550==a.getType()&&g.aa.Hc(b.getType()))return a=this.hE(b,a,d),this.Nt(),a;if(550==b.getType()&&g.aa.Hc(a.getType()))return this.hE(a,b,d);if(550==a.getType()&&550==b.getType()){if(a.I()>b.I())return this.iE(a,b);this.Nt(); a=this.iE(b,a);this.Nt();return a}return 0};c.prototype.gE=function(a,b,d){var e=a.Ga(),f=b.Ga(),h=new g.l,k=new g.l,m=1.7976931348623157E308;if(!d&&this.pY(a,b,e,f))return 0;for(;e.$a();)for(;e.Ha();)if(a=e.ha(),a.A(h),!(h.px(this.oh)>m)){for(;f.$a();)for(;f.Ha();)if(b=f.ha(),b.A(k),h.px(k)h)){for(var p=0;pd))for(var p=0;pc.Ja(a))){var e=c.Ba(a),f=c.Vc(a)-1,h=c.ub(0),k=c.dc(a),m= new g.ia(0);m.Jb(c.Ja(a)+1);var n=new g.ia(0);n.Jb(c.Ja(a)+1);m.add(k?e:f);m.add(e);for(e=new g.h;1this.DH&&k>f&&(e=d,f=k)}return e};l.prototype.qe=function(){};return l}();g.sL=v})(D||={});(function(g){var v=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}R(c,l);c.prototype.getType=function(){return 29};c.prototype.V=function(a,b,d,e){return a instanceof g.aa?(a=new g.Zc(a),this.V(a,b,d,e).next()):new g.sL(a,b, d,e)};c.local=function(){null===c.instance&&(c.instance=new c);return c.instance};c.instance=null;return c}(g.Je);g.EC=v})(D||={});(function(g){var v=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}R(c,l);c.prototype.getType=function(){return 21};c.local=function(){null===c.instance&&(c.instance=new c);return c.instance};c.prototype.V=function(a,b,d,e,f,h,k,m){return a instanceof g.aa?(m=new g.Zc(a),this.V(m,b,d,[e],f,h,!1,k).next()):!0===k?(d=new g.GC(a,b,d,e,f,!1,!1,m),g.Gh.local().V(d, b,m)):new g.GC(a,b,d,e,f,!1,!1,m)};c.instance=null;return c}(g.Je);g.FC=v})(D||={});(function(g){var v=function(){function l(c,a,b,d,e,f,h,k){if(f)throw g.i.Ie();if(null==a)throw g.i.N();this.ya=-1;this.Ms=c;this.vg=a;this.ze=b;this.Cs=d;this.$n=e;this.eo=-1;this.Ub=k;this.uT=new g.l;this.uT.Oa()}l.prototype.next=function(){for(var c;null!=(c=this.Ms.next());)return this.ya=this.Ms.La(),this.eo+1a.Db())return 0;if(4==d)throw g.i.Ie();var e=g.cb.sc(b),f=g.cb.vv(e),h=g.cb.ev(e); f*=2-f;var k=e.Hd().ai,m=a.getType();if(1736==m||197==m)var n=a.mg();else g.aa.yd(m)?(n=new g.Ta(a.description),n.oc(a,!0)):n=a;if(0==e.Nb(b)){if(g.cb.Wc(b)){n=g.Hh.lj(n,b);1607==m&&n==a&&(n=g.aa.jg(a));a=new g.Nc;g.cb.gh(b).cn(a);m=0;for(var p=n.I();m=this.Fi||7e?this.nJ():0==b?550==a&&33==this.Dj?this.nJ():l.HB(c,d):l.HB(c,d);if((-1==this.Fi||4==this.Fi)&&197==a&&197==this.Dj)return b=this.Se,a=new g.l,c.A(a),d=new g.l,b.A(d),a.Ea(d),b=new g.Fh,c.copyTo(b),b.Xo(a),b;if(197==a&&0==g.aa.tf(this.Dj)||197==this.Dj&&0==g.aa.tf(a))return d= 197==a?c:this.Se,c=197==a?this.Se:c,a=new g.l,d.A(a),g.Ud.clip(c,a,b,0);if(0==g.aa.tf(a)&&0k&&(k=b.yz());f=b.I()+d.I();if(k*d.I()>Math.log(f)*f*4)return null;f=null;k=d.Ga();null!=m&&null!=m.Fb&&(f=m.Fb);null==f&&20z){if(null!=f)for(null==d?d=f.vR(A,e):d.Uo(A,e),z=d.next();-1!=z;z=d.next()){k.Vb(f.ja(z));z=k.ha();var B=A.Ea(z,null,n,null,e);for(z=0;zx?(r=m.wb()-b.Ba(y),t=1,x=0==x?3:2):t++:(c.oc(C,0==x),x=1);break;case 0:x=0;r=-1;t=0;break;default:return null}C=F}}}else{z=this.QD(a,A.ac(),e);if(0>z)return null;1==z?(2>x&&(r=m.wb()-b.Ba(y),x=0==x?3:2),t++):(r=-1,t=0)}p.clear(!1)}else 0!= z&&1==z&&(0==x?(x=3,r=m.wb()-b.Ba(y)):1==x?(x=2,r=m.wb()-b.Ba(y)):t++)}2<=x&&(c.Dr(b,y,r,t,3==x),r=-1)}return c};l.prototype.QD=function(c,a,b){return g.Dg.wm(c,a,b)};l.prototype.RD=function(c,a,b){var d=a.ac();a=a.wc();var e=g.Dg.wm(c,d,b),f=g.Dg.wm(c,a,b);if(1==e&&0==f||0==e&&1==f)return-1;if(0==e||0==f)return 0;if(1==e||1==f)return 1;e=new g.h;e.add(d,a);e.scale(.5);c=g.Dg.wm(c,e,b);return 0==c?0:1==c?1:-1};l.HB=function(c,a){return a?c:c.Ia()};l.prototype.nJ=function(){null==this.yH&&(this.yH= this.Se.Ia());return this.yH};l.prototype.qe=function(){};return l}();g.HC=v})(D||={});(function(g){var v=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}R(c,l);c.prototype.getType=function(){return 28};c.local=function(){null===c.instance&&(c.instance=new c);return c.instance};c.prototype.V=function(a,b,d,e,f,h,k){return a instanceof g.aa?(a=new g.Zc(a),this.V(a,b,d,e,f,h,k).next()):new g.xL(a,b,d,e,f,h,k)};c.instance=null;return c}(g.Je);g.IC=v})(D||={});(function(g){var v= function(){function l(c,a,b,d,e,f,h){this.ya=-1;this.Rd=c;this.Mj=a;this.Ka=b;this.Ki=d;this.CA=e;this.uH=f;this.nd=h}l.prototype.next=function(){var c=this.Rd.next();return null!=c?(this.ya=this.Rd.La(),this.jL(c)):null};l.prototype.La=function(){return this.ya};l.prototype.jL=function(c){var a=0>=this.uH?g.ta.kj(this.Mj,c,!1):this.uH;return g.IK.V(c,this.Ka,this.Ki,this.CA,a,this.nd)};l.prototype.qe=function(){};return l}();g.xL=v})(D||={});(function(g){(function(l){l[l.clipToDomainOnly=1]="clipToDomainOnly"; l[l.clipWithHorizon=2]="clipWithHorizon";l[l.foldAndClipWithHorizon=3]="foldAndClipWithHorizon"})(g.NK||(g.NK={}));var v=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}R(c,l);c.prototype.getType=function(){return 0};c.local=function(){null===c.instance&&(c.instance=new c);return c.instance};c.prototype.V=function(a,b,d){return a instanceof g.aa?(a=new g.Zc(a),this.V(a,b,d).next()):new g.yL(a,b,d)};c.prototype.transform=function(a,b,d,e){return g.bu.transform(a,b,d,e,!0)}; c.prototype.Qt=function(a,b,d,e){return g.bu.Qt(a,b,d,e)};c.instance=null;return c}(g.Je);g.Hx=v})(D||={});(function(g){var v=function(){function l(c,a,b){this.ya=-1;this.Rd=c;this.MT=a;this.nd=b}l.prototype.next=function(){var c=this.Rd.next();return null!=c?(this.ya=this.Rd.La(),g.bu.zh(c,this.MT,this.nd)):null};l.prototype.La=function(){return this.ya};l.prototype.qe=function(){};return l}();g.yL=v})(D||={});(function(g){var v=function(){function c(){}c.prototype.reset=function(){this.ph=this.xk= -1;this.us=this.kq=!1};c.prototype.AQ=function(a,b,d){for(a.Vb(b,d);a.Ha();){var e=a.ha();e=e.Qb();if(0!=e)return a.wb()}for(a.Vb(b,d);a.Ez();)if(e=a.li(),e=e.Qb(),0!=e)return a.wb();return-1};c.prototype.BQ=function(a,b){for(a.Vb(b,-1);a.Ez();)if(0!=a.li().Qb())return a.wb();return-1};c.prototype.zQ=function(a,b){a.Vb(b,-1);for(a.ha();a.Ha();)if(0!=a.ha().Qb())return a.wb();return-1};c.prototype.yQ=function(a,b,d,e){this.xk=this.AQ(b,d,e);if(-1!=this.xk){b.Vb(this.xk,-1);var f=b.ha(),h=f.hc(f.fe(a, !1));d=g.h.yc(h,a);e=new g.h;e.L(h);e.sub(f.ac());h=new g.h;h.L(a);h.sub(f.ac());this.kq=0>e.wi(h);this.ph=this.zQ(b,this.xk);if(-1!=this.ph){b.Vb(this.ph,-1);f=b.ha();var k=f.fe(a,!1);k=f.hc(k);var m=g.h.yc(k,a);m>d?this.ph=-1:(e.L(k),e.sub(f.ac()),h.L(a),h.sub(f.ac()),this.us=0>e.wi(h))}-1==this.ph&&(this.ph=this.BQ(b,this.xk),-1!=this.ph&&(b.Vb(this.ph,-1),f=b.ha(),k=f.fe(a,!1),k=f.hc(k),m=g.h.yc(k,a),m>d?this.ph=-1:(e.L(k),e.sub(f.ac()),h.L(a),h.sub(f.ac()),this.us=0>e.wi(h),a=this.xk,this.xk= this.ph,this.ph=a,a=this.kq,this.kq=this.us,this.us=a)))}};c.prototype.cO=function(a,b,d,e,f){d=d.Ga();this.yQ(a,d,e,f);if(-1!=this.xk&&-1==this.ph)return this.kq;if(-1!=this.xk&&-1!=this.ph){if(this.kq==this.us)return this.kq;d.Vb(this.xk,-1);a=d.ha().kg();d.Vb(this.ph,-1);b=d.ha().kg();return 0<=a.wi(b)?!0:!1}return b};return c}(),l=function(c){function a(){return null!==c&&c.apply(this,arguments)||this}R(a,c);a.local=function(){null===a.instance&&(a.instance=new a);return a.instance};a.prototype.getType= function(){return 3};a.prototype.nz=function(b,d,e){var f;void 0===f&&(f=!1);if(b.B())return new g.$l;d=d.D();var h=b,k=b.getType();197==k&&(h=new g.Da,h.ad(b,!1),k=1736);switch(k){case 33:return this.xI(h,d);case 550:return this.jI(h,d);case 1607:case 1736:return this.bU(h,d,e,f);default:throw g.i.fa("not implemented");}};a.prototype.oz=function(b,d){if(b.B())return new g.$l;d=d.D();var e=b,f=b.getType();197==f&&(e=new g.Da,e.ad(b,!1),f=1736);switch(f){case 33:return this.xI(e,d);case 550:case 1607:case 1736:return this.jI(e, d);default:throw g.i.fa("not implemented");}};a.prototype.pz=function(b,d,e,f){if(0>f)throw g.i.N();if(b.B())return[];d=d.D();var h=b,k=b.getType();197==k&&(h=new g.Da,h.ad(b,!1),k=1736);switch(k){case 33:return this.TU(h,d,e,f);case 550:case 1607:case 1736:return this.tU(h,d,e,f);default:throw g.i.fa("not implemented");}};a.prototype.bU=function(b,d,e,f){if(1736==b.getType()&&e&&(e=new g.l,b.A(e),e=g.ta.Wd(null,e,!1),0!=(f?g.hd.Yd(b,d,0):g.hd.Yd(b,d,e)))){var h=new g.$l(d,0,0);f&&h.WJ(!0);return h}var k= b.Ga();h=new g.h;for(var m=e=-1,n=1.7976931348623157E308,p=0;k.$a();)for(;k.Ha();){var q=k.ha();q=q.hc(q.fe(d,!1));var r=g.h.yc(q,d);rg.h.Uq(d,q.ac(),q.wc()),1=d)return b.slice(0);b.length=f;return b.slice(0)};a.instance=null;return a}(g.Je);g.Ix=l})(D||={});(function(g){var v=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}R(c,l);c.prototype.getType=function(){return 4};c.prototype.V=function(a,b,d,e,f){return g.am.yB(a,b,d,e,f)};c.local=function(){null===c.instance&&(c.instance=new c);return c.instance};c.prototype.Iu=function(a){return g.Vt.wy(a)};c.prototype.wn=function(a,b,d){g.Vt.CD(a, b,d)};c.instance=null;return c}(g.Je);g.zL=v})(D||={});(function(g){var v=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}R(c,l);c.prototype.getType=function(){return 33};c.prototype.V=function(a,b,d,e,f){return 1073741824===a?!g.ud.zB(b,d,e,4,f):g.ud.zB(b,d,e,a,f)};c.local=function(){null===c.instance&&(c.instance=new c);return c.instance};c.prototype.Iu=function(a){return g.Vt.wy(a)};c.prototype.wn=function(a,b,d){g.Vt.CD(a,b,d)};c.instance=null;return c}(g.Je);g.dj=v})(D||= {});(function(g){var v=function(){function l(c,a,b,d){this.nd=d;this.rT=b;this.ya=-1;if(null==c)throw g.i.N();this.yk=c;this.Mj=a}l.prototype.next=function(){var c;if(null!=(c=this.yk.next())){this.ya=this.yk.La();if(null!=this.nd&&!this.nd.progress(-1,-1))throw g.i.fu("user_canceled");return this.eC(c)}return null};l.prototype.La=function(){return this.ya};l.prototype.eC=function(c){if(null==c)throw g.i.N();return g.Jx.cK(c,this.Mj,this.rT,this.nd)};l.prototype.qe=function(){};return l}();g.AL=v})(D||= {});(function(g){var v=function(l){function c(){return null!==l&&l.apply(this,arguments)||this}R(c,l);c.prototype.getType=function(){return 26};c.prototype.V=function(a,b,d,e){return a instanceof g.aa?(a=new g.Zc(a),this.V(a,b,d,e).next()):new g.AL(a,b,d,e)};c.prototype.rs=function(a,b,d,e,f){return 0<(void 0!==e?g.Jx.rs(a,b,d,e,f):g.Jx.rs(a,b,!1,null,d))};c.local=function(){null===c.instance&&(c.instance=new c);return c.instance};c.instance=null;return c}(g.Je);g.Yl=v})(D||={});(function(g){var v= function(){function f(){this.yq=0}f.prototype.nX=function(h){this.yq&=-2;this.yq|=h?1:0};f.prototype.Wp=function(){return 0!=(this.yq&1)};f.prototype.XF=function(){return this.Wp()?0:1};return f}();g.xY=v;var l=function(){return function(){}}(),c=function(){return function(f,h,k,m){this.x=f;this.y=h;this.Ai=k;this.xm=m}}(),a=function(){function f(h){this.Be=h}f.prototype.compare=function(h,k,m){h=h.ja(m);k=this.Be.lf.read(2*k);h=this.Be.lf.read(2*h);k-=h;return 0>k?-1:0q?1:0};return f}(),d=function(){function f(h,k){this.YI=new g.h;this.parent=h;this.dS=k}f.prototype.nr=function(h,k,m){var n=this.parent,p=this.dS;m.Vd(h,k,function(q,r){return n.Mh(q,r,p)})};f.prototype.$p= function(h){h=this.parent.gi.get(h);this.parent.lf.tc(2*(h>>1),this.YI);return this.YI.y+(0!=(h&1)?this.parent.Oj:-this.parent.Oj)};return f}(),e=function(){function f(h,k,m,n,p){this.nH=h.description;this.X=h;this.Qg=k;this.Oj=g.ta.kj(this.Qg,h,!1);this.Bo=g.ta.kj(this.Qg,h,!0);this.xA=m;this.oT=this.nH.Aa;this.hb=[];this.po=[];this.mh=new g.jp;this.fb=new g.Yj;this.ke=new g.Md;this.ZG=this.ql=p}f.prototype.eT=function(){this.ZG=!0;return(!g.aa.Hc(this.X.getType())||this.GE()&&this.DE(!1))&&this.mO()? g.aa.Hc(this.X.getType())?this.pO()?1607==this.X.getType()?this.rO()?2:0:this.sO()?this.tO():0:0:2:0};f.prototype.kC=function(h,k){var m=this.lf.read(2*h);h=this.lf.read(2*h+1);var n=this.lf.read(2*k);k=this.lf.read(2*k+1);var p=!g.Yt.Cv(m,h,n,k,this.Oj*this.Oj);return p?p:0==this.X.Db()?!1:m==n&&h==k};f.prototype.GE=function(){for(var h=this.X,k=h.xf?3:2,m=0,n=h.da();mthis.Oj)){if(h&&n){var q=p.wv(1,0);p=p.wv(1,0);if(Math.abs(p-q)>k)continue}this.ke=new g.Md(2,m.wb(),-1);return!1}}return!0};f.prototype.mO=function(){var h=this.X,k=null;g.aa.Hc(this.X.getType())&&(k=this.X);var m=(this.ZG||this.ql)&&null!=k,n=h.I();this.lf=h.ub(0);this.gi=new g.ia(0);this.gi.Jb(2*n);this.fi=new g.ia(0);this.fi.Jb(2*n);m&&(null==this.Fl&&(this.Fl=new g.ia(0)),this.Fl.Jb(n));for(var p=h=0;p=k.Vc(h);)h++;this.Fl.add(h)}(new g.Xt).sort(this.fi,0,2*n,new d(this,m));this.fb.clear();this.fb.Vo(new a(this));this.fb.De(n);k=0;for(n*=2;k>1,0==(h&1)){h=this.fb.addElement(m,-1);p=this.fb.we(h);if(-1!=p&&!this.kC(this.fb.ja(p),m))return this.ke=new g.Md(3,m,this.fb.ja(p)),!1;var q=this.fb.lb(h);if(-1!=q&&!this.kC(this.fb.ja(q),m))return this.ke=new g.Md(3,m,this.fb.ja(q)),!1}else if(h= this.fb.search(m,-1),p=this.fb.we(h),q=this.fb.lb(h),this.fb.vd(h,-1),-1!=p&&-1!=q&&!this.kC(this.fb.ja(p),this.fb.ja(q)))return this.ke=new g.Md(3,this.fb.ja(p),this.fb.ja(q)),!1;return!0};f.prototype.pO=function(){return 10>this.X.I()?this.nO():this.oO()};f.prototype.oO=function(){var h=new g.gd;h.Ib(this.X);var k=new g.Md;return g.$t.kI(!1,h,this.Oj,k,this.nd)?(k.Jo=h.Ua(k.Jo),k.Ko=h.Ua(k.Ko),this.ke.Wt(k),!1):!0};f.prototype.nO=function(){var h=this.X,k=h.Ga();for(h=h.Ga();k.$a();)for(;k.Ha();){var m= k.ha();if(!k.Qn()||!k.$S()){h.BW(k);do for(;h.Ha();){var n=h.ha();n=m.zr(n,this.Oj,!0);if(0!=n)return this.ke=new g.Md(2==n?5:4,k.wb(),h.wb()),!1}while(h.$a())}}return!0};f.prototype.sO=function(){var h=this.X;this.hb.length=0;this.po.length=0;this.Zf=h.Ga();this.Zf.JB();var k=new g.ia(0);k.Jb(10);var m=NaN,n=0,p=0;for(h=2*h.I();p>=1;var r=this.lf.read(2*q),t=this.lf.read(2*q+1);if(0!=k.size&&(r!=m||t!=n)){if(!this.RI(k))return!1;null!= k&&k.clear(!1)}k.add(q);m=r;n=t}}return this.RI(k)?!0:!1};f.prototype.rO=function(){for(var h=this.X,k=Array(h.da()),m=0,n=h.da();m>1;this.lf.tc(2*q,p);m=this.Fl.get(q);var r=k[m],t=h.Ba(m),u=h.Vc(m)-1;n.el=q==t||q==u;n.ny=this.ql?!r&&n.el:n.el;n.Ai=m;n.x=p.x;n.y=p.y;n.xm=q;for(var w=new l,y=1,x=this.fi.size;y>1;this.lf.tc(2*q,p);m=this.Fl.get(q);m!=n.Ai&&(r= k[m],t=h.Ba(m),u=h.Vc(m)-1);var z=q==t||q==u,A=this.ql?!r&&n.el:n.el;w.x=p.x;w.y=p.y;w.Ai=m;w.xm=q;w.ny=A;w.el=z;if(w.x==n.x&&w.y==n.y)if(this.ql){if(!w.ny||!n.ny)if(w.Ai!=n.Ai||!w.el&&!n.el)return this.ke=new g.Md(8,w.xm,n.xm),!1}else if(!w.el||!n.el)return this.ke=new g.Md(5,w.xm,n.xm),!1;m=n;n=w;w=m}return!0};f.prototype.JE=function(){for(var h=this.X,k=[],m=-1,n=!1,p=0,q=h.da();p>1;this.lf.tc(2*r,n);p=this.Fl.get(r);m=new c(n.x,n.y,p,r,k[p]);h=[];var t=1;for(q=this.fi.size;t>1;this.lf.tc(2*r,n);p=this.Fl.get(r);p=new c(n.x,n.y,p,r,k[p]);if(p.x==m.x&&p.y==m.y){if(p.Ai==m.Ai)return this.ke=new g.Md(9,p.xm,m.xm),!1;0<=k[p.Ai]&&k[p.Ai]==k[m.Ai]&&(0!=h.length&&h[h.length-1]==m||h.push(m),h.push(p))}m=p}if(0==h.length)return!0;p=new g.jp(!0);g.O.$u(k,-1);n=-1;t=new g.h;t.Rc();m=0;for(q=h.length;m=h.Ke())return this.ke=new g.Md(6,1==h.da()?1:-1,-1),0;if(1==h.da())return this.ql&&!this.JE()?0:2;this.to=g.ia.qf(h.da(),0);this.JA=g.ia.qf(h.da(),-1);for(var k=-1,m=0,n=0,p=h.da();nq?0:256);if(0k||m>=1;n=this.lf.read(2*m+1);if(n!=this.Mo&&0!=h.size){if(!this.ut(h))return 0;null!=h&&h.clear(!1)}h.add(m);this.Mo=n}return 0p.la){var r=this.Zf.wb(),t=this.Su(p,n,this.Zf.gb,!0);0h.Ja(k.gb))){m.EW();for(var w,y,x=!0;k.Ha();){var z=k.ha(),A=m.li();if(k.wb()>m.wb())break;x&&(t.add(k.wb()),u.add(m.ik()),x=!1);y=t.Fc();var B=k.ik();if(1this.Bo?t.add(k.ik()):q&&(w=h.Uc(1,t.Fc(),0),z=z.gv(1,0),Math.abs(z-w)>r&&t.add(k.ik()));y>this.Bo?u.add(m.wb()):q&&(w=h.Uc(1,u.Fc(),0),z=A.gv(1,0),Math.abs(z-w)>r&&u.add(m.wb()))}t.Fc()u.size?t.If():u.If():(t.Fc()!=u.Fc()&&u.If(),u.If());if(2<=u.size+t.size){x=new g.Sa;A=0;for(z=t.size;A>1;var p=n>>1,q=new g.h,r=new g.h;this.lf.tc(2*k,q);q.y+=0!=(h&1)?this.Oj:-this.Oj;this.lf.tc(2*p,r);r.y+=0!=(n&1)?this.Oj:-this.Oj;h=q.compare(r);return 0==h&&m?(m=this.Fl.get(k)-this.Fl.get(p),0>m?-1:0p.x)return 1;if(n.yp.y)return 1;for(n=1;nu)return 1}}return 0};f.prototype.PO=function(h,k){var m=this.Ou(h,k);return 0==m?hk?1:0h?a:b;if(a.B())return b;if(b.B())return a;var k=new g.l,m=new g.l,n=new g.l;a.A(k);b.A(m);n.K(k);n.Zb(m);k=g.ta.Wd(d,n,!0);m=a.getType();n=b.getType();return 33==m&&33==n?c.aV(a,b,k):m!= n?0h?a:b:550==m?c.iI(a,b,k):c.iI(b,a,k):g.Fg.ep(a,b,d,e)};c.aV=function(a,b,d){d=d*Math.sqrt(2)*1.00001;d*=d;var e=a.D(),f=b.D(),h=new g.de(a.description);g.h.yc(e,f)>d&&(h.add(a),h.add(b));return h};c.iI=function(a,b,d){var e=a.ub(0),f=a.I(),h=b.D(),k=a.Ia();d=d*Math.sqrt(2)*1.00001;var m=new g.l;a.A(m);m.W(d,d);if(m.contains(h)){d*=d;m=!1;for(var n=[],p=0;pthis.zk||0>this.bo)throw g.i.Qa();if(this.AH[this.bo])break}this.ya++;return this.fG(this.bo)}this.ya=0;this.bo=this.zk;return this.fG(this.zk)};a.prototype.La=function(){return this.ya};a.prototype.qK=function(){if(this.Ic)return!0;var b=null;null!=this.Rd&&(b=this.Rd.next(),null==b&&(this.Ic=!0,this.Rd=null));g.mp.zp(this.Ub);if(null!=b){var d=b.Db();this.AH[d]=!0;d>=this.zk&&!this.jA&&(this.ND(d,!1,b),d>this.zk&& !this.jA&&this.zW(d))}if(0this.Do.length)for(var h=0,k=Math.max(2,b+1);hd?g.F.Wq(p,n,m,q,0):g.F.Wq(p,m,n,q,0);t=[0,0,0];u=[0,0,0];var x=[0,0,0];m=[0,0,0];r=[0,0,0];var z=Math.acos(q[2]/1),A=1-c,B=Math.tan(z),C=1+B*B/A,E=2*p[2]*B/A;B=Math.sqrt(E*E-4*C*(p[2]*p[2]/A-1));C*=2;A=(-E+B)/C;E=(-E-B)/C;B=Math.tan(z); C=B*A+p[2];z=(A+E)/2;p=(C+(B*E+p[2]))/2;B=g.F.gp(A-z,C-p);A=p/y*1.570796326794897;for(E=0;100>E;E++){C=g.F.w(c,A);C=C*C/Math.cos(A)*(Math.sin(A)-p*C/(1-c));if(g.s.Cd(C))break;A-=C}p=g.F.n(1,c,A)*Math.cos(A);p=Math.sqrt((p-z)*(p+z));B=1-B/p;B*=2-B;C=g.F.on(t);z=g.F.on(u);A=g.F.on(x);var F=g.F.St(x,t);E=g.F.St(x,u);g.F.zx(x,t,m);g.F.zx(x,u,r);t=Math.acos(F/(A*C));u=Math.acos(E/(A*z));u*=g.s.Mb(1,g.F.St(m,r));if(1.570796326794897<=g.s.P(t)&&1.570796326794897<=g.s.P(u)||3.141592653589793r&&0>d&&(d=g.F.ba(d+3.141592653589793));null!=f&&(f.u=m);null!=h&&(h.u=r);null!=k&&(k.u=d)}}};v.rf=function(l,c,a,b,d,e,f,h){var k=[0,0,0],m=[0,0,0],n=[0,0,0],p=[0,0,0],q=[0,0,0],r=[0,0,0],t=[0,0,0],u=[0,0,0,0],w=new g.ga(0),y=new g.ga(0),x=new g.ga(0),z=new g.ga(0),A=new g.ga(0),B=new g.ga(0);if(null!=f&&null!=h)if(g.s.ti(c))g.Yg.rf(l,a,b,d,e,f,h);else if(g.s.Cd(d))null!=f&&(f.u=a),null!=h&&(h.u=b);else if(e=g.F.ba(e),0>d&&(d=g.s.P(d),e=g.F.ba(e+3.141592653589793)),a=g.F.ba(a),b=g.F.ba(b),1.570796326794897< g.s.P(b)&&(a=g.F.ba(a+3.141592653589793),b=g.s.Mb(3.141592653589793,b)-b),g.s.Y(g.s.P(b),1.570796326794897)||g.s.Cd(b)||g.s.Cd(e)||g.s.Y(g.s.P(e),3.141592653589793))g.Wk.rf(l,c,a,b,d,e,f,h);else{var C=Math.sqrt(1-c);l=d/l;g.F.cl(1,c,b,0,0,z,A,B);k[0]=z.u;k[1]=A.u;k[2]=A.u;t[0]=0;t[1]=0;t[2]=-1*c*g.F.n(1,c,b)*Math.sin(b);z=g.F.n(1,c,b);A=g.F.ba(1.570796326794897-e);B=Math.sin(A);d=Math.cos(b);b=Math.sin(b);q[0]=z*d-b*B;q[1]=Math.cos(A);q[2]=(1-c)*z*b+d*B;0>e?g.F.Wq(t,q,k,u,0):g.F.Wq(t,k,q,u,0);k=Math.acos(u[2]/ 1);u=Math.atan2(-u[1],-u[0]);b=1-c;q=Math.tan(k);A=1+q*q/b;z=2*t[2]*q/b;q=Math.sqrt(z*z-4*A*(t[2]*t[2]/b-1));A*=2;b=(-z+q)/A;z=(-z-q)/A;q=Math.tan(k);A=q*b+t[2];k=(b+z)/2;t=(A+(q*z+t[2]))/2;q=g.F.gp(b-k,A-t);C=t/C*1.570796326794897;for(b=0;100>b;b++){z=g.F.w(c,C);z=z*z/Math.cos(C)*(Math.sin(C)-t*z/(1-c));if(g.s.Cd(z))break;C-=z}C=g.F.n(1,c,C)*Math.cos(C);C=Math.sqrt((C-k)*(C+k));t=1-q/C;t*=2-t;r=Math.acos(g.F.St(r,m)/(g.F.on(r)*g.F.on(m)));r*=g.s.Mb(1,m[0]);e=(g.F.q(C,t,g.F.Qj(t,r))+l*g.s.Mb(1,e))/ g.F.Ah(C,t);e=g.F.ba(1.570796326794897*e);e=g.F.Rq(t,e);g.F.n(C,t,e);q=g.F.ba(u+a);a=Math.cos(q);e=Math.sin(q);n[0]=p[0]*a+p[1]*-e;n[1]=p[0]*e+p[1]*a;n[2]=p[2];g.F.jO(c,n[0],n[1],n[2],x,y,w);null!=f&&(f.u=y.u);null!=h&&(h.u=x.u)}};return v}()})(D||={});(function(g){var v=function(){function d(e){this.Ya=null;this.wt=new g.h;this.xt=new g.h;this.g=e}d.prototype.compare=function(e,f,h){this.g.Gc(f,this.wt);this.g.Gc(e.ja(h),this.xt);return this.wt.compare(this.xt)};return d}(),l=function(){function d(e){this.Bf= new g.h;this.Dk=new g.h;this.g=e}d.prototype.Dh=function(e){this.Bf.L(e)};d.prototype.compare=function(e,f){this.g.Gc(e.ja(f),this.Dk);return this.Bf.compare(this.Dk)};return d}(),c=function(d){function e(f){var h=d.call(this,f.g,f.qa,!1)||this;h.ib=f;return h}R(e,d);e.prototype.compare=function(f,h,k){if(this.rg)return-1;var m=this.ib.Qd.Jn(this.ib.Rh(h));f=f.ja(k);var n=this.ib.Qd.Jn(this.ib.Rh(f));this.Dm=k;return this.RE(h,m,f,n)};return e}(g.UC),a=function(d){function e(f){var h=d.call(this, f.g,f.qa)||this;h.ib=f;return h}R(e,d);e.prototype.compare=function(f,h){if(this.rg)return-1;f=this.ib.Qd.Jn(this.ib.Rh(f.ja(h)));this.Dm=h;return this.SE(h,f)};return e}(g.aM),b=function(){function d(){this.Mc=this.df=this.jo=this.Qd=this.lh=this.zd=this.hb=this.g=null;this.Ng=!1;this.vh=this.Nm=this.ie=this.Gk=this.nh=this.Ak=this.Ff=this.$d=null;this.xh=this.Jq=this.UA=this.qa=0;this.Xv=this.Wn=!1;this.yo=new g.h;this.Pi=new g.h;this.hb=new g.$c(8);this.zd=new g.$c(5);this.lh=new g.au;this.Qd= new g.au;this.Ng=!1;this.vh=new g.h;this.vh.ma(0,0);this.qa=0;this.xh=-1;this.Wn=!1;this.g=null;this.df=new g.Yj;this.Mc=new g.Yj;this.nh=new g.ia(0);this.Gk=new g.TC;this.Ff=new g.ia(0);this.Ak=new g.ia(0);this.jo=new g.Sa}d.prototype.PX=function(e,f){var h=new g.Dd;h.$B();e.Oc(h);this.er(e);this.Wn=!1;this.qa=f;this.UA=f*f;f=this.jC();e.Oc(h);f||(this.qQ(),f||this.jC());-1!=this.xh&&(this.g.Td(this.xh),this.xh=-1);this.g=null;return this.Wn};d.prototype.TX=function(e,f){this.er(e);this.Wn=!1;this.qa= f;this.UA=f*f;this.Ng=!1;this.jC();this.Ng||(this.Ng=1==e.Gp(f,!0,!1));-1!=this.xh&&(this.g.Td(this.xh),this.xh=-1);this.g=null};d.prototype.pg=function(e,f){return this.hb.T(e,0+f)};d.prototype.LB=function(e,f,h){this.hb.S(e,0+f,h)};d.prototype.Rh=function(e){return this.hb.T(e,2)};d.prototype.ZW=function(e,f){this.hb.S(e,2,f)};d.prototype.RF=function(e,f){return this.hb.T(e,3+f)};d.prototype.Pp=function(e){return this.hb.T(e,7)};d.prototype.Pl=function(e,f){this.hb.S(e,7,f)};d.prototype.Rp=function(e, f){return this.hb.T(e,3+this.Op(e,f))};d.prototype.fr=function(e,f,h){this.hb.S(e,3+this.Op(e,f),h)};d.prototype.NR=function(e,f){return this.hb.T(e,5+this.Op(e,f))};d.prototype.hr=function(e,f,h){this.hb.S(e,5+this.Op(e,f),h)};d.prototype.Sr=function(e){return this.zd.T(e,0)};d.prototype.UW=function(e,f){this.zd.S(e,0,f)};d.prototype.ez=function(e){return this.zd.T(e,4)};d.prototype.cr=function(e,f){this.zd.S(e,4,f)};d.prototype.il=function(e){return this.zd.T(e,1)};d.prototype.ln=function(e,f){this.zd.S(e, 1,f)};d.prototype.dz=function(e){return this.zd.T(e,3)};d.prototype.Et=function(e,f){this.zd.S(e,3,f)};d.prototype.Ym=function(e){var f=this.zd.Ce(),h=this.lh.Ph();this.UW(f,h);-1!=e?(this.lh.addElement(h,e),this.g.Ra(e,this.xh,f),this.cr(f,this.g.Ua(e))):this.cr(f,-1);return f};d.prototype.HP=function(e){this.zd.jd(e)};d.prototype.LD=function(e,f){this.lh.addElement(this.Sr(e),f);this.g.Ra(f,this.xh,e)};d.prototype.nt=function(e){var f=this.hb.Ce(),h=this.Qd.Ph();this.ZW(f,h);-1!=e&&this.Qd.addElement(h, e);return f};d.prototype.MD=function(e,f){this.Qd.addElement(this.Rh(e),f)};d.prototype.Uu=function(e){this.hb.jd(e);e=this.nh.lF(e);0<=e&&this.nh.SV(e)};d.prototype.hj=function(e,f){if(-1==this.pg(e,0))this.LB(e,0,f);else if(-1==this.pg(e,1))this.LB(e,1,f);else throw g.i.Qa();this.ky(e,f)};d.prototype.ky=function(e,f){var h=this.il(f);if(-1!=h){var k=this.Rp(h,f);this.hr(k,f,e);this.fr(e,f,k);this.fr(h,f,e);this.hr(e,f,h)}else this.hr(e,f,e),this.fr(e,f,e),this.ln(f,e)};d.prototype.Op=function(e, f){return this.pg(e,0)==f?0:1};d.prototype.Xm=function(e,f){var h=this.dz(f);-1!=h&&(this.df.vd(h,-1),this.Et(f,-1));var k;h=this.il(f);if(-1!=h){var m=k=h;do{var n=!1,p=this.Op(k,f),q=this.RF(k,p);if(this.pg(k,p+1&1)==e){this.Xu(k);this.Qd.bh(this.Rh(k));this.Uu(k);if(k==q){h=-1;break}h==k&&(h=this.il(f),m=q,n=!0)}k=q}while(k!=m||n);if(-1!=h){do p=this.Op(k,f),q=this.RF(k,p),this.LB(k,p,e),k=q;while(k!=m);k=this.il(e);-1!=k?(m=this.Rp(k,e),n=this.Rp(h,e),m==k?(this.ln(e,h),this.ky(k,e),this.ln(e, k)):n==h&&this.ky(h,e),this.fr(h,e,m),this.hr(m,e,h),this.fr(k,e,n),this.hr(n,e,k)):this.ln(e,h)}}h=this.Sr(e);k=this.Sr(f);for(m=this.lh.rc(k);-1!=m;m=this.lh.lb(m))this.g.Ra(this.lh.ja(m),this.xh,e);this.lh.Hy(h,k);this.HP(f)};d.prototype.UT=function(e,f){var h=this.pg(e,0),k=this.pg(e,1),m=this.pg(f,0),n=this.pg(f,1);this.Qd.Hy(this.Rh(e),this.Rh(f));f==this.il(h)&&this.ln(h,e);f==this.il(k)&&this.ln(k,e);this.Xu(f);this.Uu(f);h==m&&k==n||k==m&&h==n||(this.Hn(h,this.yo),this.Hn(m,this.Pi),this.yo.qb(this.Pi)? (h!=m&&this.Xm(h,m),k!=n&&this.Xm(k,n)):(k!=m&&this.Xm(k,m),h!=n&&this.Xm(h,n)))};d.prototype.Xu=function(e){var f=this.pg(e,1);this.dF(e,this.pg(e,0));this.dF(e,f)};d.prototype.dF=function(e,f){var h=this.Rp(e,f),k=this.NR(e,f),m=this.il(f);h!=e?(this.fr(k,f,h),this.hr(h,f,k),m==e&&this.ln(f,h)):this.ln(f,-1)};d.prototype.WD=function(e,f,h){var k=this.Qd.rc(e),m=this.Qd.ja(k);e=this.Le(m);var n=this.Le(this.g.U(m));this.g.jr(m,f,h,!0);for(k=this.Qd.lb(k);-1!=k;k=this.Qd.lb(k)){m=this.Qd.ja(k);var p= this.Le(m)==e;this.g.jr(m,f,h,p)}k=f.Vp(h,0).ac();f=f.Vp(h,f.ol(h)-1).wc();this.BK(e,k);this.BK(n,f)};d.prototype.ZE=function(e,f,h){var k=this.Rh(e),m=this.pg(e,0),n=this.pg(e,1),p=this.nt(-1);this.nh.add(p);this.Pl(p,-3);this.Ff.add(p);this.hj(p,m);e=1;for(f=f.ol(h);ethis.ez(p)&&this.cr(p,this.g.Ua(n))),p=this.Ff.get(e),e-=2,this.MD(p,n),n=this.g.U(n);while(0<=e)}this.Ff.clear(!1)};d.prototype.Le=function(e){return this.g.Pa(e,this.xh)};d.prototype.TI=function(e,f,h){var k=this.pg(f,0),m=new g.h;this.Hn(k,m);var n=new g.h,p=this.pg(f,1); this.Hn(p,n);var q=h.ol(e),r=h.Vp(e,0),t=new g.h;r.Yp(t);if(!m.qb(t)){if(!this.Ng){var u=m.compare(this.vh);t=t.compare(this.vh);0>u*t&&(this.Ng=!0)}this.vF(k,this.Ff);this.Ak.add(k)}!this.Ng&&1r.compare(this.vh)&&(this.Ng=!0));r=h.Vp(e,q-1);e=r.wc();n.qb(e)||(this.Ng||(u=n.compare(this.vh),t=e.compare(this.vh),0>u*t&&(this.Ng=!0)),this.vF(p,this.Ff),this.Ak.add(p));this.Ff.add(f);n=0;for(p=this.Ff.size;n Math.max(100,this.g.fd)){this.nh.clear(!1);this.Ng=!0;break}var e=this.nh.Fc();this.nh.If();this.Pl(e,-1);-1!=this.WS(e)&&this.wS(e);this.Vn=!1}};d.prototype.wS=function(e){if(this.Vn){var f=this.Mc.zu(this.MH,this.GH,e,!0);this.Vn=!1}else f=this.Mc.KD(e);-1==f?this.UT(this.Mc.ja(this.Mc.FF()),e):(this.Pl(e,f),this.$d.rg&&(this.$d.Kr(),this.oF(this.$d.Dm,f)))};d.prototype.WS=function(e){var f=this.pg(e,0);e=this.pg(e,1);this.Hn(f,this.yo);this.Hn(e,this.Pi);if(g.h.yc(this.yo,this.Pi)<=this.UA)return this.Ng= !0,-1;var h=this.yo.compare(this.vh),k=this.Pi.compare(this.vh);return 0>=h&&0=k&&0e&&(this.re(a),e=this.description.Pf(a));null==this.ka&&this.un();this.ka[this.description.$j(e)+b]=d};c.prototype.getType=function(){return 33};c.prototype.Db=function(){return 0};c.prototype.Oa=function(){this.vc();null!=this.ka&&(this.ka[0]=NaN,this.ka[1]=NaN)};c.prototype.sn=function(a){if(null!=this.ka){for(var b=g.ee.Iw(a,this.description),d=[],e=0,f=0,h=a.Aa;f>>32);a=g.O.Th(e,a)}return a};c.prototype.mg=function(){return null};return c}(g.aa);g.Sa=v})(D||={});(function(g){var v=function(){function l(c,a,b){void 0!==c&&(this.x=c,this.y= a,this.z=b)}l.construct=function(c,a,b){var d=new l;d.x=c;d.y=a;d.z=b;return d};l.prototype.K=function(c,a,b){this.x=c;this.y=a;this.z=b};l.prototype.lx=function(){this.z=this.y=this.x=0};l.prototype.normalize=function(){var c=this.length();0==c&&(this.x/=c,this.y/=c,this.z/=c)};l.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)};l.prototype.sub=function(c){return new l(this.x-c.x,this.y-c.y,this.z-c.z)};l.prototype.Ag=function(c){new l(this.x*c,this.y*c,this.z* c)};l.prototype.Qh=function(c){return this.x*c.x+this.y*c.y+this.z*c.z};return l}();g.Nd=v})(D||={});(function(g){var v=function(){function l(c,a,b){this.Gw=this.DA=null;this.Xf=a;this.FT=a.y-b;this.ET=a.y+b;this.Ew=0;this.dA=c;this.qa=b;this.RT=b*b;this.eA=0!=b;this.Lv=!1}l.prototype.result=function(){return 0!=this.Ew?1:0};l.prototype.ZM=function(c){c=c.hc(c.fe(this.Xf,!1));return g.h.yc(c,this.Xf)<=this.RT?!0:!1};l.prototype.fF=function(c){if(!this.eA&&(this.dA&&this.Xf.qb(c.ac())||this.Xf.qb(c.wc())))this.Lv= !0;else if(c.na==this.Xf.y&&c.na==c.la){if(this.dA&&!this.eA){var a=Math.max(c.sa,c.pa);this.Xf.x>Math.min(c.sa,c.pa)&&this.Xf.xa?b=!0:this.Xf.x>=Math.min(c.sa,c.pa)&&(b=0c.wc().y?1:-1)}}};l.prototype.SI=function(c){var a= c.Tg(0,1);if(a.oa>this.ET||a.vathis.Xf.y||a.vac?!1:2*c+Math.log(c)/Math.log(2)*a<1*c*a};return l}();g.Dg=v})(D||={});(function(g){var v=function(l){function c(a){return l.call(this,!0,a)||this}R(c,l);c.prototype.Ia=function(){return new c(this.description)};c.prototype.Db=function(){return 2};c.prototype.getType=function(){return 1736};c.prototype.xG=function(a,b,d){this.JS(a,b,d)};c.prototype.qR=function(){this.FR()};return c}(g.Vk);g.Da=v})(D||={});(function(g){(function(v){v[v.PiPOutside= 0]="PiPOutside";v[v.PiPInside=1]="PiPInside";v[v.PiPBoundary=2]="PiPBoundary"})(g.RL||(g.RL={}));g.hd=function(){function v(){}v.KG=function(l,c,a){l=g.Dg.bT(l,c,a);return 0==l?0:1==l?1:2};v.Yd=function(l,c,a){l=g.Dg.wm(l,c,a);return 0==l?0:1==l?1:2};v.WX=function(l,c,a,b,d){if(c.lengthc)return 0>c?c+=360:360<=c&&(c-=360),c;c=g.lc.RK(c);0>c&&(c+=360);return c};l.gP=function(c){c=l.hP(c);180f||ff||!d&&f<-x.y&&z.y>f||f<-z.y&&x.y>f){do if(!(Math.abs(x.x-z.x)>=.5*p.R())){2==g.Eg.Sb(a)?(q[0][0]=l.Zm(x.x,p),q[0][1]=x.y,q[1][0]=l.Zm(z.x, p),q[1][1]=z.y,g.cb.dW(),A.x=q[0][0]*m,A.y=q[0][1]*m,B.x=q[1][0]*m,B.y=q[1][1]*m):(A.x=x.x*m,A.y=x.y*m,B.x=z.x*m,B.y=z.y*m);B.x=6.283185307179586*(z.x-x.x)/p.R()+A.x;if(d){if(y.x=h,y.y=l.Nz(k,n,A,B,h,b),isNaN(y.y))break}else{y.x=l.Lz(k,n,A,B,b);if(isNaN(y.x))break;y.y=0}g.kb.wd(k,n,A.x,A.y,B.x,B.y,r,null,null,b);var G=r.u;g.kb.wd(k,n,A.x,A.y,y.x,y.y,r,null,null,b);var J=r.u;2==g.Eg.Sb(a)?(q[0][0]=y.x/m,q[0][1]=y.y/m,g.cb.bR(),d?(w.y=q[0][1],w.x=e):(w.x=l.os(q[0][0],x.x,z.x,p),w.y=e)):d?(w.x=e,w.y= y.y/m):(w.x=l.os(y.x/m,x.x,z.x,p),w.y=e);u[0]=0d.x)var h=d;else h=b,b=d;d=new g.ga(0);var k=new g.ga(0),m=new g.ga(0);g.kb.wd(c,a,h.x,h.y,b.x,b.y,k,d,null,f);var n=k.u,p=0,q=1,r=new g.h; for(r.L(h);n*(q-p)>1E-12*c;){var t=.5*(p+q);g.kb.oj(c,a,h.x,h.y,n*t,d.u,k,m,f);r.x=k.u;r.y=m.u;if(r.x==e)break;if(l.Sn(h.x,r.x,e))q=t;else if(l.Sn(b.x,r.x,e))p=t;else return NaN}return r.y};l.Sn=function(c,a,b){c=v.Cp(c);a=v.mx(c,v.Cp(a));b=v.mx(c,v.Cp(b));return 0==b||0a&&0>b&&b>=a?!0:!1};l.Zm=function(c,a){var b=a.va-a.oa;return a.It(c-Math.floor((c-a.oa)/b)*b)};l.os=function(c,a,b,d){var e=new g.Nc;e.K(a,b);b=d.R();c=Math.floor((c-a)/b)*b+c;for(e=e.sf();Math.abs(c-e)>Math.abs(c+ b-e);)c+=b;return c};l.Lz=function(c,a,b,d,e){if(b.y>d.y)var f=d;else f=b,b=d;d=new g.Nc;d.K(f.y,b.y);if(!d.contains(0)||3.141592653589793<=Math.abs(f.x-b.x))return NaN;if(f.x==b.x)return f.x;var h=new g.ga(0),k=new g.ga(0),m=new g.ga(0);g.kb.wd(c,a,f.x,f.y,b.x,b.y,k,h,null,e);var n=k.u,p=0,q=1,r=new g.h;for(r.L(f);n*(q-p)>1E-12*c;){var t=.5*(p+q);g.kb.oj(c,a,f.x,f.y,n*t,h.u,k,m,e);r.x=k.u;r.y=m.u;d.K(f.y,r.y);if(0==r.y)break;if(d.contains(0))q=t;else if(d.K(b.y,r.y),d.contains(0))p=t;else return NaN}return r.x}; l.Hp=function(c,a,b,d,e,f,h){var k=new g.l;c.A(k);if(k.B())return c;var m=new g.Nc;k.cn(m);var n=new g.Nc;n.K(a,a+b);if(n.contains(m)&&n.va!=m.va)return c;var p=new g.l;p.K(k);var q=c.getType();if(33==q){p=e?c:c.Of();k=p.Lg();if(k=n.va||h&&k==n.va)k+=Math.ceil((n.oa-k)/b)*b,k=n.It(k),p.cC(k);return p}if(550==q){p=e?c:c.Of();d=p.ub(0);q=2*p.I();c=!1;for(e=0;e=n.va||h&&k==n.va)c=!0,k+=Math.ceil((n.oa-k)/b)*b,k=n.It(k),d.write(e,k);c&&p.Pc(1993);return p}if(n.contains(m))return c; if(197==q)return b=e?c:c.Of(),k.Ea(p),b.Xo(k),b;var r=.1*Math.max(k.ca(),k.R());p.W(0,r);h=c;n=d.Xd(0);c=g.Gh.local();e=new g.Dd;for(var t=0;;){var u=Math.floor((m.oa-a)/b),w=Math.ceil((m.va-a)/b);if(3p.v;){r=g.Ud.clip(h,p,n,0);r.A(m);if(1607==q?!r.B()&&(m.R()>n||m.ca()>n):!r.B()&&(1736!=q||m.R()>n))r.Oc(e),r.A(m),a.A(f),f.W(n,n),f.isIntersecting(m)&&1736==q?a=c.V(a,r,d,null):a.add(r,!1);p.move(b,0);e.shift(-b,0)}return a};l.WI=function(c,a,b,d){var e=new g.de(b.description);e.Fd(b,0,-1);e=g.cb.zh(e,c,a);var f=b.I();d.Oa();if(!g.cb.Wc(c)||f!=e.I())return!1;var h=new g.l;b.A(h);var k=new g.l; e.A(k);h=h.R();k=k.R();if(0!=h&&0!=k){if(k/=h,c=g.cb.gh(a).R()/g.cb.gh(c).R(),1E-10=a[d]?b[d]=a[d].toUpperCase():a[d];return b.join()}return a.toString(g.Sc.PE_STR_AUTH_TOP)};c.ur=function(a,b,d,e){var f=e.length,h=d.I();if(0!=h){var k=d.ub(0),m=Math.min(h,f),n=0,p=a.eh();isNaN(b)&&(b=0);var q=a.Wc();a=q?a.sc().Oe().R():0;for(var r= 179*a/360;0w*g.lc.sign(y)&&Math.abs(u)>r&&(e[t][0]+=-w*a)}k.uC(n<<1,m,e);n+=m;h-=m;m=Math.min(h,f)}d.Pc(1993)}};c.IL=function(a,b,d,e){var f=0,h=a.eh();isNaN(f)&&(f=0);var k=a.Wc(),m=a.bf();a=360*m;m*=179;for(var n=e.length,p=0;py*g.lc.sign(u)&&Math.abs(w)>m&&(e[q][0]-=y*a)}g.ta.Iy(b,p,e,r);p+=r}}};c.Lx=function(a,b,d){var e=d.length,f=b.I();if(!(1>f)){var h=b.ub(0),k=Math.min(f,e),m=0,n=a.eh(),p=a.Wc(),q=p?a.Oe().R():0,r=179*q/360,t=0;for(p&&(t=a.zi());0w*g.lc.sign(y)&&Math.abs(u)>r&&(d[a][0]+=-w*q)}h.uC(m<< 1,k,d);m+=k;f-=k;k=Math.min(f,e)}b.Pc(1993)}};c.HL=function(a,b,d,e){if(0!=d){var f=a.eh(),h=a.Wc(),k=h?a.Oe().R():0,m=179*k/360,n=0;h&&(n=a.zi());for(a=0;au*g.lc.sign(b[r].x-n)&&Math.abs(t)>m&&(e[p][0]-=u*k)}g.ta.Iy(b,a,e,q);a+=q}}}};c.tr=function(a,b,d,e){var f=b.I(); if(0!=f){var h=b.ub(0),k=a.ef,m=a.Yf,n=k.sc().Qp(),p=m.sc().Qp(),q=k.bf(),r=m.bf();a=a.Wf;if(null==a||0==a.count()){d=n/p;e=(k.Up()-m.Up())*r;p=-90*q;a=90*q;n=!1;r=1;for(k=2*f;rx?e[r][1]=x:e[r][1]<-x&&(e[r][1]=-x));for(q=0;qr){if(B){var X=F+(Y+11*q&&(B=!1)}B||(J-=g.lc.Cn(p,O-I),O=S+J,++L,ba=0!=J,P.x=O)}else M||g.ta.AG(U,Q,P,E)&&(M=!0);ba&&H.write(2*Y,O);I=O;U.L(Q);Q.L(P)}0a?k=1:0>=m&&0.99*m&&(k=-1)):k=-1);0!=k&&(b=new g.Da(f.description),b.tp(n),b=g.Xl.local().V(b,d,h),b.add(f,!1),x=!0,f=b);x&&(f=g.Yl.local().V(f,e,!1,h));return f};c.vQ=function(a,b,d,e,f){var h=d.I(),k=d.Na(0),m=d.Na(h-1);e=c.dv(e,f);f=e.R();k=g.lc.sign(m.x-k.x);var n=new g.l;d.xc(n);var p=e.gk();m=p-f;p+=f;if(0<=k){var q=Math.ceil((m-n.v)/f);for(q*=f;m>n.v+q;)q+=f;for(;mn.v+q;)q+=f;r=q;720m;)1024<=y&&(y=0),t.move(q,0),u.Gb=q,d.Oc(u),w+=q,e.v<=w&&e.C>=w&&(f=n.I()-1),d.Cb(0,r),r=d.Na(h-1),n.Dr(d,0,0,h-1,!1);d=new g.Da(n.description);h=0k?h:!h)?(k=g.h.construct(m.x,e.H),d.Ci(k),k=g.h.construct(e.gk(),e.H),d.Ci(k),e=g.h.construct(a.x,e.H)):(k=g.h.construct(m.x,e.G),d.Ci(k),k=g.h.construct(e.gk(),e.G),d.Ci(k),e=g.h.construct(a.x,e.G));d.Ci(e);d.xG(0,b,0);d.kO(f);return d};c.uQ=function(a,b,d,e,f){var h=new g.Da(a.description);h.add(a,!1);h.DB(0,h.I()-1);var k=new g.l;h.xc(k);d=c.dv(b,d);var m=d.R(),n=Math.ceil((d.v-k.v)/m);for(n*=m;d.v>k.v+n;)n+=m;for(;d.vk.C)return f&&(f=h.Ke(),h=g.Yl.local().V(h,b,!0,e),b=h.Ke(),(b=g.lc.sign(f)!=g.lc.sign(b))&&h.oJ()),h;a=new g.Da(a.description);a.add(h,!1);for(f=f||k.R()>m-b.Xd(0);k.v=d){m=!0;break}if(0!= (f&2)&&p.y<=-d){m=!0;break}}if(!m)return!1;h=!1;a&&(h=b.Nn(0));a=new g.gd;k=a.Ib(b);m=a.Ob(k);var q=-1,r=!0,t=new g.h;t.Rc();n=new g.Sa;for(var u=-1,w=a.Xa(m);-1!=w;w=a.U(w)){p=a.Na(w);var y=0!=(f&1)&&90<=p.y?1:0;y|=0!=(f&2)&&p.y<=-d?2:0;if(0m){(new g.l).K(t.v-k, -m,t.C+k,m);f=g.ri.Nu(f,b,a,NaN,0,e);if(f.B())return f;f.A(t)}if(w&&(b.Ht.H))return f.Ia();t.R()>p&&(f=c.Hp(f,q-n,p,a,!0,0,!0,e),f.A(t));m=c.eO(t.v,t.C,b.v,b.C,p);0!=m&&t.move(m,0);if(t.C>b.C||t.vb.C)for(;t.v>=b.C;)t.move(-p,0),m-=p;for(;t.vm;m++){y?k=g.aa.Hc(h)?g.ri.clip(f,b,d,r,e):g.ri.clip(f,b,d,0,e):(k=g.Xj.local().V(f,u,a,e),k==u&&(k=g.aa.jg(k))); if(b.v<=t.v&&b.C>=t.C||b.v>=t.v&&b.C<=t.C)return k;w[m]=k;0==m&&(t.move(-p,0),k=new g.Dd,k.gg(-p,0),f.Oc(k))}if(550==h)w[0].Fd(w[1],0,-1);else if(g.aa.Hc(h))w[0].add(w[1],!1);else if(33==h)w[0].B()&&(w[0]=w[1]);else throw g.i.fa("intersect_with_GCS_horizon: unexpected geometry type");return w[0]}if(b.Ht.H)return f;for(h=0;!f.B()&&t.C>b.v;)0!=h&&(k=new g.Dd,k.gg(h,0),f.Oc(k)),g.dj.local().V(4,f,u,a,e)||(f=g.kp.local().V(f,u,a,e),u==f&&(f=g.aa.jg(f))),0!=h&&(r=new g.Dd,r.gg(-h,0),f.Oc(r)), h-=p,t.move(-p,0);return f};c.yG=function(a,b,d,e){if(0!=b&&e!=v.DontClip)if(e==v.PannableFold){e=d.HR();for(var f=b,h=0;he.H||a[h].yk||a[h].y<-k)a[h].Rc(),f--;if(0!=f){f=new g.l;f.Zw(a,b);k=d.Vr();var n=d.hv();h=197==k.getType();var p=new g.l;k.A(p);if(!n||!(p.Hf.H))if(n)if(c.av(a,b,p.gk()-m,e),f=b,h)for(h=0;h=p||k&&q==p)q+=Math.ceil((b-q)/d)*d,q=g.O.Rk(q,b,p),e.cC(q);return e}if(a.B())return a;q=new g.l;a.A(q);if(q.B())return a;var r=new g.Nc;q.cn(r);var t=new g.Nc;t.K(b,p);if(t.contains(r))return a; p=new g.l;p.K(q);if(550===n){e=f?a:a.Of();m=e.ub(0);n=2*e.I();p=!1;for(b=0;b=t.va||k&&q==t.va)p=!0,q+=Math.ceil((t.oa-q)/d)*d,q=t.It(q),m.write(b,q);p&&e.Pc(1993);return e}if(197==n)return d=f?a:a.Of(),q.Ea(p),d.Xo(q),d;var u=.1*Math.max(q.ca(),q.R());p.W(0,u);k=a;t=e.Xd(0);a=g.Gh.local();for(f=new g.Dd;;){var w=Math.floor((r.oa-b)/d),y=Math.ceil((r.va-b)/d);if(3p.v;){u=g.ri.clip(k,p,t,0,m);u.A(r);if(1607==n?!u.B()&&(r.R()>t||r.ca()>t):!u.B()&&(1736!=n||r.R()>t))u.Oc(f),u.A(r),b.A(h),h.W(t,t),h.isIntersecting(r)&&1736==n?b=a.V(b,u,e,null):b.add(u,!1);p.move(d,0);f.shift(-d, 0)}return b};c.av=function(a,b,d,e){for(var f=d+e,h=0;hf||k==f)||(k+=Math.ceil((d-k)/e)*e,k=g.O.Rk(k,d,f),a[h].x=k)}};c.Fn=function(a,b,d,e,f,h){if(!b.Wc())throw g.i.fa("fold_into_360_degree_range");if(a.B())return a;if(2==b.Sb()){d=b.pv();var k=b.ov()-d}else{var m=b.bf();k=360*m;d-=180*m}return c.Hp(a,d,k,b,e,f,!0,h)};c.qF=function(a,b,d,e){if(2==d.Sb())e=d.pv(),d=d.ov()-e;else{var f=d.bf();d=360*f;e-=180*f}c.av(a,b,e,d)};c.lj=function(a,b){var d=b.Oe();if(33== a.getType()){var e=a.ih();return d.G<=e&&e<=d.H?a:a.Ia()}e=new g.l;a.A(e);var f=new g.l;f.K(d);f.v=e.v;f.C=e.C;f.W(.01*f.ca(),0);d=g.ta.uy(b,e);return f.contains(e)?a:g.ri.clip(a,f,d,0,null)};c.ir=function(a,b,d){return a>b.C&&a-b.Cd.H?a[f].Rc():a[f].x=c.ir(a[f].x,d,e)};c.Jt=function(a,b,d,e){if(!a.B()){var f=a.getType();if(!e||1736!=f)if(g.aa.xj(f)){e=a.ub(0); f=0;for(var h=a.I();fe||ee)||!h&&(0!=k||e<-C.y&&E.y>e||e<-E.y&&C.y>e)){do if(!(Math.abs(C.x-E.x)>=.5*r.R())){2==d.Sb()?(u[0][0]=c.Zm(C.x,r),u[0][1]=C.y,u[1][0]=c.Zm(E.x,r),u[1][1]=E.y,g.ej.projToGeogCenter(t,2,u,0),F.x=u[0][0]*n,F.y=u[0][1]*n,H.y=u[1][1]*n):(F.x=C.x*n,F.y=C.y*n,H.y=E.y*n);H.x=2*(E.x-C.x)*Math.PI/r.R()+F.x;if(h){z.x=m;z.y=c.Nz(p,q,F,H,m,f);if(isNaN(z.y))break;B[0]=z;var L=1}else if(f==l.GreatElliptic){var M=[0,0];L=g.Ox.Oz(q,F,H,m,M);if(0== L)break;z.x=M[0];z.y=m;B[0]=z;2==L&&(A.x=M[1],A.y=m,B[1]=A)}else{z.x=c.Lz(p,q,F,H,f);if(isNaN(z.x))break;z.y=0;B[0]=z;L=1}var Q=-1;for(M=0;My[0]||(Q=a.Ma(I),a.Ul(Q,y,1),a.Cb(a.U(Q),x.x,x.y),Q=y[0])}}while(0)}C.L(E)}}};c.Zm=function(a,b){var d=b.va-b.oa;return b.It(a-Math.floor((a-b.oa)/d)*d)};c.os=function(a,b,d,e){var f=new g.Nc;f.K(b,d);d=e.R();a=Math.floor((a-b)/d)*d+a;for(f=f.sf();Math.abs(a-f)>Math.abs(a+d-f);)a+=d;return a};c.Sn=function(a,b,d){a=g.qr.Cp(a);b=g.qr.mx(a,g.qr.Cp(b));d=g.qr.mx(a,g.qr.Cp(d));return 0==d||0b&&0>d&&d>=b?!0:!1};c.Nz=function(a,b,d,e,f,h){if(h==l.GreatElliptic)return g.Ox.SS(b,d,e,f); if(Math.abs(d.x-e.x)>=Math.PI||!c.Sn(d.x,e.x,f))return NaN;if(d.x>e.x)var k=e;else k=d,d=e;e=new g.ga;var m=new g.ga,n=new g.ga;g.kb.wd(a,b,k.x,k.y,d.x,d.y,m,e,null,h);var p=m.u,q=0,r=1,t=new g.h;for(t.L(k);p*(r-q)>1E-12*a;){var u=.5*(q+r);g.kb.oj(a,b,k.x,k.y,p*u,e.u,m,n,h);t.x=m.u;t.y=n.u;if(t.x==f)break;if(c.Sn(k.x,t.x,f))r=u;else if(c.Sn(d.x,t.x,f))q=u;else return NaN}return t.y};c.Lz=function(a,b,d,e,f){if(f==l.GreatElliptic)return a=[0,0],g.Ox.Oz(b,d,e,0,a),a[0];if(d.y>e.y)var h=e;else h=d,d= e;e=new g.Nc;e.K(h.y,d.y);if(!e.contains(0)||Math.abs(h.x-d.x)>=Math.PI)return NaN;if(h.x==d.x)return h.x;var k=new g.ga,m=new g.ga,n=new g.ga;g.kb.wd(a,b,h.x,h.y,d.x,d.y,m,k,null,f);var p=m.u,q=0,r=1,t=new g.h;for(t.L(h);p*(r-q)>1E-12*a;){var u=.5*(q+r);g.kb.oj(a,b,h.x,h.y,p*u,k.u,m,n,f);t.x=m.u;t.y=n.u;e.K(h.y,t.y);if(0==t.y)break;if(e.contains(0))r=u;else if(e.K(d.y,t.y),e.contains(0))q=u;else return NaN}return t.x};c.WI=function(a,b,d,e){if(!a.ef.Wc())return!1;var f=new g.de(b.description);f.Fd(b, 0,-1);e=g.Hx.local().V(f,a,e);f=b.I();d.Oa();if(f!=e.I())return!1;var h=new g.l;b.A(h);var k=new g.l;e.A(k);h=h.R();k=k.R();if(0!=h&&0!=k){if(k/=h,a=a.Yf.gh().R()/a.ef.gh().R(),1E-10=180*b&&(a-=360*b);return a};c.UI=function(a,b,d,e){if(d==v.Clip){var f=b.ml();197==f.getType()?(d=new g.l,f.A(d),f=g.ta.uy(b,d),a=g.ri.clip(a,d,f,5E4*b.pm(),e)):g.dj.local().V(1, f,a,b,e)||(a=g.Xj.local().V(a,f,b,e),a==f&&(a=g.Vk.jg(a)))}else b.Wc()&&(e=new g.l,a.xc(e),b.Oe().contains(e)||(c.Jt(a,b.Oe(),b.Xd(0),!0),d==v.PannableFold&&(a=c.lj(a,b)),a=c.Fn(a,b,0,!0,1E5*b.pm(),null)));return a};c.XD=function(a,b,d){var e=b.Wr();if(null==e)return a;b=b.sc();var f=b.Oe().R(),h=new g.l;a.xc(h);var k=new g.Nc;h.cn(k);h=e.Ga();e=null;for(var m=new g.Dd;h.$a();)for(;h.Ha();){var n=h.ha(),p=n.Tg(0,0),q=new g.Nc;q.K(p.oa,p.va);for(p=0;q.va>k.oa;)q.move(-f),--p;for(;q.oa<=k.va;){if(q.isIntersecting(k)){null== e&&(e=new g.Ta);var r=g.yb.cP(n.ac(),n.wc());0!=p&&(m.gg(p*f,0),r.Oc(m));e.oc(r,!0)}q.move(f);++p}}return null!=e?(b=g.ta.gO(b,e),b=g.ta.Er(b),g.$t.lP(a,e,b,d)):a};c.eO=function(a,b,d,e,f){return a>=d&&b<=e?0:c.tE(.5*(b+a),d,e,f)};c.tE=function(a,b,d,e){return g.lc.round((.5*(d+b)-a)/e)*e};c.VQ=function(a,b,d,e,f,h,k,m){var n=c.dv(e,f),p=n.R(),q=p/360,r=c.pE*q,t=a.ub(0),u=b.Wc(),w=u?p/b.Oe().R():0;b=a.Ia();for(var y=0,x=d.da();yr){if(z){var Z=C+ba-1,X=C;if(!E||ba+11*q&&(u=!1)}z||(H-=g.lc.Cn(p,S-G),S=P+H,++J,U=0!=H,Y.x=S)}else L||g.ta.AG(M,Q,Y,I)&&(L=!0);U&&F.write(2*ba,S);G=S; M.L(Q);Q.L(Y)}0!=J&&A.Pc(1993);z=A.Na(0);B=A.Na(B-1);g.h.tb(z,B);A=c.wQ(A,e,isNaN(f)?0:f,h);b.add(A,!1)}a=e.Xd(0);d=n.R()/180;c.Jt(b,n,.1*a,!1);return g.ri.clip(b,n,a,d,h)};c.wQ=function(a,b,d,e){return c.Fn(a,b,d,!0,0,e)};c.OS=function(a,b,d,e){var f=a.getType();if(1736==f)for(b=null!=b?b.Xd(0):0,f=0;fd)for(var f=new g.Sa,h=0;hd)for(var f=new g.Sa,h=0;hthis.Io};l.prototype.fz=function(){if(this.B())throw g.i.fa("invalid call");return new g.Sa(this.Bs.x,this.Bs.y)};l.prototype.Ua=function(){if(this.B())throw g.i.fa("invalid call"); return this.Io};l.prototype.hz=function(){if(this.B())throw g.i.fa("invalid call");return this.Ka};l.prototype.Sz=function(){return 0!=(this.nw&1)};l.prototype.ey=function(c,a,b,d){this.Bs.x=c;this.Bs.y=a;this.Io=b;this.Ka=d};return l}();g.$l=v})(D||={});(function(g){var v=function(){function c(){}c.prototype.Uo=function(a,b){this.th.resize(0);this.Ii.length=0;this.tk=-1;a.xc(this.Ek);this.Ek.W(b,b);if(this.Ek.isIntersecting(this.Fb.Ca)){var d=a.getType();(this.vs=g.aa.yd(d))?(this.TH=a.ac(),this.SH= a.wc(),this.qa=b):this.qa=NaN;this.th.add(this.Fb.kf);this.Ii.push(this.Fb.Ca);this.Qs=this.Fb.Ur(this.Fb.kf)}else this.Qs=-1};c.prototype.Xi=function(a,b){this.th.resize(0);this.Ii.length=0;this.tk=-1;this.Ek.K(a);this.Ek.W(b,b);this.qa=NaN;this.Ek.isIntersecting(this.Fb.Ca)?(this.th.add(this.Fb.kf),this.Ii.push(this.Fb.Ca),this.Qs=this.Fb.Ur(this.Fb.kf),this.vs=!1):this.Qs=-1};c.prototype.next=function(){if(0==this.th.size)return-1;this.tk=this.Qs;var a=null,b=null,d=null,e=null;this.vs&&(a=new g.h, b=new g.h,d=new g.l);for(var f=!1;!f;){for(;-1!=this.tk;){var h=this.Fb.bz(this.Fb.fv(this.tk));if(h.isIntersecting(this.Ek))if(this.vs){if(a.L(this.TH),b.L(this.SH),d.K(h),d.W(this.qa,this.qa),0k;k++){var m=this.Fb.Lp(h,k);if(-1!=m&&0>e);0==f?(b.v=.5*(b.v+b.C),b.G=.5*(b.G+b.H)):1==f?(b.C=.5*(b.v+b.C),b.G=.5*(b.G+b.H)):(2==f?b.C=.5*(b.v+b.C):b.v=.5*(b.v+b.C),b.H=.5*(b.G+b.H))}return b};c.prototype.WR=function(a){return this.Az(a)};c.prototype.vR= function(a,b){return v.bP(this,a,b)};c.prototype.MF=function(a,b){return v.aP(this,a,b)};c.prototype.getIterator=function(){return v.$O(this)};c.prototype.Nk=function(a,b){if(0>b||32<2*b)throw g.i.N("invalid height");this.BT=b;this.Ca.K(a);this.kf=this.jf.Ce();this.jx(this.kf,0);this.ax(this.kf,0);this.NJ(this.kf,0);this.KJ(this.kf,0)};c.prototype.zv=function(a,b,d,e,f,h,k){if(!e.contains(b))return 0==d?-1:this.zv(a,b,0,this.Ca,this.kf,h,k);if(!h)for(var m=f;-1!=m;m=this.IR(m))this.jx(m,this.Az(m)+ 1);m=new g.l;m.K(e);e=f;var n=[];n[0]=new g.l;n[1]=new g.l;n[2]=new g.l;for(n[3]=new g.l;dq;q++)if(n[q].contains(b)){p=!0;var r=this.Lp(e,q);-1==r&&(r=this.rP(e,q));this.jx(r,this.Az(r)+1);e=r;m.K(n[q]);break}if(!p)break}return this.sS(a,b,d,m,e,h,f,k)};c.prototype.sS=function(a,b,d,e,f,h,k,m){var n=this.NF(f);if(h){if(f==k)return m;this.SP(m);h=m}else h=this.tP(),this.NB(h,a),this.KW(this.fv(h),b);this.mX(h,f);-1!=n?(this.hx(h,n),this.bx(n,h)): this.GJ(f,h);this.SB(f,h);this.ax(f,this.lv(f)+1);this.hO(f)&&this.MQ(d,e,f);return h};c.prototype.SP=function(a){var b=this.WF(a),d=this.NF(b),e=this.OR(a),f=this.nv(a);this.Ur(b)==a?(-1!=f?this.hx(f,-1):this.SB(b,-1),this.GJ(b,f)):d==a?(this.bx(e,-1),this.SB(b,e)):(this.hx(f,e),this.bx(e,f));this.hx(a,-1);this.bx(a,-1);this.ax(b,this.lv(b)-1)};c.EJ=function(a,b){var d=.5*(a.v+a.C),e=.5*(a.G+a.H);b[0].K(d,e,a.C,a.H);b[1].K(a.v,e,d,a.H);b[2].K(a.v,a.G,d,e);b[3].K(d,a.G,a.C,e)};c.prototype.hO=function(a){return 8== this.lv(a)&&!this.gG(a)};c.prototype.MQ=function(a,b,d){var e=this.Ur(d);do{var f=this.fv(e),h=this.Zh.T(e,0);f=this.bz(f);this.zv(h,f,a,b,d,!0,e);e=h=this.nv(e)}while(-1!=e)};c.prototype.iO=function(a){return 8<=this.lv(a)||this.gG(a)};c.prototype.gG=function(a){return-1!=this.Lp(a,0)||-1!=this.Lp(a,1)||-1!=this.Lp(a,2)||-1!=this.Lp(a,3)};c.prototype.rP=function(a,b){var d=this.jf.Ce();this.OW(a,b,d);this.jx(d,0);this.ax(d,0);this.Pk(d,a);this.KJ(d,this.jv(a)+1);this.NJ(d,b<<2*this.jv(a)|this.QF(a)); return d};c.prototype.tP=function(){var a=this.Zh.Ce();if(0>4)]|=this.iH<<2*(e&15)};return c}();g.HY=v;var l=function(){function c(a,b,d){this.Vh=null;this.SA=this.Ik=this.cI=this.aI=this.Es= this.qH=this.Gf=this.Um=0;this.Ri=this.Jk=this.vl=null;this.Fz(a,b,d)}c.create=function(a,b,d){if(!c.zE(a))throw g.i.N();return c.wP(a,b,d)};c.pW=function(a){switch(a){case 0:a=1024;break;case 1:a=16384;break;case 2:a=262144;break;default:throw g.i.fa("Internal Error");}return a};c.zE=function(a){return a.B()||1607!=a.getType()&&1736!=a.getType()?!1:!0};c.prototype.rQ=function(a,b){b=b.Ga();for(var d=new g.h,e=new g.h;b.$a();)for(;b.Ha();){var f=b.ha();if(322!=f.getType())throw g.i.fa("Internal Error"); a.Eh(f.ac(),d);a.Eh(f.wc(),e);this.Ri.jy(d.x,d.y,e.x,e.y)}this.Ri.iJ(g.Px.Cx)};c.prototype.sQ=function(){throw g.i.fa("Internal Error");};c.prototype.Ry=function(a,b){for(var d=1;4>d;d++)a.jy(b[d-1].x,b[d-1].y,b[d].x,b[d].y);a.jy(b[3].x,b[3].y,b[0].x,b[0].y);this.Ri.iJ(g.Px.Cx)};c.prototype.rK=function(a,b,d){for(var e=[null,null,null,null],f=0;fu;0==u?f.ma(1,0):(w||q.L(n),f.scale(d/u),h.ma(-f.y,f.x),k.ma(f.y,-f.x),m.sub(f),n.add(f),e[0].add(m,h),e[1].add(m,k),e[2].add(n,k),e[3].add(n,h),w?r=!0:this.Ry(a,e))}else r&&(this.Ry(a,e),r=!1),t=!0}r&&this.Ry(a,e)}};c.prototype.sC=function(a){return g.O.truncate(a*this.qH+this.aI)};c.prototype.tC= function(a){return g.O.truncate(a*this.Es+this.cI)};c.wP=function(a,b,d){return new c(a,b,d)};c.prototype.Fz=function(a,b,d){this.Gf=Math.max(g.O.truncate(2*Math.sqrt(d)+.5),64);this.Um=g.O.truncate((2*this.Gf+31)/32);this.vl=new g.l;this.Ik=b;d=0;for(var e=this.Gf,f=this.Um;8<=e;)d+=e*f,e=g.O.truncate(e/2),f=g.O.truncate((2*e+31)/32);this.Vh=g.O.lg(d,0);this.Ri=new g.Px;d=new v(this.Vh,this.Um,this);this.Ri.AX(this.Gf,this.Gf,d);a.A(this.vl);this.vl.W(b,b);e=new g.l;f=g.l.construct(1,1,this.Gf-2, this.Gf-2);var h=b*f.R();b*=f.ca();e.K(this.vl.sf(),Math.max(h,this.vl.R()),Math.max(b,this.vl.ca()));this.SA=this.Ik;this.Jk=new g.Dd;this.Jk.pS(e,f);new g.Dd;switch(a.getType()){case 550:d.setColor(this.Ri,2);this.sQ();break;case 1607:d.setColor(this.Ri,2);this.rK(this.Ri,a,this.SA);break;case 1736:d.setColor(this.Ri,1),this.rQ(this.Jk,a),d.setColor(this.Ri,2),this.rK(this.Ri,a,this.SA)}this.qH=this.Jk.bb;this.Es=this.Jk.ab;this.aI=this.Jk.Gb;this.cI=this.Jk.Lb;this.XN()};c.prototype.XN=function(){this.Ri.flush(); for(var a=0,b=this.Gf*this.Um,d=this.Gf,e=g.O.truncate(this.Gf/2),f=this.Um,h=g.O.truncate((2*e+31)/32);8>4;p=2*(p&15);var t=q>>4;q=2*(q&15);var u=this.Vh[a+f*k+r]>>p&3;u|=this.Vh[a+f*k+t]>>q&3;u|=this.Vh[a+f*m+r]>>p&3;u|=this.Vh[a+f*m+t]>>q&3;this.Vh[b+h*d+(n>>4)]|=u<<2*(n&15)}d=e;f=h;a=b;e=g.O.truncate(d/2);h=g.O.truncate((2*e+31)/32);b=a+f*d}};c.prototype.So=function(a,b){if(!this.vl.contains(a,b))return 0;a=this.sC(a); b=this.tC(b);if(0>a||a>=this.Gf||0>b||b>=this.Gf)return 0;b=this.Vh[this.Um*b+(a>>4)]>>2*(a&15)&3;return 0==b?0:1==b?1:2};c.prototype.Ro=function(a){if(!a.Ea(this.vl))return 0;var b=this.sC(a.v),d=this.sC(a.C),e=this.tC(a.G);a=this.tC(a.H);0>b&&(b=0);0>e&&(e=0);d>=this.Gf&&(d=this.Gf-1);a>=this.Gf&&(a=this.Gf-1);if(b>d||e>a)return 0;for(var f=Math.max(d-b,1)*Math.max(a-e,1),h=0,k=this.Um,m=this.Gf,n=0;;){if(32>f||16>m){for(f=e;f<=a;f++)for(var p=b;p<=d;p++)if(n=this.Vh[h+k*f+(p>>4)]>>2*(p&15)&3,1< n)return 2;if(0==n)return 0;if(1==n)return 1}h+=k*m;m=g.O.truncate(m/2);k=g.O.truncate((2*m+31)/32);b=g.O.truncate(b/2);e=g.O.truncate(e/2);d=g.O.truncate(d/2);a=g.O.truncate(a/2);f=Math.max(d-b,1)*Math.max(a-e,1)}};c.prototype.RR=function(){return this.Gf*this.Um};return c}();g.Nx=l})(D||={});(function(g){(function(c){c[c.contains=1]="contains";c[c.within=2]="within";c[c.equals=3]="equals";c[c.disjoint=4]="disjoint";c[c.touches=8]="touches";c[c.crosses=16]="crosses";c[c.overlaps=32]="overlaps";c[c.unknown= 0]="unknown";c[c.intersects=1073741824]="intersects"})(g.VL||(g.VL={}));var v=function(){function c(){}c.construct=function(a,b,d,e,f,h,k,m){var n=new c;n.pw=a;n.Mm=b;n.Kj=d;n.Si=e;n.BH=f;n.SY=h;n.TY=k;n.UY=m;return n};return c}();g.Vt=function(){function c(){}c.CD=function(a,b,d){if(c.wy(a)){var e=g.ta.kj(b,a,!1);b=!1;g.Uk.CE(a)&&(b=b||a.lu(e,d));e=a.getType();1736!=e&&1607!=e||!g.Uk.AE(a)||0==d||(b=b||a.fj(d));1736!=e&&1607!=e||!g.Uk.BE(a)||0==d||b||a.hM()}};c.wy=function(a){return g.Uk.CE(a)|| g.Uk.AE(a)||g.Uk.BE(a)};return c}();var l=function(){function c(){this.rh=[]}c.zB=function(a,b,d,e,f){var h=a.getType(),k=b.getType();if(197==h){if(197==k)return c.tW(a,b,d,e);if(33==k)return 2==e?e=1:1==e&&(e=2),c.hJ(b,a,d,e)}else if(33==h){if(197==k)return c.hJ(a,b,d,e);if(33==k)return c.vW(a,b,d,e)}if(a.B()||b.B())return 4==e?!0:!1;var m=new g.l;a.A(m);var n=new g.l;b.A(n);var p=new g.l;p.K(m);p.Zb(n);d=g.ta.Wd(d,p,!1);if(c.dk(m,n,d))return 4==e?!0:!1;m=!1;g.Vk.yd(h)&&(h=new g.Ta(a.description), h.oc(a,!0),a=h,h=1607);g.Vk.yd(k)&&(k=new g.Ta(b.description),k.oc(b,!0),b=k,k=1607);if(197!=h&&197!=k){if(a.Db()4*Math.max(a.I(),b.I())*d?!1:c.Wz(a,b,d,!0)};c.kV=function(a,b,d){var e=c.qc(a,b,!0);return 4==e?!0:1==e||2==e||1073741824==e?!1:c.EI(a,b,d)};c.vV=function(a,b,d){var e=c.qc(a,b,!1);return 4==e||1==e||2==e?!1:c.II(a,b,d,null)};c.qV=function(a,b,d,e){var f=c.qc(a,b,!1);return 4==f||1==f||2==f?!1:c.FI(a,b,d,e)};c.Sw=function(a,b,d,e){var f=new g.l, h=new g.l;a.A(f);b.A(h);if(!c.zc(f,h,d))return!1;f=c.qc(a,b,!1);return 4==f||2==f?!1:1==f?!0:c.BI(a,b,d,e)};c.lV=function(a,b,d){var e=c.qc(a,b,!0);return 4==e?!0:1==e||1073741824==e?!1:c.EI(a,b,d)};c.wV=function(a,b,d,e){var f=c.qc(a,b,!1);return 4==f||1==f?!1:c.JI(a,b,d,e)};c.gV=function(a,b,d){var e=c.qc(a,b,!1);return 4==e||1==e?!1:c.DI(a,b,d,null)};c.fB=function(a,b,d,e){var f=new g.l,h=new g.l;a.A(f);b.A(h);if(!c.zc(f,h,d))return!1;f=c.qc(a,b,!1);return 4==f?!1:1==f?!0:c.CI(a,b,d,e)};c.jV=function(a, b,d){return 0==g.hd.KG(a,b,d)?!0:!1};c.uV=function(a,b,d){b=b.D();return c.HI(a,b,d)};c.dV=function(a,b,d){b=b.D();return c.AI(a,b,d)};c.iV=function(a,b,d){var e=c.qc(a,b,!1);if(4==e)return!0;if(1==e)return!1;e=new g.l;a.A(e);e.W(d,d);for(var f=new g.h,h=0;hd&&h.R()>d||h.ca()<=d&&h.R()<=d)return!1;f=new g.Ta;h=new g.Sa;b.Hf(0,h);f.nf(h);b.Hf(2,h);f.lineTo(h);return c.DI(a,f,d,e)};c.IV=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);return c.ek(e,f,d)&&4!=c.qc(a,b,!1)?c.dI(a,b,d)?!0:c.Wz(a,b,d,!1):!1};c.GV=function(a,b,d){return 4==this.qc(a,b,!1)?!0:(new g.Zl(a,b,d,!0)).next()?!this.UG(a,b,d):!1};c.NI=function(a,b,d){if(4==c.qc(a,b,!1))return!1;var e=new g.be(0);if(0!=c.Xz(a,b,d,e))return!1;for(var f=new g.de,h=0;hd&&f.R()>d?!1:c.ek(e,f,d)};c.DV=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);return c.zc(f,e,d)?!1:!c.TG(a,f,d)};c.OV=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);if(f.ca()<=d&&f.R()<=d)return f=b.Ip(),c.Zz(a,f,d);if(f.ca()<=d||f.R()<=d)return f=new g.Ta,e=new g.Sa,b.Hf(0,e),f.nf(e),b.Hf(2,e),f.lineTo(e),c.NI(a,f,d);a=a.Ga();b=new g.l;e=new g.l;b.K(f);e.K(f);b.W(-d,-d);e.W(d,d);f=!1;for(var h=new g.l,k=new g.l;a.$a();)for(;a.Ha();){a.ha().A(h);k.K(b);k.Ea(h);if(!k.B()&& (k.ca()>d||k.R()>d))return!1;k.K(e);k.Ea(h);k.B()||(f=!0)}return f};c.LV=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);if(c.zc(e,f,d)||c.zc(f,e,d)||c.zc(f,e,d)||f.ca()>d&&f.R()>d||f.ca()<=d&&f.R()<=d)return!1;e=new g.Ta;f=new g.Sa;b.Hf(0,f);e.nf(f);b.Hf(2,f);e.lineTo(f);return c.WG(a,e,d)};c.RV=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);if(!c.zc(f,e,d)||f.ca()<=d&&f.R()<=d)return!1;if(f.ca()<=d||f.R()<=d)return c.zc(f,e,d);a=a.Ga();b=new g.l;b.K(f);b.W(-d,-d);f=!1;e=new g.l;for(var h= new g.l;a.$a();)for(;a.Ha();)a.ha().A(e),b.hm(e)?f=!0:(h.K(b),h.Ea(e),!h.B()&&(h.ca()>d||h.R()>d)&&(f=!0));return f};c.yV=function(a,b,d){var e=new g.l,f=new g.l;b.A(f);a.A(e);if(!c.zc(e,f,d)||f.ca()>d&&f.R()>d)return!1;if(f.ca()<=d&&f.R()<=d)return b=b.Ip(),c.SG(a,b,d);e=new g.Ta;f=new g.Sa;b.Hf(0,f);e.nf(f);b.Hf(2,f);e.lineTo(f);return c.ym(e,a,d,!1)};c.BV=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);if(c.zc(f,e,d)||f.ca()<=d&&f.R()<=d)return!1;if(f.ca()<=d||f.R()<=d)return e=new g.Ta, f=new g.Sa,b.Hf(0,f),e.nf(f),b.Hf(2,f),e.lineTo(f),c.LI(a,e,d);a=a.Ga();b=new g.l;e=new g.l;e.K(f);b.K(f);e.W(-d,-d);b.W(d,d);for(var h=f=!1,k=new g.l,m=new g.l;a.$a();)for(;a.Ha();)if(a.ha().A(k),h||b.contains(k)||(h=!0),f||(m.K(e),m.Ea(k),!m.B()&&(m.ca()>d||m.R()>d)&&(f=!0)),f&&h)return!0;return!1};c.iU=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);return c.ek(e,f,d)?c.jU(a,b,d)?!0:c.YA(a,b,d,!1,!0,!1):!1};c.gU=function(a,b,d){return!c.gI(a,b,d)};c.oU=function(a,b,d){return c.YA(a,b,d,!1, !1,!0)};c.eI=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);return c.zc(e,f,d)?c.YA(b,a,d,!0,!1,!1):!1};c.Mw=function(a,b,d){d*=d;for(var e=new g.h,f=new g.h,h=0;hd||f.R()>d?!1:c.ek(e,f,d)};c.fU=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);if(c.zc(f,e,d))return!1;b=new g.l;b.K(f);b.W(d,d);d=new g.h;for(f=0;fd?h.W(0,-d):h.W(-d,0);for(var m=0;m d){if(b.y>h.G&&b.yh.v&&b.xd?e.W(0,-d):e.W(-d,0);h.W(d,d);for(var k=new g.h,m=0;md?k.y>e.G&&k.ye.v&&k.xd||f.R()>d)return!1;b=b.Ip();return!c.kt(a,b,d)};c.eU=function(a,b,d){var e=new g.l,f=new g.l;a.A(e);b.A(f);if(c.zc(f,e,d)||f.ca()<=d&&f.R()<=d)return!1;if(f.ca()<=d||f.R()<=d){b=new g.l;e=new g.l;b.K(f); f.ca()>d?b.W(0,-d):b.W(-d,0);e.K(f);e.W(d,d);for(var h=new g.h,k=!1,m=!1,n=0;nd?h.y>b.G&&h.yb.v&&h.xd*d?!0:!1};c.uI=function(a, b,d){return c.wI(a,b,d)};c.vI=function(a,b,d){var e=new g.l;e.K(a);return c.ek(e,b,d)};c.Rw=function(a,b,d){var e=new g.l;e.K(b);e.W(d,d);return!e.contains(a)};c.dB=function(a,b,d){if(b.ca()<=d&&b.R()<=d)return!1;var e=new g.l,f=new g.l;e.K(b);e.W(d,d);if(!e.contains(a))return!1;if(b.ca()<=d||b.R()<=d){f.K(b);b.ca()>d?f.W(0,-d):f.W(-d,0);if(b.ca()>d){if(a.y>f.G&&a.yf.v&&a.xd?e.W(0,-d):e.W(-d,0);var f=!1;b.ca()>d?a.y>e.G&&a.ye.v&&a.xd&&a.R()>d&&(b.ca()<=d||b.R()<=d)?e=b:(e=a,a=b);if(e.ca()<=d||e.R()<=d){if(a.ca()<=d||a.R()<=d){b=new g.yb;var f=new g.yb,h=[0,0],k=[0,0],m=new g.h;e.dn(m);b.Dc(m);e.en(m);b.Qc(m);a.dn(m);f.Dc(m);a.en(m);f.Qc(m);b.Ea(f,null,h,k,d);return 1!=b.Ea(f,null,null,null,d)?!1:0==h[0]||1==h[1]||0==k[0]||1==k[1]}b=new g.l;f=new g.l;b.K(a);b.W(-d,-d);f.K(b);f.Ea(e);return!f.B()&&(f.ca()>d||f.R()>d)?!1:!0}a.W(d,d);f=new g.l;f.K(e);f.Ea(a);return f.B()||!f.B()&&f.ca()>d&&f.R()>d?!1:!0};c.bQ=function(a, b,d){if(c.zc(a,b,d)||c.zc(b,a,d)||a.ca()<=d&&a.R()<=d||b.ca()<=d&&b.R()<=d)return!1;if(a.ca()<=d||a.R()<=d){if(b.ca()>d&&b.R()>d)return!1;var e=new g.yb,f=new g.yb,h=[0,0],k=[0,0],m=new g.h;a.dn(m);e.Dc(m);a.en(m);e.Qc(m);b.dn(m);f.Dc(m);b.en(m);f.Qc(m);e.Ea(f,null,h,k,d);return 2!=e.Ea(f,null,null,null,d)?!1:(0h[1])&&(0k[1])}if(b.ca()<=d||b.R()<=d)return!1;e=new g.l;e.K(a);e.Ea(b);return e.B()||e.ca()<=d||e.R()<=d?!1:!0};c.jF=function(a,b,d){if(!c.zc(a,b,d))return!1;if(a.ca()<= d&&a.R()<=d)return a=a.sf(),c.eB(a,b,d);if(b.ca()<=d&&b.R()<=d)return b=b.sf(),c.eB(b,a,d);if(a.ca()<=d||a.R()<=d)return c.zc(a,b,d);if(b.ca()<=d||b.R()<=d){var e=new g.l;e.K(a);e.W(-d,-d);if(e.hm(b))return!0;a=new g.l;a.K(e);a.Ea(b);return a.B()||a.ca()<=d&&a.R()<=d?!1:!0}return c.zc(a,b,d)};c.aQ=function(a,b,d){if(c.zc(a,b,d)||c.zc(b,a,d)||a.ca()<=d&&a.R()<=d||b.ca()<=d&&b.R()<=d||b.ca()>d&&b.R()>d&&a.ca()>d&&a.R()>d)return!1;if(a.ca()>d&&a.R()>d)var e=b;else e=a,a=b;if(a.ca()>d&&a.R()>d){b=new g.l; var f=new g.l;f.K(a);f.W(-d,-d);b.K(f);b.Ea(e);return b.B()||b.ca()<=d&&b.R()<=d?!1:!0}b=new g.yb;f=new g.yb;var h=[0,0],k=[0,0],m=new g.h;e.dn(m);b.Dc(m);e.en(m);b.Qc(m);a.dn(m);f.Dc(m);a.en(m);f.Qc(m);b.Ea(f,null,h,k,d);return 1!=b.Ea(f,null,null,null,d)?!1:0h[1]&&0k[1]};c.EI=function(a,b,d){var e=new g.l,f=new g.l,h=new g.Zl(a,b,d,!0);if(!h.next())return!0;if(this.UG(a,b,d))return!1;var k=a,m=null;1736==b.getType()&&(m=b);var n=!1,p=!1;do{var q=h.nl(),r=h.hl();r=b.Na(b.Ba(r)); e.K(h.uz());e.W(d,d);if(e.contains(r)&&(r=g.hd.Yd(k,r,0),0!=r)||1736==b.getType()&&(q=a.Na(a.Ba(q)),f.K(h.az()),f.W(d,d),f.contains(q)&&(r=g.hd.Yd(m,q,0),0!=r)))return!1;n||(!g.Dg.Ml(a,b.da()-1)||null!=a.Bb&&null!=a.Bb.Fb?k=a:(k=new g.Da,a.copyTo(k),k.fj(1)),n=!0);1736!=b.getType()||p||(p=b,!g.Dg.Ml(p,a.da()-1)||null!=b.Bb&&null!=b.Bb.Fb?m=b:(m=new g.Da,p.copyTo(m),m.fj(1)),p=!0)}while(h.next());return!0};c.zc=function(a,b,d){var e=new g.l;e.K(a);e.W(d,d);return e.contains(b)};c.ls=function(a,b,d){var e= new g.l;e.K(b);e.W(d,d);b=new g.h;a.dn(b);if(!e.contains(b))return!0;a.$I(b);if(!e.contains(b))return!0;a.cJ(b);if(!e.contains(b))return!0;a.en(b);return e.contains(b)?!1:!0};c.dI=function(a,b,d){if(a.da()!=b.da()||a.I()!=b.I())return!1;var e=new g.h,f=new g.h,h=!0;d*=d;for(var k=0;kd){h=!1;break}if(!h)break}return h?!0:!1};c.jU=function(a,b,d){if(a.I()!=b.I())return!1;var e=new g.h,f=new g.h, h=!0;d*=d;for(var k=0;kd){h=!1;break}return h?!0:!1};c.YA=function(a,b,d,e,f,h){var k=!1;if(a.I()>b.I()){e&&(e=!1,k=!0);var m=b}else m=a,a=b;b=null;if(f||h||k){b=new g.pn(a.I());for(var n=0;nb.I())var e=b;else e=a,a=b;b=new g.l;var f=new g.l,h=new g.l;e.A(b);a.A(f);b.W(d,d);f.W(d,d);h.K(b);h.Ea(f);f=new g.h;for(var k=new g.h,m=d*d,n=g.ta.oE(a,h),p=n.getIterator(),q=0;qd)return!1;A=r.Si;if(x*(1-A)<=d||1==A)break}if(x*(1-A)>d)return!1;n=0;p.resize(0); q.rh.length=0}}return h};c.WG=function(a,b,d){if(1>c.Xz(a,b,d,null))return!1;var e=new g.l,f=new g.l;a.A(e);b.A(f);var h=c.ls(e,f,d);e=c.ls(f,e,d);return h&&e?!0:h&&!e?!c.ym(b,a,d,!1):e&&!h?!c.ym(a,b,d,!1):!c.ym(a,b,d,!1)&&!c.ym(b,a,d,!1)};c.Xz=function(a,b,d,e){function f(Q,U){return t.QE(Q,U)}if(a.yz()>b.yz())var h=b,k=a;else h=a,k=b;a=h.Ga();b=k.Ga();var m=[0,0],n=[0,0],p=-1,q=0,r=new g.ia(0),t=new c,u=new g.l,w=new g.l,y=new g.l;h.A(u);k.A(w);u.W(d,d);w.W(d,d);y.K(u);y.Ea(w);h=null;null!=e&&(h= new g.h);var x=w=w=null,z=k.Bb;null!=z?(w=z.Fb,x=z.zo,null==w&&(w=g.ta.jj(k,y))):w=g.ta.jj(k,y);k=w.getIterator();z=null;for(null!=x&&(z=x.getIterator());a.$a();)for(x=0;a.Ha();){var A=a.ha();A.A(u);if(u.isIntersecting(y)&&(null==z||(z.Xi(u,d),-1!=z.next()))){var B=A.Qb();k.Uo(A,d);for(var C=k.next();-1!=C;C=k.next()){var E=w.ja(C);b.Vb(E);var F=b.ha(),H=F.Qb(),G=A.Ea(F,null,m,n,d);if(0d)return p=1;var L=B*(J-C);if(b.Ha()){F= b.ha();G=A.Ea(F,null,m,null,d);if(2==G){G=m[0];var M=m[1];G=B*(M-G);if(L+G>d)return p=1}b.Vb(E);b.ha()}if(!b.vm()){b.li();F=b.li();G=A.Ea(F,null,m,null,d);if(2==G&&(G=m[0],M=m[1],G=B*(M-G),L+G>d))return p=1;b.Vb(E);b.ha()}if(a.Ha()){E=a.wb();A=a.ha();G=A.Ea(F,null,m,null,d);if(2==G&&(G=m[0],M=m[1],G=B*(M-G),L+G>d))return p=1;a.Vb(E);a.ha()}if(!a.vm()){E=a.wb();a.li();A=a.li();G=A.Ea(F,null,m,null,d);if(2==G&&(G=m[0],M=m[1],G=H*(M-G),L+G>d))return p=1;a.Vb(E);a.ha()}F=v.construct(a.wb(),a.gb,C,J,b.wb(), b.gb,p,I);t.rh.push(F);r.add(r.size)}p=0;null!=e&&(A.hc(C,h),e.add(h.x),e.add(h.y))}}if(qd)x=B*(F.Si-F.Kj),A=F.Si,C=F.Mm;else{F.Mm!=C?(x=B*(F.Si-F.Kj),C=F.Mm):x+=B*(F.Si-F.Kj);if(x>d)return p=1;A=F.Si;if(1==A)break}B*(1-A)>d&&(x=0);q=0;r.resize(0);t.rh.length=0}}}return p};c.UG=function(a,b,d){var e=a.Ga(),f=b.Ga();for(a=new g.Zl(a,b,d,!1);a.next();){b=a.nl();var h=a.hl(); e.Vb(b);f.Vb(h);b=e.ha();if(0d)return!1;q=!0}else if(0!=t){q=m[0]; r=n[0];if(0q&&0r)return!1;q=!0}}if(!q)return!1;h=new g.l;k=new g.l;f=new g.l;a.A(h);b.A(k);h.W(1E3*d,1E3*d);k.W(1E3*d,1E3*d);f.K(h);f.Ea(k);return 10d&&(n=!0,p&&q))return!0}else if(0!=x&&(x=u[0],z=w[0],0x&&0z))return!0}f=new g.l;r=new g.l;f.K(h);f.W(1E3*d,1E3*d);r.K(k);r.W(1E3*d,1E3*d);m.K(f);m.Ea(r);h="";h=n?h+"**":h+"T*";if(p){if(10q&&0r)))return e[0]=!0,!1}if(!p){e[0]=!0;k=new g.l;a.A(k);k.W(d,d);n=a;p=!1;m=new g.l;e=0;for(f=b.da();ep&&0q)return!1;p=!0}}if(!p)return!1;h=new g.l;k=new g.l;f=new g.l;a.A(h);b.A(k);h.W(1E3*d,1E3*d);k.W(1E3*d,1E3*d);f.K(h);f.Ea(k);return 10p&&0q)return!0;p=!0}}if(!p)return!1;h=new g.l;k=new g.l;m=new g.l;n=new g.l;f=new g.l;a.A(h);b.A(k);return c.ls(k,h,d)?(m.K(h),m.W(1E3*d,1E3*d),n.K(k),n.W(1E3*d,1E3*d),f.K(m),f.Ea(n),10h;h++){var k=e.charAt(h);if("*"!=k&&"T"!=k&&"F"!=k&&"0"!=k&&"1"!=k&&"2"!=k)throw g.i.fa("relation string");}h=this.MR(e,a.Db(),b.Db());if(0!=h)return g.ud.zB(a,b,d,h,f);h=new g.l;a.A(h);k=new g.l;b.A(k);var m=new g.l;m.K(h);m.Zb(k);d=g.ta.Wd(d,m,!1);a=this.WE(a,d);b=this.WE(b,d);if(a.B()||b.B())return this.uW(a,b,e);h=a.getType(); k=b.getType();m=!1;switch(h){case 1736:switch(k){case 1736:m=this.rt(a,b,d,e,f);break;case 1607:m=this.$m(a,b,d,e,f);break;case 33:m=this.qt(a,b,d,e);break;case 550:m=this.pt(a,b,d,e,f)}break;case 1607:switch(k){case 1736:m=this.$m(b,a,d,this.Zp(e),f);break;case 1607:m=this.gB(a,b,d,e,f);break;case 33:m=this.tt(a,b,d,e,f);break;case 550:m=this.st(a,b,d,e,f)}break;case 33:switch(k){case 1736:m=this.qt(b,a,d,this.Zp(e));break;case 1607:m=this.tt(b,a,d,this.Zp(e),f);break;case 33:m=this.$U(a,b,d,e); break;case 550:m=this.lt(b,a,d,this.Zp(e))}break;case 550:switch(k){case 1736:m=this.pt(b,a,d,this.Zp(e),f);break;case 1607:m=this.st(b,a,d,this.Zp(e),f);break;case 550:m=this.ZA(a,b,d,e,f);break;case 33:m=this.lt(a,b,d,e)}break;default:m=!1}return m};c.rt=function(a,b,d,e,f){var h=new c;h.Yi();h.bj(e);h.xJ();var k=new g.l,m=new g.l;a.A(k);b.A(m);e=!1;g.ud.dk(k,m,d)&&(h.Cu(a,b),e=!0);e||(k=g.ud.qc(a,b,!1),4==k?(h.Cu(a,b),e=!0):1==k?(h.ly(b),e=!0):2==k&&(h.ZD(a),e=!0));e||(e=new g.gd,a=e.Ib(a),b=e.Ib(b), h.Wo(e,d,f),h.Bp(a,b),h.j.Ug());return c.fg(h.J,h.Xc)};c.Sw=function(a,b,d,e){var f=new c;f.Yi();f.bj("T*****F**");f.xJ();var h=new g.l,k=new g.l;a.A(h);b.A(k);var m=!1;g.ud.dk(h,k,d)&&(f.Cu(a,b),m=!0);m||(h=g.ud.qc(a,b,!1),4==h?(f.Cu(a,b),m=!0):1==h?(f.ly(b),m=!0):2==h&&(f.ZD(a),m=!0));if(m)return h=this.fg(f.J,f.Xc);m=new g.gd;a=m.Ib(a);h=m.Ib(b);g.Tk.V(m,d,e,!1);d=m.Ne(h).mg();m.Gp(0,!0,!0);g.rn.V(m,a,-1,!1,e);if(0==m.I(a))return!1;g.rn.V(m,h,-1,!1,e);f.er(m,e);b=0==m.I(h);if(!b&&(f.Bp(a,h),f.j.Ug(), h=this.fg(f.J,f.Xc),!h))return h;a=m.Ne(a);m=new g.gd;a=m.Ib(a);h=m.Ib(d);f.er(m,e);f.le=0;f.Yi();f.bj(b?"T*****F**":"******F**");f.IB();f.Bp(a,h);f.j.Ug();return h=this.fg(f.J,f.Xc)};c.$m=function(a,b,d,e,f){var h=new c;h.Yi();h.bj(e);h.IB();var k=new g.l,m=new g.l;a.A(k);b.A(m);e=!1;g.ud.dk(k,m,d)&&(h.Du(a,b),e=!0);e||(k=g.ud.qc(a,b,!1),4==k?(h.Du(a,b),e=!0):1==k&&(h.$D(b),e=!0));e||(e=new g.gd,a=e.Ib(a),b=e.Ib(b),h.Wo(e,d,f),h.kh=h.j.Dp(),c.Jw(b,h.j,h.kh),h.Bp(a,b),h.j.Ep(h.kh),h.j.Ug());return c.fg(h.J, h.Xc)};c.fB=function(a,b,d,e){var f=new c;f.Yi();f.bj("T*****F**");f.IB();var h=new g.l,k=new g.l;a.A(h);b.A(k);var m=!1;g.ud.dk(h,k,d)&&(f.Du(a,b),m=!0);m||(h=g.ud.qc(a,b,!1),4==h?(f.Du(a,b),m=!0):1==h&&(f.$D(b),m=!0));if(m)return d=this.fg(f.J,f.Xc);m=new g.gd;a=m.Ib(a);b=m.Ib(b);f.Wo(m,d,e);if(0==m.I(a))return!1;f.Bp(a,b);f.j.Ug();return d=this.fg(f.J,f.Xc)};c.pt=function(a,b,d,e,f){var h=new c;h.Yi();h.bj(e);h.yJ();var k=new g.l,m=new g.l;a.A(k);b.A(m);e=!1;g.ud.dk(k,m,d)&&(h.Eu(a),e=!0);e||(k= g.ud.qc(a,b,!1),4==k?(h.Eu(a),e=!0):1==k&&(h.zN(),e=!0));e||(e=new g.gd,a=e.Ib(a),b=e.Ib(b),h.Wo(e,d,f),h.Gy(a,b),h.j.Ug());return c.fg(h.J,h.Xc)};c.gB=function(a,b,d,e,f){var h=new c;h.Yi();h.bj(e);h.eX();e=new g.l;var k=new g.l;a.A(e);b.A(k);var m=!1;g.ud.dk(e,k,d)&&(h.PG(a,b),m=!0);m||4!=g.ud.qc(a,b,!1)||(h.PG(a,b),m=!0);m||(e=new g.gd,a=e.Ib(a),b=e.Ib(b),h.Wo(e,d,f),h.Yh=h.j.Dp(),h.kh=h.j.Dp(),c.Jw(a,h.j,h.Yh),c.Jw(b,h.j,h.kh),h.Bp(a,b),h.j.Ep(h.Yh),h.j.Ep(h.kh),h.j.Ug());return c.fg(h.J,h.Xc)}; c.st=function(a,b,d,e,f){var h=new c;h.Yi();h.bj(e);h.MJ();e=new g.l;var k=new g.l;a.A(e);b.A(k);var m=!1;g.ud.dk(e,k,d)&&(h.Vz(a),m=!0);m||4!=g.ud.qc(a,b,!1)||(h.Vz(a),m=!0);m||(e=new g.gd,a=e.Ib(a),b=e.Ib(b),h.Wo(e,d,f),h.Yh=h.j.Dp(),c.Jw(a,h.j,h.Yh),h.Gy(a,b),h.j.Ep(h.Yh),h.j.Ug());return c.fg(h.J,h.Xc)};c.ZA=function(a,b,d,e,f){var h=new c;h.Yi();h.bj(e);h.RJ();e=new g.l;var k=new g.l;a.A(e);b.A(k);var m=!1;g.ud.dk(e,k,d)&&(h.yI(),m=!0);m||(e=new g.gd,a=e.Ib(a),b=e.Ib(b),h.Wo(e,d,f),h.Gy(a,b), h.j.Ug());return c.fg(h.J,h.Xc)};c.qt=function(a,b,d,e){var f=new c;f.Yi();f.bj(e);f.yJ();var h=new g.l;a.A(h);b=b.D();var k=!1;g.ud.Rw(b,h,d)&&(f.Eu(a),k=!0);k||(d=g.hd.Yd(a,b,d),1==d?(f.J[0]=0,f.J[2]=2,f.J[3]=-1,f.J[5]=1,f.J[6]=-1):2==d?(f.J[6]=-1,0!=a.Ke()?(f.J[0]=-1,f.J[3]=0,f.J[2]=2,f.J[5]=1):(f.J[0]=0,f.J[3]=-1,f.J[5]=-1,d=new g.l,a.A(d),f.J[2]=0==d.ca()&&0==d.R()?-1:1)):f.Eu(a));return this.fg(f.J,e)};c.tt=function(a,b,d,e,f){var h=new c;h.Yi();h.bj(e);h.MJ();var k=new g.l;a.A(k);e=b.D();var m= !1;g.ud.Rw(e,k,d)&&(h.Vz(a),m=!0);if(!m){k=null;var n=m=!1;if(h.ea[0]||h.ea[6])g.ud.Yz(a,e,d)?(h.ea[0]&&(k=g.pi.gm(a,f),n=!g.ud.kt(k,e,d),m=!0,h.J[0]=n?-1:0),h.J[6]=-1):(h.J[0]=-1,h.J[6]=0);h.ea[3]&&(null!=k&&k.B()?h.J[3]=-1:(m||(null==k&&(k=g.pi.gm(a,f)),n=!g.ud.kt(k,e,d),m=!0),h.J[3]=n?0:-1));h.ea[5]&&(null!=k&&k.B()?h.J[5]=-1:m&&!n?h.J[5]=0:(null==k&&(k=g.pi.gm(a,f)),f=g.ud.Nw(k,b,d),h.J[5]=f?-1:0));h.ea[2]&&(0!=a.Qb()?h.J[2]=1:(f=new g.de(a.description),f.Fd(a,0,a.I()),a=g.ud.Nw(f,b,d),h.J[2]= a?-1:0))}return this.fg(h.J,h.Xc)};c.lt=function(a,b,d,e){var f=new c;f.Yi();f.bj(e);f.RJ();var h=new g.l;a.A(h);b=b.D();var k=!1;g.ud.Rw(b,h,d)&&(f.yI(),k=!0);if(!k){h=!1;k=!0;d*=d;for(var m=0;mh;h++)f[h]=-1;g.h.yc(a,b)<=d*d?f[0]=0:(f[2]=0,f[6]=0);f[8]=2;return c.fg(f,e)};c.fg=function(a, b){for(var d=0;9>d;d++)switch(b.charAt(d)){case "T":if(-1==a[d])return!1;break;case "F":if(-1!=a[d])return!1;break;case "0":if(0!=a[d])return!1;break;case "1":if(1!=a[d])return!1;break;case "2":if(2!=a[d])return!1}return!0};c.uW=function(a,b,d){var e=[-1,-1,-1,-1,-1,-1,-1,-1,-1];if(a.B()&&b.B()){for(var f=0;9>f;f++)e[f]=-1;return this.fg(e,d)}f=!1;a.B()&&(a=b,f=!0);e[0]=-1;e[1]=-1;e[3]=-1;e[4]=-1;e[6]=-1;e[7]=-1;e[8]=2;b=a.getType();g.aa.Hc(b)?1736==b?0!=a.Ke()?(e[2]=2,e[5]=1):(e[5]=-1,b=new g.l, a.A(b),e[2]=0==b.ca()&&0==b.R()?0:1):(b=0!=a.Qb(),e[2]=b?1:0,e[5]=g.pi.aq(a)?0:-1):(e[2]=0,e[5]=-1);f&&this.vK(e);return this.fg(e,d)};c.MR=function(a,b,d){return c.dQ(a)?3:c.UP(a)?4:c.cY(a,b,d)?8:c.CP(a,b,d)?16:c.eP(a)?1:c.EU(a,b,d)?32:0};c.dQ=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};c.UP=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};c.cY=function(a,b,d){if(0==b&&0==d)return!1;if(2!=b||2!=d)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==d&&"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!=d&&"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};c.CP=function(a,b,d){return b>d?"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==d&&"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};c.eP=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};c.EU=function(a,b,d){if(b==d){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};c.Jw=function(a,b,d){a=b.La(a);for(var e=b.Re;-1!=e;e=b.Rf(e))if(0!=(b.xd(e)&a)){var f=b.Me(e);if(-1==f)b.nn(e,d,0);else{var h=f,k=0;do 0!=(b.dh(h)&a)&&k++,h=b.jc(b.xa(h));while(h!=f);b.nn(e,d,k)}}};c.Zp=function(a){var 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)}; c.prototype.Yi=function(){for(var a=0;9>a;a++)this.J[a]=-2,this.Za[a]=-2};c.vK=function(a){var b=a[1],d=a[2],e=a[5];a[1]=a[3];a[2]=a[6];a[5]=a[7];a[3]=b;a[6]=d;a[7]=e};c.prototype.bj=function(a){this.Xc=a;for(a=0;9>a;a++)"*"!=this.Xc.charAt(a)?(this.ea[a]=!0,this.le++):this.ea[a]=!1};c.prototype.UJ=function(){for(var a=0;9>a;a++)this.ea[a]&&-2==this.J[a]&&(this.J[a]=-1,this.ea[a]=!1)};c.prototype.pc=function(a){if(-2==this.J[a])return!1;if(-1==this.J[a])return this.ea[a]=!1,this.le--,!0;if("T"!=this.Xc.charAt(a)&& "F"!=this.Xc.charAt(a)){if(this.J[a]k?1:0};a.prototype.reset=function(){this.yA=-1};return a}(),c=function(){function a(){this.Wm=this.Gl=null;this.fb=new g.Yj;this.fb.RP();this.$d=new l(this);this.fb.Vo(this.$d)}a.prototype.HQ=function(){var b=!1;this.fw&&(b=this.IQ());if(1==this.g.da(this.X)){var d= this.g.Ob(this.X);b=this.g.wz(d);this.g.PB(d,!0);return 0>b?(b=this.g.Xa(d),this.g.pJ(b),this.g.Wg(d,this.g.Ma(b)),!0):!1}this.El=this.g.Ky();this.wo=this.g.Ky();for(d=this.g.Ob(this.X);-1!=d;d=this.g.Rb(d))this.g.gr(d,this.El,0),this.g.gr(d,this.wo,-1);d=new g.ia(0);this.yh=NaN;var e=new g.h;this.et=this.g.da(this.X);this.ro=this.g.Gd();this.Rs=this.g.Gd();for(var f=this.Gl.rc(this.Gl.je);-1!=f;f=this.Gl.lb(f)){var h=this.Gl.getData(f);this.g.Gc(h,e);e.y!=this.yh&&0!=d.size&&(b=this.ut(d)||b,this.$d.reset(), d.clear(!1));d.add(h);this.yh=e.y;if(0==this.et)break}0=this.MA.length&&this.MA.push(new g.ig);var a=this.MA[this.Cw];this.Cw++;return a};c.prototype.clear=function(){this.wB(this.mo);this.wB(this.$s);this.wB(this.yw);this.Cw=0};c.prototype.Oo=function(a){this.mo.push(this.Ow(a))}; c.prototype.ol=function(a){return 0==a?this.$s.length:this.yw.length};c.prototype.Vp=function(a,b){return this.SR(a,b).$i};c.prototype.Ea=function(a,b){if(2!=this.mo.length)throw g.i.Qa();this.qa=a;var d=g.lc.ox(.01*a),e=!1,f=this.mo[0],h=this.mo[1];if(b||0!=(f.$i.zr(h.$i,a,!0)&5)){if(322==f.$i.getType()){var k=f.$i;if(322==h.$i.getType()){b=h.$i;var m=g.yb.Zx(k,b,null,this.Fq,this.Bk,a);if(0==m)throw g.yb.Zx(k,b,null,this.Fq,this.Bk,a),g.i.Qa();a=Array(9);g.O.$u(a,null);for(var n=0;nd&&(e=!0)):r>u?(k.hc(p,y),p=new g.h,b.hc(q,p),g.h.yc(y,p)>d&&(e=!0)):(b.hc(q,y),r=new g.h,k.hc(p,r),g.h.yc(y,r)>d&&(e=!0));a[n]=y}f=0;h=-1;for(n=0;n<=m;n++)w=nthis.Bk[1]&&(w=this.Bk[0],this.Bk[0]=this.Bk[1],this.Bk[1]=w,n=k[0],k[0]=k[1],k[1]=n);f=0;h=-1;for(n=0;n<=m;n++)w=n=h;h++){b=1>h?this.Fq[h]:1;if(b!=d){var k=this.aB();a.ah(d,b,k);-1!=f&&k.get().Dc(e);1!=h&&k.get().Qc(e);d=b;this.$s.push(this.Ow(k.get()))}f=h}this.Bf.Cb(e)}else throw g.i.Qa();};return c}();g.TC=l})(D||={});(function(g){var v= function(){function l(c){this.Ds=this.rk=this.sb=null;this.ag=0;this.zm=!1;this.zf=-1;this.Cl=this.Jd=0;this.gb=-1;this.ib=c;this.ag=this.Wx(this.Cl);this.zm=!1;this.rk=null;this.Ds=new g.h}l.prototype.BW=function(c){if(this.ib!=c.ib)throw g.i.Hb();this.zf=c.zf;this.Jd=c.Jd;this.gb=c.gb;this.Cl=c.Cl;this.ag=c.ag;this.zm=c.zm;this.rk=null};l.prototype.ha=function(){this.zf!=this.Jd&&this.BD();if(this.zm)this.Jd=(this.Jd+1)%this.ag;else{if(this.Jd==this.ag)throw g.i.ce();this.Jd++}return this.rk};l.prototype.li= function(){if(this.zm)this.Jd=(this.ag+this.Jd-1)%this.ag;else{if(0==this.Jd)throw g.i.ce();this.Jd--}this.Jd!=this.zf&&this.BD();return this.rk};l.prototype.DW=function(){this.zf=-1;this.Jd=0};l.prototype.EW=function(){this.Jd=this.ag;this.zf=-1};l.prototype.Vb=function(c,a){void 0===a&&(a=-1);if(0<=this.gb&&this.gb=b&&c=this.ib.Ba(a)&&c=this.ib.da())return!1;this.zf=-1;this.Jd=0;this.ag=this.Wx(this.gb);this.ib.Ba(this.gb);this.ib.dc(this.gb);this.Cl++;return!0};l.prototype.Zi=function(){this.ag=this.Jd=this.zf=-1;this.Cl=0;this.gb=-1};l.prototype.Wx=function(c){if(this.ib.Ac())return 0;var a=1;this.ib.dc(c)&&(a=0);return this.ib.Ja(c)-a};l.prototype.On=function(){return this.zf== this.ag-1&&this.ib.dc(this.gb)};l.prototype.JB=function(){this.zm=!0};l.prototype.wb=function(){return this.ib.nb.o[this.gb]+this.zf};l.prototype.IM=function(){return this.ib.Ba(this.gb)};l.prototype.ik=function(){return this.On()?this.ib.Ba(this.gb):this.wb()+1};l.prototype.vm=function(){return 0==this.zf};l.prototype.Qn=function(){return this.zf==this.ag-1};l.prototype.Ha=function(){return this.Jdthis.Jd||this.Jd>=this.ag)throw g.i.ce();this.zf=this.Jd;var c=this.wb();this.ib.mc();var a=this.ib.Ve,b=1;null!=a&&(b=a.read(c)&7);a=this.ib.description;switch(b){case 1:null==this.sb&&(this.sb=new g.yb);this.rk=this.sb;break;case 2:throw g.i.fa("internal error");case 4:throw g.i.Qa();default:throw g.i.Qa();}this.rk.Nf(a);b=this.ik();this.ib.Gc(c,this.Ds);this.rk.Dc(this.Ds); this.ib.Gc(b,this.Ds);this.rk.Qc(this.Ds);for(var d=1,e=a.Aa;de&&(f=a,a=d,d=f,f=b,b=e,e=f,f=-1);if(!(0>e||b>=this.pl)){0>a&&0>d?d=a=-1:a>=this.oi&&d>=this.oi&&(d=a=this.oi);var h=(d-a)/(e-b);e>this.pl&&(e=this.pl,d=h*(e-b)+a);0>b&&(a=h*(0-b)+a,b=0);var k=Math.max(this.oi+1,8388607);-8388607>a?(b=(0-a)/h+b,a=0):a>k&&(b=(this.oi-a)/h+b,a=this.oi);-8388607>d?e=(0-a)/h+b:d>k&&(e=(this.oi-a)/h+b);b=g.O.truncate(b);e=g.O.truncate(e);b!=e&&(d=new v,d.x=g.O.truncate(4294967296*a),d.y= b,d.H=e,d.WP=g.O.truncate(4294967296*h),d.dir=f,null==this.Wl&&(this.Wl=g.O.lg(this.pl,null)),d.next=this.Wl[d.y],this.Wl[d.y]=d,d.ythis.Kw&&(this.Kw=d.H),this.Tq++)}}};c.prototype.sN=function(){if(null!=this.Jh){for(var a=!1,b=null,d=this.Jh;null!=d;)if(d.y++,d.y==d.H){var e=d;d=d.next;null!=b?b.next=d:this.Jh=d;e.next=null}else d.x+=d.WP,null!=b&&b.x>d.x&&(a=!0),b=d,d=d.next;a&&(this.Jh=this.fK(this.Jh))}};c.prototype.lN=function(a){if(!(a>=this.pl)){var b=this.Wl[a]; if(null!=b){this.Wl[a]=null;b=this.fK(b);this.Tq-=this.gK;a=this.Jh;for(var d=!0,e=b,f=null;null!=a&&null!=e;)a.x>e.x?(d&&(this.Jh=e),d=e.next,e.next=a,null!=f&&(f.next=e),f=e,e=d):(d=a.next,a.next=e,null!=f&&(f.next=a),f=a,a=d),d=!1;null==this.Jh&&(this.Jh=b)}}};c.eK=function(a,b){return 0>a?0:a>b?b:a};c.prototype.ZP=function(){if(null!=this.Jh)for(var a=0,b=this.Jh,d=g.O.truncate(g.O.XG(b.x)),e=b.next;null!=e;e=e.next)if(a=this.kF?a^1:a+e.dir,e.x>b.x){var f=g.O.truncate(g.O.XG(e.x));0!=a&&(b=c.eK(d, this.oi),d=c.eK(f,this.oi),d>b&&bthis.Kf[1].x&&(a=this.Kf[0],this.Kf[0]= this.Kf[1],this.Kf[1]=a):c.AN(this.Kf,b,function(f,h){return f==h?0:f.xh.x?1:0});a=this.Kf[0];this.Kf[0]=null;d=a;for(e=1;ethis.Wh.size)break;var n=this;this.xe.Vd(0,this.xe.size,function(p,q){return n.pM(p, q)});d=0;for(e=this.xe.size;dw?1:yx?1:0;0==y&&(r=m[n*r+3],t=m[n*t+3],y=rm;m++){n=r[m];p=b[m];for(q=m-1;0<=q&&r[q]>n;)r[q+1]=r[q],b[q+1]=b[q],q--;r[q+1]=n;b[q+1]=p}r=0;0!=b[0]&&(r|=1);0!=b[1]&&(r|=2);0!=b[2]&&(r|=4);0!=b[3]&&(r|=8);if(5!=r&&10!=r)return!1;c==a?c?(this.g.Bc(k,d),this.g.Cc(d,k),this.g.Bc(e,h),this.g.Cc(h,e)):(this.g.Cc(k,d),this.g.Bc(d,k),this.g.Cc(e,h),this.g.Bc(h,e)):c?(this.g.Cc(d,f),this.g.Bc(f,d),this.g.Cc(h,e),this.g.Bc(e,h)):(this.g.Bc(d,f),this.g.Cc(f,d),this.g.Bc(h,e),this.g.Cc(e,h));return!0};l.prototype.tD=function(c, a,b,d,e,f){this.MY?this.VM():this.UM(c,a,b,d,e,f)};l.prototype.VM=function(){throw g.i.fa("not implemented.");};l.prototype.UM=function(c,a,b,d,e,f){if(c!=a)c?(this.g.Bc(b,e),this.g.Cc(e,b),this.g.Bc(f,d),this.g.Cc(d,f),this.vn(e,b),this.ui(e,!0),this.g.mi(e,!0),this.bk(b),this.vn(f,d),this.ui(f,!0),this.g.mi(f,!1)):(this.g.Bc(e,b),this.g.Cc(b,e),this.g.Bc(d,f),this.g.Cc(f,d),this.vn(e,b),this.ui(e,!0),this.g.mi(e,!1),this.bk(b),this.vn(f,d),this.ui(f,!0),this.g.mi(f,!0)),this.bk(d);else{var h=c? b:d,k=a?e:f;c=c?d:b;a=a?f:e;e=!1;this.g.Bc(h,k);this.g.Bc(k,h);this.g.Cc(c,a);this.g.Cc(a,c);for(f=a;f!=k;)b=this.g.Ma(f),d=this.g.U(f),this.g.Cc(f,d),this.g.Bc(f,b),e=e||f==h,f=d;e||(b=this.g.Ma(k),d=this.g.U(k),this.g.Cc(k,d),this.g.Bc(k,b));this.vn(k,h);this.ui(k,!0);this.g.mi(k,!1);this.bk(h);this.vn(a,c);this.ui(a,!0);this.g.mi(a,!1);this.bk(c)}};l.prototype.cD=function(){for(var c=!1,a=this.g.Ob(this.X);-1!=a;){for(var b=this.g.Xa(a),d=0,e=this.g.Ja(a);dthis.g.Ja(a)){c=this.g.Xa(a);d=0;for(e=this.g.Ja(a);d=c)throw g.i.N("Invalid or unsupported wkid: "+ c);var a=new l;a.dg=c;return a};l.qP=function(c){if(null==c||0==c.length)throw g.i.N("Cannot create SpatialReference from null or empty text.");var a=new l;a.wh=c;return a};l.prototype.Nb=function(c){return this==c?!0:null==c||this.constructor!=c.constructor||this.dg!=c.dg||0==this.dg&&this.wh!==c.wh?!1:!0};l.prototype.toString=function(){return"[ tol: "+this.Kn()+"; wkid: "+this.Ec()+"; wkt: "+this.Bz()+"]"};l.prototype.cc=function(){if(""!==this.pp)return this.pp;var c=this.toString();if(Array.prototype.reduce)return this.pp= "S"+c.split("").reduce(function(d,e){d=(d<<5)-d+e.charCodeAt(0);return d&d},0);var a=0;if(0===c.length)return"";for(var b=0;b=a.length)throw g.i.N();var b=null;try{b=g.NC.fromString(a)}catch(d){b=null}return null==b?null:c.bD(b,!0)};c.prototype.by=function(a){this.Kd= a;this.Eo=this.Kd.Hd()};c.prototype.gy=function(a){this.KH=a;this.ST=null!=this.KH?this.KH.Eo:null};c.prototype.Wc=function(){return 0==this.Sb()||3==this.Sb()?!1:this.Kd.Wc()};c.prototype.IG=function(){return 0==this.Sb()?!1:3==this.Sb()?this.Ji.fk().Wc():this.Kd.Wc()};c.prototype.eh=function(){return null!=this.Kd?this.Kd.Ue:null};c.prototype.pm=function(){return this.Kd.pm()};c.prototype.bf=function(){return this.Kd.bf()};c.prototype.hh=function(){return null!=this.Kd?this.Kd.sw:NaN};c.prototype.Up= function(){return this.Kd.Up()};c.prototype.Wr=function(){return this.Kd.Wr()};c.prototype.kk=function(){return this.Kd.kk()};c.prototype.kS=function(a){return g.OC.Py(this.Kd,a.Kd)};c.prototype.ml=function(){return this.Kd.ml()};c.prototype.Vr=function(){return this.Kd.Vr()};c.prototype.zi=function(){return 3==this.Sb()?this.Ji.fk().zi():this.Kd.zi()};c.prototype.gh=function(){if(!this.Wc())throw g.i.N("!isPannable()");var a=new g.l;this.Kd.gh(a);return a};c.prototype.Oe=function(){if(!this.Wc())throw g.i.N("!isPannable()"); return this.Kd.so};c.prototype.HR=function(){if(!this.Wc())throw g.i.N("!isPannable()");var a=new g.l;this.Kd.GR(a);return a};c.prototype.pv=function(){if(!this.Wc())throw g.i.N("!isPannable()");return this.Kd.pv()};c.prototype.ov=function(){if(!this.Wc())throw g.i.N("!isPannable()");return this.Kd.ov()};c.prototype.Xr=function(){return null!=this.Ji?this.Ji.fk().Xr():this.Kd.Xr()};c.prototype.PQ=function(){return this.Kd.hv()};c.prototype.Qp=function(){return this.Eo.getUnitFactor()};c.prototype.vz= function(a){return this.Hq.vz(a)};c.prototype.sc=function(){var a=this.Sb();if(1==a)return this;if(3==a)return this.Ji.fk().sc();if(0==a)throw g.i.fa("invalid call");if(4===a)throw g.i.fa("invalid call");if(null!==this.jw)return this.jw;a=this.eh().getGeogcs();if(null==a)throw g.i.Qa();return this.jw=c.bF(a,this.Hq.VF())};c.bF=function(a,b){if(null==a)throw g.i.N("null pointer.");var d=new c;a=c.mu(a,!0);d.Hq.Xx(a,null,b);d.by(a);d.gy(null);d.dg=a.$r();return d};c.prototype.Sb=function(){var a=this.eh(); if(null!=a)switch(a.getType()){case g.Sc.PE_TYPE_GEOGCS:return 1;case g.Sc.PE_TYPE_PROJCS:return 2}return 4};c.prototype.hv=function(){return this.Kd.hv()};c.mu=function(a,b){var d=a.getCode();if(0>=d&&(d=g.pf.getCode(a),0=d?a:g.pf.coordsys(d);a=new g.OC(a);c.lK[b]=a;0= a)throw g.i.N("Invalid or unsupported wkid: "+a);var b=c.qx[a];if(null!=b)return b;b=g.pf.coordsys(a);if(null==b)throw g.i.N("Invalid or unsupported wkid: "+a);b=c.mu(b,!1);b.$r()!=a&&(c.qx[a]=b);return b};c.kM=function(a){if(null==a||void 0===a||0==a.length)throw g.i.N("Cannot create SpatialReference from null or empty text.");var b=null;try{b=g.pf.fromString(g.Sc.PE_TYPE_COORDSYS,a)}catch(d){throw g.i.N("Cannot create SpatialReference from text. "+d.message);}if(null===b)throw g.i.N("Cannot create SpatialReference from text. "); return c.mu(b,!0)};c.bD=function(a,b){var d=a.getCode();if(0>=d&&(d=g.pf.getCode(a),0=d||(e=g.pf.vertcs(d));if(null===e)throw g.i.N();e=new g.PL(e);c.mK[a]=e;0a&&(this.Pj=a/(d-this.Fm));b=this.Gm+b;e=g.O.truncate((b-this.Gm)*this.Pj);e>a&&(this.Pj=a/(b-this.Gm))}};c.prototype.aC=function(a){switch(a){case 0:this.Ik=void 0;case 1:this.Mq=void 0;case 2:this.Lq=void 0}};c.prototype.Kn=function(a){switch(a){case 0:return this.Ik;case 1:return this.Mq;case 2:return this.Lq}return 0};c.prototype.vz=function(a){if(this.Rm==v.FloatingPoint)return 0; switch(a){case 0:return 1/this.Pj;case 1:return 1/this.Fo;case 2:return 1/this.Fo;default:return 0}};c.prototype.toString=function(){var a="SRPD [m_toleranceXY: "+this.Ik.toString();a=a+";m_falseX: "+this.Fm.toString();a=a+";m_falseY: "+this.Gm.toString();a=a+";m_unitsXY: "+this.Pj.toString();a=a+";m_falseZ: "+this.sA.toString();a=a+";m_unitsZ: "+this.Fo.toString();a=a+";m_falseM: "+this.rA.toString();a=a+";m_toleranceZ: "+this.Mq.toString();a=a+";m_toleranceM: "+this.Lq.toString();a=a+";m_precision: "+ this.Rm.toString();return a+"] "};return c}();g.ZL=l})(D||={});(function(g){function v(e,f){89.99999f&&(f=-89.99999);f*=.017453292519943;return[111319.49079327169*e,3189068.5*Math.log((1+Math.sin(f))/(1-Math.sin(f)))]}function l(e,f,h){e=e/6378137*57.29577951308232;return h?[e,57.29577951308232*(1.5707963267948966-2*Math.atan(Math.exp(-1*f/6378137)))]:[e-360*Math.floor((e+180)/360),57.29577951308232*(1.5707963267948966-2*Math.atan(Math.exp(-1*f/6378137)))]}function c(e,f,h){var k= e.Of();if(33===e.getType())f=f(k.Lg(),k.ih()),k.Cb(f[0],f[1]);else if(197===e.getType()){var m=f(e.es(),e.gs(),h);f=f(e.ds(),e.fs(),h);k.K(m[0],m[1],f[0],f[1])}else for(m=new g.h,e=0;eh&&(h=637.100877141506);for(var k=[],m,n=0;nthis.Hg&&this.Dz(c)};l.prototype.tx=function(c,a){c*=this.stride;a*=this.stride;for(var b=0;bthis.ns.va)return 1;e=d.na==d.la;var f=b.na==b.la;if(e||f){if(e&&f)return 0;if(d.na==b.na&&d.sa==b.sa)return e?1:-1;if(d.la==b.la&&d.pa==b.pa)return e?-1:1}e=d.Pe(this.yh,this.ms.oa);f=b.Pe(this.yh,this.ns.oa);e==f&&(e=Math.min(d.la,b.la),f=.5*(e+this.yh),f==this.yh&&(f=e),e=d.Pe(f,this.ms.oa),f=b.Pe(f,this.ns.oa)); return ef?1:0};a.prototype.aK=function(b){this.yh=b};return a}(),l=function(){function a(b){this.ib=b;this.WH=new g.ig;this.Bf=new g.h;this.wA=new g.Nc}a.prototype.kX=function(b){this.Bf.L(b)};a.prototype.compare=function(b,d){this.ib.pB(b.ja(d),this.WH);b=this.WH.get();this.wA.K(b.sa,b.pa);if(this.Bf.xthis.wA.va)return 1;b=b.Pe(this.Bf.y,this.Bf.x);return this.Bf.xb?1:0};return a}();var c=function(){function a(){this.hH=this.Di=this.Gi=this.kA= this.Yn=this.ye=this.Kc=this.jh=this.ge=null;this.Go=this.xg=-1;this.gH=!0;this.pA=!1;this.lA=NaN;this.Ni=new g.Md;this.bO=2147483647;this.aO=g.O.truncate(-2147483648);this.cg=this.ae=this.Hl=this.Cq=this.Cm=this.Bq=this.Os=this.Re=-1;this.wa=0}a.prototype.yy=function(b){this.lA=b};a.prototype.Ym=function(){null==this.ge&&(this.ge=new g.$c(8));var b=this.ge.Ce();this.ge.S(b,1,0);return b};a.prototype.vU=function(){null==this.Kc&&(this.Kc=new g.$c(8));var b=this.Kc.Ce();this.Kc.S(b,2,0);this.Kc.S(b, 3,0);var d=this.Kc.Ce();this.Kc.S(d,2,0);this.Kc.S(d,3,0);this.JJ(b,d);this.JJ(d,b);return b};a.prototype.mI=function(){null==this.ye&&(this.ye=new g.$c(8));var b=this.ye.Ce();this.ye.S(b,2,0);return b};a.prototype.TW=function(b,d){this.ge.S(b,7,d)};a.prototype.mn=function(b,d){this.ge.S(b,2,d)};a.prototype.SW=function(b,d){this.ge.S(b,1,d)};a.prototype.lX=function(b,d){this.ge.S(b,3,d)};a.prototype.iX=function(b,d){this.ge.S(b,4,d)};a.prototype.cr=function(b,d){this.ge.S(b,5,d)};a.prototype.eR=function(b){return this.ge.T(b, 5)};a.prototype.RW=function(b,d){this.ge.S(b,6,d)};a.prototype.cN=function(b,d){this.RW(d,b)};a.prototype.IJ=function(b,d){this.Kc.S(b,1,d)};a.prototype.JJ=function(b,d){this.Kc.S(b,4,d)};a.prototype.Tl=function(b,d){this.Kc.S(b,5,d)};a.prototype.Sl=function(b,d){this.Kc.S(b,6,d)};a.prototype.$W=function(b,d){this.Kc.S(b,2,d)};a.prototype.$w=function(b,d){this.Kc.S(b,3,d)};a.prototype.LF=function(b){return this.Kc.T(b,3)};a.prototype.Gt=function(b,d){this.Kc.S(b,7,d)};a.prototype.EK=function(b,d){if(-1!= this.mm(b))for(d=d?-1:b,b=this.mm(b);-1!=b;b=this.js(b))this.g.Ra(this.tj(b),this.Cq,d)};a.prototype.yx=function(b,d){-1!=b&&(this.EK(b,d),this.EK(this.xa(b),d))};a.prototype.Dt=function(b,d){this.ye.S(b,1,d)};a.prototype.Vg=function(b,d){this.ye.S(b,2,d)};a.prototype.jn=function(b,d){this.ye.S(b,3,d);this.NW(b,this.dR(d));this.MW(d,b)};a.prototype.MW=function(b,d){this.ye.S(b,4,d)};a.prototype.NW=function(b,d){this.ye.S(b,5,d)};a.prototype.DJ=function(b,d){this.ye.S(b,6,d)};a.prototype.BJ=function(b, d){this.ye.S(b,7,d)};a.prototype.AJ=function(b,d){this.Yn.write(b,d)};a.prototype.CJ=function(b,d){this.kA.write(b,d)};a.prototype.kY=function(b){var d=0,e=0,f=this.AF(b),h=new g.h,k=new g.h,m=new g.h;this.Yr(f,h);k.L(h);var n=f;do this.lm(n,m),e+=g.h.tb(k,m),this.$e(this.xa(n))!=b&&(d+=(m.x-h.x-(k.x-h.x))*(m.y-h.y+(k.y-h.y))*.5),k.L(m),n=this.jc(n);while(n!=f);this.Yn.write(b,d);this.kA.write(b,e)};a.prototype.PU=function(b,d){var e=new v(this),f=new g.Yj;f.De(g.O.truncate(this.wa/2));f.Vo(e);for(var h= new g.ia(0),k=this.$g(),m=null,n=0,p=new g.h,q=this.Re;-1!=q;q=this.Rf(q)){n++;if(0==(n&255)&&null!=d&&!d.progress(-1,-1))throw g.i.WC();var r=this.Me(q);if(-1!=r){h.Bh(0);if(!this.gY(f,k,h,r)){this.D(q,p);e.aK(p.y);var t=r;do{var u=this.Ab(t,k);-1!=u&&(f.vd(u,-1),this.Kb(t,k,-2));t=this.jc(this.xa(t))}while(r!=t);t=r;do u=this.Ab(t,k),-1==u&&(u=f.addElement(t,-1),h.add(u)),t=this.jc(this.xa(t));while(r!=t)}for(r=h.size-1;0<=r;r--)u=h.get(r),t=f.ja(u),this.Kb(this.xa(t),k,u),this.OU(f,u,b)}else-1== this.cz(q)&&(null==m&&(m=new l(this)),this.D(q,p),m.kX(p),t=f.IW(m),r=this.Hl,-1!=t&&(u=f.ja(t),this.$e(u)==this.$e(this.xa(u))&&(u=this.OF(f,t)),-1!=u&&(r=this.$e(u))),this.cN(r,q))}this.Jg(k)};a.prototype.OU=function(b,d,e){var f=b.ja(d),h=this.$e(f);if(-1==this.Gn(h)){var k=this.OF(b,d),m=this.xa(f),n=this.$e(m);this.Kp(h);this.Kp(n);var p=this.Gn(h),q=this.Gn(n);-1==k&&-1==p&&(n==h?(this.jn(n,this.Hl),p=q=this.Hl):(-1==q&&(this.jn(n,this.Hl),q=this.Hl),this.jn(h,n),p=n));if(-1!=k){var r=this.$e(k); -1==q&&(0>=this.Kp(r)?(q=this.Gn(r),this.jn(n,q)):(this.jn(n,r),q=r),n==h&&(p=q))}-1==p&&this.hY(h,n);0==e?this.jW(b,d,f,k,h,n):5==e?this.kW(b,d,f,m,h,n):4==e&&this.iW(f,k,h,n)}};a.prototype.jW=function(b,d,e,f,h,k){var m=this.hk(h);if(-1!=f){var n=this.hk(k),p=this.hk(this.$e(f));f=m&n&p;p^=p&this.dh(e);p|=f;0!=p&&(this.Vg(k,n|p),this.Vg(h,p|m),m=m||p)}for(d=b.lb(d);-1!=d;d=b.lb(d)){f=b.ja(d);e=this.$e(this.xa(f));h=this.hk(e);k=this.dh(f);n=this.$e(f);p=this.hk(n);f=h&p&m;m^=m&k;m|=f;if(0==m)break; this.Vg(e,h|m);this.Vg(n,p|m)}};a.prototype.kW=function(b,d,e,f,h,k){if(h!=k){e=this.Ab(e,this.cg);e+=this.Ab(f,this.cg);f=0;var m=new g.ia(0),n=new g.ia(0);n.add(0);for(var p=b.rc(-1);p!=d;p=b.lb(p)){var q=b.ja(p),r=this.xa(q),t=this.$e(q),u=this.$e(r);if(t!=u){q=this.Ab(q,this.cg);q+=this.Ab(r,this.cg);f+=q;r=!1;0!=m.size&&m.Fc()==u&&(n.If(),m.If(),r=!0);if(-1==this.Gn(u))throw g.i.Qa();r&&this.Gn(u)==t||(n.add(f),m.add(t))}}f+=e;0!=m.size&&m.Fc()==k&&(n.If(),m.If());0!=f?0==n.Fc()&&(b=this.g.ld, b=this.La(b),this.Vg(h,b)):0!=n.Fc()&&(b=this.g.ld,b=this.La(b),this.Vg(h,b))}};a.prototype.iW=function(b,d,e,f){var h=this.La(this.g.ld);if(-1==d)this.Vg(f,this.Go),b=this.Ab(b,this.xg),0!=(b&1)?this.Vg(e,h):this.Vg(e,this.Go);else{var k=this.hk(f);0==k?(k=this.hk(this.$e(d)),this.Vg(f,k),b=this.Ab(b,this.xg),0!=(b&1)?this.Vg(e,k==h?this.Go:h):this.Vg(e,k)):(b=this.Ab(b,this.xg),0!=(b&1)?this.Vg(e,k==h?this.Go:h):this.Vg(e,k))}};a.prototype.gY=function(b,d,e,f){var h=f,k=-1,m=-1,n=0;do{if(2==n)return!1; var p=this.Ab(h,d);if(-1!=p){if(-1!=k)return!1;k=p}else{if(-1!=m)return!1;m=h}n++;h=this.jc(this.xa(h))}while(f!=h);if(-1==m||-1==k)return!1;this.Kb(b.ja(k),d,-2);b.Sj(k,m);e.add(k);return!0};a.prototype.hY=function(b,d){var e=this.Kp(b);if(0!=e){var f=this.Kp(d);0f?this.jn(b,d):0>e&&0q.compare(h)?p=1:k=-1,this.Kb(t,this.ae,0),this.Kb(r,this.ae,0),this.Kb(r,this.cg,p),this.Kb(t,this.cg,k)):7==b?(this.Kb(t,this.ae,this.Go),this.Kb(r,this.ae,1736==n?m:0)):4==b&&(this.Kb(t,this.ae,0),this.Kb(r,this.ae,0),this.Kb(r,this.xg,1),this.Kb(t,this.xg,1));n=1736==n?this.aO:0;this.$w(r,m|n);this.$w(t,m|n)}}}}};a.prototype.VT=function(b,d){var e=this.mm(d);if(-1!=e){var f=this.mm(b);this.jh.S(e,1,f);this.Gt(b, e);this.Gt(d,-1)}b=this.xa(b);d=this.xa(d);e=this.mm(d);-1!=e&&(f=this.mm(b),this.jh.S(e,1,f),this.Gt(b,e),this.Gt(d,-1))};a.prototype.IX=function(b){function d(A,B){return f.HO(A,B)}var e=new g.ia(0);e.Jb(10);for(var f=this,h=this.Re;-1!=h;h=this.Rf(h)){e.clear(!1);var k=this.Me(h);if(-1!=k){var m=k;do e.add(m),m=this.jc(this.xa(m));while(m!=k);if(1a.Db())return l.ki(l.Xe(a.Ia()),c,"\x26")}f=new l;e=new g.gd;h=e.Ib(l.Xe(c));a=e.Ib(l.Xe(a));f.Ft(e,b,d);d=f.Av(h,a);c=l.ki(e.Ne(d),c,"\x26");g.aa.Hc(c.getType())&&(c.Ch(2,b),1736==c.getType()&&c.fm());return c};l.bW=function(c,a,b){if(c.B()||a.B())return c.Ia();var d=[null],e=[0],f=2==a.Db();if(1!=a.Db()&&2!=a.Db())throw g.i.Qa(); d[0]=c.D();f?g.hd.sK(a,d,1,b,e):g.hd.tK(a,d,1,b,e);return 0==e[0]?c.Ia():c};l.prototype.LU=function(c,a,b,d,e){if(c.B())return c;var f=new g.gd;c=f.Ib(c);return this.Mk(f,c,a,b,d,e)};l.prototype.NU=function(c,a,b,d,e,f){if(e&&550!=c.ic(a)){var h=new g.RC;h.TX(c,b);h.Ng?(g.Tk.V(c,b,f,!0),e=!1):this.j.yy(b)}else g.Tk.V(c,b,f,!0),e=!1;d&&550!=c.ic(a)?this.j.wJ(c,a,f):this.j.vJ(c,a,f);if(this.j.pA)return this.j.Ug(),this.j=null,this.Mk(c,a,b,d,!1,f);this.j.yy(NaN);f=this.j.La(a);this.bq(f+1);this.Gj[f]= !0;if(1736==c.ic(a)||d&&550!=c.ic(a))return c.Yo(a,0),a=this.Ot(a,-1,-1),c=c.Ne(a),c.Yo(0),e?c.Ch(1,0):(c.Ch(2,b),c.fm()),c;if(1607==c.ic(a))return a=this.Pt(-1),c=c.Ne(a),e||c.Ch(2,b),c;if(550==c.ic(a))return a=this.mr(),c=c.Ne(a),e||c.Ch(2,b),c;throw g.i.Qa();};l.prototype.Mk=function(c,a,b,d,e,f){this.j=new g.iu;try{return this.NU(c,a,b,d,e,f)}finally{this.j.Ug()}};l.Mk=function(c,a,b,d,e){return(new l).LU(c,a,b,d,e)};l.prototype.MU=function(c,a,b,d){this.Mv=c;this.j=new g.iu;c=a.In(b);var e=a.ic(b); 1!=c||550==e?this.j.vJ(a,b,d):this.j.wJ(a,b,d);if(!this.j.pA)if(this.j.yy(NaN),d=this.j.La(b),this.bq(d+1),this.Gj[d]=!0,1736==a.ic(b)||1==c&&550!=a.ic(b))a.Yo(b,0),d=this.Ot(b,-1,-1),a.hC(d,b),a.BB(d);else if(1607==a.ic(b))d=this.Pt(-1),a.hC(d,b),a.BB(d);else if(550==a.ic(b))d=this.mr(),a.hC(d,b),a.BB(d);else throw g.i.fa("internal error");};l.prototype.im=function(c,a){var b=g.aa.tf(this.j.g.ic(c)),d=g.aa.tf(this.j.g.ic(a));if(b>d)return c;var e=this.j.La(c),f=this.j.La(a);this.bq((e|f)+1);this.Gj[this.j.La(c)]= !0;if(2==b&&2==d)return this.Ot(c,a,-1);if(1==b&&2==d||1==b&&1==d)return this.Pt(-1);if(0==b)return this.mr();throw g.i.Qa();};l.prototype.Av=function(c,a){var b=g.aa.tf(this.j.g.ic(c)),d=g.aa.tf(this.j.g.ic(a)),e=this.j.La(c),f=this.j.La(a);this.bq((e|f)+1);this.Gj[this.j.La(c)|this.j.La(a)]=!0;e=-1;1a.Db())return l.ki(l.Xe(c),c,"-");var e=new g.l;c.A(e);var f=new g.l;a.A(f);if(!e.isIntersecting(f))return l.ki(l.Xe(c),c,"-");var h=new g.l;h.K(e);h.Zb(f);b=g.ta.Wd(b,h,!0);f=new l;e=new g.gd;h=e.Ib(l.Xe(c));a=e.Ib(l.Xe(a));f.Ft(e,b,d);d=f.im(h,a);d=e.Ne(d);c=l.ki(d,c,"-");g.aa.Hc(c.getType())&&(c.Ch(2,b),1736==c.getType()&&c.fm());return c}; l.VP=function(c,a,b){if(2>c.length)throw g.i.N("not enough geometries to dissolve");for(var d=0,e=0,f=c.length;en)return l.Xe(c[p]);c=2==d;a=g.ta.Wd(0==d?a:null,h,!0);return(new l).Mk(k,m,a,c,!0,b)};l.Pz=function(c,a,b,d){var e=[null,null,null],f=new g.l;c.A(f); var h=new g.l;a.A(h);var k=new g.l;k.K(f);k.Zb(h);b=g.ta.Wd(b,k,!0);k=new g.l;k.K(h);h=g.ta.Er(b);k.W(h,h);if(!f.isIntersecting(k)){if(c.Db()<=a.Db())return c=l.ki(l.Xe(c.Ia()),c,"\x26"),e[c.Db()]=c,e;if(c.Db()>a.Db())return c=l.ki(l.Xe(a.Ia()),c,"\x26"),e[c.Db()]=c,e}h=new l;f=new g.gd;k=f.Ib(l.Xe(c));a=f.Ib(l.Xe(a));h.Ft(f,b,d);d=h.Pz(k,a);for(a=0;a a.Db())return l.ki(l.Xe(c),c,"^");if(c.Db()b;b++)a[b]=new g.h;c.nB(a);this.fY(a,a);c.Zw(a,4)}};l.prototype.fY=function(c,a){for(var b=0;b< c.length;b++){var d=new g.h,e=c[b];d.x=this.bb*e.x+this.eb*e.y+this.Gb;d.y=this.jb*e.x+this.ab*e.y+this.Lb;a[b]=d}};l.prototype.pS=function(c,a){c.B()||a.B()||0==c.R()||0==c.ca()?this.lx():(this.eb=this.jb=0,this.bb=a.R()/c.R(),this.ab=a.ca()/c.ca(),this.Gb=a.v-c.v*this.bb,this.Lb=a.G-c.G*this.ab)};l.prototype.dY=function(c){var a=new g.h,b=new g.h;a.ma(this.bb,this.jb);b.ma(this.eb,this.ab);a.sub(a);var d=.5*a.Sk();a.ma(this.bb,this.jb);b.ma(this.eb,this.ab);a.add(b);a=.5*a.Sk();return c*(d>a?Math.sqrt(d): Math.sqrt(a))};l.prototype.RB=function(){this.bb=1;this.jb=this.Gb=this.eb=0;this.ab=1;this.Lb=0};l.prototype.isIdentity=function(c){if(void 0!==c){var a=g.h.construct(0,1);this.Eh(a,a);a.sub(g.h.construct(0,1));if(a.Sk()>c*c)return!1;a.ma(0,0);this.Eh(a,a);if(a.Sk()>c*c)return!1;a.ma(1,0);this.Eh(a,a);a.sub(g.h.construct(1,0));return a.Sk()<=c*c}return 1==this.bb&&1==this.ab&&0==this.eb&&0==this.Gb&&0==this.jb&&0==this.Lb};l.prototype.Bi=function(c){return Math.abs(this.bb*this.ab-this.jb*this.eb)<= 2*c*(Math.abs(this.bb*this.ab)+Math.abs(this.jb*this.eb))};l.prototype.gg=function(c,a){this.bb=1;this.eb=0;this.Gb=c;this.jb=0;this.ab=1;this.Lb=a};l.prototype.setScale=function(c,a){void 0!==a?(this.bb=c,this.jb=this.Gb=this.eb=0,this.ab=a,this.Lb=0):this.setScale(c,c)};l.prototype.$B=function(){this.bb=0;this.eb=1;this.Gb=0;this.jb=1;this.Lb=this.ab=0};l.prototype.setRotate=function(c){this.pX(Math.cos(c),Math.sin(c))};l.prototype.pX=function(c,a){this.bb=c;this.eb=-a;this.Gb=0;this.jb=a;this.ab= c;this.Lb=0};l.prototype.shift=function(c,a){this.Gb+=c;this.Lb+=a};l.prototype.scale=function(c,a){this.bb*=c;this.eb*=c;this.Gb*=c;this.jb*=a;this.ab*=a;this.Lb*=a};l.prototype.flipX=function(c,a){this.bb=-this.bb;this.eb=-this.eb;this.Gb=c+a-this.Gb};l.prototype.flipY=function(c,a){this.jb=-this.jb;this.ab=-this.ab;this.Lb=c+a-this.Lb};l.prototype.rotate=function(c){var a=new l;a.setRotate(c);this.multiply(a)};l.prototype.inverse=function(c){if(void 0!==c){var a=this.bb*this.ab-this.eb*this.jb; 0==a?c.lx():(a=1/a,c.Gb=(this.eb*this.Lb-this.Gb*this.ab)*a,c.Lb=(this.Gb*this.jb-this.bb*this.Lb)*a,c.bb=this.ab*a,c.eb=-this.eb*a,c.jb=-this.jb*a,c.ab=this.bb*a)}else this.inverse(this)};return l}();g.Dd=v})(D||={});(function(g){var v=function(){function l(){}l.prototype.lx=function(){this.hg=this.Lb=this.Gb=this.He=this.Fe=this.Ee=this.Ge=this.ab=this.eb=this.Ze=this.jb=this.bb=0};l.prototype.setScale=function(c,a,b){this.bb=c;this.eb=this.Ze=this.jb=0;this.ab=a;this.Fe=this.Ee=this.Ge=0;this.He= b;this.hg=this.Lb=this.Gb=0};l.prototype.setTranslate=function(c,a,b){this.bb=1;this.eb=this.Ze=this.jb=0;this.ab=1;this.Fe=this.Ee=this.Ge=0;this.He=1;this.Gb=c;this.Lb=a;this.hg=b};l.prototype.translate=function(c,a,b){this.Gb+=c;this.Lb+=a;this.hg+=b};l.prototype.mC=function(c){if(!c.B()){for(var a=new g.Nd[8],b=0;8>b;b++)a[b]=new g.Nd;c.nB(a);this.transform(a,8,a);c.Zw(a)}};l.prototype.transform=function(c,a,b){for(var d=0;dd;d++)b.uh[d]=-1;b.uh[b.bg[0]]=0}b.jq=!0;return b}R(a,c);a.prototype.re=function(b){this.hasAttribute(b)||(this.uh[b]=0,this.jD())};a.prototype.removeAttribute=function(b){if(0== b)throw g.i.N("Position attribue cannot be removed");this.hasAttribute(b)&&(this.uh[b]=-1,this.jD())};a.prototype.reset=function(){this.bg[0]=0;this.Aa=1;for(var b=0;bb;b++)0<=this.uh[b]&&(this.bg[d]=b,this.uh[b]=d,d++,this.Aa++); this.jq=!0};a.prototype.cc=function(){this.jq&&(this.wl=this.An(),this.jq=!1);return this.wl};a.prototype.Nb=function(b){if(null==b)return!1;if(b==this)return!0;if(!(b instanceof a)||b.Aa!=this.Aa)return!1;for(var d=0;df;f++)!b.hasAttribute(f)&&d.hasAttribute(f)&&(null==e&&(e=new a(b)),e.re(f));return null!=e?e.EF():b};return a}(g.ra);g.ee=v;var l=function(){function c(){this.map=[];var a=new v;this.add(a);a=new v;a.re(1);this.add(a)}c.kz=function(){return c.bL};c.prototype.$R=function(){return c.ft};c.prototype.add=function(a){var b=a.cc();if(null!=c.ft&&c.ft.cc()==b&&a.GG(c.ft))return c.ft;if(null!=c.Dw&&c.Dw.cc()== b&&a.GG(c.Dw))return c.Dw;var d=null;void 0!==this.map[b]&&(d=this.map[b]);null==d&&(d=a.tM(),1==d.Aa?c.ft=d:2==d.Aa&&1==d.kd(1)?c.Dw=d:this.map[b]=d);return d};c.bL=new c;return c}()})(D||={});var za={feet:9002,kilometers:9036,meters:9001,miles:9093,"nautical-miles":9030,yards:9096},Aa={acres:109402,ares:109463,hectares:109401,"square-feet":109405,"square-kilometers":109414,"square-meters":109404,"square-miles":109439,"square-yards":109442},na=new (function(){function g(){this.RM=50;this.np=new Map; this.gj=[]}g.prototype.clear=function(){this.gj.length=0;this.np.clear()};g.prototype.delete=function(v){return this.np.delete(v)?(this.gj.splice(this.gj.indexOf(v),1),!0):!1};g.prototype.get=function(v){var l=this.np.get(v);if(void 0!==l)return this.gj[0]!==v&&(this.gj.splice(this.gj.indexOf(v),1),this.gj.unshift(v)),l};g.prototype.has=function(v){return this.np.has(v)};g.prototype.set=function(v,l){void 0!==this.get(v)&&this.delete(v);this.gj.unshift(v);this.np.set(v,l);this.oM();return this};g.prototype.oM= function(){for(;this.gj.length&&this.gj.length>this.RM;){var v=this.gj.pop();this.np.delete(v)}};return g}()),K=(da={},da.convertJSONToGeometry=function(g){return D.$b.fP(g)},da.hasM=function(g){return g.hasAttribute(D.Ih.M)},da.hasZ=function(g){return g.hasAttribute(D.Ih.Z)},da.getPointX=function(g){return g.Lg()},da.getPointY=function(g){return g.ih()},da.getPointZ=function(g){return g.bS()},da.getPointM=function(g){return g.zR()},da.getXMin=function(g){return g.es()},da.getYMin=function(g){return g.gs()}, da.getXMax=function(g){return g.ds()},da.getYMax=function(g){return g.fs()},da.getZExtent=function(g){return g.Tg(D.Ih.Z,0)},da.getMExtent=function(g){return g.Tg(D.Ih.M,0)},da.exportPaths=function(g){var v=[],l=g.da(),c=null,a=null,b=g.hasAttribute(D.Ih.Z),d=g.hasAttribute(D.Ih.M);b&&(c=g.ub(D.Ih.Z));d&&(a=g.ub(D.Ih.M));for(var e=new D.h,f=0;fja[ha]})}}return Object.freeze(Object.defineProperty(sa,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:ta},[ma]);ya.GeometryEngineApi=ta;ya.geometryEngineBase=ma});