// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.23/esri/copyright.txt for details.
var fa;
(function(ha){function L(c){return t.Pb.HL(c)}function P(c){return null===c?null:void 0!==c.wkt?t.gh.ML(c.wkt):void 0!==c.wkid?t.gh.create(c.wkid):null}function O(c){if(null===c||void 0===c||c.s())return null;switch(c.D()){case t.Wn.Point:var p=c.hasAttribute(t.xf.Z),g=c.hasAttribute(t.xf.M),b={x:c.lk(),y:c.mk()};p&&(b.z=c.mO());g&&(b.m=c.ON());return b;case t.Wn.Polygon:return p=c.hasAttribute(t.xf.Z),g=c.hasAttribute(t.xf.M),{rings:ga(c,p,g),hasZ:p,hasM:g};case t.Wn.Polyline:return p=c.hasAttribute(t.xf.Z),g=
c.hasAttribute(t.xf.M),{paths:ga(c,p,g),hasZ:p,hasM:g};case t.Wn.MultiPoint:var p=c.hasAttribute(t.xf.Z),g=c.hasAttribute(t.xf.M),a=b=null;p&&(b=c.mc(t.xf.Z));g&&(a=c.mc(t.xf.M));for(var d=new t.b,f=c.F(),e=[],h=0;h<f;h++){c.w(h,d);var l=[d.x,d.y];p&&(l[2]=b.get(h));g&&(p?l[3]=a.get(h):l[2]=a.get(h));e.push(l)}return{points:e,hasZ:p,hasM:g};case t.Wn.Envelope:return p=c.hasAttribute(t.xf.M),g={xmin:c.R.v,ymin:c.R.C,xmax:c.R.B,ymax:c.R.G},c.hasAttribute(t.xf.Z)&&(b=c.zh(t.xf.Z,0),g.oe=b.qa,g.Nf=b.va),
p&&(b=c.zh(t.xf.M,0),g.nU=b.qa,g.mU=b.va),g}return null}function ga(c,p,g){var b=[],a=c.ea(),d=null,f=null;p&&(d=c.mc(t.xf.Z));g&&(f=c.mc(t.xf.M));for(var e=new t.b,h=0;h<a;h++){for(var l=c.Ea(h),k=c.Ha(h),m=0,r=0,q=NaN,n=NaN,u=NaN,v=NaN,w=c.vc(h),x=[],F=l;F<l+k;F++){c.w(F,e);var v=u=NaN,D=[e.x,e.y];p&&(u=d.get(F),D.push(u));g&&(v=f.get(F),D.push(v));F==l&&w&&(m=e.x,r=e.y,q=u,n=v);x.push(D)}!w||m==e.x&&r==e.y&&(!p||isNaN(q)&&isNaN(u)||q==u)&&(!g||isNaN(n)&&isNaN(v)||n==v)||x.push(x[0].slice(0));b.push(x)}return b}
function ba(c,p){postMessage({msgId:p.msgId,status:0,error:{message:c.message,name:c.name}})}function ea(c,p){try{postMessage({msgId:c.msgId,status:1,result:O(p(L(c.geoma),L(c.geomb),P(c.spatialReference)))})}catch(g){ba(g,c)}}function Z(c,p){try{postMessage({msgId:c.msgId,status:1,result:p(L(c.geoma),L(c.geomb),P(c.spatialReference))})}catch(g){ba(g,c)}}var M=this&&this.bU||function(c,p){function g(){this.constructor=c}for(var b in p)p.hasOwnProperty(b)&&(c[b]=p[b]);c.prototype=null===p?Object.create(p):
(g.prototype=p.prototype,new g)},t;(function(c){var p=function(){function b(){}b.Sk=!1;b.ht=!1;b.$v="";return b}();c.$g=p;if("undefined"!==typeof window)c.$g.$v="browser","Float64Array"in window&&(c.$g.ht=!0),"ArrayBuffer"in window&&(c.$g.Sk=!0);else if("undefined"!==typeof process)p.$v="node",c.$g.Sk=!0,c.$g.ht=!0;else{p.$v="browser";try{var g=new ArrayBuffer(0);new Uint8Array(g);c.$g.Sk=!0;c.$g.ht=!0}catch(b){c.$g.Sk=!1}}})(t||(t={}));(function(c){(function(c){c[c.Unknown=0]="Unknown";c[c.Point=
33]="Point";c[c.Line=322]="Line";c[c.Envelope=197]="Envelope";c[c.MultiPoint=550]="MultiPoint";c[c.Polyline=1607]="Polyline";c[c.Polygon=1736]="Polygon"})(c.Wn||(c.Wn={}));(function(c){c[c.enumMild=0]="enumMild";c[c.enumMedium=1]="enumMedium";c[c.enumHot=2]="enumHot"})(c.pH||(c.pH={}));var p=function(){function g(){this.description=null;this.Ux=0}g.prototype.D=function(){return 0};g.prototype.fb=function(){return-1};g.prototype.Qf=function(b){this.qc();b!=this.description&&this.nm(b)};g.prototype.nm=
function(){};g.prototype.Ik=function(b){this.qc();b!=this.description&&(b=c.Od.RN(this.description,b),b!=this.description&&this.nm(b))};g.prototype.hasAttribute=function(b){return this.description.hasAttribute(b)};g.prototype.Ne=function(b){this.qc();this.description.hasAttribute(b)||(b=c.Od.QN(this.description,b),this.nm(b))};g.prototype.zh=function(){return null};g.prototype.Ep=function(){};g.prototype.o=function(){};g.prototype.Cn=function(){};g.prototype.cd=function(b){this.o(b)};g.prototype.s=
function(){return!0};g.prototype.Ja=function(){};g.prototype.Oe=function(){};g.prototype.Pa=function(){return null};g.prototype.copyTo=function(){};g.prototype.Lh=function(){return 0};g.prototype.Zb=function(){return 0};g.prototype.TC=function(){return this.hasAttribute(1)};g.we=function(b){return((b&192)>>6)+1>>1};g.Km=function(b){return 0!=(b&32)};g.VT=function(b){return 0!=(b&64)};g.UO=function(b){return 0!=(b&128)};g.Lc=function(b){return 0!=(b&256)};g.Th=function(b){return 0!=(b&512)};g.Kc=function(b){return 0!=
(b&1024)};g.prototype.vm=function(){var b=this.Pa();this.copyTo(b);return b};g.prototype.Rf=function(){return null};g.Yj=function(b){var a=b.Pa();b.copyTo(a);return a};g.prototype.qc=function(){0<=this.Ux&&(this.Ux+=2147483649)};g.Uu=function(b){var a=b.D();if(g.Th(a))return b.F();if(b.s())return 0;if(197==a)return 4;if(33==a)return 1;if(g.Lc(a))return 2;throw c.g.ra("missing type");};return g}();c.T=p})(t||(t={}));(function(c){var p=function(){function g(){this.y=this.x=0}g.Oa=function(b,a){var d=
new g;d.x=b;d.y=a;return d};g.prototype.ma=function(b,a){this.x=b;this.y=a};g.prototype.J=function(b){this.x=b.x;this.y=b.y};g.prototype.Bq=function(b,a){return this.x===b&&this.y===a};g.prototype.Ww=function(b){return 2.220446049250313E-16>=Math.abs(this.x-b.x)&&2.220446049250313E-16>=Math.abs(this.y-b.y)};g.prototype.ub=function(b){return this.x===b.x&&this.y===b.y};g.prototype.lc=function(b){return b==this?!0:b instanceof g?this.x==b.x&&this.y==b.y:!1};g.prototype.sub=function(b){this.x-=b.x;this.y-=
b.y};g.prototype.pc=function(b,a){this.x=b.x-a.x;this.y=b.y-a.y};g.prototype.add=function(b,a){void 0!==a?(this.x=b.x+a.x,this.y=b.y+a.y):(this.x+=b.x,this.y+=b.y)};g.prototype.Ap=function(){this.x=-this.x;this.y=-this.y};g.prototype.pr=function(b){this.x=-b.x;this.y=-b.y};g.prototype.QO=function(b,a,d){this.x=b.x*(1-d)+a.x*d;this.y=b.y*(1-d)+a.y*d};g.prototype.Er=function(b,a){this.x=this.x*b+a.x;this.y=this.y*b+a.y};g.prototype.FR=function(b,a,d){this.x=a.x*b+d.x;this.y=a.y*b+d.y};g.prototype.scale=
function(b){this.x*=b;this.y*=b};g.prototype.compare=function(b){return this.y<b.y?-1:this.y>b.y?1:this.x<b.x?-1:this.x>b.x?1:0};g.prototype.normalize=function(){var b=this.length();0==b&&(this.x=1,this.y=0);this.x/=b;this.y/=b};g.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y)};g.prototype.Tp=function(){return this.x*this.x+this.y*this.y};g.Fb=function(b,a){return Math.sqrt(this.Yb(b,a))};g.Yv=function(b,a,d,f){b-=d;a-=f;return Math.sqrt(b*b+a*a)};g.prototype.ml=function(b){return this.x*
b.x+this.y*b.y};g.prototype.tA=function(b){return Math.abs(this.x*b.x)+Math.abs(this.y*b.y)};g.prototype.Ai=function(b){return this.x*b.y-this.y*b.x};g.prototype.Dr=function(b,a){var d=-this.x*a+this.y*b;this.x=this.x*b+this.y*a;this.y=d};g.prototype.st=function(){var b=this.x;this.x=-this.y;this.y=b};g.prototype.wD=function(b){this.x=-b.y;this.y=b.x};g.prototype.Jp=function(){var b=this.x;this.x=this.y;this.y=-b};g.prototype.EA=function(){this.y=this.x=NaN};g.prototype.pv=function(){return isNaN(this.x)};
g.prototype.os=function(){return 0<this.x?0<=this.y?1:4:0<this.y?2:0==this.x?4:3};g.bq=function(b,a){var d=b.os(),f=a.os();return f==d?(d=b.Ai(a),0>d?1:0<d?-1:0):d<f?-1:1};g.qT=function(b,a){return g.bq(b,a)};g.Yb=function(b,a){var d=b.x-a.x,f=b.y-a.y;return d*d+f*f};g.prototype.toString=function(){return"("+this.x+" , "+this.y+")"};g.prototype.Dh=function(){this.y=this.x=NaN};g.prototype.xJ=function(){return this.pv()?NaN:Math.abs(this.x)>=Math.abs(this.y)?Math.abs(this.x):Math.abs(this.y)};g.prototype.offset=
function(b,a){var d=g.Fb(b,a),f=g.Oa(this.x,this.y);if(0==d)return g.Fb(f,b);var e=new g;e.J(a);e.sub(b);f.sub(b);return f.Ai(e)/d};g.yn=function(b,a,d){var f=new c.$k;f.set(a.x);f.sub(b.x);var e=new c.$k;e.set(d.y);e.sub(b.y);var h=new c.$k;h.set(a.y);h.sub(b.y);var l=new c.$k;l.set(d.x);l.sub(b.x);f.zp(e);h.zp(l);f.sub(h);if(!f.Cq())return d=f.value(),0>d?-1:0<d?1:0;f=new c.Tn(a.x);e=new c.Tn(b.x);h=new c.Tn(b.y);f=f.mr(e);b=new c.Tn(d.y);b=b.mr(h);a=new c.Tn(a.y);a=a.mr(h);d=new c.Tn(d.x);d=d.mr(e);
f=f.Vp(b);a=a.Vp(d);f=f.Vp(a);return f.xP()?-1:f.oO()?1:0};g.prototype.gc=function(){return c.I.Rh(c.I.Rh())};return g}();c.b=p})(t||(t={}));(function(c){var p=function(){function c(b){this.Ov=this.Nr=0;this.GS=b}c.prototype.reset=function(){this.Ov=this.Nr=0};c.prototype.add=function(b){b-=this.Ov;var a=this.Nr+b;this.Ov=a-this.Nr-b;this.Nr=a};c.prototype.sub=function(b){this.add(-b)};c.prototype.rl=function(){return this.GS+this.Nr};return c}();c.av=p;p=function(){function c(){}c.zT=function(b,
a){return 0<=a?Math.abs(b):-Math.abs(b)};c.sign=function(b){return 0>b?-1:0<b?1:0};c.eH=function(b){return b-360*Math.floor(b/360)};c.round=function(b){return Math.floor(b+.5)};c.Ty=function(b){return b*b};c.tt=function(b,a,d){var f;.5>=d?f=b+(a-b)*d:f=a-(a-b)*(1-d);return f};c.yD=function(b,a,d,f){.5>=d?(f.x=b.x+(a.x-b.x)*d,f.y=b.y+(a.y-b.y)*d):(f.x=a.x-(a.x-b.x)*(1-d),f.y=a.y-(a.y-b.y)*(1-d))};c.vP=function(b,a,d,f,e,h){.5>=e?(h.x=b+(d-b)*e,h.y=a+(f-a)*e):(h.x=d-(d-b)*(1-e),h.y=f-(f-a)*(1-e))};
return c}();c.vi=p})(t||(t={}));(function(c){var p=function(g){function b(){g.call(this);this.ha=this.la=this.ja=this.na=0;this.fa=null}M(b,g);b.prototype.Mb=function(){return c.b.Oa(this.na,this.ja)};b.prototype.gt=function(a){a.x=this.na;a.y=this.ja};b.prototype.dd=function(a){this.gl(0,a)};b.prototype.Ny=function(a,d){this.gl(0,c.b.Oa(a,d))};b.prototype.En=function(a){this.vA(0,a)};b.prototype.setStart=function(a){this.BA(0,a)};b.prototype.ft=function(a,d){return this.yd(0,a,d)};b.prototype.My=
function(a,d,f){this.om(0,a,d,f)};b.prototype.oc=function(){return c.b.Oa(this.la,this.ha)};b.prototype.uw=function(a){a.x=this.la;a.y=this.ha};b.prototype.vd=function(a){this.gl(1,a)};b.prototype.Ok=function(a,d){this.gl(1,c.b.Oa(a,d))};b.prototype.Bn=function(a){this.vA(1,a)};b.prototype.setEnd=function(a){this.BA(1,a)};b.prototype.Vs=function(a,d){return this.yd(1,a,d)};b.prototype.Cy=function(a,d,f){this.om(1,a,d,f)};b.prototype.fb=function(){return 1};b.prototype.s=function(){return this.sc()};
b.prototype.Ja=function(){};b.prototype.Lh=function(){return 0};b.prototype.Ga=function(a,d,f,b,h){return this.vJ(a,d,f,b,h)};b.prototype.jc=function(a,d){return 0!=this.eq(a,d,!1)};b.prototype.Dq=function(a,d){return this.ps(a,d,!1)};b.prototype.ps=function(){return null};b.prototype.sc=function(){return!1};b.prototype.rv=function(a){this.qc();if(null==this.fa&&0<a)this.fa=c.I.Kh(2*a);else if(null!=this.fa&&this.fa.length<2*a){for(var d=this.fa.slice(0),f=this.fa.length;f<2*a;f++)d[f]=0;this.fa=
d}};b.BI=function(a,d,f){if(0<f)var b=0;for(var h=0;h<f;h++)d[0+b]=a[0],b++};b.prototype.gl=function(a,d){0!=a?(this.la=d.x,this.ha=d.y):(this.na=d.x,this.ja=d.y)};b.prototype.nm=function(a){if(null!=this.fa){for(var d=c.Od.hu(a,this.description),f=[],e=b.Xk(this.description,0),h=b.Xk(this.description,1),l=b.Xk(a,0),k=b.Xk(a,1),m=0,r=1,g=a.Aa;r<g;r++){var n=a.Hd(r),u=c.pa.Wa(n);if(-1==d[r])for(var v=c.pa.ve(n),n=0;n<u;n++)f[l+m]=v,f[k+m]=v,m++;else for(v=this.description.ej(d[r])-2,n=0;n<u;n++)f[l+
m]=this.fa[e+v],f[k+m]=this.fa[h+v],m++,v++}this.fa=f}this.description=a};b.prototype.vA=function(a,d){if(this.sc())throw c.g.ra("empty geometry");d.Qf(this.description);d.sc()&&d.jo();for(var f=0;f<this.description.Aa;f++)for(var b=this.description.Fd(f),h=0,l=c.pa.Wa(b);h<l;h++){var k=this.yd(a,b,h);d.setAttribute(b,h,k)}};b.prototype.BA=function(a,d){this.qc();if(d.sc())throw c.g.ra("empty geometry");for(var f=d.description,b=0,h=f.Aa;b<h;b++)for(var l=f.Fd(b),k=c.pa.Wa(l),m=0;m<k;m++){var r=d.kd(l,
m);this.om(a,l,m,r)}};b.prototype.yd=function(a,d,f){if(this.sc())throw c.g.ra("This operation was performed on an Empty Geometry.");if(0==d)return 0!=a?0!=f?this.ha:this.la:0!=f?this.ja:this.na;if(f>=c.pa.Wa(d))throw c.g.Sc();var e=this.description.zf(d);return 0<=e?(null!=this.fa&&this.rv(this.description.ke.length-2),this.fa[b.Xk(this.description,a)+this.description.ej(e)-2+f]):c.pa.ve(d)};b.prototype.om=function(a,d,f,e){this.qc();if(f>=c.pa.Wa(d))throw c.g.Sc();var h=this.description.zf(d);0>
h&&(this.Ne(d),h=this.description.zf(d));0==d?0!=a?0!=f?this.ha=e:this.la=e:0!=f?this.ja=e:this.na=e:(null==this.fa&&this.rv(this.description.ke.length-2),this.fa[b.Xk(this.description,a)+this.description.ej(h)-2+f]=e)};b.prototype.copyTo=function(a){if(a.D()!=this.D())throw c.g.N();a.description=this.description;a.rv(this.description.ke.length-2);b.BI(this.fa,a.fa,2*(this.description.ke.length-2));a.na=this.na;a.ja=this.ja;a.la=this.la;a.ha=this.ha;a.qc();this.co(a)};b.prototype.zh=function(a,d){var f=
new c.Nd;if(this.sc())return f.Ja(),f;f.qa=this.yd(0,a,d);f.va=f.qa;f.Nj(this.yd(1,a,d));return f};b.prototype.UE=function(a){this.sc()?a.Ja():(a.qa=this.yd(0,0,0),a.va=a.qa,a.Nj(this.yd(1,0,0)))};b.prototype.tu=function(a,d){d.Qf(this.description);d.hc(this.Kb(a));for(var f=1,b=this.description.Aa;f<b;f++)for(var h=this.description.Fd(f),l=c.pa.Wa(h),k=0;k<l;k++){var m=this.kd(a,h,k);d.setAttribute(h,k,m)}};b.prototype.rJ=function(a){if(this.description!=a.description||this.na!=a.na||this.la!=a.la||
this.ja!=a.ja||this.ha!=a.ha)return!1;for(var d=0;d<2*(this.description.ke.length-2);d++)if(this.fa[d]!=a.fa[d])return!1;return!0};b.prototype.hD=function(){return this.na==this.la&&this.ja==this.ha};b.prototype.reverse=function(){var a=this.na;this.na=this.la;this.la=a;a=this.ja;this.ja=this.ha;this.ha=a;for(var a=1,d=this.description.Aa;a<d;a++)for(var f=this.description.Hd(a),b=0,h=c.pa.Wa(f);b<h;b++){var l=this.yd(0,f,b),k=this.yd(1,f,b);this.om(0,f,b,k);this.om(1,f,b,l)}};b.prototype.eq=function(a,
d,f){var b=a.D();switch(this.D()){case 322:if(322==b)return c.yb.wJ(this,a,d,f);throw c.g.wa();default:throw c.g.wa();}};b.prototype.vJ=function(a,d,f,b,h){var l=a.D();switch(this.D()){case 322:if(322==l)return c.yb.ov(this,a,d,f,b,h);throw c.g.wa();default:throw c.g.wa();}};b.prototype.kv=function(){return null};b.Xk=function(a,d){return d*(a.ke.length-2)};b.prototype.Kb=function(a,d){if(void 0===d){var f=new c.b;this.Kb(a,f);return f}c.vi.vP(this.na,this.ja,this.la,this.ha,a,d)};b.prototype.Gd=
function(){return null};b.prototype.QC=function(){return null};b.prototype.mt=function(){return null};b.prototype.lg=function(){return null};b.prototype.jD=function(){return null};b.prototype.Pf=function(){return null};b.prototype.qA=function(a,d){return void 0!==d?this.Qu(d)-this.Qu(a):this.Qu(a)};b.prototype.co=function(){};b.prototype.xm=function(){return null};b.prototype.Bi=function(){};b.prototype.kd=function(){return null};b.prototype.ye=function(){return null};b.prototype.Qu=function(){return null};
b.prototype.xD=function(){return null};b.prototype.Fb=function(a,d){if(!d&&0!=this.eq(a,0,!1))return 0;var f=1.7976931348623157E308,b,h;b=this.Mb();h=a.Gd(b,!1);b.sub(a.Kb(h));b=b.length();b<f&&(f=b);b=this.oc();h=a.Gd(b,!1);b.sub(a.Kb(h));b=b.length();b<f&&(f=b);b=a.Mb();h=this.Gd(b,!1);b.sub(this.Kb(h));b=b.length();b<f&&(f=b);b=a.oc();h=this.Gd(b,!1);b.sub(this.Kb(h));b=b.length();b<f&&(f=b);return f};b.prototype.Rf=function(){return c.Gh.il(this,null)};return b}(c.T);c.eA=p})(t||(t={}));new t.b;
(function(c){(function(c){c[c.Unknown=-1]="Unknown";c[c.Not=0]="Not";c[c.Weak=1]="Weak";c[c.Strong=2]="Strong"})(c.rH||(c.rH={}));(function(c){c[c.DirtyIsKnownSimple=1]="DirtyIsKnownSimple";c[c.IsWeakSimple=2]="IsWeakSimple";c[c.IsStrongSimple=4]="IsStrongSimple";c[c.DirtyOGCFlags=8]="DirtyOGCFlags";c[c.DirtyVerifiedStreams=32]="DirtyVerifiedStreams";c[c.DirtyExactIntervals=64]="DirtyExactIntervals";c[c.DirtyLooseIntervals=128]="DirtyLooseIntervals";c[c.DirtyIntervals=192]="DirtyIntervals";c[c.DirtyIsEnvelope=
256]="DirtyIsEnvelope";c[c.DirtyLength2D=512]="DirtyLength2D";c[c.DirtyRingAreas2D=1024]="DirtyRingAreas2D";c[c.DirtyCoordinates=1993]="DirtyCoordinates";c[c.DirtyAllInternal=65535]="DirtyAllInternal";c[c.DirtyAll=16777215]="DirtyAll"})(c.aH||(c.aH={}));var p=function(g){function b(){g.call(this);this.El=65535;this.ta=0;this.qg=-1;this.pb=null}M(b,g);b.prototype.co=function(){};b.prototype.qv=function(){};b.prototype.xv=function(){};b.prototype.F=function(){return this.ta};b.prototype.s=function(){return this.sc()};
b.prototype.sc=function(){return 0==this.ta};b.prototype.fj=function(a){return 0!=(this.El&a)};b.prototype.yf=function(a,d){this.El=d?this.El|a:this.El&~a};b.prototype.kc=function(){this.fj(32)&&this.EJ()};b.prototype.Ru=function(){if(this.sc())throw c.g.ra("This operation was performed on an Empty Geometry.");};b.prototype.Rd=function(a,d){if(0>a||a>=this.ta)throw c.g.ra("index out of bounds");this.kc();d.Qf(this.description);d.s()&&d.jo();for(var f=0;f<this.description.Aa;f++)for(var b=this.description.Fd(f),
h=0,l=c.pa.Wa(b);h<l;h++){var k=this.Ba[f].Ah(l*a+h);d.setAttribute(b,h,k)}};b.prototype.Hu=function(a,d){this.kc();for(var f=d.description,b=0;b<f.Aa;b++)for(var h=f.Fd(b),l=c.pa.Wa(h),k=0;k<l;k++){var m=d.kd(h,k);this.setAttribute(h,a,k,m)}};b.prototype.w=function(a,d){if(0>a||a>=this.F())throw c.g.Sc();this.kc();this.Ba[0].dc(2*a,d)};b.prototype.Fa=function(a){var d=new c.b;this.w(a,d);return d};b.prototype.uc=function(a,d){this.Ba[0].dc(2*a,d)};b.prototype.hc=function(a,d,f){if(0>a||a>=this.ta)throw c.g.Sc();
this.kc();var b=this.Ba[0];void 0!==f?(b.write(2*a,d),b.write(2*a+1,f)):b.Rn(2*a,d);this.be(1993)};b.prototype.Lw=function(a){if(0>a||a>=this.F())throw c.g.Sc();this.kc();var d=this.Ba[0],f=new c.de;f.x=d.read(2*a);f.y=d.read(2*a+1);f.z=this.hasAttribute(1)?this.Ba[1].Ah(a):c.pa.ve(1);return f};b.prototype.Py=function(a,d){if(0>a||a>=this.F())throw c.g.Sc();this.Ne(1);this.kc();this.be(1993);var f=this.Ba[0];f.write(2*a,d.x);f.write(2*a+1,d.y);this.Ba[1].Uk(a,d.z)};b.prototype.kd=function(a,d,f){if(0>
d||d>=this.ta)throw c.g.Sc();var b=c.pa.Wa(a);if(f>=b)throw c.g.Sc();this.kc();var h=this.description.zf(a);return 0<=h?this.Ba[h].Ah(d*b+f):c.pa.ve(a)};b.prototype.kC=function(a,d,f){return this.kd(a,d,f)};b.prototype.setAttribute=function(a,d,f,b){if(0>d||d>=this.ta)throw c.g.Sc();var h=c.pa.Wa(a);if(f>=h)throw c.g.Sc();this.Ne(a);this.kc();a=this.description.zf(a);this.be(1993);this.Ba[a].Uk(d*h+f,b)};b.prototype.mc=function(a){this.Ru();this.Ne(a);this.kc();return this.Ba[this.description.zf(a)]};
b.prototype.bm=function(a,d){if(null!=d&&c.pa.Qh(a)!=d.Qh())throw c.g.N();this.Ne(a);var f=this.description.zf(a);null==this.Ba&&(this.Ba=c.Ac.ay(this.description.Aa));this.Ba[f]=d;this.be(16777215)};b.prototype.nm=function(a){var d=null;if(null!=this.Ba)for(var f=c.Od.hu(a,this.description),d=[],b=0,h=a.Aa;b<h;b++)-1!=f[b]&&(d[b]=this.Ba[f[b]]);this.description=a;this.Ba=d;this.qg=-1;this.be(16777215)};b.prototype.HA=function(a){this.rs(!0);a instanceof c.i?this.R.o(a):this.R.Cn(a)};b.prototype.DJ=
function(a){this.rs(!1);a instanceof c.i?this.R.o(a):this.R.Cn(a)};b.prototype.Ep=function(a){this.rs(!0);this.R.copyTo(a)};b.prototype.o=function(a){this.HA(a)};b.prototype.Cn=function(a){this.HA(a)};b.prototype.cd=function(a){this.DJ(a)};b.prototype.zh=function(a,d){var f=new c.Nd;if(this.sc())return f.Ja(),f;this.rs(!0);return this.R.zh(a,d)};b.prototype.gc=function(){var a=this.description.gc();if(!this.sc())for(var d=this.F(),f=0,b=this.description.Aa;f<b;f++)a=this.Ba[f].ij(a,0,d*c.pa.Wa(this.description.Fd(f)));
return a};b.prototype.lc=function(a){if(a==this)return!0;if(!(a instanceof b&&this.description.lc(a.description))||this.sc()!=a.sc())return!1;if(this.sc())return!0;var d=this.F();if(d!=a.F())return!1;for(var f=0;f<this.description.Aa;f++){var e=this.description.Hd(f),h=this.mc(e),l=a.mc(e);if(!h.lc(l,0,d*c.pa.Wa(e)))return!1}return!0};b.prototype.copyTo=function(a){if(a.D()!=this.D())throw c.g.N();this.sA(a)};b.prototype.sA=function(a){this.kc();a.description=this.description;a.Ba=null;var d=this.description.Aa,
f=null;if(null!=this.Ba)for(var f=[],b=0;b<d;b++)null!=this.Ba[b]&&(f[b]=this.Ba[b].Hp(this.F()*c.pa.Wa(this.description.Fd(b))));null!=this.R?(a.R=this.R.Pa(),this.R.copyTo(a.R)):a.R=null;a.ta=this.ta;a.El=this.El;a.Ba=f;try{this.co(a)}catch(h){throw a.Ja(),c.g.AI();}};b.prototype.DA=function(){this.ta=0;this.qg=-1;this.Ba=null;this.be(16777215)};b.prototype.be=function(a){16777215==a&&(this.qg=-1,this.qv());this.El|=a;this.jJ();this.qc()};b.prototype.rs=function(a){this.kc();if(this.fj(192))if(null==
this.R?this.R=new c.Uj(this.description):this.R.Qf(this.description),this.s())this.R.Ja();else{this.wv(a);for(var d=1;d<this.description.Aa;d++)for(var f=this.description.Fd(d),b=c.pa.Wa(f),h=this.Ba[d],l=0;l<b;l++){var k=new c.Nd;k.Ja();for(var m=0;m<this.ta;m++){var r=h.Ah(m*b+l);k.Db(r)}this.R.setInterval(f,l,k)}a&&this.yf(192,!1)}};b.prototype.wv=function(){this.R.Ja();for(var a=this.Ba[0],d=new c.b,f=0;f<this.ta;f++)a.dc(2*f,d),this.R.Db(d)};b.prototype.tm=function(a){a.Ja();for(var d=this.Ba[0],
f=new c.b,b=0;b<this.ta;b++)d.dc(2*b,f),a.Db(f)};b.prototype.EJ=function(){if(this.qg<this.ta){null==this.Ba&&(this.Ba=c.Ac.ay(this.description.Aa));this.qg=2147483647;for(var a=0;a<this.description.Aa;a++){var d=this.description.Fd(a);if(null!=this.Ba[a]){var f=c.pa.Wa(d),b=c.I.truncate(this.Ba[a].size/f);b<this.ta&&(b=c.I.truncate(this.qg>this.ta+5?(5*this.ta+3)/4:this.ta),this.Ba[a].resize(b*f,c.pa.ve(d)));b<this.qg&&(this.qg=b)}else this.Ba[a]=c.Ac.Tv(d,this.ta),this.qg=this.ta}}this.xv();this.yf(32,
!1)};b.prototype.io=function(a){if(0>a)throw c.g.N();a!=this.ta&&(this.ta=a,this.be(65535))};b.prototype.qj=function(a){if(!this.fj(1)){if(!this.fj(2))return 0;if(this.VP>=a)return this.fj(8)?1:2}return-1};b.prototype.hg=function(a,d){this.VP=d;if(-1==a)this.yf(1,!0),this.yf(8,!0);else if(this.yf(1,!1),this.yf(8,!0),0==a)this.yf(2,!1),this.yf(4,!1);else if(1==a)this.yf(2,!0),this.yf(4,!1);else if(2==a)this.yf(2,!0),this.yf(4,!0);else throw c.g.ra("internal error.");};b.prototype.jJ=function(){null!=
this.pb&&(this.pb=null)};b.prototype.uJ=function(a,d,f,b){if(0>a||a>=this.ta)throw c.g.ra("index out of bounds");if(0>d||d>=this.ta)throw c.g.ra("index out of bounds");this.kc();b.Qf(this.description);b.s()&&b.jo();for(var h=0;h<this.description.Aa;h++)for(var l=this.description.Fd(h),k=0,m=c.pa.Wa(l);k<m;k++){var r=this.Ba[h].Ah(m*a+k),g=this.Ba[h].Ah(m*d+k);b.setAttribute(l,k,c.vi.tt(r,g,f))}};b.prototype.mv=function(a,d){var f=this.Ba[0].f,b=f[2*a]-f[2*d],f=f[2*a+1]-f[2*d+1];return Math.sqrt(b*
b+f*f)};b.prototype.ah=function(a,d){if(0>a||a>=this.ta)throw c.g.Sc();if(d.s())throw c.g.N();this.kc();for(var f=d.description,b=0;b<f.Aa;b++)for(var h=f.Hd(b),l=c.pa.Wa(h),k=0;k<l;k++){var m=d.kd(h,k);this.setAttribute(h,a,k,m)}};b.prototype.jv=function(){return null};b.prototype.cj=function(){return null};return b}(c.T);c.Vr=p})(t||(t={}));(function(c){var p=function(){function g(){this.cb=this.Qm=null;this.Ol=124234251;this.Bt=!0;this.Be=-1;this.cb=new c.Fc(7);this.Qm=null}g.prototype.Hn=function(b){this.Qm=
b};g.prototype.kM=function(){this.Bt=!1};g.prototype.ce=function(b){this.cb.ce(b)};g.prototype.mq=function(b){var a=this.cb.ae();this.oS(a);this.qS(b,a);return a};g.prototype.eM=function(b){this.cb.Jc(b)};g.prototype.addElement=function(b,a){var d;-1==a?(-1==this.Be&&(this.Be=this.mq(-1)),d=this.Be):d=a;return this.LA(b,0,d)};g.prototype.OA=function(b){-1==this.Be&&(this.Be=this.mq(-1));return this.LA(b,1,this.Be)};g.prototype.qm=function(b){var a;-1==this.Be&&(this.Be=this.mq(-1));a=this.Be;var d=
this.cb.f;if(-1==a||-1==d[7*a])return b=this.cb.Oj([-1,-1,-1,b,this.ck(),-1,-1]),d=this.cb.f,d[7*a]=b,this.lo(-1,b,a,d),b;var f=-1==a?-1:d[7*a+2];b=this.cb.Oj([-1,-1,f,b,this.ck(),-1,-1]);d=this.cb.f;d[7*f+1]=b;this.Fv(b,d);-1===d[7*b+2]&&(d[7*a]=b);this.lo(-1,b,a,d);return b};g.prototype.us=function(b,a,d,f){var e=-1;-1==e&&(-1==this.Be&&(this.Be=this.mq(-1)),e=this.Be);var h=this.cb.f;if(-1==e||-1==h[7*e])return d=this.cb.Oj([-1,-1,-1,d,this.ck(),-1,-1]),h=this.cb.f,h[7*e]=d,this.lo(-1,d,e,h),d;
var l;f?(f=-1!=a?this.Qm.compare(this,d,a):-1,l=-1!=b?this.Qm.compare(this,d,b):1):(f=-1,l=1);if(0==f||0==l)return h[7*e+3]=0==f?a:b,-1;(-1!=a&&-1!=b?this.Ol>c.I.$x(this.Ol)>>1:-1!=a)?b=a:f=l;for(a=!0;;){if(0>f)if(l=h[7*b],-1!=l)b=l;else{f=b;d=this.cb.Oj([-1,-1,b,d,this.ck(),-1,-1]);h=this.cb.f;h[7*b]=d;break}else if(l=h[7*b+1],-1!=l)b=l;else{f=h[7*b+6];d=this.cb.Oj([-1,-1,b,d,this.ck(),-1,-1]);h=this.cb.f;h[7*b+1]=d;break}a&&(f*=-1,a=!1)}this.Fv(d,h);-1===h[7*d+2]&&(h[7*e]=d);this.lo(f,d,e,h);return d};
g.prototype.qC=function(){return this.yN(this.Be)};g.prototype.jd=function(b,a){var d;d=-1==a?this.Be:a;this.Bt?this.dM(b,d):this.$S(b,d)};g.prototype.search=function(b,a){for(var d=this.ct(a);-1!=d;){var f=this.Qm.compare(this,b,d);if(0==f)return d;d=0>f?this.ik(d):this.Io(d)}return-1};g.prototype.IR=function(b){for(var a=this.ct(-1),d=-1;-1!=a;){var f=b.compare(this,a);if(0==f)return a;0>f?a=this.ik(a):(d=a,a=this.Io(a))}return d};g.prototype.pF=function(b){for(var a=this.ct(-1),d=-1;-1!=a;){var f=
b.compare(this,a);if(0==f)return a;0>f?(d=a,a=this.ik(a)):a=this.Io(a)}return d};g.prototype.da=function(b){return this.cb.O(b,3)};g.prototype.ik=function(b){return this.cb.O(b,0)};g.prototype.Io=function(b){return this.cb.O(b,1)};g.prototype.getParent=function(b){return this.cb.O(b,2)};g.prototype.bb=function(b){return this.cb.O(b,6)};g.prototype.fe=function(b){return this.cb.O(b,5)};g.prototype.fc=function(b){return-1==b?this.gk(this.Be):this.gk(b)};g.prototype.tc=function(b){return-1==b?this.tq(this.Be):
this.tq(b)};g.prototype.iO=function(b){return-1==b?this.NC(this.Be):this.NC(b)};g.prototype.Vi=function(b,a){this.By(b,a)};g.prototype.ct=function(b){return-1==b?this.JC(this.Be):this.JC(b)};g.prototype.clear=function(){this.cb.Nh(!1);this.Be=-1};g.prototype.size=function(b){return-1==b?this.LC(this.Be):this.LC(b)};g.prototype.oK=function(b,a){for(var d=a[7*b],f=a[7*b+1],e=a[7*b+4];-1!=d||-1!=f;){var h=-1!=d?a[7*d+4]:2147483647,f=-1!=f?a[7*f+4]:2147483647;if(e<=Math.min(h,f))break;h<=f?this.lF(d,
a):this.kF(b,a);d=a[7*b];f=a[7*b+1]}};g.prototype.Fv=function(b,a){if(this.Bt)for(var d=a[7*b+4],f=a[7*b+2];-1!=f&&a[7*f+4]>d;)a[7*f]==b?this.lF(b,a):this.kF(f,a),f=a[7*b+2]};g.prototype.kF=function(b,a){var d=a[7*b+1],f;a[7*d+2]=a[7*b+2];a[7*b+2]=d;f=a[7*d];a[7*b+1]=f;-1!=f&&(a[7*f+2]=b);a[7*d]=b;f=a[7*d+2];-1!=f&&(a[7*f]==b?a[7*f]=d:a[7*f+1]=d)};g.prototype.lF=function(b,a){var d=a[7*b+2],f;a[7*b+2]=a[7*d+2];a[7*d+2]=b;f=a[7*b+1];a[7*d]=f;-1!=f&&(a[7*f+2]=d);a[7*b+1]=d;f=a[7*b+2];-1!=f&&(a[7*f]===
d?a[7*f]=b:a[7*f+1]=b)};g.prototype.Sj=function(b,a){this.cb.L(b,2,a)};g.prototype.Gy=function(b,a){this.cb.L(b,0,a)};g.prototype.Ky=function(b,a){this.cb.L(b,1,a)};g.prototype.Jy=function(b,a){this.cb.L(b,5,a)};g.prototype.Fu=function(b,a){this.cb.L(b,6,a)};g.prototype.SF=function(b,a){this.cb.L(a,0,b)};g.prototype.oS=function(b){this.cb.L(b,4,0)};g.prototype.qS=function(b,a){this.cb.L(a,5,b)};g.prototype.JC=function(b){return-1==b?-1:this.cb.O(b,0)};g.prototype.gk=function(b){return-1==b?-1:this.cb.O(b,
1)};g.prototype.tq=function(b){return-1==b?-1:this.cb.O(b,2)};g.prototype.yN=function(b){return-1==b?-1:this.cb.O(b,3)};g.prototype.LC=function(b){return-1==b?0:this.cb.O(b,4)};g.prototype.NC=function(b){return this.cb.O(b,5)};g.prototype.nu=function(b){return this.cb.Oj([-1,-1,-1,b,this.ck(),-1,-1])};g.prototype.bk=function(b){-1!=b&&this.cb.Jc(b)};g.prototype.ck=function(){this.Ol=c.I.$x(this.Ol);return this.Ol&1073741823};g.prototype.LA=function(b,a,d){var f=this.cb.f;if(-1==d||-1==f[7*d])return b=
this.cb.Oj([-1,-1,-1,b,this.ck(),-1,-1]),f=this.cb.f,f[7*d]=b,this.lo(-1,b,d,f),b;for(var e=-1==d?-1:f[7*d];;){var h=-1==a?1:this.Qm.compare(this,b,e);if(0>h)if(h=this.ik(e),-1!=h)e=h;else{a=e;b=this.cb.Oj([-1,-1,e,b,this.ck(),-1,-1]);f=this.cb.f;f[7*e]=b;break}else{if(1==a&&0==h)return f[7*d+3]=e,-1;h=f[7*e+1];if(-1!=h)e=h;else{a=f[7*e+6];b=this.cb.Oj([-1,-1,e,b,this.ck(),-1,-1]);f=this.cb.f;f[7*e+1]=b;break}}}this.Fv(b,f);-1===f[7*b+2]&&(f[7*d]=b);this.lo(a,b,d,f);return b};g.prototype.lo=function(b,
a,d,f){var e;-1!=b?(e=f[7*b+5],f[7*b+5]=a):e=-1==d?-1:f[7*d+2];f[7*a+5]=e;-1!=e&&(f[7*e+6]=a);f[7*a+6]=b;b==(-1==d?-1:f[7*d+1])&&(f[7*d+1]=a);-1==b&&(f[7*d+2]=a);f[7*d+4]=(-1==d?0:f[7*d+4])+1};g.prototype.ry=function(b,a){var d=this.cb.f,f=d[7*b+5],e=d[7*b+6];-1!=f?d[7*f+6]=e:d[7*a+1]=e;-1!=e?d[7*e+5]=f:d[7*a+2]=f;d[7*a+4]=-1===a?-1:d[7*a+4]-1};g.prototype.$S=function(b,a){this.ry(b,a);var d=this.ik(b),f=this.Io(b),e=this.getParent(b),h=b;if(-1!=d&&-1!=f){this.Ol=c.I.$x(this.Ol);var l;l=1073741823<
this.Ol?this.bb(b):this.fe(b);var k=this.getParent(l)==b;this.cb.Ou(b,l,0);this.cb.Ou(b,l,1);this.cb.Ou(b,l,2);-1!=e?this.ik(e)==b?this.Gy(e,l):this.Ky(e,l):this.SF(l,a);k?(d==l?(this.Gy(l,b),this.Sj(f,l)):f==l&&(this.Ky(l,b),this.Sj(d,l)),this.Sj(b,l),e=l):(this.Sj(d,l),this.Sj(f,l),e=this.getParent(b),h=l);d=this.ik(b);f=this.Io(b);-1!=d&&this.Sj(d,b);-1!=f&&this.Sj(f,b)}d=-1!=d?d:f;-1==e?this.SF(d,a):this.ik(e)==h?this.Gy(e,d):this.Ky(e,d);-1!=d&&this.Sj(d,e);this.bk(b,a)};g.prototype.dM=function(b,
a){var d=this.cb.f;d[7*b+4]=2147483647;var f=-1,e=-1,h=-1===a?-1:d[7*a],c=h==b;if(c&&(f=d[7*h],e=d[7*h+1],-1==f&&-1==e)){this.ry(h,a);this.bk(h,a);d[7*a]=-1;return}this.oK(b,d);h=d[7*b+2];-1!=h&&(d[7*h]==b?d[7*h]=-1:d[7*h+1]=-1);this.ry(b,a);this.bk(b,a);c&&(d[7*a]=-1==f||-1!=d[7*f+2]?e:f)};g.prototype.By=function(b,a){this.cb.L(b,3,a)};return g}();c.bj=p})(t||(t={}));(function(c){var p=function(){function g(b,a){void 0!==b&&this.K(b,a)}g.prototype.K=function(b,a){this.qa=b;this.va=a;this.normalize()};
g.prototype.normalize=function(){if(!isNaN(this.qa)){if(this.qa>this.va){var b=this.qa;this.qa=this.va;this.va=b}isNaN(this.va)&&this.Ja()}};g.prototype.Ja=function(){this.va=this.qa=NaN};g.prototype.s=function(){return isNaN(this.qa)};g.prototype.Db=function(b){"number"===typeof b?this.s()?this.va=this.qa=b:this.Nj(b):b.s()||(this.s()?(this.qa=b.qa,this.va=b.va):(this.qa>b.qa&&(this.qa=b.qa),this.va<b.va&&(this.va=b.va),this.qa>this.va&&this.Ja()))};g.prototype.Nj=function(b){b<this.qa?this.qa=b:
b>this.va&&(this.va=b)};g.prototype.contains=function(b){return"number"===typeof b?b>=this.qa&&b<=this.va:b.qa>=this.qa&&b.va<=this.va};g.prototype.Ga=function(b){this.s()||b.s()?this.Ja():(this.qa<b.qa&&(this.qa=b.qa),this.va>b.va&&(this.va=b.va),this.qa>this.va&&this.Ja())};g.prototype.P=function(b){this.s()||(this.qa-=b,this.va+=b,this.va<this.qa&&this.Ja())};g.prototype.lv=function(){return this.s()?2.220446049250313E-14:2.220446049250313E-14*(Math.abs(this.qa)+Math.abs(this.va)+1)};g.prototype.yy=
function(b,a){b>a?(this.qa=a,this.va=b):(this.qa=b,this.va=a)};g.prototype.Sy=function(b){return c.I.Jr(b,this.qa,this.va)};g.prototype.aa=function(){return this.va-this.qa};g.prototype.Af=function(){return.5*(this.qa+this.va)};g.prototype.lc=function(b){return b==this?!0:b instanceof g?this.s()&&b.s()?!0:this.qa!=b.qa||this.va!=b.va?!1:!0:!1};g.prototype.gc=function(){return c.I.Rh(c.I.Rh())};return g}();c.Nd=p})(t||(t={}));(function(c){var p=new c.Nd,g=new c.Nd,b=function(){return function(){this.Yd=
null;this.Lf=-1;this.ib=new c.yb;this.ux=55555555;this.Dt=this.Et=!1;this.$h=new c.Nd;this.$h.yy(0,0)}}();c.ST=b;var a=function(){function a(d,e,h){this.a=d;this.Lj=NaN;this.jE=this.rp=0;this.kE=NaN;this.ka=e;this.sp=10*e;this.lE=this.mE=NaN;this.Zf=!1;this.Cl=this.lr=this.un=this.fr=this.er=-1;this.lx=h;this.Rx=new b;this.sE=new b;c.I.truncate(3*d.pd/2)}a.prototype.XC=function(a,d,b,c){a.Yd=null===c?null:c[b[5*d]];a.Dt=null!=a.Yd;a.Dt||(c=b[5*d+2],-1!==c&&this.a.iR(b[5*d],b[5*c],a.ib),a.Yd=a.ib,
a.$h.yy(a.ib.na,a.ib.la),a.$h.va+=this.ka,a.ib.HE(),a.Et=a.ib.ha==a.ib.ja,a.Et||(a.ux=(a.ib.la-a.ib.na)/(a.ib.ha-a.ib.ja)))};a.prototype.sL=function(a,d){var b=a.eq(d,this.ka,!0);if(0!=b)return 2==b?this.aw():this.Oh();a.gt(aa);a.uw(V);d.gt(W);d.uw(Y);Q.ma(this.rp,this.Lj);aa.ub(W)&&this.Lj==aa.y?0>V.compare(Y)?Q.J(V):Q.J(Y):aa.ub(Y)&&this.Lj==aa.y?0>V.compare(W)?Q.J(V):Q.J(W):W.ub(V)&&this.Lj==W.y?0>aa.compare(Y)?Q.J(aa):Q.J(Y):V.ub(Y)&&this.Lj==V.y&&(0>aa.compare(W)?Q.J(aa):Q.J(W));return a.ye(Q.y,
Q.x)<d.ye(Q.y,Q.x)?-1:1};a.prototype.qL=function(a,d){if(a.ib.ja==d.ib.ja&&a.ib.na==d.ib.na)return a.ib.ha==d.ib.ha&&a.ib.la==d.ib.la?this.lx?this.aw():0:this.GB(a,d);if(a.ib.ha==d.ib.ha&&a.ib.la==d.ib.la)return this.FB(a,d);var b=this.FB(a,d),c=this.GB(a,d);return 0>b&&0>c?-1:0<b&&0<c?1:this.Oh()};a.prototype.lL=function(a,d){if(a.la>d.la){if(d.la>d.na&&d.ha-d.ja<2*this.ka&&a.Jh(d.la,d.ha,this.ka))return this.Oh()}else if((d.ha-d.ja)/(d.la-d.na)*(a.la-a.na)<this.sp&&d.Jh(a.la,a.ha,this.ka))return this.Oh();
return 1};a.prototype.mL=function(a,d){if(a.na<d.na){if(d.la>d.na&&d.ha-d.ja<2*this.ka&&a.Jh(d.la,d.ha,this.ka))return this.Oh()}else if((d.ha-d.ja)/(d.la-d.na)*(a.na-a.la)<this.sp&&d.Jh(a.na,a.ja,this.ka))return this.Oh();return-1};a.prototype.nL=function(a,d){var b=new c.b;b.pc(d.oc(),d.Mb());b.Jp();b.normalize();var l=new c.b;l.pc(a.Mb(),d.Mb());var k=new c.b;k.pc(a.oc(),d.Mb());var l=l.ml(b),b=k.ml(b),k=Math.abs(l),m=Math.abs(b);if(k<m){if(k<this.sp&&d.Jh(a.na,a.ja,this.ka))return this.Oh()}else if(m<
this.sp&&d.Jh(a.la,a.ha,this.ka))return this.Oh();return 0>l&&0>b?-1:0<l&&0<b?1:this.Oh()};a.prototype.EB=function(a,d){return a.ja==d.ja&&a.na==d.na?this.lL(a,d):a.ha==d.ha&&a.la==d.la?this.mL(a,d):this.nL(a,d)};a.prototype.oL=function(a,d){return a.ha==d.ha&&a.la==d.la&&a.ja==d.ja&&a.na==d.na?this.lx?this.aw():0:this.Oh()};a.prototype.FB=function(a,d){var b=1;if(a.ib.ja<d.ib.ja){var b=-1,c=a;a=d;d=c}var c=a.ib,k=d.ib,m=c.na-k.na,r=d.ux*(c.ja-k.ja),g=this.sp;return m<r-g?-b:m>r+g?b:k.Jh(c.na,c.ja,
this.ka)?this.Oh():m<r?-b:b};a.prototype.GB=function(a,d){var b=1;if(d.ib.ha<a.ib.ha){var b=-1,c=a;a=d;d=c}var c=a.ib,k=d.ib,m=c.la-k.na,r=d.ux*(c.ha-k.ja),g=this.sp;return m<r-g?-b:m>r+g?b:k.Jh(c.la,c.ha,this.ka)?this.Oh():m<r?-b:b};a.prototype.aw=function(){this.Zf=!0;this.ei=new c.wd(5,this.un,this.lr);return-1};a.prototype.Oh=function(){this.Zf=!0;this.lx?this.ei=new c.wd(4,this.un,this.lr):this.lr=this.un=this.fr=this.er=-1;return-1};a.prototype.rL=function(a,d,b,c){if(this.Zf)return-1;var k=
this.kE==this.Lj&&this.jE==this.rp,m;k&&a==this.er?m=this.lE:(m=NaN,this.er=-1);k&&d==this.fr?k=this.mE:(k=NaN,this.fr=-1);b.Yd.UE(p);c.Yd.UE(g);if(p.va<g.qa)return-1;if(g.va<p.qa)return 1;this.kE=this.Lj;this.jE=this.rp;isNaN(m)&&(this.er=a,this.lE=m=a=b.Yd.ye(this.Lj,this.rp));isNaN(k)&&(this.fr=d,this.mE=k=a=c.Yd.ye(this.Lj,this.rp));return Math.abs(m-k)<=this.ka?this.sL(b.Yd,c.Yd):m<k?-1:m>k?1:0};a.prototype.kq=function(){this.Zf=!1};a.prototype.rl=function(){return this.ei};a.prototype.UF=function(a,
d){this.Lj=a;this.rp=d;this.lr=this.un=this.fr=this.er=-1};a.prototype.compare=function(a,d,b){if(this.Zf)return-1;a=a.da(b);this.Cl=b;return this.IB(d,d,a,a)};a.prototype.IB=function(a,d,b,c){var k;this.un==d?k=this.Rx:(this.un=d,k=this.Rx,this.Rx.Lf=a,this.XC(k,d,this.a.bd.f,this.a.He));var m;null==m&&(this.lr=c,m=this.sE,this.sE.Lf=b,this.XC(m,c,this.a.bd.f,this.a.He));if(k.Dt||m.Dt)return this.rL(d,c,k,m);if(k.$h.va<m.$h.qa)return-1;if(m.$h.va<k.$h.qa)return 1;a=k.Et?1:0;a|=m.Et?2:0;return 0==
a?this.qL(k,m):1==a?this.EB(k.ib,m.ib):2==a?-1*this.EB(m.ib,k.ib):this.oL(k.ib,m.ib)};return a}();c.gA=a})(t||(t={}));(function(c){var p=function(){function g(b,a){this.a=b;this.ka=a;this.Zf=!1;this.un=-1;this.$h=new c.Nd;this.op=new c.b;this.op.Dh();this.Ud=new c.yb;this.Cl=-1;this.Cx=1.7976931348623157E308}g.prototype.kq=function(){this.Zf=!1;this.Cx=1.7976931348623157E308};g.prototype.ah=function(b){this.op.J(b)};g.prototype.compare=function(b,a){return this.JB(a,b.da(a))};g.prototype.JB=function(b,
a){var d=null!=this.a.bc(a);d||(this.a.Nc(a,this.Ud),this.$h.yy(this.Ud.na,this.Ud.la));if(d)throw c.g.ra("not implemented");if(this.op.x+this.ka<this.$h.qa)return-1;if(this.op.x-this.ka>this.$h.va)return 1;if(this.Ud.ja==this.Ud.ha)return this.Cl=b,this.Zf=!0,0;this.Ud.HE();var f=this.Ud.Mb(),d=new c.b;d.pc(this.Ud.oc(),f);d.Jp();var e=new c.b;e.pc(this.op,f);f=d.ml(e);f/=d.length();return f<10*-this.ka?-1:f>10*this.ka?1:this.Ud.Dq(this.op,this.ka)&&(d=Math.abs(f),d<this.Cx&&(this.Cl=b,this.Cx=d),
this.Zf=!0,d<.25*this.ka)?0:0>f?-1:1};return g}();c.II=p})(t||(t={}));(function(c){function p(b,a,d,f){d=new Float64Array(b.subarray(d,f));b.set(d,a)}var g=function(){function b(a){this.Sa=this.Xf=!1;this.f=[];var d=a;2>d&&(d=2);this.f=c.I.Kh(d,b.ob);this.size=a}b.Wc=function(a,d){b.ob=d;var f=new b(a);b.ob=0;return f};b.kj=function(a){var d=new b(0);d.f=a.f.slice(0);d.size=a.size;return d};b.V=function(a,d){var f=new b(0);f.size=a.size;f.size>d&&(f.size=d);f.f=a.f.slice(0,f.size);return f};b.prototype.xb=
function(){};b.prototype.read=function(a){return this.f[a]};b.prototype.dc=function(a,d){d.x=this.f[a];d.y=this.f[a+1]};b.prototype.get=function(a){return this.f[a]};b.prototype.write=function(a,d){if(this.Sa)throw c.g.xa();this.f[a]=d};b.prototype.set=function(a,d){if(this.Sa)throw c.g.xa();this.f[a]=d};b.prototype.Rn=function(a,d){if(this.Sa)throw c.g.xa();this.f[a]=d.x;this.f[a+1]=d.y};b.prototype.add=function(a){this.resize(this.size+1);this.f[this.size-1]=a};b.prototype.Hp=function(a){return b.V(this,
a)};b.prototype.Ah=function(a){return this.read(a)};b.prototype.resize=function(a,d){void 0===d&&(d=0);if(this.Xf)throw c.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");if(a<=this.size){if(c.I.truncate(5*a/4)<this.f.length){var b=this.f.slice(0,a);this.f=b}}else if(a>this.f.length){c.I.truncate(64>a?Math.max(2*a,4):5*a/4);for(var b=this.f.slice(0),e=this.f.length;e<a;e++)b[e]=d;this.f=b}this.size=a};b.prototype.cf=function(a){(null==this.f||a>this.f.length)&&this.resize(a);
if(this.Xf)throw c.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");this.size=a};b.prototype.Uk=function(a,d){this.write(a,d)};b.prototype.ij=function(a,d,b){for(var e=this.size;d<e&&d<b;d++)a=c.I.Rh(this.read(d));return a};b.prototype.lc=function(a,d,f){if(null==a||!(a instanceof b))return!1;var e=this.size,h=a.size;if(f>e||f>h&&e!=h)return!1;for(f>e&&(f=e);d<f;d++)if(this.read(d)!=a.read(d))return!1;return!0};b.prototype.nk=function(a,d,b,e,h,l,k){if(this.Sa)throw c.g.xa();
if(!h&&(1>l||0!=e%l))throw c.g.N();var m=this.size-k;m<e&&this.resize(this.size+e-m);for(m=0;m<k-a;m++)this.f[a+e+m]=this.f[a+m];this.f==d.f&&a<b&&(b+=e);if(h)for(m=0;m<e;m++)this.f[m+a]=d.f[b+m];else for(h=e,k=0;k<e;k+=l)for(h-=l,m=0;m<l;m++)this.f[a+k+m]=d.f[b+h+m]};b.prototype.ul=function(a,d,b,e){if(this.Sa)throw c.g.xa();e-=a;for(var h=this.f.slice(a,a+e),l=0;l<e;l++)this.f[a+b+l]=h[l];for(e=0;e<b;e++)this.f[a+e]=d};b.prototype.kg=function(a,d,b){if(this.Sa)throw c.g.xa();for(var e=this.f.slice(a,
a+(b-a)),h=0;h<b-a;h++)this.f[h+a+2]=e[h];this.f[a]=d.x;this.f[a+1]=d.y};b.prototype.km=function(a,d,b,e,h,l){if(0>a||0>d||0>e)throw c.g.N();if(!h&&(0>=l||0!=d%l))throw c.g.N();if(b.size<e+d)throw c.g.N();if(0!=d)if(this.size<d+a&&this.resize(d+a),b==this)this.xi(a,d,e,h,l);else if(h)for(h=0;h<d;h++)this.f[a]=b.f[e],a++,e++;else if(e=e+d-l,1==l)for(h=0;h<d;h++)this.f[a]=b.f[e],a++,e--;else for(h=0,d=c.I.truncate(d/l);h<d;h++){for(var k=0;k<l;k++)this.f[a+k]=b.f[e+k];a+=l;e-=l}};b.prototype.nj=function(a,
d,b){if(this.Sa)throw c.g.xa();if(a+d>this.size)throw c.g.xa();if(0<b-(a+d)){b-=a+d;for(var e=this.f.slice(a+d,a+b+d),h=0;h<b;h++)this.f[a+h]=e[h]}this.size-=d};b.prototype.Ip=function(a,d,b){if(this.Sa)throw c.g.xa();if(1>b||0!=d%b)throw c.g.xa();for(var e=d>>1,h=0;h<e;h+=b){d-=b;for(var l=0;l<b;l++){var k=this.f[a+h+l];this.f[a+h+l]=this.f[a+d+l];this.f[a+d+l]=k}}};b.prototype.bh=function(a,d,b){if(0>d||0>b||0>d||b+d>this.size)throw c.g.N();for(var e=d;e<d+b;e++)this.f[e]=a};b.prototype.xi=function(a,
d,b,e,h){if(!e||a!=b){for(var l=0;l<d;l++)this.f[a+l]=this.f[b+l];if(!e)for(b=a,a=a+d-h,e=0,d=c.I.truncate(d/2);e<d;e++){for(l=0;l<h;l++){var k=this.f[b+l];this.f[b+l]=this.f[a+l];this.f[a+l]=k}b+=h;a-=h}}};b.prototype.Zp=function(a,d,b,e,h){if(0>a||0>d||0>e)throw c.g.N();if(0!=d)for(this.size<(d<<1)+a&&this.resize((d<<1)+a),h||(a+=d-1<<1),h=h?2:-2,d+=e;e<d;e++)this.f[a]=b[e].x,this.f[a+1]=b[e].y,a+=h};b.prototype.Gp=function(a,d,b,e,h){if(0>a||0>d||0>e||this.size<d+a)throw c.g.N();if(h)for(h=0;h<
d;h++)b[e+h]=this.f[a+h];else for(e=e+d-1;a<d;a++)b[e]=this.f[a],e--};b.prototype.clear=function(a){a?this.resize(0):this.cf(0)};b.prototype.xd=function(a,d,b){var e=this.f.slice(0,a),h=this.f.slice(d);a=this.f.slice(a,d).sort(b);this.f.length=0;this.f.push.apply(this.f,e.concat(a).concat(h))};b.prototype.Qh=function(){return 1};b.ob=0;return b}();c.qd=g;g=function(){function b(a){this.Sa=this.Xf=!1;this.f=null;var d=a;2>d&&(d=2);this.f=new Float64Array(d);this.size=a}b.Wc=function(a,d){var f=new b(a),
e=a,h=f.f;2>e&&(e=2);if(0!==d)for(var c=0;c<e;c++)h[c]=d;return f};b.kj=function(a){var d=new b(0);d.f=new Float64Array(a.f);d.size=a.size;return d};b.V=function(a,d){var f=new b(0);f.size=a.size;f.size>d&&(f.size=d);var e=f.size;2>e&&(e=2);f.f=new Float64Array(e);f.f.set(a.f.length<=e?a.f:a.f.subarray(0,e),0);return f};b.prototype.xb=function(a){0>=a||(null==this.f?this.f=new Float64Array(a):a<=this.f.length||(0<this.f.length?(a=new Float64Array(a),a.set(this.f),this.f=a):this.f=new Float64Array(a)))};
b.prototype.read=function(a){return this.f[a]};b.prototype.dc=function(a,d){d.x=this.f[a];d.y=this.f[a+1]};b.prototype.get=function(a){return this.f[a]};b.prototype.write=function(a,d){if(this.Sa)throw c.g.xa();this.f[a]=d};b.prototype.set=function(a,d){if(this.Sa)throw c.g.xa();this.f[a]=d};b.prototype.Rn=function(a,d){if(this.Sa)throw c.g.xa();this.f[a]=d.x;this.f[a+1]=d.y};b.prototype.add=function(a){this.resize(this.size+1);this.f[this.size-1]=a};b.prototype.Hp=function(a){return b.V(this,a)};
b.prototype.Ah=function(a){return this.read(a)};b.prototype.resize=function(a,d){void 0===d&&(d=0);if(this.Xf)throw c.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");if(a<=this.size){if(30<this.f.length&&5*a/4<this.f.length){var b=new Float64Array(this.f,0,a);this.f=b}}else{a>this.f.length&&(b=c.I.truncate(64>a?Math.max(2*a,4):5*a/4),b=new Float64Array(b),b.set(this.f),this.f=b);for(var b=this.f,e=this.size;e<a;e++)b[e]=d}this.size=a};b.prototype.cf=function(a){(null==this.f||
a>this.f.length)&&this.resize(a);if(this.Xf)throw c.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");this.size=a};b.prototype.Uk=function(a,d){this.write(a,d)};b.prototype.ij=function(a,d,b){for(var e=this.size;d<e&&d<b;d++)a=c.I.Rh(this.read(d));return a};b.prototype.lc=function(a,d,f){if(null==a||!(a instanceof b))return!1;var e=this.size,h=a.size;if(f>e||f>h&&e!=h)return!1;for(f>e&&(f=e);d<f;d++)if(this.read(d)!=a.read(d))return!1;return!0};b.prototype.nk=function(a,d,b,
e,h,l,k){if(this.Sa)throw c.g.xa();if(!h&&(1>l||0!=e%l))throw c.g.N();var m=this.size-k;m<e&&this.resize(this.size+e-m);p(this.f,a+e,a,a+(k-a));this.f==d.f&&a<b&&(b+=e);if(h)this.f.set(d.f.subarray(b,b+e),a);else for(h=e,k=0;k<e;k+=l)for(h-=l,m=0;m<l;m++)this.f[a+k+m]=d.f[b+h+m]};b.prototype.ul=function(a,d,b,e){if(this.Sa)throw c.g.xa();e-=a;p(this.f,a+e,a,a+e);for(e=0;e<b;e++)this.f[a+e]=d};b.prototype.kg=function(a,d,b){if(this.Sa)throw c.g.xa();p(this.f,a+2,a,a+(b-a));this.f[a]=d.x;this.f[a+1]=
d.y};b.prototype.km=function(a,d,b,e,h,l){if(0>a||0>d||0>e)throw c.g.N();if(!h&&(0>=l||0!=d%l))throw c.g.N();if(b.size<e+d)throw c.g.N();if(0!=d)if(this.size<d+a&&this.resize(d+a),b==this)this.xi(a,d,e,h,l);else if(h)for(h=0;h<d;h++)this.f[a]=b.f[e],a++,e++;else if(e=e+d-l,1==l)for(h=0;h<d;h++)this.f[a]=b.f[e],a++,e--;else for(h=0,d=c.I.truncate(d/l);h<d;h++){for(var k=0;k<l;k++)this.f[a+k]=b.f[e+k];a+=l;e-=l}};b.prototype.nj=function(a,d,b){if(this.Sa)throw c.g.xa();if(a+d>this.size)throw c.g.xa();
0<b-(a+d)&&p(this.f,a,a+d,a+(b-(a+d))+d);this.size-=d};b.prototype.Ip=function(a,d,b){if(this.Sa)throw c.g.xa();if(1>b||0!=d%b)throw c.g.xa();for(var e=d>>1,h=0;h<e;h+=b){d-=b;for(var l=0;l<b;l++){var k=this.f[a+h+l];this.f[a+h+l]=this.f[a+d+l];this.f[a+d+l]=k}}};b.prototype.bh=function(a,d,b){if(0>d||0>b||0>d||b+d>this.size)throw c.g.N();for(var e=d;e<d+b;e++)this.f[e]=a};b.prototype.xi=function(a,d,b,e,h){if(!e||a!=b)if(this.f.set(this.f.subarray(b,b+d),a),!e)for(b=a,a=a+d-h,e=0,d=c.I.truncate(d/
2);e<d;e++){for(var l=0;l<h;l++){var k=this.f[b+l];this.f[b+l]=this.f[a+l];this.f[a+l]=k}b+=h;a-=h}};b.prototype.Zp=function(a,d,b,e,h){if(0>a||0>d||0>e)throw c.g.N();if(0!=d)for(this.size<(d<<1)+a&&this.resize((d<<1)+a),h||(a+=d-1<<1),h=h?2:-2,d+=e;e<d;e++)this.f[a]=b[e].x,this.f[a+1]=b[e].y,a+=h};b.prototype.Gp=function(a,d,b,e,h){if(0>a||0>d||0>e||this.size<d+a)throw c.g.N();if(h)for(h=0;h<d;h++)b[e+h]=this.f[a+h];else for(e=e+d-1;a<d;a++)b[e]=this.f[a],e--};b.prototype.clear=function(a){a?this.resize(0):
this.cf(0)};b.prototype.xd=function(a,d,b){Array.prototype.sort.call(this.f.subarray(a,d),b)};b.prototype.Qh=function(){return 1};return b}();c.OG=g})(t||(t={}));!0===t.$g.Sk&&!0===t.$g.ht&&(t.qd=t.OG);(function(c){function p(b,a,d,f){d=new Int32Array(b.subarray(d,f));b.set(d,a)}c.nT=function(){return function(){this.random=1973}}();var g=function(){function b(a){this.Sa=this.Xf=!1;this.f=[];var d=a;2>d&&(d=2);this.f=this.f=c.I.Kh(d,b.ob);this.size=a}b.Wc=function(a,d){b.ob=d;var f=new b(a);b.ob=
0;return f};b.kj=function(a){var d=new b(0);d.f=a.f.slice(0);d.size=a.size;return d};b.V=function(a,d){var f=new b(0);f.size=a.size;f.size>d&&(f.size=d);f.f=a.f.slice(0,f.size);return f};b.prototype.xb=function(){};b.prototype.read=function(a){return this.f[a]};b.prototype.dc=function(a,d){d.x=this.f[a];d.y=this.f[a+1]};b.prototype.get=function(a){return this.f[a]};b.prototype.write=function(a,d){if(this.Sa)throw c.g.xa();this.f[a]=d};b.prototype.set=function(a,d){if(this.Sa)throw c.g.xa();this.f[a]=
d};b.prototype.Rn=function(a,d){if(this.Sa)throw c.g.xa();this.f[a]=d.x;this.f[a+1]=d.y};b.prototype.add=function(a){this.resize(this.size+1);this.f[this.size-1]=a};b.prototype.Hp=function(a){return b.V(this,a)};b.prototype.Ah=function(a){return this.read(a)};b.prototype.resize=function(a,d){void 0===d&&(d=0);if(this.Xf)throw c.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");if(a<=this.size){if(c.I.truncate(5*a/4)<this.f.length){var b=this.f.slice(0,a);this.f=b}}else if(a>
this.f.length){c.I.truncate(64>a?Math.max(2*a,4):5*a/4);for(var b=this.f.slice(0),e=this.f.length;e<a;e++)b[e]=d;this.f=b}this.size=a};b.prototype.cf=function(a){(null==this.f||a>this.f.length)&&this.resize(a);if(this.Xf)throw c.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");this.size=a};b.prototype.Uk=function(a,d){this.write(a,d)};b.prototype.ij=function(a,d,b){for(var e=this.size;d<e&&d<b;d++)a=c.I.jg(this.read(d),a);return a};b.prototype.lc=function(a,d,f){if(null==a||
!(a instanceof b))return!1;var e=this.size,h=a.size;if(f>e||f>h&&e!=h)return!1;for(f>e&&(f=e);d<f;d++)if(this.read(d)!=a.read(d))return!1;return!0};b.prototype.nk=function(a,d,b,e,h,l,k){if(this.Sa)throw c.g.xa();if(!h&&(1>l||0!=e%l))throw c.g.N();for(var m=0;m<k-a;m++)this.f[a+e+m]=this.f[a+m];this.f==d.f&&a<b&&(b+=e);if(h)for(m=0;m<e;m++)this.f[m+a]=d.f[b+m];else for(h=e,k=0;k<e;k+=l)for(h-=l,m=0;m<l;m++)this.f[a+k+m]=d.f[b+h+m]};b.prototype.ul=function(a,d,b,e){if(this.Sa)throw c.g.xa();e-=a;for(var h=
this.f.slice(a,a+e),l=0;l<e;l++)this.f[a+b+l]=h[l];for(e=0;e<b;e++)this.f[a+e]=d};b.prototype.kg=function(a,d,b){if(this.Sa)throw c.g.xa();for(var e=this.f.slice(a,a+(b-a)),h=0;h<b-a;h++)this.f[h+a+2]=e[h];this.f[a]=d.x;this.f[a+1]=d.y};b.prototype.km=function(a,d,b,e,h,l){if(0>a||0>d||0>e)throw c.g.N();if(!h&&(0>=l||0!=d%l))throw c.g.N();if(b.size<e+d)throw c.g.N();if(0!=d)if(this.size<d+a&&this.resize(d+a),b==this)this.xi(a,d,e,h,l);else if(h)for(h=0;h<d;h++)this.f[a]=b.f[e],a++,e++;else if(e=e+
d-l,1==l)for(h=0;h<d;h++)this.f[a]=b.f[e],a++,e--;else for(h=0,d=c.I.truncate(d/l);h<d;h++){for(var k=0;k<l;k++)this.f[a+k]=b.f[e+k];a+=l;e-=l}};b.prototype.nj=function(a,d,b){if(this.Sa)throw c.g.xa();if(a+d>this.size)throw c.g.xa();if(0<b-(a+d)){b-=a+d;for(var e=this.f.slice(a+d,a+b+d),h=0;h<b;h++)this.f[a+h]=e[h]}this.size-=d};b.prototype.Ip=function(a,d,b){if(this.Sa)throw c.g.xa();if(1>b||0!=d%b)throw c.g.xa();for(var e=d>>1,h=0;h<e;h+=b){d-=b;for(var l=0;l<b;l++){var k=this.f[a+h+l];this.f[a+
h+l]=this.f[a+d+l];this.f[a+d+l]=k}}};b.prototype.bh=function(a,d,b){if(0>d||0>b||0>d||b+d>this.size)throw c.g.N();for(var e=d;e<d+b;e++)this.f[e]=a};b.prototype.xi=function(a,d,b,e,h){if(!e||a!=b){for(var l=0;l<d;l++)this.f[a+l]=this.f[b+l];if(!e)for(b=a,a=a+d-h,e=0,d=c.I.truncate(d/2);e<d;e++){for(l=0;l<h;l++){var k=this.f[b+l];this.f[b+l]=this.f[a+l];this.f[a+l]=k}b+=h;a-=h}}};b.prototype.Zp=function(a,d,b,e,h){if(0>a||0>d||0>e)throw c.g.N();if(0!=d)for(this.size<(d<<1)+a&&this.resize((d<<1)+a),
h||(a+=d-1<<1),h=h?2:-2,d+=e;e<d;e++)this.f[a]=b[e].x,this.f[a+1]=b[e].y,a+=h};b.prototype.Gp=function(a,d,b,e,h){if(0>a||0>d||0>e||this.size<d+a)throw c.g.N();if(h)for(h=0;h<d;h++)b[e+h]=this.f[a+h];else for(e=e+d-1;a<d;a++)b[e]=this.f[a],e--};b.prototype.clear=function(a){a?this.resize(0):this.cf(0)};b.prototype.xd=function(a,d,b){var e=this.f.slice(0,a),h=this.f.slice(d);a=this.f.slice(a,d).sort(b);this.f.length=0;this.f.push.apply(this.f,e.concat(a).concat(h))};b.prototype.Qh=function(){return 2};
b.prototype.tc=function(){return this.f[this.size-1]};b.prototype.af=function(){this.resize(this.size-1)};b.prototype.GF=function(a){this.f[this.size-1]=a};b.prototype.NE=function(a){a<this.size-1&&(this.f[a]=this.f[this.size-1]);this.resize(this.size-1)};b.prototype.Ps=function(a){for(var d=0,b=this.size;d<b;d++)if(this.f[d]==a)return d;return-1};b.prototype.Nw=function(a){return 0<=this.Ps(a)};b.ob=0;return b}();c.ga=g;g=function(){function b(a){this.Sa=this.Xf=!1;this.f=null;var d=a;2>d&&(d=2);
this.f=new Int32Array(d);this.size=a}b.Wc=function(a,d){var f=new b(a),e=a,h=f.f;2>e&&(e=2);if(0!==d)for(var c=0;c<e;c++)h[c]=d;return f};b.kj=function(a){var d=new b(0);d.f=new Int32Array(a.f);d.size=a.size;return d};b.V=function(a,d){var f=new b(0);f.size=a.size;f.size>d&&(f.size=d);var e=f.size;2>e&&(e=2);f.f=new Int32Array(e);f.f.set(a.f.length<=e?a.f:a.f.subarray(0,e),0);return f};b.prototype.xb=function(a){0>=a||(null==this.f?this.f=new Int32Array(a):a<=this.f.length||(0<this.f.length?(a=new Int32Array(a),
a.set(this.f),this.f=a):this.f=new Int32Array(a)))};b.prototype.read=function(a){return this.f[a]};b.prototype.dc=function(a,d){d.x=this.f[a];d.y=this.f[a+1]};b.prototype.get=function(a){return this.f[a]};b.prototype.write=function(a,d){if(this.Sa)throw c.g.xa();this.f[a]=d};b.prototype.set=function(a,d){if(this.Sa)throw c.g.xa();this.f[a]=d};b.prototype.Rn=function(a,d){if(this.Sa)throw c.g.xa();this.f[a]=d.x;this.f[a+1]=d.y};b.prototype.add=function(a){this.resize(this.size+1);this.f[this.size-
1]=a};b.prototype.Hp=function(a){return b.V(this,a)};b.prototype.Ah=function(a){return this.read(a)};b.prototype.resize=function(a,d){void 0===d&&(d=0);if(this.Xf)throw c.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");if(a<=this.size){if(30<this.f.length&&5*a/4<this.f.length){var b=new Int32Array(this.f,0,a);this.f=b}}else{a>this.f.length&&(b=c.I.truncate(64>a?Math.max(2*a,4):5*a/4),b=new Int32Array(b),b.set(this.f),this.f=b);for(var b=this.f,e=this.size;e<a;e++)b[e]=d}this.size=
a};b.prototype.cf=function(a){(null==this.f||a>this.f.length)&&this.resize(a);if(this.Xf)throw c.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");this.size=a};b.prototype.Uk=function(a,d){this.write(a,d)};b.prototype.ij=function(a,d,b){for(var e=this.size;d<e&&d<b;d++)a=c.I.jg(this.read(d),a);return a};b.prototype.lc=function(a,d,f){if(null==a||!(a instanceof b))return!1;var e=this.size,h=a.size;if(f>e||f>h&&e!=h)return!1;for(f>e&&(f=e);d<f;d++)if(this.read(d)!=a.read(d))return!1;
return!0};b.prototype.nk=function(a,d,b,e,h,l,k){if(this.Sa)throw c.g.xa();if(!h&&(1>l||0!=e%l))throw c.g.N();p(this.f,a+e,a,a+(k-a));this.f==d.f&&a<b&&(b+=e);if(h)this.f.set(d.f.subarray(b,b+e),a);else for(h=e,k=0;k<e;k+=l){h-=l;for(var m=0;m<l;m++)this.f[a+k+m]=d.f[b+h+m]}};b.prototype.ul=function(a,d,b,e){if(this.Sa)throw c.g.xa();e-=a;p(this.f,a+e,a,a+e);for(e=0;e<b;e++)this.f[a+e]=d};b.prototype.kg=function(a,d,b){if(this.Sa)throw c.g.xa();p(this.f,a+2,a,a+(b-a));this.f[a]=d.x;this.f[a+1]=d.y};
b.prototype.km=function(a,d,b,e,h,l){if(0>a||0>d||0>e)throw c.g.N();if(!h&&(0>=l||0!=d%l))throw c.g.N();if(b.size<e+d)throw c.g.N();if(0!=d)if(this.size<d+a&&this.resize(d+a),b==this)this.xi(a,d,e,h,l);else if(h)for(h=0;h<d;h++)this.f[a]=b.f[e],a++,e++;else if(e=e+d-l,1==l)for(h=0;h<d;h++)this.f[a]=b.f[e],a++,e--;else for(h=0,d=c.I.truncate(d/l);h<d;h++){for(var k=0;k<l;k++)this.f[a+k]=b.f[e+k];a+=l;e-=l}};b.prototype.nj=function(a,d,b){if(this.Sa)throw c.g.xa();if(a+d>this.size)throw c.g.xa();0<
b-(a+d)&&p(this.f,a,a+d,a+(b-(a+d))+d);this.size-=d};b.prototype.Ip=function(a,d,b){if(this.Sa)throw c.g.xa();if(1>b||0!=d%b)throw c.g.xa();for(var e=d>>1,h=0;h<e;h+=b){d-=b;for(var l=0;l<b;l++){var k=this.f[a+h+l];this.f[a+h+l]=this.f[a+d+l];this.f[a+d+l]=k}}};b.prototype.bh=function(a,d,b){if(0>d||0>b||0>d||b+d>this.size)throw c.g.N();for(var e=d;e<d+b;e++)this.f[e]=a};b.prototype.xi=function(a,d,b,e,h){if(!e||a!=b)if(this.f.set(this.f.subarray(b,b+d),a),!e)for(b=a,a=a+d-h,e=0,d=c.I.truncate(d/
2);e<d;e++){for(var l=0;l<h;l++){var k=this.f[b+l];this.f[b+l]=this.f[a+l];this.f[a+l]=k}b+=h;a-=h}};b.prototype.Zp=function(a,d,b,e,h){if(0>a||0>d||0>e)throw c.g.N();if(0!=d)for(this.size<(d<<1)+a&&this.resize((d<<1)+a),h||(a+=d-1<<1),h=h?2:-2,d+=e;e<d;e++)this.f[a]=b[e].x,this.f[a+1]=b[e].y,a+=h};b.prototype.Gp=function(a,d,b,e,h){if(0>a||0>d||0>e||this.size<d+a)throw c.g.N();if(h)for(h=0;h<d;h++)b[e+h]=this.f[a+h];else for(e=e+d-1;a<d;a++)b[e]=this.f[a],e--};b.prototype.clear=function(a){a?this.resize(0):
this.cf(0)};b.prototype.xd=function(a,d,f){10>d-a?b.$i(this.f,a,d,f):b.Zg(this.f,a,d-1,f)};b.prototype.Qh=function(){return 2};b.prototype.tc=function(){return this.f[this.size-1]};b.prototype.af=function(){this.resize(this.size-1)};b.prototype.GF=function(a){this.f[this.size-1]=a};b.prototype.NE=function(a){a<this.size-1&&(this.f[a]=this.f[this.size-1]);this.resize(this.size-1)};b.prototype.Ps=function(a){for(var d=0,b=this.size;d<b;d++)if(this.f[d]==a)return d;return-1};b.prototype.Nw=function(a){return 0<=
this.Ps(a)};b.$i=function(a,d,b,e){for(var h=d;h<b;h++){for(var c=a[h],k=h-1;k>=d&&0<e(a[k],c);)a[k+1]=a[k],k--;a[k+1]=c}};b.Wf=function(a,d,b){var e=a[b];a[b]=a[d];a[d]=e};b.Zg=function(a,d,f,e){if(!(d>=f))for(;;){if(9>f-d){b.$i(a,d,f+1,e);break}var h=a[d];b.Wf(a,d,f);for(var c=d,k=d;k<f;k++)0>=e(a[k],h)&&(b.Wf(a,c,k),c+=1);b.Wf(a,c,f);c-d<f-c?(b.Zg(a,d,c-1,e),d=c+1):(b.Zg(a,c+1,f,e),f=c-1)}};return b}();c.Wu=g})(t||(t={}));!0===t.$g.Sk&&(t.ga=t.Wu);(function(c){function p(b,a,d,f){d=new Int8Array(b.subarray(d,
f));b.set(d,a)}var g=function(){function b(a){this.Sa=this.Xf=!1;this.f=[];var d=a;2>d&&(d=2);this.f=c.I.Kh(d,b.ob);this.size=a}b.Wc=function(a,d){b.ob=d;var f=new b(a);b.ob=0;return f};b.kj=function(a){var d=new b(0);d.f=a.f.slice(0);d.size=a.size;return d};b.V=function(a,d){var f=new b(0);f.size=a.size;f.size>d&&(f.size=d);f.f=a.f.slice(0,f.size);return f};b.prototype.xb=function(){};b.prototype.read=function(a){return this.f[a]};b.prototype.dc=function(a,d){d.x=this.f[a];d.y=this.f[a+1]};b.prototype.get=
function(a){return this.f[a]};b.prototype.write=function(a,d){if(this.Sa)throw c.g.xa();this.f[a]=d};b.prototype.set=function(a,d){if(this.Sa)throw c.g.xa();this.f[a]=d};b.prototype.Rn=function(a,d){if(this.Sa)throw c.g.xa();this.f[a]=d.x;this.f[a+1]=d.y};b.prototype.add=function(a){this.resize(this.size+1);this.f[this.size-1]=a};b.prototype.Hp=function(a){return b.V(this,a)};b.prototype.Ah=function(a){return this.read(a)};b.prototype.resize=function(a,d){void 0===d&&(d=0);if(this.Xf)throw c.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");
if(a<=this.size){if(c.I.truncate(5*a/4)<this.f.length){var b=this.f.slice(0,a);this.f=b}}else if(a>this.f.length){c.I.truncate(64>a?Math.max(2*a,4):5*a/4);for(var b=this.f.slice(0),e=this.f.length;e<a;e++)b[e]=d;this.f=b}this.size=a};b.prototype.cf=function(a){(null==this.f||a>this.f.length)&&this.resize(a);if(this.Xf)throw c.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");this.size=a};b.prototype.Uk=function(a,d){this.write(a,d)};b.prototype.ij=function(a,d,b){for(var e=this.size;d<
e&&d<b;d++)a=c.I.jg(this.read(d),a);return a};b.prototype.lc=function(a,d,f){if(null==a||!(a instanceof b))return!1;var e=this.size,h=a.size;if(f>e||f>h&&e!=h)return!1;for(f>e&&(f=e);d<f;d++)if(this.read(d)!=a.read(d))return!1;return!0};b.prototype.nk=function(a,d,b,e,h,l,k){if(this.Sa)throw c.g.xa();if(!h&&(1>l||0!=e%l))throw c.g.N();for(var m=0;m<k-a;m++)this.f[a+e+m]=this.f[a+m];this.f==d.f&&a<b&&(b+=e);if(h)for(m=0;m<e;m++)this.f[m+a]=d.f[b+m];else for(h=e,k=0;k<e;k+=l)for(h-=l,m=0;m<l;m++)this.f[a+
k+m]=d.f[b+h+m]};b.prototype.ul=function(a,d,b,e){if(this.Sa)throw c.g.xa();e-=a;for(var h=this.f.slice(a,a+e),l=0;l<e;l++)this.f[a+b+l]=h[l];for(e=0;e<b;e++)this.f[a+e]=d};b.prototype.kg=function(a,d,b){if(this.Sa)throw c.g.xa();for(var e=this.f.slice(a,a+(b-a)),h=0;h<b-a;h++)this.f[h+a+2]=e[h];this.f[a]=d.x;this.f[a+1]=d.y};b.prototype.km=function(a,d,b,e,h,l){if(0>a||0>d||0>e)throw c.g.N();if(!h&&(0>=l||0!=d%l))throw c.g.N();if(b.size<e+d)throw c.g.N();if(0!=d)if(this.size<d+a&&this.resize(d+a),
b==this)this.xi(a,d,e,h,l);else if(h)for(h=0;h<d;h++)this.f[a]=b.f[e],a++,e++;else if(e=e+d-l,1==l)for(h=0;h<d;h++)this.f[a]=b.f[e],a++,e--;else for(h=0,d=c.I.truncate(d/l);h<d;h++){for(var k=0;k<l;k++)this.f[a+k]=b.f[e+k];a+=l;e-=l}};b.prototype.nj=function(a,d,b){if(this.Sa)throw c.g.xa();if(a+d>this.size)throw c.g.xa();if(0<b-(a+d)){b-=a+d;for(var e=this.f.slice(a+d,a+b+d),h=0;h<b;h++)this.f[a+h]=e[h]}this.size-=d};b.prototype.Ip=function(a,d,b){if(this.Sa)throw c.g.xa();if(1>b||0!=d%b)throw c.g.xa();
for(var e=d>>1,h=0;h<e;h+=b){d-=b;for(var l=0;l<b;l++){var k=this.f[a+h+l];this.f[a+h+l]=this.f[a+d+l];this.f[a+d+l]=k}}};b.prototype.bh=function(a,d,b){if(0>d||0>b||0>d||b+d>this.size)throw c.g.N();for(var e=d;e<d+b;e++)this.f[e]=a};b.prototype.xi=function(a,d,b,e,h){if(!e||a!=b){for(var l=0;l<d;l++)this.f[a+l]=this.f[b+l];if(!e)for(b=a,a=a+d-h,e=0,d=c.I.truncate(d/2);e<d;e++){for(l=0;l<h;l++){var k=this.f[b+l];this.f[b+l]=this.f[a+l];this.f[a+l]=k}b+=h;a-=h}}};b.prototype.Zp=function(a,d,b,e,h){if(0>
a||0>d||0>e)throw c.g.N();if(0!=d)for(this.size<(d<<1)+a&&this.resize((d<<1)+a),h||(a+=d-1<<1),h=h?2:-2,d+=e;e<d;e++)this.f[a]=b[e].x,this.f[a+1]=b[e].y,a+=h};b.prototype.Gp=function(a,d,b,e,h){if(0>a||0>d||0>e||this.size<d+a)throw c.g.N();if(h)for(h=0;h<d;h++)b[e+h]=this.f[a+h];else for(e=e+d-1;a<d;a++)b[e]=this.f[a],e--};b.prototype.clear=function(a){a?this.resize(0):this.cf(0)};b.prototype.xd=function(a,d,b){var e=this.f.slice(0,a),h=this.f.slice(d);a=this.f.slice(a,d).sort(b);this.f.length=0;
this.f.push.apply(this.f,e.concat(a).concat(h))};b.prototype.Qh=function(){return 1};b.prototype.xy=function(a,d){if(this.Sa)throw c.g.ra("invalid call. Attribute Stream is read only.");this.f[a]|=d};b.prototype.AB=function(a,d){if(this.Sa)throw c.g.ra("invalid call. Attribute Stream is read only.");this.f[a]&=~d};b.ob=0;return b}();c.Wk=g;g=function(){function b(a){this.f=null;var d=a;2>d&&(d=2);this.f=new Int8Array(d);this.size=a}b.Wc=function(a,d){var f=new b(a),e=a,h=f.f;2>e&&(e=2);if(0!==d)for(var c=
0;c<e;c++)h[c]=d;return f};b.kj=function(a){var d=new b(0);d.f=new Int8Array(a.f);d.size=a.size;return d};b.V=function(a,d){var f=new b(0);f.size=a.size;f.size>d&&(f.size=d);var e=f.size;2>e&&(e=2);f.f=new Int8Array(e);f.f.set(a.f.length<=e?a.f:a.f.subarray(0,e),0);return f};b.prototype.xb=function(a){0>=a||(null==this.f?this.f=new Int8Array(a):a<=this.f.length||(0<this.f.length?(a=new Int8Array(a),a.set(this.f),this.f=a):this.f=new Int8Array(a)))};b.prototype.read=function(a){return this.f[a]};b.prototype.dc=
function(a,d){d.x=this.f[a];d.y=this.f[a+1]};b.prototype.get=function(a){return this.f[a]};b.prototype.write=function(a,d){if(this.Sa)throw c.g.xa();this.f[a]=d};b.prototype.set=function(a,d){if(this.Sa)throw c.g.xa();this.f[a]=d};b.prototype.Rn=function(a,d){if(this.Sa)throw c.g.xa();this.f[a]=d.x;this.f[a+1]=d.y};b.prototype.add=function(a){this.resize(this.size+1);this.f[this.size-1]=a};b.prototype.Hp=function(a){return b.V(this,a)};b.prototype.Ah=function(a){return this.read(a)};b.prototype.resize=
function(a,d){void 0===d&&(d=0);if(this.Xf)throw c.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");if(a<=this.size){if(30<this.f.length&&5*a/4<this.f.length){var b=new Int8Array(this.f,0,a);this.f=b}}else{a>this.f.length&&(b=c.I.truncate(64>a?Math.max(2*a,4):5*a/4),b=new Int8Array(b),b.set(this.f),this.f=b);for(var b=this.f,e=this.size;e<a;e++)b[e]=d}this.size=a};b.prototype.cf=function(a){(null==this.f||a>this.f.length)&&this.resize(a);if(this.Xf)throw c.g.ra("invalid call. Attribute Stream is locked and cannot be resized.");
this.size=a};b.prototype.Uk=function(a,d){this.write(a,d)};b.prototype.ij=function(a,d,b){for(var e=this.size;d<e&&d<b;d++)a=c.I.jg(this.read(d),a);return a};b.prototype.lc=function(a,d,f){if(null==a||!(a instanceof b))return!1;var e=this.size,h=a.size;if(f>e||f>h&&e!=h)return!1;for(f>e&&(f=e);d<f;d++)if(this.read(d)!=a.read(d))return!1;return!0};b.prototype.nk=function(a,d,b,e,h,l,k){if(this.Sa)throw c.g.xa();if(!h&&(1>l||0!=e%l))throw c.g.N();p(this.f,a+e,a,a+(k-a));this.f==d.f&&a<b&&(b+=e);if(h)this.f.set(d.f.subarray(b,
b+e),a);else for(h=e,k=0;k<e;k+=l){h-=l;for(var m=0;m<l;m++)this.f[a+k+m]=d.f[b+h+m]}};b.prototype.ul=function(a,d,b,e){if(this.Sa)throw c.g.xa();e-=a;p(this.f,a+e,a,a+e);for(e=0;e<b;e++)this.f[a+e]=d};b.prototype.kg=function(a,d,b){if(this.Sa)throw c.g.xa();p(this.f,a+2,a,a+(b-a));this.f[a]=d.x;this.f[a+1]=d.y};b.prototype.km=function(a,d,b,e,h,l){if(0>a||0>d||0>e)throw c.g.N();if(!h&&(0>=l||0!=d%l))throw c.g.N();if(b.size<e+d)throw c.g.N();if(0!=d)if(this.size<d+a&&this.resize(d+a),b==this)this.xi(a,
d,e,h,l);else if(h)for(h=0;h<d;h++)this.f[a]=b.f[e],a++,e++;else if(e=e+d-l,1==l)for(h=0;h<d;h++)this.f[a]=b.f[e],a++,e--;else for(h=0,d=c.I.truncate(d/l);h<d;h++){for(var k=0;k<l;k++)this.f[a+k]=b.f[e+k];a+=l;e-=l}};b.prototype.nj=function(a,d,b){if(this.Sa)throw c.g.xa();if(a+d>this.size)throw c.g.xa();0<b-(a+d)&&p(this.f,a,a+d,a+(b-(a+d))+d);this.size-=d};b.prototype.Ip=function(a,d,b){if(this.Sa)throw c.g.xa();if(1>b||0!=d%b)throw c.g.xa();for(var e=d>>1,h=0;h<e;h+=b){d-=b;for(var l=0;l<b;l++){var k=
this.f[a+h+l];this.f[a+h+l]=this.f[a+d+l];this.f[a+d+l]=k}}};b.prototype.bh=function(a,d,b){if(0>d||0>b||0>d||b+d>this.size)throw c.g.N();for(var e=d;e<d+b;e++)this.f[e]=a};b.prototype.xi=function(a,d,b,e,h){if(!e||a!=b)if(this.f.set(this.f.subarray(b,b+d),a),!e)for(b=a,a=a+d-h,e=0,d=c.I.truncate(d/2);e<d;e++){for(var l=0;l<h;l++){var k=this.f[b+l];this.f[b+l]=this.f[a+l];this.f[a+l]=k}b+=h;a-=h}};b.prototype.Zp=function(a,d,b,e,h){if(0>a||0>d||0>e)throw c.g.N();if(0!=d)for(this.size<(d<<1)+a&&this.resize((d<<
1)+a),h||(a+=d-1<<1),h=h?2:-2,d+=e;e<d;e++)this.f[a]=b[e].x,this.f[a+1]=b[e].y,a+=h};b.prototype.Gp=function(a,d,b,e,h){if(0>a||0>d||0>e||this.size<d+a)throw c.g.N();if(h)for(h=0;h<d;h++)b[e+h]=this.f[a+h];else for(e=e+d-1;a<d;a++)b[e]=this.f[a],e--};b.prototype.clear=function(a){a?this.resize(0):this.cf(0)};b.prototype.xd=function(a,d,b){d=this.f.subarray(a,d);Array.prototype.sort.call(d,b);this.f.set(d,a)};b.prototype.xy=function(a,d){if(this.Sa)throw c.g.ra("invalid call. Attribute Stream is read only.");
this.f[a]|=d};b.prototype.AB=function(a,d){if(this.Sa)throw c.g.ra("invalid call. Attribute Stream is read only.");this.f[a]&=~d};b.prototype.Qh=function(){return 1};return b}();c.Xu=g})(t||(t={}));!0===t.$g.Sk&&(t.Wk=t.Xu);(function(c){var p=function(){function g(){}g.so=function(b,a){return c.Wk.Wc(b,a)};g.kl=function(b,a){return c.qd.Wc(b,a)};g.Sv=function(b,a,d){switch(b){case 1:b=c.qd.Wc(a,d);break;case 2:b=c.ga.Wc(a,d);break;case 4:b=c.Wk.Wc(a,d);break;default:throw c.g.wa();}return b};g.Tv=
function(b,a){return g.Sv(c.pa.Qh(b),a*c.pa.Wa(b),c.pa.ve(b))};g.Cg=function(b,a){return c.ga.Wc(b,a)};g.ay=function(b){var a,d=[];for(a=0;a<b;a++)d.push(null);return d};return g}();c.Ac=p})(t||(t={}));(function(c){var p=function(){function g(){}g.so=function(b,a){return c.Xu.Wc(b,a)};g.kl=function(b,a){return c.qd.Wc(b,a)};g.Sv=function(b,a,d){switch(b){case 1:b=c.qd.Wc(a,d);break;case 2:b=c.Wu.Wc(a,d);break;case 4:b=c.Xu.Wc(a,d);break;default:throw c.g.wa();}return b};g.Tv=function(b,a){return c.Ac.Sv(c.pa.Qh(b),
a*c.pa.Wa(b),c.pa.ve(b))};g.Cg=function(b,a){return c.Wu.Wc(b,a)};g.ay=function(b){var a,d=[];for(a=0;a<b;a++)d.push(null);return d};return g}();c.PG=p})(t||(t={}));!0===t.$g.Sk&&(t.Ac=t.PG);(function(c){c.ca=function(){return function(c){void 0===c&&(c=0);this.l=c}}()})(t||(t={}));(function(c){var p=function(){function b(){}b.nb=function(a,d){return 0<=d?b.H(a):-b.H(a)};b.H=function(a){return 0>a?-a:a};b.Hh=function(a){return 3.552713678800501E-15>a};b.Wz=function(a,d,f){return b.H(a-d)<=f*(1+(b.H(a)+
b.H(d))/2)};b.S=function(a,d){return b.Wz(a,d,3.552713678800501E-15)};b.sI=function(a){return 3.552713678800501E-15>=b.H(a)};b.Tc=function(a){return b.sI(a)};return b}();c.j=p;var g=function(){function b(){}b.Sn=function(a,d){var b=p.H(a),e=p.H(d),h=0;0!=b+e&&(b>e?(h=e/b,h=b*Math.sqrt(1+h*h)):(h=b/e,h=e*Math.sqrt(1+h*h)));return h};b.Dp=function(a,d,f,e,h){for(var c=[0,0,0],k=[0,0,0],m=0;2>=m;m++)d[m]-=a[m],f[m]-=d[m];f=c[1]*k[2]-c[2]*k[1];d=c[2]*k[0]-c[0]*k[2];c=c[0]*k[1]-c[1]*k[0];a=-1*(f*a[0]+
d*a[1]+c*a[2]);e[0]=f;e[1]=d;e[2]=c;e[3]=a;k=b.jm(e);e[0]/=k;e[1]/=k;e[2]/=k;e[3]/=k;0!=h&&(k=p.Tc(c)?p.Tc(a)?p.nb(1,d):-p.nb(1,a):p.nb(1,c),k*=p.nb(1,h),e[0]*=k,e[1]*=k,e[2]*=k,e[3]*=k)};b.Tu=function(a,d,b){b[0]=a[1]*d[2]-d[1]*a[2];b[1]=a[2]*d[0]-d[2]*a[0];b[2]=a[0]*d[1]-d[0]*a[1]};b.Pr=function(a,d){return a[0]*d[0]+a[1]*d[1]+a[2]*d[2]};b.jm=function(a){return b.Sn(b.Sn(a[0],a[1]),a[2])};b.wm=function(a,d,f,e,h,c){var k=b.n(1,a,d),m=Math.cos(d);e.l=(k+0)*m*Math.cos(f);h.l=(k+0)*m*Math.sin(f);c.l=
(k*(1-a)+0)*Math.sin(d)};b.IK=function(a,d,f,e,h,c,k){var m=b.Sn(d,f),r=1*Math.sqrt(1-a),g=r/1;if(p.S(m,0))c.l=0,h.l=p.nb(1.570796326794897,e),k.l=p.H(e)-r;else{c.l=Math.atan2(f,d);f=Math.atan2(1*e,r*m);c=Math.cos(f);var n=Math.sin(f);d=r*a/(1-a);a=1*a;f=Math.atan2(e+d*n*n*n,m-a*c*c*c);3.141592653589793<p.H(f)&&(f=p.nb(3.141592653589793,f)-f);f=Math.atan(g*Math.tan(f));n=Math.sin(f);c=Math.cos(f);h.l=Math.atan2(e+d*n*n*n,m-a*c*c*c);1.570796326794897<p.H(h.l)&&(h.l=p.nb(3.141592653589793,h.l)-h.l);
f=Math.atan(g*Math.tan(h.l));n=Math.sin(f);c=Math.cos(f);k.l=(e-r*n)*Math.sin(h.l)+(m-1*c)*Math.cos(h.l)}};b.n=function(a,d,b){b=Math.sin(b);return a/Math.sqrt(1-d*b*b)};b.rr=function(a,d){return Math.atan2(Math.sin(d)*(1-a),Math.cos(d))};b.Si=function(a,d){return Math.atan2(Math.sin(d),Math.cos(d)*(1-a))};b.xn=function(a,d){if(p.Hh(a)||0==d||p.S(p.H(d),1.570796326794897))return d;var f,e,h,c,k,m,r,g,n;if(.006884661117170036>a){c=Math.sqrt(1-a);k=(1-c)/(1+c);m=k*k;r=k*m;g=k*r;f=k*g;n=k*f;e=k*n;h=
1.572916666666667*r-3.2578125*f+4.295068359375*e;c=2.142578125*g-6.071484375*n;var u=3.129296875*f-11.249837239583334*e,v=4.775276692708333*n,w=7.958636765252976*e,x=Math.cos(2*d);return d+Math.sin(2*d)*(1.5*k-.84375*r+.525390625*f-.2688395182291667*e-h+u-w+x*(2*(1.3125*m-1.71875*g+1.650146484375*n)-4*c+6*v+x*(4*h-12*u+24*w+x*(8*c-32*v+x*(16*u-80*w+x*(32*v+64*x*w))))))}c=1-a;k=a/2;m=p.H(d);r=m*b.Xr(a)/(1.570796326794897*c);g=9999;n=m;for(m=0;1E-16<g&&50>m;m++)e=b.Tk(a,n),f=(b.Jz(n,a)-k*Math.sin(2*
n)/e)/c-r,e=1/(e*e*e),h=f/e,f=n-h,g=p.H(h),n=f;return 0<=d?n:-n};b.qR=function(a,d){return p.Hh(d)?a:a*b.Xr(d)/1.570796326794897};b.W=function(a){a=b.Fz(a,6.283185307179586);return 0>a?a+6.283185307179586:3.141592653589793>p.H(a)||p.S(p.H(a),3.141592653589793)?a:a-6.283185307179586};b.Fz=function(a,d){return a-Math.floor(a/d)*d};b.gg=function(a,d){if(.006884661117170036>d){var f=Math.sqrt(1-d),f=(1-f)/(1+f),e=f*f,h=e*e;return a/(1+f)*(1+.25*e+.015625*h+.00390625*e*h)*1.570796326794897}return a*b.Xr(d)};
b.Cp=function(a,d){var f=p.nb(1,Math.sin(d)),e=p.H(b.Fz(d,3.141592653589793));d=1.570796326794897>=e?e:3.141592653589793-e;var h;p.S(d,1.570796326794897)?h=d:h=Math.atan(Math.sqrt(1-a)*Math.tan(d));return h*f};b.q=function(a,d,f){if(.006884661117170036>d){d=Math.sqrt(1-d);d=(1-d)/(1+d);var e=d*d,h=d*e,c=d*h,k=d*c,m=d*k,r=d*m,g=-.7291666666666666*h+.2278645833333333*k+.03987630208333334*r,n=.615234375*c-.21533203125*m,u=-.54140625*k+.20302734375*r,v=.48876953125*m,w=-.4488699776785715*r,x=Math.cos(2*
f);return a/(1+d)*((1+.25*e+.015625*c+.00390625*m)*f+Math.sin(2*f)*(-1.5*d+.1875*h+.0234375*k+.00732421875*r-g+u-w+x*(2*(.9375*e-.234375*c-.03662109375*m)-4*n+6*v+x*(4*g-12*u+24*w+x*(8*n-32*v+x*(16*u-80*w+x*(32*v+64*x*w)))))))}return a*(b.Jz(f,d)-.5*d*Math.sin(2*f)/b.Tk(d,f))};b.Tk=function(a,d){var b=Math.sin(d);return Math.sqrt(1-a*b*b)};b.Xr=function(a){return p.Wz(a,1,2.220446049250313E-16)?1:1>a?b.hs(0,1-a)-a/3*b.gs(0,1-a):NaN};b.Jz=function(a,d){var f=p.nb(1,a);a=p.H(a);var e=Math.floor(a/1.570796326794897),
h;if(1<d)h=0==a?0:NaN;else if(p.Tc(e))h=b.sin(a),h=h*b.hs(1-h*h,1-d*h*h)-d/3*h*h*h*b.gs(1-h*h,1-d*h*h);else{h=c.I.truncate(e%2);var l=b.Xr(d);0<h?(h=Math.sin(1.570796326794897*(e+1)-a),h=h*b.hs(1-h*h,1-d*h*h)-d/3*h*h*h*b.gs(1-h*h,1-d*h*h),h=l*(e+1)-h):(h=Math.sin(a-1.570796326794897*e),h=h*b.hs(1-h*h,1-d*h*h)-d/3*h*h*h*b.gs(1-h*h,1-d*h*h),h=l*e+h)}return h*f};b.sin=function(a){a=b.W(a);var d=p.nb(1,a);a=p.H(a);return p.S(a,3.141592653589793)?0:p.S(a,1.570796326794897)?1*d:Math.sin(a)*d};b.gs=function(a,
d){for(var b=a,e=d,h=1,c=0,k=1,m,r,g,n;;){m=.2*(b+e+3*h);r=(m-b)/m;g=(m-e)/m;n=(m-h)/m;if(1E-4>p.H(r)&&1E-4>p.H(g)&&1E-4>p.H(n))break;n=Math.sqrt(e);m=Math.sqrt(h);n=Math.sqrt(b)*(n+m)+n*m;c+=k/(m*(h+n));k*=.25;b=.25*(b+n);e=.25*(e+n);h=.25*(h+n)}b=r*g;h=n*n;e=b-h;h=b-6*h;r=h+e+e;return 3*c+k*(1+h*(-.2142857142857143+.10227272727272728*h-.1730769230769231*n*r)+n*(.1666666666666667*r+n*(-.4090909090909091*e+.1153846153846154*n*b)))/(m*Math.sqrt(m))};b.hs=function(a,d){for(var b=a,e=d,h,c,k,m,r=1;;r=
.25*(r+h)){h=(b+e+r)/3;c=2-(h+b)/h;k=2-(h+e)/h;m=2-(h+r)/h;if(1E-4>p.H(c)&&1E-4>p.H(k)&&1E-4>p.H(m))break;h=Math.sqrt(e);c=Math.sqrt(r);h=Math.sqrt(b)*(h+c)+h*c;b=.25*(b+h);e=.25*(e+h)}b=c*k-m*m;e=c*k*m;return(1+(.04166666666666666*b-.1-.06818181818181818*e)*b+.07142857142857142*e)/Math.sqrt(h)};b.pu=function(a,d){if(p.Hh(a)||0==d||p.S(p.H(d),1.570796326794897))return d;var b,e,h;if(.006884661117170036>a){b=a*a;e=a*b;h=a*e;var c=a*h,k=a*c,m=a*k,r=-(.02708333333333333*e+.03430059523809524*h+.03149181547619048*
c+.02634359154541446*k+.02156896735835538*m),g=.007669890873015873*h+.01299603174603175*c+.0148051353064374*k+.01454454953803912*m,n=-(.002275545634920635*c+.004830845032667949*k+.006558395368616723*m),u=6.957236677288761E-4*k+.001775193002406544*m,v=-(2.17324089394402E-4*m),w=Math.cos(2*d);return d+Math.sin(2*d)*(-(.5*a+.2083333333333333*b+.09375*e+.04878472222222222*h+.02916666666666667*c+.01938905423280423*k+.01388255931712963*m)-r+n-v+w*(2*(.1041666666666667*b+.0875*e+.06050347222222222*h+.04151785714285714*
c+.02958958540013228*k+.02203667534722222*m)-4*g+6*u+w*(4*r-12*n+24*v+w*(8*g-32*u+w*(16*n-80*v+w*(32*u+64*w*v))))))}0==d||p.S(p.H(d),1.570796326794897)?b=d:(e=Math.sqrt(a),h=e*Math.sin(d),b=Math.tan(.7853981633974483+d/2)*Math.pow((1-h)/(1+h),e/2),b=2*Math.atan(b)-1.570796326794897);return b};b.ZK=function(a,d){if(p.Hh(a)||0==d||p.S(p.H(d),1.570796326794897))return d;var b,e;if(.006884661117170036>a){w=a*a;n=a*w;u=a*n;b=a*u;v=a*b;e=a*v;var h=.05833333333333333*n+.07232142857142858*u+.05634300595238095*
b+.0355325796406526*v+.020235546186067*e,c=.02653149801587302*u+.04379960317460317*b+.0429211791776896*v+.03255384637546096*e,k=.01294022817460318*b+.02668104344536636*v+.03155651254609588*e,m=.00659454790965208*v+.0163075268674227*e,r=.003463473736911237*e,g=Math.cos(2*d);return d+Math.sin(2*d)*(.5*a+.2083333333333333*w+.08333333333333333*n+.03611111111111111*u+.01875*b+.01195601851851852*v+.008863673941798942*e-h+k-r+g*(2*(.1458333333333333*w+.1208333333333333*n+.07039930555555556*u+.03616071428571429*
b+.01839451058201058*v+.01017113095238095*e)-4*c+6*m+g*(4*h-12*k+24*r+g*(8*c-32*m+g*(16*k-80*r+g*(32*m+64*g*r))))))}for(var n=Math.sqrt(a),u=n/2,v=Math.tan(.7853981633974483+d/2),h=0,c=1,w=d;0!=c;w=e)if(b=n*Math.sin(w),e=v*Math.pow((1+b)/(1-b),u),e=2*Math.atan(e)-1.570796326794897,h++,p.S(e,w)||3E4<h)c=0;return w};return b}();c.u=g})(t||(t={}));(function(c){var p=function(){function g(){}g.Fb=function(b,a,d,f,e,h,l,k){if(null!=h||null!=l||null!=k){f=c.u.W(f);a=c.u.W(a);d=c.u.W(d);e=c.u.W(e);1.570796326794897<
c.j.H(d)&&(d=c.j.nb(3.141592653589793,d)-d,a=c.u.W(a+3.141592653589793));1.570796326794897<c.j.H(e)&&(e=c.j.nb(3.141592653589793,e)-e,f=c.u.W(f+3.141592653589793));var m=c.u.W(f-a);if(c.j.S(d,e)&&(c.j.S(a,f)||c.j.S(c.j.H(d),1.570796326794897)))null!=h&&(h.l=0),null!=l&&(l.l=0),null!=k&&(k.l=0);else{if(c.j.S(d,-e)){if(c.j.S(c.j.H(d),1.570796326794897)){null!=h&&(h.l=3.141592653589793*b);null!=l&&(l.l=0<d?c.u.W(3.141592653589793-c.u.W(f)):c.u.W(f));null!=k&&(k.l=0<d?c.u.W(f):c.u.W(3.141592653589793-
c.u.W(f)));return}if(c.j.S(c.j.H(m),3.141592653589793)){null!=h&&(h.l=3.141592653589793*b);null!=l&&(l.l=0);null!=k&&(k.l=0);return}}var r=1.570796326794897==c.j.H(d)?0:Math.cos(d),g=Math.sin(d),n=1.570796326794897==c.j.H(e)?0:Math.cos(e),u=Math.sin(e),v=1.570796326794897==c.j.H(m)?0:Math.cos(m),w=3.141592653589793==c.j.H(m)?0:Math.sin(m);if(null!=h){var x=Math.sin((e-d)/2),m=Math.sin(m/2);h.l=2*Math.asin(Math.sqrt(x*x+r*n*m*m))*b}null!=l&&(c.j.S(c.j.H(d),1.570796326794897)?l.l=0>d?f:c.u.W(3.141592653589793-
f):l.l=Math.atan2(n*w,r*u-g*n*v));null!=k&&(c.j.S(c.j.H(e),1.570796326794897)?k.l=0>e?a:c.u.W(3.141592653589793-a):(k.l=Math.atan2(r*w,u*r*v-n*g),k.l=c.u.W(k.l+3.141592653589793)))}}};g.gf=function(b,a,d,f,e,h,l){if(null!=h||null!=l){a=c.u.W(a);d=c.u.W(d);1.570796326794897<c.j.H(d)&&(d=c.j.nb(3.141592653589793,d)-d,a=c.u.W(a+3.141592653589793));c.j.S(c.j.H(d),1.570796326794897)&&(a=0);e=c.u.W(e);var k=c.j.S(c.j.H(e),1.570796326794897)?0:Math.cos(e),m=c.j.S(c.j.H(e),3.141592653589793)?0:Math.sin(e),
r=c.j.S(c.j.H(d),1.570796326794897)?0:Math.cos(d),g=Math.sin(d);b=f/b;f=c.j.S(c.j.H(b),1.570796326794897)?0:Math.cos(b);var n=c.j.S(c.j.H(b),3.141592653589793)?0:Math.sin(b),u=Math.asin(g*f+r*n*k);null!=l&&(l.l=u);null!=h&&(h.l=c.j.S(c.j.H(u),1.570796326794897)?c.j.S(d,-u)?0>u?e:c.u.W(3.141592653589793-e):a:c.j.S(c.j.H(d),1.570796326794897)&&c.j.S(b,3.141592653589793)?0>d?e:c.u.W(3.141592653589793-e):c.u.W(a+Math.atan2(n*m,r*f-g*n*k)))}};return g}();c.yg=p})(t||(t={}));(function(c){var p=function(){function g(){}
g.Fb=function(b,a,d,f,e,h,l,k,m){var r=new c.ca(0),g=new c.ca(0),n=[0,0,0],u=[0,0,0],v=[0,0,0],w=new c.ca(0),x=new c.ca(0),p=new c.ca(0),D=new c.ca(0),t=new c.ca(0);if(null!=l||null!=k||null!=m)if(c.j.Hh(a))c.yg.Fb(b,d,f,e,h,l,k,m);else{e=c.u.W(e);d=c.u.W(d);var z=c.u.W(e-d);if(c.j.S(f,h)&&(c.j.S(d,e)||c.j.S(c.j.H(f),1.570796326794897)))null!=l&&(l.l=0),null!=k&&(k.l=0),null!=m&&(m.l=0);else{if(c.j.S(f,-h)){if(c.j.S(c.j.H(f),1.570796326794897)){null!=l&&(l.l=2*c.u.gg(b,a));null!=k&&(k.l=0<f?c.u.W(3.141592653589793-
c.u.W(e)):c.u.W(e));null!=m&&(m.l=0<f?c.u.W(e):c.u.W(3.141592653589793-c.u.W(e)));return}c.j.S(c.j.H(z),3.141592653589793)&&(null!=l&&(l.l=2*c.u.gg(b,a)),null!=k&&(k.l=0),null!=m&&(m.l=0))}else if(c.j.S(c.j.H(f),1.570796326794897)||c.j.S(c.j.H(h),1.570796326794897))c.j.S(c.j.H(f),1.570796326794897)?d=e:e=d;var A=0,B;0>z&&(A=1,B=d,d=e,e=B,B=f,f=h,h=B);var z=c.u.rr(a,f),C=c.u.rr(a,h);if(null!=k||null!=m)c.yg.Fb(b,d,z,e,C,null,r,g),r=Math.atan2(Math.sin(r.l)*Math.cos(f-z),Math.cos(r.l)),g=Math.atan2(Math.sin(g.l)*
Math.cos(h-C),Math.cos(g.l)),0!=A&&(B=r,r=g,g=B),null!=k&&(k.l=r),null!=m&&(m.l=g);null!=l&&(c.u.wm(a,f,d,p,D,t),n[0]=p.l,n[1]=D.l,n[2]=t.l,c.u.wm(a,h,e,p,D,t),u[0]=p.l,u[1]=D.l,u[2]=t.l,v[0]=n[1]*u[2]-u[1]*n[2],v[1]=-(n[0]*u[2]-u[0]*n[2]),v[2]=n[0]*u[1]-u[0]*n[1],a=1-c.u.Tk(a,c.u.Cp(a,c.u.Si(a,Math.acos(v[2]/Math.sqrt(v[0]*v[0]+v[1]*v[1]+v[2]*v[2]))))),a*=2-a,k=Math.atan2(-v[1],-v[0]),v=c.u.W(k-1.570796326794897),k=c.u.W(k+1.570796326794897),v=c.j.H(c.u.W(d-v))<=c.j.H(c.u.W(d-k))?v:k,c.yg.Fb(1,v,
0,d,z,w,null,null),c.yg.Fb(1,v,0,e,C,x,null,null),3.141592653589793<w.l+x.l&&(v=c.u.W(v+3.141592653589793),c.yg.Fb(1,v,0,d,z,w,null,null),c.yg.Fb(1,v,0,e,C,x,null,null)),w.l*=c.j.nb(1,f),x.l*=c.j.nb(1,h),w.l=c.u.Si(a,w.l),x.l=c.u.Si(a,x.l),d=c.u.q(b,a,w.l),b=c.u.q(b,a,x.l),l.l=c.j.H(b-d))}}};g.gf=function(b,a,d,f,e,h,l,k){var m=0,g=new c.ca(0),q=new c.ca(0),n=[0,0,0],u=[0,0,0],v=new c.ca(0),w=new c.ca(0),x=new c.ca(0);if(null!=l||null!=k)if(c.j.Hh(a))c.yg.gf(b,d,f,e,h,l,k);else if(c.j.Tc(e))null!=
l&&(l.l=d),null!=k&&(k.l=f);else{h=c.u.W(h);0>e&&(e=c.j.H(e),h=c.u.W(h+3.141592653589793));d=c.u.W(d);f=c.u.W(f);1.570796326794897<c.j.H(f)&&(d=c.u.W(d+3.141592653589793),f=c.j.nb(3.141592653589793,f)-f);c.j.S(c.j.H(f),1.570796326794897)&&(d=0);var p;if(c.j.Tc(f))p=c.j.H(1.570796326794897-c.j.H(h)),p=c.u.Si(a,p),p=1-c.u.Tk(a,c.u.Cp(a,p)),p*=2-p,b=e/c.u.gg(b,p)*1.570796326794897,b=c.u.xn(p,b),b=c.u.rr(p,b),c.yg.gf(1,d,f,b,h,l,g),null!=k&&(m=g.l),null!=k&&(k.l=c.u.Si(a,m));else if(c.j.S(c.j.H(f),1.570796326794897))m=
c.u.gg(b,a),g=2*m,b=c.j.nb(1.570796326794897,f),h=0<b?c.u.W(3.141592653589793-h):h,f=m-e,c.j.H(f)<=m?null!=l&&(l.l=h):(f=Math.floor(e/g),0==c.I.truncate(f%2)?(null!=l&&(l.l=h),f=m-(e-f*g)):(null!=l&&(l.l=c.u.W(h+3.141592653589793)),f=m-((f+1)*g-e))),null!=k&&(k.l=c.u.xn(a,f/m*b));else{p=c.u.rr(a,f);h=Math.atan2(Math.sin(h),Math.cos(h)*Math.cos(f-p));var t=c.I.truncate(c.j.nb(1,p))*(1.570796326794897>=c.j.H(h)?1:-1);h=c.u.W(d+Math.atan(Math.tan(h)*-Math.sin(p)));c.yg.Fb(b,h,0,d,p,null,q,null);p=c.j.H(1.570796326794897-
c.j.H(q.l));p=c.u.Si(a,p);p=1-c.u.Tk(a,c.u.Cp(a,p));p*=2-p;c.u.wm(a,0,h,v,w,x);n[0]=v.l;n[1]=w.l;n[2]=x.l;c.u.wm(a,f,d,v,w,x);u[0]=v.l;u[1]=w.l;u[2]=x.l;f=Math.acos((n[0]*u[0]+n[1]*u[1]+n[2]*u[2])/Math.sqrt(u[0]*u[0]+u[1]*u[1]+u[2]*u[2]));f=c.u.Si(p,f);f=c.u.q(b,p,f)+e*t;e=0<f?q.l:c.u.W(q.l+3.141592653589793);b=c.j.H(f)/c.u.gg(b,p)*1.570796326794897;b=c.u.xn(p,b);b=c.u.rr(p,b);c.yg.gf(1,h,0,b,e,l,g);null!=k&&(m=g.l);null!=k&&(k.l=c.u.Si(a,m))}}};return g}();c.Wj=p})(t||(t={}));(function(c){var p=
function(){function g(){}g.Fb=function(b,a,d,f,e,h,l,k,m){var g=0,q=0,n=0;if(null!=l||null!=k||null!=m)if(c.j.Hh(a))c.yg.Fb(b,d,f,e,h,l,k,m);else{var u=c.u.W(e-d);if(c.j.S(f,h)&&(c.j.Tc(u)||c.j.S(c.j.H(f),1.570796326794897)))null!=l&&(l.l=0),null!=k&&(k.l=0),null!=m&&(m.l=0);else{if(c.j.S(f,-h)){if(c.j.S(c.j.H(f),1.570796326794897)){null!=l&&(l.l=2*c.u.gg(b,a));null!=k&&(k.l=0<f?c.u.W(3.141592653589793-c.u.W(e)):c.u.W(e));null!=m&&(m.l=0<f?c.u.W(e):c.u.W(3.141592653589793-c.u.W(e)));return}c.j.S(c.j.H(u),
3.141592653589793)&&(null!=l&&(l.l=2*c.u.gg(b,a)),null!=k&&(k.l=0),null!=m&&(m.l=0))}else{if(c.j.S(c.j.H(f),1.570796326794897)||c.j.S(c.j.H(h),1.570796326794897)){c.Wj.Fb(b,a,d,f,e,h,l,k,m);return}if(c.j.Tc(u)||c.j.S(c.j.H(u),3.141592653589793)){c.Wj.Fb(b,a,d,f,e,h,l,k,m);return}}var v=1-Math.sqrt(1-a),w=a/(1-a),x=b*(1-v);b=c.u.Cp(a,f);var p=c.u.Cp(a,h);a=1.570796326794897==c.j.H(b)?0:Math.cos(b);var t=Math.sin(b),y=1.570796326794897==c.j.H(p)?0:Math.cos(p),z=Math.sin(p),A=u,B=Math.cos(A),C=Math.sin(A),
E=1,G=0,H,I,K,N,J;do{H=A;I=Math.sqrt(Math.pow(y*C,2)+Math.pow(a*z-t*y*B,2));K=t*z+a*y*B;N=Math.atan2(I,K);if(0==I){E=0;break}J=a*y*C/I;g=Math.cos(Math.asin(J));g*=g;q=K-2*t*z/g;1<c.j.H(q)&&(q=c.j.nb(1,q));n=q*q;A=v/16*g*(4+v*(4-3*g));A=u+(1-A)*v*J*(N+A*I*(q+A*K*(2*n-1)));B=Math.cos(A);C=Math.sin(A);G++;if(3.141592653589793<c.j.H(A)&&30<G){E=0;break}}while(5E3>=G&&!c.j.S(H,A));if(0!=E)w*=g,v=w*(256+w*(-128+w*(74-47*w)))/1024,null!=l&&(l.l=x*(1+w*(4096+w*(-768+w*(320-175*w)))/16384)*(N-v*I*(q+v/4*(K*
(2*n-1)-v/6*q*(4*I*I-3)*(4*n-3))))),null!=k&&(c.j.S(c.j.H(f),1.570796326794897)?k.l=0>f?e:c.u.W(3.141592653589793-e):k.l=Math.atan2(y*C,a*z-t*y*B)),null!=m&&(c.j.S(c.j.H(h),1.570796326794897)?m.l=0>h?d:c.u.W(3.141592653589793-d):(m.l=Math.atan2(a*C,a*z*B-t*y),m.l=c.u.W(m.l+3.141592653589793)));else{A=c.j.nb(3.141592653589793,u);K=t*z-a*y;N=Math.acos(K);I=Math.sin(N);g=1;G=J=0;do n=J,g*=g,B=g*g,J=v*g*(1+v+v*v),q=v*v*B*(1+2.25*v),E=v*v*v*B*g,B=1-.25*J+.1875*q-.1953125*E,J=.25*J-.25*q+.29296875*E,C=
.03125*q-.05859375*E,E*=.00651041666666667,q=K-2*t*z/g,1<c.j.H(q)&&(q=c.j.nb(1,q)),g=Math.acos(q),K=Math.cos(2*g),H=Math.cos(3*g),J=c.j.S(f,-h)?c.u.W(3.141592653589793-u)/(3.141592653589793*v*B):c.u.W(A-u)/(v*(B*N+J*I*q+C*Math.sin(2*N)*K+E*Math.sin(3*N)*H)),C=J*I/(a*y),A=1.570796326794897<c.j.H(u)?c.j.nb(3.141592653589793,C)-Math.asin(C):Math.asin(C),B=Math.cos(A),I=Math.sqrt(Math.pow(y*C,2)+Math.pow(a*z-t*y*B,2)),N=3.141592653589793-Math.asin(c.j.H(I)),K=Math.cos(N),g=Math.cos(Math.asin(J)),G++;
while(70>=G&&!c.j.S(n,J));null!=l&&(g*=g,w*=g,B=1+w*(4096+w*(-768+w*(320-175*w)))/16384,c.j.S(f,-h)?l.l=3.141592653589793*x*B:(q=K-2*t*z/g,g=Math.acos(q),K=Math.cos(2*g),H=Math.cos(3*g),l.l=x*(B*N+w*(-512+w*(128+w*(-60+35*w)))/2048*I*q+w*(-4+5*w)/6144*w*w*Math.sin(2*N)*K+E*Math.sin(3*N)*H+-7.62939453125E-5*w*w*w*w*Math.sin(4*N)*Math.cos(4*g))));null!=k&&(c.j.Tc(f)&&c.j.Tc(h)?(g=Math.sqrt(1-J*J),k.l=Math.acos(g),0>u&&(k.l*=-1)):c.j.S(c.j.H(f),1.570796326794897)?k.l=0>f?e:c.u.W(3.141592653589793-e):
(l=J/a,x=Math.sqrt(1-l*l),0>a*z-t*y*Math.cos(A)&&(x*=-1),k.l=Math.atan2(l,x),c.j.S(f,-h)&&c.j.H(c.u.W(d-e))>3.141592653589793*(1-v*Math.cos(f))&&(0<f&&1.570796326794897>c.j.H(k.l)||0>f&&1.570796326794897<c.j.H(k.l))&&(k.l=c.j.nb(3.141592653589793,k.l)-k.l)));if(null!=m)if(c.j.Tc(f)&&c.j.Tc(h))g=Math.sqrt(1-J*J),m.l=Math.acos(g),0<=u&&(m.l*=-1);else if(c.j.S(c.j.H(h),1.570796326794897))m.l=0>h?d:c.u.W(3.141592653589793-d);else if(u=J/y,l=Math.sqrt(1-u*u),x=Math.sin(A/2),0>Math.sin(p-b)-2*a*z*x*x&&
(l*=-1),m.l=Math.atan2(u,l),m.l=c.u.W(m.l+3.141592653589793),c.j.S(f,-h)&&!c.j.Tc(f)&&!c.j.S(c.j.H(f),1.570796326794897)&&c.j.H(c.u.W(d-e))>3.141592653589793*(1-v*Math.cos(f))&&(null!=k?x=k.l:(l=J/a,x=Math.sqrt(1-l*l),0>a*z-t*y*Math.cos(A)&&(x*=-1),x=Math.atan2(l,x),c.j.S(f,-h)&&c.j.H(c.u.W(d-e))>3.141592653589793*(1-v*Math.cos(f))&&(0<f&&1.570796326794897>c.j.H(x)||0>f&&1.570796326794897<c.j.H(x))&&(x=c.j.nb(3.141592653589793,x)-x)),1.570796326794897>=c.j.H(x)&&1.570796326794897<c.j.H(m.l)||1.570796326794897<=
c.j.H(x)&&1.570796326794897>c.j.H(m.l)))m.l=-1*c.u.W(m.l+3.141592653589793)}}}};g.gf=function(b,a,d,f,e,h,l,k){if(null!=l||null!=k)if(c.j.Hh(a))c.yg.gf(b,d,f,e,h,l,k);else if(h=c.u.W(h),c.j.S(c.j.H(f),1.570796326794897)||c.j.Tc(h)||c.j.S(c.j.H(h),3.141592653589793))c.Wj.gf(b,a,d,f,e,h,l,k);else{var m=1.570796326794897==c.j.H(h)?0:Math.cos(h),g=3.141592653589793==c.j.H(h)?0:Math.sin(h);c.j.S(c.j.H(f),1.570796326794897)&&(d=0);h=1-Math.sqrt(1-a);var q=c.u.Cp(a,f);f=1.570796326794897==c.j.H(q)?0:Math.cos(q);
var n=Math.sin(q),q=Math.atan2(Math.tan(q),m),u=f*g,v=u*u,w=1-v,x=a/(1-a)*w;a=x*(256+x*(-128+x*(74-47*x)))/1024;var p=a/4,t=a/6,y=e/(b*(1-h)*(1+x*(4096+x*(-768+x*(320-175*x)))/16384)),z=y,A;do{A=z;e=1.570796326794897==c.j.H(z)?0:Math.cos(z);var x=3.141592653589793==c.j.H(z)?0:Math.sin(z),B=x*x;b=Math.cos(2*q+z);z=b*b;z=a*x*(b+p*(e*(2*z-1)-t*b*(4*B-3)*(4*z-3)))+y}while(!c.j.S(A,z));e=1.570796326794897==c.j.H(z)?0:Math.cos(z);x=3.141592653589793==c.j.H(z)?0:Math.sin(z);null!=l&&(g=Math.atan2(x*g,f*
e-n*x*m),w=h/16*w*(4+h*(4-3*w)),b=Math.cos(2*q+z),l.l=c.u.W(d+(g-(1-w)*h*u*(z+w*x*(b+w*e*(2*b*b-1))))));null!=k&&(w=n*x-f*e*m,w=(1-h)*Math.sqrt(v+w*w),k.l=Math.atan2(n*e+f*x*m,w))}};return g}();c.bs=p})(t||(t={}));(function(c){var p=function(){function g(){}g.Fb=function(b,a,d,f,e,h,l,k,m){var g=c.u.W(e-d),q=c.j.S(c.j.H(f),1.570796326794897),n=c.j.S(c.j.H(h),1.570796326794897);if(c.j.S(f,h)&&(c.j.Tc(g)||q))null!=l&&(l.l=0),null!=k&&(k.l=0),null!=m&&(m.l=0);else{var u,v;c.j.Hh(a)?(u=Math.sin(f),v=
Math.sin(h),u=Math.sqrt((1+u)/(1-u)),v=Math.sqrt((1+v)/(1-v)),u=Math.log(v)-Math.log(u),u=Math.atan2(g,u),null!=l&&(l.l=c.j.S(f,h)?c.j.H(b*Math.cos(f)*g):c.j.H((b*h-b*f)/Math.cos(u)))):(v=c.u.pu(a,h),u=Math.sin(c.u.pu(a,f)),v=Math.sin(v),u=Math.sqrt((1+u)/(1-u)),v=Math.sqrt((1+v)/(1-v)),u=Math.log(v)-Math.log(u),u=Math.atan2(g,u),null!=l&&(c.j.S(f,h)?l.l=c.j.H(b*g*Math.cos(f)/c.u.Tk(a,f)):(g=c.u.q(b,a,f),b=c.u.q(b,a,h),l.l=c.j.H((b-g)/Math.cos(u)))));if(null!=k||null!=m)l=c.u.W(u+3.141592653589793),
q&&n||!q&&!n||(q?u=0>f?e:c.u.W(3.141592653589793-e):n&&(l=0>h?d:c.u.W(3.141592653589793-d))),null!=k&&(k.l=u),null!=m&&(m.l=l)}};g.gf=function(b,a,d,f,e,h,l,k){h=c.u.W(h);0>e&&(e=c.j.H(e),h=c.u.W(h+3.141592653589793));c.j.Hh(a)?c.j.S(c.j.H(f),1.570796326794897)?(d=0>f?h:c.u.W(3.141592653589793-h),h=e/b%6.283185307179586,3.141592653589793>=h?b=f-c.j.nb(h,f):(d=c.u.W(d+3.141592653589793),b=-f+c.j.nb(h-3.141592653589793,f))):c.j.S(c.j.H(h),1.570796326794897)?(d=c.u.W(d+c.j.nb(e,h)/(b*Math.cos(f))),b=
f):(b=f+e*Math.cos(h)/b,1.570796326794897<c.j.H(b)&&(b=1.570796326794897),c.j.S(c.j.H(b),1.570796326794897)&&(c.j.Tc(h)||c.j.S(c.j.H(h),3.141592653589793))||(1.570796316258184<c.j.H(b)&&(b=c.j.nb(1.570796316258184,b)),a=Math.sin(f),f=Math.sin(b),a=Math.sqrt((1+a)/(1-a)),f=Math.sqrt((1+f)/(1-f)),a=Math.log(f)-Math.log(a),d=c.u.W(d+Math.tan(h)*a))):c.j.S(c.j.H(f),1.570796326794897)?(d=0>f?h:c.u.W(3.141592653589793-h),h=e/c.u.qR(b,a),h%=6.283185307179586,3.141592653589793>=h?(b=f-c.j.nb(h,f),b=c.u.xn(a,
b)):(d=c.u.W(d+3.141592653589793),b=-f+c.j.nb(h-3.141592653589793,f),b=c.u.xn(a,b))):c.j.S(c.j.H(h),1.570796326794897)?(d=c.u.W(d+c.j.nb(e,h)*c.u.Tk(a,f)/(b*Math.cos(f))),b=f):(b=1.570796326794897*(e*Math.cos(h)+c.u.q(b,a,f))/c.u.gg(b,a),1.570796326794897<c.j.H(b)&&(b=c.j.nb(1.570796326794897,b)),b=c.u.xn(a,b),c.j.S(c.j.H(b),1.570796326794897)&&(c.j.Tc(h)||c.j.S(c.j.H(h),3.141592653589793))||(e=c.u.pu(a,f),f=c.u.pu(a,b),1.570796316258184<c.j.H(f)&&(f=c.j.nb(1.570796316258184,b),b=c.u.ZK(a,f)),a=Math.sin(e),
f=Math.sin(f),a=Math.sqrt((1+a)/(1-a)),f=Math.sqrt((1+f)/(1-f)),a=Math.log(f)-Math.log(a),d=c.u.W(d+Math.tan(h)*a)));null!=l&&(l.l=d);null!=k&&(k.l=b)};return g}();c.Yz=p})(t||(t={}));(function(c){var p=function(){function g(){}g.gw=function(b,a,d,f,e,h,l){c.bs.Fb(b,a,d,f,e,h,null,l,null)};g.Ph=function(b,a,d,f,e,h,l,k){c.bs.gf(b,a,d,f,e,h,l,k)};g.Qd=function(b,a,d,f,e,h,l,k,m,g){switch(g){case 2:c.Wj.Fb(b,a,d,f,e,h,l,k,m);break;case 3:c.Zz.Fb(b,a,d,f,e,h,l,k,m);break;case 1:c.Yz.Fb(b,a,d,f,e,h,l,
k,m);break;default:c.bs.Fb(b,a,d,f,e,h,l,k,m)}};g.dk=function(b,a,d,f,e,h,l,k,m){switch(m){case 2:c.Wj.gf(b,a,d,f,e,h,l,k);break;case 3:c.Zz.gf(b,a,d,f,e,h,l,k);break;case 1:c.Yz.gf(b,a,d,f,e,h,l,k);break;default:c.bs.gf(b,a,d,f,e,h,l,k)}};return g}();c.zb=p})(t||(t={}));(function(c){var p=function(){function g(){}g.RS=function(b,a){var d=8;0>d&&(d=8);var f=[0,0,0,0],e=new c.b;e.J(a);e.scale(9102==c.Ya.Em(b).Se().md()?1:c.Ya.Em(b).Se().Cj/3.141592653589793*180);-180>e.x?(e.x-=e.x%360,-180>e.x&&(e.x+=
360)):180<e.x&&(e.x-=e.x%360,180<e.x&&(e.x-=360));90<e.y&&(e.y=90);-90>e.y&&(e.y=-90);for(var h=5*d,l=(h+31)/32,k=-180,m=180,r=h-1,q=l-1;0<=q;q--)for(var n=r-32*q,u=Math.min(32,h-32*q),v=1;v<u;v+=2){var w=.5*(m+k);e.x>=w?(f[q]|=1<<n,k=w):m=w;n-=2;r-=2}k=-90;m=90;r=h-2;for(q=l-1;0<=q;q--)for(n=r-32*q,u=Math.min(32,h-32*q),v=0;v<u;v+=2)w=.5*(m+k),e.y>=w?(f[q]|=1<<n,k=w):m=w,n-=2,r-=2;return g.rQ(f,d,d)};g.rQ=function(b,a,d){for(var f=[],e=0;e<a;e++)f[e]="";for(var h=e=0,c=0;c<a;c++){var k=b[e]>>h&31,
h=h+5;if(31<h){var m=37-h,k=k&(1<<m)-1,h=h-32;e++;k|=(b[e]&(1<<h)-1)<<m}f[a-1-c]="0123456789bcdefghjkmnpqrstuvwxyz".split("")[k]}if(d>a)for(c=0;c<d-a;c++)f.push("0");else d<a&&(f.length=d);return f.join("")};return g}();c.oH=p})(t||(t={}));(function(c){var p={gcstol:[0,1E-8,1,1.11111E-8,2,1.68845E-8,3,2.17661E-8,4,2.22508E-8,5,2.34848E-8,6,2.37811E-8,7,2.88455E-8,8,3.1456E-8,9,3.29779E-8,10,3.66789E-8,11,4.23597E-8,12,4.79463E-8,13,6.45223E-8,14,7.26274E-8,15,7.49945E-8,16,7.52506E-8,17,7.97991E-8,
18,9.66202E-8,19,9.79918E-8,20,9.89735E-8,21,1.02314E-7,22,1.08146E-7,23,2.29734E-7,24,2.42985E-7,25,2.7546E-7,26,3.37034E-7,27,4.30795E-7,28,5.20871E-7,29,5.50921E-7,30,6.74068E-7,31,6.86177E-7,32,7.25263E-7,33,7.44101E-7,34,7.74267E-7,35,9.62954E-7,36,1.06103E-6,37,1.14363E-6,38,1.16219E-6,39,1.36419E-6,40,1.36744E-6,41,1.43239E-6,42,1.73624E-6,43,1.84825E-6,44,1.90986E-6,45,1.97572E-6,46,2.12207E-6,47,2.72837E-6,48,3.1831E-6,49,3.58099E-6,50,3.81972E-6,51,4.09256E-6,52,4.40737E-6,53,4.77465E-6,
54,5.16178E-6,55,5.20871E-6,56,5.72958E-6,57,6.03113E-6,58,6.98729E-6,59,9.24125E-6,60,1.14592E-5],pcstol:[0,6.66667E-9,1,2E-8,2,4.97098E-5,3,.001,4,.00109362,5,.00328087,6,.00497101],newtoold:[2154,102110,2195,102200,2204,32036,2205,26979,2225,102641,2226,102642,2227,102643,2228,102644,2229,102645,2230,102646,2231,102653,2232,102654,2233,102655,2234,102656,2235,102657,2236,102658,2237,102659,2238,102660,2239,102666,2240,102667,2241,102668,2242,102669,2243,102670,2246,102679,2247,102680,2248,102685,
2249,102686,2250,102687,2254,102694,2255,102695,2257,102712,2258,102713,2259,102714,2260,102715,2261,102716,2262,102717,2263,102718,2264,102719,2267,102724,2268,102725,2271,102728,2272,102729,2274,102736,2275,102737,2276,102738,2277,102739,2278,102740,2279,102741,2283,102746,2284,102747,2285,102748,2286,102749,2287,102752,2288,102753,2289,102754,2312,23433,2326,102140,2395,2091,2396,2092,2397,2166,2398,2167,2399,2168,2759,102229,2760,102230,2761,102248,2762,102249,2763,102250,2764,102251,2765,102252,
2766,102241,2767,102242,2768,102243,2769,102244,2770,102245,2771,102246,2772,102253,2773,102254,2774,102255,2775,102256,2776,102257,2777,102258,2778,102259,2779,102260,2780,102266,2781,102267,2782,102261,2783,102262,2784,102263,2785,102264,2786,102265,2787,102268,2788,102269,2789,102270,2790,102271,2791,102272,2792,102273,2793,102274,2794,102275,2795,102276,2796,102277,2797,102278,2798,102279,2799,102280,2800,102281,2801,102282,2802,102283,2803,102284,2804,102285,2805,102286,2806,102287,2807,102288,
2808,102289,2809,102290,2810,102291,2811,102292,2812,102293,2813,102294,2814,102295,2815,102296,2816,102297,2817,102298,2818,102300,2819,102304,2820,102307,2821,102308,2822,102309,2823,102310,2824,102311,2825,102312,2826,102313,2827,102314,2828,102315,2829,102316,2830,102317,2831,102318,2832,102320,2833,102321,2834,102322,2835,102323,2836,102324,2837,102325,2838,102326,2839,102327,2840,102330,2841,102334,2842,102335,2843,102336,2844,102337,2845,102338,2846,102339,2847,102340,2848,102341,2849,102342,
2850,102343,2851,102344,2852,102345,2853,102346,2854,102347,2855,102348,2856,102349,2857,102350,2858,102351,2859,102352,2860,102353,2861,102354,2862,102355,2863,102356,2864,102357,2865,102358,2866,102361,2942,102167,2943,102169,2944,2139,2945,2140,2946,2141,2947,2142,2948,2143,2949,2144,2950,2145,2951,2146,2952,2147,2953,2036,2954,2291,2955,2153,2956,2152,2957,2151,2958,2150,2959,2149,2960,2037,2961,2038,2962,2148,2965,2244,2966,2245,3003,102091,3004,102092,3005,102190,3060,2982,3067,102139,3072,
102606,3074,102608,3075,102208,3077,102210,3078,102123,3080,102119,3081,102603,3082,102602,3083,102601,3088,65163,3089,102763,3090,102363,3092,102151,3093,102152,3094,102153,3095,102154,3096,102155,3097,102145,3098,102146,3099,102147,3100,102148,3101,102149,3102,2155,3107,102172,3110,102170,3111,102171,3119,2214,3158,102234,3159,102235,3160,102236,3336,2979,3338,102006,3346,2600,3370,102126,3371,102127,3372,102130,3373,102131,3400,102184,3401,102185,3404,3359,3407,3366,3417,102675,3418,102676,3419,
102677,3420,102678,3421,102707,3422,102708,3423,102709,3424,102711,3433,102651,3434,102652,3435,102671,3436,102672,3437,102710,3438,102730,3448,102095,3451,102681,3452,102682,3455,102735,3461,2063,3462,2064,3463,3073,3464,3076,3560,102742,3566,102743,3567,102744,3734,102722,3735,102723,3736,102755,3737,102756,3738,102757,3739,102758,3741,102205,3742,102206,3743,102207,3748,102211,3750,102202,3751,102203,3759,102663,3760,102463,3764,102112,3770,102090,3771,102180,3772,102181,3773,102182,3775,102186,
3776,102187,3777,102188,3800,102183,3801,102189,3812,102199,3814,102609,3815,102469,3819,104990,3821,104136,3824,104137,3825,102444,3826,102443,3827,102442,3828,102441,3857,102100,3889,104991,3906,104992,4048,103201,4049,103202,4050,103203,4051,103204,4056,103205,4057,103206,4058,103207,4059,103208,4060,103209,4061,103210,4062,103211,4063,103212,4071,103213,4082,103214,4083,103215,4093,103216,4094,103217,4095,103218,4096,103219,4167,104108,4169,37252,4171,104107,4189,104110,4197,4234,4223,37223,4304,
104304,4414,102201,4415,102762,4417,102764,4434,102765,4437,102647,4455,32029,4456,32018,4457,3454,4462,102439,4463,4466,4470,4469,4484,103794,4485,103795,4486,103796,4487,103797,4488,103798,4489,103799,4611,104104,4612,104111,4613,37255,4615,37247,4616,37250,4617,4140,4618,4291,4620,37211,4626,37235,4647,102362,4658,37204,4668,37201,4669,4126,4672,37217,4673,104125,4675,37220,4684,37232,4698,4631,4707,37213,4708,37231,4709,37212,4710,37238,4711,37214,4712,37237,4713,37208,4714,37215,4715,37253,4716,
37216,4717,37239,4719,37219,4722,37242,4724,37233,4725,37222,4727,37224,4728,37246,4729,37226,4730,37227,4731,37228,4732,37229,4733,37230,4734,37251,4735,37259,4736,37254,4739,37205,4758,104133,4760,37001,4762,104114,4826,102214,5013,104142,5014,102331,5015,102332,5016,102333,5173,102085,5174,102086,5175,102087,5176,102088,5177,102089,5178,102040,5179,102080,5185,102081,5186,102082,5187,102083,5188,102084,5221,102066,5246,104100,5247,102490,5324,104144,5325,102420,5329,2934,5365,104143,5367,102305,
5451,104132,5513,102065,5514,102067,5519,102111,5520,31461,5646,102745,5839,5388,5858,5532,5879,4474,21896,21891,21897,21892,21898,21893,21899,21894,26701,102124,26702,102125,26799,26747,26847,102683,26848,102684,26849,102691,26850,102692,26851,102693,26852,102704,26853,102750,26854,102751,26857,102466,26858,102467,26859,102468,26901,102128,26902,102129,27493,27492,29101,29100,29168,29118,29169,29119,29170,29120,29171,29121,29172,29122,29187,29177,29188,29178,29189,29179,29190,29180,29191,29181,29192,
29182,29193,29183,29194,29184,29195,29185,29902,29900,31279,31278,31281,31291,31282,31292,31283,31293,31284,31294,31285,31295,31286,31296,31287,31297,31466,31462,31467,31463,31468,31464,31469,31465,31986,31917,31987,31918,31988,31919,31989,31920,31990,31921,31991,31922,32064,32074,32065,32075,32066,32076,32067,32077],pcsid:[2066,6,2136,5,2155,5,2157,3,2158,3,2159,5,2160,5,2219,3,2220,3,2244,5,2245,5,2256,5,2265,5,2266,5,2269,5,2270,5,2273,5,2290,3,2291,3,2294,3,2295,3,2313,3,2314,5,2964,5,2967,5,
2968,5,2991,3,2992,5,2993,3,2994,5,3073,3,3076,3,3079,3,3091,5,3106,3,3108,3,3109,3,3141,3,3142,3,3167,2,3337,3,3347,3,3348,3,3359,5,3360,3,3361,5,3362,3,3363,5,3364,3,3365,5,3366,5,3402,3,3403,3,3405,3,3406,3,3439,3,3440,3,3447,3,3449,3,3450,3,3453,5,3454,5,3460,3,3479,5,3480,3,3481,5,3482,3,3483,5,3484,3,3485,5,3486,3,3487,5,3488,3,3489,3,3490,5,3491,3,3492,5,3493,3,3494,5,3495,3,3496,5,3497,3,3498,5,3499,3,3500,5,3501,3,3502,5,3503,3,3504,5,3505,3,3506,5,3507,3,3508,5,3509,3,3510,5,3511,3,3512,
5,3513,3,3514,3,3515,5,3516,3,3517,5,3518,3,3519,5,3520,3,3521,5,3522,3,3523,5,3524,3,3525,5,3526,3,3527,5,3528,3,3529,5,3530,3,3531,5,3532,3,3533,5,3534,3,3535,5,3536,3,3537,5,3538,3,3539,5,3540,3,3541,5,3542,3,3543,5,3544,3,3545,5,3546,3,3547,5,3548,3,3549,5,3550,3,3551,5,3552,3,3553,5,3582,5,3583,3,3584,5,3585,3,3586,5,3587,3,3588,5,3589,3,3590,5,3591,3,3592,3,3593,5,3598,5,3599,3,3600,5,3605,5,3606,3,3607,3,3608,5,3609,3,3610,5,3611,3,3612,5,3613,3,3614,5,3615,3,3616,5,3617,3,3618,5,3619,3,3620,
5,3621,3,3622,5,3623,3,3624,5,3625,3,3626,5,3627,3,3628,5,3629,3,3630,5,3631,3,3632,5,3633,3,3634,5,3635,3,3636,5,3640,5,3641,3,3642,5,3643,3,3644,5,3645,3,3646,5,3647,3,3648,5,3649,3,3650,5,3651,3,3652,5,3653,3,3654,5,3655,3,3656,5,3657,3,3658,5,3659,3,3660,5,3661,3,3662,5,3663,3,3664,5,3668,5,3669,3,3670,5,3671,3,3672,5,3673,3,3674,5,3675,3,3676,5,3677,5,3678,3,3679,5,3680,5,3681,3,3682,5,3683,5,3684,3,3685,3,3686,5,3687,3,3688,5,3689,3,3690,5,3691,3,3692,5,3696,5,3697,3,3698,5,3699,3,3700,5,3740,
3,3749,3,3783,3,3784,3,3793,3,3794,3,3802,3,3816,3,3829,3,3854,3,3920,3,3978,3,3979,3,3991,5,3992,5,4026,3,4037,3,4038,3,4217,5,4438,5,4439,5,4467,3,4471,3,4474,3,4559,3,4839,3,5018,3,5048,3,5167,3,5168,3,5223,3,5234,3,5235,3,5243,3,5266,3,5316,3,5320,3,5321,3,5330,3,5331,3,5337,3,5361,3,5362,3,5382,3,5383,3,5396,3,5456,3,5457,3,5469,3,5472,4,5490,3,5518,3,5523,3,5559,3,5588,5,5589,5,5596,3,5627,3,5629,3,5641,3,5643,3,5644,3,5654,5,5655,5,5659,3,5700,3,5825,3,5836,3,5837,3,5842,3,5844,3,5880,3,5887,
3,5890,3,20499,3,20538,3,20539,3,20790,3,20791,3,21291,3,21292,3,21500,3,21817,3,21818,3,22032,3,22033,3,22091,3,22092,3,22332,3,22391,3,22392,3,22700,3,22770,3,22780,3,22832,3,23090,3,23095,3,23239,3,23240,3,23433,3,23700,3,24047,3,24048,3,24100,5,24200,3,24305,3,24306,3,24382,4,24383,3,24500,3,24547,3,24548,3,24571,2,24600,3,25E3,3,25231,3,25884,3,25932,3,26237,3,26331,3,26332,3,26591,3,26592,3,26632,3,26692,3,26855,5,26856,5,27120,3,27200,3,27291,4,27292,4,27429,3,27492,3,27500,3,27700,3,28232,
3,28600,3,28991,3,28992,3,29100,3,29220,3,29221,3,29333,3,29635,3,29636,3,29701,3,29738,3,29739,3,29849,3,29850,3,29871,2,29872,5,29873,3,29900,3,29901,3,29903,3,30200,6,30339,3,30340,3,30591,3,30592,3,30791,3,30792,3,31028,3,31121,3,31154,3,31170,3,31171,3,31370,3,31528,3,31529,3,31600,3,31700,3,31838,3,31839,3,31901,3,32061,3,32062,3,32098,3,32099,5,32100,3,32104,3,32161,3,32766,3,53034,3,53048,3,53049,3,54034,3,65061,5,65062,5,65161,3,65163,3,102041,5,102064,4,102068,1,102069,0,102217,5,102218,
3,102219,5,102220,5,102378,5,102379,5,102380,3,102381,5,102589,5,102599,5,102600,5,102604,5,102605,3,102606,3,102647,3,102704,5,102705,5,102733,5,102761,5,102762,3,102763,5,102764,3,102765,3,102766,5,102970,5,102974,5,102993,3,102994,3,102995,5,102996,5,103015,3,103016,5,103017,3,103018,5,103025,3,103026,3,103027,5,103028,5,103035,3,103036,3,103037,5,103038,5,103039,3,103040,3,103041,5,103042,5,103043,3,103044,3,103045,5,103046,5,103047,3,103048,3,103049,5,103050,5,103051,3,103052,5,103053,3,103054,
5,103055,3,103056,5,103057,3,103058,3,103059,5,103060,5,103061,3,103062,3,103063,5,103064,5,103069,5,103070,3,103071,3,103072,5,103073,5,103086,3,103087,3,103088,5,103089,5,103094,5,103095,3,103096,5,103103,3,103104,5,103105,3,103106,5,103121,3,103122,5,103123,3,103124,3,103125,5,103126,5,103127,3,103128,3,103129,5,103130,5,103131,3,103132,3,103133,5,103134,5,103135,3,103136,3,103137,5,103138,5,103139,3,103140,5,103141,3,103142,5,103143,3,103144,5,103145,3,103146,5,103147,3,103148,3,103149,5,103150,
5,103151,3,103152,5,103172,3,103173,5,103174,3,103175,3,103176,5,103177,5,103178,3,103179,3,103180,5,103181,5,103182,3,103183,3,103184,5,103185,5,103228,3,103229,3,103230,5,103231,5,103250,3,103251,5,103252,3,103253,5,103260,3,103261,3,103262,5,103263,5,103270,3,103271,3,103272,5,103273,5,103274,3,103275,3,103276,5,103277,5,103278,3,103279,3,103280,5,103281,5,103282,3,103283,3,103284,5,103285,5,103286,3,103287,5,103288,3,103289,5,103290,3,103291,5,103292,3,103293,3,103294,5,103295,5,103296,3,103297,
3,103298,5,103299,5,103376,5,103377,3,103378,3,103379,5,103380,5,103393,3,103394,3,103395,5,103396,5,103472,3,103473,5,103474,3,103475,5,103482,3,103483,5,103484,3,103485,5,103500,3,103501,5,103502,3,103503,3,103504,5,103505,5,103506,3,103507,3,103508,5,103509,5,103510,3,103511,3,103512,5,103513,5,103514,3,103515,5,103516,3,103517,5,103518,3,103519,5,103520,3,103521,5,103522,3,103523,3,103524,5,103525,5,103526,3,103527,5,103561,5,103562,5,103563,3,103564,3,103565,5,103566,5,103567,3,103568,3,103569,
5,103570,5,103585,5,103695,5],pcsidc:[[2E3,2045,3],[2056,2065,3],[2067,2135,3],[2137,2153,3],[2161,2170,3],[2172,2193,3],[2196,2198,3],[2200,2203,3],[2206,2217,3],[2222,2224,5],[2251,2253,5],[2280,2282,5],[2308,2311,3],[2315,2325,3],[2327,2394,3],[2400,2462,3],[2523,2576,3],[2578,2693,3],[2695,2758,3],[2867,2888,5],[2891,2930,5],[2931,2941,3],[2969,2973,3],[2975,2982,3],[2984,2988,3],[2995,3002,3],[3006,3051,3],[3054,3059,3],[3061,3066,3],[3068,3071,3],[3084,3087,3],[3112,3118,3],[3120,3138,3],[3146,
3151,3],[3153,3157,3],[3161,3166,3],[3168,3172,3],[3174,3203,3],[3294,3313,3],[3315,3335,3],[3339,3345,3],[3350,3358,3],[3367,3369,3],[3374,3399,3],[3408,3416,3],[3425,3432,5],[3441,3446,5],[3456,3459,5],[3465,3478,3],[3554,3559,3],[3561,3565,5],[3568,3570,5],[3571,3581,3],[3594,3597,3],[3601,3604,3],[3637,3639,3],[3665,3667,3],[3693,3695,3],[3701,3727,3],[3728,3733,5],[3744,3747,3],[3753,3758,5],[3761,3763,3],[3765,3769,3],[3779,3781,3],[3788,3791,3],[3797,3799,3],[3832,3841,3],[3844,3852,3],[3873,
3885,3],[3890,3893,3],[3907,3912,3],[3942,3950,3],[3968,3970,3],[3973,3976,3],[3986,3989,3],[3994,3997,3],[4399,4413,5],[4418,4433,5],[4491,4554,3],[5069,5072,3],[5105,5130,3],[5180,5184,3],[5253,5259,3],[5269,5275,3],[5292,5311,3],[5343,5349,3],[5355,5357,3],[5387,5389,3],[5459,5463,3],[5479,5482,3],[5530,5539,3],[5550,5552,3],[5562,5583,3],[5623,5625,5],[5631,5639,3],[5649,5653,3],[5663,5680,3],[5682,5685,3],[5875,5877,3],[20002,20032,3],[20062,20092,3],[20135,20138,3],[20248,20258,3],[20348,20358,
3],[20436,20440,3],[20822,20824,3],[20934,20936,3],[21035,21037,3],[21095,21097,3],[21148,21150,3],[21413,21423,3],[21473,21483,3],[21780,21782,3],[21891,21894,3],[22171,22177,3],[22181,22187,3],[22191,22197,3],[22234,22236,3],[22521,22525,3],[22991,22994,3],[23028,23038,3],[23830,23853,3],[23866,23872,3],[23877,23884,3],[23886,23894,3],[23946,23948,3],[24311,24313,3],[24342,24347,3],[24370,24374,4],[24375,24381,3],[24718,24721,3],[24817,24821,3],[24877,24882,3],[24891,24893,3],[25391,25395,3],[25828,
25838,3],[26191,26195,3],[26391,26393,3],[26703,26722,3],[26729,26760,5],[26766,26798,5],[26860,26870,5],[26891,26899,3],[26903,26923,3],[26929,26946,3],[26948,26998,3],[27037,27040,3],[27205,27232,3],[27258,27260,3],[27391,27398,3],[27561,27564,3],[27571,27574,3],[27581,27584,3],[27591,27594,3],[28191,28193,3],[28348,28358,3],[28402,28432,3],[28462,28492,3],[29118,29122,3],[29177,29185,3],[30161,30179,3],[30491,30494,3],[30729,30732,3],[31251,31259,3],[31265,31268,3],[31275,31278,3],[31288,31297,
3],[31461,31465,3],[31491,31495,3],[31917,31922,3],[31965,31985,3],[31992,32E3,3],[32001,32003,5],[32005,32031,5],[32033,32060,5],[32074,32077,5],[32081,32086,3],[32107,32130,3],[32133,32158,3],[32164,32167,5],[32180,32199,3],[32201,32260,3],[32301,32360,3],[32601,32662,3],[32664,32667,5],[32701,32761,3],[53001,53004,3],[53008,53019,3],[53021,53032,3],[53042,53046,3],[54001,54004,3],[54008,54019,3],[54021,54032,3],[54042,54046,3],[54048,54053,3],[102001,102040,3],[102042,102063,3],[102065,102067,
3],[102070,102112,3],[102114,102117,3],[102118,102121,5],[102122,102208,3],[102210,102216,3],[102221,102300,3],[102304,102377,3],[102382,102388,3],[102389,102391,5],[102401,102444,3],[102450,102452,3],[102461,102468,5],[102469,102492,3],[102500,102519,5],[102530,102549,3],[102570,102588,3],[102590,102598,3],[102601,102603,3],[102608,102628,3],[102629,102646,5],[102648,102672,5],[102675,102700,5],[102701,102703,3],[102707,102730,5],[102735,102758,5],[102767,102798,3],[102962,102969,3],[102971,102973,
3],[102975,102989,3],[102990,102992,5],[102997,103002,3],[103003,103008,5],[103009,103011,3],[103012,103014,5],[103019,103021,3],[103022,103024,5],[103029,103031,3],[103032,103034,5],[103065,103068,3],[103074,103076,3],[103077,103079,5],[103080,103082,3],[103083,103085,5],[103090,103093,3],[103097,103099,3],[103100,103102,5],[103107,103109,3],[103110,103112,5],[103113,103116,3],[103117,103120,5],[103153,103157,3],[103158,103162,5],[103163,103165,3],[103166,103171,5],[103186,103188,3],[103189,103191,
5],[103192,103195,3],[103196,103199,5],[103200,103224,3],[103225,103227,5],[103232,103237,3],[103238,103243,5],[103244,103246,3],[103247,103249,5],[103254,103256,3],[103257,103259,5],[103264,103266,3],[103267,103269,5],[103300,103375,3],[103381,103383,3],[103384,103386,5],[103387,103389,3],[103390,103392,5],[103397,103399,3],[103400,103471,5],[103476,103478,3],[103479,103481,5],[103486,103488,3],[103489,103491,5],[103492,103495,3],[103496,103499,5],[103539,103543,3],[103544,103548,5],[103549,103551,
3],[103552,103557,5],[103558,103560,3],[103571,103573,3],[103574,103576,5],[103577,103580,3],[103581,103583,5],[103600,103694,3],[103700,103793,5],[103794,103799,3]],gcsid:[4042,0,4075,0,4081,0,4168,0,4170,0,4188,0,4261,1,4262,0,4263,0,4288,0,4289,0,4305,1,4322,0,4324,0,4326,0,4466,0,4469,0,4475,0,4483,0,4490,0,4555,0,4558,0,4614,0,4619,0,4657,0,4670,0,4671,0,4674,0,4682,0,4683,0,4718,0,4720,0,4721,0,4723,0,4726,0,4737,0,4738,0,4759,0,4761,0,4807,1,4808,0,4809,0,4816,1,4817,0,4818,0,4819,1,4820,0,
4821,1,4823,0,4824,0,4901,1,4902,1,4903,0,4904,0,5228,0,5229,0,5233,0,5252,0,5264,0,5340,0,5354,0,5360,0,5371,0,5373,0,5381,0,5393,0,5464,0,5467,0,5489,0,5524,0,5527,0,5546,0,5561,0,5593,0,5681,0,5886,0,37225,1,37235,0,37257,0,37259,0,37260,0,104020,0,104139,1,104140,1,104223,0,104286,0,104287,0,104304,0,104305,0,104896,0,104900,5,104901,0,104902,0,104903,9,104904,2,104905,2,104906,59,104907,54,104908,0,104909,58,104910,31,104911,56,104912,6,104913,50,104914,41,104915,10,104916,3,104917,30,104918,
8,104919,60,104920,53,104921,44,104922,48,104923,51,104924,38,104925,0,104926,49,104927,57,104928,21,104929,23,104930,35,104931,49,104932,27,104933,17,104934,13,104935,7,104936,56,104937,40,104938,28,104939,37,104940,15,104941,55,104942,22,104943,4,104944,0,104945,20,104946,42,104947,47,104948,52,104949,43,104950,46,104951,39,104952,24,104953,16,104954,50,104955,36,104956,33,104957,46,104958,14,104959,19,104960,0,104961,34,104962,32,104963,29,104964,45,104965,26,104966,25,104967,41,104968,11,104969,
12,104970,18],gcsidc:[[4001,4016,0],[4018,4025,0],[4027,4029,0],[4031,4036,0],[4044,4047,0],[4052,4054,0],[4120,4166,0],[4172,4176,0],[4178,4185,0],[4190,4196,0],[4198,4216,0],[4218,4222,0],[4224,4232,0],[4234,4260,0],[4265,4267,0],[4269,4286,0],[4291,4303,0],[4306,4319,0],[4600,4610,0],[4621,4625,0],[4627,4633,0],[4636,4639,0],[4641,4646,0],[4659,4667,0],[4676,4680,0],[4686,4697,0],[4699,4706,0],[4740,4757,0],[4763,4765,0],[4801,4806,0],[4810,4812,1],[4813,4815,0],[37001,37008,0],[37201,37208,0],
[37211,37224,0],[37226,37233,0],[37237,37243,0],[37245,37247,0],[37249,37255,0],[104100,104138,0],[104141,104145,0],[104256,104261,0],[104700,104786,0],[104990,104992,0]]},g={c:[[2E3,2045,9001],[2056,2065,9001],[2067,2135,9001],[2137,2153,9001],[2161,2170,9001],[2172,2193,9001],[2196,2198,9001],[2200,2203,9001],[2206,2217,9001],[2222,2224,9002],[2251,2253,9002],[2280,2282,9002],[2308,2311,9001],[2315,2325,9001],[2327,2394,9001],[2400,2462,9001],[2523,2576,9001],[2578,2693,9001],[2695,2758,9001],[2867,
2869,9002],[2870,2888,9003],[2891,2895,9003],[2896,2898,9002],[2902,2908,9003],[2915,2920,9003],[2921,2923,9002],[2924,2930,9003],[2931,2941,9001],[2969,2973,9001],[2975,2982,9001],[2984,2988,9001],[2995,3002,9001],[3006,3051,9001],[3054,3059,9001],[3061,3066,9001],[3068,3071,9001],[3084,3087,9001],[3112,3118,9001],[3120,3138,9001],[3146,3151,9001],[3153,3157,9001],[3161,3166,9001],[3168,3172,9001],[3174,3203,9001],[3294,3313,9001],[3315,3335,9001],[3339,3345,9001],[3350,3358,9001],[3367,3369,9001],
[3374,3399,9001],[3408,3416,9001],[3425,3432,9003],[3441,3446,9003],[3456,3459,9003],[3465,3478,9001],[3554,3559,9001],[3561,3565,9003],[3568,3570,9003],[3571,3581,9001],[3594,3597,9001],[3601,3604,9001],[3637,3639,9001],[3665,3667,9001],[3693,3695,9001],[3701,3727,9001],[3728,3733,9003],[3744,3747,9001],[3753,3758,9003],[3761,3763,9001],[3765,3769,9001],[3779,3781,9001],[3788,3791,9001],[3797,3799,9001],[3832,3841,9001],[3844,3852,9001],[3873,3885,9001],[3890,3893,9001],[3907,3912,9001],[3942,3950,
9001],[3968,3970,9001],[3973,3976,9001],[3986,3989,9001],[3994,3997,9001],[4001,4016,9102],[4018,4025,9102],[4027,4029,9102],[4031,4036,9102],[4044,4047,9102],[4052,4054,9102],[4120,4166,9102],[4172,4176,9102],[4178,4185,9102],[4190,4196,9102],[4198,4216,9102],[4218,4222,9102],[4224,4232,9102],[4234,4260,9102],[4265,4267,9102],[4269,4286,9102],[4291,4303,9102],[4306,4319,9102],[4399,4413,9003],[4418,4433,9003],[4491,4554,9001],[4600,4610,9102],[4621,4625,9102],[4627,4633,9102],[4636,4639,9102],[4641,
4646,9102],[4659,4667,9102],[4676,4680,9102],[4686,4697,9102],[4699,4706,9102],[4740,4757,9102],[4763,4765,9102],[4801,4806,9102],[4810,4812,9105],[4813,4815,9102],[5069,5072,9001],[5105,5130,9001],[5180,5184,9001],[5253,5259,9001],[5269,5275,9001],[5292,5311,9001],[5343,5349,9001],[5355,5357,9001],[5387,5389,9001],[5459,5463,9001],[5479,5482,9001],[5530,5539,9001],[5550,5552,9001],[5562,5583,9001],[5623,5625,9003],[5631,5639,9001],[5649,5653,9001],[5663,5680,9001],[5682,5685,9001],[5875,5877,9001],
[20002,20032,9001],[20062,20092,9001],[20135,20138,9001],[20248,20258,9001],[20348,20358,9001],[20436,20440,9001],[20822,20824,9001],[20934,20936,9001],[21035,21037,9001],[21095,21097,9001],[21148,21150,9001],[21413,21423,9001],[21473,21483,9001],[21780,21782,9001],[21891,21894,9001],[22171,22177,9001],[22181,22187,9001],[22191,22197,9001],[22234,22236,9001],[22521,22525,9001],[22991,22994,9001],[23028,23038,9001],[23830,23853,9001],[23866,23872,9001],[23877,23884,9001],[23886,23894,9001],[23946,
23948,9001],[24311,24313,9001],[24342,24347,9001],[24370,24374,9084],[24375,24381,9001],[24718,24721,9001],[24817,24821,9001],[24877,24882,9001],[24891,24893,9001],[25391,25395,9001],[25828,25838,9001],[26191,26195,9001],[26391,26393,9001],[26703,26722,9001],[26729,26760,9003],[26766,26798,9003],[26860,26870,9003],[26891,26899,9001],[26903,26923,9001],[26929,26946,9001],[26948,26998,9001],[27037,27040,9001],[27205,27232,9001],[27258,27260,9001],[27391,27398,9001],[27561,27564,9001],[27571,27574,9001],
[27581,27584,9001],[27591,27594,9001],[28191,28193,9001],[28348,28358,9001],[28402,28432,9001],[28462,28492,9001],[29118,29122,9001],[29177,29185,9001],[30161,30179,9001],[30491,30494,9001],[30729,30732,9001],[31251,31259,9001],[31265,31268,9001],[31275,31278,9001],[31288,31297,9001],[31461,31465,9001],[31491,31495,9001],[31917,31922,9001],[31965,31985,9001],[31992,32E3,9001],[32001,32003,9003],[32005,32031,9003],[32033,32060,9003],[32074,32077,9003],[32081,32086,9001],[32107,32130,9001],[32133,32158,
9001],[32164,32167,9003],[32180,32199,9001],[32201,32260,9001],[32301,32360,9001],[32601,32662,9001],[32664,32667,9003],[32701,32761,9001],[37001,37008,9102],[37201,37208,9102],[37211,37224,9102],[37226,37233,9102],[37237,37243,9102],[37245,37247,9102],[37249,37255,9102],[53001,53004,9001],[53008,53019,9001],[53021,53032,9001],[53042,53046,9001],[54001,54004,9001],[54008,54019,9001],[54021,54032,9001],[54042,54046,9001],[54048,54053,9001],[102001,102040,9001],[102042,102063,9001],[102065,102067,9001],
[102070,102112,9001],[102114,102117,9001],[102122,102208,9001],[102210,102216,9001],[102221,102300,9001],[102304,102377,9001],[102382,102388,9001],[102389,102391,9003],[102401,102444,9001],[102450,102452,9001],[102461,102468,9003],[102469,102492,9001],[102500,102519,9002],[102530,102549,9001],[102570,102588,9001],[102590,102598,9001],[102601,102603,9001],[102608,102628,9001],[102629,102646,9003],[102648,102672,9003],[102675,102700,9003],[102701,102703,9001],[102707,102730,9003],[102735,102758,9003],
[102767,102798,9001],[102962,102969,9001],[102971,102973,9001],[102975,102989,9001],[102990,102992,9002],[102997,103002,9001],[103003,103008,9003],[103009,103011,9001],[103012,103014,9003],[103019,103021,9001],[103022,103024,9003],[103029,103031,9001],[103032,103034,9003],[103065,103068,9001],[103074,103076,9001],[103077,103079,9002],[103080,103082,9001],[103083,103085,9003],[103090,103093,9001],[103097,103099,9001],[103100,103102,9003],[103107,103109,9001],[103110,103112,9003],[103113,103116,9001],
[103117,103120,9003],[103153,103157,9001],[103158,103162,9003],[103163,103165,9001],[103166,103168,9002],[103169,103171,9003],[103186,103188,9001],[103189,103191,9003],[103192,103195,9001],[103196,103199,9003],[103200,103224,9001],[103225,103227,9002],[103232,103237,9001],[103238,103243,9003],[103244,103246,9001],[103247,103249,9003],[103254,103256,9001],[103257,103259,9003],[103264,103266,9001],[103267,103269,9003],[103300,103375,9001],[103381,103383,9001],[103384,103386,9002],[103387,103389,9001],
[103390,103392,9003],[103397,103399,9001],[103400,103471,9003],[103476,103478,9001],[103479,103481,9003],[103486,103488,9001],[103489,103491,9003],[103492,103495,9001],[103496,103499,9003],[103539,103543,9001],[103544,103548,9003],[103549,103551,9001],[103552,103554,9002],[103555,103557,9003],[103558,103560,9001],[103571,103573,9001],[103574,103576,9003],[103577,103580,9001],[103581,103583,9003],[103600,103694,9001],[103700,103793,9003],[103794,103799,9001],[104100,104138,9102],[104141,104145,9102],
[104256,104261,9102],[104700,104786,9102],[104900,104970,9102],[104990,104992,9102]],nc:[2066,9039,2136,9094,2155,9003,2157,9001,2158,9001,2159,9094,2160,9094,2219,9001,2220,9001,2244,9003,2245,9003,2256,9002,2265,9002,2266,9002,2269,9002,2270,9002,2273,9002,2290,9001,2291,9001,2294,9001,2295,9001,2313,9001,2314,9005,2899,9003,2900,9003,2901,9002,2909,9002,2910,9002,2911,9003,2912,9003,2913,9002,2914,9002,2964,9003,2967,9003,2968,9003,2991,9001,2992,9002,2993,9001,2994,9002,3073,9001,3076,9001,3079,
9001,3091,9003,3106,9001,3108,9001,3109,9001,3141,9001,3142,9001,3167,9301,3337,9001,3347,9001,3348,9001,3359,9003,3360,9001,3361,9002,3362,9001,3363,9003,3364,9001,3365,9003,3366,9005,3402,9001,3403,9001,3405,9001,3406,9001,3439,9001,3440,9001,3447,9001,3449,9001,3450,9001,3453,9003,3454,9003,3460,9001,3479,9002,3480,9001,3481,9002,3482,9001,3483,9002,3484,9001,3485,9003,3486,9001,3487,9003,3488,9001,3489,9001,3490,9003,3491,9001,3492,9003,3493,9001,3494,9003,3495,9001,3496,9003,3497,9001,3498,9003,
3499,9001,3500,9003,3501,9001,3502,9003,3503,9001,3504,9003,3505,9001,3506,9003,3507,9001,3508,9003,3509,9001,3510,9003,3511,9001,3512,9003,3513,9001,3514,9001,3515,9003,3516,9001,3517,9003,3518,9001,3519,9003,3520,9001,3521,9003,3522,9001,3523,9003,3524,9001,3525,9003,3526,9001,3527,9003,3528,9001,3529,9003,3530,9001,3531,9003,3532,9001,3533,9003,3534,9001,3535,9003,3536,9001,3537,9003,3538,9001,3539,9003,3540,9001,3541,9003,3542,9001,3543,9003,3544,9001,3545,9003,3546,9001,3547,9003,3548,9001,3549,
9003,3550,9001,3551,9003,3552,9001,3553,9003,3582,9003,3583,9001,3584,9003,3585,9001,3586,9003,3587,9001,3588,9002,3589,9001,3590,9002,3591,9001,3592,9001,3593,9002,3598,9003,3599,9001,3600,9003,3605,9002,3606,9001,3607,9001,3608,9003,3609,9001,3610,9003,3611,9001,3612,9003,3613,9001,3614,9003,3615,9001,3616,9003,3617,9001,3618,9003,3619,9001,3620,9003,3621,9001,3622,9003,3623,9001,3624,9003,3625,9001,3626,9003,3627,9001,3628,9003,3629,9001,3630,9003,3631,9001,3632,9003,3633,9001,3634,9002,3635,9001,
3636,9002,3640,9003,3641,9001,3642,9003,3643,9001,3644,9002,3645,9001,3646,9002,3647,9001,3648,9002,3649,9001,3650,9003,3651,9001,3652,9003,3653,9001,3654,9003,3655,9001,3656,9002,3657,9001,3658,9003,3659,9001,3660,9003,3661,9001,3662,9003,3663,9001,3664,9003,3668,9003,3669,9001,3670,9003,3671,9001,3672,9003,3673,9001,3674,9003,3675,9001,3676,9002,3677,9003,3678,9001,3679,9002,3680,9003,3681,9001,3682,9002,3683,9003,3684,9001,3685,9001,3686,9003,3687,9001,3688,9003,3689,9001,3690,9003,3691,9001,3692,
9003,3696,9003,3697,9001,3698,9003,3699,9001,3700,9003,3740,9001,3749,9001,3783,9001,3784,9001,3793,9001,3794,9001,3802,9001,3816,9001,3829,9001,3854,9001,3920,9001,3978,9001,3979,9001,3991,9003,3992,9003,4026,9001,4037,9001,4038,9001,4042,9102,4075,9102,4081,9102,4168,9102,4170,9102,4188,9102,4217,9003,4261,9105,4262,9102,4263,9102,4288,9102,4289,9102,4305,9105,4322,9102,4324,9102,4326,9102,4438,9003,4439,9003,4466,9102,4467,9001,4469,9102,4471,9001,4474,9001,4475,9102,4483,9102,4490,9102,4555,9102,
4558,9102,4559,9001,4614,9102,4619,9102,4657,9102,4670,9102,4671,9102,4674,9102,4682,9102,4683,9102,4718,9102,4720,9102,4721,9102,4723,9102,4726,9102,4737,9102,4738,9102,4759,9102,4761,9102,4807,9105,4808,9102,4809,9102,4816,9105,4817,9102,4818,9102,4819,9105,4820,9102,4821,9105,4823,9102,4824,9102,4839,9001,4901,9105,4902,9105,4903,9102,4904,9102,5018,9001,5048,9001,5167,9001,5168,9001,5223,9001,5228,9102,5229,9102,5233,9102,5234,9001,5235,9001,5243,9001,5252,9102,5264,9102,5266,9001,5316,9001,5320,
9001,5321,9001,5330,9001,5331,9001,5337,9001,5340,9102,5354,9102,5360,9102,5361,9001,5362,9001,5371,9102,5373,9102,5381,9102,5382,9001,5383,9001,5393,9102,5396,9001,5456,9001,5457,9001,5464,9102,5467,9102,5469,9001,5472,9037,5489,9102,5490,9001,5518,9001,5523,9001,5524,9102,5527,9102,5546,9102,5559,9001,5561,9102,5588,9002,5589,9005,5593,9102,5596,9001,5627,9001,5629,9001,5641,9001,5643,9001,5644,9001,5654,9003,5655,9003,5659,9001,5681,9102,5700,9001,5825,9001,5836,9001,5837,9001,5842,9001,5844,9001,
5880,9001,5886,9102,5887,9001,5890,9001,20499,9001,20538,9001,20539,9001,20790,9001,20791,9001,21291,9001,21292,9001,21500,9001,21817,9001,21818,9001,22032,9001,22033,9001,22091,9001,22092,9001,22332,9001,22391,9001,22392,9001,22700,9001,22770,9001,22780,9001,22832,9001,23090,9001,23095,9001,23239,9001,23240,9001,23433,9001,23700,9001,24047,9001,24048,9001,24100,9005,24200,9001,24305,9001,24306,9001,24382,9084,24383,9001,24500,9001,24547,9001,24548,9001,24571,9062,24600,9001,25E3,9001,25231,9001,
25884,9001,25932,9001,26237,9001,26331,9001,26332,9001,26591,9001,26592,9001,26632,9001,26692,9001,26855,9003,26856,9003,27120,9001,27200,9001,27291,9040,27292,9040,27429,9001,27492,9001,27500,9001,27700,9001,28232,9001,28600,9001,28991,9001,28992,9001,29100,9001,29220,9001,29221,9001,29333,9001,29635,9001,29636,9001,29701,9001,29738,9001,29739,9001,29849,9001,29850,9001,29871,9042,29872,9041,29873,9001,29900,9001,29901,9001,29903,9001,30200,9039,30339,9001,30340,9001,30591,9001,30592,9001,30791,
9001,30792,9001,31028,9001,31121,9001,31154,9001,31170,9001,31171,9001,31370,9001,31528,9001,31529,9001,31600,9001,31700,9001,31838,9001,31839,9001,31901,9001,32061,9001,32062,9001,32098,9001,32099,9003,32100,9001,32104,9001,32161,9001,32766,9001,37225,9105,37235,9102,37257,9102,37259,9102,37260,9102,53034,9001,53048,9001,53049,9001,54034,9001,65061,9003,65062,9003,65161,9001,65163,9001,102041,9003,102064,9085,102068,109030,102069,109031,102118,9003,102119,9002,102120,9003,102121,9003,102217,9003,
102218,9001,102219,9003,102220,9003,102378,9002,102379,9002,102380,9001,102381,9002,102589,9003,102599,9003,102600,9003,102604,9003,102605,9001,102606,9001,102647,9001,102704,9003,102705,9003,102733,9003,102761,9003,102762,9001,102763,9003,102764,9001,102765,9001,102766,9003,102970,9002,102974,9003,102993,9001,102994,9001,102995,9003,102996,9003,103015,9001,103016,9003,103017,9001,103018,9003,103025,9001,103026,9001,103027,9003,103028,9003,103035,9001,103036,9001,103037,9003,103038,9003,103039,9001,
103040,9001,103041,9003,103042,9003,103043,9001,103044,9001,103045,9003,103046,9003,103047,9001,103048,9001,103049,9003,103050,9003,103051,9001,103052,9003,103053,9001,103054,9003,103055,9001,103056,9003,103057,9001,103058,9001,103059,9003,103060,9003,103061,9001,103062,9001,103063,9003,103064,9003,103069,9003,103070,9001,103071,9001,103072,9003,103073,9003,103086,9001,103087,9001,103088,9003,103089,9003,103094,9002,103095,9001,103096,9003,103103,9001,103104,9003,103105,9001,103106,9003,103121,9001,
103122,9003,103123,9001,103124,9001,103125,9002,103126,9002,103127,9001,103128,9001,103129,9003,103130,9003,103131,9001,103132,9001,103133,9003,103134,9003,103135,9001,103136,9001,103137,9002,103138,9002,103139,9001,103140,9003,103141,9001,103142,9003,103143,9001,103144,9003,103145,9001,103146,9002,103147,9001,103148,9001,103149,9003,103150,9003,103151,9001,103152,9003,103172,9001,103173,9003,103174,9001,103175,9001,103176,9003,103177,9003,103178,9001,103179,9001,103180,9003,103181,9003,103182,9001,
103183,9001,103184,9003,103185,9003,103228,9001,103229,9001,103230,9003,103231,9003,103250,9001,103251,9003,103252,9001,103253,9003,103260,9001,103261,9001,103262,9003,103263,9003,103270,9001,103271,9001,103272,9003,103273,9003,103274,9001,103275,9001,103276,9003,103277,9003,103278,9001,103279,9001,103280,9003,103281,9003,103282,9001,103283,9001,103284,9003,103285,9003,103286,9001,103287,9003,103288,9001,103289,9003,103290,9001,103291,9003,103292,9001,103293,9001,103294,9003,103295,9003,103296,9001,
103297,9001,103298,9003,103299,9003,103376,9003,103377,9001,103378,9001,103379,9003,103380,9003,103393,9001,103394,9001,103395,9003,103396,9003,103472,9001,103473,9002,103474,9001,103475,9003,103482,9001,103483,9003,103484,9001,103485,9003,103500,9001,103501,9003,103502,9001,103503,9001,103504,9002,103505,9002,103506,9001,103507,9001,103508,9003,103509,9003,103510,9001,103511,9001,103512,9003,103513,9003,103514,9001,103515,9003,103516,9001,103517,9003,103518,9001,103519,9003,103520,9001,103521,9002,
103522,9001,103523,9001,103524,9003,103525,9003,103526,9001,103527,9003,103561,9003,103562,9003,103563,9001,103564,9001,103565,9003,103566,9003,103567,9001,103568,9001,103569,9003,103570,9003,103585,9003,103695,9003,104020,9102,104139,9105,104140,9105,104223,9102,104286,9102,104287,9102,104304,9102,104305,9102,104896,9102]},b=function(){function a(){}a.bC=function(d){!1===a.ti&&a.ao();var b=a.YS(d);if(-1==b){var e=a.js(d);e!=d&&(b=a.bC(e))}return b};a.YS=function(d){return void 0!==a.cs[d]?a.cs[d]:
-1};a.RM=function(d){!1===a.ti&&a.ao();var b=a.Dz(d);if(1E38==b){var e=a.js(d);e!=d&&(b=a.Dz(e));if(1E38==b)return 1E-10}return b};a.YO=function(d){if(void 0!==a.Un[d])return!0;var b=a.js(d);return b!=d&&void 0!==a.Un[b]?!0:!1};a.aP=function(d){if(void 0!==a.Fh[d])return!0;var b=a.js(d);return b!=d&&void 0!==a.Fh[b]?!0:!1};a.Dz=function(d){!1===a.ti&&a.ao();return void 0!==a.Un[d]?a.Un[d]:void 0!==a.Fh[d]?a.Fh[d]:1E38};a.eU=function(d){!1===a.ti&&a.ao();return void 0!==a.ew[d]?a.ew[d]:d};a.js=function(d){!1===
a.ti&&a.ao();return void 0!==a.Mw[d]?a.Mw[d]:d};a.ao=function(){for(var d=p,b,e=0;e<d.pcsid.length;e+=2)a.Fh[d.pcsid[e]]=d.pcstol[2*d.pcsid[e+1]+1];for(e=0;e<d.pcsidc.length;e+=1){b=d.pcsidc[e];for(var h=b[0];h<=b[1];h++)a.Fh[h]=d.pcstol[2*b[2]+1]}for(e=0;e<d.gcsid.length;e+=2)a.Un[d.gcsid[e]]=d.gcstol[2*d.gcsid[e+1]+1];for(e=0;e<d.gcsidc.length;e+=1)for(b=d.gcsidc[e],h=b[0];h<=b[1];h++)a.Fh[h]=d.gcstol[2*b[2]+1];for(e=0;e<g.c.length;e+=1)for(b=g.c[e],h=b[0];h<=b[1];h++)a.cs[h]=b[2];for(e=0;e<g.nc.length;e+=
2)a.cs[g.nc[e]]=g.nc[e+1];g=null;for(e=0;e<d.newtoold.length;e+=2)a.ew[d.newtoold[e+1]]=d.newtoold[e],a.Mw[d.newtoold[e]]=d.newtoold[e+1];p=null;a.ti=!0};a.ti=!1;a.Un=[];a.Fh=[];a.ew=[];a.Mw=[];a.cs=[];return a}();c.ks=b})(t||(t={}));(function(c){function p(a){return 0===a.length?'""':'"'==a[0]||"."==a[0]||"0"<=a[0]&&"9">=a[0]?a:'"'+a.trim()+'"'}var g=[],b=function(){function a(){}a.TM=function(d){try{for(var b=0;b<g.length;b++)if(g[b].wkttext===d)return g[b].unit;for(var e,h=b="",l=!1,k=0;k<d.length;k++){var m=
d[k];!0===l?'"'==m?'"'==d[k+1]?b+=m:l=!1:b+=m:/[\s]/.test(m)||(","==m?(h=""!==b?h+(p(b)+","):h+",",b=""):")"==m||"]"==m?(h=""!==b?h+(p(b)+"]}"):h+"]}",b=""):"("==m||"["==m?(h+='{ "entity": "'+b.toUpperCase().trim()+'", "values":[',b=""):'"'==m?(l=!0,b=""):b+=m)}e=JSON.parse(h);var r=a.Bz(e);if(null===r)return null;e=null;for(m=0;m<r.values.length;m++)if("object"===typeof r.values[m]&&"UNIT"===r.values[m].entity){e=r.values[m];break}if(null===e)return null;var q=c.ic.DL("GEOGCS"===r.entity?1:0,e.values[1],
e.values[2]);g.push({wkttext:d,unit:q});10<g.length&&g.shift();return q}catch(n){return null}};a.Bz=function(d){if(null===d)return null;if("GEOGCS"===d.entity||"PROJCS"===d.entity)return d;for(var b=[],e=0;e<d.values.length;e++)if("object"===typeof d.values[e]&&void 0!==d.values[e].entity){if("GEOGCS"===d.values[e].entity||"PROJCS"==d.values[e].entity)return d.values[e];b.push(d.values[e])}for(d=0;d<b.length;d++)if(e=a.Bz(b[d]),null!==e)return e;return null};a.SM=function(a){var b=-1;if(null!=a&&
0<a.length){var e,h;e=a.indexOf("PROJCS");if(0<=e){var c=0;e=a.lastIndexOf("UNIT");if(0<=e&&(e=a.indexOf(",",e+4),0<e&&(e++,h=a.indexOf("]",e+1),0<h)))try{c=parseFloat(a.substring(e,h))}catch(m){c=0}0<c&&(b=.001/c)}else if(e=a.indexOf("GEOGCS"),0<=e){var k=0,c=0;e=a.indexOf("SPHEROID",e+6);if(0<e&&(e=a.indexOf(",",e+8),0<e)){e++;h=a.indexOf(",",e+1);if(0<h)try{k=parseFloat(a.substring(e,h))}catch(m){k=0}if(0<k&&(e=a.indexOf("UNIT",h+1),0<=e&&(e=a.indexOf(",",e+4),0<e&&(e++,h=a.indexOf("]",e+1),0<
h))))try{c=parseFloat(a.substring(e,h))}catch(m){c=0}}0<k&&0<c&&(b=.001/(k*c))}}return b};return a}();c.lA=b})(t||(t={}));(function(c){(function(c){c[c.NONE=0]="NONE";c[c.LINEAR=1]="LINEAR";c[c.ANGULAR=2]="ANGULAR"})(c.zH||(c.zH={}));(function(c){c[c.enumFloat=0]="enumFloat";c[c.enumDouble=1]="enumDouble";c[c.enumInt32=2]="enumInt32";c[c.enumInt64=3]="enumInt64";c[c.enumInt8=4]="enumInt8";c[c.enumInt16=5]="enumInt16"})(c.nI||(c.nI={}));(function(c){c[c.POSITION=0]="POSITION";c[c.Z=1]="Z";c[c.M=2]=
"M";c[c.ID=3]="ID";c[c.NORMAL=4]="NORMAL";c[c.TEXTURE1D=5]="TEXTURE1D";c[c.TEXTURE2D=6]="TEXTURE2D";c[c.TEXTURE3D=7]="TEXTURE3D";c[c.ID2=8]="ID2";c[c.MAXSEMANTICS=10]="MAXSEMANTICS"})(c.xf||(c.xf={}));var p=function(){function g(b,a){this.dr=this.ke=null;this.tp=this.Aa=0;this.Vg=this.Jf=null;this.tk=0;if(void 0!==a){this.Aa=a.Aa;this.tp=a.tp;this.Jf=a.Jf.slice(0);this.Vg=a.Vg.slice(0);this.tk=a.tk;this.dr=[];for(var d=0,f=0;f<this.Aa;f++)this.dr[f]=d,d+=g.Wa(this.Jf[f]);this.tp=d;this.ke=[];for(f=
0;f<this.Aa;f++)for(var d=g.Wa(this.Hd(f)),e=g.ve(this.Hd(f)),h=0;h<d;h++)this.ke[this.dr[f]+h]=e}else this.tp=this.Aa=0}g.prototype.Hd=function(b){if(0>b||b>this.Aa)throw c.g.N();return this.Jf[b]};g.prototype.zf=function(b){return this.Vg[b]};g.KN=function(b){return g.$b[b]};g.Qh=function(b){return g.Cc[b]};g.ze=function(b){return g.Bd[b]};g.Fh=function(b){return g.ze(g.Qh(b))*g.Wa(b)};g.Wa=function(b){return g.ob[b]};g.Wf=function(b){return 2>b};g.ti=function(b){return g.Wf(g.Qh(b))};g.prototype.hasAttribute=
function(b){return 0<=this.Vg[b]};g.prototype.TC=function(){return this.hasAttribute(1)};g.ve=function(b){return g.V[b]};g.prototype.YN=function(b){return this.dr[b]};g.kD=function(b,a){return g.V[b]===a};g.Zg=function(b){if(4==b)return 2;if(8==b)return 3;throw c.g.N();};g.prototype.lc=function(b){return this===b};g.prototype.ij=function(){for(var b=c.I.jg(this.Jf[0]),a=1;a<this.Aa;a++)b=c.I.jg(this.Jf[a],b);return b};g.prototype.ej=function(b){return this.dr[b]};g.prototype.gc=function(){return this.tk};
g.prototype.Fd=function(b){return this.Jf[b]};g.V=[0,0,NaN,0,0,0,0,0,0];g.$b=[1,1,1,0,2,1,1,1,0];g.Cc=[1,1,1,2,0,0,0,0,2];g.Bd=[4,8,4,8,1,2];g.ob=[2,1,1,1,3,1,2,3,2];return g}();c.pa=p})(t||(t={}));(function(c){function p(a,b,e,h){var c=a.hd,k=a.e+b+1;1===e?h=5<=c[k]:2===e?h=5<c[k]||5==c[k]&&(h||0>k||void 0!==c[k+1]||c[k-1]&1):3===e?h=h||void 0!==c[k]||0>k:(h=!1,0!==e&&g("!Big.RM!"));if(1>k||!c[0])h?(a.e=-b,a.hd=[1]):a.hd=[a.e=0];else{c.length=k--;if(h)for(;9<++c[k];)c[k]=0,k--||(++a.e,c.unshift(1));
for(k=c.length;!c[--k];c.pop());}}function g(a){a=Error(a);a.name="BigError";throw a;}var b=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,a=function(){function a(f){if(f instanceof a)this.Dd=f.Dd,this.e=f.e,this.hd=f.hd.slice();else{var e,h,c;0===f&&0>1/f?f="-0":b.test(f+="")||g(NaN);this.Dd="-"==f.charAt(0)?(f=f.slice(1),-1):1;-1<(e=f.indexOf("."))&&(f=f.replace(".",""));0<(h=f.search(/e/i))?(0>e&&(e=h),e+=+f.slice(h+1),f=f.substring(0,h)):0>e&&(e=f.length);for(h=0;"0"==f.charAt(h);h++);if(h==(c=f.length))this.hd=
[this.e=0];else{for(;"0"==f.charAt(--c););this.e=e-h-1;this.hd=[];for(e=0;h<=c;this.hd[e++]=+f.charAt(h++));}}}a.prototype.abs=function(){var b=new a(this);b.Dd=1;return b};a.prototype.CB=function(){var b=0,e=this.hd,h=(b=new a(b)).hd,c=this.Dd,k=b.Dd,m=this.e,g=b.e;if(!e[0]||!h[0])return e[0]?c:h[0]?-k:0;if(c!=k)return c;b=0>c;if(m!=g)return m>(g^b)?1:-1;c=-1;for(k=(m=e.length)<(g=h.length)?m:g;++c<k;)if(e[c]!=h[c])return e[c]>(h[c]^b)?1:-1;return m==g?0:m>(g^b)?1:-1};a.prototype.UB=function(b){var e=
this.hd,h=(b=new a(b)).hd,c=this.Dd==b.Dd?1:-1,k=a.Cc;(k!==~~k||0>k||1E6<k)&&g("!Big.DP!");if(!e[0]||!h[0])return e[0]==h[0]&&g(NaN),h[0]||g(c/0),new a(0*c);var m,r,q,n,u=h.slice(),v=m=h.length,w=e.length,x=e.slice(0,m),t=x.length,D=b,y=D.hd=[],z=0,A=k+(D.e=this.e-b.e)+1;D.Dd=c;c=0>A?0:A;for(u.unshift(0);t++<m;x.push(0));do{for(r=0;10>r;r++){if(m!=(t=x.length))q=m>t?1:-1;else for(n=-1,q=0;++n<m;)if(h[n]!=x[n]){q=h[n]>x[n]?1:-1;break}if(0>q){for(b=t==m?h:u;t;){if(x[--t]<b[t]){for(n=t;n&&!x[--n];x[n]=
9);--x[n];x[t]+=10}x[t]-=b[t]}for(;!x[0];x.shift());}else break}y[z++]=q?r:++r;x[0]&&q?x[t]=e[v]||0:x=[e[v]]}while((v++<w||void 0!==x[0])&&c--);y[0]||1==z||(y.shift(),D.e--);z>A&&p(D,k,a.ze,void 0!==x[0]);return D};a.prototype.oO=function(){return 0<this.CB()};a.prototype.xP=function(){return 0>this.CB()};a.prototype.mr=function(b){var e,h,c=this.Dd,k=(b=new a(b)).Dd;if(c!=k)return b.Dd=-k,this.KE(b);var m=this.hd.slice();h=this.e;var g=b.hd,q=b.e;if(!m[0]||!g[0])return g[0]?(b.Dd=-k,b):new a(m[0]?
this:0);if(c=h-q){(e=0>c)?(c=-c,h=m):(q=h,h=g);h.reverse();for(k=c;k--;h.push(0));h.reverse()}else for(h=((e=m.length<g.length)?m:g).length,c=k=0;k<h;k++)if(m[k]!=g[k]){e=m[k]<g[k];break}e&&(h=m,m=g,g=h,b.Dd=-b.Dd);if(0<(k=(h=g.length)-(e=m.length)))for(;k--;m[e++]=0);for(k=e;h>c;){if(m[--h]<g[h]){for(e=h;e&&!m[--e];m[e]=9);--m[e];m[h]+=10}m[h]-=g[h]}for(;0==m[--k];m.pop());for(;0==m[0];)m.shift(),--q;m[0]||(b.Dd=1,m=[q=0]);b.hd=m;b.e=q;return b};a.prototype.KE=function(b){var e,h=this.Dd;e=(b=new a(b)).Dd;
if(h!=e)return b.Dd=-e,this.mr(b);e=this.e;var c=this.hd,k=b.e,m=b.hd;if(!c[0]||!m[0])return m[0]?b:new a(c[0]?this:0*h);c=c.slice();if(h=e-k){0<h?(k=e,e=m):(h=-h,e=c);for(e.reverse();h--;e.push(0));e.reverse()}0>c.length-m.length&&(e=m,m=c,c=e);h=m.length;for(e=0;h;)e=(c[--h]=c[h]+m[h]+e)/10|0,c[h]%=10;e&&(c.unshift(e),++k);for(h=c.length;0==c[--h];c.pop());b.hd=c;b.e=k;return b};a.prototype.pow=function(b){var e=this,h=new a(1),c=h,k=0>b;(b!==~~b||-1E6>b||1E6<b)&&g("!pow!");for(b=k?-b:b;;){b&1&&
(c=c.Vp(e));b>>=1;if(!b)break;e=e.Vp(e)}return k?h.UB(c):c};a.prototype.round=function(b,e){var h=this;null==b?b=0:(b!==~~b||0>b||1E6<b)&&g("!round!");p(h=new a(h),b,null==e?a.ze:e);return h};a.prototype.sqrt=function(){var b,e,h;e=this.hd;b=this.Dd;h=this.e;var c=new a("0.5");if(!e[0])return new a(this);0>b&&g(NaN);b=Math.sqrt(this.toString());0==b||b==1/0?(b=e.join(""),b.length+h&1||(b+="0"),e=new a(Math.sqrt(b).toString()),e.e=((h+1)/2|0)-(0>h||h&1)):e=new a(b.toString());b=e.e+(a.Cc+=4);do h=
e,e=c.Vp(h.KE(this.UB(h)));while(h.hd.slice(0,b).join("")!==e.hd.slice(0,b).join(""));p(e,a.Cc-=4,a.ze);return e};a.prototype.Vp=function(b){var e,h=this.hd,c=(b=new a(b)).hd,k=h.length,m=c.length,g=this.e,q=b.e;b.Dd=this.Dd==b.Dd?1:-1;if(!h[0]||!c[0])return new a(0*b.Dd);b.e=g+q;k<m&&(e=h,h=c,c=e,q=k,k=m,m=q);for(e=Array(q=k+m);q--;e[q]=0);for(g=m;g--;){m=0;for(q=k+g;q>g;)m=e[q]+c[g]*h[q-g-1]+m,e[q--]=m%10,m=m/10|0;e[q]=(e[q]+m)%10}m&&++b.e;e[0]||e.shift();for(g=e.length;!e[--g];e.pop());b.hd=e;
return b};a.prototype.toString=function(){var a=this.e,d=this.hd.join(""),b=d.length;if(-7>=a||21<=a)d=d.charAt(0)+(1<b?"."+d.slice(1):"")+(0>a?"e":"e+")+a;else if(0>a){for(;++a;d="0"+d);d="0."+d}else if(0<a)if(++a>b)for(a-=b;a--;d+="0");else a<b&&(d=d.slice(0,a)+"."+d.slice(a));else 1<b&&(d=d.charAt(0)+"."+d.slice(1));return 0>this.Dd&&this.hd[0]?"-"+d:d};a.Cc=20;a.ze=1;return a}();c.Tn=a})(t||(t={}));(function(c){var p=function(){function b(a){this.$e=a}b.prototype.Yp=function(a,d,b){var e=new c.b,
h=new c.b,l=this.$e;b.xd(a,d,function(a,d){l.dc(2*a,e);l.dc(2*d,h);return e.compare(h)})};b.prototype.Lo=function(a){return this.$e.read(2*a+1)};return b}(),g=function(){function b(){}b.Mo=function(a){if(a.s())return!1;var d=a.D();return 1736==d?0==a.Lh()?!1:!0:1607==d?(d=[!1],b.oz(a,!0,d),d[0]):197==d||c.T.Lc(d)&&!a.hD()?!0:!1};b.il=function(a){var d=a.D();if(1736==d)return d=new c.Xa(a.description),a.s()||a.sA(d),d;if(1607==d)return b.oz(a,!1,null);if(197==d)return d=new c.Xa(a.description),a.s()||
d.Uc(a,!1),d;if(c.T.Lc(d)){d=new c.pe(a.description);if(!a.s()&&!a.hD()){var f=new c.Va;a.En(f);d.add(f);a.Bn(f);d.add(f)}return d}if(c.T.Km(d))return null;throw c.g.N();};b.oz=function(a,d,b){null!=b&&(b[0]=!1);var e=null;d||(e=new c.pe(a.description));if(!a.s()){var h=new c.ga(0);h.xb(2*a.ea());for(var l=0,k=a.ea();l<k;l++)if(0<a.Ha(l)&&!a.No(l)){var m=a.Ea(l);h.add(m);m=a.Dc(l)-1;h.add(m)}if(0<h.size){k=new c.Qr;l=a.mc(0);k.sort(h,0,h.size,new p(l));k=new c.b;l.dc(2*h.get(0),k);for(var m=0,g=1,
q=new c.Va,n=new c.b,u=1,v=h.size;u<v;u++)if(l.dc(2*h.get(u),n),n.ub(k))h.get(m)>h.get(u)?(h.set(m,2147483647),m=u):h.set(u,2147483647),g++;else{if(0==(g&1))h.set(m,2147483647);else if(d)return null!=b&&(b[0]=!0),null;k.J(n);m=u;g=1}if(0==(g&1))h.set(m,2147483647);else if(d)return null!=b&&(b[0]=!0),null;if(!d)for(h.xd(0,h.size,function(a,d){return a-d}),u=0,v=h.size;u<v&&2147483647!=h.get(u);u++)a.Rd(h.get(u),q),e.add(q)}}return d?null:e};return b}();c.Gh=g})(t||(t={}));(function(c){var p=function(){function g(){this.lf=
new c.ga(0);this.Kq=new c.ga(0);this.dE=1;this.Pq=NaN}g.prototype.sort=function(b,a,d,f){if(32>d-a)f.Yp(a,d,b);else{var e=!0;try{for(var h=Infinity,c=-Infinity,k=a;k<d;k++){var m=f.Lo(b.get(k));m<h&&(h=m);m>c&&(c=m)}if(this.reset(d-a,h,c,d-a)){for(k=a;k<d;k++){var g=b.get(k),m=f.Lo(g),q=this.lC(m);this.lf.set(q,this.lf.get(q)+1);this.Kq.write(k-a,g)}var n=this.lf.get(0);this.lf.set(0,0);for(var k=1,u=this.lf.size;k<u;k++){var v=this.lf.get(k);this.lf.set(k,n);n+=v}for(k=a;k<d;k++){var g=this.Kq.read(k-
a),m=f.Lo(g),q=this.lC(m),w=this.lf.get(q);b.set(w+a,g);this.lf.set(q,w+1)}e=!1}}catch(x){this.lf.resize(0),this.Kq.resize(0)}if(e)f.Yp(a,d,b);else{k=d=0;for(u=this.lf.size;k<u;k++)e=d,d=this.lf.get(k),d>e&&f.Yp(a+e,a+d,b);100<this.lf.size&&(this.lf.resize(0),this.Kq.resize(0))}}};g.prototype.reset=function(b,a,d,f){if(2>b||d==a)return!1;b=Math.min(g.kI,b);this.lf.xb(b);this.lf.resize(b);this.lf.bh(0,0,this.lf.size);this.dE=a;this.Kq.resize(f);this.Pq=(d-a)/(b-1);return!0};g.prototype.lC=function(b){return c.I.truncate((b-
this.dE)/this.Pq)};g.kI=65536;return g}();c.Qr=p})(t||(t={}));(function(c){var p;(function(a){a[a.enum_line=1]="enum_line";a[a.enum_arc=2]="enum_arc";a[a.enum_dummy=4]="enum_dummy";a[a.enum_concave_dip=8]="enum_concave_dip";a[a.enum_connection=3]="enum_connection"})(p||(p={}));var g=function(){function a(){}a.Js=function(d,b,f,m,g,q){var n=new a;n.Fl=new c.b;n.Ql=new c.b;n.Kt=new c.b;n.Fl.J(d);n.Ql.J(b);n.Kt.J(f);n.qn=m;n.Qg=g;n.Tg=q;return n};a.Oa=function(d,b,f,m){var g=new a;g.Fl=new c.b;g.Ql=
new c.b;g.Kt=new c.b;g.Fl.J(d);g.Ql.J(b);g.Kt.Dh();g.qn=4;g.Qg=f;g.Tg=m;return g};return a}(),b=function(){function a(d,b,f,e,c,g){this.Ht=null;this.ua=0;this.Ex=d;this.vE=this.tE=0;this.Da=b;this.Pi=f;this.Bj=e;this.lp=c;this.Xb=g}a.prototype.next=function(){for(var a=new c.Va;;){if(this.ua==this.Ex.F())return null;this.Ex.Rd(this.ua,a);this.ua++;if(!a.s())break}var d=!1;null==this.Ht&&(this.tE=a.lk(),this.vE=a.mk(),this.Ht=f.buffer(a,this.Da,this.Pi,this.Bj,this.lp,this.Xb),d=!0);var b;this.ua<
this.Ex.F()?(b=new c.Ka,this.Ht.copyTo(b)):b=this.Ht;if(!d){var d=new c.Ag,e=a.lk()-this.tE,a=a.mk()-this.vE;d.Nn(e,a);b.Oe(d)}return b};a.prototype.ya=function(){return 0};return a}(),a=function(){function a(d,b){this.Ma=d;this.ua=0;this.Xo=b}a.prototype.next=function(){var a=this.Ma.U;if(this.ua<a.ea()){var d=this.ua;this.ua++;if(!a.No(d))for(var b=a.Fa(a.Dc(d)-1);this.ua<a.ea();){var f=a.Fa(a.Ea(this.ua));if(a.No(this.ua))break;if(f!=b)break;b=a.Fa(a.Dc(this.ua)-1);this.ua++}if(1==this.ua-d)return this.Ma.jB(this.Ma.U,
d,this.Xo);b=new c.Xa(this.Ma.U.description);b.Zj(this.Ma.U,d,!0);for(d+=1;d<this.ua;d++)b.xs(this.Ma.U,d,0,a.bt(d),!1);return this.Ma.jB(b,0,this.Xo)}return null};a.prototype.ya=function(){return 0};return a}(),d=function(){function a(d){this.Ma=d;this.ua=0}a.prototype.next=function(){var a=this.Ma.U;if(this.ua<a.ea()){var d=this.ua;a.no(this.ua);for(this.ua++;this.ua<a.ea()&&!(0<a.no(this.ua));)this.ua++;return 0==d&&this.ua==a.ea()?this.Ma.Gv(a,0,a.ea()):this.Ma.Gv(a,d,this.ua)}return null};a.prototype.ya=
function(){return 0};return a}(),f=function(){function f(a){this.Uq=this.St=this.Vq=this.sd=null;this.Jd=[];this.Xb=a;this.hb=this.vt=this.QP=this.Da=this.vx=this.ir=this.ka=0;this.sx=this.Bj=-1;this.Xo=!0}f.buffer=function(a,d,b,m,g,q){if(null==a)throw c.g.N();if(0>m)throw c.g.N();if(a.s())return new c.Ka(a.description);var n=new c.i;a.cd(n);0<d&&n.P(d,d);q=new f(q);q.Pi=b;q.U=a;q.ka=c.Ia.zd(b,n,!0);q.ir=c.Ia.zd(null,n,!0);q.Da=d;q.QP=a.D();0>=g&&(g=96);q.hb=Math.abs(q.Da);q.vt=0!=q.hb?1/q.hb:0;
isNaN(m)||0==m?m=1E-5*q.hb:m>.5*q.hb&&(m=.5*q.hb);12>g&&(g=12);a=Math.abs(d)*(1-Math.cos(Math.PI/g));a>m?m=a:(a=Math.PI/Math.acos(1-m/Math.abs(d)),a<g-1&&(g=c.I.truncate(a),12>g&&(g=12,m=Math.abs(d)*(1-Math.cos(Math.PI/g)))));q.Bj=m;q.lp=g;q.vx=Math.min(q.ir,.25*m);return q.kB()};f.prototype.Rs=function(){if(null==this.sd)this.sd=[];else if(0!==this.sd.length)return;var a=this.oB(),a=c.I.truncate((a+3)/4),d=.5*Math.PI/a;this.sx=d;for(var b=0;b<4*a;b++)this.sd.push(null);for(var f=Math.cos(d),d=Math.sin(d),
e=c.b.Oa(0,1),b=0;b<a;b++)this.sd[b+0*a]=c.b.Oa(e.y,-e.x),this.sd[b+1*a]=c.b.Oa(-e.x,-e.y),this.sd[b+2*a]=c.b.Oa(-e.y,e.x),this.sd[b+3*a]=e,e=c.b.Oa(e.x,e.y),e.Dr(f,d)};f.prototype.kB=function(){var a=this.U.D();if(c.T.Lc(a))return a=new c.Xa(this.U.description),a.Bc(this.U,!0),this.U=a,this.kB();if(this.Da<=this.ka)if(c.T.UO(a)){if(0>=this.Da&&(a=new c.i,this.U.o(a),a.aa()<=2*-this.Da||a.ba()<=2*this.Da))return new c.Ka(this.U.description)}else return new c.Ka(this.U.description);switch(this.U.D()){case 33:return this.sK();
case 550:return this.rK();case 1607:return this.uK();case 1736:return this.tK();case 197:return this.pK();default:throw c.g.wa();}};f.prototype.uK=function(){if(this.lD(this.U)){var d=new c.Va;this.U.Rd(0,d);var b=new c.i;this.U.o(b);d.hc(b.Af());return this.Ds(d)}this.U=this.UQ(this.U);d=new a(this,this.Xo);return c.wi.local().$(d,this.Pi,this.Xb).next()};f.prototype.tK=function(){if(0==this.Da)return this.U;var a=c.$r.local();this.Rs();this.U=a.$(this.U,null,!1,this.Xb);if(0>this.Da){var b=this.U,
b=this.Gv(b,0,b.ea());return a.$(b,this.Pi,!1,this.Xb)}if(this.lD(this.U))return a=new c.Va,this.U.Rd(0,a),b=new c.i,this.U.o(b),a.hc(b.Af()),this.Ds(a);a=new d(this);return c.wi.local().$(a,this.Pi,this.Xb).next()};f.prototype.Gv=function(a,d,b){for(var m=new c.Ka(a.description);d<b;d++)if(!(1>a.Ha(d))){var g=a.no(d),q=new c.i;a.Ti(d,q);if(0<this.Da)if(0<g)if(this.mD(a,d))g=new c.Va,a.Rd(a.Ea(d),g),g.hc(q.Af()),this.ts(m,g);else{var n=g=new c.Xa(a.description),n=c.Sr.pD(this.U,d)||2==this.sm(this.U,
d,n,!0,1)?this.iB(a,d):this.rm(g);m.add(n,!1)}else{if(!(q.aa()+this.ka<=2*this.hb||q.ba()+this.ka<=2*this.hb||(n=g=new c.Xa(a.description),this.sm(this.U,d,n,!0,1),g.s()))){var u=new c.i;u.K(q);u.P(this.hb,this.hb);n.vs(u);n=this.rm(g);q=1;for(g=n.ea();q<g;q++)m.Zj(n,q,!0)}}else if(0<g){if(!(q.aa()+this.ka<=2*this.hb||q.ba()+this.ka<=2*this.hb||(n=g=new c.Xa(a.description),this.sm(this.U,d,n,!0,-1),g.s())))for(u=new c.i,n.cd(u),u.P(this.hb,this.hb),n.vs(u),n=this.rm(g),q=1,g=n.ea();q<g;q++)m.Zj(n,
q,!0)}else for(n=g=new c.Xa(a.description),this.sm(this.U,d,n,!0,-1),n=this.rm(g),q=0,g=n.ea();q<g;q++)m.Zj(n,q,!0)}if(0<this.Da)return 1<m.ea()?m=this.rm(m):f.Id(m);a=new c.i;m.cd(a);if(m.s())return f.Id(m);a.P(this.hb,this.hb);m.vs(a);m=this.rm(m);a=new c.Ka(m.description);q=1;for(g=m.ea();q<g;q++)a.Zj(m,q,!1);return f.Id(a)};f.prototype.sK=function(){return this.Ds(this.U)};f.prototype.Ds=function(a){var d=new c.Ka(this.U.description);this.ts(d,a);return this.pS(d)};f.prototype.rK=function(){var a=
new b(this.U,this.Da,this.Pi,this.Bj,this.lp,this.Xb);return c.wi.local().$(a,this.Pi,this.Xb).next()};f.prototype.pK=function(){var a=new c.Ka(this.U.description);if(0>=this.Da){if(0==this.Da)a.Uc(this.U,!1);else{var d=new c.Uj;this.U.Ep(d);d.P(this.Da,this.Da);a.Uc(d,!1)}return a}a.Uc(this.U,!1);this.U=a;return this.iB(a,0)};f.prototype.iB=function(a,d){this.Rs();for(var b=new c.Ka(a.description),m=new c.b,g=new c.b,q=new c.b,n=new c.b,u=new c.b,v=new c.b,w=new c.b,x=new c.b,p=a.Ha(d),t=a.Ea(d),
y=0,z=a.Ha(d);y<z;y++){a.w(t+y,g);a.w(t+(y+1)%p,n);a.w(t+(y+2)%p,v);w.pc(n,g);if(0==w.length())throw c.g.wa();w.st();w.normalize();w.scale(this.hb);m.add(w,g);q.add(w,n);0==y?b.Mr(m):b.Lm(m);b.Lm(q);x.pc(v,n);if(0==x.length())throw c.g.wa();x.st();x.normalize();x.scale(this.hb);u.add(x,n);this.MA(b,n,q,u,!1)}return f.Id(b)};f.prototype.jB=function(a,d,b){this.Rs();if(1>a.Ha(d))return null;if(this.mD(a,d)&&0<this.Da){b=new c.Va;a.Rd(a.Ea(d),b);var f=new c.i;a.Ti(d,f);b.hc(f.Af());return this.Ds(b)}f=
new c.Xa(a.description);if(a.No(d))this.sm(a,d,f,b,1),this.sm(a,d,f,b,-1);else{var e=new c.Xa(a.description);e.Zj(a,d,!1);e.xs(a,d,0,a.bt(d),!1);this.sm(e,0,f,b,1)}return this.rm(f)};f.prototype.rm=function(a){return c.Of.Pj(a,this.ir,!0,!0,this.Xb)};f.prototype.oB=function(){if(0==this.Bj)return this.lp;var a=1-this.Bj*Math.abs(this.vt),d;-1>a?d=4:d=2*Math.PI/Math.acos(a)+.5;4>d?d=4:d>this.lp&&(d=this.lp);return c.I.truncate(d)};f.prototype.MA=function(a,d,b,f,e){this.Rs();var g=new c.b;g.pc(b,d);
g.scale(this.vt);var n=new c.b;n.pc(f,d);n.scale(this.vt);g=Math.atan2(g.y,g.x)/this.sx;0>g&&(g=this.sd.length+g);g=this.sd.length-g;n=Math.atan2(n.y,n.x)/this.sx;0>n&&(n=this.sd.length+n);n=this.sd.length-n;n<g&&(n+=this.sd.length);var u=c.I.truncate(n),n=c.I.truncate(Math.ceil(g)),g=new c.b;g.J(this.sd[n%this.sd.length]);g.Er(this.hb,d);var v=10*this.ka;g.sub(b);g.length()<v&&(n+=1);g.J(this.sd[u%this.sd.length]);g.Er(this.hb,d);g.sub(f);g.length()<v&&--u;b=u-n;b++;u=0;for(n%=this.sd.length;u<b;u++,
n=(n+1)%this.sd.length)g.J(this.sd[n]),g.Er(this.hb,d),a.Lm(g);e&&a.Lm(f)};f.prototype.sm=function(a,d,b,f,e){var q=new c.ed,n=q.PJ(a,d);q.wo(this.vx,!1,!1);if(2>q.F(n)){if(0>e)return 1;e=a;q=new c.Va;e.Rd(e.Ea(d),q);this.ts(b,q);return 1}var u=q.Fa(q.Cb(q.Ub(n))),v=new c.Ag;v.Nn(-u.x,-u.y);q.Oe(v);if(f&&(this.LM(q,n,e),2>q.F(n))){if(0>e)return 1;e=a;q=new c.Va;e.Rd(e.Ea(d),q);this.ts(b,q);return 1}this.Jd.length=0;var w=q.Ub(n);d=q.Cb(w);var x=1==e?q.Ua(d):q.X(d);a=1==e?q.X(d):q.Ua(d);var p=!0;f=
new c.b;for(var n=new c.b,t=new c.b,y=new c.b,z=new c.b,A=new c.b,B=new c.b,C=new c.b,E=new c.b,G=new c.b,H=this.hb,w=q.Ha(w),I=0;I<w;I++)q.w(a,n),p&&(q.w(d,f),q.w(x,t),C.pc(f,t),C.normalize(),G.wD(C),G.scale(H),y.add(G,f)),B.pc(n,f),B.normalize(),E.wD(B),E.scale(H),z.add(f,E),x=C.Ai(B),p=C.ml(B),0>x||0>p&&0==x?this.Jd.push(g.Js(y,z,f,2,this.Jd.length+1,this.Jd.length-1)):y.ub(z)||(this.Jd.push(g.Oa(y,f,this.Jd.length+1,this.Jd.length-1,"dummy")),this.Jd.push(g.Oa(f,z,this.Jd.length+1,this.Jd.length-
1,"dummy"))),A.add(n,E),this.Jd.push(g.Js(z,A,f,1,this.Jd.length+1,this.Jd.length-1)),y.J(A),G.J(E),t.J(f),f.J(n),C.J(B),x=d,d=a,p=!1,a=1==e?q.X(d):q.Ua(d);this.Jd[this.Jd.length-1].Qg=0;this.Jd[0].Tg=this.Jd.length-1;this.WQ(b);v.Nn(u.x,u.y);b.YA(v,b.ea()-1);return 1};f.prototype.WQ=function(a){for(var d=this.$K(),b=!0,f=d+1,e=d;f!=d;e=f){var c=this.Jd[e],f=-1!=c.Qg?c.Qg:(e+1)%this.Jd.length;0!=c.qn&&(b&&a.Mr(c.Fl),2==c.qn?this.MA(a,c.Kt,c.Fl,c.Ql,!0):a.Lm(c.Ql),b=!1)}};f.prototype.$K=function(){null==
this.Uq&&(this.Uq=[null,null,null,null,null,null,null,null,null]);for(var a=0,d=0,b=this.Jd.length;d<b;){var f=this.Jd[d];if(0!=(f.qn&3)){a=d;break}d=f.Qg}b=a+1;for(d=a;b!=a;d=b){for(var f=this.Jd[d],b=f.Qg,e=1,g=null;b!=d;){g=this.Jd[b];if(0!=(g.qn&3))break;b=g.Qg;e++}1!=e&&1==(f.qn&g.qn)&&(null==this.Vq&&(this.Vq=new c.yb,this.St=new c.yb),this.Vq.dd(f.Fl),this.Vq.vd(f.Ql),this.St.dd(g.Fl),this.St.vd(g.Ql),1==this.Vq.Ga(this.St,this.Uq,null,null,this.ir)&&(f.Ql.J(this.Uq[0]),g.Fl.J(this.Uq[0]),
f.Qg=b,g.Tg=d))}return a};f.prototype.qt=function(a,d,b){var f=new c.b;f.pc(b,a);b=f.length();b=this.hb*this.hb-b*b*.25;if(0<b){b=Math.sqrt(b);f.normalize();f.Jp();var e=new c.b;e.pc(d,a);if(e.ml(f)+b>=this.hb)return!0}return!1};f.prototype.LM=function(a,d,b){for(var f=0;1>f;f++){var e=!1,g=a.Ub(d),n=a.Ha(g);if(0==n)break;var u=n;if(3>n)break;!a.vc(g)&&(u=n-1);for(var g=a.Cb(g),n=0<b?a.Ua(g):a.X(g),v=0<b?a.X(g):a.Ua(g),w=n,x=!0,p=new c.b,t=new c.b,y=new c.b,z=new c.b,A=new c.b,B=c.b.Oa(0,0),C=new c.b,
E=new c.b,G=new c.b,H=new c.b,I=this.hb,K=0,N=0;N<u;){a.w(v,t);x&&(a.w(g,p),a.w(n,y),w=n);E.pc(p,y);E.normalize();C.pc(t,p);C.normalize();if(w==v)break;var J=E.Ai(C),L=E.ml(C),T=!0;0>J||0>L&&0==J||!this.qt(y,p,t)||(B.J(t),T=!1,++K,e=!0);if(T){if(0<K)for(;;){J=0<b?a.Ua(w):a.X(w);if(J==g)break;a.w(J,z);if(this.qt(z,y,B))y.J(z),w=J,T=!1,++K;else{J!=v&&this.qt(z,y,t)&&this.qt(z,p,t)&&(y.J(z),w=J,T=!1,++K);break}}if(!T)continue;if(0<K){w=0<b?a.Ua(n):a.X(n);for(x=1;x<K;x++)T=0<b?a.Ua(w):a.X(w),a.vf(w,!0),
w=T;G.pc(p,y);K=G.length();K=I*I-K*K*.25;K=Math.sqrt(K);I-K>.5*this.Bj?(A.add(y,p),A.scale(.5),G.normalize(),G.Jp(),H.J(G),H.scale(I-K),A.add(H),a.Yi(n,A)):a.vf(n,!0);K=0}y.J(p);w=g}p.J(t);n=g;g=v;v=0<b?a.X(g):a.Ua(g);N++;x=!1}if(0<K){w=0<b?a.Ua(n):a.X(n);for(x=1;x<K;x++)T=0<b?a.Ua(w):a.X(w),a.vf(w,!0),w=T;A.add(y,p);A.scale(.5);G.pc(p,y);K=G.length();K=I*I-K*K*.25;K=Math.sqrt(K);G.normalize();G.Jp();H.J(G);H.scale(I-K);A.add(H);a.Yi(n,A)}a.wo(this.vx,!1,!1);if(!e)break}};f.prototype.mD=function(a,
d){if(1==a.Ha(d))return!0;var b=new c.i;a.Ti(d,b);return Math.max(b.aa(),b.ba())<.5*this.Bj?!0:!1};f.prototype.lD=function(a){var d=new c.i;a.o(d);return Math.max(d.aa(),d.ba())<.5*this.Bj?!0:!1};f.prototype.UQ=function(a){a=c.Rz.local().$(a,.25*this.Bj,!1,this.Xb);for(var d=0,b=0,f=a.ea();b<f;b++)d=Math.max(a.Ha(b),d);if(32>d)return this.Xo=!1,a;this.Xo=!0;return c.Of.Pj(a,this.ir,!1,!0,this.Xb)};f.prototype.ts=function(a,d){var b=d.w();if(null!=this.sd&&0!==this.sd.length){var f=new c.b;f.J(this.sd[0]);
f.Er(this.hb,b);a.Mr(f);for(var e=1,g=this.sd.length;e<g;e++)f.J(this.sd[e]),f.Er(this.hb,b),a.Lm(f)}else for(var e=this.oB(),f=c.I.truncate((e+3)/4),e=.5*Math.PI/f,g=Math.cos(e),n=Math.sin(e),u=new c.b,v=3;0<=v;v--)switch(u.ma(0,this.hb),v){case 0:for(e=0;e<f;e++)a.vj(u.x+b.x,u.y+b.y),u.Dr(g,n);break;case 1:for(e=0;e<f;e++)a.vj(-u.y+b.x,u.x+b.y),u.Dr(g,n);break;case 2:for(e=0;e<f;e++)a.vj(-u.x+b.x,-u.y+b.y),u.Dr(g,n);break;default:for(a.Uy(u.y+b.x,-u.x+b.y),e=1;e<f;e++)u.Dr(g,n),a.vj(u.y+b.x,-u.x+
b.y)}};f.Id=function(a){a.hg(1,0);return a};f.prototype.pS=function(a){a.hg(2,this.ka);a.hl();return a};return f}();c.SG=f})(t||(t={}));(function(c){var p=function(){function g(b){this.Qb=b;this.a=new c.ed;this.ug=new c.ga(0)}g.prototype.oo=function(b,a,d){switch(a){case 0:if(b.v<d&&b.B<=d)break;else return b.v>=d?1:-1;case 1:if(b.C<d&&b.G<=d)break;else return b.C>=d?1:-1;case 2:if(b.v>=d&&b.B>d)break;else return b.B<=d?1:-1;case 3:if(!(b.C>=d&&b.G>d))return b.G<=d?1:-1}return 0};g.prototype.bL=function(b,
a){return 1736==b.D()?this.cL(b,a):this.dL(b)};g.prototype.cL=function(b,a){if(0==this.Qb.aa()||0==this.Qb.ba())return b.Pa();var d=new c.i;b.cd(d);this.U=this.a.Eb(b);var f=new c.i,e=new c.i,h=new c.b,l=new c.b,k=[0,0,0,0,0,0,0,0,0],m=[0,0,0,0,0,0,0,0,0];new c.zg;var g=new c.yb,q=new c.ga(0);q.xb(Math.min(100,b.F()));for(var n=!1,u=0;!n&&4>u;u++){var v=!1,w=0!=(u&1),x=0;switch(u){case 0:x=this.Qb.v;v=d.v<=x&&d.B>=x;break;case 1:x=this.Qb.C;v=d.C<=x&&d.G>=x;break;case 2:x=this.Qb.B;v=d.v<=x&&d.B>=
x;break;case 3:x=this.Qb.G,v=d.C<=x&&d.G>=x}if(v)for(n=!0,v=this.a.Ub(this.U);-1!=v;){var p=-1,t=-1,y=this.a.Cb(v),z=y;do{var A=this.a.bc(z);null==A&&(A=g,this.a.w(z,h),A.dd(h),this.a.w(this.a.X(z),l),A.vd(l));A.o(f);var B=this.oo(f,u,x),C=0,E=-1;if(-1==B){A=A.mt(w,x,k,m);0<A?C=this.a.Lr(z,m,A):C=0;for(var C=C+1,G=z,H=this.a.X(G),A=0;A<C;A++){this.a.w(G,h);this.a.w(H,l);E=this.a.bc(G);null==E&&(E=g,E.dd(h),E.vd(l));E.o(e);E=this.oo(e,u,x);if(-1==E){if(w)E=Math.abs(h.y-x),I=Math.abs(l.y-x),E<I?(h.y=
x,this.a.Yi(G,h)):(l.y=x,this.a.Yi(H,l));else{var E=Math.abs(h.x-x),I=Math.abs(l.x-x);E<I?(h.x=x,this.a.Yi(G,h)):(l.x=x,this.a.Yi(H,l))}E=this.a.bc(G);null==E&&(E=g,E.dd(h),E.vd(l));E.o(e);E=this.oo(e,u,x)}I=p;p=E;-1==t&&(t=p);if(0!=I||1!=p)1==I&&0==p||0!=I||0!=p||q.add(G);1==p&&(n=!1);E=G=H;H=this.a.X(H)}}if(0==C){I=p;p=B;-1==t&&(t=p);if(0!=I||1!=p)1==I&&0==p||0!=I||0!=p||q.add(z);1==p&&(n=!1);E=this.a.X(z)}z=E}while(z!=y);0==t&&0==p&&q.add(y);A=0;for(p=q.size;A<p;A++)t=q.get(A),this.a.vf(t,!1);
q.clear(!1);v=3>this.a.Ha(v)?this.a.Br(v):this.a.ac(v)}}if(n)return b.Pa();this.CR();0<a&&this.fM(a);return this.a.hf(this.U)};g.prototype.dL=function(b){var a=new c.i,d=new c.i,f=[0,0,0,0,0,0,0,0,0],e=[0,0,0,0,0,0,0,0,0],h=new c.zg,l=b,k=new c.i;b.cd(k);for(var m=0;4>m;m++){var g=!1,q=0!=(m&1),n=0;switch(m){case 0:n=this.Qb.v;g=k.v<=n&&k.B>=n;break;case 1:n=this.Qb.C;g=k.C<=n&&k.G>=n;break;case 2:n=this.Qb.B;g=k.v<=n&&k.B>=n;break;case 3:n=this.Qb.G,g=k.C<=n&&k.G>=n}if(g){g=l;l=b.Pa();g=g.Ca();g.Lk();
for(var u,v=new c.b;g.kb();)for(var w,x=!0;g.La();){var p=g.ia();p.o(a);var t=this.oo(a,m,n);if(-1==t){if(t=p.mt(q,n,f,e),0<t){var y=0;u=p.Mb();for(var z=0;z<=t;z++)if(w=z<t?e[z]:1,y!=w){p.Bi(y,w,h);var A=h.get();A.dd(u);z<t&&(q?(v.x=f[z],v.y=n):(v.x=n,v.y=f[z]),A.vd(v));A.o(d);var B=this.oo(d,m,n);if(-1==B){u=A.Mb();y=A.oc();if(q)B=Math.abs(u.y-n),C=Math.abs(y.y-n),B<C?(u.y=n,A.dd(u)):(y.y=n,A.vd(y));else{var B=Math.abs(u.x-n),C=Math.abs(y.x-n);B<C?(u.x=n,A.dd(u)):(y.x=n,A.vd(y))}A.o(d);B=this.oo(d,
m,n)}u=A.oc();y=w;w=B;1==w?(l.Bc(A,x),x=!1):x=!0}}}else w=t,1==w?(l.Bc(p,x),x=!1):x=!0}}}return l};g.prototype.CR=function(){this.vn=-1;this.Mu(!1,this.Qb.v);this.Mu(!1,this.Qb.B);this.Mu(!0,this.Qb.C);this.Mu(!0,this.Qb.G);this.ug.resize(0);this.ug.xb(100);this.vn=this.a.se();for(var b=new c.b,a=this.a.Ub(this.U);-1!=a;a=this.a.ac(a))for(var d=this.a.Cb(a),f=0,e=this.a.Ha(a);f<e;f++,d=this.a.X(d))if(this.a.w(d,b),this.Qb.v==b.x||this.Qb.B==b.x||this.Qb.C==b.y||this.Qb.G==b.y)this.a.lb(d,this.vn,
this.ug.size),this.ug.add(d);this.yu(!1,this.Qb.v);this.yu(!1,this.Qb.B);this.yu(!0,this.Qb.C);this.yu(!0,this.Qb.G);this.VM()};g.prototype.fM=function(b){for(var a=new c.b,d=new c.b,f=c.I.Kh(2048,0),e=this.a.Ub(this.U);-1!=e;e=this.a.ac(e)){var h=this.a.Cb(e),l=h;do{var k=this.a.X(l);this.a.w(l,a);var m=-1;a.x==this.Qb.v?(this.a.w(k,d),d.x==this.Qb.v&&(m=1)):a.x==this.Qb.B&&(this.a.w(k,d),d.x==this.Qb.B&&(m=1));a.y==this.Qb.C?(this.a.w(k,d),d.y==this.Qb.C&&(m=0)):a.y==this.Qb.G&&(this.a.w(k,d),d.y==
this.Qb.G&&(m=0));if(-1!=m&&(m=c.b.Fb(a,d),m=c.I.truncate(Math.min(Math.ceil(m/b),2048)),!(1>=m))){for(var g=1;g<m;g++)f[g-1]=1*g/m;this.a.Lr(l,f,m-1)}l=k}while(l!=h)}};g.prototype.Mu=function(b,a){var d=this.a.se(),f=new c.b,e=new c.ga(0);e.xb(100);for(var h=this.a.Ub(this.U);-1!=h;h=this.a.ac(h))for(var l=this.a.Cb(h),k=0,m=this.a.Ha(h);k<m;k++){var g=this.a.X(l);this.a.w(l,f);if(b?f.y==a:f.x==a)if(this.a.w(g,f),b?f.y==a:f.x==a)1!=this.a.Ra(l,d)&&(e.add(l),this.a.lb(l,d,1)),1!=this.a.Ra(g,d)&&(e.add(g),
this.a.lb(g,d,1));l=g}this.a.bf(d);if(!(3>e.size)){var q=this;e.xd(0,e.size,function(a,d){return q.jj(a,d)});d=new c.b;h=new c.b;l=new c.b;h.Dh();for(var n=-1,k=new c.ga(0),m=new c.ga(0),g=this.a.se(),u=this.a.se(),v=0,w=e.size;v<w;v++){var x=e.get(v);this.a.w(x,f);if(!f.ub(h)){if(-1!=n){for(var p=n;p<v;p++){var n=e.get(p),t=this.a.X(n),x=this.a.Ua(n),y=!1;0>this.jj(n,t)&&(this.a.w(t,d),b?d.y==a:d.x==a)&&(k.add(n),y=!0,this.a.lb(n,u,1));0>this.jj(n,x)&&(this.a.w(x,d),b?d.y==a:d.x==a)&&(y||k.add(n),
this.a.lb(n,g,1))}p=0;for(y=k.size;p<y;p++){n=k.get(p);x=this.a.Ra(n,g);t=this.a.Ra(n,u);if(1==x){x=this.a.Ua(n);this.a.w(x,l);var z=[0];z[0]=0;if(!l.ub(f)){var A=c.b.Fb(h,l);z[0]=c.b.Fb(l,f)/A;0==z[0]?z[0]=2.220446049250313E-16:1==z[0]&&(z[0]=.9999999999999998);this.a.Lr(x,z,1);x=this.a.Ua(n);this.a.Yi(x,f);m.add(x);this.a.lb(x,g,1);this.a.lb(x,u,-1)}}1==t&&(t=this.a.X(n),this.a.w(t,l),z=[0],z[0]=0,l.ub(f)||(A=c.b.Fb(h,l),z[0]=c.b.Fb(h,f)/A,0==z[0]?z[0]=2.220446049250313E-16:1==z[0]&&(z[0]=.9999999999999998),
this.a.Lr(n,z,1),x=this.a.X(n),this.a.Yi(x,f),m.add(x),this.a.lb(x,g,-1),this.a.lb(x,u,1)))}n=k;k=m;m=n;m.clear(!1)}n=v;h.J(f)}}this.a.bf(g);this.a.bf(u)}};g.prototype.yu=function(b,a){var d=new c.b,f=new c.ga(0);f.xb(100);for(var e=this.a.se(),h=0,l=this.ug.size;h<l;h++){var k=this.ug.get(h);if(-1!=k){var m=this.a.X(k);this.a.w(k,d);if(b?d.y==a:d.x==a)if(this.a.w(m,d),b?d.y==a:d.x==a)-2!=this.a.Ra(k,e)&&(f.add(k),this.a.lb(k,e,-2)),-2!=this.a.Ra(m,e)&&(f.add(m),this.a.lb(m,e,-2))}}if(0!=f.size){var g=
this;f.xd(0,f.size,function(a,d){return g.jj(a,d)});h=0;for(l=f.size;h<l;h++){var q=f.get(h);this.a.lb(q,e,h)}k=new c.b;m=new c.b;m.Dh();for(var n=-1,h=0,l=f.size;h<l;h++)if(q=f.get(h),-1!=q&&(this.a.w(q,d),!d.ub(m))){if(-1!=n)for(;;){for(var q=!1,u=1<h-n?h-1:h,v=n;v<u;v++){var w=f.get(v);if(-1!=w){var x=-1,p=this.a.X(w);0>this.jj(w,p)&&(this.a.w(p,k),b?k.y==a:k.x==a)&&(x=p);var p=-1,t=this.a.Ua(w);0>this.jj(w,t)&&(this.a.w(t,k),b?k.y==a:k.x==a)&&(p=t);if(-1!=x&&-1!=p)this.mo(w,f,e),this.a.vf(w,!1),
this.mo(x,f,e),this.a.vf(x,!1),q=!0;else if(-1!=x||-1!=p){for(t=v+1;t<h;t++){var y=f.get(t);if(-1!=y){var z=this.a.X(y),A=-1;0>this.jj(y,z)&&(this.a.w(z,k),b?k.y==a:k.x==a)&&(A=z);var z=this.a.Ua(y),B=-1;0>this.jj(y,z)&&(this.a.w(z,k),b?k.y==a:k.x==a)&&(B=z);if(-1!=A&&-1!=B){this.mo(y,f,e);this.a.vf(y,!1);this.mo(A,f,e);this.a.vf(A,!1);q=!0;break}if(-1!=x&&-1!=B){this.aF(f,w,x,y,B,e);q=!0;break}else if(-1!=p&&-1!=A){this.aF(f,y,A,w,p,e);q=!0;break}}}if(q)break}}}if(!q)break}n=h;m.J(d)}}this.a.bf(e)};
g.prototype.mo=function(b,a,d){d=this.a.Ra(b,d);a.set(d,-1);d=this.a.Ra(b,this.vn);this.ug.set(d,-1);a=this.a.rd(b);-1!=a&&this.a.Cb(a)==b&&(this.a.Ch(a,-1),this.a.Wi(a,-1))};g.prototype.aF=function(b,a,d,f,e,c){this.a.Qc(a,f);this.a.Rc(f,a);this.a.Rc(d,e);this.a.Qc(e,d);this.mo(f,b,c);this.a.Ui(f,!1);this.mo(e,b,c);this.a.Ui(e,!0)};g.prototype.VM=function(){for(var b=0,a=this.ug.size;b<a;b++){var d=this.ug.get(b);-1!=d&&this.a.im(d,-1)}for(var f=0,e=0,c=this.a.Ub(this.U);-1!=c;){var l=this.a.Cb(c);
if(-1==l||c!=this.a.rd(l)){var k=c,c=this.a.ac(c);this.a.Ch(k,-1);this.a.xu(k)}else{d=l;k=0;do this.a.im(d,c),k++,d=this.a.X(d);while(d!=l);2>=k?(d=this.a.Ra(l,this.vn),this.ug.set(d,-1),l=this.a.vf(l,!1),2==k&&(d=this.a.Ra(l,this.vn),this.ug.set(d,-1),this.a.vf(l,!1)),k=c,c=this.a.ac(c),this.a.Ch(k,-1),this.a.xu(k)):(this.a.Ir(c,!1),this.a.Wi(c,this.a.Ua(l)),this.a.hm(c,k),e+=k,f++,c=this.a.ac(c))}}b=0;for(a=this.ug.size;b<a;b++)if(d=this.ug.get(b),-1!=d&&(c=this.a.rd(d),-1==c)){c=this.a.Cf(this.U,
-1);k=0;l=d;do this.a.im(d,c),k++,d=this.a.X(d);while(d!=l);2>=k?(d=this.a.Ra(l,this.vn),this.ug.set(d,-1),l=this.a.vf(l,!1),2==k&&(d=this.a.Ra(l,this.vn),0<=d&&this.ug.set(d,-1),this.a.vf(l,!1)),k=c,this.a.Ch(k,-1),this.a.xu(k)):(this.a.Gn(c,!0),this.a.hm(c,k),this.a.Ch(c,l),this.a.Wi(c,this.a.Ua(l)),this.a.Ir(c,!1),e+=k,f++)}this.a.gm(this.U,f);this.a.Pk(this.U,e);b=0;for(a=this.a.Yc;-1!=a;a=this.a.xe(a))b+=this.a.F(a);this.a.WF(b)};g.Xk=function(b,a,d){return(new g(a)).bL(b,d)};g.clip=function(b,
a,d,f){if(b.s())return b;if(a.s())return b.Pa();d=b.D();if(33==d)return f=b.w(),a.contains(f)?b:b.Pa();if(197==d)return f=new c.i,b.o(f),f.Ga(a)?(a=new c.Uj,b.copyTo(a),a.Bu(f),a):b.Pa();var e=new c.i;b.cd(e);if(a.contains(e))return b;if(!a.jc(e))return b.Pa();e=b.pb;if(null!=e&&(e=e.hi,null!=e)){e=e.Dn(a);if(1==e){if(1736!=d)throw c.g.wa();b=new c.Ka(b.description);b.vs(a);return b}if(0==e)return b.Pa()}switch(d){case 550:d=null;for(var e=b.F(),h=b.mc(0),l=0,k=0;k<e;k++)f=new c.b,h.dc(2*k,f),a.contains(f)||
(0==l&&(d=b.Pa()),l<k&&d.Pd(b,l,k),l=k+1);0<l&&d.Pd(b,l,e);return 0==l?b:d;case 1736:case 1607:return g.Xk(b,a,f);default:throw c.g.wa();}};g.prototype.jj=function(b,a){var d=new c.b;this.a.w(b,d);var f=new c.b;this.a.w(a,f);return d.compare(f)};return g}();c.Ed=p})(t||(t={}));(function(c){var p=new c.b,g=function(){function a(a,b,e,h,l){this.Ml=new c.b;this.ln=new c.b;this.Ck=new c.b;this.a=a;this.Px=e;this.bn=h;this.Ml=b;this.vk=l;this.ln.Dh();this.Ck.Dh()}a.prototype.rB=function(a){this.a.w(a,
this.ln);a=c.I.truncate((this.ln.x-this.Ml.x)*this.bn+.5);var f=c.I.truncate((this.ln.y-this.Ml.y)*this.bn+.5);return b.UC(a,f)};a.prototype.vw=function(a){return this.a.Ra(a,this.vk)};return a}();c.rT=function(){return function(){}}();var b=function(){function a(){this.Ml=new c.b;this.Yo=[0,0,0,0];this.Jq=[0,0,0,0];this.en=this.vk=-1}a.yM=function(d,b){var e=new a;e.a=d;e.ka=b;e.Px=b*b;e.Jt=2*b;e.bn=1/e.Jt;return e.eL()};a.Vw=function(a,b,e,c,l){a-=e;b-=c;return a*a+b*b<=l};a.UC=function(a,b){return c.I.jg(b,
c.I.jg(a))};a.prototype.gL=function(d,b){this.a.uc(d,p);for(var e=(p.y-this.Ml.y)*this.bn,h=c.I.truncate((p.x-this.Ml.x)*this.bn),l=c.I.truncate(e),k=e=0;1>=k;k+=1)for(var m=0;1>=m;m+=1){var g=a.UC(h+k,l+m),q=this.uk.EN(g);-1!=q&&(this.Yo[e]=q,this.Jq[e]=g,e++)}for(h=e-1;1<=h;h--)for(q=this.Yo[h],l=h-1;0<=l;l--)if(q==this.Yo[l]){this.Jq[l]=-1;e--;h!=e&&(this.Jq[h]=this.Jq[e],this.Yo[h]=this.Yo[e]);break}for(l=0;l<e;l++)this.hL(d,this.Jq[l],p,this.Yo[l],b)};a.prototype.hL=function(d,b,e,h,l){for(var k=
new c.b;-1!=h;h=this.uk.TN(h)){var m=this.uk.da(h);d==m||-1!=b&&this.a.Ra(m,this.vk)!=b||(this.a.uc(m,k),a.Vw(e.x,e.y,k.x,k.y,this.Px)&&l.add(h))}};a.prototype.Tl=function(a,b,e){var c=this.a.Ra(a,this.en),l=this.a.Ra(b,this.en);-1==c&&(c=this.nd.ih(),this.nd.addElement(c,a),this.a.lb(a,this.en,c));-1==l?this.nd.addElement(c,b):this.nd.Qv(c,l);this.a.lb(b,this.en,-2);b=this.cQ(a,b);e&&(e=this.Rt.rB(a),this.a.lb(a,this.vk,e));return b};a.bQ=function(d,b,e){d.lc(b);e=d;var h=new c.b;a.fH(d.w(),b.w(),
h);e.hc(h)};a.fH=function(a,b,e){var c=a.x;a.x!=b.x&&(c=(1*a.x+1*b.x)/2);var l=a.y;a.y!=b.y&&(l=(1*a.y+1*b.y)/2);e.ma(c,l)};a.prototype.cQ=function(a,b){var e=new c.b;this.a.w(a,e);var h=new c.b;this.a.w(b,h);var l=this.a.OC(a),k=this.a.OC(b),m=l+k,g=0,q=e.x;e.x!=h.x&&(q=(e.x*l+h.x*k)/m,g++);var n=e.y;e.y!=h.y&&(n=(e.y*l+h.y*k)/m,g++);0<g&&this.a.hc(a,q,n);this.a.rS(a,m);return 0!=g};a.prototype.eL=function(){var a=this.a.pd,b=this.a.tC();this.Ml=b.yw();b=Math.max(b.ba(),b.aa())/2147483646;this.Jt<
b&&(this.Jt=b,this.bn=1/this.Jt);this.nd=new c.Tr;this.nd.Cr(c.I.truncate(this.a.pd/3+1));this.nd.$l(c.I.truncate(this.a.pd/3+1));this.vk=this.a.se();this.en=this.a.se();this.Rt=new g(this.a,this.Ml,this.Px,this.bn,this.vk);this.uk=new c.yH(c.I.truncate(4*a/3),this.Rt);this.uk.yR(this.a.pd);a=!1;for(b=this.a.Yc;-1!=b;b=this.a.xe(b))for(var e=this.a.Ub(b);-1!=e;e=this.a.ac(e))for(var h=this.a.Cb(e),l=0,k=this.a.Ha(e);l<k;l++){var m=this.Rt.rB(h);this.a.lb(h,this.vk,m);this.uk.addElement(h,m);h=this.a.X(h)}var r=
new c.ga(0);r.xb(10);for(b=this.a.Yc;-1!=b;b=this.a.xe(b))for(e=this.a.Ub(b);-1!=e;e=this.a.ac(e))for(h=this.a.Cb(e),l=0,k=this.a.Ha(e);l<k;l++){if(-2!=this.a.Ra(h,this.en))for(m=this.a.Ra(h,this.vk),this.uk.Jc(h,m);;){this.gL(h,r);if(0==r.size)break;for(var m=!1,q=0,n=r.size;q<n;q++){var u=r.get(q),v=this.uk.da(u);this.uk.jd(u);m=this.Tl(h,v,q+1==n)||m}a=a||m;r.clear(!1);if(!m)break}h=this.a.X(h)}a&&this.YJ();this.Rt=this.uk=null;this.a.bf(this.vk);this.a.bf(this.en);return a};a.prototype.YJ=function(){for(var a=
new c.b,b=this.nd.Vd;-1!=b;b=this.nd.Cw(b)){var e=this.nd.fc(b);this.a.w(this.nd.da(e),a);for(e=this.nd.bb(e);-1!=e;e=this.nd.bb(e))this.a.Yi(this.nd.da(e),a)}};return a}();c.Rr=b})(t||(t={}));(function(c){var p=Math.PI,g=2*Math.PI,b=Math.PI/2,a=function(){function a(){}a.xL=function(d,b){var f=new a;f.x=d;f.y=b;f.type=0;f.lh=0;return f};a.um=function(d){var b=new a;b.x=d.x;b.y=d.y;b.type=0;b.lh=0;return b};a.wL=function(d){var b=new a;b.x=d.x;b.y=d.y;b.type=d.type;b.lh=d.lh;return b};a.Ad=function(d,
b,f){var c=new a;c.x=d.x+b*Math.cos(f);c.y=d.y+b*Math.sin(f);c.type=d.type;c.lh=d.lh;return c};a.Is=function(d,b){var f=new a;f.x=.5*(d.x+b.x);f.y=.5*(d.y+b.y);f.type=d.type;f.lh=d.lh;return f};a.KB=function(d,b){var f=new a;f.x=d.x+.001*(b.x-d.x);f.y=d.y+.001*(b.y-d.y);f.type=d.type;f.lh=d.lh;return f};return a}(),d=function(){return function(){}}();(function(a){a[a.Round=0]="Round";a[a.Bevel=1]="Bevel";a[a.Miter=2]="Miter";a[a.Square=3]="Square"})(c.CH||(c.CH={}));var f=function(){function f(a){this.Kx=
this.Ib=this.dg=null;this.ne=a}f.$=function(a,d,b,m,g,q){if(null==a)throw c.g.N();if(1>a.fb())throw c.g.N();if(0==d||a.s())return a;q=new f(q);q.$m=a;q.Da=d;q.ka=g;q.bi=b;q.Dx=m;return q.hv()};f.prototype.gJ=function(){var a=this.$m,d=a.Mb(),b=a.oc(),f=new c.b;f.pc(b,d);f.normalize();f.st();f.scale(this.Da);d.add(f);b.add(f);f=a.Pa();a.dd(d);a.vd(b);return f};f.prototype.fJ=function(){var a=this.$m;if(0<this.Da&&2!=this.bi){var d=new c.Ka;d.Uc(a,!1);this.$m=d;return this.hv()}a=new c.Uj(a.R);a.P(this.Da,
this.Da);return a};f.prototype.oF=function(a,d,b,f){return(d.x-a.x)*(f.x-b.x)+(d.y-a.y)*(f.y-b.y)};f.prototype.Tb=function(d,f){if(void 0===f)this.Ib.push(d),this.Xe++;else if(0==this.Xe)this.Tb(d);else{var e=this.du,c,g;c=this.dg[0==f?e-1:f-1];g=this.dg[f];var q=this.oF(c,g,this.Ib[this.Xe-1],d);0<q?this.Tb(d):0>q&&(0<this.oF(c,g,g,this.Ib[this.Xe-1])?(g=this.dg[0==f?e-2:1==f?e-1:f-2],e=a.Ad(c,this.Da,Math.atan2(c.y-g.y,c.x-g.x)-b),this.Ib[this.Xe-1]=e,1==this.bi||2==this.bi?(e=a.Is(e,c),this.Tb(e),
e=a.Ad(c,this.Da,this.ut+b),c=a.Is(e,c),c.type|=256,this.Tb(c)):(e=a.Ad(c,this.Da,this.ut+b),e.type|=256),this.Tb(e),this.Tb(d,f)):(e=a.Ad(g,this.Da,this.ut+b),this.Tb(e),1==this.bi||2==this.bi?(e=a.Is(e,g),this.Tb(e),e=a.Ad(g,this.Da,this.gx-b),c=a.Is(e,g),c.type|=256,this.Tb(c)):(e=a.Ad(g,this.Da,this.gx-b),e.type|=256),this.Tb(e)))}};f.prototype.lB=function(){var d,f,e,m,r,q,n=this.du;this.Xe=0;var u=.5*this.ka,v=0,w=0;for(d=0;d<n;d++){m=this.dg[d];r=0==d?this.dg[n-1]:this.dg[d-1];q=d==n-1?this.dg[0]:
this.dg[d+1];var x=r.x-m.x,t=r.y-m.y,D=q.x-m.x,y=q.y-m.y;f=Math.atan2(t,x);e=Math.atan2(y,D);this.ut=f;this.gx=e;0==d&&(v=f,w=e);x=x*y-D*t;t=e;e<f&&(e+=g);if(0<x*this.Da)1==this.bi||2==this.bi?(f=a.Ad(m,this.Da,f+b),this.Tb(f),f=a.KB(m,f),this.Tb(f),f=a.Ad(m,this.Da,e-b),m=a.KB(m,f),m.type|=256,this.Tb(m),this.Tb(f)):(x=.5*(e-f),x=this.Da/Math.abs(Math.sin(x)),f=a.Ad(m,x,.5*(f+e)),this.Tb(f,d));else if(0!=(m.type&512)){x=1-u/Math.abs(this.Da);r=1;q=0>this.Da?-p:p;-1<x&&1>x&&(t=2*Math.acos(x),.017453292519943295>
t&&(t=.017453292519943295),r=c.I.truncate(p/t+1.5),1<r&&(q/=r));t=f+b;f=a.Ad(m,this.Da,t);0==d&&(f.type|=1024);this.Tb(f,d);x=this.Da/Math.cos(q/2);t+=q/2;f=a.Ad(m,x,t);f.type|=1024;for(this.Tb(f);0<--r;)t+=q,f=a.Ad(m,x,t),f.type|=1024,this.Tb(f);f=a.Ad(m,this.Da,e-b);f.type|=1024;this.Tb(f)}else if(1==this.bi)f=a.Ad(m,this.Da,f+b),this.Tb(f,d),f=a.Ad(m,this.Da,e-b),this.Tb(f);else if(0==this.bi)for(x=1-u/Math.abs(this.Da),r=1,q=e-b-(f+b),-1<x&&1>x&&(t=2*Math.acos(x),.017453292519943295>t&&(t=.017453292519943295),
r=c.I.truncate(Math.abs(q)/t+1.5),1<r&&(q/=r)),x=this.Da/Math.cos(.5*q),t=f+b+.5*q,f=a.Ad(m,x,t),this.Tb(f,d);0<--r;)t+=q,f=a.Ad(m,x,t),this.Tb(f);else 2==this.bi?(x=r.x-m.x,t=r.y-m.y,D=q.x-m.x,y=q.y-m.y,r=(x*D+t*y)/Math.sqrt(x*x+t*t)/Math.sqrt(D*D+y*y),.99999999<r?(f=a.Ad(m,1.4142135623730951*this.Da,e-.25*p),this.Tb(f,d),f=a.Ad(m,1.4142135623730951*this.Da,e+.25*p),this.Tb(f)):(r=Math.abs(this.Da/Math.sin(.5*Math.acos(r))),q=Math.abs(this.Dx*this.Da),r>q?(x=.5*(e-f),x=this.Da/Math.abs(Math.sin(x)),
f=a.Ad(m,x,.5*(f+e)),e=c.b.Oa(f.x,f.y),f=c.b.Oa(m.x,m.y),m=new c.b,m.pc(e,f),e=new c.b,e.FR(q/m.length(),m,f),f=(r-q)*Math.abs(this.Da)/Math.sqrt(r*r-this.Da*this.Da),0<this.Da?m.st():m.Jp(),m.scale(f/m.length()),f=new c.b,f.add(e,m),r=new c.b,r.pc(e,m),f=a.um(f),this.Tb(f,d),f=a.um(r),this.Tb(f)):(x=.5*(e-f),x=this.Da/Math.abs(Math.sin(x)),f=a.Ad(m,x,.5*(f+e)),this.Tb(f,d)))):(e=t,0<this.Da?(e>f&&(e-=g),r=f-e<b):(e<f&&(e+=g),r=e-f<b),r?(x=1.4142135623730951*this.Da,t=0>x?f+.25*p:f+.75*p,f=a.Ad(m,
x,t),this.Tb(f,d),t=0>x?e-.25*p:e-.75*p,f=a.Ad(m,x,t),this.Tb(f)):(x=.5*(e-f),x=this.Da/Math.abs(Math.sin(x)),e<f&&(e+=g),f=a.Ad(m,x,(f+e)/2),this.Tb(f,d)))}this.ut=v;this.gx=w;this.Tb(this.Ib[0],0);m=a.wL(this.Ib[this.Xe-1]);this.Ib[0]=m;return this.uR()};f.prototype.ws=function(a,d){if(!(2>d))for(var b=0;b<d;b++){var f=this.Ib[a+b];0!=b?this.Kx.Lm(c.b.Oa(f.x,f.y)):this.Kx.Mr(c.b.Oa(f.x,f.y))}};f.prototype.hJ=function(d,b,f){var e=d.Ea(b),c=d.Dc(b);this.Ib=[];this.Kx=f;if(d.vc(b)){for(b=d.Fa(e);d.Fa(c-
1).ub(b);)c--;if(2<=c-e){this.du=c-e;this.dg=[];for(b=e;b<c;b++)this.dg.push(a.um(d.Fa(b)));this.lB()&&this.ws(0,this.Xe-1)}}else{for(b=d.Fa(e);e<c&&d.Fa(e+1).ub(b);)e++;for(b=d.Fa(c-1);e<c&&d.Fa(c-2).ub(b);)c--;if(2<=c-e){this.du=2*(c-e)-2;this.dg=[];f=a.um(d.Fa(e));f.type|=1536;this.dg.push(f);for(b=e+1;b<c-1;b++)f=a.um(d.Fa(b)),this.dg.push(f);f=a.um(d.Fa(c-1));f.type|=512;this.dg.push(f);for(b=c-2;b>=e+1;b--)f=a.um(d.Fa(b)),f.type|=1024,this.dg.push(f);if(this.lB())if(2<=this.Ib.length){d=-1;
(c=0!=(this.Ib[this.Xe-1].type&1024))||(d=0);for(b=1;b<this.Xe;b++)e=0!=(this.Ib[b].type&1024),e?c||(c=b-1,1<c-d+1&&this.ws(d,c-d+1)):c&&(d=b-1),c=e;c||(c=this.Xe-1,1<c-d+1&&this.ws(d,c-d+1))}else d=0,c=this.Xe-1,0<=d&&1<=c-d&&this.ws(d,c-d+1)}}this.dg=null;this.du=0;this.Ib=null;this.Xe=0};f.prototype.uR=function(){for(var a=!1,d=0;d<this.Xe;d++){var b=this.Ib[d];b.Qg=d+1;b.Tg=d-1;this.Ib[d]=b}b=this.Ib[0];b.Tg=this.Xe-2;this.Ib[0]=b;b=this.Ib[this.Xe-2];b.Qg=0;this.Ib[this.Xe-2]=b;for(d=b=0;d<this.Xe;d++)if(0!=
(this.Ib[b].type&256)){var f=this.ZL(b);if(-1!=f)b=f;else{a=!0;break}}else b=this.Ib[b].Qg;if(a)return!1;this.uL(b);return!0};f.prototype.ZL=function(a){for(var d=this.Xe-1,b=a,f,e,c=1;c<=d-2;c++){f=b=this.Ib[b].Qg;e=a;for(var g=1;g<=c;g++){e=this.Ib[e].Tg;if(0==(this.Ib[e].type&256)&&0==(this.Ib[f].type&256)){var u=this.pO(e,f);if(-1!=u)return u}f=this.Ib[f].Tg}}return-1};f.prototype.pO=function(a,b){var f,e,g,q;f=this.Ib[this.Ib[a].Tg];e=this.Ib[a];g=this.Ib[this.Ib[b].Tg];q=this.Ib[b];if(!this.JR(f,
e,g,q))return-1;var n=new d;return this.MM(f,e,g,q,n)&&!n.bB&&c.I.ZF((e.x-f.x)*(q.y-g.y)-(e.y-f.y)*(q.x-g.x))!=c.I.ZF(this.Da)?(f=this.Ib[a].Tg,n.Xl.type=e.type,n.Xl.Qg=b,n.Xl.Tg=f,this.Ib[a]=n.Xl,n.Xl=this.Ib[b],n.Xl.Tg=a,this.Ib[b]=n.Xl,b):-1};f.prototype.JR=function(a,d,b,f){return Math.max(a.x,d.x)>=Math.min(b.x,f.x)&&Math.max(b.x,f.x)>=Math.min(a.x,d.x)&&Math.max(a.y,d.y)>=Math.min(b.y,f.y)&&Math.max(b.y,f.y)>=Math.min(a.y,d.y)};f.prototype.MM=function(d,b,f,e,c){c.bB=!1;var g,n,u;g=(b.y-d.y)*
(e.x-f.x)-(b.x-d.x)*(e.y-f.y);n=(f.y-d.y)*(b.x-d.x)-(f.x-d.x)*(b.y-d.y);g=0==g?2:n/g;return 0<=g&&1>=g&&(u=g,g=(e.y-f.y)*(b.x-d.x)-(e.x-f.x)*(b.y-d.y),n=(d.y-f.y)*(e.x-f.x)-(d.x-f.x)*(e.y-f.y),g=0==g?2:n/g,0<=g&&1>=g)?(c.Xl=a.xL(d.x+g*(b.x-d.x),d.y+g*(b.y-d.y)),c.Xl.lh=f.lh+u*(e.lh-f.lh),0!=u&&1!=u||0!=g&&1!=g||(c.bB=!0),c.oU=g,c.pU=u,(0==u||1==u)&&0<g&&1>g||(0==g||1==g)&&0<u&&1>u?!1:!0):!1};f.prototype.uL=function(a){for(;this.Ib[a].Tg<a;)a=this.Ib[a].Tg;var d=0,b=a;do b=this.Ib[b],this.Ib[d]=b,
b=b.Qg,d++;while(b!=a);this.Ib[d]=this.Ib[0];this.Xe=d+1};f.prototype.pA=function(a){var d=this.$m,b=d.Ca();if(null!=b){b.Lk();for(var f=-1;b.kb();)f++,this.hJ(d,f,a)}};f.prototype.hv=function(){var a=this.$m.D();return 322==a?this.gJ():197==a?this.fJ():c.T.Lc(a)?(a=new c.Xa,a.Bc(this.$m,!0),this.$m=a,this.hv()):1607==a?(a=new c.Xa,this.pA(a),a):1736==a?(a=new c.Ka,this.pA(a),a):null};return f}();c.VG=f})(t||(t={}));(function(c){var p=function(){function a(d){this.wj=d}a.prototype.w=function(a,d){this.wj.a.w(a,
d)};a.prototype.jd=function(a){var d=this.wj.za.da(a);this.wj.za.jd(a,-1);this.wj.a.vf(d,!1)};return a}(),g=function(){function a(d){this.wj=d}a.prototype.w=function(a,d){this.wj.PP.w(a,d)};a.prototype.jd=function(a){this.wj.za.jd(a,-1)};return a}(),b=function(){function a(d){this.wj=d}a.prototype.w=function(a,d){d.J(this.wj.RP[a])};a.prototype.jd=function(a){this.wj.za.jd(a,-1)};return a}(),a=function(){function a(d){void 0===d?(this.za=new c.bj,this.za.ce(20),this.a=new c.ed,this.HP=this.a.ig(550),
this.br=this.a.Cf(this.HP,-1),this.nh=new p(this)):d instanceof Array?(this.za=new c.bj,this.za.ce(20),this.RP=d,this.nh=new b(this)):(this.za=new c.bj,this.za.ce(20),this.PP=d,this.nh=new g(this))}a.prototype.Eb=function(a){var d=a.D();if(c.Vr.Th(d))this.NJ(a);else if(c.al.Lc(d))this.RJ(a);else if(197==d)this.KJ(a);else if(33==d)this.QJ(a);else throw c.g.N("invalid shape type");};a.prototype.tN=function(){var a=new c.Va,d=this.za.fc(-1),b=new c.Ka(this.a.vp);this.a.Jk(this.za.da(d),a);b.df(a);for(d=
this.za.bb(d);-1!=d;d=this.za.bb(d))this.a.Jk(this.za.da(d),a),b.lineTo(a);return b};a.vL=function(b){var e=new a(b),h=b.F(),l=1,k=new c.b,m=new c.b,g=new c.b;for(b.w(0,k);;){b.w(l,m);if(!(m.Ww(k)&&l<h-1))break;l++}e.za.addElement(0,-1);e.za.qm(l);for(h=l+1;h<b.F();h++)b.w(h,g),l=e.cz(g),-1!=l&&e.za.Vi(l,h);g=new c.Va;l=e.za.fc(-1);h=new c.Ka(b.description);b.Rd(e.za.da(l),g);h.df(g);for(l=e.za.bb(l);-1!=l;l=e.za.bb(l))b.Rd(e.za.da(l),g),h.lineTo(g);return h};a.Oa=function(b,e,c){for(var l=new a(b),
k=1,m=b[0];b[k].Ww(m)&&k<e-1;)k++;l.za.addElement(0,-1);l.za.qm(k);for(k+=1;k<e;k++)m=l.cz(b[k]),-1!=m&&l.za.Vi(m,k);b=0;for(e=l.za.fc(-1);-1!=e;e=l.za.bb(e))c[b++]=l.za.da(e);return b};a.pD=function(b,e){var h=b.Ea(e),l=b.Dc(e),k=!b.vc(e)&&b.No(e),m=b.mc(0),h=2*h,l=2*l;k&&(l-=2);if(6>l-h)return!0;var k=new c.b,g=new c.b,q=new c.b;m.dc(h,k);m.dc(h+2,g);m.dc(h+4,q);var n=a.Bd(g,q,k);if(n.Cq()||!a.$b(n.value()))return!1;for(var u=c.b.Oa(g.x,g.y),v=new c.b,h=h+6;h<l;h+=2){v.J(g);g.J(q);m.dc(h,q);n=a.Bd(g,
q,k);if(n.Cq()||!a.$b(n.value()))return!1;n=a.Bd(u,q,k);if(n.Cq()||!a.$b(n.value()))return!1;n=a.Bd(g,q,v);if(n.Cq()||!a.$b(n.value()))return!1}return!0};a.prototype.NJ=function(a){for(var d=new c.Va,b=new c.b,l=0;l<a.F();l++){a.w(l,b);var k=this.gq(b);if(-1!=k){a.Rd(l,d);var m=this.a.Tb(this.br,d);this.za.Vi(k,m)}}};a.prototype.KJ=function(a){for(var d=new c.Va,b=new c.b,l=0;4>l;l++){a.uu(l,b);var k=this.gq(b);if(-1!=k){a.uf(l,d);var m=this.a.Tb(this.br,d);this.za.Vi(k,m)}}};a.prototype.RJ=function(a){var d=
new c.Va,b=a.Mb(),b=this.gq(b);if(-1!=b){a.En(d);var l=this.a.Tb(this.br,d);this.za.Vi(b,l)}b=a.oc();b=this.gq(b);-1!=b&&(a.Bn(d),a=this.a.Tb(this.br,d),this.za.Vi(b,a))};a.prototype.QJ=function(a){var d=a.w(),d=this.gq(d);-1!=d&&(a=this.a.Tb(this.br,a),this.za.Vi(d,a))};a.prototype.gq=function(a){var d=-1;if(0==this.za.size(-1))return d=this.za.addElement(-4,-1);if(1==this.za.size(-1)){var b=this.a.Fa(this.za.da(this.za.fc(-1)));a.Ww(b)||(d=this.za.qm(-5));return d}return d=this.cz(a)};a.prototype.cz=
function(b){var e=-1;do{var h=this.za.fc(-1),l=this.za.tc(-1),k=this.za.da(h),m=this.za.da(l),g=new c.b,q=new c.b;this.nh.w(k,g);this.nh.w(m,q);k=c.b.yn(q,b,g);if(a.$b(k))e=this.za.qm(-1),g=this.az(b,l,h),g!=h&&this.bz(b,h,this.za.fe(g));else if(a.ti(k)){for(var q=this.za.ct(-1),n=this.za.fc(-1),u=this.za.tc(-1),v,k=new c.b,m=new c.b;n!=this.za.fe(u);)v=this.za.da(q),this.nh.w(v,k),v=c.b.yn(k,b,g),a.ti(v)?(u=q,q=this.za.ik(q)):(n=q,q=this.za.Io(q));q=u;g=n;v=this.za.da(q);n=this.za.da(g);this.nh.w(v,
k);this.nh.w(n,m);if(g!=h&&(k=c.b.yn(m,b,k),!a.$b(k)))continue;e=this.za.us(g,q,-2,!1);this.bz(b,q,l);this.az(b,g,h)}else null==this.ib&&(this.ib=new c.yb),this.ib.dd(q),this.ib.vd(g),g=this.ib.Gd(b,!0),0>g?(g=this.za.fe(l),this.za.jd(l,-1),e=this.za.qm(-3),this.az(b,g,h)):1<g&&(g=this.za.bb(h),this.za.jd(h,-1),e=this.za.us(-1,g,-3,!1),this.bz(b,g,l))}while(0);return e};a.prototype.bz=function(b,e,h){if(e!=h){var l=this.za.da(e),k=this.za.bb(e),m=new c.b,g=new c.b;for(this.nh.w(l,m);e!=h&&2<this.za.size(-1);){this.nh.w(this.za.da(k),
g);l=c.b.yn(g,b,m);if(a.$b(l))break;l=e;e=k;m.J(g);k=this.za.bb(e);this.nh.jd(l)}}};a.prototype.az=function(b,e,h){if(e==h)return h;var l=this.za.da(e),k=this.za.fe(e),m=new c.b,g=new c.b;for(this.nh.w(l,m);e!=h&&2<this.za.size(-1);){this.nh.w(this.za.da(k),g);l=c.b.yn(m,b,g);if(a.$b(l))break;l=e;e=k;m.J(g);k=this.za.fe(e);this.nh.jd(l)}return e};a.Bd=function(a,d,b){var l=new c.$k;l.set(d.x);l.sub(a.x);var k=new c.$k;k.set(b.y);k.sub(a.y);var m=new c.$k;m.set(d.y);m.sub(a.y);d=new c.$k;d.set(b.x);
d.sub(a.x);l.zp(k);m.zp(d);l.sub(m);return l};a.$b=function(a){return 0>a};a.ti=function(a){return 0<a};a.$n=function(a){return 0==a};return a}();c.Sr=a})(t||(t={}));(function(c){var p=function(){function g(b){this.ne=this.a=null;this.TD=!0;this.ne=b}g.EE=function(b,a,d){b=c.Ia.zs(b);return c.Rr.Vw(a.lk(),a.mk(),d.lk(),d.mk(),c.vi.Ty(b))};g.fL=function(b,a){var d=new c.Va;c.Rr.bQ(b,a,d);return d};g.$=function(b,a,d,f){d=new g(d);d.a=b;d.ka=a;d.TD=f;return d.qJ()};g.prototype.kJ=function(b){return c.Rr.yM(this.a,
b)};g.prototype.nJ=function(b){return c.Yu.$(this.a,b,this.ne)};g.prototype.qJ=function(){for(var b=this.ka,a=c.Ia.zs(b),b=c.Ia.TJ(b),d=1.00001*b,b=1.000001*b,f=!1,e=30<this.a.pd+10?1E3:(this.a.pd+10)*(this.a.pd+10),h=0,l=this.a.rO();;h++){if(h>e)throw c.g.ra("Internal Error: max number of iterations exceeded");var k=this.kJ(a),f=f||k;this.TD&&(k=0!=this.a.wo(a,!0,!1),f=f||k);k=!1;if(0==h||l||c.Yu.AE(!0,this.a,b,null,this.ne))k=this.nJ(d),f=f||k;if(!k)break}return f};return g}();c.aj=p})(t||(t={}));
(function(c){var p=function(){function g(b){this.Ld=this.zc=null;this.Xb=b;this.hx=!0}g.prototype.dt=function(b,a){var d=this.a.bc(b);if(null==d){if(!this.a.Nc(b,a))return null;d=a}return d};g.prototype.KL=function(){var b=this.a.Fp(!1),a=!1,d=new c.yb,f=new c.yb,e=new c.i;e.Ja();var h=new c.i;h.Ja();for(var l=new c.Va,k=new c.fA,m=b.next();-1!=m;m=b.next()){var g=null,q=!1;if(!c.T.Km(this.a.Lb(b.lj))){g=this.dt(m,d);if(null==g)continue;g.o(e);e.P(this.ka,this.ka);if(g.lg(this.ka))if(g.lg(0))q=!0,
g=null;else continue}var n=this.a.Fp(b),u=n.next();for(-1!=u&&(u=n.next());-1!=u;u=n.next()){var v=null,w=!1;if(!c.T.Km(this.a.Lb(n.lj))){v=this.dt(u,f);if(null==v)continue;v.o(h);if(v.lg(this.ka))if(v.lg(0))w=!0,v=null;else continue}var x=0,p=0;if(null!=g&&null!=v)e.oD(h)&&(k.zn(g),k.zn(v),k.Ga(this.ka,!1),x=k.kk(0),p=k.kk(1),0<x+p&&(this.a.Sp(m,k,0,!0),this.a.Sp(u,k,1,!0)),k.clear());else if(null!=g){var t=new c.b;this.a.w(u,t);if(e.contains(t)){k.zn(g);this.a.Jk(u,l);k.Tw(this.ka,l,!1);x=k.kk(0);
if(0<x)if(this.a.Sp(m,k,0,!0),w){w=-1;for(t=this.a.X(u);-1!=t&&t!=u&&(v=this.dt(t,f),w=t,null!=v&&v.lg(0));t=this.a.X(t));for(t=u;-1!=t&&(this.a.ah(t,k.nf),t!=w);t=this.a.X(t));}else this.a.ah(u,k.nf);k.clear()}}else if(null!=v){if(t=new c.b,this.a.w(m,t),h.P(this.ka,this.ka),h.contains(t)){k.zn(v);this.a.Jk(m,l);k.Tw(this.ka,l,!1);p=k.kk(0);if(0<p)if(this.a.Sp(u,k,0,!0),q){w=-1;for(t=this.a.X(m);-1!=t&&t!=m&&(v=this.dt(t,f),w=t,null!=v&&v.lg(0));t=this.a.X(t));for(t=m;-1!=t&&(this.a.ah(t,k.nf),t!=
w);t=this.a.X(t));}else this.a.ah(m,k.nf);k.clear()}}else continue;if(0!=x+p){if(0!=x){g=this.a.bc(m);if(null==g){if(!this.a.Nc(m,d))continue;g=d;d.o(e)}else g.o(e);if(g.lg(this.ka))break}a=!0}}}return a};g.prototype.LL=function(){return this.JQ()};g.prototype.JQ=function(){return(new c.$z).IS(this.a,this.ka)};g.prototype.BE=function(){var b=!1,a,d;null==this.zc&&(this.zc=new c.bj);var f=new c.ga(0);f.xb(this.a.pd+1);for(var e=this.a.Fp(),h=e.next();-1!=h;h=e.next())f.add(h);this.a.Lu(f,f.size);f.add(-1);
e=this.a.se();h=this.a.se();this.Ld=new c.gA(this.a,this.ka,!this.hx);this.zc.Hn(this.Ld);var l=new c.ga(0),k=new c.ga(0),m=0;new c.b;var g=this.a.bd;this.a.wb.kc();for(var q=this.a.wb.Ba[0].f,n,u,v=f.get(m++);-1!=v;){u=g.O(v,0);n=q[2*u];u=q[2*u+1];var w=n,x=u;do{var p=g.O(v,2),t=g.O(v,1);-1!=p&&(a=g.O(p,0),d=q[2*a],a=q[2*a+1],0>(x<a?-1:x>a?1:w<d?-1:w>d?1:0)&&(k.add(v),k.add(p)));-1!=t&&(a=g.O(t,0),d=q[2*a],a=q[2*a+1],0>(x<a?-1:x>a?1:w<d?-1:w>d?1:0)&&(k.add(t),k.add(t)));d=this.a.Ra(v,e);-1!=d&&(l.add(d),
this.a.lb(v,e,-1));d=this.a.Ra(v,h);-1!=d&&(l.add(d),this.a.lb(v,h,-1));v=f.get(m++);-1!==v&&(x=g.O(v,0),w=q[2*x],x=q[2*x+1])}while(-1!=v&&w===n&&x===u);w=1==l.size&&2==k.size;d=x=-1;p=0;for(t=l.size;p<t;p++){a=l.get(p);var y=this.zc.fe(a);-1==y||l.Nw(y)||(x=y);a=this.zc.bb(a);-1==a||l.Nw(a)||(d=a);if(-1!=x&&-1!=d)break}this.Ld.UF(u,n);p=0;for(t=l.size;p<t;p++)a=l.get(p),this.zc.jd(a,-1);l.clear(!1);if(!w&&-1!=x&&-1!=d&&this.RK(x,d)){b=!0;this.ei=this.Ld.rl();break}p=0;for(t=k.size;p<t;p+=2){u=k.get(p);
n=k.get(p+1);w?(u=this.zc.us(x,d,u,!0),w=!1):u=this.zc.addElement(u,-1);if(this.Ld.Zf){this.ei=this.Ld.rl();b=!0;break}-1==this.a.Ra(n,e)?this.a.lb(n,e,u):this.a.lb(n,h,u)}if(b)break;k.cf(0)}this.a.bf(e);this.a.bf(h);return b};g.prototype.RK=function(b,a){this.Ld.compare(this.zc,this.zc.da(b),a);var d=this.Ld.Zf;this.Ld.kq();return d};g.Fh=function(b){for(var a=b.Yc;-1!=a;a=b.xe(a))if(c.T.Kc(b.Lb(a)))return!0;return!1};g.Yk=function(b,a,d,f){if(!g.Fh(b))return!1;a=new g(f);a.a=b;a.ka=d;if(15>b.pd)b=
a.KL();else return a.LL();return b};g.$=function(b,a,d){return g.Yk(b,b.tC(),a,d)};g.AE=function(b,a,d,f,e){if(!g.Fh(a))return!1;var h=new g(e);h.a=a;h.ka=d;h.hx=b;if(h.BE())return null!=f&&f.$p(h.ei),!0;var l=new c.Ag;l.Oy();a.Oe(l);h=new g(e);h.a=a;h.ka=d;h.hx=b;b=h.BE();l.Oy();a.Oe(l);return b?(null!=f&&f.$p(h.ei),!0):!1};return g}();c.Yu=p})(t||(t={}));(function(c){(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"})(c.XG||
(c.XG={}));var p=function(){return function(a,b,e,c,l,k,m,g,q,n,u){this.U=a;this.bu=b;this.Xq=e;this.ag=c;this.Il=n;this.xk=u}}();c.tT=p;var g=function(){function a(d,b){this.gE=d;this.Zh=b}a.prototype.mJ=function(a,d){var b=new c.b;this.Zh.w(a,b);var l=new c.b;this.Zh.w(d,l);b=b.compare(l);if(0!=b)return b;b=this.Zh.Ra(a,this.gE);l=this.Zh.Ra(d,this.gE);return b<l?-1:b==l?0:1};return a}(),b=function(){return function(a,b,e,c,l,k,m,g,q){this.ag=a;this.Xq=b;this.Lx=e;this.pE=c;this.Wh=l;this.xk=k;
this.Il=m;this.qE=g;this.TP=q}}();c.sT=b;var a=function(){function a(){}a.WG=function(b,e,h,l,k,m){if(e.s())b=new p(e,4,-1,-1,NaN,4,-1,-1,NaN,-1,-1,NaN,-1,-1,NaN),k.push(b);else{var g=new c.ed;g.Eb(e);g.Eb(h);c.aj.$(g,l,m,!0);e=0;h=g.se();for(l=g.Yc;-1!=l;l=g.xe(l))for(m=g.Ub(l);-1!=m;m=g.ac(m))for(var q=g.Cb(m),n=0,u=g.Ha(m);n<u;q=g.X(q),n++)g.lb(q,h,e++);e=a.cK(h,g);a.vI(b,e,g,k)}};a.cK=function(b,e){for(var h=e.pd,l=new c.ga(0),k=e.Yc;-1!=k;k=e.xe(k))for(var m=e.Ub(k);-1!=m;m=e.ac(m))for(var r=
e.Cb(m),q=0,n=e.Ha(m);q<n;r=e.X(r),q++)l.add(r);var u=new g(b,e);l.xd(0,h,function(a,d){return u.mJ(a,d)});var v=[],w=[],x=e.se(),p=e.se(),k=e.Yc,m=e.xe(k),n=new c.b,t=new c.b,y=l.get(0),z=e.rd(y),A=e.Vf(z);e.w(y,n);for(var B=1,r=0;B<h-1;){for(var C=!1,q=B;q<h;q++)if(q!=r){var E=l.get(q),G=e.rd(E),H=e.Vf(G);e.w(E,t);if(n.ub(t))A==k&&H==m&&(C=a.JI(x,p,e,v,w,z,y,G,E));else break}if(C||r==B-1){C&&r==B-1&&B--;if(++r==h)break;y=l.get(r);z=e.rd(y);A=e.Vf(z);e.w(y,n)}C||(B=r+1)}h=[];for(k=e.Yc;-1!=k;k=e.xe(k))for(m=
e.Ub(k);-1!=m;m=e.ac(m))for(l=e.Cb(m),q=0,n=e.Ha(m);q<n;l=e.X(l),q++){r=e.Ra(l,p);if(0<=r)for(;r<w.length&&w[r].ag==l;)h.push(w[r++]);r=e.Ra(l,x);if(0<=r)for(;r<v.length&&v[r].ag==l;)h.push(v[r++])}e.bf(x);e.bf(p);return h};a.JI=function(b,e,c,l,k,m,g,q,n){var u=c.hk(m),v=c.hk(q),w=c.Cb(m),x=c.Cb(q),p=c.Ua(g),t=c.Ua(n),y=!1,z=!1,A=!1,B=!1;g!=w&&(n!=x&&(y=a.MI(b,c,l,m,p,q,t)),n!=v&&(z=a.RI(b,c,l,m,p,q,n)));g!=u&&(n!=x&&(A=a.UI(e,c,k,m,g,q,t,w)),n!=v&&(B=a.XI(e,c,k,m,g,q,n,w)));y&&z&&A?(b=l.length-
1,2==k[B?k.length-2:k.length-1].Wh&&(l[b-1]=l[b],l.length=l.length-1)):y&&z&&B&&2==k[k.length-1].Wh&&(k=l[l.length-1],l.length=l.length-1,c.Ra(k.ag,b)==l.length&&c.lb(k.ag,b,-1));return y||z||A||B};a.MI=function(a,d,h,l,k,m,g){var q,n;n=new c.yb;var u=new c.yb,v=[0,0],w=[0,0];q=d.bc(k);null==q&&(d.Nc(k,n),q=n);n=d.bc(g);null==n&&(d.Nc(g,u),n=u);q=q.Ga(n,null,v,w,0);2>q&&(l=new b(k,l,v[0],NaN,q,g,m,w[0],NaN),h.push(l),l=d.Ra(k,a),0>l&&d.lb(k,a,h.length-1));return!0};a.RI=function(a,d,h,l,k,m,g){var q,
n;n=new c.yb;var u=new c.yb,v=[0,0],w=[0,0];q=d.bc(k);null==q&&(d.Nc(k,n),q=n);n=d.bc(g);null==n&&(d.Nc(g,u),n=u);q=q.Ga(n,null,v,w,0);return 2>q?(l=new b(k,l,v[0],NaN,q,g,m,w[0],NaN),h.push(l),l=d.Ra(k,a),0>l&&d.lb(k,a,h.length-1),!0):!1};a.UI=function(a,d,h,l,k,m,g,q){var n,u;u=new c.yb;var v=new c.yb,w=[0,0],x=[0,0];n=d.bc(k);null==n&&(d.Nc(k,u),n=u);u=d.bc(g);null==u&&(d.Nc(g,v),u=v);n=n.Ga(u,null,w,x,0);if(2==n)return l=new b(k,l,w[0],w[1],n,g,m,x[0],x[1]),h.push(l),l=d.Ra(k,a),0>l&&d.lb(k,a,
h.length-1),!0;v=!1;k==q&&(l=new b(k,l,w[0],NaN,n,g,m,x[0],NaN),h.push(l),l=d.Ra(k,a),0>l&&d.lb(k,a,h.length-1),v=!0);return v};a.XI=function(a,d,h,l,k,m,g,q){var n,u;u=new c.yb;var v=new c.yb,w=[0,0],x=[0,0];n=d.bc(k);null==n&&(d.Nc(k,u),n=u);u=d.bc(g);null==u&&(d.Nc(g,v),u=v);n=n.Ga(u,null,w,x,0);if(2==n)return l=new b(k,l,w[0],w[1],n,g,m,x[0],x[1]),h.push(l),l=d.Ra(k,a),0>l&&d.lb(k,a,h.length-1),!0;v=!1;k==q&&(l=new b(k,l,w[0],NaN,n,g,m,x[0],NaN),h.push(l),l=d.Ra(k,a),0>l&&d.lb(k,a,h.length-1),
v=!0);return v};a.vI=function(b,e,h,l){var k,m=[];m[0]=new c.b;m[1]=new c.b;m[2]=new c.b;m[3]=new c.b;var g=new c.b,q=new c.b,n=new c.b,u=new c.b,v=null;null!=l&&(v=new c.zg,v.lq());var w,x=0,t=null,D=new c.yb;new c.yb;for(var y=h.Ub(h.Yc);-1!=y;y=h.ac(y)){var z,A=4,B=-1,C,E,G,H=-1,I,K,N,J,L=-1,T=-1,M=NaN;z=!0;var P=!1,Q=!0,O=!0,ca=!0,U=0;G=y;I=0;for(var da=h.Cb(y),aa=h.Ha(y),Z=0;Z<aa;da=h.X(da),Z++){w=h.bc(da);if(null==w){if(!h.Nc(da,D))continue;w=D}-1==H&&(H=da);for(var S=0;x<e.length&&da==e[x].ag;){B=
e[x].Xq;C=e[x].ag;E=e[x].Lx;K=e[x].Il;N=e[x].xk;J=e[x].qE;if(2==e[x].Wh){if(P||(G=B,H=C,I=E,L=K,T=N,M=J,A=2,null!=l?t=new c.Xa:U=0,ca=!1,O=!0),E=e[x].pE,J=e[x].TP,null!=l?(w.Bi(S,e[x].pE,v),t.Bc(v.get(),O)):U++,S=E,P=!0,O=z=!1,x+1==e.length||2!=e[x+1].Wh||e[x+1].ag==C&&e[x+1].Lx!=S)null!=l?(k=new p(t,2,B,C,E,A,G,H,I,K,N,J,L,T,M),l.push(k)):null.add(U),G=B,H=C,I=E,L=K,T=N,M=J,A=2,P=z=!1,O=ca=!0}else{var X=h.X(C);if(x<e.length-1&&e[x+1].ag==X&&e[x+1].xk==N&&2==e[x+1].Wh)E!=S&&(ca&&(null!=l?t=new c.Xa:
U=0),z=0<x&&e[x-1].Xq==B?1==A?0:0==A?1:3:3,null!=l?(w.Bi(S,E,v),t.Bc(v.get(),O),k=new p(t,z,B,C,E,A,G,H,I,K,N,J,L,T,M),l.push(k)):(U++,null.add(U)),S=E,G=B,H=C,I=E,L=K,T=N,M=J,A=z,z=Q=!1,O=ca=!0);else if(!a.FJ(b,h,e,x,g,q)){a.$I(h,e,x,y,da,n,u);var R=!1,X=!1;k=!0;if(!(g.ub(n)||q.ub(n)||g.ub(u)||q.ub(u))){m[0].J(g);m[1].J(q);m[2].J(n);m[3].J(u);m.sort(c.b.bq);var V=m[0],W=m[1],Y=m[2],ba=m[3];V.ub(g)?W.ub(q)?b?(X=R=!0,k=!1):R=!1:ba.ub(q)?b?k=X=R=!0:R=!1:(R=!0,k=W.ub(n)):W.ub(g)?Y.ub(q)?b?(X=R=!0,k=
!1):R=!1:V.ub(q)?b?k=X=R=!0:R=!1:(R=!0,k=Y.ub(n)):Y.ub(g)?ba.ub(q)?b?(X=R=!0,k=!1):R=!1:W.ub(q)?b?k=X=R=!0:R=!1:(R=!0,k=ba.ub(n)):V.ub(q)?b?(X=R=!0,k=!1):R=!1:Y.ub(q)?b?k=X=R=!0:R=!1:(R=!0,k=V.ub(n))}if(R){R=da==C;if(E!=S||R&&0==S)ca&&(null!=l?t=new c.Xa:U=0),null!=l?(w.Bi(S,E,v),t.Bc(v.get(),O)):U++;if(k)if(1!=A){if(E!=S||R&&0==S)null!=l?(k=new p(t,1,B,C,E,A,G,H,I,K,N,J,L,T,M),l.push(k)):null.add(U);if(!X)A=1;else if(x==e.length-2||e[x+2].Xq!=B)A=0}else{if(E!=S||R&&0==S)null!=l?(k=new p(t,3,B,C,
E,A,G,H,I,K,N,J,L,T,M),l.push(k)):null.add(U);A=1}else if(0!=A){if(E!=S||R&&0==S)null!=l?(k=new p(t,0,B,C,E,A,G,H,I,K,N,J,L,T,M),l.push(k)):null.add(U);if(!X)A=0;else if(x==e.length-2||e[x+2].Xq!=B)A=1}else{if(E!=S||R&&0==S)null!=l?(k=new p(t,3,B,C,E,A,G,H,I,K,N,J,L,T,M),l.push(k)):null.add(U);A=0}if(E!=S||R&&0==S)S=E,G=B,H=C,I=E,L=K,T=N,M=J,z=Q=!1,O=ca=!0}}}x++}1!=S&&(ca&&(null!=l?t=new c.Xa:U=0),null!=l?(w.Bi(S,1,v),t.Bc(v.get(),O)):U++,O=ca=!1,Q=!0)}Q&&(E=1,C=h.hk(y),C=h.Ua(C),N=K=-1,J=NaN,z?null!=
l?(k=new p(t,4,B,C,E,A,G,H,I,K,N,J,L,T,M),l.push(k)):null.add(U):(z=1==A?0:0==A?1:3,null!=l?(k=new p(t,z,B,C,E,A,G,H,I,K,N,J,L,T,M),l.push(k)):null.add(U)))}};a.FJ=function(b,e,h,l,k,m){var g=h[l].qE;if(1==g)return a.cJ(b,e,h,l,k,m);if(0==g)return a.IG(b,e,h,l,k,m);throw c.g.wa();};a.cJ=function(a,d,b,l,k,m){var g=new c.yb,q=b[l].ag,n=b[l].Il,u=b[l].xk,v=-1,w=-1,x=-1,p=-1;if(!a&&0<l)var t=b[l-1],v=t.ag,w=t.Il,x=t.xk,p=t.Wh;var y=-1,z=-1,A=-1,B=-1;l<b.length-1&&(t=b[l+1],y=t.ag,z=t.Il,A=t.xk,B=t.Wh);
var C=d.X(q),t=d.X(u);if(!a)return 0<l&&v==q&&w==n&&x==t&&2==p||l<b.length-1&&y==C&&z==n&&A==t&&2==B?(a=d.bc(u),null==a&&(d.Nc(u,g),a=g),m.J(a.Pf(1)),k.pr(m),m.normalize(),k.normalize(),!1):l<b.length-1&&y==q&&z==n&&A==t?(a=d.bc(u),null==a&&(d.Nc(u,g),a=g),k.J(a.Pf(1)),a=d.bc(t),null==a&&(d.Nc(t,g),a=g),m.J(a.Pf(0)),k.Ap(),m.normalize(),k.normalize(),!1):!0;if(l==b.length-1||y!=q||z!=n||A!=t||2==B)return a=d.bc(u),null==a&&(d.Nc(u,g),a=g),m.J(a.Pf(1)),k.pr(m),m.normalize(),k.normalize(),!1;a=d.bc(u);
null==a&&(d.Nc(u,g),a=g);k.J(a.Pf(1));a=d.bc(t);null==a&&(d.Nc(t,g),a=g);m.J(a.Pf(0));k.Ap();m.normalize();k.normalize();return!1};a.IG=function(a,d,b,l,k,m){var g=new c.yb,q=b[l].ag,n=b[l].Il,u=b[l].xk,v=-1,w=-1,x=-1,p=-1;if(!a&&l<b.length-1)var t=b[l+1],v=t.ag,w=t.Il,x=t.xk,p=t.Wh;var y=-1,z=-1,A=-1,t=-1;0<l&&(t=b[l-1],y=t.ag,z=t.Il,A=t.xk,t=t.Wh);var B=d.X(q),C=d.Ua(u);return a?0==l||y!=q||z!=n||A!=C||2==t?(a=d.bc(u),null==a&&(d.Nc(u,g),a=g),m.J(a.Pf(0)),k.pr(m),m.normalize(),k.normalize(),!1):
!0:0<l&&y==q&&z==n&&A==C&&2==t||l<b.length-1&&v==B&&w==n&&x==C&&2==p?(a=d.bc(u),null==a&&(d.Nc(u,g),a=g),m.J(a.Pf(0)),k.pr(m),m.normalize(),k.normalize(),!1):!0};a.$I=function(a,d,b,l,k,m,g){var q=new c.yb,n=a.bc(k);null==n&&(a.Nc(k,q),n=q);b=d[b];d=b.ag;b=b.Lx;k=a.X(d);if(1==b)m.J(n.Pf(1)),-1!=k&&k!=a.hk(l)?(n=a.bc(k),null==n&&(a.Nc(k,q),n=q),g.J(n.Pf(0)),n=a.bc(d),null==n&&a.Nc(d,q)):g.J(m),m.Ap(),g.normalize(),m.normalize();else if(0==b)g.J(n.Pf(b)),m.pr(g),g.normalize(),m.normalize();else throw c.g.wa();
};return a}();c.YG=a})(t||(t={}));(function(c){(function(a){a[a.Linear=0]="Linear";a[a.Angular=1]="Angular";a[a.Area=2]="Area"})(c.QI||(c.QI={}));var p=function(){function a(d,b,f){this.ad=b;this.Cj=f;this.wx=d}a.MC=function(d){return 0!==d.ad?null:-1===d.wx?new a(-1,2,d.Cj*d.Cj):a.re(f[d.wx])};a.re=function(a){a=d[a];return void 0===a?null:a};a.DL=function(d,b,f){var e=null;if(void 0!==f&&null!==f)try{"EPSG"===f.values[0]&&(e=a.re(parseInt(f.values[1])))}catch(c){}null===e&&(e=new a(-1,d,b));return e};
a.prototype.md=function(){return this.wx};a.prototype.oC=function(a){if(a.ad!=this.ad)throw c.g.xa();return this.Cj/a.Cj};a.Mh=function(a,d,b){return d.oC(b)*a};a.NB=function(a,d,b,f,e){b=b.oC(f);for(f=0;f<d;f++)e[f]=a[f]*b};return a}();c.ic=p;for(var g=[109402,4046.8564224,109403,4046.87260987425,109463,100,109401,1E4,109461,225E8,109460,25E8,109451,1E-4,109444,404.68564224000005,109424,404.6849341289498,109428,404.68493792602754,109416,404.67838076760535,109420,404.68423895571647,109448,404.683871963536,
109411,404.6872609874253,109450,.01,109408,3.34450944,109405,.09290304,109430,.09290354800069446,109423,.0929028774400711,109427,.09290287831176021,109441,.09290349665192114,109407,.09290137299531805,109440,.09290286332673177,109431,.09290274144751023,109432,.09290207073852812,109433,.09290279616016,109434,.09290273520025,109419,.09290271785025629,109447,.0929026336004445,109406,.09290341161327487,109453,6.4516E-4,109454,6.451625806477421E-4,109414,1E6,109445,.04046856422400001,109425,.04046849341289498,
109429,.04046849379260275,109417,.04046783807676053,109421,.04046842389557164,109449,.0404683871963536,109412,.04046872609874253,109404,1,109410,1.000027193184865,109413,2589998.4703195216,109452,1E-6,109409,3429904,109458,3434290.937856,109457,3434528.1495040003,109464,1.244521604938272E-7,109455,25.292852640000003,109456,25.29295381171408,109459,2.89612324,109439,2589988.110336,109462,.7168473118308245,109442,.83612736,109422,.83612589696064,109426,.836125904805842,109415,.8361123569578626,109435,
.836124673027592,109436,.836118636646753,109437,.8361251654414399,109438,.83612461680225,109418,.8361244606523066,109446,.8361237024040001,109443,.8361307045194736],b=[9103,2.908882086657216E-4,9104,4.84813681109536E-6,9102,.0174532925199433,9106,.01570796326794897,9105,.01570796326794897,9109,1E-6,9114,9.817477042468104E-4,1031,4.84813681109536E-9,9112,1.570796326794897E-4,9101,1,9113,1.570796326794897E-6],a=[109031,15E4,109461,109030,5E4,109460,1033,.01,109451,9097,20.1168,109444,9052,20.1167824,
109424,9062,20.116782494375872,109428,9038,20.1166195164,109416,9042,20.116765121552632,109420,9301,20.116756,109448,9033,20.11684023368047,109411,109005,.1,109450,9014,1.8288,109408,9002,.3048,109405,9070,.3048008333333334,109430,9051,.3047997333333333,109423,9061,.3047997347632708,109427,9095,.3048007491,109441,9005,.3047972654,109407,9094,.3047997101815088,109440,9080,.3047995102481469,109431,9081,.30479841,109432,9082,.3047996,109433,9083,.3047995,109434,9041,.304799471538676,109419,9300,.3047993333333334,
109447,9003,.3048006096012192,109406,109008,.0254,109453,109009,.0254000508001016,109454,9036,1E3,109414,9098,.201168,109445,9053,.201167824,109425,9063,.2011678249437587,109429,9039,.201166195164,109417,9043,.2011676512155263,109421,9302,.20116756,109449,9034,.2011684023368047,109412,9001,1,109404,9031,1.0000135965,109410,9035,1609.3472186944375,109413,1025,.001,109452,9030,1852,109409,109013,1853.184,109458,109012,1853.248,109457,109016,3.527777777777778E-4,109464,109010,5.0292,109455,109011,5.029210058420118,
109456,109014,1.7018,109459,9093,1609.344,109439,109015,.8466683600033867,109462,9096,.9144,109442,9050,.9143992,109422,9060,.9143992042898124,109426,9037,.9143917962000001,109415,9084,.9143985307444408,109435,9085,.91439523,109436,9086,.9143988,109437,9087,.9143985,109438,9040,.9143984146160287,109418,9099,.914398,109446,109002,.9144018288036576,109443,109001,.9144,109442,109003,20.1168,109444,109004,.201168,109445,109006,.01,109451,109007,.001,109452],d=[],f=[],e=0;e<g.length;e+=2)d[g[e]]=new p(g[e],
2,g[e+1]);g=null;for(e=0;e<b.length;e+=2)d[b[e]]=new p(b[e],1,b[e+1]);b=null;for(e=0;e<a.length;e+=3)d[a[e]]=new p(a[e],0,a[e+1]),f[a[e]]=a[e+2];a=null})(t||(t={}));(function(c){var p=function(){function c(){}c.prototype.set=function(b,a){void 0!==a?(this.Lf=b,this.Ng=a):"number"===typeof b?(this.Lf=b,this.Ng=0):(this.Lf=b.Lf,this.Ng=b.Ng)};c.prototype.value=function(){return this.Lf};c.prototype.sub=function(b){if("number"===typeof b){var a=this.Lf-b;b=this.Ng+2.220446049250313E-16*Math.abs(a)}else a=
this.Lf-b.Lf,b=this.Ng+b.Ng+2.220446049250313E-16*Math.abs(a);this.Lf=a;this.Ng=b};c.prototype.zp=function(b){var a=this.Lf*b.Lf;this.Ng=this.Ng*Math.abs(b.Lf)+b.Ng*Math.abs(this.Lf)+this.Ng*b.Ng+2.220446049250313E-16*Math.abs(a);this.Lf=a};c.prototype.gP=function(){return Math.abs(this.Lf)<=this.Ng};c.prototype.Cq=function(){return this.gP()&&0!=this.Ng};return c}();c.$k=p})(t||(t={}));var Q=new t.b,aa=new t.b,V=new t.b,W=new t.b,Y=new t.b;(function(c){var p;(function(b){b[b.closedPath=1]="closedPath";
b[b.exteriorPath=2]="exteriorPath";b[b.ringAreaValid=4]="ringAreaValid"})(p||(p={}));var g=function(){function b(a,d,b,e,c,l,k){void 0!==d?(this.ab=a,this.lj=d,this.$j=b,this.yh=e,this.ua=l,this.mx=k,this.Ot=c):(this.ab=a.ab,this.lj=a.lj,this.$j=a.$j,this.yh=a.yh,this.ua=a.ua,this.mx=a.mx,this.Ot=a.Ot);this.FD=!0}b.prototype.next=function(){return this.FD?(this.FD=!1,this.yh):-1!=this.yh?(this.yh=this.ab.X(this.yh),this.ua++,-1!=this.yh&&this.yh!=this.Ot?this.yh:this.eQ()):-1};b.prototype.eQ=function(){this.$j=
this.ab.ac(this.$j);for(this.ua=0;-1!=this.lj;){for(;-1!=this.$j;this.$j=this.ab.ac(this.$j))if(this.Ot=this.yh=this.ab.Cb(this.$j),-1!=this.yh)return this.yh;this.lj=this.ab.xe(this.lj);if(-1==this.lj)break;if(!this.mx||c.T.Kc(this.ab.Lb(this.lj)))this.$j=this.ab.Ub(this.lj)}return-1};b.TL=function(a,d,f,e,c,l,k){return new b(a,d,f,e,c,l,k)};return b}();c.xT=g;p=function(){function b(){this.Zm=this.Al=this.Dj=this.Mc=this.Ij=this.jn=this.fi=this.Pc=this.rh=this.vg=this.He=this.vp=this.yp=this.wb=
this.Hk=null;this.Wt=this.Yc=-1;this.pd=0;this.kx=!1;this.vp=this.yp=this.wb=null}b.prototype.Fi=function(a){return null!=this.He?this.He[a]:null};b.prototype.Eh=function(a,d){if(null==this.He){if(null==d)return;this.He=[];for(var b=0,e=this.wb.F();b<e;b++)this.He.push(null)}this.He[a]=d};b.prototype.Mn=function(a,d){this.Pc.L(a,1,d)};b.prototype.Ln=function(a,d){this.Pc.L(a,2,d)};b.prototype.Iy=function(a,d){this.Pc.L(a,6,d)};b.prototype.Go=function(a){return this.Pc.O(a,6)};b.prototype.Gu=function(a,
d){this.Pc.L(a,7,d)};b.prototype.at=function(a){return this.Pc.O(a,0)};b.prototype.JF=function(a,d){this.Mc.L(a,1,d)};b.prototype.NF=function(a,d){this.Mc.L(a,0,d)};b.prototype.uC=function(a){return this.Mc.O(a,7)};b.prototype.Jn=function(a,d){this.Mc.L(a,3,d)};b.prototype.Kn=function(a,d){this.Mc.L(a,4,d)};b.prototype.lQ=function(a){null==this.Mc&&(this.Mc=new c.Fc(8));var d=this.Mc.ae();this.Mc.L(d,2,a);this.Mc.L(d,5,0);this.Mc.L(d,6,0);this.Mc.L(d,7,d);return d};b.prototype.cN=function(a){this.Mc.Jc(a)};
b.prototype.nQ=function(a){null==this.Pc&&(this.Pc=new c.Fc(8),this.bd=new c.Fc(5),this.fi=new c.qd(0),this.jn=new c.qd(0));var d=this.Pc.ae();this.Pc.L(d,0,d);this.Pc.L(d,3,0);this.Pc.L(d,6,0);this.Gu(d,a);d>=this.fi.size&&(a=16>d?16:c.I.truncate(3*d/2),this.fi.resize(a),this.jn.resize(a));this.fi.set(d,0);this.jn.set(d,0);return d};b.prototype.fC=function(a){this.Pc.Jc(a)};b.prototype.dw=function(a){this.bd.Jc(a);this.pd--};b.prototype.oQ=function(a){null==this.Pc&&(this.Pc=new c.Fc(8),this.bd=
new c.Fc(5),this.fi=new c.qd(0),this.jn=new c.qd(0));var d=this.bd.ae(),b=0<=a?a:d;this.bd.L(d,0,b);if(0>a){if(b>=this.wb.F()){a=16>b?16:c.I.truncate(3*b/2);this.wb.resize(a);if(null!=this.He)for(var e=0;e<a;e++)this.He.push(null);null!=this.vg&&this.vg.resize(a);this.yp=this.wb.mc(0)}this.wb.hc(b,-1E38,-1E38);null!=this.He&&(this.He[b]=null);null!=this.vg&&this.vg.write(b,1)}this.bd.L(d,4,2*b);this.pd++;return d};b.prototype.vl=function(a,d,b){var e=-1!=d?this.Ua(d):this.hk(a),c=-1!=e?this.X(e):
-1,l=this.oQ(null==b?this.pd:-1),k=this.gb(l);null!=b&&this.wb.Hu(k,b);this.im(l,a);this.Qc(l,c);this.Rc(l,e);-1!=c&&this.Rc(c,l);-1!=e&&this.Qc(e,l);b=this.vc(a);e=this.Cb(a);-1==d&&this.Wi(a,l);d==e&&this.Ch(a,l);b&&-1==c&&(this.Qc(l,l),this.Rc(l,l));this.hm(a,this.Ha(a)+1);a=this.Vf(a);this.Pk(a,this.F(a)+1);return l};b.prototype.Eo=function(){null==this.Zm&&(this.Zm=new c.Va(this.wb.description));return this.Zm};b.prototype.Op=function(a,d){this.Mc.L(a,2,this.Mc.O(a,2)&-134217729||(1==d?134217728:
0))};b.prototype.Cm=function(a){return 0!=(this.Mc.O(a,2)&134217728)?1:0};b.prototype.LJ=function(a){var d=this.ig(a.D(),a.description);1736==a.D()&&this.Op(d,a.Cm());this.VA(d,a);return d};b.prototype.MJ=function(a){var d=this.ig(a.D(),a.description);this.WA(d,a);return d};b.prototype.VQ=function(a,d){null==this.Pc&&(this.Pc=new c.Fc(8),this.bd=new c.Fc(5),this.fi=new c.qd(0),this.jn=new c.qd(0));this.Pc.ce(this.Pc.Vc+a);this.bd.ce(this.bd.Vc+d);this.fi.xb(this.fi.size+a);this.jn.xb(this.jn.size+
a)};b.prototype.VA=function(a,d){this.VQ(d.ea(),d.F());this.Hk.Pd(d,0,d.F());this.yp=this.wb.mc(0);for(var b=null!=this.He&&null!=d.Ge,e=0,h=d.ea();e<h;e++)if(!(2>d.Ha(e))){var l=this.Cf(a,-1);this.Gn(l,d.vc(e));for(var k=d.Ea(e),m=d.Dc(e);k<m;k++){var g=this.vl(l,-1,null);if(b)if(g=this.gb(g),0!=(d.KC(k)&1))this.Eh(g,null);else{var q=new c.zg;d.bc(k,q,!0);this.Eh(g,q.get())}}}};b.prototype.WA=function(a,d){this.Hk.Pd(d,0,d.F());this.yp=this.wb.mc(0);for(var b=this.Cf(a,-1),e=0,c=d.F();e<c;e++)this.vl(b,
-1,null)};b.prototype.FS=function(a,d,b){var e=this.X(a);if(-1==e)throw c.g.wa();for(var h=this.Eo(),l=this.rd(a),k=0,m=d.kk(b);k<m;k++){var g=this.gb(a),q=this.X(a),n=d.Ho(b,k);0==k&&(n.En(h),this.ah(a,h));322==n.D()?this.Eh(g,null):this.Eh(g,c.T.Yj(n));n.Bn(h);k<m-1?a=this.vl(l,q,h):this.ah(e,h)}};b.prototype.ES=function(a,d,b){var e=this.X(a);if(-1==e)throw c.g.wa();for(var h=this.Eo(),l=this.rd(a),k=0,m=d.kk(b);k<m;k++){var g=this.gb(a),q=this.X(a),n=d.Ho(b,m-k-1);0==k&&(n.Bn(h),this.ah(a,h));
322==n.D()?this.Eh(g,null):this.Eh(g,c.T.Yj(n));n.En(h);k<m-1?a=this.vl(l,q,h):this.ah(e,h)}};b.prototype.tC=function(){var a=new c.i;a.Ja();for(var d=this.Fp(),b=new c.b,e=!0,h=d.next();-1!=h;h=d.next())this.w(h,b),e?a.Db(b.x,b.y):a.Nj(b.x,b.y),e=!1;return a};b.prototype.Eb=function(a){var d=a.D();if(c.T.Kc(d))return this.LJ(a);if(550==d)return this.MJ(a);throw c.g.wa();};b.prototype.XJ=function(a,d){var b=d.D();if(c.T.Kc(b))this.VA(a,d);else if(550==b)this.WA(a,d);else throw c.g.wa();};b.prototype.PJ=
function(a,d){var b=this.ig(1736,a.description);if(2>a.Ha(d))return b;this.Hk.Pd(a,a.Ea(d),a.Dc(d));this.yp=this.wb.mc(0);var e=this.Cf(b,-1);this.Gn(e,a.vc(d)||!0);for(var h=null!=this.He&&null!=a.Ge,l=a.Ea(d),k=a.Dc(d);l<k;l++){var m=this.vl(e,-1,null);if(h)if(m=this.gb(m),0!=(a.KC(l)&1))this.Eh(m,null);else{var g=new c.zg;a.bc(l,g,!0);this.Eh(m,g.get())}}return b};b.prototype.hf=function(a){var d=this.Lb(a),b=c.qH.ig(d,this.Hk.description),e=this.F(a);if(0==e)return b;if(c.T.Kc(d)){for(var d=this.ea(a),
h=c.Ac.Cg(d+1),l=c.Ac.so(d+1,0),k=b.description,m=0,g=k.Aa;m<g;m++){for(var q=k.Hd(m),n=c.pa.Wa(q),u=c.Ac.Tv(q,e),v=this.wb.mc(q),w=0,x=0,p=0,t=this.Ub(a);-1!=t;t=this.ac(t)){var y=0;this.vc(t)&&(y|=1);this.XO(t)&&(y|=4);0!=y&&l.xy(x,y);var z=this.Ha(t);h.write(x++,p);p+=z;if(0==q)for(var z=v,A=u,B=new c.b,y=this.Cb(t);w<p;y=this.X(y),w++){var C=this.gb(y);z.dc(2*C,B);A.Rn(2*w,B)}else for(y=this.Cb(t);w<p;y=this.X(y),w++)for(C=this.gb(y),A=0;A<n;A++)B=v.Ah(C*n+A),u.Uk(w*n+A,B)}b.bm(q,u);h.write(d,
e)}b.KF(l);b.LF(h);b.be(16777215)}else if(550==d){k=b.description;b.resize(e);m=0;for(g=k.Aa;m<g;m++){q=k.Hd(m);n=c.pa.Wa(q);u=b.mc(q);v=this.wb.mc(q);w=0;t=this.Ub(a);z=this.Ha(t);for(y=this.Cb(t);w<z;y=this.X(y),w++)for(C=this.gb(y),A=0;A<n;A++)B=v.Ah(C*n+A),u.Uk(w*n+A,B);b.bm(q,u)}b.be(16777215)}return b};b.prototype.sy=function(a){for(var d=this.Ub(a);-1!=d;d=this.Br(d));var d=this.bO(a),b=this.xe(a);-1!=d?this.JF(d,b):this.Yc=b;-1!=b?this.NF(b,d):this.Wt=d;this.cN(a)};b.prototype.ig=function(a,
d){return void 0===d?this.PB(a,c.Od.Tf()):this.PB(a,d)};b.prototype.PB=function(a,d){var b=this.lQ(a);null==this.wb?this.wb=this.Hk=new c.pe(d):this.Hk.Ik(d);this.vp=this.Hk.description;this.kx=1<this.vp.Aa;-1==this.Yc?this.Yc=b:(this.NF(b,this.Wt),this.JF(this.Wt,b));return this.Wt=b};b.prototype.xe=function(a){return this.Mc.O(a,1)};b.prototype.bO=function(a){return this.Mc.O(a,0)};b.prototype.Lb=function(a){return this.Mc.O(a,2)&2147483647};b.prototype.BF=function(a,d,b){d=this.Dj[d];a=this.uC(a);
a>=d.size&&d.resize(Math.max(c.I.truncate(1.25*a),16),-1);d.write(a,b)};b.prototype.vC=function(a,d){var b=this.uC(a),e=this.Dj[d];return b<e.size?e.read(b):-1};b.prototype.QB=function(){null==this.Dj&&(this.Dj=[]);for(var a=0;a<this.Dj.length;a++)if(null==this.Dj[a])return this.Dj[a]=c.Ac.Cg(0),a;this.Dj.push(c.Ac.Cg(0));return this.Dj.length-1};b.prototype.vR=function(a){this.Dj[a]=null};b.prototype.Ub=function(a){return this.Mc.O(a,3)};b.prototype.Xs=function(a){return this.Mc.O(a,4)};b.prototype.F=
function(a){return this.Mc.O(a,5)};b.prototype.ea=function(a){return this.Mc.O(a,6)};b.prototype.wo=function(a,d,b){for(var e=0,h=this.Yc;-1!=h;h=this.xe(h)){var l=this.Lb(h);if(c.T.Kc(l)&&(!b||1736==l))for(var l=1736==this.Lb(h),k=this.Ub(h);-1!=k;){for(var m=0,g=this.Cb(k);m<c.I.truncate(this.Ha(k)/2);){var q=this.X(g);if(-1==q)break;var n=this.gb(g),u=this.Fi(n);null!=u?n=u.Zb():(u=this.gb(q),n=this.wb.mv(n,u));n<=a?(0==n?0==e&&(e=-1):e=1,q!=this.hk(k)&&(this.Zy(q,g),this.vf(q,!0))):g=this.X(g);
m++}m=this.Cb(k);for(g=this.vc(k)?m:this.hk(k);0<this.Ha(k);)if(q=this.Ua(g),-1!=q){var v=this.gb(q),u=this.Fi(v);null!=u?n=u.Zb():(n=this.gb(g),n=this.wb.mv(n,v));if(n<=a)0==n?0==e&&(e=-1):e=1,this.Zy(q,g),this.vf(q,!1),m==q&&(m=this.Cb(k));else if(g=this.Ua(g),g==m)break}else{this.vf(g,!0);0==e&&(e=-1);break}g=this.Ha(k);d&&(l?3>g:2>g)?(k=this.Br(k),e=0<g?1:0==e?-1:e):k=this.ac(k)}}return e};b.prototype.Zy=function(a,d){var b=this.gb(a),e=this.gb(d);null!=this.vg&&(b=this.vg.read(b),this.vg.write(e,
b));if(null!=this.rh)for(e=0,b=this.rh.length;e<b;e++)if(null!=this.rh[e]){var c=this.Ra(a,e);-1!=c&&this.lb(d,e,c)}};b.prototype.Lr=function(a,d,b){var e=0,h=this.X(a);if(-1==h)throw c.g.wa();for(var l=this.gb(a),k=this.gb(h),m=this.Fi(l),g=null==m?this.wb.mv(l,k):m.Zb(),q=0;q<b;q++){var n=d[q];if(0<n&&1>n){var u=n;null!=m&&(u=0<g?m.qA(n)/g:0);this.wb.uJ(l,k,u,this.Eo());var v=this.vl(this.rd(a),h,this.Eo());e++;if(null!=m){var w=m.xm(0,n),u=this.gb(this.Ua(v));this.Eh(u,w);this.Yi(v,w.oc());if(q==
b-1||1==d[q+1])n=m.xm(n,1),this.Eh(u,n)}}}return e};b.prototype.ah=function(a,d){var b=this.gb(a);this.wb.Hu(b,d);b=this.Fi(b);null!=b&&b.setStart(d);var e=this.Ua(a);-1!=e&&(e=this.gb(e),null!=this.Fi(e)&&b.setEnd(d))};b.prototype.Jk=function(a,d){var b=this.gb(a);this.wb.Rd(b,d)};b.prototype.Yi=function(a,d){this.hc(a,d.x,d.y)};b.prototype.hc=function(a,d,b){var e=this.gb(a);this.wb.hc(e,d,b);e=this.Fi(e);null!=e&&e.Ny(d,b);a=this.Ua(a);-1!=a&&(a=this.gb(a),null!=this.Fi(a)&&e.Ok(d,b))};b.prototype.w=
function(a,d){this.wb.w(this.bd.O(a,0),d)};b.prototype.uc=function(a,d){this.wb.Ba[0].dc(2*this.bd.O(a,0),d)};b.prototype.Fa=function(a){var d=new c.b;this.wb.w(this.bd.O(a,0),d);return d};b.prototype.PC=function(a,d){this.yp.dc(2*a,d)};b.prototype.kd=function(a,d,b){return this.wb.kd(a,this.gb(d),b)};b.prototype.setAttribute=function(a,d,b,e){this.wb.setAttribute(a,this.gb(d),b,e)};b.prototype.gb=function(a){return this.bd.O(a,0)};b.prototype.mk=function(a){var d=new c.b;this.w(a,d);return d.y};
b.prototype.Bq=function(a,d){var b=this.gb(a),e=this.gb(d),c=this.wb.Ba[0].f;return c[2*b]===c[2*e]&&c[2*b+1]===c[2*e+1]};b.prototype.ot=function(a,d){var b=this.gb(a),e=this.wb.Ba[0].f;return e[2*b]===d.x&&e[2*b+1]===d.y};b.prototype.rS=function(a,d){1>d&&(d=1);if(null==this.vg){if(1==d)return;this.vg=c.Ac.kl(this.wb.F(),1)}var b=this.gb(a);b>=this.vg.size&&this.vg.resize(b+1,1);this.vg.write(b,d)};b.prototype.OC=function(a){a=this.gb(a);return null==this.vg||a>=this.vg.size?1:this.vg.read(a)};b.prototype.lb=
function(a,d,b){d=this.rh[d];a=this.gb(a);d.size<this.wb.F()&&d.resize(this.wb.F(),-1);d.write(a,b)};b.prototype.Ra=function(a,d){var b=this.gb(a),e=this.rh[d];return b<e.size?e.read(b):-1};b.prototype.se=function(){null==this.rh&&(this.rh=[]);for(var a=0;a<this.rh.length;a++)if(null==this.rh[a])return this.rh[a]=c.Ac.Cg(0,-1),a;this.rh.push(c.Ac.Cg(0,-1));return this.rh.length-1};b.prototype.bf=function(a){this.rh[a]=null};b.prototype.bc=function(a){return null!=this.He?(a=this.gb(a),this.He[a]):
null};b.prototype.Nc=function(a,d){var b=this.bd.O(a,2);if(-1==b)return!1;if(this.kx){var e=new c.Va;this.Jk(a,e);d.setStart(e);this.Jk(b,e);d.setEnd(e)}else this.wb.uc(this.bd.O(a,0),Q),d.gl(0,Q),this.wb.uc(this.bd.O(b,0),Q),d.gl(1,Q);return!0};b.prototype.iR=function(a,d,b){if(this.kx){var e=new c.Va;this.Jk(a,e);b.setStart(e);this.Jk(d,e);b.setEnd(e)}else this.wb.uc(a,Q),b.gl(0,Q),this.wb.uc(d,Q),b.gl(1,Q)};b.prototype.Cf=function(a,d){var b;if(-1!=d){if(a!=this.Vf(d))throw c.g.wa();b=this.vq(d)}else b=
this.Xs(a);var e=this.nQ(a);-1!=d&&this.Mn(d,e);this.Ln(e,d);this.Mn(e,b);-1!=b?this.Ln(b,e):this.Jn(a,e);-1==d&&this.Kn(a,e);this.gm(a,this.ea(a)+1);return e};b.prototype.YC=function(a,d,b,e){a=this.Cf(a,-1);for(var c=0,l=d,k=!1;l==b&&(k=!0),this.im(l,a),c++,l=this.X(l),l!=d;);this.Gn(a,!0);this.hm(a,c);k&&(d=b);this.Ch(a,d);this.Wi(a,this.Ua(d));this.Ir(a,!1);null!=e&&(e[0]=k);return a};b.prototype.Br=function(a){var d=this.vq(a),b=this.ac(a),e=this.Vf(a);-1!=d?this.Ln(d,b):this.Jn(e,b);-1!=b?this.Mn(b,
d):this.Kn(e,d);this.aL(a);this.gm(e,this.ea(e)-1);this.fC(a);return b};b.prototype.aL=function(a){var d=this.Cb(a);if(-1!=d){for(var b=0,e=this.Ha(a);b<e;b++){var c=d,d=this.X(d);this.dw(c)}d=this.Vf(a);this.Pk(d,this.F(d)-this.Ha(a))}this.hm(a,0)};b.prototype.ac=function(a){return this.Pc.O(a,2)};b.prototype.vq=function(a){return this.Pc.O(a,1)};b.prototype.Ha=function(a){return this.Pc.O(a,3)};b.prototype.vc=function(a){return 0!=(this.Go(a)&1)};b.prototype.Gn=function(a,d){if(this.vc(a)!=d){if(0<
this.Ha(a)){var b=this.Cb(a),e=this.hk(a);d?(this.Qc(e,b),this.Rc(b,e)):(this.Qc(e,-1),this.Rc(b,-1));b=this.gb(e);this.Eh(b,null)}this.Iy(a,(this.Go(a)|1)-1|(d?1:0))}};b.prototype.Vf=function(a){return this.Pc.O(a,7)};b.prototype.XO=function(a){return 0!=(this.Go(a)&2)};b.prototype.Dy=function(a,d){this.Iy(a,(this.Go(a)|2)-2|(d?2:0))};b.prototype.Gw=function(a){if(this.dP(a))return this.fi.get(this.at(a));var d=new c.yb,b=this.Cb(a);if(-1==b)return 0;var e=new c.b;this.w(b,e);for(var h=0,l=0,k=this.Ha(a);l<
k;l++,b=this.X(b)){var g=this.bc(b);if(null==g){if(!this.Nc(b,d))continue;g=d}h+=g.kv(e.x,e.y)}this.Ir(a,!0);this.fi.set(this.at(a),h);return h};b.prototype.Qp=function(a,d,b){d=this.Ij[d];a=this.at(a);d.size<this.fi.size&&d.resize(this.fi.size,-1);d.write(a,b)};b.prototype.Ei=function(a,d){var b=this.at(a),e=this.Ij[d];return b<e.size?e.read(b):-1};b.prototype.Uv=function(){null==this.Ij&&(this.Ij=[]);for(var a=0;a<this.Ij.length;a++)if(null==this.Ij[a])return this.Ij[a]=c.Ac.Cg(0),a;this.Ij.push(c.Ac.Cg(0));
return this.Ij.length-1};b.prototype.ty=function(a){this.Ij[a]=null};b.prototype.dQ=function(a,d,b){if(-1==b)throw c.g.N();if(d!=b){var e=this.ac(b),h=this.vq(b),l=this.Vf(b);-1==h?this.Jn(l,e):this.Ln(h,e);-1==e?this.Kn(l,h):this.Mn(e,h);this.Pk(l,this.F(l)-this.Ha(b));this.gm(l,this.ea(l)-1);h=-1==d?this.Xs(a):this.vq(d);this.Mn(b,h);this.Ln(b,d);-1==d?this.Kn(a,b):this.Mn(d,b);-1==h?this.Jn(a,b):this.Ln(h,b);this.Pk(a,this.F(a)+this.Ha(b));this.gm(a,this.ea(a)+1);this.Gu(b,a)}};b.prototype.zi=
function(a,d){this.wb.Rd(this.gb(d),this.Eo());this.vl(a,-1,this.Eo())};b.prototype.vf=function(a,d){var b=this.rd(a),e=this.Ua(a),h=this.X(a);-1!=e&&this.Qc(e,h);var l=this.Ha(b);a==this.Cb(b)&&this.Ch(b,1<l?h:-1);-1!=h&&this.Rc(h,e);a==this.hk(b)&&this.Wi(b,1<l?e:-1);if(-1!=e&&-1!=h){var e=this.gb(e),k=this.gb(h);if(d){var g=this.Fi(e);null!=g&&(e=new c.b,this.wb.w(k,e),g.vd(e))}else k=this.gb(a),g=this.Fi(k),this.Eh(e,g),null!=g&&(e=this.wb.Fa(e),g.dd(e))}this.hm(b,l-1);b=this.Vf(b);this.Pk(b,
this.F(b)-1);this.dw(a);return h};b.prototype.Cb=function(a){return this.Pc.O(a,4)};b.prototype.hk=function(a){return this.Pc.O(a,5)};b.prototype.X=function(a){return this.bd.O(a,2)};b.prototype.Ua=function(a){return this.bd.O(a,1)};b.prototype.rd=function(a){return this.bd.O(a,3)};b.prototype.Tb=function(a,d){return this.vl(a,-1,d)};b.prototype.Fp=function(a){if(void 0===a)return this.Fp(!1);if(a instanceof g)return new g(a);var d,b=-1,e=-1,h=-1,l=0,k=!1;for(d=this.Yc;-1!=d;d=this.xe(d))if(!a||c.T.Kc(this.Lb(d))){for(b=
this.Ub(d);-1!=b;b=this.ac(b))if(h=e=this.Cb(b),l=0,-1!=e){k=!0;break}if(k)break}return g.TL(this,d,b,e,h,l,a)};b.prototype.Oe=function(a){this.Hk.Oe(a);if(null!=this.He)for(var d=0,b=this.He.length;d<b;d++)null!=this.He[d]&&this.He[d].Oe(a)};b.prototype.Sp=function(a,d,b,e){e?this.FS(a,d,b):this.ES(a,d,b)};b.prototype.Rc=function(a,d){this.bd.L(a,1,d)};b.prototype.Qc=function(a,d){this.bd.L(a,2,d)};b.prototype.im=function(a,d){this.bd.L(a,3,d)};b.prototype.hm=function(a,d){this.Pc.L(a,3,d)};b.prototype.Ch=
function(a,d){this.Pc.L(a,4,d)};b.prototype.Wi=function(a,d){this.Pc.L(a,5,d)};b.prototype.gm=function(a,d){this.Mc.L(a,6,d)};b.prototype.Pk=function(a,d){this.Mc.L(a,5,d)};b.prototype.iF=function(a){var d=a;do{var b=this.X(d);this.Qc(d,this.Ua(d));this.Rc(d,b);d=b}while(d!=a)};b.prototype.WF=function(a){this.pd=a};b.prototype.xu=function(a){var d=this.vq(a),b=this.ac(a),e=this.Vf(a);-1!=d?this.Ln(d,b):this.Jn(e,b);-1!=b?this.Mn(b,d):this.Kn(e,d);this.Ch(a,-1);this.Wi(a,-1);this.fC(a)};b.prototype.Ui=
function(a,d){var b=this.Ua(a),e=this.X(a);-1!=b&&this.Qc(b,e);-1!=e&&this.Rc(e,b);if(-1!=b&&-1!=e)if(b=this.gb(b),e=this.gb(e),d){var h=this.Fi(b);if(null!=h){var l=new c.b;this.wb.w(e,l);h.vd(l)}}else e=this.gb(a),h=this.Fi(e),this.Eh(b,h),null!=h&&(l=new c.b,this.wb.w(b,l),h.dd(l));this.dw(a)};b.prototype.dP=function(a){return 0!=(this.Go(a)&4)};b.prototype.Ir=function(a,d){this.Iy(a,(this.Go(a)|4)-4|(d?4:0))};b.prototype.Lu=function(a,d){var b=this.bd.f;this.wb.kc();var e=this.wb.Ba[0].f;a.xd(0,
d,function(a,d){var c=b[5*a],g=b[5*d],r=e[2*c],c=e[2*c+1],q=e[2*g],g=e[2*g+1];return c<g?-1:c>g?1:r<q?-1:r>q?1:0})};b.prototype.rO=function(){for(var a=this.Yc;-1!=a;a=this.xe(a))if(!c.T.Kc(this.Lb(a)))return!0;return!1};b.prototype.Vy=function(a,d){for(var b=this.Ub(a),e=this.Ub(d),c=this.Xs(a),l=this.Xs(d),k=this.Ub(a);-1!=k;k=this.ac(k))this.Gu(k,d);for(k=this.Ub(d);-1!=k;k=this.ac(k))this.Gu(k,a);this.Jn(a,e);this.Jn(d,b);this.Kn(a,l);this.Kn(d,c);b=this.F(a);e=this.ea(a);c=this.ea(d);this.Pk(a,
this.F(d));this.Pk(d,b);this.gm(a,c);this.gm(d,e);b=this.Mc.O(a,2);this.Mc.L(a,2,this.Mc.O(d,2));this.Mc.L(d,2,b)};return b}();c.ed=p})(t||(t={}));(function(c){var p=function(g){function b(a,d,b,e){g.call(this);this.R=new c.i;void 0===a?this.LB():"number"===typeof a?this.zL(a,d,b,e):a instanceof c.Va?void 0!==d?this.Js(a,d,b):this.AL(a):a instanceof c.pa?void 0!==d?this.CL(a,d):this.BL(a):a instanceof c.i?this.yL(a):this.LB()}M(b,g);b.prototype.Js=function(a,d,b){this.description=c.Od.Tf();this.R.Ja();
a.s()||this.sv(a,d,b)};b.prototype.yL=function(a){this.description=c.Od.Tf();this.R.K(a);this.R.normalize()};b.prototype.BL=function(a){if(null==a)throw c.g.N();this.description=a;this.R.Ja()};b.prototype.CL=function(a,d){if(null==a)throw c.g.N();this.description=a;this.R.K(d);this.R.normalize()};b.prototype.LB=function(){this.description=c.Od.Tf();this.R.Ja()};b.prototype.AL=function(a){this.description=c.Od.Tf();this.R.Ja();a.s()||this.sv(a)};b.prototype.zL=function(a,d,b,e){this.description=c.Od.Tf();
this.K(a,d,b,e)};b.prototype.K=function(a,d,b,e){this.qc();if("number"===typeof a)this.R.K(a,d,b,e);else for(this.Ja(),d=0,b=a.length;d<b;d++)this.Db(a[d])};b.prototype.Bu=function(a){this.qc();if(!a.fP())throw c.g.N();this.R.K(a)};b.prototype.Ja=function(){this.qc();this.R.Ja()};b.prototype.s=function(){return this.R.s()};b.prototype.aa=function(){return this.R.aa()};b.prototype.ba=function(){return this.R.ba()};b.prototype.lw=function(){return this.R.lw()};b.prototype.Us=function(){return this.R.Us()};
b.prototype.pq=function(){return this.R.Af()};b.prototype.Db=function(a){if(a instanceof c.b)this.qc(),this.R.Db(a);else if(a instanceof c.i)this.qc(),this.R.Db(a);else if(a instanceof c.Va){if(this.qc(),!a.sc()){var d=a.description;this.description!=d&&this.Ik(d);if(this.s())this.sv(a);else{this.R.Db(a.w());for(var f=1,e=d.Aa;f<e;f++)for(var h=d.Fd(f),l=c.pa.Wa(h),k=0;k<l;k++){var g=a.kd(h,k),r=this.zh(h,k);r.Db(g);setInterval(h,k,r)}}}}else if(a instanceof b&&!a.s())for(d=a.description,d!=this.description&&
this.Ik(d),this.R.Db(a.R),f=1,e=d.Aa;f<e;f++)for(h=d.Hd(f),l=c.pa.Wa(h),k=0;k<l;k++)g=a.zh(h,k),r=this.zh(h,k),r.Db(g),setInterval(h,k,r)};b.prototype.sv=function(a,d,b){if(void 0!==d){this.R.K(a.w(),d,b);d=a.description;b=1;for(var e=d.Aa;b<e;b++)for(var h=d.Fd(b),l=c.pa.Wa(h),k=0;k<l;k++){var g=a.kd(h,k);this.setInterval(h,k,g,g)}}else for(this.R.K(a.fa[0],a.fa[1]),d=a.description,b=1,e=d.Aa;b<e;b++)for(h=d.Fd(b),l=c.pa.Wa(h),k=0;k<l;k++)g=a.kd(h,k),this.setInterval(h,k,g,g)};b.prototype.setInterval=
function(a,d,b,e){var h=null;"number"===typeof b?h=new c.Nd(b,e):h=b;this.qc();if(0==a)if(0==d)this.R.v=h.qa,this.R.B=h.va;else if(1==d)this.R.C=h.qa,this.R.G=h.va;else throw c.g.Sc();else this.CA(0,a,d,h.qa),this.CA(1,a,d,h.va)};b.prototype.P=function(a,d){this.qc();this.R.P(a,d)};b.prototype.Oe=function(a){if(a instanceof c.Ag)this.qc(),a.$y(this.R);else if(this.qc(),!this.R.s()){var d=new c.dH;this.Cn(d);d.WO()?d.Ja():a.$y(d)}};b.prototype.copyTo=function(a){if(a.D()!=this.D())throw c.g.N();a.qc();
a.description=this.description;a.R.K(this.R);a.fa=null;if(null!=this.fa){a.ms();for(var d=0;d<2*(this.description.ke.length-2);d++)a.fa[d]=this.fa[d]}};b.prototype.Pa=function(){return new b(this.description)};b.prototype.Lh=function(){return this.R.sN()};b.prototype.Zb=function(){return this.R.zC()};b.prototype.D=function(){return 197};b.prototype.fb=function(){return 2};b.prototype.Ep=function(a){this.copyTo(a)};b.prototype.o=function(a){a.v=this.R.v;a.C=this.R.C;a.B=this.R.B;a.G=this.R.G};b.prototype.Cn=
function(a){a.v=this.R.v;a.C=this.R.C;a.B=this.R.B;a.G=this.R.G;a.K(this.R.v,this.R.C,this.yd(0,1,0),this.R.B,this.R.G,this.yd(1,1,0))};b.prototype.zh=function(a,d){var b=new c.Nd;b.K(this.yd(0,a,d),this.yd(1,a,d));return b};b.prototype.uf=function(a,d){d.Qf(this.description);var b=this.description.Aa-1;switch(a){case 0:for(var e=0;e<b;e++)for(var h=this.description.Hd(e),l=c.pa.Wa(h),k=0;k<l;k++)d.setAttribute(h,k,this.yd(0,h,k));d.hc(this.R.v,this.R.C);break;case 1:for(e=0;e<b;e++)for(h=this.description.Hd(e),
l=c.pa.Wa(h),k=0;k<l;k++)d.setAttribute(h,k,this.yd(1,h,k));d.hc(this.R.v,this.R.G);break;case 2:for(e=0;e<b;e++)for(h=this.description.Hd(e),l=c.pa.Wa(h),k=0;k<l;k++)d.setAttribute(h,k,this.yd(0,h,k));d.hc(this.R.B,this.R.G);break;case 3:for(e=0;e<b;e++)for(h=this.description.Hd(e),l=c.pa.Wa(h),k=0;k<l;k++)d.setAttribute(h,k,this.yd(1,h,k));d.hc(this.R.B,this.R.C);break;default:throw c.g.Sc();}};b.prototype.uu=function(a,b){var f=this.R.uu(a);b.ma(f.x,f.y)};b.prototype.AN=function(a,b){return b*
(a.tp-2)};b.prototype.jC=function(a,b,f){if(this.R.s())throw c.g.ra("empty geometry");if(0==b)return 0!=a?0!=f?this.R.G:this.R.B:0!=f?this.R.C:this.R.v;if(f>=c.pa.Wa(b))throw c.g.N();var e=this.description.zf(b);this.ms();return 0<=e?this.fa[this.AN(this.description,a)+this.description.YN(e)-2+f]:c.pa.ve(b)};b.prototype.ms=function(){this.qc();if(null==this.fa&&2<this.description.ke.length){this.fa=[];for(var a=b.V(this.description,0),d=b.V(this.description,1),f=0,e=1,h=this.description.Aa;e<h;e++)for(var l=
this.description.Hd(e),k=c.pa.Wa(l),l=c.pa.ve(l),g=0;g<k;g++)this.fa[a+f]=l,this.fa[d+f]=l,f++}};b.prototype.nm=function(a){if(null!=this.fa)if(2<a.ke.length){for(var d=c.Od.hu(a,this.description),f=[],e=b.V(this.description,0),h=b.V(this.description,1),l=b.V(a,0),k=b.V(a,1),g=0,r=1,q=a.Aa;r<q;r++){var n=a.Hd(r),u=c.pa.Wa(n);if(-1==d[r])for(var v=c.pa.ve(n),n=0;n<u;n++)f[l+g]=v,f[k+g]=v,g++;else for(v=this.description.ej(d[r])-2,n=0;n<u;n++)f[l+g]=this.fa[e+v],f[k+g]=this.fa[h+v],g++,v++}this.fa=
f}else this.fa=null;this.description=a};b.prototype.yd=function(a,d,f){if(this.R.s())throw c.g.ra("This operation was performed on an Empty Geometry.");if(0==d)return 0!=a?0!=f?this.R.G:this.R.B:0!=f?this.R.C:this.R.v;if(f>=c.pa.Wa(d))throw c.g.Sc();var e=this.description.zf(d);return 0<=e?(this.ms(),this.fa[b.V(this.description,a)+this.description.ej(e)-2+f]):c.pa.ve(d)};b.prototype.CA=function(a,d,f,e){this.qc();if(0==d)0!=a?0!=f?this.R.G=e:this.R.B=e:0!=f?this.R.C=e:this.R.v=e;else{if(f>=c.pa.Wa(d))throw c.g.Sc();
if(!this.hasAttribute(d)){if(c.pa.kD(d,e))return;this.Ne(d)}d=this.description.zf(d);this.ms();this.fa[b.V(this.description,a)+this.description.ej(d)-2+f]=e}};b.V=function(a,b){return b*(a.ke.length-2)};b.prototype.Ga=function(a){this.qc();var b=new c.i;a.o(b);return this.R.Ga(b)};b.prototype.jc=function(a){return a instanceof c.i?this.R.jc(a):this.R.jc(a.R)};b.prototype.offset=function(a,b){this.qc();this.R.offset(a,b)};b.prototype.normalize=function(){this.qc();this.R.normalize()};b.prototype.Af=
function(a){if(void 0!==a)if(a.Qf(this.description),this.s())a.Ja();else{for(var b=this.description.Aa,f=1;f<b;f++)for(var e=this.description.Hd(f),h=c.pa.Wa(e),l=0;l<h;l++){var k=.5*(this.jC(0,e,l)+this.jC(1,e,l));a.setAttribute(e,l,k)}a.hc(this.R.Af())}else{a=new c.Va(this.description);if(this.s())return a;b=this.description.Aa;for(f=1;f<b;f++)for(e=this.description.Fd(f),h=c.pa.Wa(e),l=0;l<h;l++)k=.5*(this.yd(0,e,l)+this.yd(1,e,l)),a.setAttribute(e,l,k);a.hc(this.R.lw(),this.R.Us());return a}};
b.prototype.yw=function(){return new c.Va(this.R.yw())};b.prototype.contains=function(a){return a instanceof c.Va?a.s()?!1:this.R.contains(a.lk(),a.mk()):this.R.contains(a.R)};b.prototype.lc=function(a){if(a==this)return!0;if(!(a instanceof b)||this.description!=a.description)return!1;if(this.s())return a.s()?!0:!1;if(!this.R.lc(a.R))return!1;for(var d=0,f=2*(this.description.ke.length-2);d<f;d++)if(this.fa[d]!=a.fa[d])return!1;return!0};b.prototype.gc=function(){var a=this.description.gc(),a=c.I.jg(a,
this.R.gc());if(!this.s()&&null!=this.fa)for(var b=0,f=2*(this.description.ke.length-2);b<f;b++)a=c.I.jg(a,this.fa[b]);return a};b.prototype.Rf=function(){return c.Gh.il(this,null)};b.prototype.toString=function(){return this.s()?"Envelope: []":"Envelope: ["+this.R.v+", "+this.R.C+", "+this.R.B+", "+this.R.G+"]"};return b}(c.T);c.Uj=p})(t||(t={}));(function(c){var p=function(){function g(b,a,d,f){void 0===b?this.Ja():(this.v=b,this.C=a,this.B=d,this.G=f)}g.Oa=function(b,a,d,f){var e=new g;e.v=b;e.C=
a;e.B=d;e.G=f;return e};g.prototype.K=function(b,a,d,f){"number"===typeof b?void 0!==d?(this.v=b,this.C=a,this.B=d,this.G=f,this.normalize()):(this.v=b,this.C=a,this.B=b,this.G=a):b instanceof c.b?void 0!==a?(this.v=b.x-.5*a,this.B=this.v+a,this.C=b.y-.5*d,this.G=this.C+d,this.normalize()):(this.v=b.x,this.C=b.y,this.B=b.x,this.G=b.y):b instanceof g?this.K(b.v,b.C,b.B,b.G):b instanceof c.Nd&&(b.s()||a.s()?this.Ja():(this.v=b.qa,this.B=b.va,this.C=a.qa,this.G=a.va))};g.prototype.JN=function(b,a){var d=
new g;d.K(this.v,this.C,this.B,this.G);d.P(b,a);return d};g.prototype.Ey=function(b,a){if(void 0!==a)if(0==a)this.Ja();else{this.v=b[0].x;this.C=b[0].y;this.B=this.v;this.G=this.C;for(var d=1;d<a;d++){var f=b[d];f.x<this.v?this.v=f.x:f.x>this.B&&(this.B=f.x);f.y<this.C?this.C=f.y:f.y>this.G&&(this.G=f.y)}}else if(null==b||0==b.length)this.Ja();else for(f=b[0],this.K(f.x,f.y),d=1;d<b.length;d++)f=b[d],this.Nj(f.x,f.y)};g.prototype.Ja=function(){this.G=this.B=this.C=this.v=NaN};g.prototype.s=function(){return isNaN(this.v)};
g.prototype.Db=function(b,a){"number"===typeof b?this.s()?(this.v=b,this.C=a,this.B=b,this.G=a):(this.v>b?this.v=b:this.B<b&&(this.B=b),this.C>a?this.C=a:this.G<a&&(this.G=a)):b instanceof c.b?this.Db(b.x,b.y):b instanceof c.de?this.Db(b.x,b.y):b instanceof g&&!b.s()&&(this.Db(b.v,b.C),this.Db(b.B,b.G))};g.prototype.Nj=function(b,a){this.v>b?this.v=b:this.B<b&&(this.B=b);this.C>a?this.C=a:this.G<a&&(this.G=a)};g.prototype.P=function(b,a){this.s()||(this.v-=b,this.B+=b,this.C-=a,this.G+=a,(this.v>
this.B||this.C>this.G)&&this.Ja())};g.prototype.scale=function(b){0>b&&this.Ja();this.s()||(this.v*=b,this.B*=b,this.C*=b,this.G*=b)};g.prototype.jc=function(b){return!this.s()&&!b.s()&&(this.v<=b.v?this.B>=b.v:b.B>=this.v)&&(this.C<=b.C?this.G>=b.C:b.G>=this.C)};g.prototype.oD=function(b){return(this.v<=b.v?this.B>=b.v:b.B>=this.v)&&(this.C<=b.C?this.G>=b.C:b.G>=this.C)};g.prototype.Ga=function(b){if(this.s()||b.s())return!1;b.v>this.v&&(this.v=b.v);b.B<this.B&&(this.B=b.B);b.C>this.C&&(this.C=b.C);
b.G<this.G&&(this.G=b.G);(b=this.v<=this.B&&this.C<=this.G)||this.Ja();return b};g.prototype.uu=function(b){switch(b){case 0:return c.b.Oa(this.v,this.C);case 1:return c.b.Oa(this.v,this.G);case 2:return c.b.Oa(this.B,this.G);case 3:return c.b.Oa(this.B,this.C);default:throw c.g.Sc();}};g.prototype.hy=function(b){if(null==b||4>b.length)throw c.g.N();null!=b[0]?b[0].ma(this.v,this.C):b[0]=c.b.Oa(this.v,this.C);null!=b[1]?b[1].ma(this.v,this.G):b[1]=c.b.Oa(this.v,this.G);null!=b[2]?b[2].ma(this.B,this.G):
b[2]=c.b.Oa(this.B,this.G);null!=b[3]?b[3].ma(this.B,this.C):b[3]=c.b.Oa(this.B,this.C)};g.prototype.sN=function(){return this.s()?0:this.aa()*this.ba()};g.prototype.zC=function(){return this.s()?0:2*(this.aa()+this.ba())};g.prototype.lw=function(){return(this.B+this.v)/2};g.prototype.Us=function(){return(this.G+this.C)/2};g.prototype.aa=function(){return this.B-this.v};g.prototype.ba=function(){return this.G-this.C};g.prototype.move=function(b,a){this.s()||(this.v+=b,this.C+=a,this.B+=b,this.G+=
a)};g.prototype.offset=function(b,a){this.v+=b;this.B+=b;this.C+=a;this.G+=a};g.prototype.normalize=function(){if(!this.s()){var b=Math.min(this.v,this.B),a=Math.max(this.v,this.B);this.v=b;this.B=a;b=Math.min(this.C,this.G);a=Math.max(this.C,this.G);this.C=b;this.G=a}};g.prototype.Yl=function(b){b.ma(this.v,this.C)};g.prototype.VE=function(b){b.ma(this.B,this.C)};g.prototype.YE=function(b){b.ma(this.v,this.G)};g.prototype.Zl=function(b){b.ma(this.B,this.G)};g.prototype.fP=function(){return this.s()||
this.v<=this.B&&this.C<=this.G};g.prototype.Af=function(){return c.b.Oa((this.B+this.v)/2,(this.G+this.C)/2)};g.prototype.yw=function(){return c.b.Oa(this.v,this.C)};g.prototype.contains=function(b,a){if(void 0!==a)return b>=this.v&&b<=this.B&&a>=this.C&&a<=this.G;if(b instanceof c.Va)return this.contains(b.lk(),b.mk());if(b instanceof c.b)return this.contains(b.x,b.y);if(b instanceof g)return b.v>=this.v&&b.B<=this.B&&b.C>=this.C&&b.G<=this.G;throw c.g.N();};g.prototype.jl=function(b,a){if(void 0!==
a)return b>this.v&&b<this.B&&a>this.C&&a<this.G;if(b instanceof c.b)return this.jl(b.x,b.y);if(b instanceof g)return b.v>this.v&&b.B<this.B&&b.C>this.C&&b.G<this.G;throw c.g.N();};g.prototype.lc=function(b){return b==this?!0:b instanceof g?this.s()&&b.s()?!0:this.v!=b.v||this.C!=b.C||this.B!=b.B||this.G!=b.G?!1:!0:!1};g.prototype.gc=function(){var b=this.v,b=c.I.truncate(b^b>>>32),a=c.I.jg(b),b=this.B,b=c.I.truncate(b^b>>>32),a=c.I.jg(b,a),b=this.C,b=c.I.truncate(b^b>>>32),a=c.I.jg(b,a),b=this.G,
b=c.I.truncate(b^b>>>32);return a=c.I.jg(b,a)};g.prototype.vv=function(b){var a=new c.b;a.J(b);if(a.pv())return a;if(this.s())return a.EA(),a;a.x<this.v?a.x=this.v:a.x>this.B&&(a.x=this.B);a.y<this.C?a.y=this.C:a.y>this.G&&(a.y=this.G);if(!a.lc(b))return a;b=this.Af();(a.x<b.x?a.x-this.v:this.B-a.x)<(a.y<b.y?a.y-this.C:this.G-a.y)?a.x=a.x<b.x?this.v:this.B:a.y=a.y<b.y?this.C:this.G;return a};g.prototype.ls=function(b){if(this.s())return NaN;if(b.x==this.v)return b.y-this.C;var a=this.G-this.C,d=this.B-
this.v;return b.y==this.G?a+b.x-this.v:b.x==this.B?a+d+this.G-b.y:b.y==this.C?2*a+d+this.B-b.x:this.ls(this.vv(b))};g.prototype.uA=function(b){if(this.s())return-1;b=this.ls(b);var a=this.G-this.C,d=this.B-this.v;return b<a?0:(b-=a)<d?1:b-d<a?2:3};g.prototype.lv=function(){return this.s()?2.220446049250313E-14:2.220446049250313E-14*(Math.abs(this.v)+Math.abs(this.B)+Math.abs(this.C)+Math.abs(this.G)+1)};g.prototype.Nv=function(b,a){var d=this.dj(b),f=this.dj(a);if(0!=(d&f))return 0;if(0==(d|f))return 4;
var e=(0!=d?1:0)|(0!=f?2:0);do{var c=a.x-b.x,l=a.y-b.y;c>l?0!=(d&g.Cc)?(0!=(d&g.ob)?(b.y+=l*(this.v-b.x)/c,b.x=this.v):(b.y+=l*(this.B-b.x)/c,b.x=this.B),d=this.dj(b)):0!=(f&g.Cc)?(0!=(f&g.ob)?(a.y+=l*(this.v-a.x)/c,a.x=this.v):(a.y+=l*(this.B-a.x)/c,a.x=this.B),f=this.dj(a)):0!=d?(0!=(d&g.$b)?(b.x+=c*(this.C-b.y)/l,b.y=this.C):(b.x+=c*(this.G-b.y)/l,b.y=this.G),d=this.dj(b)):(0!=(f&g.$b)?(a.x+=c*(this.C-a.y)/l,a.y=this.C):(a.x+=c*(this.G-a.y)/l,a.y=this.G),f=this.dj(a)):0!=(d&g.Bd)?(0!=(d&g.$b)?
(b.x+=c*(this.C-b.y)/l,b.y=this.C):(b.x+=c*(this.G-b.y)/l,b.y=this.G),d=this.dj(b)):0!=(f&g.Bd)?(0!=(f&g.$b)?(a.x+=c*(this.C-a.y)/l,a.y=this.C):(a.x+=c*(this.G-a.y)/l,a.y=this.G),f=this.dj(a)):0!=d?(0!=(d&g.ob)?(b.y+=l*(this.v-b.x)/c,b.x=this.v):(b.y+=l*(this.B-b.x)/c,b.x=this.B),d=this.dj(b)):(0!=(f&g.ob)?(a.y+=l*(this.v-a.x)/c,a.x=this.v):(a.y+=l*(this.B-a.x)/c,a.x=this.B),f=this.dj(a));if(0!=(d&f))return 0}while(0!=(d|f));return e};g.prototype.dj=function(b){return(b.x<this.v?1:0)|(b.x>this.B?
1:0)<<1|(b.y<this.C?1:0)<<2|(b.y>this.G?1:0)<<3};g.prototype.lg=function(b){return!this.s()&&(this.aa()<=b||this.ba()<=b)};g.prototype.Fb=function(b){return b instanceof c.b?Math.sqrt(this.dG(b)):Math.sqrt(this.Nu(b))};g.prototype.Nu=function(b){var a=0,d=0,f;f=this.v-b.B;f>a&&(a=f);f=this.C-b.G;f>d&&(d=f);f=b.v-this.B;f>a&&(a=f);f=b.C-this.G;f>d&&(d=f);return a*a+d*d};g.prototype.dG=function(b){var a=0,d=0,f;f=this.v-b.x;f>a&&(a=f);f=this.C-b.y;f>d&&(d=f);f=b.x-this.B;f>a&&(a=f);f=b.y-this.G;f>d&&
(d=f);return a*a+d*d};g.prototype.vu=function(b){this.s()?b.Ja():b.K(this.v,this.B)};g.ob=1;g.$b=4;g.Cc=3;g.Bd=12;return g}();c.i=p})(t||(t={}));(function(c){var p;(function(b){b[b.initialize=0]="initialize";b[b.initializeRed=1]="initializeRed";b[b.initializeBlue=2]="initializeBlue";b[b.initializeRedBlue=3]="initializeRedBlue";b[b.sweep=4]="sweep";b[b.sweepBruteForce=5]="sweepBruteForce";b[b.sweepRedBlueBruteForce=6]="sweepRedBlueBruteForce";b[b.sweepRedBlue=7]="sweepRedBlue";b[b.sweepRed=8]="sweepRed";
b[b.sweepBlue=9]="sweepBlue";b[b.iterate=10]="iterate";b[b.iterateRed=11]="iterateRed";b[b.iterateBlue=12]="iterateBlue";b[b.iterateBruteForce=13]="iterateBruteForce";b[b.iterateRedBlueBruteForce=14]="iterateRedBlueBruteForce";b[b.resetRed=15]="resetRed";b[b.resetBlue=16]="resetBlue"})(p||(p={}));var g=function(){function b(a,b){this.sh=a;this.GD=b}b.prototype.Yp=function(a,b,f){this.sh.DS(f,a,b,this.GD)};b.prototype.Lo=function(a){return this.sh.oq(a,this.GD)};return b}();p=function(){function b(){this.Ut=
this.cn=this.Ve=this.Zc=null;this.ep=new c.i;this.Al=this.Mi=this.Ni=this.od=this.rf=this.ud=this.Mt=this.Wm=this.Xc=this.vb=null;this.Hb=-1;this.ka=0;this.Qj()}b.prototype.Up=function(){this.Qj();this.zt=!0;null==this.vb?(this.Wm=new c.ga(0),this.vb=[]):(this.Wm.cf(0),this.vb.length=0)};b.prototype.Uc=function(a,b){if(!this.zt)throw c.g.xa();var f=new c.i;f.K(b);this.Wm.add(a);this.vb.push(f)};b.prototype.vo=function(){if(!this.zt)throw c.g.xa();this.zt=!1;null!=this.vb&&0<this.vb.length&&(this.Hb=
0,this.Ec=!1)};b.prototype.gG=function(){this.Qj();this.yt=!0;null==this.vb?(this.Wm=new c.ga(0),this.vb=[]):(this.Wm.cf(0),this.vb.length=0)};b.prototype.NA=function(a,b){if(!this.yt)throw c.g.xa();var f=new c.i;f.K(b);this.Wm.add(a);this.vb.push(f)};b.prototype.ZB=function(){if(!this.yt)throw c.g.xa();this.yt=!1;null!=this.vb&&0<this.vb.length&&null!=this.Xc&&0<this.Xc.length&&(-1==this.Hb?this.Hb=3:2==this.Hb?this.Hb=3:3!=this.Hb&&(this.Hb=1),this.Ec=!1)};b.prototype.fG=function(){this.Qj();this.xt=
!0;null==this.Xc?(this.Mt=new c.ga(0),this.Xc=[]):(this.Mt.cf(0),this.Xc.length=0)};b.prototype.KA=function(a,b){if(!this.xt)throw c.g.xa();var f=new c.i;f.K(b);this.Mt.add(a);this.Xc.push(f)};b.prototype.YB=function(){if(!this.xt)throw c.g.xa();this.xt=!1;null!=this.vb&&0<this.vb.length&&null!=this.Xc&&0<this.Xc.length&&(-1==this.Hb?this.Hb=3:1==this.Hb?this.Hb=3:3!=this.Hb&&(this.Hb=2),this.Ec=!1)};b.prototype.next=function(){if(this.Ec)return!1;for(var a=!0;a;)switch(this.Hb){case 0:a=this.Qw();
break;case 1:a=this.AO();break;case 2:a=this.xO();break;case 3:a=this.zO();break;case 4:a=this.NS();break;case 5:a=this.JS();break;case 6:a=this.KS();break;case 7:a=this.LS();break;case 8:a=this.Pu();break;case 9:a=this.Wy();break;case 10:a=this.$w();break;case 11:a=this.kP();break;case 12:a=this.hP();break;case 13:a=this.iP();break;case 14:a=this.jP();break;case 15:a=this.eF();break;case 16:a=this.dF();break;default:throw c.g.wa();}return this.Ec?!1:!0};b.prototype.VF=function(a){this.ka=a};b.prototype.Fw=
function(a){return this.vb[a]};b.prototype.jw=function(a){return this.Xc[a]};b.prototype.jk=function(a){return this.Wm.read(a)};b.prototype.ek=function(a){return this.Mt.read(a)};b.Cv=function(a){return 1==(a&1)};b.Yk=function(a){return 0==(a&1)};b.prototype.Qj=function(){this.zt=this.xt=this.yt=!1;this.pf=this.qf=this.sg=this.$d=-1;this.Ec=!0};b.prototype.Qw=function(){this.mf=this.Ff=-1;if(10>this.vb.length)return this.$d=this.vb.length,this.Hb=5,!0;null==this.Zc&&(this.Zc=new c.aq(!0),this.cn=
this.Zc.Re(),this.ud=new c.ga(0));this.Zc.Up();for(var a=0;a<this.vb.length;a++){var b=this.vb[a];this.Zc.fq(b.v,b.B)}this.Zc.vo();this.ud.xb(2*this.vb.length);this.ud.resize(0);for(a=0;a<2*this.vb.length;a++)this.ud.add(a);this.Kr(this.ud,2*this.vb.length,!0);this.$d=2*this.vb.length;this.Hb=4;return!0};b.prototype.AO=function(){this.mf=this.Ff=-1;if(10>this.vb.length||10>this.Xc.length)return this.$d=this.vb.length,this.Hb=6,!0;null==this.Zc&&(this.Zc=new c.aq(!0),this.cn=this.Zc.Re(),this.ud=new c.ga(0));
this.Zc.Up();for(var a=0;a<this.vb.length;a++){var b=this.vb[a];this.Zc.fq(b.v,b.B)}this.Zc.vo();this.ud.xb(2*this.vb.length);this.ud.resize(0);for(a=0;a<2*this.vb.length;a++)this.ud.add(a);this.Kr(this.ud,this.ud.size,!0);this.$d=this.ud.size;-1!=this.qf&&(this.od.Eg(this.qf),this.Ni.resize(0),this.qf=-1);this.Hb=7;return this.dF()};b.prototype.xO=function(){this.mf=this.Ff=-1;if(10>this.vb.length||10>this.Xc.length)return this.$d=this.vb.length,this.Hb=6,!0;null==this.Ve&&(this.Ve=new c.aq(!0),
this.Ut=this.Ve.Re(),this.rf=new c.ga(0));this.Ve.Up();for(var a=0;a<this.Xc.length;a++){var b=this.Xc[a];this.Ve.fq(b.v,b.B)}this.Ve.vo();this.rf.xb(2*this.Xc.length);this.rf.resize(0);for(a=0;a<2*this.Xc.length;a++)this.rf.add(a);this.Kr(this.rf,this.rf.size,!1);this.sg=this.rf.size;-1!=this.pf&&(this.od.Eg(this.pf),this.Mi.resize(0),this.pf=-1);this.Hb=7;return this.eF()};b.prototype.zO=function(){this.mf=this.Ff=-1;if(10>this.vb.length||10>this.Xc.length)return this.$d=this.vb.length,this.Hb=
6,!0;null==this.Zc&&(this.Zc=new c.aq(!0),this.cn=this.Zc.Re(),this.ud=new c.ga(0));null==this.Ve&&(this.Ve=new c.aq(!0),this.Ut=this.Ve.Re(),this.rf=new c.ga(0));this.Zc.Up();for(var a=0;a<this.vb.length;a++){var b=this.vb[a];this.Zc.fq(b.v,b.B)}this.Zc.vo();this.Ve.Up();for(a=0;a<this.Xc.length;a++)b=this.Xc[a],this.Ve.fq(b.v,b.B);this.Ve.vo();this.ud.xb(2*this.vb.length);this.rf.xb(2*this.Xc.length);this.ud.resize(0);this.rf.resize(0);for(a=0;a<2*this.vb.length;a++)this.ud.add(a);for(a=0;a<2*this.Xc.length;a++)this.rf.add(a);
this.Kr(this.ud,this.ud.size,!0);this.Kr(this.rf,this.rf.size,!1);this.$d=this.ud.size;this.sg=this.rf.size;-1!=this.qf&&(this.od.Eg(this.qf),this.Ni.resize(0),this.qf=-1);-1!=this.pf&&(this.od.Eg(this.pf),this.Mi.resize(0),this.pf=-1);this.Hb=7;return!0};b.prototype.NS=function(){var a=this.ud.get(--this.$d),d=a>>1;if(b.Yk(a))return this.Zc.remove(d),0==this.$d?(this.mf=this.Ff=-1,this.Ec=!0,!1):!0;this.cn.uy(this.vb[d].v,this.vb[d].B,this.ka);this.Ff=d;this.Hb=10;return!0};b.prototype.JS=function(){if(-1==
--this.$d)return this.mf=this.Ff=-1,this.Ec=!0,!1;this.sg=this.Ff=this.$d;this.Hb=13;return!0};b.prototype.KS=function(){if(-1==--this.$d)return this.mf=this.Ff=-1,this.Ec=!0,!1;this.Ff=this.$d;this.sg=this.Xc.length;this.Hb=14;return!0};b.prototype.LS=function(){var a=this.ud.get(this.$d-1),d=this.rf.get(this.sg-1),f=this.oq(a,!0),e=this.oq(d,!1);return f>e?this.Pu():f<e?this.Wy():b.Cv(a)?this.Pu():b.Cv(d)?this.Wy():this.Pu()};b.prototype.Pu=function(){var a=this.ud.get(--this.$d),d=a>>1;if(b.Yk(a))return-1!=
this.qf&&-1!=this.Ni.get(d)?(this.od.Jc(this.qf,this.Ni.get(d)),this.Ni.set(d,-1)):this.Zc.remove(d),0==this.$d?(this.mf=this.Ff=-1,this.Ec=!0,!1):!0;if(-1!=this.pf&&0<this.od.uq(this.pf))for(a=this.od.fc(this.pf);-1!=a;){var f=this.od.getData(a);this.Ve.kg(f);this.Mi.set(f,-1);f=this.od.bb(a);this.od.Jc(this.pf,a);a=f}0<this.Ve.size()?(this.Ut.uy(this.vb[d].v,this.vb[d].B,this.ka),this.Ff=d,this.Hb=12):(-1==this.qf&&(null==this.od&&(this.od=new c.Zn),this.Ni=new c.ga(0),this.Ni.resize(this.vb.length,
-1),this.Ni.bh(-1,0,this.vb.length),this.qf=this.od.ih(1)),this.Ni.set(d,this.od.addElement(this.qf,d)),this.Hb=7);return!0};b.prototype.Wy=function(){var a=this.rf.get(--this.sg),d=a>>1;if(b.Yk(a))return-1!=this.pf&&-1!=this.Mi.get(d)?(this.od.Jc(this.pf,this.Mi.get(d)),this.Mi.set(d,-1)):this.Ve.remove(d),0==this.sg?(this.mf=this.Ff=-1,this.Ec=!0,!1):!0;if(-1!=this.qf&&0<this.od.uq(this.qf))for(a=this.od.fc(this.qf);-1!=a;){var f=this.od.getData(a);this.Zc.kg(f);this.Ni.set(f,-1);f=this.od.bb(a);
this.od.Jc(this.qf,a);a=f}0<this.Zc.size()?(this.cn.uy(this.Xc[d].v,this.Xc[d].B,this.ka),this.mf=d,this.Hb=11):(-1==this.pf&&(null==this.od&&(this.od=new c.Zn),this.Mi=new c.ga(0),this.Mi.resize(this.Xc.length,-1),this.Mi.bh(-1,0,this.Xc.length),this.pf=this.od.ih(0)),this.Mi.set(d,this.od.addElement(this.pf,d)),this.Hb=7);return!0};b.prototype.$w=function(){this.mf=this.cn.next();if(-1!=this.mf)return!1;var a=this.ud.get(this.$d)>>1;this.Zc.kg(a);this.Hb=4;return!0};b.prototype.kP=function(){this.Ff=
this.cn.next();if(-1!=this.Ff)return!1;this.mf=this.Ff=-1;var a=this.rf.get(this.sg)>>1;this.Ve.kg(a);this.Hb=7;return!0};b.prototype.hP=function(){this.mf=this.Ut.next();if(-1!=this.mf)return!1;var a=this.ud.get(this.$d)>>1;this.Zc.kg(a);this.Hb=7;return!0};b.prototype.iP=function(){if(-1==--this.sg)return this.Hb=5,!0;this.ep.K(this.vb[this.$d]);var a=this.vb[this.sg];this.ep.P(this.ka,this.ka);return this.ep.jc(a)?(this.mf=this.sg,!1):!0};b.prototype.jP=function(){if(-1==--this.sg)return this.Hb=
6,!0;this.ep.K(this.vb[this.$d]);var a=this.Xc[this.sg];this.ep.P(this.ka,this.ka);return this.ep.jc(a)?(this.mf=this.sg,!1):!0};b.prototype.eF=function(){if(null==this.Zc)return this.Ec=!0,!1;this.$d=this.ud.size;0<this.Zc.size()&&this.Zc.reset();-1!=this.qf&&(this.od.Eg(this.qf),this.Ni.resize(0),this.qf=-1);this.Ec=!1;return!0};b.prototype.dF=function(){if(null==this.Ve)return this.Ec=!0,!1;this.sg=this.rf.size;0<this.Ve.size()&&this.Ve.reset();-1!=this.pf&&(this.od.Eg(this.pf),this.Mi.resize(0),
this.pf=-1);this.Ec=!1;return!0};b.prototype.Kr=function(a,b,f){null==this.Al&&(this.Al=new c.Qr);f=new g(this,f);this.Al.sort(a,0,b,f)};b.prototype.DS=function(a,d,f,e){var c=this;a.xd(d,f,function(a,d){var f=c.oq(a,e),g=c.oq(d,e);return f<g||f==g&&b.Yk(a)&&b.Cv(d)?-1:1})};b.prototype.oq=function(a,d){var f=.5*this.ka;if(d){var e=this.vb[a>>1];return f=b.Yk(a)?e.C-f:e.G+f}e=this.Xc[a>>1];return f=b.Yk(a)?e.C-f:e.G+f};return b}();c.sz=p})(t||(t={}));(function(c){var p=function(){function g(){}g.Oa=
function(b,a,d,f,e,c){var l=new g;l.v=b;l.C=a;l.oe=d;l.B=f;l.G=e;l.Nf=c;return l};g.prototype.Ja=function(){this.oe=this.v=NaN};g.prototype.s=function(){return isNaN(this.v)};g.prototype.WO=function(){return isNaN(this.oe)};g.prototype.K=function(b,a,d,f,e,c){void 0!==f?"number"===typeof b?(this.v=b,this.C=a,this.oe=d,this.B=f,this.G=e,this.Nf=c):(this.v=b.x-.5*a,this.B=this.v+a,this.C=b.y-.5*d,this.G=this.C+d,this.oe=b.z-.5*f,this.Nf=this.oe+f):(this.v=b,this.C=a,this.oe=d,this.B=b,this.G=a,this.Nf=
d)};g.prototype.move=function(b){this.v+=b.x;this.C+=b.y;this.oe+=b.z;this.B+=b.x;this.G+=b.y;this.Nf+=b.z};g.prototype.copyTo=function(b){b.v=this.v;b.C=this.C;b.B=this.B;b.G=this.G};g.prototype.Nj=function(b,a,d){this.v>b?this.v=b:this.B<b&&(this.B=b);this.C>a?this.C=a:this.G<a&&(this.G=a);0==isNaN(this.oe)?this.oe>d?this.oe=d:this.Nf<d&&(this.Nf=d):this.Nf=this.oe=d};g.prototype.Db=function(b,a,d,f,e,h){if("number"===typeof b)f?(this.Db(b,a,d),this.Db(f,e,h)):this.s()?(this.v=b,this.C=a,this.oe=
d,this.B=b,this.G=a,this.Nf=d):this.Nj(b,a,d);else if(b instanceof c.de)this.Db(b.x,b.y,b.z);else if(b instanceof g)b.s()||(this.Db(b.v,b.C,b.oe),this.Db(b.B,b.G,b.Nf));else throw c.g.N();};g.prototype.Oa=function(b,a,d){b.s()||a.s()?this.Ja():(this.v=b.qa,this.B=b.va,this.C=a.qa,this.G=a.va,this.oe=d.qa,this.Nf=d.va)};g.prototype.hy=function(b){if(null==b||8>b.length)throw c.g.N();b[0]=new c.de(this.v,this.C,this.oe);b[1]=new c.de(this.v,this.G,this.oe);b[2]=new c.de(this.B,this.G,this.oe);b[3]=
new c.de(this.B,this.C,this.oe);b[4]=new c.de(this.v,this.C,this.Nf);b[5]=new c.de(this.v,this.G,this.Nf);b[6]=new c.de(this.B,this.G,this.Nf);b[7]=new c.de(this.B,this.C,this.Nf)};g.prototype.Ey=function(b){if(null==b||0==b.length)this.Ja();else{var a=b[0];this.K(a.x,a.y,a.z);for(a=1;a<b.length;a++){var d=b[a];this.Nj(d.x,d.y,d.z)}}};return g}();c.dH=p})(t||(t={}));(function(c){(function(c){c.wa=function(){var c=Error();c.message="Internal Error";return c};c.qe=function(){var c=Error();c.message=
"Not Implemented";return c};c.Xj=function(){var c=Error();c.message="The input unit and the spatial reference unit are not of the same unit type.ie Linear vs.Angular";return c};c.xa=function(){var c=Error();c.message="Invalid Call";return c};c.N=function(c){var b=Error();b.message="Illegal Argument Exception";void 0!==c&&(b.message+=": "+c);return b};c.AI=function(){var c=Error();c.message="Runtime Exception.";return c};c.ra=function(c){var b=Error();b.message="Geometry Exception: "+c;return b};c.NG=
function(){var c=Error();c.message="Assert Failed Exception";return c};c.Sc=function(){var c=Error();c.message="IndexOutOfBoundsException";return c};c.WT=function(c){c.message="UserCancelException";return c}})(c.g||(c.g={}))})(t||(t={}));(function(c){var p=function(){function a(a,b){this.Ma=a;this.eE=b;this.hE=-1;this.rk=!1}a.prototype.next=function(){if(++this.hE==this.eE.F())return null;var a=this.eE.Fa(this.hE);a.scale(this.Ma.Rb);var b=new c.Ka;this.Ma.Iv(a,this.rk,b);return b};a.prototype.ya=
function(){return 0};return a}(),g=function(){function a(a,b,e){this.Ma=a;this.Yt=b;this.Om=!1;this.Um=e;this.Lt=[0];this.yj=[0];this.Qi=[0];this.Rq=[0];this.rk=!1;this.Zo=new c.Ka;this.Aj=[]}a.prototype.next=function(){if(this.Om){this.Om=!1;this.$c.ia();var a=c.T.Yj(this.Zo);return a=c.Of.Pj(a,this.Ma.ip,!0,!0,this.Ma.Xb)}null==this.$c&&(this.$c=this.Yt.Ca(),this.$c.kb(),null!=this.Um&&this.Um.ko());if(!this.$c.La()){if(!this.$c.kb())return null;null!=this.Um&&this.Um.ko()}a=null;this.yj[0]=0;this.Fx=
this.Lt[0]=0;this.th=NaN;this.Om=!1;for(var f=this.Aj.length=0,e=new c.b,h=new c.b,l=[0];this.$c.La()&&8>this.Fx;){var k=this.$c.ia();e.J(k.Mb());h.J(k.oc());e.scale(this.Ma.Rb);h.scale(this.Ma.Rb);c.ui.Gs(e,h)?e.x=h.x:c.ui.Es(e,h)&&(h.x=e.x);this.Aj.length=0;c.ui.hC(this.Ma.Gb,this.Ma.Wb,this.Ma.je,e,h,this.Ma.Nx,this.Ma.gr,l,this.Qi,this.Rq,this.Aj,this.Lt);null!=this.Um&&(k=this.Aj.slice(0),this.Um.aD(this.Um.ea()-1,k,k.length-1));c.ui.Fs(e,h)?(this.Zo.Ja(),this.Ma.Iv(e,this.rk,this.Zo),this.Om=
!0):(this.Zo.Ja(),this.Om=this.Lv(l[0],this.Zo));if(this.Om){this.$c.oi();if(this.$c.Ow()){this.$c.oi();this.$c.ia();break}this.$c.AR();break}null==a&&(a=new c.Ka,a.ko());this.SA(a);f++}this.Lt[0]=0;if(0<f){for(l=this.$c.Jb();0<f;)this.$c.oi(),e.J(this.Yt.Fa(this.$c.Jb())),h.J(this.Yt.Fa(this.$c.Bm())),e.scale(this.Ma.Rb),h.scale(this.Ma.Rb),this.rk&&(c.ui.Gs(e,h)?e.x=h.x:c.ui.Es(e,h)&&(h.x=e.x)),this.Aj.length=0,c.ui.hC(this.Ma.Gb,this.Ma.Wb,this.Ma.je,h,e,this.Ma.Nx,this.Ma.gr,null,this.Qi,this.Rq,
this.Aj,this.Lt),this.SA(a),f--;e.J(this.Yt.Fa(this.$c.Jb()));e.scale(this.Ma.Rb);b.jq(this.Ma.Gb,this.Ma.Wb,this.Ma.Rb,this.Ma.hb,e,this.th+1.570796326794897,this.th+4.71238898038469,this.Ma.Sm,this.rk,this.yj,a,NaN,NaN);this.$c.Sb(l);this.$c.ia();f=c.Ia.Bg(null,a,!0);return a=c.Of.Pj(a,f,!0,!0,this.Ma.Xb)}this.Om=!1;this.$c.ia();a=c.T.Yj(this.Zo);return a=c.Of.Pj(a,this.Ma.ip,!0,!0,this.Ma.Xb)};a.prototype.SA=function(a){var f=this.Aj[0],e,h=this.Qi[0]-1.570796326794897,l=this.Rq[0]+1.570796326794897,
k;if(!isNaN(this.th)){this.th>=this.Qi[0]?(e=this.th+1.570796326794897,h=e+3.141592653589793-(this.th-this.Qi[0])):(e=this.th+1.570796326794897,h=e+3.141592653589793-(6.283185307179586-(this.Qi[0]-this.th)));k=this.th>=this.Qi[0]&&3.141592653589793>=this.th-this.Qi[0]?!1:this.th<this.Qi[0]&&3.141592653589793<=this.Qi[0]-this.th?!1:!0;var g=!1;if(Math.abs(h-e)<=.5*this.Ma.Sm)if(k){var r=a.Fa(a.F()-2);r.scale(this.Ma.Rb);var q=new c.ca(0);c.zb.gw(this.Ma.Gb,this.Ma.Wb,f.x,f.y,r.x,r.y,q);for(r=q.l;r<=
e;)r+=6.283185307179586;for(;r>e;)r-=6.283185307179586;r<h&&(g=!0)}else g=!0;g?(a.bF(0,a.F()-1),this.rk||(f=new c.b,f.J(a.Fa(a.F()-1)),f.scale(this.Ma.Rb),-3.141592653589793>f.x-this.yj[0]?this.yj[0]-=6.283185307179586:3.141592653589793<f.x-this.yj[0]&&(this.yj[0]+=6.283185307179586)),k||(h=.5*(h+e))):(k?(e=new c.b,e.J(f),e.scale(1/this.Ma.Rb),a.kf(0,-1,e)):b.jq(this.Ma.Gb,this.Ma.Wb,this.Ma.Rb,this.Ma.hb,this.Aj[0],e,h,this.Ma.Sm,this.rk,this.yj,a,NaN,NaN),this.Fx+=1)}b.Hv(this.Ma.Gb,this.Ma.Wb,
this.Ma.Rb,this.Ma.hb,this.Ma.je,this.Aj,h,l,this.rk,this.yj,a);this.th=this.Rq[0]};a.prototype.Lv=function(a,b){return this.Ma.Lv(this.Aj,a,this.Qi[0],this.Rq[0],this.rk,b)};a.prototype.ya=function(){return 0};return a}(),b=function(){function a(){}a.buffer=function(b,f,e,h,l,k){if(null==b)throw c.g.N("Geometry::Geodesic_bufferer::buffer");if(b.s())return new c.Ka(b.description);var g=new a;g.rg=f;g.wc=c.Ya.Em(f);var r=c.Ya.et(g.wc);g.Xb=k;g.Gb=c.Ya.Ss(g.wc);g.Wb=r*(2-r);g.Rb=g.wc.Se().Cj;g.ka=g.rg.wq();
g.ip=g.wc.wq();g.gr=g.ip*g.Rb;g.hp=1.570796326794897/g.Rb;g.hU=3.141592653589793/g.Rb;g.Tq=6.283185307179586/g.Rb;g.iU=g.Tq/6;g.Ix=0;g.gU=1.5707963267948966*g.Gb/g.Ix;4==e?(g.je=2,g.Ft=!0):(g.je=e,g.Ft=!1);g.Da=h;g.hb=Math.abs(h);isNaN(l)||.001>l?g.uS():g.Rm=l;e=b.D();c.T.Lc(e)?(e=new c.Xa(b.description),e.Bc(b,!0),b=e,e=1607):197==e&&(e=new c.i,b.o(e),e.aa()<=g.ka||e.ba()<=g.ka?(e=new c.Xa(b.description),e.Uc(b,!1),b=e,e=1607):(e=new c.Ka(b.description),e.Uc(b,!1),b=e,e=1736));g.vS();c.T.Km(e)||
g.wS();if(g.hb<=.5*g.Rm)return 1736!=e?new c.Ka(b.description):g.Ft?b:c.ui.nq(b,g.rg,g.je,g.Nx,-1,k);if(0>g.Da&&1736!=e)return new c.Ka(b.description);g.Ft&&c.T.Kc(e)?(f=c.ui.nq(b,f,4,NaN,g.Rm,k),b=c.Ya.Wl(f,g.rg,g.wc)):b=c.Ya.Wl(b,g.rg,g.wc);b=c.fh.po(b,g.wc);if(b.s())return new c.Ka(b.description);!g.Ft&&c.T.Kc(e)&&(b=c.ui.FE(g.Rb,b));b=a.kQ(b,g.wc);switch(e){case 1736:f=g.xK(b);break;case 1607:f=g.yK(b);break;case 550:f=g.vK(b);break;case 33:f=g.wK(b);break;default:throw c.g.ra("corrupted_geometry");
}g=c.Ya.Wl(f,g.wc,g.rg);g.Ik(b.description);return g};a.prototype.xK=function(a){var b=new c.Ka;a=new g(this,a,b);a=c.wi.local().$(a,this.wc,this.Xb).next();a=c.Vn.nl(a,this.wc,2);var e=new c.Ag;e.scale(1/this.Rb,1/this.Rb);b.Oe(e);b=c.Vn.nl(b,this.wc,2);return 0<=this.Da?c.wi.local().$(b,a,this.wc,this.Xb):c.Yr.local().$(b,a,this.wc,this.Xb)};a.prototype.yK=function(a){a=new g(this,a,null);a=c.wi.local().$(a,this.wc,this.Xb).next();return a=c.Vn.nl(a,this.wc,2)};a.prototype.vK=function(a){a=new p(this,
a);a=c.wi.local().$(a,this.wc,this.Xb).next();return a=c.Vn.nl(a,this.wc,2)};a.prototype.wK=function(a){a=a.w();a.scale(this.Rb);var b=new c.Ka;this.Iv(a,!1,b);return b=c.Vn.nl(b,this.wc,2)};a.prototype.Lv=function(b,f,e,h,l,k){var g=b[0],r=b[b.length-1],q=g.y>r.y?g.y:r.y,n=c.u.q(this.Gb,this.Wb,g.y<r.y?g.y:r.y),q=c.u.q(this.Gb,this.Wb,q);if(.001<this.Ix-(n+f+this.hb)&&.001<this.Ix+(q-f-this.hb))return!1;f=e-1.570796326794897;e=h+1.570796326794897;var n=f-3.141592653589793,q=f+3.141592653589793,u=
e+3.141592653589793,v=[NaN],w=[NaN],x=[NaN],p=[NaN];h=!1;a.jG(this.Gb,this.Wb,this.hb,g,f,n,r,e,v,w);a.jG(this.Gb,this.Wb,this.hb,r,u,e,g,n,x,p);e<v[0]&&v[0]<u?h=!0:e<w[0]&&w[0]<u&&(h=!0);h||(n<x[0]&&x[0]<f?h=!0:n<p[0]&&p[0]<f&&(h=!0));if(!h&&l)return!1;for(var t=[],y=b.length-1;0<=y;y--)t.push(b[y]);k.Ja();k.ko();y=[0];a.Hv(this.Gb,this.Wb,this.Rb,this.hb,this.je,b,f,e,l,y,k);a.jq(this.Gb,this.Wb,this.Rb,this.hb,r,e,u,this.Sm,l,y,k,v[0],w[0]);a.Hv(this.Gb,this.Wb,this.Rb,this.hb,this.je,t,u,q,l,
y,k);a.jq(this.Gb,this.Wb,this.Rb,this.hb,g,n,f,this.Sm,l,y,k,x[0],p[0]);b=!1;l||(b=this.yB(this.Rb,k));return h||b};a.prototype.Iv=function(b,f,e){e.Ja();e.ko();a.jq(this.Gb,this.Wb,this.Rb,this.hb,b,-this.Sm,6.283185307179586,this.Sm,f,[0],e,NaN,NaN);f||this.yB(this.Rb,e)};a.prototype.yB=function(a,b){var e=this.WK(a,b),c=this.XK(a,b);return e||c};a.prototype.WK=function(a,b){var e=b.F(),h=!1,l=new c.i;b.o(l);if(!c.j.S(l.G*a,1.570796326794897)&&!c.j.S(l.C*a,-1.570796326794897))return!1;for(var k=
new c.b,e=e-1;0<=e;e--)b.w(e,k),k.y==l.G&&c.j.S(k.y*a,1.570796326794897)?(h=!0,this.OE(k,e,b)):k.y==l.C&&c.j.S(k.y*a,-1.570796326794897)&&(h=!0,this.OE(k,e,b));return h};a.prototype.XK=function(a,b){var e=b.Fa(0),c=b.Fa(b.F()-1);return 3.141592653589793<Math.abs(e.x-c.x)*a?(this.TQ(b),!0):this.VK(b)};a.prototype.VK=function(a){return 0>a.Lh()?(this.SQ(a),!0):!1};a.prototype.OE=function(a,b,e){var h=e.F(),l=0<b?b-1:h-1,h=e.Fa(b<h-1?b+1:0),l=e.Fa(l);if(!c.j.S(h.y,a.y)&&!c.j.S(h.x,a.x)){var k=new c.b;
k.ma(h.x,a.y);e.hc(b,k)}c.j.S(l.y,a.y)||c.j.S(l.x,a.x)||(h=new c.b,h.ma(l.x,a.y),e.kf(0,b,h))};a.prototype.TQ=function(a){var b=new c.Ka,e=new c.Ka,h=new c.Ag,l=a.Fa(0),k=a.Fa(a.F()-1),g=new c.b;l.x>k.x?(k=this.hp,h.Nn(-this.Tq,0)):(k=-this.hp,h.Nn(this.Tq,0));b.add(a,!1);a.Ja();e.add(b,!1);e.Oe(h);l=new c.i;e.o(l);l.P((this.Tq-l.aa())/2,0);l.C=-this.hp;l.G=this.hp;for(var r=0;r<e.F();r++)e.w(r,g),b.kf(0,-1,g);e.Oe(h);for(r=0;r<e.F();r++)e.w(r,g),b.kf(0,-1,g);e=b.Fa(0);h=b.Fa(b.F()-1);g.ma(h.x,k);
b.kf(0,-1,g);g.ma(.5*(h.x+e.x),k);b.kf(0,-1,g);g.ma(e.x,k);b.kf(0,-1,g);b=c.fh.Rw(b,this.wc,2,l.v);b=c.fh.Rw(b,this.wc,2,l.B);b=c.Ed.clip(b,l,this.ip,NaN);a.add(b,!1)};a.prototype.SQ=function(a){var b=new c.i;a.o(b);b.P((this.Tq-b.aa())/2,0);b.C=-this.hp;b.G=this.hp;a.ko();var e=new c.b;e.ma(b.v,b.C);a.kf(1,-1,e);e.ma(b.v,b.G);a.kf(1,-1,e);e.ma(.5*(b.v+b.B),b.G);a.kf(1,-1,e);e.ma(b.B,b.G);a.kf(1,-1,e);e.ma(b.B,b.C);a.kf(1,-1,e);e.ma(.5*(b.v+b.B),b.C);a.kf(1,-1,e)};a.Hv=function(b,f,e,h,l,k,g,r,q,
n,u){var v=null;q||(v=new c.b,v.Dh(),0<u.F()&&(v.J(u.Fa(u.F()-1)),v.scale(e)));var w=new c.ca(0),x=new c.ca(0),p=new c.ca(0),t=new c.b,y=new c.b,z=k[k.length-1];e=1/e;for(var A=0;A<k.length;A++){var B=k[A],C;0==A?C=g:A==k.length-1?C=r:(c.zb.Qd(b,f,z.x,z.y,B.x,B.y,null,null,w,l),C=w.l-1.570796326794897);c.zb.Ph(b,f,B.x,B.y,h,C,x,p);q?y.ma(x.l,p.l):(t.ma(x.l,p.l),a.Ez(B.x,t.x,v.x,n),y.ma(n[0]+t.x,t.y),v.J(y));y.scale(e);u.kf(0,-1,y)}};a.jq=function(b,f,e,h,l,k,g,r,q,n,u,v,w){if(!(g-k<r)){var x=new c.ca(0),
p=new c.ca(0),t=new c.b,y=new c.b,z=null;q||(z=new c.b,z.Dh(),0<u.F()&&(z.J(u.Fa(u.F()-1)),z.scale(e)));var A=c.I.truncate(Math.ceil(k/r)),B=A++*r;B==k&&(B=A++*r);for(e=1/e;B<g+r;){k<v&&v<B?(B=v,A--):k<w&&w<B&&(B=w,A--);if(B>=g)break;c.zb.Ph(b,f,l.x,l.y,h,B,x,p);q?y.ma(x.l,p.l):(t.ma(x.l,p.l),a.Ez(l.x,t.x,z.x,n),y.ma(n[0]+t.x,t.y),z.J(y));y.scale(e);u.kf(0,-1,y);k=B;B=A++*r}}};a.jG=function(a,b,e,h,l,k,g,r,q,n){var u=new c.b,v=new c.b,w=new c.ca(0),x=new c.ca(0);c.zb.Ph(a,b,h.x,h.y,e,l,w,x);u.ma(w.l,
x.l);c.zb.Ph(a,b,h.x,h.y,e,k,w,x);v.ma(w.l,x.l);e=new c.ca(0);c.zb.gw(a,b,g.x,g.y,u.x,u.y,e);q[0]=e.l;c.zb.gw(a,b,g.x,g.y,v.x,v.y,e);for(n[0]=e.l;q[0]<=n[0];)q[0]+=6.283185307179586;for(;q[0]>n[0];)q[0]-=6.283185307179586;for(;q[0]>=r;)q[0]-=6.283185307179586,n[0]-=6.283185307179586;for(;q[0]<r;)q[0]+=6.283185307179586,n[0]+=6.283185307179586};a.Ez=function(a,b,e,c){if(isNaN(e)){for(;3.141592653589793<c[0]+b-a;)c[0]-=6.283185307179586;for(;3.141592653589793<a-(c[0]+b);)c[0]+=6.283185307179586}else 3.141592653589793<
c[0]+b-e?c[0]-=6.283185307179586:3.141592653589793<e-(c[0]+b)&&(c[0]+=6.283185307179586)};a.kQ=function(a,b){var e=a.D(),h;c.T.Kc(e)?h=a.ea():550==e?h=a.F():h=1;if(1==h)return a;var l=new c.ga(0);l.resize(h);for(var k=[],g=new c.i,r=0;r<h;r++){l.write(r,r);var q;c.T.Kc(e)?(a.Ti(r,g),q=g.Af()):q=a.Fa(r);q=c.oH.RS(b,q);k[r]=q}l.xd(0,l.size,function(a,b){return k[a]<k[b]?-1:k[a]>k[b]?1:0});g=a.Pa();for(r=0;r<h;r++)q=l.read(r),c.T.Kc(e)?g.Zj(a,q,!0):g.Pd(a,q,q+1);return g};a.prototype.vS=function(){var a=
Math.min(3.141592653589793*this.Gb-this.hb,this.hb),a=Math.min(a,.39269908169872414*this.Gb),b=new c.b;b.ma(0,10*this.Rb);var e=45*this.Rb,h=new c.ca(0),l=new c.ca(0),k=new c.ca(0),g=new c.ca(0),r=new c.ca(0),q=new c.ca(0),n=new c.ca(0),u=new c.ca(0),v=new c.b,w=new c.b,x=new c.b,p=new c.b;c.zb.Ph(this.Gb,this.Wb,b.x,b.y,a,0,h,l);v.ma(h.l,l.l);c.zb.Ph(this.Gb,this.Wb,b.x,b.y,a,e,k,g);w.ma(k.l,g.l);for(var h=new c.ca(0),l=new c.ca(0),t=new c.ca(0);;){c.zb.Ph(this.Gb,this.Wb,b.x,b.y,a,.5*(0+e),r,q);
x.ma(r.l,q.l);c.zb.Qd(this.Gb,this.Wb,v.x,v.y,w.x,w.y,h,l,null,2);c.zb.dk(this.Gb,this.Wb,v.x,v.y,.5*h.l,l.l,n,u,2);p.ma(n.l,u.l);c.zb.Qd(this.Gb,this.Wb,x.x,x.y,p.x,p.y,t,null,null,2);if(t.l<=this.Rm)break;e*=.9;c.zb.Ph(this.Gb,this.Wb,b.x,b.y,a,e,k,g);w.ma(k.l,g.l)}this.Sm=6.283185307179586/Math.ceil(6.283185307179586/(e-0))};a.prototype.wS=function(){var a=Math.min(3.141592653589793*this.Gb-this.hb,this.hb),a=Math.min(a,.39269908169872414*this.Gb),b=new c.b,e=new c.b;b.ma(0,10*this.Rb);e.ma(10*
this.Rb,10*this.Rb);var h=new c.ca(0),l=new c.ca(0),k=new c.ca(0);c.zb.Qd(this.Gb,this.Wb,b.x,b.y,e.x,e.y,k,h,l,this.je);var g=new c.ca(0),r=new c.ca(0),q=new c.ca(0),n=new c.ca(0),u=new c.b,v=new c.ca(0),w=new c.ca(0),x=new c.ca(0),p=new c.ca(0),t=new c.ca(0),y=new c.ca(0),z=new c.ca(0),A=new c.ca(0),B=new c.ca(0),C=new c.b,E=new c.b,G=new c.b,H=new c.b,I=1,h=h.l,l=l.l+1.570796326794897,k=k.l;c.zb.Ph(this.Gb,this.Wb,b.x,b.y,a,h-1.570796326794897,w,x);C.ma(w.l,x.l);c.zb.Ph(this.Gb,this.Wb,e.x,e.y,
a,l,p,t);E.ma(p.l,t.l);for(var w=new c.ca(0),x=new c.ca(0),l=new c.ca(0),K=new c.ca(0);;){c.zb.dk(this.Gb,this.Wb,b.x,b.y,.5*(0+I)*k,h,g,r,this.je);u.ma(g.l,r.l);c.zb.Qd(this.Gb,this.Wb,b.x,b.y,u.x,u.y,null,null,v,this.je);c.zb.Ph(this.Gb,this.Wb,u.x,u.y,a,v.l+1.570796326794897,y,z);G.ma(y.l,z.l);c.zb.Qd(this.Gb,this.Wb,C.x,C.y,E.x,E.y,w,x,null,2);c.zb.dk(this.Gb,this.Wb,C.x,C.y,.5*w.l,x.l,A,B,2);H.ma(A.l,B.l);c.zb.Qd(this.Gb,this.Wb,G.x,G.y,H.x,H.y,l,null,null,2);if(l.l<=this.Rm)break;I*=.9;c.zb.dk(this.Gb,
this.Wb,b.x,b.y,I*k,h,q,n,this.je);e.ma(q.l,n.l);c.zb.Qd(this.Gb,this.Wb,b.x,b.y,e.x,e.y,null,null,K,this.je);c.zb.Ph(this.Gb,this.Wb,e.x,e.y,a,K.l+1.570796326794897,p,t);E.ma(p.l,t.l)}a=I*k;1E5<a&&(a=1E5);this.Nx=a};a.prototype.uS=function(){var a;a=5E4<this.hb?100:1E4<this.hb?10:1;500>this.hb/a&&(a=this.hb/500);.01>a&&(a=.01);this.Rm=a};return a}();c.nH=b})(t||(t={}));(function(c){var p=function(){function g(){}g.$b=function(b,a){var d=new c.b;d.J(a);b.push(d)};g.$i=function(b,a){b.add(a.x);b.add(a.y)};
g.cx=function(b){b.cf(b.size-2)};g.cy=function(b,a){a.ma(b.get(b.size-2),b.get(b.size-1))};g.nq=function(b,a,d,f,e,h){if(null==b)throw c.g.N();var l=b.D();if(b.s()||c.T.Km(l))return b;var k=new g;k.rg=a;k.wc=c.Ya.Em(a);var m=c.Ya.et(k.wc);k.Xb=h;k.Gb=c.Ya.Ss(k.wc);k.Wb=m*(2-m);k.Rb=k.wc.Se().Cj;k.ip=k.wc.wq();k.gr=k.ip*k.Rb;k.Bx=f;k.Ax=e;k.je=d;197==l?(d=new c.Ka(b.description),d.Uc(b,!1)):c.T.Lc(l)?(d=new c.Xa(b.description),d.Bc(b,!0)):d=b;if(4!=k.je){a=0==k.rg.lc(k.wc)?c.Ya.Wl(d,k.rg,k.wc):c.fh.po(d,
k.wc);if(a.s())return a;a=g.FE(k.Rb,a);a=k.hw(a);a=c.Vn.nl(a,k.wc,k.je);k=c.Ya.Wl(a,k.wc,k.rg)}else{2==c.gh.Am(a)?(b=c.Ya.UN(),a=c.Zr.local().$(d,b,a,h),a==b&&(a=new c.Ka,b.copyTo(a))):a=c.fh.po(d,k.wc);if(a.s())return a;k=k.yS(a)}return k};g.FE=function(b,a){var d=new c.i;a.cd(d);if(3.141592653589793>d.aa()*b)return a;for(var f=!1,d=a.Ca(),e=new c.b,h=new c.b;d.kb();)for(;d.La();){var l=d.ia();e.J(l.Mb());h.J(l.oc());e.scale(b);h.scale(b);if(3.141592653589793<Math.abs(e.x-h.x)){var k=g.Fs(e,h);if(!k){f=
!0;break}if(6.283185307179586<Math.abs(e.x-h.x)){f=!0;break}}}if(!f)return a;var f=a.Pa(),m=1<a.description.Aa,r=new c.b,q=new c.b,n=new c.b,u=new c.b,v=new c.Va;for(d.Lk();d.kb();)for(var w=NaN,x=[0];d.La();){l=d.ia();e.J(l.Mb());h.J(l.oc());e.scale(b);h.scale(b);isNaN(w)?(g.Bd(e.x,NaN,x),q.J(e)):q.J(n);w=q.x;if(k=g.Fs(e,h)){if(6.283185307179586<h.x-e.x)for(;6.283185307179586<h.x-e.x;)h.x-=6.283185307179586;if(-6.283185307179586>h.x-e.x)for(;-6.283185307179586>h.x-e.x;)h.x+=6.283185307179586;g.Bd(h.x,
NaN,x);n.J(h)}else r.J(h),g.VI(r),g.Bd(r.x,w,x),n.ma(x[0]+r.x,r.y);.5>Math.abs(n.x-h.x)&&n.J(h);m?(l.tu(0,v),u.J(q),u.scale(1/b),v.hc(u),(k=d.wl())?f.df(v):f.lineTo(v),d.Jm()&&!a.vc(d.Qa)&&(l.tu(1,v),u.J(n),u.scale(1/b),v.hc(u),f.lineTo(v))):((k=d.wl())&&f.Sw(),l=f.ea()-1,u.J(q),u.scale(1/b),f.kf(l,-1,u),d.Jm()&&!a.vc(d.Qa)&&(u.J(n),u.scale(1/b),f.kf(l,-1,u)))}return f};g.hC=function(b,a,d,f,e,h,l,k,m,r,q,n){var u=new c.b,v=new c.b,w=0<f.compare(e);g.Cz(w,f,e,u,v);g.Hz(b,a,d,u,v,h,NaN,l,k,m,r,null,
q,n);w&&g.gy(m,r,null,q)};g.prototype.hw=function(b){var a=b.Pa(),d=b.Ca(),f=[],e=null,h=null,l=1<b.description.Aa;l&&(e=new c.qd(0),h=new c.zg);for(var k=[0],m=new c.b,r=new c.b,q=new c.b,n=new c.b;d.kb();)for(k[0]=0;d.La();){var u=d.ia();m.J(u.Mb());r.J(u.oc());m.scale(this.Rb);r.scale(this.Rb);var v=0<m.compare(r);g.Cz(v,m,r,q,n);f.length=0;null!=e&&e.cf(0);0<this.Bx?g.Hz(this.Gb,this.Wb,this.je,q,n,this.Bx,this.Ax,this.gr,null,null,null,l?e:null,f,k):g.iT(this.Gb,this.Wb,this.je,q,n,this.Ax,this.gr,
l?e:null,f,k);v&&g.gy(null,null,l?e:null,f);f[0].J(u.Mb());f[f.length-1].J(u.oc());for(var w=1;w<f.length-1;w++)f[w].scale(1/this.Rb);l?(v=g.Az(v,u,h),g.mz(d.wl(),d.Jm()&&!b.vc(d.Qa),u,v,e,f,a)):g.kz(d.wl(),d.Jm()&&!b.vc(d.Qa),f,a)}return a};g.prototype.yS=function(b){var a=b.Pa(),d=b.Ca(),f=[],e=null,h=new c.zg,l=1<b.description.Aa;for(l&&(e=new c.qd(0));d.kb();)for(;d.La();){var k=d.ia(),m=k.Mb(),r=k.oc(),m=0<m.compare(r),r=g.Az(m,k,h);f.length=0;null!=e&&e.cf(0);g.ZP(this.Gb,this.Wb,this.Rb,r,
this.rg,this.Bx,this.Ax,l?e:null,f);m&&g.gy(null,null,l?e:null,f);l?g.mz(d.wl(),d.Jm()&&!b.vc(d.Qa),k,r,e,f,a):g.kz(d.wl(),d.Jm()&&!b.vc(d.Qa),f,a)}return a};g.kz=function(b,a,d,f){b&&f.Sw();b=f.ea()-1;var e=d.slice(0);f.aD(b,e,e.length-1);a&&f.kf(b,-1,d[d.length-1])};g.mz=function(b,a,d,f,e,h,l){var k=new c.Va;d.En(k);b?l.df(k):l.lineTo(k);if(2<h.length){b=f.Zb();for(var g=1;g<h.length-1;g++){var r=f.xD(e.get(g)*b);f.tu(r,k);k.hc(h[g]);l.lineTo(k)}}a&&(d.Bn(k),l.lineTo(k))};g.Hz=function(b,a,d,f,
e,h,l,k,m,r,q,n,u,v){var w=new c.ca(0),x=new c.ca(0),p=new c.ca(0);c.zb.Qd(b,a,f.x,f.y,e.x,e.y,p,w,x,d);var p=p.l,t=w=w.l,x=x.l;0>t&&(t+=6.283185307179586);0>x&&(x+=6.283185307179586);null!=m&&(m[0]=p);null!=r&&(r[0]=t);null!=q&&(q[0]=x);r=m=NaN;null!=n&&(r=c.u.gg(b,a),q=c.u.q(b,a,f.y),m=(r-q)/p,r=(r+q)/p);q=g.Gs(f,e);var x=g.Es(f,e),t=q||x,y=g.uz(f,e,k),z=new c.ca(0),A=new c.ca(0),B=new c.b,C=new c.b,E=new c.b;g.Bd(f.x,NaN,v);var G=[v[0]];if(p<=h)g.$b(u,f),g.Bd(e.x,NaN,v),null!=n&&n.add(0),t?(q&&
g.by(f,e,n,u),x&&g.Vx(f,e,n,u)):y?g.Xx(f,e,w,m,r,n,u):0<l&&(C.ma(f.x-G[0],f.y),B.ma(e.x-v[0],e.y),g.yv(b,a,d,f,p,w,C,B,0,1,l,n,u,G)),g.$b(u,e);else{h=1+c.I.truncate(Math.ceil(p/h));var H=p/(h-1),I=new c.b,K=0;g.$b(u,f);I.J(f);C.ma(f.x-v[0],f.y);null!=n&&n.add(0);for(var N=1;N<h;N++){var J;N<h-1?(c.zb.dk(b,a,f.x,f.y,N*H,w,z,A,d),B.ma(z.l,A.l),g.Bd(B.x,I.x,v),E.ma(v[0]+B.x,B.y),J=N/(h-1)):(g.Bd(e.x,NaN,v),B.ma(e.x-v[0],e.y),E.J(e),J=1);t?(1==N&&q&&g.by(f,E,n,u),N==h-1&&x&&g.Vx(I,e,n,u)):y?g.qz(I,E,
k)&&(f.x<e.x?I.x>E.x&&(v[0]+=6.283185307179586,E.ma(v[0]+B.x,B.y)):I.x<E.x&&(v[0]-=6.283185307179586,E.ma(v[0]+B.x,B.y)),g.Xx(I,E,w,m,r,n,u)):0<l&&g.yv(b,a,d,f,p,w,C,B,K,J,l,n,u,G);g.$b(u,E);null!=n&&n.add(J);I.J(E);C.J(B);G[0]=v[0];K=J}}};g.iT=function(b,a,d,f,e,h,l,k,m,r){var q=new c.ca(0),n=new c.ca(0),u=new c.ca(0);c.zb.Qd(b,a,f.x,f.y,e.x,e.y,u,q,n,d);var n=u.l,q=q.l,v=u=NaN;if(null!=k)var v=c.u.gg(b,a),w=c.u.q(b,a,f.y),u=(v-w)/n,v=(v+w)/n;var w=g.Gs(f,e),p=g.Es(f,e),t=w||p;l=g.uz(f,e,l);var D=
g.Fs(f,e),D=t||l||D;g.Bd(f.x,NaN,r);var y=new c.b;g.$b(m,f);y.J(f);null!=k&&k.add(0);D?(t?(w&&g.by(f,e,k,m),p&&g.Vx(f,e,k,m)):l&&g.Xx(f,e,q,u,v,k,m),g.Bd(e.x,NaN,r),g.$b(m,e)):n<=h?(g.Bd(e.x,NaN,r),g.$b(m,e)):(u=new c.b,l=new c.b,u.J(f),l.J(e),u.x-=r[0],l.x-=r[0],-3.141592653589793>l.x?l.x+=6.283185307179586:3.141592653589793<l.x&&(l.x-=6.283185307179586),g.yv(b,a,d,f,n,q,u,l,0,1,h,k,m,r),g.$b(m,e),g.Bd(e.x,NaN,r));null!=k&&k.add(1)};g.yv=function(b,a,d,f,e,h,l,k,m,r,q,n,u,v){var w=new c.b,p=new c.b;
w.ma(l.x+v[0],l.y);new c.ca(0);new c.ca(0);new c.ca(0);new c.ca(0);var t=new c.ca(0),D=new c.ca(0),y=new c.ca(0),z=new c.b,A=new c.b,B=new c.b,C=new c.b;z.J(l);A.J(k);l=new c.qd(0);k=new c.qd(0);g.$i(l,A);k.add(r);var E=new c.b,G=new c.yb,H=[];for(g.Iz(4,H);0<l.size;){for(var I=!1,K,N=NaN,J=0;3>J;J++)if(K=H[J]*r+(1-H[J])*m,c.zb.dk(b,a,f.x,f.y,K*e,h,t,D,d),B.ma(t.l,D.l),0==J&&(N=K,C.J(B)),g.tP(z,B,A,G),G.Kb(G.Gd(B,!0),E),c.zb.Qd(b,a,B.x,B.y,E.x,E.y,y,null,null,2),y.l>q){I=!0;break}I?(A.J(C),r=N,g.$i(l,
A),k.add(r)):(g.cx(l),k.nj(k.size-1,1,k.size-1),0<l.size&&(g.Bd(A.x,w.x,v),p.ma(v[0]+A.x,A.y),g.$b(u,p),w.J(p),null!=n&&n.add(r),z.J(A),m=r,g.cy(l,A),r=k.get(k.size-1)))}};g.ZP=function(b,a,d,f,e,h,l,k,m){var r=new c.b,q=new c.b,n=new c.b,u=new c.b,v=new c.b,w=new c.b,p=new c.b,t=new c.b,D=new c.b,y=new c.b,z=new c.ca(0),A=new c.ca(0),B=new c.b,C=[[],[]],E=1==c.gh.Am(e);e=e.Jo();var G=f.Mb(),H=f.oc();E?(w.ma(G.x*d,G.y*d),p.ma(H.x*d,H.y*d)):(C[0][0]=G.x,C[0][1]=G.y,C[1][0]=H.x,C[1][1]=H.y,c.Ya.su(),
w.x=C[0][0]*d,w.y=C[0][1]*d,p.x=C[1][0]*d,p.y=C[1][1]*d);var I=0,K=0,N=1,J=f.jD();r.J(G);q.J(H);var H=new c.qd(0),L=new c.qd(0),M=new c.qd(0);g.$i(H,q);g.$i(L,p);M.add(N);g.$b(m,r);null!=k&&k.add(K);var O=[],P;P=0<l?J?5:3:J?5:1;g.Iz(P,O);for(var Q=new c.ca(0),V=new c.ca(0),W=new c.ca(0),U=new c.ca(0),Y=new c.ca(0),Z=new c.ca(0),aa=new c.ca(0);0<L.size;){var S=!1,X,R=NaN;c.zb.Qd(b,a,w.x,w.y,p.x,p.y,Q,V,null,2);for(G=0;G<P;G++){if(0==G){if(!J&&0>=l&&Q.l<=h&&3.141592653589793>Math.abs(w.x-p.x))break;
if(f.qA(K,N)<=e)break}X=O[G]*N+(1-O[G])*K;f.Kb(X,n);E?t.ma(n.x*d,n.y*d):(C[0][0]=n.x,C[0][1]=n.y,c.Ya.su(),t.x=C[0][0]*d,t.y=C[0][1]*d);if(0==G&&(R=X,v.J(n),y.J(t),0<h&&(Q.l>h||3.141592653589793<=Math.abs(w.x-p.x)))){S=!0;break}if(J&&0<h){if(c.zb.Qd(b,a,w.x,w.y,t.x,t.y,W,null,null,2),W.l>h||3.141592653589793<=Math.abs(w.x-t.x)){S=!0;break}}else if(0<l)if(J?(u.QO(r,q,O[G]),E?D.ma(u.x*d,u.y*d):(C[0][0]=u.x,C[0][1]=u.y,c.Ya.su(),D.x=C[0][0]*d,D.y=C[0][1]*d)):(u.J(n),D.J(t)),c.zb.Qd(b,a,w.x,w.y,D.x,D.y,
U,null,null,2),U.l<=Q.l){c.zb.dk(b,a,w.x,w.y,U.l,V.l,z,A,2);B.ma(z.l,A.l);c.zb.Qd(b,a,B.x,B.y,t.x,t.y,Y,null,null,2);if(Y.l>l){S=!0;break}if(J){c.zb.Qd(b,a,B.x,B.y,D.x,D.y,Z,null,null,2);if(Z.l>l){S=!0;break}c.zb.Qd(b,a,D.x,D.y,t.x,t.y,aa,null,null,2);if(aa.l>l){S=!0;break}}}else{S=!0;break}}S?(q.J(v),p.J(y),N=R,g.$i(H,q),g.$i(L,p),M.add(N)):(g.cx(H),g.cx(L),M.nj(M.size-1,1,M.size-1),g.$b(m,q),I+=Q.l,null!=k&&k.add(I),0<L.size&&(r.J(q),w.J(p),K=N,g.cy(H,q),g.cy(L,p),N=M.get(M.size-1)))}if(null!=k)for(b=
1/I,G=0;G<k.size;G++)k.write(G,k.read(G)*b)};g.gy=function(b,a,d,f){f.reverse();null!=d&&d.Ip(0,d.size,1);d=null!=b?b[0]:NaN;f=null!=a?a[0]:NaN;null!=b&&(b[0]=f);null!=a&&(a[0]=d)};g.Cz=function(b,a,d,f,e){b?(f.J(d),e.J(a)):(f.J(a),e.J(d))};g.Az=function(b,a,d){if(!b)return a;d.create(a.D());a.copyTo(d.get());d.get().reverse();return d.get()};g.Bd=function(b,a,d){if(isNaN(a)){for(;3.141592653589793<d[0]-b;)d[0]-=6.283185307179586;for(;3.141592653589793<b-d[0];)d[0]+=6.283185307179586}else 3.141592653589793<
d[0]+b-a?d[0]-=6.283185307179586:3.141592653589793<a-(d[0]+b)&&(d[0]+=6.283185307179586)};g.tP=function(b,a,d,f){3.141592653589793>Math.abs(a.x-b.x)?(f.dd(b),3.141592653589793<=d.x-b.x?f.Ok(d.x-6.283185307179586,d.y):3.141592653589793<=b.x-d.x?f.Ok(d.x+6.283185307179586,d.y):f.Ok(d.x,d.y)):(f.dd(d),3.141592653589793<=b.x-d.x?f.Ok(b.x-6.283185307179586,b.y):3.141592653589793<=d.x-b.x?f.Ok(b.x+6.283185307179586,b.y):f.Ok(b.x,b.y))};g.Iz=function(b,a){for(var d=0;d<b;d++){var f=Math.ceil(d/2)/(b+1);
0!=d%2&&(f=-f);a[d]=.5+f}};g.Gs=function(b,a){return c.j.S(b.y,1.570796326794897)&&!c.j.S(a.y,1.570796326794897)||c.j.S(b.y,-1.570796326794897)&&!c.j.S(a.y,-1.570796326794897)?!0:!1};g.Es=function(b,a){return c.j.S(a.y,1.570796326794897)&&!c.j.S(b.y,1.570796326794897)||c.j.S(a.y,-1.570796326794897)&&!c.j.S(b.y,-1.570796326794897)?!0:!1};g.uz=function(b,a,d){return!g.qz(b,a,d)||c.j.S(b.y,1.570796326794897)||c.j.S(b.y,-1.570796326794897)||c.j.S(a.y,1.570796326794897)||c.j.S(a.y,-1.570796326794897)?
!1:!0};g.qz=function(b,a,d){return Math.abs(Math.abs(b.x-a.x)-3.141592653589793)<=d?!0:!1};g.Fs=function(b,a){return c.j.S(b.y,1.570796326794897)&&c.j.S(a.y,1.570796326794897)||c.j.S(b.y,-1.570796326794897)&&c.j.S(a.y,-1.570796326794897)?!0:!1};g.by=function(b,a,d,f){if(0<b.y){var e=new c.b;e.ma(a.x,1.570796326794897)}else e=new c.b,e.ma(a.x,-1.570796326794897);c.j.S(b.x,e.x)||c.j.S(a.y,e.y)||(g.$b(f,e),null!=d&&d.add(0))};g.Vx=function(b,a,d,f){if(0<a.y){var e=new c.b;e.ma(b.x,1.570796326794897)}else e=
new c.b,e.ma(b.x,-1.570796326794897);c.j.S(a.x,e.x)||c.j.S(b.y,e.y)||(g.$b(f,e),null!=d&&d.add(1))};g.Xx=function(b,a,d,f,e,h,l){c.j.Tc(d)?(0<1.570796326794897-b.y&&(d=new c.b,d.ma(b.x,1.570796326794897),g.$b(l,d),null!=h&&h.add(f)),0<1.570796326794897-a.y&&(d=new c.b,d.ma(a.x,1.570796326794897),g.$b(l,d),null!=h&&h.add(f))):(0<1.570796326794897+b.y&&(d=new c.b,d.ma(b.x,-1.570796326794897),g.$b(l,d),null!=h&&h.add(e)),0<1.570796326794897+a.y&&(d=new c.b,d.ma(a.x,-1.570796326794897),g.$b(l,d),null!=
h&&h.add(e)))};g.VI=function(b){if(-3.141592653589793>b.x)for(;-3.141592653589793>b.x;)b.x+=6.283185307179586;if(3.141592653589793<b.x)for(;3.141592653589793<b.x;)b.x-=6.283185307179586};return g}();c.ui=p})(t||(t={}));(function(c){var p=function(){function g(){}g.nl=function(b,a,d){if(null==b||null==a||!c.Ya.Po(a))throw c.g.N();if(b.s())return b;var f=b,e=f.D();if(c.T.Kc(e)){f=c.fh.po(b,a);b=new c.i;f.o(b);for(var e=c.Ia.zd(a,b,!1),h=c.Ya.Fm(a),l=Math.floor((b.v-h.v)/h.aa())*h.aa()+h.v;l<b.B;)l>
b.v+e&&l<b.B-e&&(f=c.fh.Rw(f,a,d,l)),l+=h.aa()}else{if(197==e)return b=new c.Ka(f.description),b.Uc(f,!1),g.nl(b,a,d);if(c.T.Lc(e))return b=new c.Xa(f.description),b.Bc(f,!0),g.nl(b,a,d)}return g.dT(f,a)};g.dT=function(b,a){if(null==b||null==a||!c.Ya.Po(a))throw c.g.N();if(b.s())return b;var d;d=b.D();197==d?(d=new c.Ka(b.description),d.Uc(b,!1)):c.T.Lc(d)?(d=new c.Xa(b.description),d.Bc(b,!0)):d=b;d=c.fh.po(d,a);return d.s()?d:1==c.gh.Am(a)?c.fh.bN(d,a,d!=b):g.bT(d,a,d!=b)};g.bT=function(b,a,d){if(!c.Ya.Po(a))throw c.g.N();
if(b.s())return b;var f=c.Ya.FC(a),e=0-180*f,f=360*f;2==c.gh.Am(a)&&(e=c.Ya.Fm(a),f=e.B,e=e.v,f-=e);return c.fh.dC(b,e,f,a,d)};return g}();c.Vn=p})(t||(t={}));(function(c){var p=function(){function g(){}g.JH=function(b,a){var d=Math.abs(b%a);return isNaN(d)||d==b||d<=Math.abs(a)/2?d:0>b?-1*(d-a):0<b?1*(d-a):0*(d-a)};g.H=function(b){return 0>b?-b:b};g.nb=function(b,a){return 0<=a?g.H(b):-g.H(b)};g.S=function(b,a){return b==a||g.H(b-a)<=g.ZE*(1+(g.H(b)+g.H(a))/2)};g.Tc=function(b){return 0==b||g.H(b)<=
g.ZE};g.as=function(b){b=g.JH(b,g.fv);return g.H(b)<=g.Zg?b:0>b?b+g.fv:b-g.fv};g.Mz=function(b,a){b.l=g.as(b.l);a.l=g.as(a.l);g.H(a.l)>g.Ur&&(b.l=g.as(b.l+g.Zg),a.l=g.nb(g.Zg,a.l)-a.l)};g.gg=function(b,a){var d=Math.sqrt(1-a),d=(1-d)/(1+d),f=d*d;return b/(1+d)*(1+f*(.25+f*(.015625+1/256*f)))*g.Ur};g.qN=function(b,a,d,f,e){var h,l,k,m,r,q,n,u=0,v=q=0,w=0,p=0,t=0;r=0;var D,y,z;n=0;var A,B,C;z=new c.ca;h=new c.ca;if(null!=e)if(z.l=b,h.l=a,g.Mz(z,h),b=z.l,a=h.l,z.l=d,h.l=f,g.Mz(z,h),d=z.l,f=h.l,d=g.as(d-
b),g.S(a,f)&&(g.Tc(d)||g.S(g.H(a),g.Ur)))null!=e&&(e.l=0);else{if(g.S(a,-f)){if(g.S(g.H(a),g.Ur)){null!=e&&(e.l=2*g.gg(6378137,.0066943799901413165));return}if(g.S(g.H(d),g.Zg)){null!=e&&(e.l=2*g.gg(6378137,.0066943799901413165));return}}if(g.Tc(.0066943799901413165))p=Math.cos(a),t=Math.cos(f),null!=e&&(u=Math.sin((f-a)/2),q=Math.sin(d/2),n=2*Math.asin(Math.sqrt(u*u+p*t*q*q)),e.l=6378137*n);else{z=1-Math.sqrt(.9933056200098587);b=1-z;h=Math.atan(b*Math.tan(a));a=Math.sin(h);h=Math.cos(h);l=Math.atan(b*
Math.tan(f));f=Math.sin(l);l=Math.cos(l);m=k=d;B=0;C=1;A=d;for(y=!0;1==y;)B+=1,1==C&&(r=Math.sin(A),q=Math.cos(A),u=l*r,n=h*f-a*l*q,u=Math.sqrt(u*u+n*n),q=a*f+h*l*q,n=Math.atan2(u,q),v=1E-15>g.H(u)?h*l*r/g.nb(1E-15,u):h*l*r/u,w=1-v*v,p=1E-15>g.H(w)?q-a*f/g.nb(1E-15,w)*2:q-a*f/w*2,t=p*p,r=((-3*w+4)*z+4)*w*z/16),D=(1-r)*z*(n+r*u*(p+q*r*(2*t-1))),1==C?(A=d+D*v,1E-14>g.H(A-m)?y=!1:g.H(A)>g.Zg?(C=2,A=g.Zg,0>d&&(A=-A),v=0,w=1,k=m=2,n=g.Zg-g.H(Math.atan(a/h)+Math.atan(f/l)),u=Math.sin(n),q=Math.cos(n),r=
((-3*w+4)*z+4)*w*z/16,1E-14>g.H(v-k)?y=!1:(p=1E-15>g.H(w)?q-a*f/g.nb(1E-15,w)*2:q-a*f/w*2,t=p*p)):(0>(A-m)*(m-k)&&5<B&&(A=(2*A+3*m+k)/6),k=m,m=A)):(v=(A-d)/D,0>(v-m)*(m-k)&&5<B&&(v=(2*v+3*m+k)/6),k=m,m=v,w=1-v*v,r=v*u/(h*l),q=-Math.sqrt(g.H(1-r*r)),A=Math.atan2(r,q),u=l*r,n=h*f-a*l*q,u=Math.sqrt(u*u+n*n),q=a*f+h*l*q,n=Math.atan2(u,q),r=((-3*w+4)*z+4)*w*z/16,1E-14>g.H(v-k)?y=!1:(p=1E-15>g.H(w)?q-a*f/g.nb(1E-15,w)*2:q-a*f/w*2,t=p*p));null!=e&&(v=Math.sqrt(1+(1/(b*b)-1)*w),v=(v-1)/(v+1),w=v*(1-.375*
v*v),e.l=(1+v*v/4)/(1-v)*b*6378137*(n-w*u*(p+w/4*(q*(-1+2*t)-w/6*p*(-3+4*u*u)*(-3+4*t)))))}}};g.Zg=3.141592653589793;g.Ur=1.5707963267948966;g.fv=6.283185307179586;g.ZE=3.552713678800501E-15;return g}();c.lH=p})(t||(t={}));(function(c){var p=function(){function c(){}c.prototype.uv=function(b){this.hi=b};c.prototype.FA=function(b){this.Ab=b};c.prototype.GA=function(b){this.nn=b};c.uB=function(b){return b.s()||1607!=b.D()&&1736!=b.D()?!1:!0};c.sB=function(b){return b.s()||1607!=b.D()&&1736!=b.D()||
20>b.F()?!1:!0};c.tB=function(b){return b.s()||1607!=b.D()&&1736!=b.D()||20>b.F()?!1:!0};return c}();c.Vj=p})(t||(t={}));(function(c){var p=function(){function g(){}g.bH=function(b){var a=new c.Ka;a.Uy(b.R.v,b.R.C);a.vj(b.R.v,b.R.G);a.vj(b.R.B,b.R.G);a.vj(b.R.B,b.R.C);return a};g.uG=function(b,a){var d=c.wi.local(),f=new c.Oc(b);return d.$(f,a,null).next()};g.ll=function(b,a,d){return c.Yr.local().$(b,a,d,null)};g.On=function(b,a,d){return c.dv.local().$(b,a,d,null)};g.OS=function(b,a,d){var f=c.dv.local();
b=new c.Oc(b);a=new c.Oc(a);d=f.$(b,a,d,null);for(f=[];null!=(a=d.next());)f.push(a);return f};g.lc=function(b,a,d){return c.bl.local().$(3,b,a,d,null)};g.mM=function(b,a,d){return c.bl.local().$(4,b,a,d,null)};g.SO=function(b,a,d){var f=c.Zr.local();b=new c.Oc(b);a=new c.Oc(a);d=f.$(b,a,d,null);for(f=[];null!=(a=d.next());)f.push(a);return f};g.jM=function(b,a,d){var f=c.Yr.local();b=new c.Oc(b);a=new c.Oc(a);d=f.$(b,a,d,null);for(f=[];null!=(a=d.next());)f.push(a);return f};g.Ga=function(b,a,d){return c.Zr.local().$(b,
a,d,null)};g.gT=function(b,a,d){return c.bl.local().$(2,b,a,d,null)};g.contains=function(b,a,d){return c.bl.local().$(1,b,a,d,null)};g.UL=function(b,a,d){return c.bl.local().$(16,b,a,d,null)};g.touches=function(b,a,d){return c.bl.local().$(8,b,a,d,null)};g.vQ=function(b,a,d){return c.bl.local().$(32,b,a,d,null)};g.TO=function(b,a,d){return c.bl.local().$(1073741824,b,a,d,null)};g.py=function(b,a,d,f){return c.eI.local().$(b,a,d,f,null)};g.Fb=function(b,a,d,f){var e=null;if(null!=d){if(e=d.Se(),null!=
f&&e.md()!=f.md()&&e.ad!=f.ad)throw c.g.Xj();}else if(null!=f)throw c.g.N();b=c.YH.local().$(b,a,null);null!==e&&null!==f&&(b=c.ic.Mh(b,e,f));return b};g.clip=function(b,a,d){return c.RH.local().$(b,c.i.Oa(a.R.v,a.R.C,a.R.B,a.R.G),d,null)};g.xm=function(b,a,d){if(null==b||null==a)return null;b=c.TH.local().$(!0,b,a,d,null);for(a=[];null!=(d=b.next());)d.s()||a.push(d);return a.slice(0)};g.qK=function(b,a,d,f,e,h,l,k){if(!0===e)return g.dN(b,a,d,f,h,l,k);e=d;if(null!=a){if(l=a.Se(),null!=f&&l.md()!=
f.md()){if(l.ad!=f.ad)throw c.g.Xj();e=[];c.ic.NB(d,d.length,f,l,e)}}else if(null!=f)throw c.g.N();d=c.Nz.local();if(h){b=new c.Oc(b);a=d.$(b,a,e,h,null);for(b=[];null!=(h=a.next());)b.push(h);h=b.slice(0)}else for(h=[],f=0;f<b.length;f++)h[f]=d.$(b[f],a,e[f],null);return h};g.dN=function(b,a,d,f,e,h,l){if(null===a)throw c.g.N();if(null===f||void 0===f)f=4326!==a.md()?a.Se():c.ic.re(9001);if(0!==f.ad)throw c.g.N();c.ic.NB(d,d.length,f,c.ic.re(9001),d);f=c.Sz.local();if(e){b=new c.Oc(b);a=f.$(b,a,
h,d,l,!1,e,null);for(d=[];null!=(h=a.next());)d.push(h);e=d.slice(0)}else{e=[];for(var k=0;k<b.length;k++)e[k]=f.$(b[k],a,h,d[k],l,!1,null)}return e};g.buffer=function(b,a,d,f,e,h,l){var k=d;if(!1===e){if(null!=a){if(e=a.Se(),null!=f&&e.md()!=f.md()){if(e.ad!=f.ad)throw c.g.Xj();k=c.ic.Mh(d,f,e)}}else if(null!=f)throw c.g.N();b=c.Nz.local().$(b,a,k,null)}else{if(null===a)throw c.g.N();if(null===f||void 0===f)f=4326!==a.md()?a.Se():c.ic.re(9001);if(0!==f.ad)throw c.g.N();k=c.ic.Mh(d,f,c.ic.re(9001));
b=c.Sz.local().$(b,a,h,k,l,!1,null)}return b};g.uQ=function(b,a){null!=a&&a.Se();for(var d=new c.Oc(b),d=c.Vz.local().$(d,a,void 0,void 0,void 0,void 0,null),f=[],e;null!=(e=d.next());)f.push(e);return f.slice(0)};g.offset=function(b,a,d,f,e,h,l){if(null!=a){var k=a.Se();if(null!=l&&k.md()!=l.md()){if(k.ad!=l.ad)throw c.g.Xj();d=c.ic.Mh(d,l,k)}}else if(null!=l)throw c.g.N();return c.Vz.local().$(b,a,d,f,e,h,null)};g.IL=function(b){return c.Pz.local().$(b,null)};g.JL=function(b,a){for(var d=c.Pz.local(),
f=new c.Oc(b),d=d.$(f,a,null),f=[],e;null!=(e=d.next());)f.push(e);return f};g.zw=function(b,a,d){return c.bv.local().zw(b,a,d)};g.Aw=function(b,a){return c.bv.local().Aw(b,a)};g.Bw=function(b,a,d,f){return c.bv.local().Bw(b,a,d,f)};g.Qy=function(b,a){return c.$r.local().$(b,a,!1,null)};g.eP=function(b,a){return c.$r.local().Qo(b,a,null)};g.gN=function(b,a,d,f,e){var h=c.Rz.local();if(null!=a){if(a=a.Se(),null!=e&&a.md()!=e.md()){if(a.ad!=e.ad)throw c.g.Xj();d=c.ic.Mh(d,e,a)}}else if(null!=e)throw c.g.N();
return h.$(b,d,f,null)};g.nq=function(b,a,d,f){var e=c.VH.local();if(null!=a){if(a=a.Se(),null!=f&&a.md()!=f.md()){if(a.ad!=f.ad)throw c.g.Xj();d=c.ic.Mh(d,f,a)}}else if(null!=f)throw c.g.N();return e.$(b,d,null)};g.fw=function(b,a,d,f,e){void 0===e&&(e=0);var h=c.$H.local();if(4==e)throw c.g.qe();if(0!==e)throw c.g.qe();if(null!=a){var l=a.Se();if(null!=f&&l.md()!=f.md()){if(l.ad!=f.ad)throw c.g.Xj();d=c.ic.Mh(d,f,l)}}else if(null!=f)throw c.g.N();return h.$(b,d,a,e,null)};g.kN=function(b,a,d,f){if(null===
b)return 0;if(4==f)throw c.g.qe();if(0!==f)throw c.g.qe();if(197==b.D())b=g.bH(b);else if(1736!=b.D())return 0;f=c.Ya.Em(a);b=c.Ya.Wl(b,a,f);b=c.mH.lN([b])[0];if(null!==d){if(2!==d.ad)throw c.g.N("Unit must be a area unit type");b=c.ic.Mh(b,c.ic.re(109404),d)}return b};g.oN=function(b,a,d,f){b=c.bI.local().$(b,a,f,null);if(null!==d){if(0!==d.ad)throw c.g.N("Unit must be a linear unit type");b=c.ic.Mh(b,c.ic.re(9001),d)}return b};g.DQ=function(b,a,d){if(null===b)return 0;var f=null;if(null!=a){f=a.Se();
if(0==f.ad&&(f=c.ic.MC(f),null==f&&null!==d))throw c.g.N();if(null!=d&&f.md()!=d.md()&&f.ad!=d.ad)throw c.g.Xj();}else if(null!=d)throw c.g.N();return 1736==b.D()||197==b.D()?(b=b.Lh(),null!==d?c.ic.Mh(b,f,d):b):0};g.EQ=function(b,a,d){if(null===b||b.s()||1>b.fb())return 0;var f=null;if(null!=a){if(f=a.Se(),null!=d&&f.md()!=d.md()&&f.ad!=d.ad)throw c.g.Xj();}else if(null!=d)throw c.g.N();1736==b.D()||197==b.D()?a=b.Rf():c.T.Lc(b.D())?(a=new c.Xa(b.description),a.Bc(b,!0)):a=b;b=0;a=a.Ca();for(var e=
new c.b,h=new c.b;a.kb();)for(;a.La();){var l=a.ia();l.gt(e);l.uw(h);b+=c.b.Fb(e,h)}null!==f&&null!==d&&(b=c.ic.Mh(b,f,d));return b};g.JT=function(b,a){return c.gh.nN(b,a)};g.HL=function(b){return void 0!==b.points?g.LG(b,void 0===b.hasZ?!1:b.hasZ,void 0===b.hasM?!1:b.hasM):void 0!==b.rings?g.Lz(b.rings,void 0===b.hasZ?!1:b.hasZ,void 0===b.hasM?!1:b.hasM,"P"):void 0!==b.paths?g.Lz(b.paths,void 0===b.hasZ?!1:b.hasZ,void 0===b.hasM?!1:b.hasM,"L"):void 0!==b.x?g.QG(b):void 0!==b.xmin?g.jT(b):null};g.QG=
function(b){if(null==b.x||"NaN"==b.x)return new c.Va;var a=new c.Va(b.x,b.y);void 0!==b.z&&null!==b.z&&a.tS(b.z);void 0!==b.m&&null!==b.m&&a.dS(b.m);return a};g.jT=function(b){if(null==b.xmin||"NaN"==b.xmin)return new c.Uj;var a=new c.Uj(b.xmin,b.ymin,b.xmax,b.ymax);void 0!==b.zmin&&null!==b.zmin&&a.setInterval(1,0,b.zmin,b.zmax);void 0!==b.mmin&&null!==b.mmin&&a.setInterval(2,0,b.mmin,b.mmax);return a};g.LG=function(b,a,d){var f=0,e=new c.pe,h=3*b.points.length;0!=h%2&&h++;2>h&&(h=2);var l=c.I.truncate(3*
b.points.length/2);4>l?l=4:16>l&&(l=16);for(var h=c.Ac.kl(h,0),k=c.Ac.kl(l),l=c.Ac.kl(l),g=0;g<b.points.length;g++)h.write(2*g,b.points[g][0]),h.write(2*g+1,b.points[g][1]),k.write(g,a||d?b.points[g][2]:NaN),l.write(g,d&&a?b.points[g][3]:NaN),f++;0!=f&&(e.resize(f),e.bm(0,h));a&&(e.Ne(1),e.bm(1,k));d&&(e.Ne(2),e.bm(2,0==a?k:l));e.be(16777215);return e};g.Lz=function(b,a,d,f){var e,h=0,l=2;"P"==f?(e=new c.Ka,h=1,l=3):e=new c.Xa;for(var k=c.Ac.Cg(0),g=c.Ac.so(0),r=0,q=0,n=[],u=[],v=0;v<b.length;v++){var w=
b[v].length;n[v]=!1;if("P"===f&&b[v][0][0]===b[v][b[v].length-1][0]&&b[v][0][1]===b[v][b[v].length-1][1]){var p=0==d?!0:b[v][0][3]===b[v][b[v].length-1][3]||void 0===b[v][0][3]&&void 0===b[v][b[v].length-1][3];(0==a||b[v][0][2]===b[v][b[v].length-1][2]||void 0===b[v][0][2]&&void 0===b[v][b[v].length-1][2])&&p&&(n[v]=!0,--w)}w>=l?(u[v]=!1,q+=1,k.add(r),g.add(h),r+=w):u[v]=!0}f=3*r;0!=f%2&&f++;2>f&&(f=2);v=c.I.truncate(3*r/2);4>v?v=4:16>v&&(v=16);f=c.Ac.kl(f,0);h=c.Ac.kl(v);l=c.Ac.kl(v);for(v=w=0;v<
b.length;v++)if(!1===u[v])for(p=0;p<b[v].length;p++){var t=!1;p===b[v].length-1&&!0===n[v]&&(t=!0);t||(f.write(2*w,b[v][p][0]),f.write(2*w+1,b[v][p][1]),h.write(w,a||d?b[v][p][2]:NaN),l.write(w,d&&a?b[v][p][3]:NaN),w++)}0!=r&&(b=e,k.resize(q),g.resize(q),0<r&&(k.add(r),g.add(0)),b.bm(0,f),b.KF(g),b.LF(k));a&&(e.Ne(1),e.bm(1,h));d&&(e.Ne(2),e.bm(2,0==a?h:l));e.be(16777215);return e};return g}();c.Pb=p})(t||(t={}));(function(c){var p=function(){function c(){}c.Zk=function(b){var a=0,d=0,f=b.length,
e=b[d],c;for(d;d<f-1;d++)c=b[d+1],a+=(c[0]-e[0])*(c[1]+e[1]),e=c;return 0<=a};c.rotate=function(b,a,d){a=a*Math.PI/180;var f=Math.cos(a),e=Math.sin(a);if(void 0!==b.paths){a={paths:[]};for(var h=0;h<b.paths.length;h++){for(var l=b.paths[h],k=[],m=0;m<l.length;m++){var r=l[m].slice(0);k.push(r);var q=f*(l[m][0]-d.x)-e*(l[m][1]-d.y)+d.x,n=e*(l[m][0]-d.x)+f*(l[m][1]-d.y)+d.y;r[0]=q;r[1]=n}a.paths.push(k)}return a}if(void 0!==b.rings){a={rings:[]};for(h=0;h<b.rings.length;h++){for(var l=b.rings[h],k=
[],u=c.Zk(l),m=0;m<l.length;m++)r=l[m].slice(0),k.push(r),q=f*(l[m][0]-d.x)-e*(l[m][1]-d.y)+d.x,n=e*(l[m][0]-d.x)+f*(l[m][1]-d.y)+d.y,r[0]=q,r[1]=n;c.Zk(k)!==u&&k.reverse();a.rings.push(k)}return a}if(void 0!==b.x)return a={x:f*(b.x-d.x)-e*(b.y-d.y)+d.x,y:e*(b.x-d.x)+f*(b.y-d.y)+d.y},void 0!==b.z&&(a.z=b.z),void 0!==b.m&&(a.m=b.m),a;if(void 0!==b.points){a={points:[]};b=b.points;for(m=0;m<b.length;m++)h=b[m].slice(0),h[0]=f*(b[m][0]-d.x)-e*(b[m][1]-d.y)+d.x,h[1]=e*(b[m][0]-d.x)+f*(b[m][1]-d.y)+d.y,
a.points.push(h);return a}return null};c.YM=function(b,a){var d,f;if(void 0!==b.paths){d={paths:[]};for(var e=0;e<b.paths.length;e++){for(var h=b.paths[e],l=[],k=0;k<h.length;k++){var m=h[k].slice(0);l.push(m);f=a.x-h[k][0];m[0]=h[k][0]+2*f}d.paths.push(l)}return d}if(void 0!==b.rings){d={rings:[]};for(e=0;e<b.rings.length;e++){for(var h=b.rings[e],r=c.Zk(h),l=[],k=0;k<h.length;k++)m=h[k].slice(0),l.push(m),f=a.x-h[k][0],m[0]=h[k][0]+2*f;c.Zk(l)!==r&&l.reverse();d.rings.push(l)}return d}if(void 0!==
b.x)return f=a.x-b.x,d={x:b.x+2*f,y:b.y},void 0!==b.z&&(d.z=b.z),void 0!==b.m&&(d.m=b.m),d;if(void 0!==b.points){d={points:[]};e=b.points;for(k=0;k<e.length;k++)h=e[k].slice(0),f=a.x-h[0],h[0]+=2*f,d.points.push(h);return d}return void 0!==b.xmin?(d={v:b.xmin,C:b.ymin,B:b.xmax,G:b.ymax},void 0!==b.zmin&&(d.zmin=b.zmin,d.zmax=b.zmax),void 0!==b.mmin&&(d.mmin=b.mmin,d.mmax=b.mmax),f=a.x-b.xmin,d.xmax=b.xmin+2*f,f=a.x-b.xmax,d.xmin=b.xmax+2*f,d):null};c.ZM=function(b,a){var d,f;if(void 0!==b.paths){d=
{paths:[]};for(var e=0;e<b.paths.length;e++){for(var h=b.paths[e],l=[],k=0;k<h.length;k++){var m=h[k].slice(0);l.push(m);f=a.y-h[k][1];m[1]=h[k][1]+2*f}d.paths.push(l)}return d}if(void 0!==b.rings){d={rings:[]};for(e=0;e<b.rings.length;e++){for(var h=b.rings[e],r=c.Zk(h),l=[],k=0;k<h.length;k++)m=h[k].slice(0),l.push(m),f=a.y-h[k][1],m[1]=h[k][1]+2*f;c.Zk(l)!==r&&l.reverse();d.rings.push(l)}return d}if(void 0!==b.x)return f=a.y-b.y,d={y:b.y+2*f,x:b.x},void 0!==b.z&&(d.z=b.z),void 0!==b.m&&(d.m=b.m),
d;if(void 0!==b.points){d={points:[]};e=b.points;for(k=0;k<e.length;k++)h=e[k].slice(0),f=a.y-h[1],h[1]+=2*f,d.points.push(h);return d}return void 0!==b.xmin?(d={v:b.xmin,C:b.ymin,B:b.xmax,G:b.ymax},void 0!==b.zmin&&(d.zmin=b.zmin,d.zmax=b.zmax),void 0!==b.mmin&&(d.mmin=b.mmin,d.mmax=b.mmax),f=a.y-b.ymin,d.ymax=b.ymin+2*f,f=a.y-b.ymax,d.ymin=b.ymax+2*f,d):null};return c}();c.$u=p})(t||(t={}));(function(c){var p=function(){function g(){}g.ig=function(b,a){var d=a;null==d&&(d=c.Od.Tf());switch(b){case 33:return new c.Va(d);
case 322:return new c.yb(d);case 197:return new c.Uj(d);case 550:return new c.pe(d);case 1607:return new c.Xa(d);case 1736:return new c.Ka(d);default:throw c.g.ra("invalid argument.");}};return g}();c.qH=p})(t||(t={}));(function(c){var p=function(){function g(b,a){this.Ee=c.ga.Wc(b,-1);this.oa=new c.Tr;this.tk=a}g.prototype.yR=function(b){this.oa.Cr(Math.min(this.Ee.size,b));this.oa.$l(b)};g.prototype.addElement=function(b,a){if(void 0===a)return this.IJ(b);var d=c.I.truncate(a%this.Ee.size),f=this.Ee.get(d);
-1==f&&(f=this.oa.ih(),this.Ee.set(d,f));return this.oa.addElement(f,b)};g.prototype.IJ=function(b){var a=this.tk.vw(b),a=c.I.truncate(a%this.Ee.size),d=this.Ee.get(a);-1==d&&(d=this.oa.ih(),this.Ee.set(a,d));return this.oa.addElement(d,b)};g.prototype.Jc=function(b,a){if(void 0===a)this.cM(b);else{var d=c.I.truncate(a%this.Ee.size),f=this.Ee.get(d);if(-1==f)throw c.g.N();for(var e=this.oa.fc(f),h=-1;-1!=e;){var l=this.oa.bb(e);this.oa.da(e)==b?(this.oa.Jc(f,h,e),-1==this.oa.fc(f)&&(this.oa.Eg(f),
this.Ee.set(d,-1))):h=e;e=l}}};g.prototype.cM=function(b){var a=this.tk.vw(b),a=c.I.truncate(a%this.Ee.size),d=this.Ee.get(a);if(-1==d)throw c.g.N();for(var f=this.oa.fc(d),e=-1;-1!=f;){var h=this.oa.bb(f);this.oa.da(f)==b?(this.oa.Jc(d,e,f),-1==this.oa.fc(d)&&(this.oa.Eg(d),this.Ee.set(a,-1))):e=f;f=h}};g.prototype.EN=function(b){b=c.I.truncate(b%this.Ee.size);b=this.Ee.get(b);return-1==b?-1:this.oa.fc(b)};g.prototype.TN=function(b){return this.oa.bb(b)};g.prototype.jd=function(b){var a=this.tk.vw(this.da(b)),
a=c.I.truncate(a%this.Ee.size),d=this.Ee.get(a);if(-1==d)throw c.g.N();for(var f=this.oa.fc(d),e=-1;-1!=f;){if(f==b){this.oa.Jc(d,e,f);-1==this.oa.fc(d)&&(this.oa.Eg(d),this.Ee.set(a,-1));return}e=f;f=this.oa.bb(f)}throw c.g.N();};g.prototype.da=function(b){return this.oa.da(b)};g.prototype.clear=function(){this.Ee=c.ga.Wc(this.Ee.size,-1);this.oa.clear()};g.prototype.size=function(){return this.oa.EC()};return g}();c.yH=p})(t||(t={}));(function(c){var p=function(){function g(){this.ci=new c.Fc(3);
this.oa=new c.Fc(6);this.CP=!1;this.Vd=-1}g.prototype.bk=function(b){this.ci.Jc(b)};g.prototype.nu=function(){return this.ci.ae()};g.prototype.Qs=function(b){this.oa.Jc(b)};g.prototype.Yx=function(){return this.oa.ae()};g.prototype.Jy=function(b,a){this.ci.L(b,1,a)};g.prototype.Fu=function(b,a){this.ci.L(b,2,a)};g.prototype.cS=function(b,a){this.ci.L(b,3,a)};g.prototype.Hy=function(b,a){this.oa.L(b,4,a)};g.prototype.fS=function(b,a){this.oa.L(b,3,a)};g.prototype.OF=function(b,a){this.oa.L(b,2,a)};
g.prototype.ih=function(b){var a=this.Yx();this.oa.L(a,3,this.Vd);this.oa.L(a,4,0);this.oa.L(a,5,b);-1!=this.Vd&&this.OF(this.Vd,a);return this.Vd=a};g.prototype.Eg=function(b){this.BB(b);var a=this.oa.O(b,2),d=this.oa.O(b,3);-1!=a?this.fS(a,d):this.Vd=d;-1!=d&&this.OF(d,a);this.Qs(b);return d};g.prototype.Cr=function(b){this.oa.ce(b)};g.prototype.AC=function(b){return this.oa.O(b,5)};g.prototype.bS=function(b,a){this.oa.L(b,5,a)};g.prototype.addElement=function(b,a){return this.CO(b,a)};g.prototype.CO=
function(b,a){var d=this.nu();this.Fu(d,-1);-1==this.oa.O(b,0)&&this.oa.L(b,0,d);var f=this.oa.O(b,1);this.Jy(d,f);-1!=f&&this.Fu(f,d);this.oa.L(b,1,d);this.setData(d,a);this.Hy(b,this.uq(b)+1);this.CP&&this.cS(d,b);return d};g.prototype.Jc=function(b,a){var d=this.fe(a),f=this.bb(a);-1!=d?this.Fu(d,f):this.oa.L(b,0,f);-1!=f?this.Jy(f,d):this.oa.L(b,1,d);this.bk(a);this.Hy(b,this.uq(b)-1);return f};g.prototype.$l=function(b){this.ci.ce(b)};g.prototype.getData=function(b){return this.ci.O(b,0)};g.prototype.setData=
function(b,a){this.ci.L(b,0,a)};g.prototype.bb=function(b){return this.ci.O(b,2)};g.prototype.fe=function(b){return this.ci.O(b,1)};g.prototype.fc=function(b){return this.oa.O(b,0)};g.prototype.tc=function(b){return this.oa.O(b,1)};g.prototype.clear=function(){for(var b=this.Vd;-1!=b;)b=this.Eg(b)};g.prototype.BB=function(b){for(var a=this.tc(b);-1!=a;){var d=a,a=this.fe(d);this.bk(d)}this.oa.L(b,0,-1);this.oa.L(b,1,-1);this.Hy(b,0)};g.prototype.s=function(){return 0==this.ci.size};g.prototype.EC=
function(){return this.ci.size};g.prototype.uq=function(b){return this.oa.O(b,4)};g.prototype.Cw=function(b){return this.oa.O(b,3)};return g}();c.Zn=p})(t||(t={}));(function(c){var p=function(){function g(b){void 0===b?(this.bg=new c.Fc(2),this.oa=new c.Fc(4),this.Vd=-1,this.At=!0):(this.bg=new c.Fc(2),this.oa=new c.Fc(b?4:2),this.Vd=-1,this.At=b)}g.prototype.bk=function(b){this.bg.Jc(b)};g.prototype.nu=function(){return this.bg.ae()};g.prototype.Qs=function(b){this.oa.Jc(b)};g.prototype.Yx=function(){return this.oa.ae()};
g.prototype.ih=function(){var b=this.Yx();this.At&&(this.oa.L(b,3,this.Vd),-1!=this.Vd&&this.oa.L(this.Vd,2,b),this.Vd=b);return b};g.prototype.Eg=function(b){for(var a=this.fc(b);-1!=a;){var d=a,a=this.bb(a);this.bk(d)}this.At&&(a=this.oa.O(b,2),d=this.oa.O(b,3),-1!=a?this.oa.L(a,3,d):this.Vd=d,-1!=d&&this.oa.L(d,2,a));this.Qs(b)};g.prototype.Cr=function(b){this.oa.ce(b)};g.prototype.addElement=function(b,a){var d=this.oa.O(b,1),f=this.nu();-1!=d?this.bg.L(d,1,f):this.oa.L(b,0,f);this.oa.L(b,1,f);
this.bg.L(f,0,a);return f};g.prototype.$l=function(b){this.bg.ce(b)};g.prototype.Jc=function(b,a,d){-1!=a?(this.bg.L(a,1,this.bg.O(d,1)),this.oa.O(b,1)==d&&this.oa.L(b,1,a)):(this.oa.L(b,0,this.bg.O(d,1)),this.oa.O(b,1)==d&&this.oa.L(b,1,-1));this.bk(d)};g.prototype.Qv=function(b,a){var d=this.oa.O(b,1),f=this.oa.O(a,0);-1!=f&&(-1!=d?this.bg.L(d,1,f):this.oa.L(b,0,f),this.oa.L(b,1,this.oa.O(a,1)));this.At&&(d=this.oa.O(a,2),f=this.oa.O(a,3),-1!=d?this.oa.L(d,3,f):this.Vd=f,-1!=f&&this.oa.L(f,2,d));
this.Qs(a)};g.prototype.da=function(b){return this.bg.O(b,0)};g.prototype.Vi=function(b,a){this.bg.L(b,0,a)};g.prototype.bb=function(b){return this.bg.O(b,1)};g.prototype.fc=function(b){return this.oa.O(b,0)};g.prototype.Dm=function(b){return this.da(this.fc(b))};g.prototype.clear=function(){this.bg.Nh(!0);this.oa.Nh(!0);this.Vd=-1};g.prototype.s=function(b){return void 0===b?0==this.bg.size:-1==this.oa.O(b,0)};g.prototype.EC=function(){return this.bg.size};g.prototype.Cw=function(b){return this.oa.O(b,
3)};return g}();c.Tr=p})(t||(t={}));(function(c){var p=function(){function g(){}g.iz=function(b,a,d,f,e,h,l){var k=new c.b;k.J(b);b=new c.b;b.J(a);e.vv(k);e.vv(b);a=e.ls(k);var m=e.ls(b);0==m&&(m=e.zC());if(k.x!=b.x&&(k.y!=b.y||k.y!=e.C&&k.y!=e.G)||m>a!=h){a=e.uA(k);var m=e.uA(b),r,q=h?1:3;do a=a+q&3,r=e.uu(a),0!=l&&(f=g.iz(k,r,d,f,e,h,l)),d[f++].ma(r.x,r.y),k=r;while((a&3)!=m);0!=l&&(f=g.iz(k,b,d,f,e,h,l))}else if(e=new c.b,e.ma(b.x-k.x,b.y-k.y),0!=l&&(l=c.I.truncate(e.xJ()/l),0<l))for(e.scale(1/
(l+1)),h=0;h<l;h++)k.add(e),d[f++].ma(k.x,k.y);return f};g.zd=function(b,a,d){a=a.lv();b=null!=b&&void 0!==b.Jo?b.Jo():0;d&&(a*=4,b*=1.1);return Math.max(b,a)};g.zs=function(b){return 2*Math.sqrt(2)*b};g.TJ=function(b){return Math.sqrt(2)*b};g.Bg=function(b,a,d){var f=new c.i;a.o(f);return g.zd(b,f,d)};g.qB=function(b,a,d){a=a.zh(1,0).lv();b=null!=b?b.Jo():0;d&&(a*=4,b*=1.1);return Math.max(b,a)};g.KT=function(b,a){var d=new c.i;b.cd(d);d.Db(a);return d};g.Zs=function(b,a){var d=new c.i;b.cd(d);var f=
new c.i;a.cd(f);d.Db(f);return d};g.TT=function(b,a){var d=b.IN(a),f=b.Ea(a),e=b.Dc(a),h=b.Fa(d);d==f?(e=b.Fa(e-1),d=b.Fa(f+1)):d==e-1?(e=b.Fa(d-1),d=b.Fa(f)):(e=b.Fa(d-1),d=b.Fa(d+1));h=c.b.yn(e,h,d);return 0==h?0<b.no(a):-1==h};g.BK=function(b){var a=new c.i;b.cd(a);if(a.s())return null;var d=new c.bo(a,8),f=-1,e=new c.i,h=!1;do for(var l=0,k=b.ea();l<k;l++)if(b.Ti(l,e),f=d.jt(l,e,f),-1==f){if(h)throw c.g.ra("internal error");b.tm(a,!1);h=!0;d.reset(a,8);break}else h=!1;while(h);return d};g.mB=
function(b){var a=new c.i;b.cd(a);for(var d=new c.bo(a,8),f=-1,e=b.Ca(),h=new c.i,l=!1;e.kb();)for(;e.La();){var k=e.ia(),g=e.Jb();k.o(h);f=d.jt(g,h,f);if(-1==f){if(l)throw c.g.wa();b.tm(a,!1);l=!0;d.reset(a,8);e.Lk();break}}return d};g.hj=function(b,a){var d=new c.i;b.cd(d);for(var f=new c.bo(d,8),e=-1,h=new c.i,l=b.Ca(),k=!1;l.kb();)for(;l.La();){var g=l.ia(),r=l.Jb();g.o(h);if(h.jc(a)&&(e=f.jt(r,h,e),-1==e)){if(k)throw c.g.ra("internal error.");b.tm(d,!1);k=!0;f.reset(d,8);l.Lk();break}}return f};
g.wU=function(b){var a=new c.i;b.cd(a);for(var d=new c.bo(a,8),f=new c.b,e=new c.i,h=!1,l=0;l<b.F();l++)if(b.w(l,f),e.K(f),-1==d.kg(l,e)){if(h)throw c.g.wa();b.tm(a,!1);h=!0;d.reset(a,8);l=-1}return d};g.nB=function(b,a){for(var d=new c.bo(a,8),f=new c.b,e=!1,h=new c.i,l=0;l<b.F();l++)if(b.w(l,f),a.contains(f)&&(h.K(f),-1==d.kg(l,h))){if(e)throw c.g.wa();e=!0;l=new c.i;b.tm(l,!1);d.reset(l,8);l=-1}return d};g.BN=function(b,a,d){var f=new c.i,e=new c.i;b.cd(f);a.cd(e);f.P(d,d);e.P(d,d);var h=new c.i;
h.K(f);h.Ga(e);b=b.Ca();a=a.Ca();var l=new c.sz;l.VF(d);var k=!1;for(l.gG();b.kb();)for(;b.La();)b.ia().o(f),f.jc(h)&&(k=!0,d=new c.i,d.K(f),l.NA(b.Jb(),d));l.ZB();if(!k)return null;f=!1;for(l.fG();a.kb();)for(;a.La();)a.ia().o(e),e.jc(h)&&(f=!0,d=new c.i,d.K(e),l.KA(a.Jb(),d));l.YB();return f?l:null};g.CN=function(b,a,d,f,e){var h=b.D(),l=a.D(),k=new c.i,g=new c.i;b.cd(k);a.cd(g);k.P(d,d);g.P(d,d);var r=new c.i;r.K(k);r.Ga(g);var q=new c.sz;q.VF(d);var n=!1;q.gG();var u=0;for(d=b.ea();u<d;u++)if(!f||
1736!=h||b.pt(u))b.Ti(u,k),k.jc(r)&&(n=!0,q.NA(u,k));q.ZB();if(!n)return null;b=!1;q.fG();f=0;for(d=a.ea();f<d;f++)if(!e||1736!=l||a.pt(f))a.Ti(f,g),g.jc(r)&&(b=!0,q.KA(f,g));q.YB();return b?q:null};g.YT=function(b,a){return 0<b.qj(a)};g.vU=function(b,a){var d=new c.i;b.jR(a,d);var d=new c.bo(d,8),f=-1,e=new c.i,h=b.Ca();h.vy(a);if(h.kb())for(;h.La();){var l=h.ia(),k=h.Jb();l.cd(e);f=d.jt(k,e,f);if(-1==f)throw c.g.ra("internal error");}return d};return g}();c.Ia=p})(t||(t={}));(function(c){var p=
function(){function a(b){this.Na=b}a.prototype.compare=function(a,b,f){a=a.da(f);f=this.Na.tj(b);var c=this.Na.tj(a);return f<c?-1:f==c?d.Oo(b)&&d.rt(a)?-1:d.Oo(a)&&d.rt(b)?1:0:1};return a}(),g=function(){function a(b){this.Na=b}a.prototype.Yp=function(a,b,d){this.Na.AS(d,a,b)};a.prototype.Lo=function(a){return this.Na.tj(a)};return a}(),b;(function(a){a[a.initialize=0]="initialize";a[a.pIn=1]="pIn";a[a.pL=2]="pL";a[a.pR=3]="pR";a[a.pT=4]="pT";a[a.right=5]="right";a[a.left=6]="left";a[a.all=7]="all"})(b||
(b={}));var a=function(){function a(){this.Na=null;this.gi=new c.Nd;this.tg=new c.ga(0);this.$f=[0,0]}a.prototype.Bh=function(a,b){this.gi.qa=a.qa-b;this.gi.va=a.va+b;this.tg.resize(0);this.Td=0;this.$f[0]=0};a.prototype.uy=function(a,b,d){if(a>b)throw c.g.N();this.gi.qa=a-d;this.gi.va=b+d;this.tg.resize(0);this.Td=0;this.$f[0]=0};a.prototype.Fn=function(a,b){this.gi.qa=a-b;this.gi.va=a+b;this.tg.resize(0);this.Td=0;this.$f[0]=0};a.prototype.next=function(){if(!this.Na.Uo)throw c.g.xa();if(0>this.Td)return-1;
for(var a=!0;a;)switch(this.$f[this.Td]){case 1:a=this.wQ();break;case 2:a=this.xQ();break;case 3:a=this.yQ();break;case 4:a=this.zQ();break;case 5:a=this.DR();break;case 6:a=this.uP();break;case 7:a=this.WJ();break;case 0:a=this.Qw();break;default:throw c.g.wa();}return-1!=this.og?this.Ao()>>1:-1};a.uT=function(b,d,c){var k=new a;k.Na=b;k.tg.xb(20);k.Bh(d,c);return k};a.yT=function(b,d,c){var k=new a;k.Na=b;k.tg.xb(20);k.Fn(d,c);return k};a.Oa=function(b){var d=new a;d.Na=b;d.tg.xb(20);d.Td=-1;return d};
a.prototype.Qw=function(){this.og=this.VD=this.di=this.yc=-1;if(null!=this.Na.Xd&&0<this.Na.Xd.size)return this.$f[0]=1,this.di=this.Na.Ze,!0;this.Td=-1;return!1};a.prototype.wQ=function(){this.yc=this.di;if(-1==this.yc)return this.og=this.Td=-1,!1;var a=this.Na.Bo(this.yc);if(this.gi.va<a)return a=this.Na.sj(this.yc),this.di=this.Na.Di(this.yc),-1!=a&&(this.uh=this.Na.gk(a),this.$f[++this.Td]=6),!0;if(a<this.gi.qa)return a=this.Na.sj(this.yc),this.di=this.Na.rj(this.yc),-1!=a&&(this.uh=this.Na.tq(a),
this.$f[++this.Td]=5),!0;this.$f[this.Td]=2;this.VD=this.yc;a=this.Na.sj(this.yc);this.di=this.Na.Di(this.yc);-1!=a&&(this.uh=this.Na.gk(a),this.$f[++this.Td]=7);return!0};a.prototype.xQ=function(){this.yc=this.di;if(-1==this.yc)return this.$f[this.Td]=3,this.di=this.Na.rj(this.VD),!0;if(this.Na.Bo(this.yc)<this.gi.qa){var a=this.Na.sj(this.yc);this.di=this.Na.rj(this.yc);-1!=a&&(this.uh=this.Na.tq(a),this.$f[++this.Td]=5);return!0}a=this.Na.sj(this.yc);this.di=this.Na.Di(this.yc);-1!=a&&(this.uh=
this.Na.gk(a),this.$f[++this.Td]=7);a=this.Na.rj(this.yc);-1!=a&&this.tg.add(a);return!0};a.prototype.yQ=function(){this.yc=this.di;if(-1==this.yc)return this.$f[this.Td]=4,!0;if(this.gi.va<this.Na.Bo(this.yc)){var a=this.Na.sj(this.yc);this.di=this.Na.Di(this.yc);-1!=a&&(this.uh=this.Na.gk(a),this.$f[++this.Td]=6);return!0}a=this.Na.sj(this.yc);this.di=this.Na.rj(this.yc);-1!=a&&(this.uh=this.Na.gk(a),this.$f[++this.Td]=7);a=this.Na.Di(this.yc);-1!=a&&this.tg.add(a);return!0};a.prototype.zQ=function(){if(0==
this.tg.size)return this.og=this.Td=-1,!1;this.yc=this.tg.get(this.tg.size-1);this.tg.resize(this.tg.size-1);var a=this.Na.sj(this.yc);-1!=a&&(this.uh=this.Na.gk(a),this.$f[++this.Td]=7);-1!=this.Na.Di(this.yc)&&this.tg.add(this.Na.Di(this.yc));-1!=this.Na.rj(this.yc)&&this.tg.add(this.Na.rj(this.yc));return!0};a.prototype.uP=function(){this.og=this.uh;if(-1!=this.og&&d.Oo(this.Ao())&&this.Na.tj(this.Ao())<=this.gi.va)return this.uh=this.DC(),!1;this.Td--;return!0};a.prototype.DR=function(){this.og=
this.uh;if(-1!=this.og&&d.rt(this.Ao())&&this.Na.tj(this.Ao())>=this.gi.qa)return this.uh=this.cO(),!1;this.Td--;return!0};a.prototype.WJ=function(){this.og=this.uh;if(-1!=this.og&&d.Oo(this.Ao()))return this.uh=this.DC(),!1;this.Td--;return!0};a.prototype.DC=function(){return this.Na.Df?this.Na.If.bb(this.og):this.Na.ki.bb(this.og)};a.prototype.cO=function(){return this.Na.Df?this.Na.If.fe(this.og):this.Na.ki.fe(this.og)};a.prototype.Ao=function(){return this.Na.Df?this.Na.If.da(this.og):this.Na.ki.getData(this.og)};
return a}();c.DT=a;var d=function(){function b(a){this.Al=this.qh=this.If=this.ki=this.Hl=this.Ki=this.Xd=this.Li=null;this.Df=a;this.Uo=this.Ct=!1}b.prototype.Up=function(){this.Qj(!0)};b.prototype.fq=function(a,b){if(!this.Ct)throw c.g.xa();this.Li.push(new c.Nd(a,b))};b.prototype.vo=function(){if(!this.Ct)throw c.g.ra("invalid call");this.Ct=!1;this.Uo=!0;this.Df||(this.DO(),this.It=this.Li.length)};b.prototype.kg=function(a){if(!this.Df||!this.Uo)throw c.g.N("invalid call");if(-1==this.Ze){var b=
this.Li.length;if(this.nx){var d=new c.ga(0);d.xb(2*b);this.XE(d);this.qh.xb(2*b);this.qh.resize(0);this.WE(d);this.Hl.resize(b,-1);this.Hl.bh(-1,0,b);this.nx=!1}else this.Hl.bh(-1,0,b);this.Ze=this.Ls()}b=this.$C(a<<1,this.Ze);d=this.If.addElement((a<<1)+1,this.Hw(b));this.QF(b,d);this.Hl.set(a,b);this.It++};b.prototype.remove=function(a){if(!this.Df||!this.Uo)throw c.g.ra("invalid call");var b=this.Hl.get(a);if(-1==b)throw c.g.N("the interval does not exist in the interval tree");this.Hl.set(a,
-1);this.It--;var d=this.Hw(b),f;f=this.If.iO(d);this.If.jd(this.MN(b),d);this.If.jd(this.fO(b),d);a=this.If.size(d);0==a&&(this.If.eM(d),this.TF(f,-1));this.Ki.Jc(b);for(var d=this.GC(f),g=this.Di(f),r=this.rj(f),b=0;!(0<a||f==this.Ze||-1!=g&&-1!=r);)f==this.Di(d)?-1!=g?(this.Rj(d,g),this.Xi(g,d),this.Rj(f,-1)):-1!=r?(this.Rj(d,r),this.Xi(r,d),this.Tj(f,-1)):this.Rj(d,-1):-1!=g?(this.Tj(d,g),this.Xi(g,d),this.Rj(f,-1)):-1!=r?(this.Tj(d,r),this.Xi(r,d),this.Tj(f,-1)):this.Tj(d,-1),this.Xi(f,-1),b++,
f=d,d=this.sj(f),a=-1!=d?this.If.size(d):0,g=this.Di(f),r=this.rj(f),d=this.GC(f)};b.prototype.reset=function(){if(!this.Df||!this.Uo)throw c.g.N("invalid call");this.Qj(!1)};b.prototype.size=function(){return this.It};b.prototype.Re=function(){return a.Oa(this)};b.prototype.XE=function(a){for(var b=this.Li.length,d=0;d<2*b;d++)a.add(d);this.BS(a,2*b)};b.prototype.WE=function(a){for(var b=NaN,d=0;d<a.size;d++){var f=a.get(d),c=this.tj(f);c!=b&&(this.qh.add(f),b=c)}};b.prototype.DO=function(){var a=
this.Li.length,b=new c.ga(0);b.xb(2*a);this.XE(b);this.qh.xb(2*a);this.qh.resize(0);this.WE(b);this.Ki.ce(a);this.ki.$l(2*a);var d=c.Ac.Cg(a);d.bh(-1,0,a);this.Ze=this.Ls();for(a=0;a<b.size;a++){var f=b.get(a),g=d.get(f>>1);-1!=g?this.QF(g,this.ki.addElement(this.Hw(g),f)):(g=this.$C(f,this.Ze),d.set(f>>1,g))}};b.prototype.$C=function(a,b){var d=b,f=b,g=b,r,q=-1,n=0,u=this.qh.size-1,v=0,w=a>>1,p=NaN,t=NaN;r=!0;for(var D=this.SN(w),w=this.PN(w);r;){n<u?(v=n+c.I.truncate((u-n)/2),-1==this.rw(d)&&this.zF(d,
this.qh.get(v),this.qh.get(v+1))):-1==this.rw(d)&&this.zF(d,this.qh.get(n),this.qh.get(n));var y=this.Bo(d);if(w<y)-1!=g&&(g==d?(f=d,p=y,g=this.Di(d),-1!=g?t=this.Bo(g):t=NaN):t>y&&(y<p?this.Rj(f,d):this.Tj(f,d),this.Tj(d,g),this.Df&&(this.Xi(d,f),this.Xi(g,d)),f=d,p=y,g=-1,t=NaN)),u=this.NN(d),-1==u&&(u=this.Ls(),this.$R(d,u)),d=u,u=v;else if(D>y)-1!=g&&(g==d?(f=d,p=y,g=this.rj(d),-1!=g?t=this.Bo(g):t=NaN):t<y&&(y<p?this.Rj(f,d):this.Tj(f,d),this.Rj(d,g),this.Df&&(this.Xi(d,f),this.Xi(g,d)),f=d,
p=y,g=-1,t=NaN)),n=this.gO(d),-1==n&&(n=this.Ls(),this.kS(d,n)),d=n,n=v+1;else{r=this.sj(d);-1==r&&(r=this.SL(d),this.TF(d,r));var z=this.JJ(r,a),q=this.RL();this.nS(q,r);this.ZR(q,z);d!=g&&(y<p?this.Rj(f,d):this.Tj(f,d),this.Df&&this.Xi(d,f),-1!=g&&(t<y?this.Rj(d,g):this.Tj(d,g),this.Df&&this.Xi(g,d)));r=!1}}return q};b.prototype.Ls=function(){return this.Xd.ae()};b.prototype.SL=function(a){return this.Df?this.If.mq(a):this.ki.ih(a)};b.prototype.RL=function(){return this.Ki.ae()};b.prototype.Qj=
function(a){a?(this.Ct=this.nx=!0,this.Uo=!1,null==this.qh?this.qh=c.Ac.Cg(0):this.qh.resize(0),null==this.Li?this.Li=[]:this.Li.length=0):this.nx=!1;this.Df?null==this.Hl?(this.Hl=c.Ac.Cg(0),this.If=new c.bj,this.If.Hn(new p(this))):this.If.clear():null==this.ki?this.ki=new c.Zn:this.ki.clear();null==this.Xd?(this.Ki=new c.Fc(3),this.Xd=new c.Fc(this.Df?8:7)):(this.Ki.Nh(!1),this.Xd.Nh(!1));this.Ze=-1;this.It=0};b.prototype.zF=function(a,b,d){this.UR(a,b);this.VR(a,d)};b.prototype.Bo=function(a){var b=
this.rw(a);if(-1==b)return NaN;b=this.tj(b);a=this.tj(this.xN(a));return b==a?b:.5*(b+a)};b.prototype.UR=function(a,b){this.Xd.L(a,0,b)};b.prototype.VR=function(a,b){this.Xd.L(a,1,b)};b.prototype.$R=function(a,b){this.Xd.L(a,3,b)};b.prototype.kS=function(a,b){this.Xd.L(a,4,b)};b.prototype.TF=function(a,b){this.Xd.L(a,2,b)};b.prototype.Rj=function(a,b){this.Xd.L(a,5,b)};b.prototype.Tj=function(a,b){this.Xd.L(a,6,b)};b.prototype.Xi=function(a,b){this.Xd.L(a,7,b)};b.prototype.nS=function(a,b){this.Ki.L(a,
0,b)};b.prototype.JJ=function(a,b){return this.Df?this.If.addElement(b,a):this.ki.addElement(a,b)};b.prototype.ZR=function(a,b){this.Ki.L(a,1,b)};b.prototype.QF=function(a,b){this.Ki.L(a,2,b)};b.prototype.gk=function(a){return this.Df?this.If.fc(a):this.ki.fc(a)};b.prototype.tq=function(a){return this.Df?this.If.tc(a):this.ki.tc(a)};b.Oo=function(a){return 0==(a&1)};b.rt=function(a){return 1==(a&1)};b.prototype.rw=function(a){return this.Xd.O(a,0)};b.prototype.xN=function(a){return this.Xd.O(a,1)};
b.prototype.sj=function(a){return this.Xd.O(a,2)};b.prototype.NN=function(a){return this.Xd.O(a,3)};b.prototype.gO=function(a){return this.Xd.O(a,4)};b.prototype.Di=function(a){return this.Xd.O(a,5)};b.prototype.rj=function(a){return this.Xd.O(a,6)};b.prototype.GC=function(a){return this.Xd.O(a,7)};b.prototype.Hw=function(a){return this.Ki.O(a,0)};b.prototype.MN=function(a){return this.Ki.O(a,1)};b.prototype.fO=function(a){return this.Ki.O(a,2)};b.prototype.SN=function(a){return this.Li[a].qa};b.prototype.PN=
function(a){return this.Li[a].va};b.prototype.BS=function(a,b){null==this.Al&&(this.Al=new c.Qr);var d=new g(this);this.Al.sort(a,0,b,d)};b.prototype.AS=function(a,d,c){var k=this;a.xd(d,c,function(a,d){var e=k.tj(a),c=k.tj(d);return e<c||e==c&&b.Oo(a)&&b.rt(d)?-1:1})};b.prototype.tj=function(a){var d=this.Li[a>>1];return b.Oo(a)?d.qa:d.va};return b}();c.aq=d})(t||(t={}));(function(c){var p=function(g){function b(a,b,f,e){g.call(this);void 0===a?this.description=c.Od.Tf():void 0===f?this.description=
a:(this.description=c.Od.Tf(),this.Ny(a,b),this.Ok(f,e))}M(b,g);b.prototype.D=function(){return 322};b.prototype.Zb=function(){var a=this.na-this.la,b=this.ja-this.ha;return Math.sqrt(a*a+b*b)};b.prototype.lg=function(a){var b=this.na-this.la,f=this.ja-this.ha;return Math.sqrt(b*b+f*f)<=a};b.prototype.jD=function(){return!1};b.prototype.Pf=function(){var a=new c.b;a.pc(this.oc(),this.Mb());return a};b.prototype.Ep=function(a){a.Ja();a.Qf(this.description);var b=new c.i;this.o(b);a.Bu(b);for(var b=
1,f=this.description.Aa;b<f;b++)for(var e=this.description.Hd(b),h=c.pa.Wa(e);b<h;b++){var l=this.zh(e,0);a.setInterval(e,0,l)}};b.prototype.o=function(a){a.K(this.na,this.ja,this.la,this.ha);a.normalize()};b.prototype.Cn=function(a){a.Ja();a.Db(this.na,this.ja,this.yd(0,1,0));a.Db(this.la,this.ha,this.yd(1,1,0))};b.prototype.Oe=function(a){if(a instanceof c.Ag){this.qc();var b=new c.b;b.x=this.na;b.y=this.ja;a.Zi(b,b);this.na=b.x;this.ja=b.y;b.x=this.la;b.y=this.ha;a.Zi(b,b);this.la=b.x;this.ha=
b.y}else this.qc(),b=new c.de,b.x=this.na,b.y=this.ja,b.z=this.yd(0,1,0),b=a.Qn(b),this.na=b.x,this.ja=b.y,this.om(0,1,0,b.z),b.x=this.la,b.y=this.ha,b.z=this.yd(1,1,0),b=a.Qn(b),this.la=b.x,this.ha=b.y,this.om(1,1,0,b.z)};b.prototype.Pa=function(){return new b(this.description)};b.prototype.kv=function(a,b){return(this.la-a-(this.na-a))*(this.ha-b+(this.ja-b))*.5};b.prototype.Qu=function(a){return a*this.Zb()};b.prototype.xD=function(a){return a/this.Zb()};b.prototype.pC=function(a){return c.vi.tt(this.na,
this.la,a)};b.prototype.wN=function(a){return c.vi.tt(this.ja,this.ha,a)};b.prototype.xm=function(a,b){var f=new c.zg;this.Bi(a,b,f);return f.get()};b.prototype.Bi=function(a,b,f){if(null==f)throw c.g.N();f.lq();f=f.get();f.Qf(this.description);var e=new c.b;this.Kb(a,e);f.Ny(e.x,e.y);this.Kb(b,e);f.Ok(e.x,e.y);for(var e=1,h=this.description.Aa;e<h;e++)for(var l=this.description.Fd(e),k=c.pa.Wa(l),g=0;g<k;g++){var r=this.kd(a,l,g);f.My(l,g,r);r=this.kd(b,l,g);f.Cy(l,g,r)}};b.prototype.kd=function(a,
b,f){if(0==b)return 0==f?this.Kb(a).x:this.Kb(a).y;switch(c.pa.KN(b)){case 0:return.5>a?this.ft(b,f):this.Vs(b,f);case 1:var e=this.ft(b,f);b=this.Vs(b,f);return c.vi.tt(e,b,a);case 2:throw c.g.ra("not implemented");}throw c.g.wa();};b.prototype.Gd=function(a,b){var f=this.la-this.na,e=this.ha-this.ja,c=f*f+e*e;if(0==c)return.5;f=((a.x-this.na)*f+(a.y-this.ja)*e)/c;b||(0>f?f=0:1<f&&(f=1));return f};b.prototype.mt=function(a,b,f,e){if(a){a=this.ha-this.ja;if(0==a)return b==this.ha?-1:0;b=(b-this.ja)/
a;if(0>b||1<b)return 0;null!=f&&(f[0]=this.pC(b))}else{a=this.la-this.na;if(0==a)return b==this.la?-1:0;b=(b-this.na)/a;if(0>b||1<b)return 0;null!=f&&(f[0]=this.wN(b))}null!=e&&(e[0]=b);return 1};b.prototype.ye=function(a,b){var f=this.ha-this.ja;if(0==f)return a==this.ha?b:NaN;var f=(a-this.ja)/f,e=this.pC(f);1==f&&(e=this.la);return e};b.prototype.ps=function(a,b,f){return 0<=this.fo(a.x,a.y,b,f)};b.prototype.Jh=function(a,b,f){return 0<=this.fo(a,b,f,!0)};b.prototype.Dq=function(a,b){return this.ps(a,
b,!1)};b.prototype.HE=function(){if(this.ha<this.ja||this.ha==this.ja&&this.la<this.na){var a=this.na;this.na=this.la;this.la=a;a=this.ja;this.ja=this.ha;this.ha=a;for(var a=0,b=this.description.tp-2;a<b;a++){var f=this.fa[a];this.fa[a]=this.fa[a+b];this.fa[a+b]=f}}};b.prototype.qs=function(a,b){var f=c.b.Oa(a,b);f.sub(this.Mb());var e=new c.b;e.pc(this.oc(),this.Mb());var h=e.Ai(f),f=8.881784197001252E-16*(Math.abs(e.x*f.y)+Math.abs(e.y*f.x));return h>f?-1:h<-f?1:0};b.prototype.fo=function(a,b,f,
e){var h=this.na,l=this.ja,k=a-h,g=b-l,k=Math.sqrt(k*k+g*g);if(k<=Math.max(f,6.661338147750939E-16*k))return e&&0==k?NaN:0;k=a-this.la;g=b-this.ha;k=Math.sqrt(k*k+g*g);if(k<=Math.max(f,6.661338147750939E-16*k))return e&&0==k?NaN:1;k=this.la-this.na;g=this.ha-this.ja;e=Math.sqrt(k*k+g*g);if(0<e){var r=1/e,k=k*r,g=g*r,q=a-h,n=b-l,u=q*k+n*g,v=1.7763568394002505E-15*(Math.abs(q*k)+Math.abs(n*g)),w=k,k=-g,g=w,v=Math.max(f,v);if(u<-v||u>e+v)return NaN;if(Math.abs(q*k+n*g)<=Math.max(f,1.7763568394002505E-15*
(Math.abs(q*k)+Math.abs(n*g)))&&(k=c.I.Jr(u*r,0,1),.5>=k?(g=this.na+(this.la-this.na)*k,e=this.ja+(this.ha-this.ja)*k):(g=this.la-(this.la-this.na)*(1-k),e=this.ha-(this.ha-this.ja)*(1-k)),c.b.Yv(g,e,a,b)<=f)){if(.5>k){if(c.b.Yv(g,e,h,l)<=f)return 0}else if(c.b.Yv(g,e,this.la,this.ha)<=f)return 1;return k}}return NaN};b.prototype.lc=function(a){return null==a?!1:a==this?!0:a.constructor!==this.constructor?!1:this.rJ(a)};b.prototype.zA=function(a,b,f){var e=f?this.na:this.la;f=f?this.ja:this.ha;var h=
new c.b;h.x=a.la-e;h.y=a.ha-f;return b.ml(h)>6.661338147750939E-16*b.tA(h)?(h.x=a.na-e,h.y=a.ja-f,b.ml(h)<=6.661338147750939E-16*b.tA(h)):!0};b.prototype.yA=function(a){var b=new c.b;b.x=this.la-this.na;b.y=this.ha-this.ja;if(!this.zA(a,b,!1))return!1;b.Ap();return this.zA(a,b,!0)?!0:!1};b.ze=function(a,b){var f=a.qs(b.na,b.ja),e=a.qs(b.la,b.ha);if(0>f&&0>e||0<f&&0<e)return!1;f=b.qs(a.na,a.ja);e=b.qs(a.la,a.ha);if(0>f&&0>e||0<f&&0<e)return!1;f=a.Zb();e=b.Zb();return f>e?a.yA(b):b.yA(a)};b.Id=function(a,
b,f){var e=c.b.Oa(NaN,NaN),h=a.la-a.na,l=a.ha-a.ja,k=b.la-b.na,g=b.ha-b.ja,r=k*l-h*g;if(0==r)return e;var q=8.881784197001252E-16*(Math.abs(k*l)+Math.abs(h*g)),n=b.na-a.na,u=b.ja-a.ja,v=k*u-n*g,w=v/r,p=Math.abs(r),k=(8.881784197001252E-16*(Math.abs(k*u)+Math.abs(n*g))*p+q*Math.abs(v))/(r*r)+2.220446049250313E-16*Math.abs(w);if(w<-k||w>1+k)return e;g=h*u-n*l;k=g/r;h=(8.881784197001252E-16*(Math.abs(h*u)+Math.abs(n*l))*p+q*Math.abs(g))/(r*r)+2.220446049250313E-16*Math.abs(k);if(k<-h||k>1+h)return e;
w=c.I.Jr(w,0,1);h=c.I.Jr(k,0,1);l=a.Kb(w);r=b.Kb(h);q=new c.b;q.pc(l,r);if(q.length()>f&&(q.add(l,r),q.scale(.5),w=a.Gd(q,!1),h=b.Gd(q,!1),a=a.Kb(w),b=b.Kb(h),a.sub(b),a.length()>f))return e;e.ma(w,h);return e};b.wJ=function(a,d,f,e){var c=0;if(a.na==d.na&&a.ja==d.ja||a.na==d.la&&a.ja==d.ha)if(c++,!e)return 1;if(a.la==d.na&&a.ha==d.ja||a.la==d.la&&a.ha==d.ha){c++;if(2==c)return 2;if(!e)return 1}return d.Jh(a.na,a.ja,f)||d.Jh(a.la,a.ha,f)||a.Jh(d.na,d.ja,f)||a.Jh(d.la,d.ha,f)?1:e&&0!=c?0:0==b.ze(a,
d)?0:1};b.ov=function(a,d,f,e,h,l){var k=0,g=a.fo(d.na,d.ja,l,!1),r=a.fo(d.la,d.ha,l,!1),q=d.fo(a.na,a.ja,l,!1),n=d.fo(a.la,a.ha,l,!1);isNaN(g)||(null!=e&&(e[k]=g),null!=h&&(h[k]=0),null!=f&&(f[k]=c.b.Oa(d.na,d.ja)),k++);isNaN(r)||(null!=e&&(e[k]=r),null!=h&&(h[k]=1),null!=f&&(f[k]=c.b.Oa(d.la,d.ha)),k++);2==k||isNaN(q)||0==g&&0==q||0==r&&1==q||(null!=e&&(e[k]=0),null!=h&&(h[k]=q),null!=f&&(f[k]=c.b.Oa(a.na,a.ja)),k++);2==k||isNaN(n)||1==g&&0==n||1==r&&1==n||(null!=e&&(e[k]=1),null!=h&&(h[k]=n),null!=
f&&(f[k]=c.b.Oa(d.la,d.ha)),k++);if(0<k)return 2==k&&null!=e&&e[0]>e[1]&&(a=e[0],e[0]=e[1],e[1]=a,null!=h&&(e=h[0],h[0]=h[1],h[1]=e),null!=f&&(h=c.b.Oa(f[0].x,f[0].y),f[0]=f[1],f[1]=h)),k;k=b.Id(a,d,l);if(isNaN(k.x))return 0;null!=f&&(f[0]=a.Kb(k.x));null!=e&&(e[0]=k.x);null!=h&&(h[0]=k.y);return 1};b.prototype.QC=function(){return 0};b.prototype.co=function(){};b.prototype.toString=function(){return"Line: ["+this.na.toString()+", "+this.ja.toString()+", "+this.la.toString()+", "+this.ha.toString()+
"]"};return b}(c.eA);c.yb=p})(t||(t={}));(function(c){var p=function(){function c(){this.Gl=[];this.ua=-1}c.prototype.ya=function(){return this.ua};c.prototype.next=function(){if(null!=this.Gl&&0!=this.Gl.length){this.ua++;var b=this.Gl[0];1>=this.Gl.length?this.Gl=[]:this.Gl=this.Gl.slice(1);return b}return this.Gl=null};return c}();c.HT=p})(t||(t={}));(function(c){(function(c){c[c.enumFillRuleOddEven=0]="enumFillRuleOddEven";c[c.enumFillRuleWinding=1]="enumFillRuleWinding"})(c.pI||(c.pI={}));var p=
function(g){function b(a,b){g.call(this);this.Yf=!1;this.mp=null;this.$o=this.ap=0;this.Uh=null;this.mg=!1;this.td=this.li=this.Ge=this.qb=this.jb=null;this.fp=this.Qa=this.bp=0;if(void 0===b)this.Yf=a,this.mg=!1,this.ta=this.$o=this.ap=this.bp=0,this.description=c.Od.Tf();else{if(null==b)throw c.g.N();this.Yf=a;this.mg=!1;this.ta=this.$o=this.ap=this.bp=0;this.description=b}this.Uh=null;this.Qa=0}M(b,g);b.prototype.Hm=function(){return 0<this.bp};b.prototype.nv=function(){this.qc();null==this.mp?
this.mp=new c.Va(this.description):this.mp.Qf(this.description)};b.prototype.Uy=function(a,b){var f=new c.b;f.x=a;f.y=b;this.Mr(f)};b.prototype.Mr=function(a){this.nv();this.mp.hc(a);this.mg=!0};b.prototype.df=function(a){if(a.s())throw c.g.N();this.Ik(a.description);this.nv();a.copyTo(this.mp);this.mg=!0};b.prototype.iv=function(){var a=1;this.mg&&(this.nv(),null==this.jb?(this.jb=c.Ac.Cg(2),this.jb.write(0,0),this.qb=c.Ac.so(2,0)):(this.jb.resize(this.jb.size+1,0),this.qb.resize(this.qb.size+1,
0)),this.Yf&&this.qb.write(this.qb.size-2,1),a++);var b=this.ta;this.jb.write(this.jb.size-1,this.ta+a);this.io(b+a);this.qb.write(this.jb.size-1,0);this.mg&&(this.Hu(b,this.mp),this.mg=!1)};b.prototype.vj=function(a,b){this.iv();this.hc(this.ta-1,a,b)};b.prototype.Lm=function(a){this.iv();this.hc(this.ta-1,a)};b.prototype.lineTo=function(a){this.iv();this.Hu(this.ta-1,a)};b.prototype.qo=function(){var a;this.Ru();void 0===a&&(this.mg=!1,a=this.ea()-1);var b=this.qb.read(a);this.qb.write(a,b|1);null!=
this.Ge&&(a=this.Dc(a)-1,this.Ge.write(a,1),this.li.write(a,-1))};b.$i=function(a){return b.Id[a]};b.prototype.vc=function(a){return 0!=(this.qb.read(a)&1)};b.prototype.No=function(a){if(this.vc(a))return!0;var b=this.Ea(a);a=this.Dc(a)-1;if(b>a)return!1;b=this.Fa(b);a=this.Fa(a);return b.ub(a)};b.prototype.xq=function(a){return 0!=(this.qb.read(a)&2)};b.prototype.Bc=function(a,b){this.Ik(a.description);if(322==a.D()){var f=new c.Va;if(b||this.s())a.En(f),this.df(f);a.Bn(f);this.lineTo(f)}else throw c.g.wa();
};b.prototype.vs=function(a){var b=0==this.ta;this.Uy(a.v,a.C);this.vj(a.v,a.G);this.vj(a.B,a.G);this.vj(a.B,a.C);this.qo();this.mg=!1;b&&this.yf(256,!1)};b.prototype.Uc=function(a,b){if(!a.s()){for(var f=0==this.ta,e=new c.Va(this.description),h=0;4>h;h++)a.uf(b?4-h-1:h,e),0==h?this.df(e):this.lineTo(e);this.qo();this.mg=!1;f&&!b&&this.yf(256,!1)}};b.prototype.add=function(a,b){for(var f=0;f<a.ea();f++)this.Zj(a,f,!b)};b.prototype.Zj=function(a,b,f){this.Cf(-1,a,b,f)};b.prototype.ko=function(){this.Sw()};
b.prototype.xs=function(a,b,f,e,h){h||0!=this.ea()||(h=!0);0>b&&(b=a.ea()-1);if(b>=a.ea()||0>f||0>e||e>a.bt(b))throw c.g.ra("index out of bounds");if(0!=e){var l=a.vc(b)&&f+e==a.bt(b);if(!l||1!=e){this.mg=!1;this.Ik(a.description);f=a.Ea(b)+f+1;h&&(e++,f--);l&&e--;l=this.ta;this.io(this.ta+e);this.kc();if(h){if(0==e)return;this.jb.add(this.ta);h=a.qb.read(b);h&=-5;this.Yf&&(h|=1);this.qb.write(this.qb.size-1,h);this.qb.add(0)}else this.jb.write(this.qb.size-1,this.ta);h=0;for(var k=this.description.Aa;h<
k;h++){var g=this.description.Hd(h),r=c.pa.Wa(g),q=a.description.zf(g);0>q||null==a.Ba[q]?this.Ba[h].ul(r*l,c.pa.ve(g),e*r,r*l):this.Ba[h].nk(r*l,a.Ba[q],r*f,e*r,!0,r,r*l)}if(this.Hm())throw c.g.wa();if(a.xq(b))throw c.g.wa();this.be(1993)}}};b.prototype.Br=function(a){this.kc();var b=this.ea();0>a&&(a=b-1);if(a>=b)throw c.g.N();for(var f=this.Ea(a),e=this.Ha(a),h=0,l=this.description.Aa;h<l;h++)if(null!=this.Ba[h]){var k=c.pa.Wa(this.description.Fd(h));this.Ba[h].nj(k*f,k*e,k*this.ta)}for(f=a+1;f<=
b;f++)h=this.jb.read(f),this.jb.write(f-1,h-e);if(null==this.qb)for(f=a+1;f<=b;f++)a=this.qb.read(f),this.qb.write(f-1,a);this.jb.resize(b);this.qb.resize(b);this.ta-=e;this.qg-=e;this.be(1993)};b.prototype.Cf=function(a,b,f,e){if(b==this)throw c.g.N();if(f>=b.ea())throw c.g.N();var h=this.ea();if(a>h)throw c.g.N();0>a&&(a=h);0>f&&(f=b.ea()-1);this.mg=!1;this.Ik(b.description);b.kc();var l=b.Ea(f),k=b.Ha(f),g=this.ta,r=b.vc(f)&&!e?1:0;this.io(this.ta+k);this.kc();for(var q=a<h?this.Ea(a):g,n=0,u=
this.description.Aa;n<u;n++){var v=this.description.Fd(n),w=b.description.zf(v),p=c.pa.Wa(v);0<=w&&null!=b.Ba[w]?(0!=r&&this.Ba[n].nk(q*p,b.Ba[w],p*l,p,!0,p,p*g),this.Ba[n].nk((q+r)*p,b.Ba[w],p*(l+r),p*(k-r),e,p,p*(g+r))):this.Ba[n].ul(q*p,c.pa.ve(v),p*k,p*g)}this.jb.add(g+k);for(e=h;e>=a+1;e--)l=this.jb.read(e-1),this.jb.write(e,l+k);b.xq(f);this.qb.add(0);for(e=h-1;e>=a+1;e--)h=this.qb.read(e),h&=-5,this.qb.write(e+1,h);h=b.WN().read(f);h&=-5;this.Yf&&(h|=1);this.qb.write(a,h)};b.prototype.Sw=function(){var a=
-1,b=this.ea();if(a>b)throw c.g.N();0>a&&(a=b);this.mg=!1;this.kc();this.jb.add(this.ta);for(var f=b;f>=a+1;f--){var e=this.jb.read(f-1);this.jb.write(f,e+0)}this.qb.add(0);for(f=b-1;f>=a+1;f--)b=this.qb.read(f),b&=-5,this.qb.write(f+1,b);this.Yf&&this.qb.write(a,1)};b.prototype.aD=function(a,b,f){var e=-1;0>a&&(a=this.ea());if(a>this.ea()||e>this.Ha(a)||f>b.length)throw c.g.ra("index out of bounds");if(0!=f){a==this.ea()&&(this.jb.add(this.ta),this.Yf?this.qb.add(1):this.qb.add(0));0>e&&(e=this.Ha(a));
this.kc();var h=this.ta;this.io(this.ta+f);this.kc();for(var l=0,k=this.description.Aa;l<k;l++){var g=this.description.Fd(l),r=c.pa.Wa(g);this.Ba[l].km(r*(this.Ea(a)+e+f),(h-this.Ea(a)-e)*r,this.Ba[l],r*(this.Ea(a)+e),!0,r);0==l?this.Ba[l].Zp(r*(this.Ea(a)+e),f,b,0,!0):this.Ba[l].bh(c.pa.ve(g),(this.Ea(a)+e)*r,f*r)}this.Hm()&&(this.Ge.km(this.Ea(a)+e+f,h-this.Ea(a)-e,this.Ge,this.Ea(a)+e,!0,1),this.li.km(this.Ea(a)+e+f,h-this.Ea(a)-e,this.li,this.Ea(a)+e,!0,1),this.Ge.bh(1,this.Ea(a)+e,f),this.li.bh(-1,
this.Ea(a)+e,f));a+=1;for(b=this.ea();a<=b;a++)this.jb.write(a,this.jb.read(a)+f)}};b.prototype.kf=function(a,b,f){var e=this.ea();0>a&&(a=this.ea());if(a>=e||b>this.Ha(a))throw c.g.ra("index out of bounds");a==this.ea()&&(this.jb.add(this.ta),this.Yf?this.qb.add(1):this.qb.add(0));0>b&&(b=this.Ha(a));var h=this.ta;this.io(this.ta+1);this.kc();var l=this.Ea(a);this.Ba[0].kg(2*(l+b),f,2*h);f=1;for(var k=this.description.Aa;f<k;f++){var g=this.description.Fd(f),r=c.pa.Wa(g);this.Ba[f].ul(r*(l+b),c.pa.ve(g),
r,r*h)}for(a+=1;a<=e;a++)this.jb.write(a,this.jb.read(a)+1)};b.prototype.bF=function(a,b){var f=this.ea();0>a&&(a=f-1);if(a>=f||b>=this.Ha(a))throw c.g.ra("index out of bounds");this.kc();var e=this.Ea(a);0>b&&(b=this.Ha(a)-1);for(var e=e+b,h=0,l=this.description.Aa;h<l;h++)if(null!=this.Ba[h]){var k=c.pa.Wa(this.description.Fd(h));this.Ba[h].nj(k*e,k,k*this.ta)}for(;f>=a+1;f--)e=this.jb.read(f),this.jb.write(f,e-1);this.ta--;this.qg--;this.be(1993)};b.prototype.Rf=function(){return c.Gh.il(this,
null)};b.prototype.Ja=function(){this.bp=0;this.mg=!1;this.td=this.Ge=this.li=this.qb=this.jb=null;this.DA()};b.prototype.Oe=function(a){a instanceof c.Ag?this.YA(a,-1):this.ZJ(a)};b.prototype.YA=function(a,b){if(!this.s()&&!a.ZO()){this.kc();var f=this.Ba[0],e=new c.b,h=new c.b,l,k,g;0>b?(l=this.Hm(),k=0,g=this.ta):(l=this.xq(b),k=this.Ea(b),g=this.Dc(b));for(;k<g;k++){e.x=f.read(2*k);e.y=f.read(2*k+1);if(l){var r=this.li.read(k);if(0<=r)switch(this.Ge.read(k)&7){case 2:h.x=this.td.read(r);h.y=this.td.read(r+
1);a.Zi(h,h);this.td.write(r,h.x);this.td.write(r+1,h.y);h.x=this.td.read(r+3);h.y=this.td.read(r+4);a.Zi(h,h);this.td.write(r+3,h.x);this.td.write(r+4,h.y);break;case 4:throw c.g.wa();}}a.Zi(e,e);f.write(2*k,e.x);f.write(2*k+1,e.y)}this.be(1993)}};b.prototype.ZJ=function(a){if(!this.s()){this.Ne(1);this.kc();for(var b=this.Ba[0],f=this.Ba[1],e=new c.de,h=new c.de,l=this.Hm(),k=0;k<this.ta;k++){e.x=b.read(2*k);e.y=b.read(2*k+1);e.z=f.read(k);if(l){var g=this.li.read(k);if(0<=g)switch(this.Ge.read(k)&
7){case 2:h.x=this.td.read(g);h.y=this.td.read(g+1);h.z=this.td.read(g+2);h=a.Qn(h);this.td.write(g,h.x);this.td.write(g+1,h.y);this.td.write(g+1,h.z);h.x=this.td.read(g+3);h.y=this.td.read(g+4);h.z=this.td.read(g+5);h=a.Qn(h);this.td.write(g+3,h.x);this.td.write(g+4,h.y);this.td.write(g+5,h.z);break;case 4:throw c.g.wa();}}e=a.Qn(e);b.write(2*k,e.x);b.write(2*k+1,e.y);f.write(k,e.z)}this.be(1993)}};b.prototype.xv=function(){null==this.jb&&(this.jb=c.Ac.Cg(1,0),this.qb=c.Ac.so(1,0));null!=this.Ge&&
(this.Ge.resize(this.qg,1),this.li.resize(this.qg,-1))};b.prototype.co=function(a){a.mg=!1;a.bp=this.bp;a.fp=this.fp;null!=this.jb?a.jb=c.ga.kj(this.jb):a.jb=null;null!=this.qb?a.qb=c.Wk.kj(this.qb):a.qb=null;null!=this.li?a.li=c.ga.kj(this.li):a.li=null;null!=this.Ge?a.Ge=c.Wk.kj(this.Ge):a.Ge=null;null!=this.td?a.td=c.qd.kj(this.td):a.td=null;a.ap=this.ap;a.$o=this.$o;this.fj(1024)?a.Uh=null:a.Uh=this.Uh};b.prototype.Zb=function(){if(!this.fj(512))return this.ap;for(var a=this.Ca(),b=new c.av(0);a.kb();)for(;a.La();)b.add(a.ia().Zb());
this.ap=b.rl();this.yf(512,!1);return b.rl()};b.prototype.lc=function(a){if(a==this)return!0;if(!(a instanceof b&&g.prototype.lc.call(this,a)))return!1;var d=this.ea();return d!=a.ea()||null!=this.jb&&!this.jb.lc(a.jb,0,d+1)||this.fp!=a.fp||null!=this.qb&&!this.qb.lc(a.qb,0,d)?!1:g.prototype.lc.call(this,a)};b.prototype.Ca=function(){return new c.FI(this)};b.prototype.wv=function(a){g.prototype.wv.call(this,a);if(this.Hm())for(a=this.Ca();a.kb();)for(;a.La();)break};b.prototype.tm=function(a,b){g.prototype.tm.call(this,
a,b);if(this.Hm())for(var f=this.Ca();f.kb();)for(;f.La();)break};b.prototype.qv=function(){null==this.jb||0==this.jb.size?this.ta=0:this.ta=this.jb.read(this.jb.size-1)};b.prototype.Lh=function(){if(!this.Yf)return 0;this.ss();return this.$o};b.prototype.pt=function(a){if(!this.Yf)return!1;if(!this.fj(8))return 0!=(this.qb.read(a)&4);this.ss();return 0<this.Uh.read(a)};b.prototype.no=function(a){if(!this.Yf)return 0;this.ss();return this.Uh.read(a)};b.prototype.ss=function(){if(this.fj(1024)){var a=
this.ea();null==this.Uh?this.Uh=new c.qd(a):this.Uh.size!=a&&this.Uh.resize(a);for(var a=new c.av(0),b=new c.av(0),f=new c.b,e=0,h=this.Ca();h.kb();){b.reset();for(this.w(this.Ea(h.Qa),f);h.La();)b.add(h.ia().kv(f.x,f.y));a.add(b.rl());var l=e++;this.Uh.write(l,b.rl())}this.$o=a.rl();this.yf(1024,!1)}};b.prototype.hl=function(){if(this.fj(8)){this.ss();var a=this.ea();if(null==this.qb||this.qb.size<a)this.qb=c.Ac.so(a+1);for(var b=1,f=0;f<a;f++){var e=this.Uh.read(f);0==f&&(b=0<e?1:-1);0<e*b?this.qb.xy(f,
4):this.qb.AB(f,4)}this.yf(8,!1)}};b.prototype.Ew=function(a){var b=this.Qa,f=this.ea();if(0<=b&&b<f){if(a<this.Dc(b)){if(a>=this.Ea(b))return b;b--}else b++;if(0<=b&&b<f&&a>=this.Ea(b)&&a<this.Dc(b))return this.Qa=b}if(5>f){for(b=0;b<f;b++)if(a<this.Dc(b))return this.Qa=b;throw c.g.ra("corrupted geometry");}b=0;for(--f;f>b;){var e=b+(f-b>>1),h=this.Ea(e);if(a<h)f=e-1;else if(b=this.Dc(e),a>=b)b=e+1;else return this.Qa=e}return this.Qa=b};b.prototype.IN=function(a){var b=this.mc(0);this.XN();var f=
this.Dc(a),e=this.Ea(a);a=-1;var h=new c.b,l=new c.b;h.y=-Infinity;h.x=-Infinity;for(e+=0;e<f;e++)b.dc(2*e,l),-1==h.compare(l)&&(a=e,h.J(l));return a};b.prototype.Iw=function(){var a=this.F();if(!this.Yf)for(var a=a-this.ea(),b=0,f=this.ea();b<f;b++)this.vc(b)&&a++;return a};b.prototype.bt=function(a){var b=this.Ha(a);this.vc(a)||b--;return b};b.prototype.Pa=function(){return new b(this.Yf,this.description)};b.prototype.fb=function(){return this.Yf?2:1};b.prototype.D=function(){return this.Yf?1736:
1607};b.prototype.XN=function(){this.Ru()};b.prototype.LF=function(a){this.jb=a;this.be(16777215)};b.prototype.WN=function(){this.Ru();return this.qb};b.prototype.KF=function(a){this.qb=a;this.be(16777215)};b.prototype.ea=function(){return null!=this.jb?this.jb.size-1:0};b.prototype.Dc=function(a){return this.jb.read(a+1)};b.prototype.Ha=function(a){return this.jb.read(a+1)-this.jb.read(a)};b.prototype.Ea=function(a){return this.jb.read(a)};b.prototype.jv=function(a,b){null==this.pb&&(this.pb=new c.Vj);
var f=c.cA.lR(b),e=this.pb.hi;if(null!=e)if(e.Sx<a||f>e.dO())this.pb.uv(null);else return!0;e=c.cA.create(this,a,f);this.pb.uv(e);return!0};b.prototype.gc=function(){var a=g.prototype.gc.call(this);if(!this.sc()){var b=this.ea();null!=this.jb&&this.jb.ij(a,0,b+1);null!=this.qb&&this.qb.ij(a,0,b)}return a};b.prototype.KC=function(a){return null!=this.Ge?this.Ge.read(a):1};b.prototype.bc=function(a,b,f){var e=this.Ew(a);if(a==this.Dc(e)-1&&!this.vc(e))throw c.g.ra("index out of bounds");this.kc();var h=
this.Ge,l=1;null!=h&&(l=h.read(a)&7);switch(l){case 1:b.lq();break;case 2:throw c.g.wa();case 4:throw c.g.wa();default:throw c.g.wa();}b=b.get();f?b.Qf(c.Od.Tf()):b.Qf(this.description);e=a==this.Dc(e)-1&&this.vc(e)?this.Ea(e):a+1;h=new c.b;this.w(a,h);b.dd(h);this.w(e,h);b.vd(h);if(!f)for(f=1,h=this.description.Aa;f<h;f++)for(var l=this.description.Fd(f),k=c.pa.Wa(l),g=0;g<k;g++){var r=this.kd(l,a,g);b.My(l,g,r);r=this.kd(l,e,g);b.Cy(l,g,r)}};b.prototype.Ti=function(a,b){if(a>=this.ea())throw c.g.N();
if(this.s())b.Ja();else{if(this.xq(a))throw c.g.ra("not implemented");var f=this.mc(0),e=new c.b,h=new c.i;h.Ja();for(var l=this.Ea(a),k=this.Dc(a);l<k;l++)f.dc(2*l,e),h.Db(e);b.K(h)}};b.prototype.jR=function(a,b){if(a>=this.ea())throw c.g.N();if(this.s())b.Ja();else{if(this.xq(a))throw c.g.ra("not implemented");var f=this.mc(0),e=new c.b,h=new c.i;h.Ja();for(var l=this.Ea(a),k=this.Dc(a);l<k;l++)f.dc(2*l,e),h.Db(e);b.K(h)}};b.prototype.cj=function(a){null==this.pb&&(this.pb=new c.Vj);if(0==a||16>
this.F())return!1;a=c.Ia.mB(this);this.pb.FA(a);return!0};b.prototype.iJ=function(){null==this.pb&&(this.pb=new c.Vj);if(null!=this.pb.nn)return!0;this.pb.GA(null);var a=c.Ia.BK(this);this.pb.GA(a);return!0};b.prototype.Op=function(a){this.fp=a};b.prototype.Cm=function(){return this.fp};b.Id=[0,0,6,0,8,0];return b}(c.Vr);c.al=p})(t||(t={}));(function(c){var p=function(g){function b(a){g.call(this);if(void 0!==a){if(null==a)throw c.g.N();this.description=a}else this.description=c.Od.Tf();this.ta=0}
M(b,g);b.prototype.Pa=function(){return new b(this.description)};b.prototype.add=function(a){this.resize(this.ta+1);this.ah(this.ta-1,a)};b.prototype.ys=function(a,b){this.resize(this.ta+1);var f=new c.b;f.ma(a,b);this.hc(this.ta-1,f)};b.prototype.Pd=function(a,b,f){f=0>f?a.F():f;if(0>b||b>a.F()||f<b)throw c.g.N();if(b!=f){this.Ik(a.description);f-=b;var e=this.ta;this.resize(this.ta+f);this.kc();for(var h=0,l=a.description.Aa;h<l;h++){var k=a.description.Fd(h),g=c.pa.Wa(k),r=this.mc(k),k=a.mc(k);
r.nk(e*g,k,b*g,f*g,!0,1,e*g)}}};b.prototype.bF=function(a){if(0>a||a>=this.F())throw c.g.ra("index out of bounds");this.kc();for(var b=0,f=this.description.Aa;b<f;b++)if(null!=this.Ba[b]){var e=c.pa.Wa(this.description.Fd(b));this.Ba[b].nj(e*a,e,e*this.ta)}this.ta--;this.qg--;this.be(1993)};b.prototype.resize=function(a){this.io(a)};b.prototype.co=function(){};b.prototype.Ja=function(){g.prototype.DA.call(this)};b.prototype.Oe=function(a){if(a instanceof c.Ag){if(!this.s()){this.kc();for(var b=this.Ba[0],
f=new c.b,e=0;e<this.ta;e++)f.x=b.read(2*e),f.y=b.read(2*e+1),a.Zi(f,f),b.write(2*e,f.x),b.write(2*e+1,f.y);this.be(1993)}}else if(!this.s()){this.kc();this.Ne(1);this.kc();for(var b=this.Ba[0],f=this.Ba[1],h=new c.de,e=0;e<this.ta;e++){h.x=b.read(2*e);h.y=b.read(2*e+1);h.z=f.read(e);var l=a.Qn(h);b.write(2*e,l.x);b.write(2*e+1,l.y);f.write(e,l.z)}this.be(1993)}};b.prototype.fb=function(){return 0};b.prototype.D=function(){return 550};b.prototype.Lh=function(){return 0};b.prototype.Zb=function(){return 0};
b.prototype.lc=function(a){return a==this?!0:a instanceof b?g.prototype.lc.call(this,a):!1};b.prototype.hR=function(a,b){var f=this.ta,f=Math.min(f,b+1E3);if(0>b||b>=this.ta||f<b||1E3!=a.length)throw c.g.N();var e=this.mc(0),h=f-b,l=[];e.Gp(2*b,2*h,l,0,!0);for(e=0;e<h;e++)a[e]=c.b.Oa(l[2*e],l[2*e+1]);return f};b.prototype.qv=function(){};b.prototype.xv=function(){};b.prototype.jv=function(){return!1};b.prototype.cj=function(){return!1};b.prototype.Rf=function(){return null};return b}(c.Vr);c.pe=p})(t||
(t={}));(function(c){(function(c){c[c.NotDetermined=0]="NotDetermined";c[c.Structure=1]="Structure";c[c.DegenerateSegments=2]="DegenerateSegments";c[c.Clustering=3]="Clustering";c[c.Cracking=4]="Cracking";c[c.CrossOver=5]="CrossOver";c[c.RingOrientation=6]="RingOrientation";c[c.RingOrder=7]="RingOrder";c[c.OGCPolylineSelfTangency=8]="OGCPolylineSelfTangency";c[c.OGCPolygonSelfTangency=9]="OGCPolygonSelfTangency";c[c.OGCDisconnectedInterior=10]="OGCDisconnectedInterior"})(c.MH||(c.MH={}));var p=function(){function c(b,
a,d){void 0===b?(this.xh=0,this.Gk=this.Fk=-1):(this.xh=b,this.Fk=a,this.Gk=d)}c.prototype.$p=function(b){this.xh=b.xh;this.Fk=b.Fk;this.Gk=b.Gk};return c}();c.wd=p})(t||(t={}));(function(c){var p=function(){function g(){}g.IT=function(b){if(!1===b)throw c.g.NG();};g.ZF=function(b){return isNaN(b)?NaN:0===b?b:0<b?1:-1};g.Kh=function(b,a){void 0===a&&(a=0);for(var d=[],f=0;f<b;f++)d[f]=a;return d};g.Os=function(b,a){var d,f;void 0===d&&(d=0);for(void 0===f&&(f=b.length-1);d<=f;d++)b[d]=a};g.Jr=function(b,
a,d){return b<a?a:b>d?d:b};g.cU=function(){return 4};g.jg=function(b,a){var d=5381;void 0!==a?d=(a<<5)+a+(b&255):d=(d<<5)+d+(b&255);d=(d<<5)+d+(b>>8&255);d=(d<<5)+d+(b>>16&255);return(d<<5)+d+(b>>24&255)&2147483647};g.Rh=function(){throw Error("Not Implemented");};g.ZT=function(){return-Infinity};g.aU=function(){return Infinity};g.LT=function(){return 2147483647};g.ET=function(){return 2.220446049250313E-16};g.FT=function(){return 1.7976931348623157E308};g.$x=function(b){return g.iH(b)+12345&2147483647};
g.CD=function(b){var a=32,d=b%g.gv|0,f=b/g.gv|0;if(0===(a&=63))return b;32>a?(b=d>>>a|f<<32-a,a=f>>a):(b=f>>a-32,a=0<=f?0:-1);return a*g.gv+(b>>>0)};g.iH=function(b){var a;a=1103515245;b|=0;var d=a&65535;return((a-d)*b|0)+(d*b|0)|0};g.truncate=function(b){return 0>b?-1*Math.floor(Math.abs(b)):Math.floor(b)};g.hT=Math.pow(2,53)-1;g.GT=-g.hT;g.mF=65536;g.rU=16777216;g.gv=g.mF*g.mF;return g}();c.I=p})(t||(t={}));(function(c){(function(c){c[c.Project=0]="Project";c[c.Union=1]="Union";c[c.Difference=2]=
"Difference";c[c.Proximity2D=3]="Proximity2D";c[c.Relate=4]="Relate";c[c.Equals=5]="Equals";c[c.Disjoint=6]="Disjoint";c[c.Intersects=7]="Intersects";c[c.Within=8]="Within";c[c.Contains=9]="Contains";c[c.Crosses=10]="Crosses";c[c.Touches=11]="Touches";c[c.Overlaps=12]="Overlaps";c[c.Buffer=13]="Buffer";c[c.Distance=14]="Distance";c[c.Intersection=15]="Intersection";c[c.Clip=16]="Clip";c[c.Cut=17]="Cut";c[c.DensifyByLength=18]="DensifyByLength";c[c.DensifyByAngle=19]="DensifyByAngle";c[c.LabelPoint=
20]="LabelPoint";c[c.GeodesicBuffer=21]="GeodesicBuffer";c[c.GeodeticDensifyByLength=22]="GeodeticDensifyByLength";c[c.ShapePreservingDensify=23]="ShapePreservingDensify";c[c.GeodeticLength=24]="GeodeticLength";c[c.GeodeticArea=25]="GeodeticArea";c[c.Simplify=26]="Simplify";c[c.SimplifyOGC=27]="SimplifyOGC";c[c.Offset=28]="Offset";c[c.Generalize=29]="Generalize";c[c.SymmetricDifference=30]="SymmetricDifference";c[c.ConvexHull=31]="ConvexHull";c[c.Boundary=32]="Boundary";c[c.SimpleRelation=33]="SimpleRelation"})(c.hI||
(c.hI={}));var p=function(){function g(){}g.prototype.D=function(){return null};g.AT=function(b){c.T.Th(b.D())&&(b=b.pb,null!=b&&(b.uv(null),b.FA(null)))};return g}();c.Me=p})(t||(t={}));(function(c){var p=function(g){function b(){g.apply(this,arguments)}M(b,g);b.prototype.D=function(){return 13};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.prototype.$=function(a,b,f,e,h){return a instanceof c.T?(h=new c.Oc(a),this.$(h,b,[f],!1,e).next()):!0===e?(f=new c.Oz(a,b,f,!1,h),c.wi.local().$(f,
b,h)):new c.Oz(a,b,f,!1,h)};b.V=null;return b}(c.Me);c.Nz=p})(t||(t={}));(function(c){var p=function(){function g(b,a,d,f,e){this.ua=-1;this.me=b;this.fx=a;this.Nq=d;this.DP=new c.i;this.DP.Ja();this.Vm=-1;this.Xb=e}g.prototype.next=function(){for(var b;null!=(b=this.me.next());)return this.ua=this.me.ya(),this.Vm+1<this.Nq.length&&this.Vm++,this.buffer(b,this.Nq[this.Vm]);return null};g.prototype.ya=function(){return this.ua};g.prototype.buffer=function(b,a){return c.SG.buffer(b,a,this.fx,NaN,96,
this.Xb)};return g}();c.Oz=p})(t||(t={}));(function(c){var p=function(g){function b(){g.apply(this,arguments)}M(b,g);b.prototype.D=function(){return 16};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.prototype.$=function(a,b,f,e){return a instanceof c.T?(a=new c.Oc(a),this.$(a,b,f,e).next()):new c.SH(a,b,f,e)};b.V=null;return b}(c.Me);c.RH=p})(t||(t={}));(function(c){var p=function(){function g(b,a,d){this.ua=-1;if(null==b)throw c.g.N();this.R=a;this.wk=b;this.ka=c.Ia.zd(d,a,!1)}g.prototype.next=
function(){var b;return null!=(b=this.wk.next())?(this.ua=this.wk.ya(),c.Ed.clip(b,this.R,this.ka,0)):null};g.prototype.ya=function(){return this.ua};return g}();c.SH=p})(t||(t={}));(function(c){var p=function(g){function b(){g.apply(this,arguments)}M(b,g);b.prototype.D=function(){return 31};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.prototype.$=function(a,b,f){return a instanceof c.T?c.Qz.pB(a):new c.Qz(b,a,f)};b.V=null;return b}(c.Me);c.Pz=p})(t||(t={}));(function(c){var p=function(){function g(b,
a,d){this.$D=new c.Sr;this.ua=-1;if(null==a)throw c.g.N();this.BP=b;this.Ec=!1;this.wk=a;this.Xb=d}g.prototype.next=function(){if(this.BP){if(!this.Ec){var b=this.FK(this.wk);this.Ec=!0;return b}return null}if(!this.Ec){b=this.wk.next();if(null!=b)return this.ua=this.wk.ya(),g.pB(b);this.Ec=!0}return null};g.prototype.ya=function(){return this.ua};g.prototype.FK=function(b){for(var a;null!=(a=b.next());)this.$D.Eb(a);return this.$D.tN()};g.pB=function(b){if(g.Fh(b))return b;var a=b.D();if(c.al.Lc(a))return a=
new c.Xa(b.description),a.Bc(b,!0),a;if(550==a&&2==b.F()){var d=new c.Va,a=new c.Xa(b.description);b.Rd(0,d);a.df(d);b.Rd(1,d);a.lineTo(d);return a}return c.Sr.vL(b)};g.Fh=function(b){if(b.s())return!0;var a=b.D();return 33==a||197==a?!0:c.al.Lc(a)?!1:550==a?1==b.F()?!0:!1:1607==a?1==b.ea()&&2>=b.F()?!0:!1:1!=b.ea()?!1:2>=b.F()?!0:c.Sr.pD(b,0)};return g}();c.Qz=p})(t||(t={}));(function(c){var p=function(g){function b(){g.apply(this,arguments)}M(b,g);b.prototype.D=function(){return 17};b.local=function(){null===
b.V&&(b.V=new b);return b.V};b.prototype.$=function(a,b,f,e,h){return new c.UH(a,b,f,e,h)};b.V=null;return b}(c.Me);c.TH=p})(t||(t={}));(function(c){var p=function(){function g(b,a,d,f,e){this.Ef=null;if(null==a||null==d)throw c.g.ra("invalid argument");this.zP=b;this.rx=a;this.OD=d;b=c.Ia.Zs(a,d);this.ka=c.Ia.zd(f,b,!0);this.ND=-1;this.ne=e}g.prototype.ya=function(){return 0};g.prototype.next=function(){this.hN();return++this.ND<this.Ef.length?this.Ef[this.ND]:null};g.prototype.hN=function(){if(null==
this.Ef)switch(this.Ef=[],this.rx.D()){case 1607:this.jN();break;case 1736:this.iN()}};g.prototype.jN=function(){var b=new c.Xa,a=new c.Xa,d=new c.Xa;this.Ef.push(b);this.Ef.push(a);var f=[];c.YG.WG(this.zP,this.rx,this.OD,this.ka,f,this.ne);for(var e=0;e<f.length;e++){var h=f[e];0==h.bu?b.add(h.U,!1):1==h.bu||2==h.bu?a.add(h.U,!1):3==h.bu?this.Ef.push(h.U):d.add(h.U,!1)}d.s()||b.s()&&a.s()&&!(3<=this.Ef.length)||this.Ef.push(d);b.s()&&a.s()&&3>this.Ef.length&&(this.Ef.length=0)};g.prototype.iN=function(){var b=
new c.ga(0),a=new c.ed,d=a.QB(),f=a.Eb(this.rx),e=a.Eb(this.OD),h=new c.Of;try{h.Mp(a,this.ka,this.ne);h.xm(d,f,e,b);var l=a.hf(f),k=new c.Ka,g=new c.Ka;this.Ef.length=0;this.Ef.push(k);this.Ef.push(g);for(f=0;f<b.size;f++){var r,q=new c.ed,n=q.Eb(l),u=q.Eb(a.hf(b.get(f)));h.Lp(q,this.ne);var v=h.lt(n,u);r=q.hf(v);if(!r.s()){var p=a.vC(b.get(f),d);2==p?k.add(r,!1):1==p?g.add(r,!1):this.Ef.push(r);var t=new c.ed,n=t.Eb(l),u=t.Eb(a.hf(b.get(f)));h.Lp(t,this.ne);l=t.hf(h.ll(n,u))}}!l.s()&&0<b.size&&
this.Ef.push(l);k.s()&&g.s()&&(this.Ef.length=0)}finally{h.wg()}};return g}();c.UH=p})(t||(t={}));(function(c){var p=function(g){function b(){g.apply(this,arguments)}M(b,g);b.prototype.D=function(){return 18};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.prototype.$=function(a,b,f){if(a instanceof c.T)return a=new c.Oc(a),this.$(a,b,f).next();if(0>=b)throw c.g.N();return new c.WH(a,b,f)};b.V=null;return b}(c.Me);c.VH=p})(t||(t={}));(function(c){var p=function(){function g(b,a){this.ua=
-1;this.me=b;this.Zq=a}g.prototype.ya=function(){return this.ua};g.prototype.next=function(){var b;return null!=(b=this.me.next())?(this.ua=this.me.ya(),this.gM(b)):null};g.prototype.gM=function(b){if(b.s()||1>b.fb())return b;var a=b.D();if(1736==a||1607==a)return this.Xv(b);if(c.T.Lc(a))return this.iM(b);if(197==a)return this.hM(b);throw c.g.wa();};g.prototype.iM=function(b){if(b.Zb()<=this.Zq)return b;var a=new c.Xa(b.description);a.Bc(b,!0);return this.Xv(a)};g.prototype.hM=function(b){var a=new c.Ka(b.description);
a.Uc(b,!1);var d=new c.i;b.o(d);b=d.ba();return d.aa()<=this.Zq&&b<=this.Zq?a:this.Xv(a)};g.prototype.Xv=function(b){for(var a=b.Pa(),d=b.Ca();d.kb();)for(var f=!0;d.La();){var e=d.ia();if(322!=e.D())throw c.g.ra("not implemented");var h=d.iD(),l=e.Zb();if(l>this.Zq){var k=Math.ceil(l/this.Zq),l=new c.Va(b.description);f&&(e.En(l),a.df(l));for(var g=f=1/k,r=0,k=k-1;r<k;r++)e.tu(g,l),a.lineTo(l),g+=f;h?a.qo():(e.Bn(l),a.lineTo(l))}else h?a.qo():a.Bc(e,f);f=!1}return a};return g}();c.WH=p})(t||(t={}));
(function(c){var p=function(g){function b(){g.apply(this,arguments)}M(b,g);b.local=function(){null===b.V&&(b.V=new b);return b.V};b.prototype.D=function(){return 2};b.prototype.$=function(a,b,f,e){return a instanceof c.T?(a=new c.Oc(a),b=new c.Oc(b),this.$(a,b,f,e).next()):new c.XH(a,b,f,e)};b.ll=function(a,d,f,e){if(a.s()||d.s())return a;var h=a.fb(),l=d.fb();if(h>l)return a;var k=a.D(),g=d.D(),r=new c.i,q=new c.i,n=new c.i;a.o(r);d.o(q);n.K(r);n.Db(q);var n=c.Ia.zd(f,n,!1),u=n*Math.sqrt(2)*1.00001,
v=new c.i;v.K(r);v.P(u,u);if(!v.jc(q))return a;if(1==h&&2==l)return b.mI(a,d,g,f,e);if(33==k)switch(c.al.Lc(g)?(f=new c.Xa(d.description),f.Bc(d,!0)):f=d,g){case 1736:return b.KK(a,f,n);case 1607:return b.XL(a,f,n);case 550:return b.GJ(a,f,n);case 197:return b.JG(a,f,n);case 33:return b.dK(a,f,n);default:throw c.g.N();}else if(550==k)switch(g){case 1736:return b.wI(a,d,n);case 197:return b.lI(a,d,n);case 33:return b.tI(a,d,n)}return c.Of.ll(a,d,f,e)};b.KK=function(a,b,f){return 0==c.fd.rD(b,a,f)?
a:a.Pa()};b.XL=function(a,b,f){var e=a.w();b=b.Ca();for(var h=f*Math.sqrt(2)*1.00001,l=h*h,k=new c.i;b.kb();)for(;b.La();){var g=b.ia();g.o(k);k.P(h,h);if(k.contains(e)){if(g.Dq(e,f))return a.Pa();var r=g.Mb();if(c.b.Yb(e,r)<=l)return a.Pa();r=g.oc();if(c.b.Yb(e,r)<=l)return a.Pa()}}return a};b.GJ=function(a,b,f){var e=b.mc(0);b=b.F();var h=a.w(),l=new c.b;f=f*Math.sqrt(2)*1.00001;f*=f;for(var k=0;k<b;k++)if(e.dc(2*k,l),c.b.Yb(l,h)<=f)return a.Pa();return a};b.JG=function(a,b,f){var e=new c.i;b.o(e);
e.P(f,f);b=a.w();return e.contains(b)?a.Pa():a};b.dK=function(a,b,f){f=f*Math.sqrt(2)*1.00001;f*=f;var e=a.w();b=b.w();return c.b.Yb(e,b)<=f?a.Pa():a};b.wI=function(a,b,f){var e=new c.i;b.o(e);e.P(f,f);for(var h=a.F(),l=!1,k=[],g=0;g<h;g++)k[g]=!1;for(var r=new c.b,g=0;g<h;g++)a.w(g,r),e.contains(r)&&0!=c.fd.ge(b,r,f)&&(l=!0,k[g]=!0);if(!l)return a;b=a.Pa();for(g=0;g<h;g++)k[g]||b.Pd(a,g,g+1);return b};b.lI=function(a,b,f){var e=new c.i;b.o(e);e.P(f,f);b=a.F();var h=!1;f=[];for(var l=0;l<b;l++)f[l]=
!1;for(var k=new c.b,l=0;l<b;l++)a.w(l,k),e.contains(k)&&(h=!0,f[l]=!0);if(!h)return a;e=a.Pa();for(l=0;l<b;l++)f[l]||e.Pd(a,l,l+1);return e};b.tI=function(a,b,f){var e=a.mc(0),h=a.F(),l=b.w(),k=new c.b,g=!1;b=[];for(var r=0;r<h;r++)b[r]=!1;r=f*Math.sqrt(2)*1.00001;f=r*r;for(r=0;r<h;r++)e.dc(2*r,k),c.b.Yb(k,l)<=f&&(g=!0,b[r]=!0);if(!g)return a;e=a.Pa();for(r=0;r<h;r++)b[r]||e.Pd(a,r,r+1);return e};b.mI=function(a,b,f,e,h){var l=new c.Uj;a.Ep(l);var k=new c.i;b.o(k);l.Db(k);l.P(.1*l.aa(),.1*l.ba());
k=new c.Ka;k.Uc(l,!1);1736==f?k.add(b,!0):k.Uc(b,!0);return c.Zr.local().$(a,k,e,h)};b.V=null;return b}(c.Me);c.Yr=p})(t||(t={}));(function(c){var p=function(){function g(b,a,d,c){this.Eq=null==a;this.ua=-1;this.me=b;this.fx=d;this.GP=a.next();this.Xb=c}g.prototype.next=function(){if(this.Eq)return null;var b;return null!=(b=this.me.next())?(this.ua=this.me.ya(),c.Yr.ll(b,this.GP,this.fx,this.Xb)):null};g.prototype.ya=function(){return this.ua};return g}();c.XH=p})(t||(t={}));(function(c){var p=function(){function b(a){this.ne=
a;this.Ii=new c.i;this.Ii.Ja();this.Mg=new c.i;this.Mg.Ja()}b.prototype.Or=function(){var a;a=this.Ii.v;this.Ii.v=this.Mg.v;this.Mg.v=a;a=this.Ii.B;this.Ii.B=this.Mg.B;this.Mg.B=a;a=this.Ii.C;this.Ii.C=this.Mg.C;this.Mg.C=a;a=this.Ii.G;this.Ii.G=this.Mg.G;this.Mg.G=a};b.prototype.vM=function(a,b){var f=!this.Ii.jc(this.Mg);if(c.T.Kc(a.D())&&c.T.Kc(b.D())){if(a.F()>b.F())return this.fB(a,b,f);this.Or();f=this.fB(b,a,f);this.Or();return f}if(550==a.D()&&c.T.Kc(b.D()))return f=this.gB(b,a,f),this.Or(),
f;if(550==b.D()&&c.T.Kc(a.D()))return this.gB(a,b,f);if(550==a.D()&&550==b.D()){if(a.F()>b.F())return this.hB(a,b);this.Or();f=this.hB(b,a);this.Or();return f}return 0};b.prototype.fB=function(a,b,f){var e=a.Ca(),h=b.Ca(),l=new c.i,k=new c.i,g=1.7976931348623157E308;if(!f&&this.fT(a,b,e,h))return 0;for(;e.kb();)for(;e.La();)if(a=e.ia(),a.o(l),!(l.Nu(this.Mg)>g)){for(;h.kb();)for(;h.La();)if(b=h.ia(),b.o(k),l.Nu(k)<g&&(b=a.Fb(b,f),b*=b,b<g)){if(0==b)return 0;g=b}h.Lk()}return Math.sqrt(g)};b.prototype.gB=
function(a,b,f){var e=a.Ca(),h=new c.i,l=1.7976931348623157E308,k=new c.b,g,r=b.F();for(f=!f&&1736==a.D();e.kb();)for(;e.La();){var q=e.ia();q.o(h);if(!(1<r&&h.Nu(this.Mg)>l)){for(var n=0;n<r;n++){b.w(n,k);if(f&&0!=c.fd.ge(a,k,0))return 0;g=q.Gd(k,!1);k.sub(q.Kb(g));g=k.Tp();if(g<l){if(0==g)return 0;l=g}}f=!1}}return Math.sqrt(l)};b.prototype.hB=function(a,b){for(var f=1.7976931348623157E308,e=new c.b,h=new c.b,l,k=a.F(),g=b.F(),r=0;r<k;r++)if(a.w(r,e),!(1<g&&this.Mg.dG(e)>f))for(var q=0;q<g;q++)if(b.w(q,
h),l=c.b.Yb(e,h),l<f){if(0==l)return 0;f=l}return Math.sqrt(f)};b.prototype.fT=function(a,b,f,e){if(1736==a.D()){for(;e.kb();)if(e.La()){var h=e.ia();if(0!=c.fd.ge(a,h.oc(),0))return!0}e.Lk()}if(1736==b.D()){for(;f.kb();)if(f.La()&&(a=f.ia(),0!=c.fd.ge(b,a.oc(),0)))return!0;f.Lk()}return!1};b.prototype.il=function(a,b){if(a.s()||b.s())return NaN;a.o(this.Ii);b.o(this.Mg);return this.vM(a,b)};return b}(),g=function(b){function a(){b.apply(this,arguments)}M(a,b);a.prototype.$=function(a,b,e){if(null==
a||null==b)throw c.g.N();if(a.s()||b.s())return NaN;var h,l;h=a.D();l=b.D();if(33==h){if(33==l)return c.b.Fb(a.w(),b.w());if(197==l)return e=new c.i,b.o(e),e.Fb(a.w());h=new c.pe;h.add(a);a=h}else if(197==h){if(197==l)return l=new c.i,a.o(l),e=new c.i,b.o(e),e.Fb(l);h=new c.Ka;h.Uc(a,!1);a=h}33==l?(l=new c.pe,l.add(b),b=l):197==l&&(l=new c.Ka,l.Uc(b,!1),b=l);return(new p(e)).il(a,b)};a.local=function(){null===a.V&&(a.V=new a);return a.V};a.prototype.D=function(){return 14};a.V=null;return a}(c.Me);
c.YH=g})(t||(t={}));(function(c){var p=function(){function g(b,a,d,c){this.YD=b;this.cE=a;this.ne=c;this.ED=d}g.prototype.next=function(){var b=this.YD.next();return null==b?null:this.yz(b)};g.prototype.ya=function(){return this.YD.ya()};g.prototype.yz=function(b){var a=b.D();if(c.T.Km(a))return b;if(197==a)return a=new c.Ka(b.description),a.Uc(b,!1),this.yz(a);if(b.s())return b;if(null==b)throw c.g.wa();for(var a=b.Pa(),d=new c.yb,f=0,e=b.ea();f<e;f++)this.kH(b,f,a,d);return a};g.prototype.kH=function(b,
a,d,f){if(!(2>b.Ha(a))){var e=b.Ea(a),h=b.Dc(a)-1,l=b.mc(0),k=b.vc(a),g=new c.ga(0);g.xb(b.Ha(a)+1);var r=new c.ga(0);r.xb(b.Ha(a)+1);g.add(k?e:h);g.add(e);for(e=new c.b;1<g.size;){var q=g.tc();g.af();var n=g.tc();b.w(q,e);f.dd(e);b.w(n,e);f.vd(e);n=this.hH(f,e,l,q,n,h);0<=n?(g.add(n),g.add(q)):r.add(q)}k||r.add(g.get(0));if(r.size==g.size)d.Zj(b,a,!0);else if(2<=r.size&&(!this.ED||2!=r.size||!(k||c.b.Fb(b.Fa(r.get(0)),b.Fa(r.get(1)))<=this.cE))){a=new c.Va;f=0;for(h=r.size;f<h;f++)b.Rd(r.get(f),
a),0==f?d.df(a):d.lineTo(a);k&&(this.ED||2!=r.size||d.lineTo(a),d.qo())}}};g.prototype.hH=function(b,a,d,c,e,h){var l=e-1;e<=c&&(l=h);h=e=-1;for(c+=1;c<=l;c++){d.dc(2*c,a);var k=a.x,g=a.y;b.Kb(b.Gd(a,!1),a);a.x-=k;a.y-=g;k=a.length();k>this.cE&&k>h&&(e=c,h=k)}return e};return g}();c.ZH=p})(t||(t={}));(function(c){var p=function(g){function b(){g.apply(this,arguments)}M(b,g);b.prototype.D=function(){return 29};b.prototype.$=function(a,b,f,e){return a instanceof c.T?(a=new c.Oc(a),this.$(a,b,f,e).next()):
new c.ZH(a,b,f,e)};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.V=null;return b}(c.Me);c.Rz=p})(t||(t={}));(function(c){var p=function(g){function b(){g.apply(this,arguments)}M(b,g);b.prototype.D=function(){return 21};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.prototype.$=function(a,b,f,e,h,l,k,g){return a instanceof c.T?(g=new c.Oc(a),this.$(g,b,f,[e],h,l,!1,k).next()):!0===k?(f=new c.Tz(a,b,f,e,h,!1,!1,g),c.wi.local().$(f,b,g)):new c.Tz(a,b,f,e,h,!1,!1,g)};b.V=null;return b}(c.Me);
c.Sz=p})(t||(t={}));(function(c){var p=function(){function g(b,a,d,f,e,h,l,k){if(h)throw c.g.qe();if(null==a)throw c.g.N();this.ua=-1;this.Wq=b;this.cg=a;this.je=d;this.Nq=f;this.Rm=e;this.Vm=-1;this.Xb=k;this.EP=new c.i;this.EP.Ja()}g.prototype.next=function(){for(var b;null!=(b=this.Wq.next());)return this.ua=this.Wq.ya(),this.Vm+1<this.Nq.length&&this.Vm++,this.pN(b,this.Nq[this.Vm]);return null};g.prototype.ya=function(){return this.ua};g.prototype.pN=function(b,a){return c.nH.buffer(b,this.cg,
this.je,a,this.Rm,this.Xb)};return g}();c.Tz=p})(t||(t={}));(function(c){var p=function(g){function b(){g.apply(this,arguments)}M(b,g);b.prototype.D=function(){return 24};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.prototype.$=function(a,b,f){if(null==b)throw c.g.N();if(a.s()||1>a.fb())return 0;if(4==f)throw c.g.qe();var e=c.Ya.Em(b),h=c.Ya.et(e),l=c.Ya.Ss(e),h=h*(2-h),k=e.Se().Cj,g=a.D(),r;1736==g||197==g?r=a.Rf():c.T.Lc(g)?(r=new c.Xa(a.description),r.Bc(a,!0)):r=a;if(0==e.lc(b)){if(c.Ya.Po(b)){r=
c.fh.po(r,b);1607==g&&r==a&&(r=c.T.Yj(a));a=new c.Nd;c.Ya.Fm(b).vu(a);for(var g=0,q=r.F();g<q;g++){var n=r.Fa(g);n.x=c.fh.ou(n.x,a);r.hc(g,n)}}a=r.Pa();r=c.fh.aR(b,e,r,a)?a:c.Ya.Wl(r,b,e)}return this.xM(r,f,l,h,k)};b.prototype.xM=function(a,b,f,e,h){var l=new c.ca(0),k=0;for(a=a.Ca();a.kb();)for(;a.La();){var g=a.ia(),r=g.Mb(),g=g.oc();r.scale(h);g.scale(h);c.zb.Qd(f,e,r.x,r.y,g.x,g.y,l,null,null,b);k+=l.l}return k};b.V=null;return b}(c.Me);c.bI=p})(t||(t={}));(function(c){var p=function(g){function b(){g.apply(this,
arguments)}M(b,g);b.prototype.D=function(){return 18};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.prototype.$=function(a,b,f,e,h){return a instanceof c.T?(a=new c.Oc(a),this.$(a,b,f,e,h).next()):new c.aI(a,f,e,b,-1,-1,h)};b.V=null;return b}(c.Me);c.$H=p})(t||(t={}));(function(c){var p=function(){function g(b,a,d,f,e,h){if(0<h)throw c.g.qe();if(4!=d&&0<e)throw c.g.qe();if(null==a)throw c.g.N();this.ua=-1;this.Wq=b;this.cg=a;this.je=d;this.KP=f;this.JP=e}g.prototype.next=function(){for(var b;null!=
(b=this.Wq.next());)return this.ua=this.Wq.ya(),this.hw(b);return null};g.prototype.ya=function(){return this.ua};g.prototype.hw=function(b){return c.ui.nq(b,this.cg,this.je,this.KP,this.JP,this.Xb)};return g}();c.aI=p})(t||(t={}));(function(c){(function(c){c[c.Unknown=0]="Unknown";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.NoThisRelation=64]="NoThisRelation";
c[c.Intersects=1073741824]="Intersects";c[c.IntersectsOrDisjoint=1073741828]="IntersectsOrDisjoint"})(c.vH||(c.vH={}));var p=function(){function g(){}g.kT=function(b,a,d,f){if(a.s()||b.s())return 4;var e=b.D(),h=a.D(),l;c.T.Lc(e)&&(b=l=new c.Xa(b.description),l.Bc(b,!0));c.T.Lc(h)&&(a=l=new c.Xa(a.description),l.Bc(a,!0));switch(e){case 33:switch(h){case 33:return g.eK(b,a,d);case 197:return g.Id(g.tG(a,b,d));case 550:return g.Id(g.DG(a,b,d));case 1607:return g.Id(g.xz(a,b,d,f));case 1736:return g.Id(g.nz(a,
b,d))}throw c.g.wa();case 197:switch(h){case 33:return g.tG(b,a,d);case 197:return g.WI(b,a,d);case 550:return g.Id(g.zG(a,b,d,f));case 1607:return g.Id(g.rz(a,b));case 1736:return g.Id(g.jz(a,b))}throw c.g.wa();case 550:switch(h){case 33:return g.DG(b,a,d);case 197:return g.zG(b,a,d,f);case 550:return g.BG(b,a,d,f);case 1607:return g.Id(g.vz(a,b));case 1736:return g.Id(g.lz(a,b))}throw c.g.wa();case 1607:switch(h){case 33:return g.xz(b,a,d,f);case 197:return g.rz(b,a);case 550:return g.vz(b,a);case 1607:return g.uO(b,
a);case 1736:return g.Id(g.pz(a,b))}throw c.g.wa();case 1736:switch(h){case 33:return g.nz(b,a,d);case 197:return g.jz(b,a);case 550:return g.lz(b,a);case 1607:return g.pz(b,a);case 1736:return g.tM(b,a)}throw c.g.wa();default:throw c.g.wa();}};g.eK=function(b,a,d){b=b.w();a=a.w();return g.HG(b,a,d)};g.HG=function(b,a,d){b.sub(a);return b.Tp()<=d*d?3:4};g.tG=function(b,a,d){var f=new c.i;b.o(f);b=a.w();return g.bJ(f,b,d)};g.bJ=function(b,a,d){b.P(-d,-d);if(b.contains(a))return 1;b.P(d,d);return b.contains(a)?
8:4};g.eJ=function(b,a,d){return a.contains(d)?1:b.contains(d)?8:4};g.WI=function(b,a,d){var f=new c.i;b.o(f);b=new c.i;a.o(b);return g.ZI(f,b,d)};g.ZI=function(b,a,d){var c=0;b.contains(a)&&(c|=1);a.contains(b)&&(c|=2);if(0!=c)return c;b.P(-d,-d);a.P(-d,-d);if(b.jc(a))return c=b,c.P(d,d),c=c.contains(a)?1:0,a.P(d,d),c|=a.contains(b)?2:0,0!=c?c:32;c=b;c.P(d,d);a.P(d,d);return c.jc(a)?8:4};g.DG=function(b,a,d){a=a.w();return g.FG(b,a,d)};g.FG=function(b,a,d){for(var c=0,e=b.F();c<e;c++){var h;h=b.Fa(c);
h=g.HG(h,a,d);if(4!=h)return 0!=(h&2)&&1!=e?1:h}return 4};g.zG=function(b,a,d,f){var e=new c.i;a.o(e);return g.VJ(b,e,d,f)};g.VJ=function(b,a,d,c){a.P(-d,-d);a.P(d,d);for(var e=d=0,h=b.F();e<h;e++){var l;l=b.Fa(e);l=g.Id(g.eJ(a,a,l));if(4!=l&&(d|=l,4==c))return 1073741824}return 0==d?4:2==d?d:32};g.BG=function(b,a,d,c){for(var e=0,h=0,l=a.F();h<l;h++){var k;k=a.Fa(h);k=g.FG(b,k,d);if(4!=k&&(e++,4==c))return 1073741824}return 0<e?e==a.F()?3==c?(k=g.BG(a,b,d,1),1==k?3:0):1:32:0};g.xz=function(b,a,d,
c){a=a.w();return g.fN(b,a,d,c)};g.KG=function(b,a){var d=null,c=b.pb;null!=c&&(d=c.hi);if(null!=d){d=d.Kk(a.x,a.y);if(0==d)return 4;if(1==d)return 1}else return-1;return 0};g.fN=function(b,a,d,f){if(0==(f&1073741839))return 64;var e=g.KG(b,a);if(0<e)return e;d*=d;for(e=b.Ca();e.kb();){var h=e.Qa;if(!b.vc(h)){var l=b.Ha(h),h=b.Ea(h);if(0==l)continue;if(c.b.Yb(b.Fa(h),a)<=d||1<l&&c.b.Yb(b.Fa(h+l-1),a)<=d)return 8}if(8!=f)for(;e.La();)if(l=e.ia(),l=l.Kb(l.Gd(a,!1)),c.b.Yb(l,a)<=d)return 0!=(f&1073741828)?
1073741824:1}return 0!=(f&1073741828)?4:64};g.rz=function(b,a){var d=new c.i;a.o(d);return g.FM(b,d)};g.FM=function(b,a){var d=g.$n(b,a);return 0<d?d:0};g.$n=function(b,a){var d;d=b.pb;if(null!=d)d=d.hi;else return-1;if(null!=d){d=d.Dn(a);if(0==d)return 4;if(1==d)return 1}else return-1;return 0};g.vz=function(b,a){var d=new c.i;a.o(d);d=g.$n(b,d);return 0<d?d:0};g.es=function(b,a){var d=new c.i;a.o(d);d=g.$n(b,d);return 0<d?d:-1==d&&(d=new c.i,b.o(d),d=g.$n(a,d),0<d)?g.Id(d):0};g.uO=function(b,a){var d=
g.es(b,a);return 0<d?d:0};g.nz=function(b,a,d){a=a.w();return g.YL(b,a,d)};g.YL=function(b,a,d){b=c.fd.ge(b,a,d);if(0==b)return 4;if(1==b)return 1;if(2==b)return 8;throw c.g.wa();};g.jz=function(b,a){var d=new c.i;a.o(d);return g.LK(b,d)};g.LK=function(b,a){var d=g.$n(b,a);return 0<d?d:0};g.lz=function(b,a){var d=g.es(b,a);return 0<d?d:0};g.pz=function(b,a){var d=g.es(b,a);return 0<d?d:0};g.tM=function(b,a){var d=g.es(b,a);return 0<d?d:0};g.kR=function(b,a){var d=b.D(),f=a.D(),e;if(c.T.Th(d)&&(e=
b.pb,null!=e&&(e=e.hi,null!=e))){if(33==f){var h=a.w();e=e.Kk(h.x,h.y)}else h=new c.i,a.o(h),e=e.Dn(h);if(1==e)return 1;if(0==e)return 4}if(c.T.Th(f)&&(e=a.pb,null!=e&&(e=e.hi,null!=e))){33==d?(d=b.w(),e=e.Kk(d.x,d.y)):(d=new c.i,b.o(d),e=e.Dn(d));if(1==e)return 2;if(0==e)return 4}return 0};g.Id=function(b){0!=(b&1)&&(b=b&-2|2);0!=(b&2)&&(b=b&-3|1);return b};return g}();c.cI=p})(t||(t={}));(function(c){var p=function(g){function b(){g.apply(this,arguments)}M(b,g);b.local=function(){null===b.V&&(b.V=
new b);return b.V};b.prototype.D=function(){return 15};b.prototype.$=function(a,b,f,e,h){return a instanceof c.T?(a=new c.Oc(a),b=new c.Oc(b),this.$(a,b,f,e,h).next()):void 0===h?new c.Uz(a,b,f,e,-1):new c.Uz(a,b,f,e,h)};b.V=null;return b}(c.Me);c.Zr=p})(t||(t={}));(function(c){var p=function(){function g(b,a,d,f,e){this.Eq=null==a;this.ua=-1;this.me=b;this.cg=d;this.De=a.next();this.Ji=this.De.D();this.Xb=f;this.Xh=e;if(-1!=this.Xh&&(0>=this.Xh||7<this.Xh))throw c.g.N("bad dimension mask");}g.prototype.next=
function(){if(this.Eq)return null;var b;if(null!=this.cu){b=this.cu.next();if(null!=b)return b;this.cu=null}for(;null!=(b=this.me.next());){this.ua=this.me.ya();if(-1==this.Xh)return b=this.Ga(b);this.cu=this.RO(b);return b=this.cu.next()}return null};g.prototype.ya=function(){return this.ua};g.prototype.Ga=function(b){var a=this.rG(b);if(null!=a)return a;var a=c.Ia.Zs(this.De,b),d=c.Ia.zd(this.cg,a,!0),a=new c.i;this.De.o(a);var f=new c.i;b.o(f);a.P(2*d,2*d);a.Ga(f);a.P(100*d,100*d);d=c.Ed.clip(this.De,
a,0,0);b=c.Ed.clip(b,a,0,0);return c.Of.lt(b,d,this.cg,this.Xb)};g.prototype.PE=function(b,a,d){var f=0;if(0!=(a&1))null==d[0]&&(d[0]=new c.pe(b)),f++;else for(var e=0;e<d.length-1;e++)d[e]=d[e+1];if(0!=(a&2))null==d[f]&&(d[f]=new c.Xa(b)),f++;else for(e=f;e<d.length-1;e++)d[e]=d[e+1];if(0!=(a&4))null==d[f]&&(d[f]=new c.Ka(b)),f++;else for(e=f;e<d.length-1;e++)d[e]=d[e+1];if(3!=f){b=[];for(e=0;e<f;e++)b[e]=d[e];return new c.Oc(b)}return new c.Oc(d)};g.prototype.RO=function(b){var a=this.rG(b);if(null!=
a){var d=[null,null,null];d[a.fb()]=a;return this.PE(b.description,this.Xh,d)}a=c.Ia.Zs(this.De,b);d=c.Ia.zd(this.cg,a,!0);a=new c.i;this.De.o(a);a.P(2*d,2*d);var f=new c.i;b.o(f);a.Ga(f);a.P(100*d,100*d);d=c.Ed.clip(this.De,a,0,0);a=c.Ed.clip(b,a,0,0);d=c.Of.Uw(a,d,this.cg,this.Xb);return this.PE(b.description,this.Xh,d)};g.prototype.rG=function(b){var a=c.Ia.Zs(b,this.De),d=c.Ia.zd(this.cg,a,!1),a=b.D(),f=b.s(),e=this.De.s(),e=f||e;if(!e){e=new c.i;b.o(e);var h=new c.i;this.De.o(h);h.P(2*d,2*d);
e=!e.jc(h)}if(!e)if(h=c.cI.kR(this.De,b),4==h)e=!0;else{if(0!=(h&2))return this.De;if(0!=(h&1))return b}if(e)return d=c.T.we(a),e=c.T.we(this.Ji),d<e?g.V(b,f):d>e?this.hF():0==d?550==a&&33==this.Ji?this.hF():g.V(b,f):g.V(b,f);if((-1==this.Xh||4==this.Xh)&&197==a&&197==this.Ji)return d=this.De,a=new c.i,b.o(a),f=new c.i,d.o(f),a.Ga(f),d=new c.Uj,b.copyTo(d),d.Bu(a),d;if(197==a&&0==c.T.we(this.Ji)||197==this.Ji&&0==c.T.we(a))return f=197==a?b:this.De,b=197==a?this.De:b,a=new c.i,f.o(a),c.Ed.clip(b,
a,d,0);if(0==c.T.we(a)&&0<c.T.we(this.Ji)||0<c.T.we(a)&&0==c.T.we(this.Ji)){d=c.Ia.Bg(this.cg,b,!1);if(550==a||33==a)return c.Of.gD(b,this.De,d);if(550==this.Ji||33==this.Ji)return c.Of.gD(this.De,b,d);throw c.g.wa();}return-1!=this.Xh&&2!=this.Xh||1607!=a||1736!=this.Ji?-1!=this.Xh&&2!=this.Xh||1736!=a||1607!=this.Ji?null:this.oG(this.De,b):this.oG(b,this.De)};g.prototype.oG=function(b,a){var d=b,f=a,e=c.Ia.Bg(this.cg,a,!1),h=new c.i;f.o(h);var l=new c.i;d.o(l);l.P(2*e,2*e);h.Ga(l);h.P(10*e,10*e);
var d=b=c.Ed.clip(b,h,0,0),l=new c.ga(0),k=-1,g=f.pb;if(null!=g){var r=g.hi;if(null!=r){k=0;l.xb(d.F()+d.ea());for(var q=new c.i,n=d.Ca();n.kb();)for(;n.La();){n.ia().o(q);var u=r.Dn(q);1==u?l.add(1):0==u?l.add(0):(l.add(-1),k++)}}}5<a.F()&&(f=a=c.Ed.clip(a,h,0,0),g=f.pb);0>k&&(k=d.Iw());h=d.F()+f.F();if(k*f.F()>Math.log(h)*h*4)return null;h=null;k=f.Ca();null!=g&&null!=g.Ab&&(h=g.Ab);null==h&&20<f.F()&&(h=c.Ia.mB(f));for(var f=b.Pa(),g=null,r=d.Ca(),q=[0,0,0,0,0,0,0,0,0],n=new c.qd(0),u=new c.zg,
v=-1,p=0,t=0,F=0<l.size,D=-1;r.kb();){for(var D=r.Qa,y=0,v=-1,p=0;r.La();){var z=F?c.I.truncate(l.get(t)):-1;t++;var A=r.ia();if(0>z){if(null!=h)for(null==g?g=h.LN(A,e):g.Fn(A,e),z=g.next();-1!=z;z=g.next()){k.Sb(h.da(z));for(var z=k.ia(),B=A.Ga(z,null,q,null,e),z=0;z<B;z++)n.add(q[z])}else for(k.Lk();k.kb();)for(;k.La();)for(z=k.ia(),B=A.Ga(z,null,q,null,e),z=0;z<B;z++)n.add(q[z]);if(0<n.size){n.xd(0,n.size,function(a,b){return a-b});var C=0;n.add(1);for(var B=-1,z=0,E=n.size;z<E;z++){var G=n.get(z);
if(G!=C){var H=!1;0!=C||1!=G?(A.Bi(C,G,u),C=u.get()):(C=A,H=!0);if(2<=y){f.xs(d,D,v,p,3==y);if(1!=this.TA(a,C.Mb(),e)&&1!=this.UA(a,C,e))return null;f.Bc(C,!1);y=1;p=0}else switch(B=this.UA(a,C,e),B){case 1:H?2>y?(v=r.Jb()-d.Ea(D),p=1,y=0==y?3:2):p++:(f.Bc(C,0==y),y=1);break;case 0:y=0;v=-1;p=0;break;default:return null}C=G}}}else{z=this.TA(a,A.Mb(),e);if(0>z)return null;1==z?(2>y&&(v=r.Jb()-d.Ea(D),y=0==y?3:2),p++):(v=-1,p=0)}n.clear(!1)}else 0!=z&&1==z&&(0==y?(y=3,v=r.Jb()-d.Ea(D)):1==y?(y=2,v=
r.Jb()-d.Ea(D)):p++)}2<=y&&(f.xs(d,D,v,p,3==y),v=-1)}return f};g.prototype.TA=function(b,a,d){return c.ff.xl(b,a,d)};g.prototype.UA=function(b,a,d){var f=a.Mb();a=a.oc();var e=c.ff.xl(b,f,d),h=c.ff.xl(b,a,d);if(1==e&&0==h||0==e&&1==h)return-1;if(0==e||0==h)return 0;if(1==e||1==h)return 1;e=new c.b;e.add(f,a);e.scale(.5);b=c.ff.xl(b,e,d);return 0==b?0:1==b?1:-1};g.V=function(b,a){return a?b:b.Pa()};g.prototype.hF=function(){null==this.XD&&(this.XD=this.De.Pa());return this.XD};return g}();c.Uz=p})(t||
(t={}));(function(c){var p=function(g){function b(){g.apply(this,arguments)}M(b,g);b.prototype.D=function(){return 28};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.prototype.$=function(a,b,f,e,h,l,k){return a instanceof c.T?(a=new c.Oc(a),this.$(a,b,f,e,h,l,k).next()):new c.dI(a,b,f,e,h,l,k)};b.V=null;return b}(c.Me);c.Vz=p})(t||(t={}));(function(c){var p=function(){function g(b,a,d,c,e,h,l){this.ua=-1;this.me=b;this.Pi=a;this.Da=d;this.bi=c;this.Dx=e;this.UD=h;this.ne=l}g.prototype.next=
function(){var b=this.me.next();return null!=b?(this.ua=this.me.ya(),this.QH(b)):null};g.prototype.ya=function(){return this.ua};g.prototype.QH=function(b){var a;a=0>=this.UD?c.Ia.Bg(this.Pi,b,!1):this.UD;return c.VG.$(b,this.Da,this.bi,this.Dx,a,this.ne)};return g}();c.dI=p})(t||(t={}));(function(c){var p=function(){function b(){}b.prototype.reset=function(){this.Og=this.Ej=-1;this.Gq=this.To=!1};b.prototype.PM=function(a,b,c){for(a.Sb(b,c);a.La();){var e=a.ia(),e=e.Zb();if(0!=e)return a.Jb()}for(a.Sb(b,
c);a.Ow();)if(e=a.oi(),e=e.Zb(),0!=e)return a.Jb();return-1};b.prototype.QM=function(a,b){for(a.Sb(b,-1);a.Ow();)if(0!=a.oi().Zb())return a.Jb();return-1};b.prototype.OM=function(a,b){a.Sb(b,-1);for(a.ia();a.La();)if(0!=a.ia().Zb())return a.Jb();return-1};b.prototype.NM=function(a,b,f,e){this.Ej=this.PM(b,f,e);if(-1!=this.Ej){b.Sb(this.Ej,-1);var h=b.ia(),l=h.Kb(h.Gd(a,!1));f=c.b.Yb(l,a);e=new c.b;e.J(l);e.sub(h.Mb());l=new c.b;l.J(a);l.sub(h.Mb());this.To=0>e.Ai(l);this.Og=this.OM(b,this.Ej);if(-1!=
this.Og){b.Sb(this.Og,-1);var h=b.ia(),k=h.Gd(a,!1),k=h.Kb(k),g=c.b.Yb(k,a);g>f?this.Og=-1:(e.J(k),e.sub(h.Mb()),l.J(a),l.sub(h.Mb()),this.Gq=0>e.Ai(l))}-1==this.Og&&(this.Og=this.QM(b,this.Ej),-1!=this.Og&&(b.Sb(this.Og,-1),h=b.ia(),k=h.Gd(a,!1),k=h.Kb(k),g=c.b.Yb(k,a),g>f?this.Og=-1:(e.J(k),e.sub(h.Mb()),l.J(a),l.sub(h.Mb()),this.Gq=0>e.Ai(l),a=this.Ej,this.Ej=this.Og,this.Og=a,a=this.To,this.To=this.Gq,this.Gq=a)))}};b.prototype.EK=function(a,b,c,e,h){c=c.Ca();this.NM(a,c,e,h);if(-1!=this.Ej&&
-1==this.Og)return this.To;if(-1!=this.Ej&&-1!=this.Og){if(this.To==this.Gq)return this.To;c.Sb(this.Ej,-1);a=c.ia().Pf(1);c.Sb(this.Og,-1);b=c.ia().Pf(0);return 0<=a.Ai(b)?!0:!1}return b};return b}(),g=function(b){function a(){b.apply(this,arguments)}M(a,b);a.local=function(){null===a.V&&(a.V=new a);return a.V};a.prototype.D=function(){return 3};a.prototype.zw=function(a,b,e,h){void 0===h&&(h=!1);if(a.s())return new c.dl;b=b.w();var l=a,k=a.D();197==k&&(l=new c.Ka,l.Uc(a,!1),k=1736);switch(k){case 33:return this.LE(l,
b);case 550:return this.yE(l,b);case 1607:case 1736:return this.fQ(l,b,e,h);default:throw c.g.ra("not implemented");}};a.prototype.Aw=function(a,b){if(a.s())return new c.dl;var e=b.w(),h=a,l=a.D();197==l&&(h=new c.Ka,h.Uc(a,!1),l=1736);switch(l){case 33:return this.LE(h,e);case 550:case 1607:case 1736:return this.yE(h,e);default:throw c.g.ra("not implemented");}};a.prototype.Bw=function(a,b,e,h){if(0>h)throw c.g.N();if(a.s())return[];b=b.w();var l=a,k=a.D();197==k&&(l=new c.Ka,l.Uc(a,!1),k=1736);
switch(k){case 33:return this.KQ(l,b,e,h);case 550:case 1607:case 1736:return this.iQ(l,b,e,h);default:throw c.g.ra("not implemented");}};a.prototype.fQ=function(a,b,e,h){if(1736==a.D()&&e&&(e=new c.i,a.o(e),e=c.Ia.zd(null,e,!1),0!=(h?c.fd.ge(a,b,0):c.fd.ge(a,b,e)))){var l=new c.dl(b,0,0);h&&l.RF(!0);return l}for(var k=a.Ca(),l=new c.b,g=e=-1,r=1.7976931348623157E308,q=0;k.kb();)for(;k.La();){var n=k.ia(),n=n.Kb(n.Gd(b,!1)),u=c.b.Yb(n,b);u<r?(q=1,l=n,e=k.Jb(),g=k.Qa,r=u):u==r&&q++}l=new c.dl(l,e,
Math.sqrt(r));h&&(k.Sb(e,g),n=k.ia(),h=0>c.b.yn(b,n.Mb(),n.oc()),1<q&&(q=new p,q.reset(),h=q.EK(b,h,a,e,g)),l.RF(h));return l};a.prototype.LE=function(a,b){var e=a.w(),h=c.b.Fb(e,b);return new c.dl(e,0,h)};a.prototype.yE=function(a,b){for(var e=a.mc(0),h=a.F(),l=0,k=0,g=0,r=1.7976931348623157E308,q=0;q<h;q++){var n=new c.b;e.dc(2*q,n);var u=c.b.Yb(n,b);u<r&&(k=n.x,g=n.y,l=q,r=u)}e=new c.dl;e.tv(k,g,l,Math.sqrt(r));return e};a.prototype.KQ=function(a,b,e,h){if(0==h)return e=[];e*=e;a=a.w();b=c.b.Yb(a,
b);b<=e?(e=[],h=new c.dl,h.tv(a.x,a.y,0,Math.sqrt(b)),e[0]=h):e=[];return e};a.prototype.iQ=function(a,b,e,h){if(0==h)return h=[];var l=a.mc(0),k=a.F();a=[];var g=0;e*=e;for(var r=0;r<k;r++){var q=l.read(2*r),n=l.read(2*r+1),u=b.x-q,v=b.y-n,u=u*u+v*v;u<=e&&(v=new c.dl,v.tv(q,n,r,Math.sqrt(u)),g++,a.push(v))}b=a.length;a.sort(function(a,b){return a.Da<b.Da?-1:a.Da==b.Da?0:1});if(h>=b)return a.slice(0);a.length=h;return a.slice(0)};a.V=null;return a}(c.Me);c.bv=g})(t||(t={}));(function(c){var p=function(g){function b(){g.apply(this,
arguments)}M(b,g);b.prototype.D=function(){return 4};b.prototype.$=function(a,b,f,e,h){return c.el.py(a,b,f,e,h)};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.V=null;return b}(c.Me);c.eI=p})(t||(t={}));(function(c){var p=function(g){function b(){g.apply(this,arguments)}M(b,g);b.prototype.D=function(){return 33};b.prototype.$=function(a,b,f,e,h){return 1073741824===a?!c.gd.qy(b,f,e,4,h):c.gd.qy(b,f,e,a,h)};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.V=null;return b}(c.Me);
c.bl=p})(t||(t={}));(function(c){var p=function(){function g(b,a,d,f){this.ne=f;this.AP=d;this.ua=-1;if(null==b)throw c.g.N();this.wk=b;this.Pi=a}g.prototype.next=function(){var b;return null!=(b=this.wk.next())?(this.ua=this.wk.ya(),this.Qy(b)):null};g.prototype.ya=function(){return this.ua};g.prototype.Qy=function(b){if(null==b)throw c.g.N();return c.cv.$F(b,this.Pi,this.AP,this.ne)};return g}();c.fI=p})(t||(t={}));(function(c){var p=function(g){function b(){g.apply(this,arguments)}M(b,g);b.prototype.D=
function(){return 26};b.prototype.$=function(a,b,f,e){return a instanceof c.T?(a=new c.Oc(a),this.$(a,b,f,e).next()):new c.fI(a,b,f,e)};b.prototype.Qo=function(a,b,f,e,h){return 0<(void 0!==e?c.cv.Qo(a,b,f,e,h):c.cv.Qo(a,b,!1,null,f))};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.V=null;return b}(c.Me);c.$r=p})(t||(t={}));(function(c){var p=function(){function a(){this.gp=0}a.prototype.jS=function(a){this.gp&=-2;this.gp=this.gp|(a?1:0)};a.prototype.sl=function(){return 0!=(this.gp&1)};
a.prototype.IC=function(){return this.sl()?0:1};return a}();c.vT=p;var g=function(){return function(){}}(),b=function(){return function(a,b,d,e){this.x=a;this.y=b;this.Sh=d;this.yl=e}}(),a=function(){function a(b){this.le=b}a.prototype.compare=function(a,b,d){a=a.da(d);b=this.le.$e.read(2*b);a=this.le.$e.read(2*a);b-=a;return 0>b?-1:0<b?1:0};return a}(),d=function(){function a(b){this.le=b}a.prototype.compare=function(a,b,d){b=this.le.$a[b];a=this.le.$a[a.da(d)];var e=b.sl(),c=a.sl();d=b.Yd.ye(this.le.wn,
0);var f=a.Yd.ye(this.le.wn,0);d==f&&(d=Math.min(e?b.Yd.ja:b.Yd.ha,c?a.Yd.ja:a.Yd.ha),e=.5*(d-this.le.wn)+this.le.wn,e==this.le.wn&&(e=d),d=b.Yd.ye(e,0),f=a.Yd.ye(e,0));return d<f?-1:d>f?1:0};return a}(),f=function(){function a(b,d){this.SE=new c.b;this.parent=b;this.nO=d}a.prototype.Yp=function(a,b,d){var e=this.parent,c=this.nO;d.xd(a,b,function(a,b){return e.jj(a,b,c)})};a.prototype.Lo=function(a){a=this.parent.wh.get(a);this.parent.$e.dc(2*(a>>1),this.SE);return this.SE.y+(0!=(a&1)?this.parent.Ri:
-this.parent.Ri)};return a}(),e=function(){function e(a,b,d,f,h){this.PD=a.description;this.U=a;this.rg=b;this.Ri=c.Ia.Bg(this.rg,a,!1);this.pn=c.Ia.Bg(this.rg,a,!0);this.yx=d;this.yP=this.PD.Aa;this.$a=[];this.dn=[];this.Kg=new c.Zn;this.Za=new c.bj;this.Kd=new c.wd;this.DD=this.pk=h}e.prototype.Yw=function(){this.DD=!0;return(!c.T.Kc(this.U.D())||this.xB()&&this.wB(!1))&&this.NK()?c.T.Kc(this.U.D())?this.QK()?1607==this.U.D()?this.SK()?2:0:this.TK()?this.UK():0:0:2:0};e.prototype.Yy=function(a,
b){var d=this.$e.read(2*a),e=this.$e.read(2*a+1),f=this.$e.read(2*b),h=this.$e.read(2*b+1),g=!c.Rr.Vw(d,e,f,h,this.Ri*this.Ri);return g?g:0==this.U.fb()?!1:d==f&&e==h};e.prototype.xB=function(){for(var a=this.U,b=a.Yf?3:2,d=0,e=a.ea();d<e;d++)if(a.Ha(d)<b)return this.Kd=new c.wd(1,d,0),!1;return!0};e.prototype.wB=function(a){for(var b=this.U,d=b.Ca(),e=b.hasAttribute(1),b=e?c.Ia.qB(this.rg,b,!1):0;d.kb();)for(;d.La();){var f=d.ia();if(!(f.Zb()>this.Ri)){if(a&&e){var h=f.ft(1,0),f=f.ft(1,0);if(Math.abs(f-
h)>b)continue}this.Kd=new c.wd(2,d.Jb(),-1);return!1}}return!0};e.prototype.NK=function(){var b=this.U,d=null;c.T.Kc(this.U.D())&&(d=this.U);var e=(this.DD||this.pk)&&null!=d,h=b.F();this.$e=b.mc(0);this.wh=new c.ga(0);this.wh.xb(2*h);this.vh=new c.ga(0);this.vh.xb(2*h);e&&(null==this.Bk&&(this.Bk=new c.ga(0)),this.Bk.xb(h));for(var g=b=0;g<h;g++)if(this.wh.add(2*g),this.wh.add(2*g+1),this.vh.add(2*g),this.vh.add(2*g+1),e){for(;g>=d.Dc(b);)b++;this.Bk.add(b)}(new c.Qr).sort(this.vh,0,2*h,new f(this,
e));this.Za.clear();this.Za.Hn(new a(this));this.Za.ce(h);d=0;for(h*=2;d<h;d++)if(e=this.vh.get(d),b=this.wh.get(e),e=b>>1,0==(b&1)){b=this.Za.addElement(e,-1);g=this.Za.fe(b);if(-1!=g&&!this.Yy(this.Za.da(g),e))return this.Kd=new c.wd(3,e,this.Za.da(g)),!1;var n=this.Za.bb(b);if(-1!=n&&!this.Yy(this.Za.da(n),e))return this.Kd=new c.wd(3,e,this.Za.da(n)),!1}else if(b=this.Za.search(e,-1),g=this.Za.fe(b),n=this.Za.bb(b),this.Za.jd(b,-1),-1!=g&&-1!=n&&!this.Yy(this.Za.da(g),this.Za.da(n)))return this.Kd=
new c.wd(3,this.Za.da(g),this.Za.da(n)),!1;return!0};e.prototype.QK=function(){return 10>this.U.F()?this.OK():this.PK()};e.prototype.PK=function(){var a=new c.ed;a.Eb(this.U);var b=new c.wd;return c.Yu.AE(!1,a,this.Ri,b,this.ne)?(b.Fk=a.gb(b.Fk),b.Gk=a.gb(b.Gk),this.Kd.$p(b),!1):!0};e.prototype.OK=function(){for(var a=this.U,b=a.Ca(),a=a.Ca();b.kb();)for(;b.La();){var d=b.ia();if(!b.Jm()||!b.$O()){a.zR(b);do for(;a.La();){var e=a.ia(),e=d.eq(e,this.Ri,!0);if(0!=e)return this.Kd=new c.wd(2==e?5:4,
b.Jb(),a.Jb()),!1}while(a.kb())}}return!0};e.prototype.TK=function(){var a=this.U;this.$a.length=0;this.dn.length=0;this.Hf=a.Ca();this.Hf.PR();var b=new c.ga(0);b.xb(10);for(var d=NaN,e=0,f=0,a=2*a.F();f<a;f++){var h=this.vh.get(f),h=this.wh.get(h);if(0==(h&1)){var h=h>>1,g=this.$e.read(2*h),v=this.$e.read(2*h+1);if(0!=b.size&&(g!=d||v!=e)){if(!this.QE(b))return!1;null!=b&&b.clear(!1)}b.add(h);d=g;e=v}}return this.QE(b)?!0:!1};e.prototype.SK=function(){for(var a=this.U,b=Array(a.ea()),d=0,e=a.ea();d<
e;d++)b[d]=a.No(d);var e=new g,f,h,u,v=new c.b,d=this.vh.get(0),d=this.wh.get(d),p=d>>1;this.$e.dc(2*p,v);d=this.Bk.get(p);f=b[d];h=a.Ea(d);u=a.Dc(d)-1;e.ak=p==h||p==u;e.Ev=this.pk?!f&&e.ak:e.ak;e.Sh=d;e.x=v.x;e.y=v.y;e.yl=p;for(var t=new g,F=1,D=this.vh.size;F<D;F++)if(d=this.vh.get(F),d=this.wh.get(d),0==(d&1)){p=d>>1;this.$e.dc(2*p,v);d=this.Bk.get(p);d!=e.Sh&&(f=b[d],h=a.Ea(d),u=a.Dc(d)-1);var y,z=p==h||p==u;y=this.pk?!f&&e.ak:e.ak;t.x=v.x;t.y=v.y;t.Sh=d;t.yl=p;t.Ev=y;t.ak=z;if(t.x==e.x&&t.y==
e.y)if(this.pk){if(!t.Ev||!e.Ev)if(t.Sh!=e.Sh||!t.ak&&!e.ak)return this.Kd=new c.wd(8,t.yl,e.yl),!1}else if(!t.ak||!e.ak)return this.Kd=new c.wd(5,t.yl,e.yl),!1;d=e;e=t;t=d}return!0};e.prototype.zB=function(){for(var a=this.U,d=[],e=-1,f=!1,h=0,g=a.ea();h<g;h++)a.pt(h)&&(f=!1,e++,h<g-1&&(a.pt(h+1)||(f=!0))),d[h]=f?e:-1;var f=new c.b,h=this.vh.get(0),h=this.wh.get(h),u=h>>1;this.$e.dc(2*u,f);for(var h=this.Bk.get(u),e=new b(f.x,f.y,h,u,d[h]),a=[],v=1,g=this.vh.size;v<g;v++)if(h=this.vh.get(v),h=this.wh.get(h),
0==(h&1)){u=h>>1;this.$e.dc(2*u,f);h=this.Bk.get(u);h=new b(f.x,f.y,h,u,d[h]);if(h.x==e.x&&h.y==e.y){if(h.Sh==e.Sh)return this.Kd=new c.wd(9,h.yl,e.yl),!1;0<=d[h.Sh]&&d[h.Sh]==d[e.Sh]&&(0!=a.length&&a[a.length-1]==e||a.push(e),a.push(h))}e=h}if(0==a.length)return!0;h=new c.Zn(!0);c.I.Os(d,-1);f=-1;v=new c.b;v.Dh();e=0;for(g=a.length;e<g;e++){u=a[e];if(u.x!=v.x||u.y!=v.y)f=h.ih(0),v.x=u.x,v.y=u.y;var p=d[u.Sh];-1==p&&(p=h.ih(2),d[u.Sh]=p);h.addElement(p,f);h.addElement(f,p)}g=new c.ga(0);g.xb(10);
for(e=h.Vd;-1!=e;e=h.Cw(e))if(a=h.AC(e),0==(a&1)&&0!=(a&2)){a=-1;g.add(e);for(g.add(-1);0<g.size;){f=g.tc();g.af();v=g.tc();g.af();u=h.AC(v);if(0!=(u&1)){a=0==(u&2)?f:v;break}h.bS(v,u|1);for(u=h.fc(v);-1!=u;u=h.bb(u))p=h.getData(u),p!=f&&(g.add(p),g.add(v))}if(-1!=a){h=-1;e=0;for(g=d.length;e<g;e++)if(d[e]==a){h=e;break}this.Kd=new c.wd(10,h,-1);return!1}}return!0};e.prototype.UK=function(){var a=this.U;if(0>=a.Lh())return this.Kd=new c.wd(6,1==a.ea()?1:-1,-1),0;if(1==a.ea())return this.pk&&!this.zB()?
0:2;this.gn=c.ga.Wc(a.ea(),0);this.Hx=c.ga.Wc(a.ea(),-1);for(var b=-1,e=0,f=0,h=a.ea();f<h;f++){var g=a.no(f);this.gn.write(f,0>g?0:256);if(0<g)b=f,e=g;else{if(0==g)return this.Kd=new c.wd(6,f,-1),0;if(0>b||e<Math.abs(g))if(this.Kd=new c.wd(7,f,-1),this.pk)return 0;this.Hx.write(f,b)}}this.jr=a.ea();this.Ll=new c.ga(0);this.Ll.xb(10);h=a.F();this.wn=NaN;a=new c.ga(0);a.xb(10);this.xp=c.ga.Wc(h,-1);this.gu=c.ga.Wc(h,-1);null!=this.Hi?this.Hi.clear(!1):this.Hi=new c.ga(0);this.Hi.xb(10);this.Za.clear();
this.Za.Hn(new d(this));b=0;for(h*=2;0<this.jr&&b<h;b++)if(e=this.vh.get(b),e=this.wh.get(e),0==(e&1)){e>>=1;f=this.$e.read(2*e+1);if(f!=this.wn&&0!=a.size){if(!this.xr(a))return 0;null!=a&&a.clear(!1)}a.add(e);this.wn=f}return 0<this.jr&&!this.xr(a)?0:this.pk?0==this.Kd.xh&&this.zB()?2:0:0==this.Kd.xh?2:1};e.prototype.QE=function(a){if(1==a.size)return!0;for(var b=0,d=a.size;b<d;b++){var e=a.get(b);this.Hf.Sb(e);var f=this.Hf.oi();this.$a.push(this.Ks(f,e,this.Hf.Qa,!0));this.Hf.ia();f=this.Hf.ia();
this.$a.push(this.Ks(f,e,this.Hf.Qa,!1))}var h=this;this.$a.sort(function(a,b){return h.rM(a,b)});e=this.Kg.Vd;-1==e&&(e=this.Kg.ih(0));this.Kg.$l(this.$a.length);b=0;for(d=this.$a.length;b<d;b++)this.Kg.addElement(e,b);for(var b=!0,g=d=-1;b;){b=!1;f=this.Kg.fc(e);if(-1==f)break;for(var v=this.Kg.bb(f);-1!=v;){d=this.Kg.getData(f);g=this.Kg.getData(v);d=this.$a[d].tn;g=this.$a[g].tn;if(d==g)if(b=!0,this.Kg.Jc(e,f),f=this.Kg.fe(v),v=this.Kg.Jc(e,v),-1==v||-1==f)break;else continue;f=v;v=this.Kg.bb(f)}}b=
this.Kg.uq(e);this.Kg.BB(e);if(0<b)return this.Kd=new c.wd(5,d,g),!1;b=0;for(d=a.size;b<d;b++)this.my(this.$a[b]);this.$a.length=0;return!0};e.prototype.xr=function(a){for(var b=0,d=a.size;b<d;b++){var e=a.get(b),f=this.xp.read(e);if(-1!=f){var h=this.Za.da(f);this.Hi.add(h);this.Za.jd(f,-1);this.my(this.$a[h]);this.$a[h]=null;this.xp.write(e,-1)}f=this.gu.read(e);-1!=f&&(h=this.Za.da(f),this.Hi.add(h),this.Za.jd(f,-1),this.my(this.$a[h]),this.$a[h]=null,this.gu.write(e,-1))}b=0;for(d=a.size;b<d;b++){e=
a.get(b);this.Hf.Sb(e);f=this.Hf.oi();if(f.ja>f.ha){var g=this.Hf.Jb(),v=this.Ks(f,e,this.Hf.Qa,!0);0<this.Hi.size?(h=this.Hi.tc(),this.Hi.af(),this.$a[h]=v):(h=this.$a.length,this.$a.push(v));f=this.Za.addElement(h,-1);-1==this.xp.read(g)?this.xp.write(g,f):this.gu.write(g,f);0==(this.gn.read(this.Hf.Qa)&3)&&this.Ll.add(f)}this.Hf.ia();f=this.Hf.ia();f.ja<f.ha&&(g=this.Hf.Bm(),v=this.Ks(f,e,this.Hf.Qa,!1),0<this.Hi.size?(h=this.Hi.tc(),this.Hi.af(),this.$a[h]=v):(h=this.$a.length,this.$a.push(v)),
f=this.Za.addElement(h,-1),-1==this.xp.read(g)?this.xp.write(g,f):this.gu.write(g,f),0==(this.gn.read(this.Hf.Qa)&3)&&this.Ll.add(f))}b=0;for(d=this.Ll.size;b<d&&0<this.jr;b++)if(f=this.Ll.get(b),0==(this.gn.read(this.$a[this.Za.da(f)].Gx)&3)){a=-1;for(var e=this.Za.fe(f),p=f,v=null,h=-1,t=0;-1!=e;){h=this.Za.da(e);v=this.$a[h];h=v.Gx;t=this.gn.read(h);if(0!=(t&3))break;p=e;e=this.Za.fe(e)}-1==e?(g=1,e=p):(a=1==(t&3)?h:this.Hx.read(h),g=0!=v.IC()?0:1,e=this.Za.bb(e));do{h=this.Za.da(e);v=this.$a[h];
h=v.Gx;p=this.gn.read(h);if(0==(p&3)){if(g!=v.IC())return this.Kd=new c.wd(6,h,-1),!1;t=0==g||v.sl()?2:1;p=p&252|t;this.gn.write(h,t);if(2==t&&0==this.Kd.xh&&this.Hx.read(h)!=a&&(this.Kd=new c.wd(7,h,-1),this.pk))return!1;this.jr--;if(0==this.jr)return!0}1==(p&3)&&(a=h);p=e;e=this.Za.bb(e);g=0!=g?0:1}while(p!=f)}null!=this.Ll?this.Ll.clear(!1):this.Ll=new c.ga(0);return!0};e.prototype.Ks=function(a,b,d,e){if(322==a.D())a=this.OL(a);else throw c.g.wa();a.tn=b;a.Gx=d;a.gp=0;a.jS(e);return a};e.prototype.OL=
function(a){var b;0<this.dn.length?(b=this.dn[this.dn.length-1],this.dn.length=this.dn.length-1,a.copyTo(b.Yd)):(b=new p,b.Yd=c.eA.Yj(a));return b};e.prototype.my=function(a){322==a.Yd.D()&&this.dn.push(a)};e.prototype.gQ=function(){for(var a=this.U.F(),b=new c.ga(0),d=0;d<a;d++)b.add(d);var e=this;b.xd(0,a,function(a,b){return e.Hs(a,b)});for(d=1;d<a;d++)if(0==this.Hs(b.get(d-1),b.get(d)))return this.Kd=new c.wd(3,b.get(d-1),b.get(d)),0;return 2};e.prototype.PQ=function(){return this.xB()?this.wB(!0)?
2:0:0};e.prototype.NQ=function(){return this.Yw()};e.prototype.hQ=function(){for(var a=this.U.F(),b=new c.ga(0),d=0;d<a;d++)b.add(d);var e=this;b.xd(0,a,function(a,b){return e.tL(a,b)});var f=Array(a);c.I.Os(f,!1);f[b.get(0)]=!0;for(d=1;d<a;d++){var h=b.get(d-1),g=b.get(d);0==this.Hs(h,g)?f[g]=!1:f[g]=!0}for(var b=this.U.Pa(),h=this.U,g=0,v=1,d=0;d<a;d++)f[d]?v=d+1:(g<v&&b.Pd(h,g,v),g=d+1);g<v&&b.Pd(h,g,v);b.hg(2,this.pn);return b};e.prototype.QQ=function(){var a=this.U,b=a.Ca(),d=a.Ca(),e=this.U.Pa(),
f=this.U,h=a.hasAttribute(1),g=h?c.Ia.qB(this.rg,a,!0):0,v=new c.ga(0),p=new c.ga(0);v.xb(c.I.truncate(a.F()/2+1));for(p.xb(c.I.truncate(a.F()/2+1));b.kb();)if(d.kb(),!(2>a.Ha(b.Qa))){d.BR();for(var t,F,D=!0;b.La();){var y=b.ia(),z=d.oi();if(b.Jb()>d.Jb())break;D&&(v.add(b.Jb()),p.add(d.Bm()),D=!1);F=v.tc();var A=b.Bm();if(1<A-F){var B=new c.b;B.pc(a.Fa(F),a.Fa(A));t=B.length()}else t=y.Zb();F=p.tc();A=d.Jb();1<A-F?(B=new c.b,B.pc(a.Fa(F),a.Fa(A)),F=B.length()):F=z.Zb();t>this.pn?v.add(b.Bm()):h&&
(t=a.kd(1,v.tc(),0),y=y.Vs(1,0),Math.abs(y-t)>g&&v.add(b.Bm()));F>this.pn?p.add(d.Jb()):h&&(t=a.kd(1,p.tc(),0),y=z.Vs(1,0),Math.abs(y-t)>g&&p.add(d.Jb()))}v.tc()<p.tc()?v.size>p.size?v.af():p.af():(v.tc()!=p.tc()&&p.af(),p.af());if(2<=p.size+v.size){D=new c.Va;z=0;for(y=v.size;z<y;z++)f.Rd(v.get(z),D),0==z?e.df(D):e.lineTo(D);for(z=p.size-1;0<z;z--)f.Rd(p.get(z),D),e.lineTo(D);f.vc(b.Qa)?e.qo():0<p.size&&(f.Rd(p.get(0),D),e.lineTo(D))}null!=v&&v.clear(!1);null!=p&&p.clear(!1)}e.hg(2,this.pn);return e};
e.prototype.OQ=function(){return this.zS()};e.prototype.zS=function(){if(1736==this.U.D()&&1==this.U.Cm())return c.Of.Pj(this.U,this.pn,!0,!1,this.ne);this.Zh=new c.ed;this.Zh.Eb(this.U);0!=this.Zh.pd&&(1!=this.yx&&c.aj.$(this.Zh,this.pn,this.ne,!0),1736==this.U.D()&&c.mm.$(this.Zh,this.Zh.Yc,this.yx,!1,this.ne));this.U=this.Zh.hf(this.Zh.Yc);1736==this.U.D()&&(this.U.hl(),this.U.Op(0));this.U.hg(2,this.pn);return this.U};e.$b=function(a,b,d){if(a.s())return 1;var f=a.D();if(33==f)return 1;if(197==
f)return d=new c.i,a.o(d),d.lg(c.Ia.Bg(b,a,!1))?0:1;if(c.T.Lc(f))throw c.g.wa();if(!c.T.Th(f))throw c.g.wa();var f=c.Ia.Bg(b,a,!1),g=a.qj(f);d=d?-1:g;if(-1!=d)return d;1==d&&(f=0);d=(new e(a,b,d,0,!1)).Yw();a.hg(d,f);return d};e.Qo=function(a,b,d,f,g){null!=f&&(f.xh=0,f.Fk=-1,f.Gk=-1);if(a.s())return 1;var n=a.D();if(33==n)return 1;var u=c.Ia.Bg(b,a,!1);if(197==n)return b=new c.i,a.o(b),b.lg(u)?(null!=f&&(f.xh=2,f.Fk=-1,f.Gk=-1),0):1;if(c.T.Lc(n))return u=new c.Xa(a.description),u.Bc(a,!0),e.Qo(u,
b,d,f,g);g=a.qj(u);d=d?-1:g;if(-1!=d)return d;b=new e(a,b,d,0,!1);if(550==n)d=b.gQ();else if(1607==n)d=b.PQ();else if(1736==n)d=b.NQ();else throw c.g.wa();a.hg(d,u);null!=f&&0==d&&f.$p(b.Kd);return d};e.ob=function(a,b,d,f,g){null!=f&&(f.xh=0,f.Fk=-1,f.Gk=-1);if(a.s())return 1;var n=a.D();if(33==n)return 1;var u=c.Ia.Bg(b,a,!1);if(197==n)return b=new c.i,a.o(b),b.lg(u)?(null!=f&&(f.xh=2,f.Fk=-1,f.Gk=-1),0):1;if(c.T.Lc(n))return n=new c.Xa(a.description),n.Bc(a,!0),e.Qo(n,b,d,f,g);a=new e(a,b,-1,0,
!0);if(550==n||1607==n||1736==n)b=a.Yw();else throw c.g.wa();null!=f&&f.$p(a.Kd);return b};e.$F=function(a,b,d,f){if(a.s())return a;var g=a.D();if(33==g)return a;var n=c.Ia.Bg(b,a,!1);if(197==g)return b=new c.i,a.o(b),b.lg(n)?a.Pa():a;if(c.T.Lc(g))return g=new c.Xa(a.description),g.Bc(a,!0),e.$F(g,b,d,f);f=a.qj(n);d=d?-1:f;if(2==d)return a;a=new e(a,b,d,0,!1);if(550==g)a=a.hQ();else if(1607==g)a=a.QQ();else if(1736==g)a=a.OQ();else throw c.g.wa();return a};e.Ry=function(a,b,d,f){if(a.s())return a;
var g=a.D();if(33==g)return a;var n=c.Ia.Bg(b,a,!1);if(197==g)return b=new c.i,a.o(b),b.lg(n)?a.Pa():a;if(c.T.Lc(g))return n=new c.Xa(a.description),n.Bc(a,!0),e.Ry(n,b,d,f);if(!c.T.Th(g))throw c.g.ra("OGC simplify is not implemented for this geometry type "+g);return c.Of.Ry(a,n,!1,f)};e.prototype.jj=function(a,b,d){if(a==b)return 0;a=this.wh.get(a);var e=this.wh.get(b);b=a>>1;var f=e>>1,h=new c.b,g=new c.b;this.$e.dc(2*b,h);h.y+=0!=(a&1)?this.Ri:-this.Ri;this.$e.dc(2*f,g);g.y+=0!=(e&1)?this.Ri:
-this.Ri;a=h.compare(g);return 0==a&&d?(d=this.Bk.get(b)-this.Bk.get(f),0>d?-1:0<d?1:0):a};e.prototype.Hs=function(a,b){if(a==b)return 0;var d=this.U,e=d.Fa(a),f=d.Fa(b);if(e.x<f.x)return-1;if(e.x>f.x)return 1;if(e.y<f.y)return-1;if(e.y>f.y)return 1;for(e=1;e<this.yP;e++)for(var f=this.PD.Hd(e),h=c.pa.Wa(f),g=0;g<h;g++){var v=d.kd(f,a,g),p=d.kd(f,b,g);if(v<p)return-1;if(v>p)return 1}return 0};e.prototype.tL=function(a,b){var d=this.Hs(a,b);return 0==d?a<b?-1:1:d};e.prototype.rM=function(a,b){if(a===
b)return 0;var d=a.Yd.Pf(a.sl()?1:0);a.sl()&&d.Ap();var e=b.Yd.Pf(b.sl()?1:0);b.sl()&&e.Ap();var c=d.os(),f=e.os();return f==c?(c=d.Ai(e),Math.abs(c)<=8.881784197001252E-16*(Math.abs(e.x*d.y)+Math.abs(e.y*d.x))&&(c--,c++),0>c?1:0<c?-1:0):c<f?-1:1};return e}();c.cv=e})(t||(t={}));(function(c){var p=function(g){function b(){g.apply(this,arguments)}M(b,g);b.prototype.D=function(){return 30};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.prototype.$=function(a,b,f,e){return a instanceof c.T?
(a=new c.Oc(a),b=new c.Oc(b),this.$(a,b,f,e).next()):new c.gI(a,b,f,e)};b.On=function(a,d,f,e){var h=a.fb(),l=d.fb();if(a.s()&&d.s())return h>l?a:d;if(a.s())return d;if(d.s())return a;var g=new c.i,m=new c.i,r=new c.i;a.o(g);d.o(m);r.K(g);r.Db(m);g=c.Ia.zd(f,r,!1);m=a.D();r=d.D();return 33==m&&33==r?b.qM(a,d,g):m!=r?0<h||0<l?h>l?a:d:550==m?b.nA(a,d,g):b.nA(d,a,g):c.Of.On(a,d,f,e)};b.qM=function(a,b,f){f=f*Math.sqrt(2)*1.00001;f*=f;var e=a.w(),h=b.w(),l=new c.pe(a.description);c.b.Yb(e,h)>f&&(l.add(a),
l.add(b));return l};b.nA=function(a,b,f){var e=a.mc(0),h=a.F(),l=b.w(),g=a.Pa();f=f*Math.sqrt(2)*1.00001;var m=new c.i;a.o(m);m.P(f,f);if(m.contains(l)){f*=f;for(var m=!1,r=[],q=0;q<h;q++)r[q]=!1;for(q=0;q<h;q++){var n=e.read(2*q),u=e.read(2*q+1),n=n-l.x,u=u-l.y;n*n+u*u<=f&&(m=!0,r[q]=!0)}if(m)for(q=0;q<h;q++)r[q]||g.Pd(a,q,q+1);else g.Pd(a,0,h),g.add(b)}else g.Pd(a,0,h),g.add(b);return g};b.V=null;return b}(c.Me);c.dv=p})(t||(t={}));(function(c){var p=function(){function g(b,a,d,c){this.Eq=null==
a;this.ua=-1;this.me=b;this.cg=d;this.SP=a.next();this.Xb=c}g.prototype.next=function(){if(this.Eq)return null;var b;return null!=(b=this.me.next())?(this.ua=this.me.ya(),c.dv.On(b,this.SP,this.cg,this.Xb)):null};g.prototype.ya=function(){return this.ua};return g}();c.gI=p})(t||(t={}));(function(c){var p=function(){function a(){}a.prototype.it=function(){this.iw=null;this.Uu=-1;this.vG=!1};return a}(),g=function(){function a(){this.iq=0;this.Ci=[]}a.prototype.SJ=function(a){this.iq+=a.Uu;this.Ci.push(a)};
a.prototype.RQ=function(){this.iq-=this.Ci[this.Ci.length-1].Uu;this.Ci.length=this.Ci.length-1};a.prototype.Dv=function(){return this.Ci[this.Ci.length-1]};a.prototype.lc=function(a){return a===this};return a}(),b=function(){function a(a,b,e){this.ua=-1;this.Ec=!1;this.ZD=[!1,!1,!1,!1];this.cp=[0,0,0,0];this.ox=!1;this.Fj=-1;this.Ro=0;this.Tm=-1;this.rn=[];this.me=a;this.cg=b;this.Xb=e}a.$b=function(a){var b=[],e;for(e in a)b.push(Number(e));b.sort(function(a,b){return a-b});return b};a.prototype.RC=
function(b){var f=this.rn[b],e=a.$b(f)[0],h=f[e],l=h.Dv().iw,h=h.Dv().vG;delete f[e];h&&(l=c.$r.local().$(l,this.cg,!1,this.Xb),0==b&&33==l.D()&&(b=new c.pe(l.description),l.s()||b.add(l),l=b));return l};a.prototype.next=function(){if(this.Ec&&this.Tm==this.Fj)return null;for(;!this.HS(););if(-1==this.Fj)return null;if(this.ox){for(this.Tm++;;){if(this.Tm>this.Fj||0>this.Tm)throw c.g.wa();if(this.ZD[this.Tm])break}this.ua++;return this.RC(this.Tm)}this.ua=0;this.Tm=this.Fj;return this.RC(this.Fj)};
a.prototype.ya=function(){return this.ua};a.prototype.HS=function(){if(this.Ec)return!0;var a=null;null!=this.me&&(a=this.me.next(),null==a&&(this.Ec=!0,this.me=null));if(null!=a){var b=a.fb();this.ZD[b]=!0;b>=this.Fj&&!this.ox&&(this.RA(b,!1,a),b>this.Fj&&!this.ox&&this.xR(b))}if(0<this.Ro)for(b=0;b<=this.Fj;b++)for(;1<this.cp[b];)if(a=this.iL(b),0!=a.length)a=c.Of.nM(a,this.cg,this.Xb),this.RA(b,!0,a);else break;return this.Ec};a.prototype.iL=function(b){for(var c=[],e=[],h=this.rn[b],l=a.$b(h),
g=0;g<l.length;g++){var m=l[g],r=h[m];if(this.Ec||1E4<r.iq&&1<r.Ci.length){this.cp[b]-=r.Ci.length;for(this.Ro-=r.Ci.length;0<r.Ci.length;)c.push(r.Dv().iw),r.RQ();e.push(m)}}for(g=0;g<e.length;g++)delete h[e[g]];return c};a.prototype.xR=function(a){for(var b=0;b<a;b++)this.rn[b]=[],this.Ro-=this.cp[b],this.cp[b]=0};a.prototype.RA=function(b,c,e){var h=new p;h.it();h.iw=e;e=a.Zg(e);h.Uu=e;e=a.Wf(e);if(b+1>this.rn.length)for(var l=0,k=Math.max(2,b+1);l<k;l++)this.rn.push([]);l=this.rn[b][e];void 0===
l&&(l=new g,this.rn[b][e]=l);h.vG=c;l.SJ(h);this.cp[b]++;this.Ro++;this.Fj=Math.max(this.Fj,b)};a.Wf=function(a){return 0<a?c.I.truncate(Math.log(a)/Math.log(4)+.5):0};a.Zg=function(a){var b=a.D();if(c.T.Th(b))return a.F();if(33==b)return 1;if(197==b)return 4;if(c.T.Lc(b))return 2;throw c.g.wa();};return a}();c.iI=b})(t||(t={}));(function(c){var p=function(g){function b(){g.apply(this,arguments)}M(b,g);b.prototype.D=function(){return 1};b.prototype.$=function(a,b,f,e){return void 0===e?new c.iI(a,
b,f):this.wM(a,b,f,e)};b.prototype.wM=function(a,b,f,e){a=new c.Oc([a,b]);return this.$(a,f,e).next()};b.local=function(){null===b.V&&(b.V=new b);return b.V};b.V=null;return b}(c.Me);c.wi=p})(t||(t={}));(function(c){var p;(function(c){c[c.nextPath=0]="nextPath";c[c.nextSegment=1]="nextSegment";c[c.iterate=2]="iterate"})(p||(p={}));p=function(){function g(b,a,d,f){this.cr=new c.i;this.NP=b;this.OP=a;this.Vo=f;this.hn=-1;this.qk=!1;var e=b.pb;null!=e&&(e=f?e.nn:e.Ab,null!=e&&(this.Ec=!1,this.ka=d,this.Ab=
e,this.$t=this.Ab.Re(),this.Wo=this.qk=!0,this.Hb=0,f?this.hn=a.ea():this.$c=a.Ca()));this.qk||(e=a.pb,null!=e&&(e=f?e.nn:e.Ab,null!=e&&(this.Ec=!1,this.ka=d,this.Ab=e,this.$t=this.Ab.Re(),this.qk=!0,this.Wo=!1,this.Hb=0,f?this.hn=b.ea():this.$c=b.Ca())));this.qk||(this.sh=f?c.Ia.CN(b,a,d,1<=b.qj(0),1<=a.qj(0)):c.Ia.BN(b,a,d))}g.prototype.next=function(){if(this.qk){if(this.Ec)return!1;for(var b=!0;b;)switch(this.Hb){case 0:b=this.pQ();break;case 1:b=this.qQ();break;case 2:b=this.$w();break;default:throw c.g.ra("internal error");
}return this.Ec?!1:!0}return null==this.sh?!1:this.sh.next()};g.prototype.jk=function(){return this.qk?this.Wo?this.Ab.da(this.Qq):this.Vo?this.hn:this.$c.Jb():this.sh.jk(this.sh.Ff)};g.prototype.ek=function(){return this.qk?this.Wo?this.Vo?this.hn:this.$c.Jb():this.Ab.da(this.Qq):this.sh.ek(this.sh.mf)};g.prototype.Fw=function(){if(!this.Vo)throw c.g.ra("internal error");return this.qk?this.Wo?this.Ab.rC(this.Qq):this.cr:this.sh.Fw(this.sh.Ff)};g.prototype.jw=function(){if(!this.Vo)throw c.g.ra("internal error");
return this.qk?this.Wo?this.cr:this.Ab.rC(this.Qq):this.sh.jw(this.sh.mf)};g.prototype.pQ=function(){if(!this.Vo){if(!this.$c.kb())return this.Ec=!0,!1;this.Hb=1;return!0}if(-1==--this.hn)return this.Ec=!0,!1;this.Wo?this.OP.Ti(this.hn,this.cr):this.NP.Ti(this.hn,this.cr);this.$t.Bh(this.cr,this.ka);this.Hb=2;return!0};g.prototype.qQ=function(){if(!this.$c.La())return this.Hb=0,!0;var b=this.$c.ia();this.$t.Fn(b,this.ka);this.Hb=2;return!0};g.prototype.$w=function(){this.Qq=this.$t.next();return-1==
this.Qq?(this.Hb=this.Vo?0:1,!0):!1};return g}();c.cl=p})(t||(t={}));(function(c){c=c.jI||(c.jI={});c[c.enumClosed=1]="enumClosed";c[c.enumHasNonlinearSegments=2]="enumHasNonlinearSegments";c[c.enumOGCStartPolygon=4]="enumOGCStartPolygon";c[c.enumCalcMask=4]="enumCalcMask"})(t||(t={}));(function(c){var p=function(){function g(){}g.Fb=function(b,a,d,f,e,h,l,k,m){var r=[0,0,0],q=[0,0,0],n=[0,0,0],u=[0,0,0,0],v=new c.ca(0),p=new c.ca(0),t=new c.ca(0);if(null!=l||null!=k||null!=m)if(c.j.Hh(a))c.yg.Fb(b,
d,f,e,h,l,k,m);else{e=c.u.W(e);d=c.u.W(d);var F=c.u.W(e-d);if(c.j.S(f,h)&&(c.j.S(d,e)||c.j.S(c.j.H(f),1.570796326794897)))null!=l&&(l.l=0),null!=k&&(k.l=0),null!=m&&(m.l=0);else{if(c.j.S(f,-h)){if(c.j.S(c.j.H(f),1.570796326794897)){null!=l&&(l.l=2*c.u.gg(b,a));null!=k&&(k.l=0<f?c.u.W(3.141592653589793-c.u.W(e)):c.u.W(e));null!=m&&(m.l=0<f?c.u.W(e):c.u.W(3.141592653589793-c.u.W(e)));return}c.j.S(c.j.H(F),3.141592653589793)&&(null!=l&&(l.l=2*c.u.gg(b,a)),null!=k&&(k.l=0),null!=m&&(m.l=0))}else{if(c.j.S(c.j.H(f),
1.570796326794897)||c.j.S(c.j.H(h),1.570796326794897)){c.Wj.Fb(b,a,d,f,e,h,l,k,m);return}if(c.j.S(d,e)||c.j.S(c.j.H(F),3.141592653589793)){c.Wj.Fb(b,a,d,f,e,h,l,k,m);return}if(c.j.Tc(f)){c.Wj.Fb(b,a,d,f,e,h,l,k,m);return}}var D=Math.sqrt(1-a);e=c.u.W(e-d);d=0;c.u.wm(a,f,d,v,p,t);r[0]=v.l;r[1]=p.l;r[2]=t.l;c.u.wm(a,h,e,v,p,t);q[0]=v.l;q[1]=p.l;q[2]=t.l;n[0]=0;n[1]=0;n[2]=-1*a*c.u.n(1,a,f)*Math.sin(f);0>e?c.u.Dp(n,q,r,u,0):c.u.Dp(n,r,q,u,0);for(var p=[0,0,0],t=[0,0,0],y=[0,0,0],r=[0,0,0],v=[0,0,0],
z=Math.acos(u[2]/1),A=1-a,B=Math.tan(z),C=1+B*B/A,E=2*n[2]*B/A,B=Math.sqrt(E*E-4*C*(n[2]*n[2]/A-1)),C=2*C,A=(-E+B)/C,E=(-E-B)/C,B=Math.tan(z),C=B*A+n[2],z=(A+E)/2,n=(C+(B*E+n[2]))/2,B=c.u.Sn(A-z,C-n),A=n/D*1.570796326794897,E=0;100>E;E++){C=c.u.Tk(a,A);C=C*C/Math.cos(A)*(Math.sin(A)-n*C/(1*(1-a)));if(c.j.Tc(C))break;A-=C}var n=c.u.n(1,a,A)*Math.cos(A),n=Math.sqrt((n-z)*(n+z)),B=1-B/n,B=B*(2-B),C=c.u.jm(p),z=c.u.jm(t),A=c.u.jm(y),G=c.u.Pr(y,p),E=c.u.Pr(y,t);c.u.Tu(y,p,r);c.u.Tu(y,t,v);p=Math.acos(G/
(A*C));t=Math.acos(E/(A*z));t*=c.j.nb(1,c.u.Pr(r,v));if(1.570796326794897<=c.j.H(p)&&1.570796326794897<=c.j.H(t)||3.141592653589793<c.j.H(p-t))p=(3.141592653589793-c.j.H(p))*c.j.nb(1,p),t=(3.141592653589793-c.j.H(t))*c.j.nb(1,t);r=c.u.Si(B,t);v=c.u.q(n,B,c.u.Si(B,p));r=c.u.q(n,B,r);r=c.j.H(r-v)*b;p=new c.ca(0);t=new c.ca(0);y=u[1]/1;y*=-c.j.nb(1,F);v=Math.acos(y)*c.j.nb(1,F);g.gf(b,a,d,f,r,v,p,t);c.j.S(e,p.l)&&c.j.S(h,t.l)||(B=c.u.Sn(c.u.W(e-p.l),h-t.l),g.gf(b,a,d,f,r,c.u.W(v+3.141592653589793),p,
t),C=c.u.Sn(c.u.W(e-p.l),h-t.l),C<B&&(v=c.u.W(v+3.141592653589793)));p=[0,0,0,0];t=[0,0,0,0];n=[0,0,0];B=[0,0,0];b=[0,0,0];d=[0,0,0];f=[0,0,0];y=[0,0,0];n[0]=0;n[1]=0;n[2]=D;B[0]=0;B[1]=0;B[2]=0;c.u.Dp(B,n,q,p,0);c.j.Tc(h)?(b[0]=q[0],b[1]=q[1],b[2]=1,d[0]=1*Math.cos(e)-1*Math.sin(e),d[1]=1*Math.sin(e)+1*Math.cos(e)):(a=c.u.n(1,a,h)*Math.cos(h),b[0]=0,b[1]=0,q[2]+=Math.tan(1.570796326794897-c.j.H(h))*a*c.j.nb(1,h),d[0]=a*Math.cos(e)-a*Math.sin(e),d[1]=a*Math.sin(e)+a*Math.cos(e));d[2]=q[2];c.u.Dp(q,
d,b,t,1);c.u.Tu(t,p,f);c.u.Tu(t,u,y);y=c.u.Pr(f,y)/(c.u.jm(f)*c.u.jm(y));y*=c.j.nb(1,F);e=Math.acos(y)*-c.j.nb(1,F);0<v&&0<e?e=c.u.W(e+3.141592653589793):0>v&&0>e&&(e=c.u.W(e+3.141592653589793));null!=l&&(l.l=r);null!=k&&(k.l=v);null!=m&&(m.l=e)}}};g.gf=function(b,a,d,f,e,h,l,g){var m=[0,0,0],r=[0,0,0],q=[0,0,0],n=[0,0,0],u=[0,0,0],v=[0,0,0],p=[0,0,0],t=[0,0,0,0],F=new c.ca(0),D=new c.ca(0),y=new c.ca(0),z=new c.ca(0),A=new c.ca(0),B=new c.ca(0);if(null!=l&&null!=g)if(c.j.Hh(a))c.yg.gf(b,d,f,e,h,
l,g);else if(c.j.Tc(e))null!=l&&(l.l=d),null!=g&&(g.l=f);else if(h=c.u.W(h),0>e&&(e=c.j.H(e),h=c.u.W(h+3.141592653589793)),d=c.u.W(d),f=c.u.W(f),1.570796326794897<c.j.H(f)&&(d=c.u.W(d+3.141592653589793),f=c.j.nb(3.141592653589793,f)-f),c.j.S(c.j.H(f),1.570796326794897)||c.j.Tc(f)||c.j.Tc(h)||c.j.S(c.j.H(h),3.141592653589793))c.Wj.gf(b,a,d,f,e,h,l,g);else{var C=Math.sqrt(1-a);b=e/b;c.u.wm(a,f,0,z,A,B);m[0]=z.l;m[1]=A.l;m[2]=A.l;p[0]=0;p[1]=0;p[2]=-1*a*c.u.n(1,a,f)*Math.sin(f);z=c.u.n(1,a,f);A=c.u.W(1.570796326794897-
h);B=Math.sin(A);e=Math.cos(f);f=Math.sin(f);u[0]=z*e-f*B;u[1]=Math.cos(A);u[2]=(1-a)*z*f+e*B;0>h?c.u.Dp(p,u,m,t,0):c.u.Dp(p,m,u,t,0);m=Math.acos(t[2]/1);t=Math.atan2(-t[1],-t[0]);f=1-a;u=Math.tan(m);A=1+u*u/f;z=2*p[2]*u/f;u=Math.sqrt(z*z-4*A*(p[2]*p[2]/f-1));A*=2;f=(-z+u)/A;z=(-z-u)/A;u=Math.tan(m);A=u*f+p[2];m=(f+z)/2;p=(A+(u*z+p[2]))/2;u=c.u.Sn(f-m,A-p);C=p/C*1.570796326794897;for(f=0;100>f;f++){z=c.u.Tk(a,C);z=z*z/Math.cos(C)*(Math.sin(C)-p*z/(1*(1-a)));if(c.j.Tc(z))break;C-=z}C=c.u.n(1,a,C)*
Math.cos(C);C=Math.sqrt((C-m)*(C+m));p=1-u/C;p*=2-p;v=Math.acos(c.u.Pr(v,r)/(c.u.jm(v)*c.u.jm(r)));v*=c.j.nb(1,r[0]);h=(c.u.q(C,p,c.u.Si(p,v))+b*c.j.nb(1,h))/c.u.gg(C,p);h=c.u.W(1.570796326794897*h);h=c.u.xn(p,h);c.u.n(C,p,h);u=c.u.W(t+d);d=Math.cos(u);h=Math.sin(u);q[0]=n[0]*d+n[1]*-h;q[1]=n[0]*h+n[1]*d;q[2]=n[2];c.u.IK(a,q[0],q[1],q[2],y,D,F);null!=l&&(l.l=D.l);null!=g&&(g.l=y.l)}};return g}();c.Zz=p})(t||(t={}));(function(c){var p=function(){function a(b){this.Na=null;this.zr=new c.b;this.Ar=new c.b;
this.a=b}a.prototype.compare=function(a,b,d){this.a.uc(b,this.zr);this.a.uc(a.da(d),this.Ar);return this.zr.compare(this.Ar)};return a}(),g=function(){function a(b){this.nf=new c.b;this.ln=new c.b;this.a=b}a.prototype.ah=function(a){this.nf.J(a)};a.prototype.compare=function(a,b){this.a.uc(a.da(b),this.ln);return this.nf.compare(this.ln)};return a}(),b=function(a){function b(d){a.call(this,d.a,d.ka,!1);this.ab=d}M(b,a);b.prototype.compare=function(a,b,d){if(this.Zf)return-1;var e=this.ab.Cd.Dm(this.ab.kh(b));
a=a.da(d);var c=this.ab.Cd.Dm(this.ab.kh(a));this.Cl=d;return this.IB(b,e,a,c)};return b}(c.gA),a=function(a){function b(d){a.call(this,d.a,d.ka);this.ab=d}M(b,a);b.prototype.compare=function(a,b){if(this.Zf)return-1;var d=this.ab.Cd.Dm(this.ab.kh(a.da(b)));this.Cl=b;return this.JB(b,d)};return b}(c.II),d=function(){function d(){this.zc=this.Ue=this.Zm=this.Cd=this.Jg=this.nd=this.$a=this.a=null;this.ng=!1;this.Wg=this.Kl=this.Ud=this.Kj=this.Lg=this.Gj=this.sf=this.Ld=null;this.Xg=this.qp=this.Tx=
this.ka=0;this.Gt=this.Nm=!1;this.mn=new c.b;this.Ck=new c.b;this.$a=new c.Fc(8);this.nd=new c.Fc(5);this.Jg=new c.Tr;this.Cd=new c.Tr;this.ng=!1;this.Wg=new c.b;this.Wg.ma(0,0);this.ka=0;this.Xg=-1;this.Nm=!1;this.a=null;this.Ue=new c.bj;this.zc=new c.bj;this.Lg=new c.ga(0);this.Kj=new c.fA;this.sf=new c.ga(0);this.Gj=new c.ga(0);this.Zm=new c.Va}d.prototype.IS=function(a,b){var d=new c.Ag;d.Oy();a.Oe(d);this.Np(a);this.Nm=!1;this.ka=b;this.Tx=b*b;var f=this.Xy();a.Oe(d);f||(this.IM(),f||this.Xy());
-1!=this.Xg&&(this.a.bf(this.Xg),this.Xg=-1);this.a=null;return this.Nm};d.prototype.MS=function(a,b){this.Np(a);this.Nm=!1;this.ka=b;this.Tx=b*b;this.ng=!1;this.Xy();this.ng||(this.ng=1==a.wo(b,!0,!1));-1!=this.Xg&&(this.a.bf(this.Xg),this.Xg=-1);this.a=null};d.prototype.Uf=function(a,b){return this.$a.O(a,0+b)};d.prototype.zy=function(a,b,d){this.$a.L(a,0+b,d)};d.prototype.kh=function(a){return this.$a.O(a,2)};d.prototype.WR=function(a,b){this.$a.L(a,2,b)};d.prototype.CC=function(a,b){return this.$a.O(a,
3+b)};d.prototype.Do=function(a){return this.$a.O(a,7)};d.prototype.Nk=function(a,b){this.$a.L(a,7,b)};d.prototype.Fo=function(a,b){return this.$a.O(a,3+this.Co(a,b))};d.prototype.Pp=function(a,b,d){this.$a.L(a,3+this.Co(a,b),d)};d.prototype.$N=function(a,b){return this.$a.O(a,5+this.Co(a,b))};d.prototype.Rp=function(a,b,d){this.$a.L(a,5+this.Co(a,b),d)};d.prototype.qq=function(a){return this.nd.O(a,0)};d.prototype.TR=function(a,b){this.nd.L(a,0,b)};d.prototype.ow=function(a){return this.nd.O(a,4)};
d.prototype.Kp=function(a,b){this.nd.L(a,4,b)};d.prototype.fk=function(a){return this.nd.O(a,1)};d.prototype.dm=function(a,b){this.nd.L(a,1,b)};d.prototype.nw=function(a){return this.nd.O(a,3)};d.prototype.Gr=function(a,b){this.nd.L(a,3,b)};d.prototype.Ul=function(a){var b=this.nd.ae(),d=this.Jg.ih();this.TR(b,d);-1!=a?(this.Jg.addElement(d,a),this.a.lb(a,this.Xg,b),this.Kp(b,this.a.gb(a))):this.Kp(b,-1);return b};d.prototype.$L=function(a){this.nd.Jc(a)};d.prototype.PA=function(a,b){this.Jg.addElement(this.qq(a),
b);this.a.lb(b,this.Xg,a)};d.prototype.qr=function(a){var b=this.$a.ae(),d=this.Cd.ih();this.WR(b,d);-1!=a&&this.Cd.addElement(d,a);return b};d.prototype.QA=function(a,b){this.Cd.addElement(this.kh(a),b)};d.prototype.Ms=function(a){this.$a.Jc(a);a=this.Lg.Ps(a);0<=a&&this.Lg.NE(a)};d.prototype.yi=function(a,b){if(-1==this.Uf(a,0))this.zy(a,0,b);else if(-1==this.Uf(a,1))this.zy(a,1,b);else throw c.g.wa();this.Av(a,b)};d.prototype.Av=function(a,b){var d=this.fk(b);if(-1!=d){var c=this.Fo(d,b);this.Rp(c,
b,a);this.Pp(a,b,c);this.Pp(d,b,a);this.Rp(a,b,d)}else this.Rp(a,b,a),this.Pp(a,b,a),this.dm(b,a)};d.prototype.Co=function(a,b){return this.Uf(a,0)==b?0:1};d.prototype.Tl=function(a,b){var d=this.nw(b);-1!=d&&(this.Ue.jd(d,-1),this.Gr(b,-1));var c,d=this.fk(b);if(-1!=d){var f=c=d,g;do{g=!1;var q=this.Co(c,b),n=this.CC(c,q);if(this.Uf(c,q+1&1)==a){this.Ns(c);this.Cd.Eg(this.kh(c));this.Ms(c);if(c==n){d=-1;break}d==c&&(d=this.fk(b),f=n,g=!0)}c=n}while(c!=f||g);if(-1!=d){do q=this.Co(c,b),n=this.CC(c,
q),this.zy(c,q,a),c=n;while(c!=f);c=this.fk(a);-1!=c?(f=this.Fo(c,a),g=this.Fo(d,a),f==c?(this.dm(a,d),this.Av(c,a),this.dm(a,c)):g==d&&this.Av(d,a),this.Pp(d,a,f),this.Rp(f,a,d),this.Pp(c,a,g),this.Rp(g,a,c)):this.dm(a,d)}}d=this.qq(a);c=this.qq(b);for(f=this.Jg.fc(c);-1!=f;f=this.Jg.bb(f))this.a.lb(this.Jg.da(f),this.Xg,a);this.Jg.Qv(d,c);this.$L(b)};d.prototype.$P=function(a,b){var d=this.Uf(a,0),c=this.Uf(a,1),f=this.Uf(b,0),g=this.Uf(b,1);this.Cd.Qv(this.kh(a),this.kh(b));b==this.fk(d)&&this.dm(d,
a);b==this.fk(c)&&this.dm(c,a);this.Ns(b);this.Ms(b);d==f&&c==g||c==f&&d==g||(this.zm(d,this.mn),this.zm(f,this.Ck),this.mn.ub(this.Ck)?(d!=f&&this.Tl(d,f),c!=g&&this.Tl(c,g)):(c!=f&&this.Tl(c,f),d!=g&&this.Tl(d,g)))};d.prototype.Ns=function(a){var b=this.Uf(a,1);this.RB(a,this.Uf(a,0));this.RB(a,b)};d.prototype.RB=function(a,b){var d=this.Fo(a,b),c=this.$N(a,b),f=this.fk(b);d!=a?(this.Pp(c,b,d),this.Rp(d,b,c),f==a&&this.dm(b,d)):this.dm(b,-1)};d.prototype.XA=function(a,b,d){var c=this.Cd.fc(a),f=
this.Cd.da(c);a=this.te(f);var g=this.te(this.a.X(f));this.a.Sp(f,b,d,!0);for(c=this.Cd.bb(c);-1!=c;c=this.Cd.bb(c)){var f=this.Cd.da(c),q=this.te(f)==a;this.a.Sp(f,b,d,q)}c=b.Ho(d,0).Mb();b=b.Ho(d,b.kk(d)-1).oc();this.wG(a,c);this.wG(g,b)};d.prototype.OB=function(a,b,d){var c=this.kh(a),f=this.Uf(a,0),g=this.Uf(a,1),q=this.qr(-1);this.Lg.add(q);this.Nk(q,-3);this.sf.add(q);this.yi(q,f);a=1;for(b=b.kk(d);a<b;a++)d=this.Ul(-1),this.Gj.add(d),this.sf.add(d),this.yi(q,d),q=this.qr(-1),this.Lg.add(q),
this.Nk(q,-3),this.sf.add(q),this.yi(q,d);this.yi(q,g);for(c=this.Cd.fc(c);-1!=c;c=this.Cd.bb(c))if(g=this.Cd.da(c),this.te(g)==f){a=0;do 0<a&&(q=this.sf.get(a-1),this.PA(q,g),-1==this.ow(q)&&this.Kp(q,this.a.gb(g))),q=this.sf.get(a),a+=2,this.QA(q,g),g=this.a.X(g);while(a<this.sf.size)}else{a=this.sf.size-1;do a<this.sf.size-2&&(q=this.sf.get(a+1),this.PA(q,g),0>this.ow(q)&&this.Kp(q,this.a.gb(g))),q=this.sf.get(a),a-=2,this.QA(q,g),g=this.a.X(g);while(0<=a)}this.sf.clear(!1)};d.prototype.te=function(a){return this.a.Ra(a,
this.Xg)};d.prototype.RE=function(a,b,d){var f=this.Uf(b,0),g=new c.b;this.zm(f,g);var r=new c.b,q=this.Uf(b,1);this.zm(q,r);var n=d.kk(a),u=d.Ho(a,0),v=new c.b;u.gt(v);if(!g.ub(v)){if(!this.ng){var p=g.compare(this.Wg),v=v.compare(this.Wg);0>p*v&&(this.ng=!0)}this.iC(f,this.sf);this.Gj.add(f)}!this.ng&&1<n&&(p=g.compare(r),u=u.oc(),g.compare(u)!=p||u.compare(r)!=p?this.ng=!0:0>u.compare(this.Wg)&&(this.ng=!0));u=d.Ho(a,n-1);a=u.oc();r.ub(a)||(this.ng||(p=r.compare(this.Wg),v=a.compare(this.Wg),0>
p*v&&(this.ng=!0)),this.iC(q,this.sf),this.Gj.add(q));this.sf.add(b);r=0;for(q=this.sf.size;r<q;r++)a=this.sf.get(r),d=this.Do(a),c.Fc.Zw(d)&&(this.zc.jd(d,-1),this.Nk(a,-1)),a!=b&&-3!=this.Do(a)&&(this.Lg.add(a),this.Nk(a,-3));this.sf.clear(!1)};d.prototype.MK=function(a,b){this.Ld.compare(this.zc,this.zc.da(a),b);this.Ld.Zf&&(this.Ld.kq(),this.cC(a,b))};d.prototype.cC=function(a,b){this.Nm=!0;var d=this.zc.da(a),f=this.zc.da(b),g,r;r=this.Cd.Dm(this.kh(d));var q=this.Cd.Dm(this.kh(f));g=this.a.bc(r);
null==g&&(null==this.Ud&&(this.Ud=new c.yb),this.a.Nc(r,this.Ud),g=this.Ud);r=this.a.bc(q);null==r&&(null==this.Kl&&(this.Kl=new c.yb),this.a.Nc(q,this.Kl),r=this.Kl);this.Kj.zn(g);this.Kj.zn(r);this.Kj.Ga(this.ka,!0)&&(this.ng=!0);this.cG(d,f,-1,this.Kj);this.Kj.clear()};d.prototype.UM=function(a,b){this.Nm=!0;var d=this.zc.da(b),f,g=this.Cd.Dm(this.kh(d));f=this.a.bc(g);null==f&&(null==this.Ud&&(this.Ud=new c.yb),this.a.Nc(g,this.Ud),f=this.Ud);g=this.nC(a);this.Kj.zn(f);this.a.Jk(g,this.Zm);this.Kj.Tw(this.ka,
this.Zm,!0);this.cG(d,-1,a,this.Kj);this.Kj.clear()};d.prototype.FO=function(){if(0!=this.Lg.size)for(;0!=this.Lg.size;){if(this.Lg.size>Math.max(100,this.a.pd)){this.Lg.clear(!1);this.ng=!0;break}var a=this.Lg.tc();this.Lg.af();this.Nk(a,-1);-1!=this.VO(a)&&this.EO(a);this.Mm=!1}};d.prototype.EO=function(a){var b;this.Mm?(b=this.zc.us(this.iE,this.fE,a,!0),this.Mm=!1):b=this.zc.OA(a);-1==b?this.$P(this.zc.da(this.zc.qC()),a):(this.Nk(a,b),this.Ld.Zf&&(this.Ld.kq(),this.cC(this.Ld.Cl,b)))};d.prototype.VO=
function(a){var b=this.Uf(a,0);a=this.Uf(a,1);this.zm(b,this.mn);this.zm(a,this.Ck);if(c.b.Yb(this.mn,this.Ck)<=this.Tx)return this.ng=!0,-1;var d=this.mn.compare(this.Wg),f=this.Ck.compare(this.Wg);return 0>=d&&0<f?a:0>=f&&0<d?b:-1};d.prototype.GM=function(){var a=new c.ga(0);a.xb(this.a.pd);for(var b=this.a.Fp(),d=b.next();-1!=d;d=b.next())-1!=this.a.Ra(d,this.Xg)&&a.add(d);this.a.Lu(a,a.size);this.HM(a)};d.prototype.HM=function(a){this.Ue.clear();this.Ue.ce(a.size);this.Ue.Hn(new p(this.a));var b=
new c.b;b.Dh();for(var d=-1,f=new c.b,g=0,r=a.size;g<r;g++){var q=a.get(g);this.a.uc(q,f);f.ub(b)?(q=this.a.Ra(q,this.Xg),this.Tl(d,q)):(d=this.te(q),this.a.uc(q,b),q=this.Ue.qm(q),this.Gr(d,q))}};d.prototype.IM=function(){var a=new c.ga(0);a.xb(this.a.pd);for(var b=this.Ue.fc(-1);-1!=b;b=this.Ue.bb(b))a.add(this.Ue.da(b));this.Ue.clear();this.a.Lu(a,a.size);for(var b=0,d=a.size;b<d;b++){var f=a.get(b),g=this.te(f),f=this.Ue.qm(f);this.Gr(g,f)}};d.prototype.iC=function(a,b){var d=this.fk(a);if(-1!=
d){var f=d;do c.Fc.Zw(this.Do(f))&&b.add(f),f=this.Fo(f,a);while(f!=d)}};d.prototype.wG=function(a,b){for(var d=this.Jg.fc(this.qq(a));-1!=d;d=this.Jg.bb(d))this.a.Yi(this.Jg.da(d),b)};d.prototype.cG=function(a,b,d,c){this.Ns(a);-1!=b&&this.Ns(b);this.RE(0,a,c);-1!=b&&this.RE(1,b,c);-1!=d&&(c.nf.w(this.mn),this.zm(d,this.Ck),this.Ck.ub(this.mn)||this.Gj.add(d));d=0;for(var f=this.Gj.size;d<f;d++){var g=this.Gj.get(d),q=this.nw(g);-1!=q&&(this.Ue.jd(q,-1),this.Gr(g,-1))}d=this.kh(a);f=-1!=b?this.kh(b):
-1;this.XA(d,c,0);-1!=b&&this.XA(f,c,1);this.OB(a,c,0);-1!=b&&this.OB(b,c,1);this.Cd.Eg(d);this.Ms(a);-1!=b&&(this.Cd.Eg(f),this.Ms(b));d=0;for(f=this.Gj.size;d<f;d++)g=this.Gj.get(d),g==this.qp&&(this.Gt=!0),q=this.nw(g),-1==q&&(q=this.Ue.OA(this.nC(g)),-1==q?(a=this.te(this.Ue.da(this.Ue.qC())),this.Tl(a,g)):this.Gr(g,q));this.Gj.clear(!1)};d.prototype.zm=function(a,b){this.a.PC(this.ow(a),b)};d.prototype.nC=function(a){return this.Jg.Dm(this.qq(a))};d.prototype.Xy=function(){this.Gt=!1;this.qp=
-1;null==this.Ld&&(this.zc.Bt=!1,this.Ld=new b(this),this.zc.Qm=this.Ld);var d=new c.ga(0),f=null,l=null,k=0;this.fE=this.iE=-1;this.Mm=!1;for(var m=this.Ue.fc(-1);-1!=m;){k++;this.Mm=!1;var r=this.Ue.da(m);this.qp=this.te(r);this.a.uc(r,this.Wg);this.Ld.UF(this.Wg.y,this.Wg.x);var q,n=this.fk(this.qp);q=-1==n;if(!q){r=n;do{var u=this.Do(r);-1==u?(this.Lg.add(r),this.Nk(r,-3)):-3!=u&&d.add(u);r=this.Fo(r,this.qp)}while(r!=n)}if(0<d.size){this.Mm=1==d.size&&1==this.Lg.size;q=0;for(n=d.size;q<n;q++)r=
this.zc.da(d.get(q)),this.Nk(r,-2);var p=-2,t=-2;q=0;for(n=d.size;q<n;q++){u=d.get(q);if(-2==p){var x=this.zc.fe(u);-1!=x?(r=this.zc.da(x),r=this.Do(r),-2!=r&&(p=x)):p=-1}-2==t&&(u=this.zc.bb(u),-1!=u?(r=this.zc.da(u),r=this.Do(r),-2!=r&&(t=u)):t=-1);if(-2!=p&&-2!=t)break}q=0;for(n=d.size;q<n;q++)u=d.get(q),r=this.zc.da(u),this.zc.jd(u,-1),this.Nk(r,-1);d.clear(!1);this.iE=-1!=p?p:-1;this.fE=-1!=t?t:-1;-1!=p&&-1!=t?this.Mm||this.MK(p,t):-1==p&&-1==t&&(this.Mm=!1)}else q&&(null==f&&(f=new a(this)),
f.ah(this.Wg),this.zc.pF(f),f.Zf&&(f.kq(),this.UM(this.qp,f.Cl)));this.FO();this.Gt?(this.Gt=!1,null==l&&(l=new g(this.a)),l.ah(this.Wg),m=this.Ue.pF(l)):m=this.Ue.bb(m)}return this.Nm};d.prototype.Np=function(a){this.a=a;this.Xg=this.a.se();this.$a.ce(a.pd+32);this.nd.ce(a.pd);this.Jg.Cr(a.pd);this.Jg.$l(a.pd);this.Cd.Cr(a.pd+32);this.Cd.$l(a.pd+32);for(a=this.a.Yc;-1!=a;a=this.a.xe(a))if(c.T.Kc(this.a.Lb(a)))for(n=this.a.Ub(a);-1!=n;n=this.a.ac(n)){var b=this.a.Ha(n),d=this.a.Cb(n),f=this.Ul(d),
g=this.qr(d);this.yi(g,f);u=this.a.X(d);d=0;for(b-=2;d<b;d++){var r=this.a.X(u),q=this.Ul(u);this.yi(g,q);g=this.qr(u);this.yi(g,q);u=r}this.a.vc(n)?(q=this.Ul(u),this.yi(g,q),g=this.qr(u),this.yi(g,q),this.yi(g,f)):(q=this.Ul(u),this.yi(g,q))}else for(var n=this.a.Ub(a);-1!=n;n=this.a.ac(n))for(var u=this.a.Cb(n),f=0,b=this.a.Ha(n);f<b;f++)this.Ul(u),u=this.a.X(u);this.GM()};return d}();c.$z=d})(t||(t={}));(function(c){var p=function(g){function b(a,b,f){g.call(this);if(void 0!==a)if(void 0!==f){this.description=
c.Od.Tf();var e=new c.de;e.K(a,b,f);this.Py(e)}else if(void 0!==b)this.description=c.Od.Tf(),this.hc(a,b);else if(a instanceof c.pa)this.description=a;else if(a instanceof c.b)this.description=c.Od.Tf(),this.hc(a);else throw c.g.N();else this.description=c.Od.Tf()}M(b,g);b.prototype.w=function(a){if(void 0!==a){if(this.sc())throw c.g.ra("This operation should not be performed on an empty geometry.");a.ma(this.fa[0],this.fa[1])}else{if(this.sc())throw c.g.ra("This operation should not be performed on an empty geometry.");
a=new c.b;a.ma(this.fa[0],this.fa[1]);return a}};b.prototype.hc=function(a,b){"number"===typeof a?(this.qc(),null==this.fa&&this.jo(),this.fa[0]=a,this.fa[1]=b):(this.qc(),this.hc(a.x,a.y))};b.prototype.Lw=function(){if(this.sc())throw c.g.ra("This operation should not be performed on an empty geometry.");var a=new c.de;a.x=this.fa[0];a.y=this.fa[1];this.description.TC()?a.z=this.fa[2]:a.z=c.pa.ve(1);return a};b.prototype.Py=function(a){this.qc();var b=this.hasAttribute(1);b||c.pa.kD(1,a.z)||(this.Ne(1),
b=!0);null==this.fa&&this.jo();this.fa[0]=a.x;this.fa[1]=a.y;b&&(this.fa[2]=a.z)};b.prototype.lk=function(){if(this.sc())throw c.g.ra("This operation should not be performed on an empty geometry.");return this.fa[0]};b.prototype.sS=function(a){this.setAttribute(0,0,a)};b.prototype.mk=function(){if(this.sc())throw c.g.ra("This operation should not be performed on an empty geometry.");return this.fa[1]};b.prototype.XF=function(a){this.setAttribute(0,1,a)};b.prototype.mO=function(){return this.kd(1,
0)};b.prototype.tS=function(a){this.setAttribute(1,0,a)};b.prototype.ON=function(){return this.kd(2,0)};b.prototype.dS=function(a){this.setAttribute(2,0,a)};b.prototype.md=function(){return this.kC(3,0)};b.prototype.kd=function(a,b){var f=this.description.zf(a);return 0<=f?this.fa[this.description.ej(f)+b]:c.pa.ve(a)};b.prototype.kC=function(a,b){var f=this.description.zf(a);return 0<=f?this.fa[this.description.ej(f)+b]:c.pa.ve(a)};b.prototype.setAttribute=function(a,b,c){this.qc();var e=this.description.zf(a);
0>e&&(this.Ne(a),e=this.description.zf(a));null==this.fa&&this.jo();this.fa[this.description.ej(e)+b]=c};b.prototype.D=function(){return 33};b.prototype.fb=function(){return 0};b.prototype.Ja=function(){this.qc();null!=this.fa&&(this.fa[0]=NaN,this.fa[1]=NaN)};b.prototype.nm=function(a){if(null!=this.fa){for(var b=c.Od.hu(a,this.description),f=[],e=0,h=0,g=a.Aa;h<g;h++){var k=a.Hd(h),m=c.pa.Wa(k);if(-1==b[h])for(var r=c.pa.ve(k),k=0;k<m;k++)f[e]=r,e++;else for(r=this.description.ej(b[h]),k=0;k<m;k++)f[e]=
this.fa[r],e++,r++}this.fa=f}this.description=a};b.prototype.jo=function(){this.fF(this.description.ke.length);b.ob(this.description.ke,this.fa,this.description.ke.length);this.fa[0]=NaN;this.fa[1]=NaN};b.prototype.Oe=function(a){if(a instanceof c.Ag){if(!this.sc()){var b=this.w();a.Zi(b,b);this.hc(b)}}else this.sc()||(this.Ne(1),b=this.Lw(),this.Py(a.Qn(b)))};b.prototype.copyTo=function(a){if(33!=a.D())throw c.g.N();a.qc();null==this.fa?(a.Ja(),a.fa=null,a.Qf(this.description)):(a.Qf(this.description),
a.fF(this.description.ke.length),b.ob(this.fa,a.fa,this.description.ke.length))};b.prototype.Pa=function(){return new b(this.description)};b.prototype.s=function(){return this.sc()};b.prototype.sc=function(){return null==this.fa||isNaN(this.fa[0])||isNaN(this.fa[1])};b.prototype.Ep=function(a){a.Ja();this.description!=a.description&&a.Qf(this.description);a.Db(this)};b.prototype.o=function(a){this.sc()?a.Ja():(a.v=this.fa[0],a.C=this.fa[1],a.B=this.fa[0],a.G=this.fa[1])};b.prototype.Cn=function(a){if(this.sc())a.Ja();
else{var b=this.Lw();a.v=b.x;a.C=b.y;a.oe=b.z;a.B=b.x;a.G=b.y;a.Nf=b.z}};b.prototype.zh=function(a,b){var f=new c.Nd;if(this.sc())return f.Ja(),f;var e=this.kd(a,b);f.qa=e;f.va=e;return f};b.prototype.fF=function(a){if(null==this.fa)this.fa=c.I.Kh(a);else if(this.fa.length<a){for(var b=this.fa.slice(0),f=this.fa.length;f<a;f++)b[f]=0;this.fa=b}};b.ob=function(a,b,c){if(0<c)for(c=0;c<a.length;c++)b[c]=a[c]};b.prototype.lc=function(a){if(a==this)return!0;if(!(a instanceof b)||this.description!=a.description)return!1;
if(this.sc())return a.sc()?!0:!1;for(var d=0,c=this.description.ke.length;d<c;d++)if(this.fa[d]!=a.fa[d])return!1;return!0};b.prototype.gc=function(){var a=this.description.gc();if(!this.sc())for(var b=0,f=this.description.ke.length;b<f;b++)var e=this.fa[b],e=c.I.truncate(e^e>>>32),a=c.I.jg(e,a);return a};b.prototype.Rf=function(){return null};return b}(c.T);c.Va=p})(t||(t={}));(function(c){var p=function(){function c(b,a,d){void 0!==b&&(this.x=b,this.y=a,this.z=d)}c.Oa=function(b,a,d){var f=new c;
f.x=b;f.y=a;f.z=d;return f};c.prototype.K=function(b,a,d){this.x=b;this.y=a;this.z=d};c.prototype.Ku=function(){this.z=this.y=this.x=0};c.prototype.normalize=function(){var b=this.length();0==b&&(this.x/=b,this.y/=b,this.z/=b)};c.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)};c.prototype.sub=function(b){return new c(this.x-b.x,this.y-b.y,this.z-b.z)};c.prototype.zp=function(b){return new c(this.x*b,this.y*b,this.z*b)};c.prototype.EA=function(){this.x=NaN};
c.prototype.pv=function(){return isNaN(this.x)};return c}();c.de=p})(t||(t={}));(function(c){var p=function(){function g(b,a,d){this.fu=this.Xt=null;this.Gf=a;this.MP=a.y-d;this.LP=a.y+d;this.wp=0;this.ix=b;this.ka=d;this.WP=d*d;this.jx=0!=d;this.wt=!1}g.prototype.result=function(){return 0!=this.wp?1:0};g.prototype.CJ=function(b){b=b.Kb(b.Gd(this.Gf,!1));return c.b.Yb(b,this.Gf)<=this.WP?!0:!1};g.prototype.VB=function(b){if(!this.jx&&(this.ix&&this.Gf.ub(b.Mb())||this.Gf.ub(b.oc())))this.wt=!0;else if(b.ja==
this.Gf.y&&b.ja==b.ha){if(this.ix&&!this.jx){var a=Math.max(b.na,b.la);this.Gf.x>Math.min(b.na,b.la)&&this.Gf.x<a&&(this.wt=!0)}}else{var d=!1,a=Math.max(b.na,b.la);this.Gf.x>a?d=!0:this.Gf.x>=Math.min(b.na,b.la)&&(d=0<b.mt(!0,this.Gf.y,this.fu,null)&&this.fu[0]<=this.Gf.x);if(d){if(this.Gf.y==b.Mb().y){if(this.Gf.y<b.oc().y)return}else if(this.Gf.y==b.oc().y&&this.Gf.y<b.Mb().y)return;this.wp=this.ix?this.wp^1:this.wp+(b.Mb().y>b.oc().y?1:-1)}}};g.prototype.yr=function(b){var a=b.zh(0,1);if(a.qa>
this.LP||a.va<this.MP)return!1;if(this.jx&&this.CJ(b))return!0;if(a.qa>this.Gf.y||a.va<this.Gf.y)return!1;null==this.Xt&&(this.Xt=[null,null,null,null,null]);null==this.fu&&(this.fu=[0,0,0]);a=b.QC(this.Xt);if(0<a)for(b=0;b<a;b++){var d=this.Xt[b].get();this.VB(d);if(this.wt)return!0}else if(this.VB(b),this.wt)return!0;return!1};g.V=function(b,a,d){a=new g(0==b.Cm(),a,d);for(b=b.Ca();b.kb();)for(;b.La();)if(d=b.ia(),a.yr(d))return-1;return a.result()};g.Bd=function(b,a,d,f){var e=new c.i;b.cd(e);
e.P(f,f);var h=new g(0==b.Cm(),d,f);b=b.Ca();var l=new c.i;l.K(e);l.B=d.x+f;l.C=d.y-f;l.G=d.y+f;d=a.xw(l,f);for(f=d.next();-1!=f;f=d.next())if(b.Sb(a.da(f)),b.La()&&(f=b.ia(),h.yr(f)))return-1;return h.result()};g.xl=function(b,a,d){if(b.s())return 0;var f=new c.i;b.cd(f);f.P(d,d);if(!f.contains(a))return 0;f=b.pb;if(null!=f){var e=f.hi;if(null!=e){e=e.Kk(a.x,a.y);if(1==e)return 1;if(0==e)return 0}f=f.Ab;if(null!=f)return g.Bd(b,f,a,d)}return g.V(b,a,d)};g.cP=function(b,a,d,f){if(b.s())return 0;var e=
new c.i;b.cd(e);e.P(f,f);if(!e.contains(a,d))return 0;e=b.pb;if(null!=e&&(e=e.hi,null!=e)){e=e.Kk(a,d);if(1==e)return 1;if(0==e)return 0}return g.V(b,c.b.Oa(a,d),f)};g.bP=function(b,a,d){return a.s()?0:g.xl(b,a.w(),d)};g.sD=function(b,a,d,f,e){var h=new c.i;b.cd(h);h.P(f,f);if(!h.contains(d))return 0;var l=new g(!0,d,f);if(null!=e){var k=new c.i;k.K(h);k.B=d.x+f;k.C=d.y-f;k.G=d.y+f;b=b.Ca();f=e.xw(k,f);for(k=f.next();-1!=k;k=f.next())if(b.Sb(e.da(k),a),b.La()&&b.Qa==a&&(k=b.ia(),l.yr(k)))return-1}else if(b=
b.Ca(),b.vy(a),b.kb())for(;b.La();)if(k=b.ia(),l.yr(k))return-1;return l.result()};g.qD=function(b,a,d){var f=new c.i;b.cd(f);f.P(d,d);if(!f.contains(a))return 0;a=new g(!1,a,d);for(d=b.Ca();d.kb();)if(!(0>b.no(d.Qa))){for(a.wp=0;d.La();)if(f=d.ia(),a.yr(f))return-1;if(0!=a.wp)return 1}return a.result()};g.$i=function(b,a,d,f,e){var h=b.Ca();h.vy(a);if(!h.kb()||!h.La())throw c.g.ra("corrupted geometry");for(a=2;2==a&&h.La();)a=h.ia().Kb(.5),a=g.sD(b,d,a,f,e);if(2==a)throw c.g.ra("internal error");
return 1==a?!0:!1};g.An=function(b,a){var d=b.F();return 16>d?!1:2*d+Math.log(d)/Math.log(2)*1*a<1*d*a};return g}();c.ff=p})(t||(t={}));(function(c){var p=function(c){function b(a){c.call(this,!0,a)}M(b,c);b.prototype.Pa=function(){return new b(this.description)};b.prototype.fb=function(){return 2};b.prototype.D=function(){return 1736};return b}(c.al);c.Ka=p})(t||(t={}));(function(c){(function(c){c[c.PiPOutside=0]="PiPOutside";c[c.PiPInside=1]="PiPInside";c[c.PiPBoundary=2]="PiPBoundary"})(c.oI||
(c.oI={}));var p=function(){function g(){}g.rD=function(b,a,d){b=c.ff.bP(b,a,d);return 0==b?0:1==b?1:2};g.ge=function(b,a,d){b=c.ff.xl(b,a,d);return 0==b?0:1==b?1:2};g.ZG=function(b,a,d,f){b=c.ff.cP(b,a,d,f);return 0==b?0:1==b?1:2};g.XT=function(b,a,d,f){return 0==c.ff.sD(b,a,d,f,null)?0:1};g.qD=function(b,a,d){return 0==c.ff.qD(b,a,d)?0:1};g.tQ=function(b,a,d,f,e){if(a.length<d||e.length<d)throw c.g.N();for(var h=0;h<d;h++)e[h]=g.ge(b,a[h],f)};g.CQ=function(b,a,d,f,e){if(a.length/2<d||e.length<d)throw c.g.N();
for(var h=0;h<d;h++)e[h]=g.ZG(b,a[2*h],a[2*h+1],f)};g.kG=function(b,a,d,f,e){if(1736==b.D())g.tQ(b,a,d,f,e);else if(197==b.D()){var h=new c.i;b.o(h);g.WL(h,a,d,f,e)}else throw c.g.ra("invalid_call");};g.dU=function(b,a,d,f,e){if(1736==b.D())g.CQ(b,a,d,f,e);else if(197==b.D()){var h=new c.i;b.o(h);g.pM(h,a,d,f,e)}else throw c.g.xa();};g.WL=function(b,a,d,f,e){if(a.length<d||e.length<d)throw c.g.N();if(b.s())for(f=0;f<d;f++)e[f]=0;else for(b.P(.5*-f,.5*-f),b.P(.5*f,.5*f),f=0;f<d;f++)b.contains(a[f])?
e[f]=1:b.contains(a[f])?e[f]=2:e[f]=0};g.pM=function(b,a,d,f,e){if(a.length/2<d||e.length<d)throw c.g.N();if(b.s())for(f=0;f<d;f++)e[f]=0;else for(b.P(.5*-f,.5*-f),b.P(.5*f,.5*f),f=0;f<d;f++)b.contains(a[2*f],a[2*f+1])?e[f]=1:b.contains(a[2*f],a[2*f+1])?e[f]=2:e[f]=0};g.oR=function(b,a,d,c,e){for(var h=0;h<d;h++)e[h]=b.Dq(a[h],c)?2:0};g.gR=function(b,a,d,c,e){var h=b.pb,g=null;null!=h&&(g=h.hi);for(var h=d,k=0;k<d;k++)if(e[k]=1,null!=g){var m=a[k];0==g.Kk(m.x,m.y)&&(e[k]=0,h--)}if(0!=h)for(b=b.Ca();b.kb()&&
0!=h;)for(;b.La()&&0!=h;)for(g=b.ia(),k=0;k<d&&0!=h;k++)1==e[k]&&g.Dq(a[k],c)&&(e[k]=2,h--);for(k=0;k<d;k++)1==e[k]&&(e[k]=0)};g.lG=function(b,a,d,f,e){var h=b.D();if(1607==h)g.gR(b,a,d,f,e);else if(c.T.Lc(h))g.oR(b,a,d,f,e);else throw c.g.ra("Invalid call.");};return g}();c.fd=p})(t||(t={}));(function(c){var p=function(c){function b(a,b){2==arguments.length?(c.call(this,!1,a.description),this.df(a),this.lineTo(b)):c.call(this,!1,a)}M(b,c);b.prototype.Pa=function(){return new b(this.description)};
b.prototype.fb=function(){return 1};b.prototype.D=function(){return 1607};return b}(c.al);c.Xa=p})(t||(t={}));(function(c){var p=function(){function c(){}c.oT=function(){};return c}();c.MT=p})(t||(t={}));(function(c){var p=function(){function b(){}b.Rv=function(a){return a*b.wO};b.YF=function(a,d){return b.lP(d-a)};b.oP=function(a){if(-360<=a&&720>a)return 0>a?a+=360:360<=a&&(a-=360),a;a=c.vi.eH(a);0>a&&(a+=360);return a};b.lP=function(a){a=b.oP(a);180<a&&(a-=360);return a};b.BT=.0174532925199433;
b.wO=57.29577951308232;return b}(),g=function(){function b(){}b.po=function(a,b){var f=new c.i;a.o(f);var e=c.Ya.Fm(b),h=new c.i;h.K(e);h.v=f.v;h.B=f.B;h.P(.01*h.ba(),0);e=c.Ia.zd(b,f,!1);return h.contains(f)?a:c.Ed.clip(a,h,e,0)};b.Rw=function(a,d,f,e){if(!c.Ya.Po(d))throw c.g.N();var h=c.Ia.Bg(d,a,!1),g=c.Ya.Fm(d),k=c.Ya.Em(d),m=k.Se().Cj,r=c.Ya.et(k),k=c.Ya.Ss(k),r=r*(2-r),q=new c.Nd;g.vu(q);var n=[[0,0],[0,0]];2==c.gh.Am(d)?(n[0][0]=b.ou(e,q),n[0][1]=g.Us(),c.Ya.su(),g=n[0][0]*m):g=e*m;var u=
new c.ca,p=new c.ed;a=p.Eb(a);for(var t=[0],x=new c.b,F=new c.b,D=new c.b,y=new c.b,z=new c.b,A=new c.b,B=p.Ub(a);-1!=B;B=p.ac(B)){var C=p.Cb(B);p.w(C,D);for(var E=!1,G=C=p.X(C);-1!=G;G=p.X(G)){if(G==C){if(E)break;E=!0}p.w(G,y);if((h<e-D.x&&y.x-e>h||h<e-y.x&&D.x-e>h||h<-y.y&&D.y>h)&&!(Math.abs(D.x-y.x)>=.5*q.aa())&&(2==c.gh.Am(d)?(n[0][0]=b.ou(D.x,q),n[0][1]=D.y,n[1][0]=b.ou(y.x,q),n[1][1]=y.y,c.Ya.$Q(),z.x=n[0][0]*m,z.y=n[0][1]*m,A.x=n[1][0]*m,A.y=n[1][1]*m):(z.x=D.x*m,z.y=D.y*m,A.x=y.x*m,A.y=y.y*
m),A.x=6.283185307179586*(y.x-D.x)/q.aa()+z.x,F.x=g,F.y=b.TG(k,r,z,A,g,f),!isNaN(F.y))){c.zb.Qd(k,r,z.x,z.y,A.x,A.y,u,null,null,f);var H=u.l;c.zb.Qd(k,r,z.x,z.y,F.x,F.y,u,null,null,f);var I=u.l;2==c.gh.Am(d)?(n[0][0]=F.x/m,n[0][1]=F.y/m,c.Ya.rN(),x.y=n[0][1],x.x=e):(x.x=e,x.y=F.y/m);t[0]=0<H?c.I.Jr(I/H,0,1):.5;0!=t[0]&&1!=t[0]&&(H=p.Ua(G),p.Lr(H,t,1),p.hc(p.X(H),x.x,x.y))}D.J(y)}}return p.hf(a)};b.bN=function(a,d,f){if(a.s())return a;var e=c.Ya.FC(d);return b.dC(a,0-180*e,360*e,d,f)};b.TG=function(a,
d,f,e,h,g){if(3.141592653589793<=Math.abs(f.x-e.x)||!b.Jv(f.x,e.x,h))return NaN;var k;f.x>e.x?k=e:(k=f,f=e);e=new c.ca(0);var m=new c.ca(0),r=new c.ca(0);c.zb.Qd(a,d,k.x,k.y,f.x,f.y,m,e,null,g);var q=m.l,n=0,u=1,p=new c.b;for(p.J(k);q*(u-n)>1E-12*a;){var t=.5*(n+u);c.zb.dk(a,d,k.x,k.y,q*t,e.l,m,r,g);p.x=m.l;p.y=r.l;if(p.x==h)break;if(b.Jv(k.x,p.x,h))u=t;else if(b.Jv(f.x,p.x,h))n=t;else return NaN}return p.y};b.Jv=function(a,b,c){a=p.Rv(a);b=p.YF(a,p.Rv(b));c=p.YF(a,p.Rv(c));return 0==c||0<b&&0<c&&
c<=b||0>b&&0>c&&c>=b?!0:!1};b.ou=function(a,b){var c=b.va-b.qa;return b.Sy(a-Math.floor((a-b.qa)/c)*c)};b.RT=function(a,b,f,e){var h=new c.Nd;h.K(b,f);f=e.aa();a=Math.floor((a-b)/f)*f+a;for(h=h.Af();Math.abs(a-h)>Math.abs(a+f-h);)a+=f;return a};b.NT=function(a,b,f,e,h){var g;f.y>e.y?g=e:(g=f,f=e);e=new c.Nd;e.K(g.y,f.y);if(!e.contains(0)||3.141592653589793<=Math.abs(g.x-f.x))return NaN;if(g.x==f.x)return g.x;var k=new c.ca(0),m=new c.ca(0),r=new c.ca(0);c.zb.Qd(a,b,g.x,g.y,f.x,f.y,m,k,null,h);var q=
m.l,n=0,u=1,p=new c.b;for(p.J(g);q*(u-n)>1E-12*a;){var t=.5*(n+u);c.zb.dk(a,b,g.x,g.y,q*t,k.l,m,r,h);p.x=m.l;p.y=r.l;e.K(g.y,p.y);if(0==p.y)break;if(e.contains(0))u=t;else if(e.K(f.y,p.y),e.contains(0))n=t;else return NaN}return p.x};b.dC=function(a,b,f,e,h){var g=new c.i;a.o(g);if(g.s())return a;var k=new c.Nd;g.vu(k);var m=new c.Nd;m.K(b,b+f);if(m.contains(k)&&m.va!=k.va)return a;var r=new c.i;r.K(g);var q=a.D();if(33==q){r=h?a:a.vm();g=r.lk();if(g<m.qa||g>=m.va||g==m.va)g+=Math.ceil((m.qa-g)/f)*
f,g=m.Sy(g),r.sS(g);return r}if(550==q){r=h?a:a.vm();e=r.mc(0);q=2*r.F();a=!1;for(h=0;h<q;h+=2)if(g=e.read(h),g<m.qa||g>=m.va||g==m.va)a=!0,g+=Math.ceil((m.qa-g)/f)*f,g=m.Sy(g),e.write(h,g);a&&r.be(1993);return r}if(m.contains(k))return a;if(197==q)return f=h?a:a.vm(),g.Ga(r),f.Bu(g),f;var n=.1*Math.max(g.ba(),g.aa());r.P(0,n);m=a;a=e.Jo();h=c.wi.local();for(var u=new c.Ag,p=0;;){var t=Math.floor((k.qa-b)/f),x=Math.ceil((k.va-b)/f);if(3<x-t){t=Math.floor(.5*(x+t));r.v=g.v-n;r.B=b+f*t;var F=c.Ed.clip(m,
r,a,0);r.v=r.B;r.B=g.B+n;var D=c.Ed.clip(m,r,a,0);u.Nn((t-x)*f,0);D.Oe(u);1736==q?m=h.$(F,D,e,null):(m=F,m.add(D,!1));m.o(g);g.vu(k);p++}else break}r.v=b;r.B=b+f;b=new c.i;b.K(r);b.P(a,0);b=Math.floor((g.v-r.v)/f)*f;0!=b?(r.move(b,0),u.Nn(-b,0)):u.FF();b=1607==q?new c.Xa(m.description):new c.Ka(m.description);k=new c.i;for(n=new c.i;g.B>r.v;){p=c.Ed.clip(m,r,a,0);p.o(n);if(1607==q?!p.s()&&(n.aa()>a||n.ba()>a):!p.s()&&(1736!=q||n.aa()>a))p.Oe(u),p.o(n),b.o(k),k.P(a,a),k.jc(n)&&1736==q?b=h.$(b,p,e,
null):b.add(p,!1);r.move(f,0);u.shift(-f,0)}return b};b.aR=function(a,b,f,e){var h=new c.pe(f.description);h.Pd(f,0,-1);var h=c.Ya.Wl(h,a,b),g=f.F();e.Ja();if(!c.Ya.Po(a)||g!=h.F())return!1;var k=new c.i;f.o(k);var m=new c.i;h.o(m);k=k.aa();m=m.aa();if(0!=k&&0!=m){if(m/=k,a=c.Ya.Fm(b).aa()/c.Ya.Fm(a).aa(),1E-10<Math.abs(m/a-1))return!1}else if(0!=k||0!=m)return!1;e.add(f,!1);for(f=0;f<g;f++)a=h.Fa(f),e.hc(f,a);return!0};b.PT=function(){throw c.g.qe();};return b}();c.fh=g})(t||(t={}));(function(c){(function(c){c[c.rightSide=
1]="rightSide"})(c.rI||(c.rI={}));var p=function(){function g(b,a,d){this.Mq=new c.b;void 0===b?this.tn=-1:(this.Mq.J(b),this.tn=a,this.Da=d,this.Tt=0)}g.prototype.RF=function(b){this.Tt=b?this.Tt|1:this.Tt&-2};g.prototype.s=function(){return 0>this.tn};g.prototype.pw=function(){if(this.s())throw c.g.ra("invalid call");return new c.Va(this.Mq.x,this.Mq.y)};g.prototype.gb=function(){if(this.s())throw c.g.ra("invalid call");return this.tn};g.prototype.sw=function(){if(this.s())throw c.g.ra("invalid call");
return this.Da};g.prototype.Xw=function(){return 0!=(this.Tt&1)};g.prototype.tv=function(b,a,d,c){this.Mq.x=b;this.Mq.y=a;this.tn=d;this.Da=c};return g}();c.dl=p})(t||(t={}));(function(c){var p=function(){function b(){}b.prototype.Fn=function(a,b){this.Ug.resize(0);this.ai.length=0;this.zj=-1;a.cd(this.Jj);this.Jj.P(b,b);this.Jj.jc(this.Ab.Qb)?((this.Hq=c.T.Lc(a.D()))?(this.oE=a.Mb(),this.nE=a.oc(),this.ka=b):this.ka=NaN,this.Ug.add(this.Ab.Ze),this.ai.push(this.Ab.Qb),this.$q=this.Ab.rq(this.Ab.Ze)):
this.$q=-1};b.prototype.Bh=function(a,b){this.Ug.resize(0);this.ai.length=0;this.zj=-1;this.Jj.K(a);this.Jj.P(b,b);this.ka=NaN;this.Jj.jc(this.Ab.Qb)?(this.Ug.add(this.Ab.Ze),this.ai.push(this.Ab.Qb),this.$q=this.Ab.rq(this.Ab.Ze),this.Hq=!1):this.$q=-1};b.prototype.next=function(){if(0==this.Ug.size)return-1;this.zj=this.$q;var a=null,b=null,f,e=null,h=null;this.Hq&&(a=new c.b,b=new c.b,e=new c.i);for(var l=!1;!l;){for(;-1!=this.zj;){f=this.Ab.kw(this.Ab.Ts(this.zj));if(f.jc(this.Jj))if(this.Hq){if(a.J(this.oE),
b.J(this.nE),e.K(f),e.P(this.ka,this.ka),0<e.Nv(a,b)){l=!0;break}}else{l=!0;break}this.zj=this.Ab.$s(this.zj)}if(-1==this.zj){f=this.Ug.tc();var k=this.ai[this.ai.length-1];null==h&&(h=[],h[0]=new c.i,h[1]=new c.i,h[2]=new c.i,h[3]=new c.i);g.yF(k,h);this.Ug.af();this.ai.length=this.ai.length-1;for(k=0;4>k;k++){var m=this.Ab.yo(f,k);if(-1!=m&&0<this.Ab.hO(m)&&h[k].jc(this.Jj))if(this.Hq){if(a.J(this.oE),b.J(this.nE),e.K(h[k]),e.P(this.ka,this.ka),0<e.Nv(a,b)){var r=new c.i;r.K(h[k]);this.Ug.add(m);
this.ai.push(r)}}else r=new c.i,r.K(h[k]),this.Ug.add(m),this.ai.push(r)}if(0==this.Ug.size)return-1;this.zj=this.Ab.rq(this.Ug.get(this.Ug.size-1))}}this.$q=this.Ab.$s(this.zj);return this.zj};b.GL=function(a,d,f){var e=new b;e.Ab=a;e.Jj=new c.i;e.Ug=new c.ga(0);e.ai=[];e.Fn(d,f);return e};b.FL=function(a,d,f){var e=new b;e.Ab=a;e.Jj=new c.i;e.Ug=new c.ga(0);e.ai=[];e.Bh(d,f);return e};b.EL=function(a){var d=new b;d.Ab=a;d.Jj=new c.i;d.Ug=new c.ga(0);d.ai=[];return d};return b}();c.OT=p;var g=function(){function b(a,
b){this.Ye=new c.Fc(11);this.ph=new c.Fc(5);this.Iq=[];this.Qt=new c.ga(0);this.Qb=new c.i;this.Qj(a,b)}b.prototype.reset=function(a,b){this.Ye.Nh(!1);this.ph.Nh(!1);this.Iq.length=0;this.Qt.clear(!1);this.Qj(a,b)};b.prototype.kg=function(a,b){return this.kt(a,b,0,this.Qb,this.Ze,!1,-1)};b.prototype.jt=function(a,b,c){c=-1==c?this.Ze:this.HC(c);var e=this.ba(c),h=this.DN(c);return this.kt(a,b,e,h,c,!1,-1)};b.prototype.da=function(a){return this.zN(a)};b.prototype.rC=function(a){return this.kw(this.Ts(a))};
b.prototype.ba=function(a){return this.Ws(a)};b.prototype.DN=function(a){var b=new c.i;b.K(this.Qb);var f=this.Ws(a);a=this.BC(a);for(var e=0;e<2*f;e+=2){var h=c.I.truncate(3&a>>e);0==h?(b.v=.5*(b.v+b.B),b.C=.5*(b.C+b.G)):1==h?(b.B=.5*(b.v+b.B),b.C=.5*(b.C+b.G)):(2==h?b.B=.5*(b.v+b.B):b.v=.5*(b.v+b.B),b.G=.5*(b.C+b.G))}return b};b.prototype.hO=function(a){return this.Kw(a)};b.prototype.LN=function(a,b){return p.GL(this,a,b)};b.prototype.xw=function(a,b){return p.FL(this,a,b)};b.prototype.Re=function(){return p.EL(this)};
b.prototype.Qj=function(a,b){if(0>b||32<2*b)throw c.g.N("invalid height");this.IP=b;this.Qb.K(a);this.Ze=this.Ye.ae();this.Ju(this.Ze,0);this.Du(this.Ze,0);this.IF(this.Ze,0);this.EF(this.Ze,0)};b.prototype.kt=function(a,d,f,e,h,g,k){if(!e.contains(d))return 0==f?-1:this.kt(a,d,0,this.Qb,this.Ze,g,k);if(!g)for(var m=h;-1!=m;m=this.VN(m))this.Ju(m,this.Kw(m)+1);m=new c.i;m.K(e);e=h;var r=[];r[0]=new c.i;r[1]=new c.i;r[2]=new c.i;for(r[3]=new c.i;f<this.IP&&this.HK(e);f++){b.yF(m,r);for(var q=!1,n=
0;4>n;n++)if(r[n].contains(d)){var q=!0,u=this.yo(e,n);-1==u&&(u=this.NL(e,n));this.Ju(u,this.Kw(u)+1);e=u;m.K(r[n]);break}if(!q)break}return this.BO(a,d,f,m,e,g,h,k)};b.prototype.BO=function(a,b,c,e,h,g,k,m){var r=this.xC(h);if(g){if(h==k)return m;this.lM(m);g=m}else g=this.PL(),this.By(g,a),this.KR(this.Ts(g),b);this.iS(g,h);-1!=r?(this.Iu(g,r),this.Eu(r,g)):this.AF(h,g);this.Fy(h,g);this.Du(h,this.Ys(h)+1);this.GK(h)&&this.aN(c,e,h);return g};b.prototype.lM=function(a){var b=this.HC(a),c=this.xC(b),
e=this.aO(a),h=this.$s(a);this.rq(b)==a?(-1!=h?this.Iu(h,-1):this.Fy(b,-1),this.AF(b,h)):c==a?(this.Eu(e,-1),this.Fy(b,e)):(this.Iu(h,e),this.Eu(e,h));this.Iu(a,-1);this.Eu(a,-1);this.Du(b,this.Ys(b)-1)};b.yF=function(a,b){var c=.5*(a.v+a.B),e=.5*(a.C+a.G);b[0].K(c,e,a.B,a.G);b[1].K(a.v,e,c,a.G);b[2].K(a.v,a.C,c,e);b[3].K(c,a.C,a.B,e)};b.prototype.GK=function(a){return 8==this.Ys(a)&&!this.SC(a)};b.prototype.aN=function(a,b,c){var e,h,g=this.rq(c);do h=this.Ts(g),e=this.ph.O(g,0),h=this.kw(h),this.kt(e,
h,a,b,c,!0,g),g=e=this.$s(g);while(-1!=g)};b.prototype.HK=function(a){return 8<=this.Ys(a)||this.SC(a)};b.prototype.SC=function(a){return-1!=this.yo(a,0)||-1!=this.yo(a,1)||-1!=this.yo(a,2)||-1!=this.yo(a,3)};b.prototype.NL=function(a,b){var c=this.Ye.ae();this.OR(a,b,c);this.Ju(c,0);this.Du(c,0);this.Sj(c,a);this.EF(c,this.Ws(a)+1);this.IF(c,b<<2*this.Ws(a)|this.BC(a));return c};b.prototype.PL=function(){var a=this.ph.ae(),b;0<this.Qt.size?(b=this.Qt.tc(),this.Qt.af()):(b=this.Iq.length,this.Iq.push(new c.i));
this.LR(a,b);return a};b.prototype.yo=function(a,b){return this.Ye.O(a,b)};b.prototype.OR=function(a,b,c){this.Ye.L(a,b,c)};b.prototype.rq=function(a){return this.Ye.O(a,4)};b.prototype.AF=function(a,b){this.Ye.L(a,4,b)};b.prototype.xC=function(a){return this.Ye.O(a,5)};b.prototype.Fy=function(a,b){this.Ye.L(a,5,b)};b.prototype.BC=function(a){return this.Ye.O(a,6)};b.prototype.IF=function(a,b){this.Ye.L(a,6,b)};b.prototype.Ys=function(a){return this.Ye.O(a,7)};b.prototype.Kw=function(a){return this.Ye.O(a,
8)};b.prototype.Du=function(a,b){this.Ye.L(a,7,b)};b.prototype.Ju=function(a,b){this.Ye.L(a,8,b)};b.prototype.VN=function(a){return this.Ye.O(a,9)};b.prototype.Sj=function(a,b){this.Ye.L(a,9,b)};b.prototype.Ws=function(a){return this.Ye.O(a,10)};b.prototype.EF=function(a,b){this.Ye.L(a,10,b)};b.prototype.zN=function(a){return this.ph.O(a,0)};b.prototype.By=function(a,b){this.ph.L(a,0,b)};b.prototype.aO=function(a){return this.ph.O(a,1)};b.prototype.$s=function(a){return this.ph.O(a,2)};b.prototype.Iu=
function(a,b){this.ph.L(a,1,b)};b.prototype.Eu=function(a,b){this.ph.L(a,2,b)};b.prototype.HC=function(a){return this.ph.O(a,3)};b.prototype.iS=function(a,b){this.ph.L(a,3,b)};b.prototype.Ts=function(a){return this.ph.O(a,4)};b.prototype.LR=function(a,b){this.ph.L(a,4,b)};b.prototype.kw=function(a){return this.Iq[a]};b.prototype.KR=function(a,b){this.Iq[a].K(b)};return b}();c.bo=g})(t||(t={}));(function(c){(function(b){b[b.Outside=0]="Outside";b[b.Inside=1]="Inside";b[b.Border=2]="Border"})(c.uH||
(c.uH={}));var p=function(){function b(a,b){this.Gg=null;this.UP=b;this.Gg=a}b.prototype.Au=function(a,b){this.MD!=b&&a.flush();this.MD=b};b.prototype.WB=function(a,b){for(var c=0;c<b;)for(var e=a[c++],h=a[c++],g=a[c++]*this.UP;e<h;e++)this.Gg[g+(e>>4)]|=this.MD<<2*(e&15)};return b}();c.QT=p;var g=function(){function b(a,b,f){this.Gg=null;this.Qx=this.Sx=this.wE=this.uE=this.Pq=this.SD=this.tf=this.Pl=0;this.ii=this.Mj=this.sk=null;a instanceof c.Vr?this.it(a,b,f):this.it(a,b,f)}b.create=function(a,
d,f){if(!b.Cc(a))throw c.g.N();return b.Id(a,d,f)};b.ti=function(a,d,f){if(!b.Cc(a))throw c.g.N();return b.ze(a,d,f)};b.lR=function(a){switch(a){case 0:a=1024;break;case 1:a=16384;break;case 2:a=262144;break;default:throw c.g.ra("Internal Error");}return a};b.Cc=function(a){return a.s()||1607!=a.D()&&1736!=a.D()?!1:!0};b.prototype.JM=function(a,b){for(var f=b.Ca(),e=new c.b,h=new c.b;f.kb();)for(;f.La();){var g=f.ia();if(322!=g.D())throw c.g.ra("Internal Error");a.Zi(g.Mb(),e);a.Zi(g.oc(),h);this.ii.zv(e.x,
e.y,h.x,h.y)}this.ii.cF(c.ev.Zu)};b.prototype.KM=function(){throw c.g.ra("Internal Error");};b.prototype.cw=function(a,b){for(var f=1;4>f;f++)a.zv(b[f-1].x,b[f-1].y,b[f].x,b[f].y);a.zv(b[3].x,b[3].y,b[0].x,b[0].y);this.ii.cF(c.ev.Zu)};b.prototype.hG=function(a,b,f){for(var e=[null,null,null,null],h=0;h<e.length;h++)e[h]=new c.b;b=b.Ca();f=this.Mj.US(f)+1.5;for(var h=new c.b,g=new c.b,k=new c.b,m=new c.b,r=new c.b,q=new c.i,n=new c.b;b.kb();){var u=!1,p=!0;for(n.ma(0,0);b.La();){var t=b.ia();m.x=t.na;
m.y=t.ja;r.x=t.la;r.y=t.ha;q.Ja();q.Db(m.x,m.y);q.Nj(r.x,r.y);if(this.sk.oD(q)){this.Mj.Zi(r,r);p?(this.Mj.Zi(m,m),n.J(m),p=!1):m.J(n);h.pc(r,m);var t=h.length(),x=.5>t;0==t?h.ma(1,0):(x||n.J(r),h.scale(f/t),g.ma(-h.y,h.x),k.ma(h.y,-h.x),m.sub(h),r.add(h),e[0].add(m,g),e[1].add(m,k),e[2].add(r,k),e[3].add(r,g),x?u=!0:this.cw(a,e))}else u&&(this.cw(a,e),u=!1),p=!0}u&&this.cw(a,e)}};b.prototype.fz=function(a){return c.I.truncate(a*this.SD+this.uE)};b.prototype.gz=function(a){return c.I.truncate(a*this.Pq+
this.wE)};b.Id=function(a,d,c){return new b(a,d,c)};b.ze=function(a,d,c){return new b(a,d,c)};b.prototype.it=function(a,b,f){this.tf=Math.max(c.I.truncate(2*Math.sqrt(f)+.5),64);this.Pl=c.I.truncate((2*this.tf+31)/32);this.sk=new c.i;this.Sx=b;f=0;for(var e=this.tf,h=this.Pl;8<=e;)f+=e*h,e=c.I.truncate(e/2),h=c.I.truncate((2*e+31)/32);this.Gg=c.I.Kh(f,0);this.ii=new c.ev;f=new p(this.Gg,this.Pl,this);this.ii.xS(this.tf,this.tf,f);a.o(this.sk);this.sk.P(b,b);var e=new c.i,h=c.i.Oa(1,1,this.tf-2,this.tf-
2),g=b*h.aa();b*=h.ba();e.K(this.sk.Af(),Math.max(g,this.sk.aa()),Math.max(b,this.sk.ba()));this.Qx=this.Sx;this.Mj=new c.Ag;this.Mj.yO(e,h);new c.Ag;switch(a.D()){case 550:f.Au(this.ii,2);this.KM();break;case 1607:f.Au(this.ii,2);this.hG(this.ii,a,this.Qx);break;case 1736:f.Au(this.ii,1),this.JM(this.Mj,a),f.Au(this.ii,2),this.hG(this.ii,a,this.Qx)}this.SD=this.Mj.mb;this.Pq=this.Mj.eb;this.uE=this.Mj.Nb;this.wE=this.Mj.Ob;this.AK()};b.prototype.AK=function(){this.ii.flush();for(var a=0,b=this.tf*
this.Pl,f=this.tf,e=c.I.truncate(this.tf/2),h=this.Pl,g=c.I.truncate((2*e+31)/32);8<f;){for(f=0;f<e;f++)for(var k=2*f,m=2*f+1,r=0;r<e;r++){var q=2*r,n=2*r+1,u=q>>4,q=2*(q&15),p=n>>4,n=2*(n&15),t=this.Gg[a+h*k+u]>>q&3,t=t|this.Gg[a+h*k+p]>>n&3,t=t|this.Gg[a+h*m+u]>>q&3,t=t|this.Gg[a+h*m+p]>>n&3;this.Gg[b+g*f+(r>>4)]|=t<<2*(r&15)}f=e;h=g;a=b;e=c.I.truncate(f/2);g=c.I.truncate((2*e+31)/32);b=a+h*f}};b.prototype.Kk=function(a,b){if(!this.sk.contains(a,b))return 0;var c=this.fz(a),e=this.gz(b);if(0>c||
c>=this.tf||0>e||e>=this.tf)return 0;c=this.Gg[this.Pl*e+(c>>4)]>>2*(c&15)&3;return 0==c?0:1==c?1:2};b.prototype.Dn=function(a){if(!a.Ga(this.sk))return 0;var b=this.fz(a.v),f=this.fz(a.B),e=this.gz(a.C);a=this.gz(a.G);0>b&&(b=0);0>e&&(e=0);f>=this.tf&&(f=this.tf-1);a>=this.tf&&(a=this.tf-1);if(b>f||e>a)return 0;for(var h=Math.max(f-b,1)*Math.max(a-e,1),g=0,k=this.Pl,m=this.tf,r=0;;){if(32>h||16>m){for(h=e;h<=a;h++)for(var q=b;q<=f;q++)if(r=this.Gg[g+k*h+(q>>4)]>>2*(q&15)&3,1<r)return 2;if(0==r)return 0;
if(1==r)return 1}g+=k*m;m=c.I.truncate(m/2);k=c.I.truncate((2*m+31)/32);b=c.I.truncate(b/2);e=c.I.truncate(e/2);f=c.I.truncate(f/2);a=c.I.truncate(a/2);h=Math.max(f-b,1)*Math.max(a-e,1)}};b.prototype.dO=function(){return this.tf*this.Pl};return b}();c.cA=g})(t||(t={}));(function(c){(function(b){b[b.contains=1]="contains";b[b.within=2]="within";b[b.equals=3]="equals";b[b.disjoint=4]="disjoint";b[b.touches=8]="touches";b[b.crosses=16]="crosses";b[b.overlaps=32]="overlaps";b[b.unknown=0]="unknown";b[b.intersects=
1073741824]="intersects"})(c.yI||(c.yI={}));var p=function(){function b(){}b.Oa=function(a,d,c,e,h,g,k,m){var r=new b;r.Vt=a;r.Jl=d;r.Oi=c;r.ji=e;r.aE=h;r.jU=g;r.kU=k;r.lU=m;return r};return b}(),g=function(){function b(){}b.uU=function(a,d,f){if(!b.sO(a))return!1;var e=c.Ia.Bg(d,a,!1);d=!1;c.Vj.uB(a)&&(d=d||a.jv(e,f));e=a.D();1736!=e&&1607!=e||!c.Vj.sB(a)||0==f||(d=d||a.cj(f));1736!=e&&1607!=e||!c.Vj.tB(a)||0==f||(d=d||a.iJ());return d};b.sO=function(a){return c.Vj.uB(a)||c.Vj.sB(a)||c.Vj.tB(a)};
return b}();c.lT=g;g=function(){function b(){this.Sg=[]}b.qy=function(a,d,f,e,h){var g=a.D(),k=d.D();if(197==g){if(197==k)return b.nP(a,d,f,e);if(33==k)return 2==e?e=1:1==e&&(e=2),b.Gz(d,a,f,e)}else if(33==g){if(197==k)return b.Gz(a,d,f,e);if(33==k)return b.qP(a,d,f,e)}if(a.s()||d.s())return 4==e?!0:!1;var m=new c.i;a.o(m);var r=new c.i;d.o(r);var q=new c.i;q.K(m);q.Db(r);f=c.Ia.zd(f,q,!1);if(b.mj(m,r,f))return 4==e?!0:!1;m=!1;c.al.Lc(g)&&(g=new c.Xa(a.description),g.Bc(a,!0),a=g,g=1607);c.al.Lc(k)&&
(k=new c.Xa(d.description),k.Bc(d,!0),d=k,k=1607);if(197!=g&&197!=k){if(a.fb()<d.fb()||33==g&&550==k)2==e?e=1:1==e&&(e=2)}else 1736!=g&&197!=k&&(2==e?e=1:1==e&&(e=2));switch(g){case 1736:switch(k){case 1736:m=b.ur(a,d,f,e,h);break;case 1607:m=b.Vl(a,d,f,e,h);break;case 33:m=b.tr(a,d,f,e,h);break;case 550:m=b.sr(a,d,f,e,h);break;case 197:m=b.tD(a,d,f,e,h)}break;case 1607:switch(k){case 1736:m=b.Vl(d,a,f,e,h);break;case 1607:m=b.ey(a,d,f,e,h);break;case 33:m=b.wr(a,d,f,e,h);break;case 550:m=b.vr(a,
d,f,e,h);break;case 197:m=b.IE(a,d,f,e)}break;case 33:switch(k){case 1736:m=b.tr(d,a,f,e,h);break;case 1607:m=b.wr(d,a,f,e,h);break;case 550:m=b.or(d,a,f,e,h)}break;case 550:switch(k){case 1736:m=b.sr(d,a,f,e,h);break;case 1607:m=b.vr(d,a,f,e,h);break;case 550:m=b.Wx(a,d,f,e,h);break;case 33:m=b.or(a,d,f,e,h);break;case 197:m=b.mA(a,d,f,e)}break;case 197:switch(k){case 1736:m=b.tD(d,a,f,e,h);break;case 1607:m=b.IE(d,a,f,e);break;case 550:m=b.mA(d,a,f,e)}}return m};b.nP=function(a,d,f,e){if(a.s()||
d.s())return 4==e?!0:!1;var h=new c.i,g=new c.i,k=new c.i;a.o(h);d.o(g);k.K(h);k.Db(g);a=c.Ia.zd(f,k,!1);switch(e){case 4:return b.mj(h,g,a);case 2:return b.zz(g,h,a);case 1:return b.zz(h,g,a);case 3:return b.ze(h,g,a);case 8:return b.mR(h,g,a);case 32:return b.eR(h,g,a);case 16:return b.AQ(h,g,a)}return!1};b.Gz=function(a,d,f,e){if(a.s()||d.s())return 4==e?!0:!1;a=a.w();var h=new c.i,g=new c.i;d.o(h);g.K(a);g.Db(h);d=c.Ia.zd(f,g,!1);switch(e){case 4:return b.qu(a,h,d);case 2:return b.bx(a,h,d);case 1:return b.aJ(a,
h,d);case 3:return b.hz(a,h,d);case 8:return b.ax(a,h,d)}return!1};b.qP=function(a,d,f,e){if(a.s()||d.s())return 4==e?!0:!1;a=a.w();d=d.w();var h=new c.i;h.K(a);h.Db(d);f=c.Ia.zd(f,h,!1);switch(e){case 4:return b.dJ(a,d,f);case 2:return b.oA(d,a,f);case 1:return b.oA(a,d,f);case 3:return b.JA(a,d,f)}return!1};b.ur=function(a,d,c,e,h){switch(e){case 4:return b.BQ(a,d,c);case 2:return b.ru(d,a,c,h);case 1:return b.ru(a,d,c,h);case 3:return b.GR(a,d,c);case 8:return b.RG(a,d,c);case 32:return b.ZS(a,
d,c,h)}return!1};b.Vl=function(a,d,c,e,h){switch(e){case 4:return b.fR(a,d,c);case 1:return b.dy(a,d,c,h);case 8:return b.UG(a,d,c,h);case 16:return b.sP(a,d,c)}return!1};b.tr=function(a,d,c,e){switch(e){case 4:return b.sQ(a,d,c);case 1:return b.tO(a,d,c);case 8:return b.MG(a,d,c)}return!1};b.sr=function(a,d,c,e){switch(e){case 4:return b.jQ(a,d,c);case 1:return b.eN(a,d,c);case 8:return b.eT(a,d,c);case 16:return b.pP(a,d,c)}return!1};b.tD=function(a,d,c,e,h){if(b.YP(a,d,c))return 4==e?!0:!1;if(4==
e)return!1;switch(e){case 2:return b.$G(a,d,c);case 1:return b.EM(a,d,c);case 3:return b.nR(a,d,c);case 8:return b.cT(a,d,c,h);case 32:return b.QS(a,d,c,h);case 16:return b.mP(a,d,c,h)}return!1};b.ey=function(a,d,c,e){switch(e){case 4:return b.IH(a,d,c);case 2:return b.zE(d,a,c);case 1:return b.zE(a,d,c);case 3:return b.PH(a,d,c);case 8:return b.TE(a,d,c);case 32:return b.xI(a,d,c);case 16:return b.GE(a,d,c)}return!1};b.wr=function(a,d,c,e){switch(e){case 4:return b.GH(a,d,c);case 1:return b.jH(a,
d,c);case 8:return b.OI(a,d,c)}return!1};b.vr=function(a,d,c,e){switch(e){case 4:return b.EH(a,d,c);case 1:return b.gH(a,d,c);case 8:return b.LI(a,d,c);case 16:return b.xH(a,d,c)}return!1};b.IE=function(a,d,c,e){if(b.BH(a,d,c))return 4==e?!0:!1;if(4==e)return!1;switch(e){case 2:return b.TI(a,d,c);case 1:return b.cH(a,d,c);case 3:return b.LH(a,d,c);case 8:return b.DI(a,d,c);case 32:return b.uI(a,d,c);case 16:return b.tH(a,d,c)}return!1};b.Wx=function(a,d,c,e){switch(e){case 4:return b.FH(a,d,c);case 2:return b.iA(d,
a,c);case 1:return b.iA(a,d,c);case 3:return b.KH(a,d,c);case 32:return b.CI(a,d,c)}return!1};b.or=function(a,d,c,e){switch(e){case 4:return b.jA(a,d,c);case 2:return b.SI(a,d,c);case 1:return b.wH(a,d,c);case 3:return b.lu(a,d,c)}return!1};b.mA=function(a,d,c,e){switch(e){case 4:return b.DH(a,d,c);case 2:return b.NI(a,d,c);case 1:return b.sH(a,d,c);case 3:return b.HH(a,d,c);case 8:return b.KI(a,d,c);case 16:return b.AH(a,d,c)}return!1};b.GR=function(a,d,f){var e=new c.i,h=new c.i;a.o(e);d.o(h);if(!b.ze(e,
h,f))return!1;e=b.ec(a,d,!1);if(4==e||1==e||2==e)return!1;if(b.hA(a,d,f))return!0;e=a.Zb();h=d.Zb();return Math.abs(e-h)>4*Math.max(a.F(),d.F())*f?!1:b.Vv(a,d,f,!0)};b.BQ=function(a,d,c){var e=b.ec(a,d,!0);return 4==e?!0:1==e||2==e||1073741824==e?!1:b.VC(a,d,c)};b.RG=function(a,d,c){var e=b.ec(a,d,!1);return 4==e||1==e||2==e?!1:b.vD(a,d,c,null)};b.ZS=function(a,d,c,e){var h=b.ec(a,d,!1);return 4==h||1==h||2==h?!1:b.WC(a,d,c,e)};b.ru=function(a,d,f,e){var h=new c.i,g=new c.i;a.o(h);d.o(g);if(!b.rc(h,
g,f))return!1;h=b.ec(a,d,!1);return 4==h||2==h?!1:1==h?!0:b.XB(a,d,f,e)};b.fR=function(a,d,c){var e=b.ec(a,d,!0);return 4==e?!0:1==e||1073741824==e?!1:b.VC(a,d,c)};b.UG=function(a,d,c,e){var h=b.ec(a,d,!1);return 4==h||1==h?!1:b.xE(a,d,c,e)};b.sP=function(a,d,c){var e=b.ec(a,d,!1);return 4==e||1==e?!1:b.gC(a,d,c,null)};b.dy=function(a,d,f,e){var h=new c.i,g=new c.i;a.o(h);d.o(g);if(!b.rc(h,g,f))return!1;h=b.ec(a,d,!1);return 4==h?!1:1==h?!0:b.aC(a,d,f,e)};b.sQ=function(a,b,f){return 0==c.fd.rD(a,
b,f)?!0:!1};b.MG=function(a,d,c){d=d.w();return b.uD(a,d,c)};b.tO=function(a,d,c){d=d.w();return b.vB(a,d,c)};b.jQ=function(a,d,f){var e=b.ec(a,d,!1);if(4==e)return!0;if(1==e)return!1;e=new c.i;a.o(e);e.P(f,f);for(var h=new c.b,g=0;g<d.F();g++)if(d.w(g,h),e.contains(h)){var k=c.fd.ge(a,h,f);if(1==k||2==k)return!1}return!0};b.eT=function(a,b,f){var e=this.ec(a,b,!1);if(4==e||1==e)return!1;e=new c.i;a.o(e);e.P(f,f);var h,g=!1,k;k=a;for(var m=!1,r=0;r<b.F();r++){h=b.Fa(r);if(e.contains(h))if(h=c.fd.ge(k,
h,f),2==h)g=!0;else if(1==h)return!1;m||(!c.ff.An(a,b.F()-1)||null!=a.pb&&null!=a.pb.Ab?k=a:(k=new c.Ka,a.copyTo(k),k.cj(1)),m=!0)}return g?!0:!1};b.pP=function(a,b,f){var e=this.ec(a,b,!1);if(4==e||1==e)return!1;var h=new c.i,e=new c.i,g=new c.i;a.o(h);b.o(g);e.K(h);e.P(f,f);var g=h=!1,k,m;m=a;for(var r=!1,q=0;q<b.F();q++){k=b.Fa(q);e.contains(k)?(k=c.fd.ge(m,k,f),0==k?g=!0:1==k&&(h=!0)):g=!0;if(h&&g)return!0;r||(!c.ff.An(a,b.F()-1)||null!=a.pb&&null!=a.pb.Ab?m=a:(m=new c.Ka,a.copyTo(m),m.cj(1)),
r=!0)}return!1};b.eN=function(a,b,f){var e=new c.i,h=new c.i;a.o(e);b.o(h);if(!this.rc(e,h,f))return!1;h=this.ec(a,b,!1);if(4==h)return!1;if(1==h)return!0;var h=!1,g,k;k=a;for(var m=!1,r=0;r<b.F();r++){g=b.Fa(r);if(!e.contains(g))return!1;g=c.fd.ge(k,g,f);if(1==g)h=!0;else if(0==g)return!1;m||(!c.ff.An(a,b.F()-1)||null!=a.pb&&null!=a.pb.Ab?k=a:(k=new c.Ka,a.copyTo(k),k.cj(1)),m=!0)}return h};b.nR=function(a,d,f){var e=new c.i,h=new c.i;a.o(e);d.o(h);if(!b.ze(e,h,f))return!1;e=new c.Ka;e.Uc(d,!1);
return b.Vv(a,e,f,!0)};b.YP=function(a,d,f){var e=b.ec(a,d,!1);if(4==e)return!0;if(1==e||2==e)return!1;var h=new c.i,e=new c.i;a.o(h);d.o(e);if(b.rc(e,h,f))return!1;h=new c.b;e.Yl(h);d=c.fd.ge(a,h,f);if(0!=d)return!1;e.VE(h);d=c.fd.ge(a,h,f);if(0!=d)return!1;e.Zl(h);d=c.fd.ge(a,h,f);if(0!=d)return!1;e.YE(h);d=c.fd.ge(a,h,f);if(0!=d)return!1;d=a.mc(0);h=new c.i;h.K(e);h.P(f,f);for(var g=0,k=a.F();g<k;g++){var m=d.read(2*g),r=d.read(2*g+1);if(h.contains(m,r))return!1}return!b.aA(a,e,f)};b.cT=function(a,
d,f,e){var h=b.ec(a,d,!1);if(4==h||1==h||2==h)return!1;var h=new c.i,g=new c.i;a.o(h);d.o(g);if(b.rc(g,h,f))return!1;if(g.aa()<=f&&g.ba()<=f)return d=d.pq(),b.uD(a,d,f);if(g.aa()<=f||g.ba()<=f)return h=new c.Xa,g=new c.Va,d.uf(0,g),h.df(g),d.uf(2,g),h.lineTo(g),b.xE(a,h,f,e);h=new c.Ka;h.Uc(d,!1);return b.vD(a,h,f,e)};b.QS=function(a,d,f,e){var h=b.ec(a,d,!1);if(4==h||1==h||2==h)return!1;var h=new c.i,g=new c.i;a.o(h);d.o(g);if(b.rc(g,h,f)||g.aa()<=f||g.ba()<=f)return!1;h=new c.Ka;h.Uc(d,!1);return b.WC(a,
h,f,e)};b.$G=function(a,d,f){var e=new c.i,h=new c.i;a.o(e);d.o(h);return b.rc(h,e,f)};b.EM=function(a,d,f){var e=new c.i,h=new c.i;a.o(e);d.o(h);if(!b.rc(e,h,f))return!1;e=b.ec(a,d,!1);if(4==e||2==e)return!1;if(1==e)return!0;if(h.aa()<=f&&h.ba()<=f)return d=d.pq(),b.vB(a,d,f);if(h.aa()<=f||h.ba()<=f)return h=new c.Xa,e=new c.Va,d.uf(0,e),h.df(e),d.uf(2,e),h.lineTo(e),b.aC(a,h,f,null);h=new c.Ka;h.Uc(d,!1);return b.XB(a,h,f,null)};b.mP=function(a,d,f,e){var h=new c.i,g=new c.i;a.o(h);d.o(g);if(b.rc(g,
h,f)||g.ba()>f&&g.aa()>f||g.ba()<=f&&g.aa()<=f)return!1;h=new c.Xa;g=new c.Va;d.uf(0,g);h.df(g);d.uf(2,g);h.lineTo(g);return b.gC(a,h,f,e)};b.PH=function(a,d,f){var e=new c.i,h=new c.i;a.o(e);d.o(h);return b.ze(e,h,f)&&4!=b.ec(a,d,!1)?b.hA(a,d,f)?!0:b.Vv(a,d,f,!1):!1};b.IH=function(a,b,f){return 4==this.ec(a,b,!1)?!0:(new c.cl(a,b,f,!0)).next()?!this.BD(a,b,f):!1};b.TE=function(a,d,f){if(4==b.ec(a,d,!1))return!1;var e=new c.qd(0);if(0!=b.Zv(a,d,f,e))return!1;for(var h=new c.pe,g=0;g<e.size;g+=2){var k=
e.read(g),m=e.read(g+1);h.ys(k,m)}a=a.Rf();d=d.Rf();a.Pd(d,0,d.F());return b.ku(a,h,f)};b.GE=function(a,d,f){if(4==b.ec(a,d,!1))return!1;var e=new c.qd(0);if(0!=b.Zv(a,d,f,e))return!1;for(var h=new c.pe,g=0;g<e.size;g+=2){var k=e.read(g),m=e.read(g+1);h.ys(k,m)}a=a.Rf();d=d.Rf();a.Pd(d,0,d.F());return!b.ku(a,h,f)};b.xI=function(a,d,c){return 4==b.ec(a,d,!1)?!1:b.dA(a,d,c)};b.zE=function(a,d,f){var e=new c.i,h=new c.i;a.o(e);d.o(h);return b.rc(e,h,f)&&4!=b.ec(a,d,!1)?b.Wf(d,a,f,!1):!1};b.GH=function(a,
d,c){if(4==b.ec(a,d,!1))return!0;d=d.w();return!b.ex(a,d,c)};b.OI=function(a,d,c){if(4==b.ec(a,d,!1))return!1;d=d.w();return b.bw(a,d,c)};b.jH=function(a,d,c){if(4==b.ec(a,d,!1))return!1;d=d.w();return b.Xz(a,d,c)};b.EH=function(a,d,c){return 4==b.ec(a,d,!1)?!0:!b.bA(a,d,c,!1)};b.LI=function(a,b,f){if(4==this.ec(a,b,!1))return!1;var e=a.Ca(),h=new c.i,g=new c.i,k=new c.i;a.o(h);b.o(g);h.P(f,f);g.P(f,f);k.K(h);k.Ga(g);var m,r,h=null;m=a.pb;null!=m?(r=m.Ab,h=m.nn,null==r&&(r=m=c.Ia.hj(a,k))):r=m=c.Ia.hj(a,
k);var q=r.Re(),n=null;null!=h&&(n=h.Re());var u=new c.b,p=new c.b,t=!1,x=f*f,h=new c.Wk(b.F());for(m=0;m<b.F();m++)h.write(m,0);for(m=0;m<b.F();m++)if(b.w(m,u),k.contains(u)){g.K(u.x,u.y,u.x,u.y);if(null!=n&&(n.Bh(g,f),-1==n.next()))continue;q.Bh(g,f);for(var F=q.next();-1!=F;F=q.next())if(e.Sb(r.da(F)),F=e.ia(),F.Kb(F.Gd(u,!1),p),c.b.Yb(u,p)<=x){h.write(m,1);t=!0;break}}if(!t)return!1;a=a.Rf();e=new c.pe;g=new c.b;for(m=0;m<b.F();m++)0!=h.read(m)&&(b.w(m,g),e.ys(g.x,g.y));return this.ku(a,e,f)};
b.xH=function(a,b,f){if(4==this.ec(a,b,!1))return!1;var e=a.Ca(),h=new c.i,g=new c.i,k=new c.i;a.o(h);b.o(g);h.P(f,f);g.P(f,f);k.K(h);k.Ga(g);var m,r,h=null;m=a.pb;null!=m?(r=m.Ab,h=m.nn,null==r&&(r=m=c.Ia.hj(a,k))):r=m=c.Ia.hj(a,k);var q=r.Re(),n=null;null!=h&&(n=h.Re());var u=new c.b,p=new c.b,t=!1,x=!1,F=f*f,h=new c.Wk(b.F());for(m=0;m<b.F();m++)h.write(m,0);for(m=0;m<b.F();m++)if(b.w(m,u),k.contains(u)){g.K(u.x,u.y,u.x,u.y);if(null!=n&&(n.Bh(g,f),-1==n.next())){x=!0;continue}q.Bh(g,f);for(var D=
!1,y=q.next();-1!=y;y=q.next())if(e.Sb(r.da(y)),y=e.ia(),y.Kb(y.Gd(u,!1),p),c.b.Yb(u,p)<=F){h.write(m,1);D=t=!0;break}D||(x=!0)}else x=!0;if(!t||!x)return!1;a=a.Rf();e=new c.pe;g=new c.b;for(m=0;m<b.F();m++)0!=h.read(m)&&(b.w(m,g),e.ys(g.x,g.y));return!this.ku(a,e,f)};b.gH=function(a,d,f){var e=new c.i,h=new c.i;a.o(e);d.o(h);if(!b.rc(e,h,f)||4==b.ec(a,d,!1)||!b.bA(a,d,f,!0))return!1;a=a.Rf();return!b.kA(a,d,f)};b.LH=function(a,d,f){var e=new c.i,h=new c.i;a.o(e);d.o(h);return h.ba()>f&&h.aa()>f?
!1:b.ze(e,h,f)};b.BH=function(a,d,f){var e=new c.i,h=new c.i;a.o(e);d.o(h);return b.rc(h,e,f)?!1:!b.aA(a,h,f)};b.DI=function(a,d,f){var e=new c.i,h=new c.i;a.o(e);d.o(h);if(h.ba()<=f&&h.aa()<=f)return h=d.pq(),b.bw(a,h,f);if(h.ba()<=f||h.aa()<=f)return h=new c.Xa,e=new c.Va,d.uf(0,e),h.df(e),d.uf(2,e),h.lineTo(e),b.TE(a,h,f);a=a.Ca();d=new c.i;e=new c.i;d.K(h);e.K(h);d.P(-f,-f);e.P(f,f);for(var h=!1,g=new c.i,k=new c.i;a.kb();)for(;a.La();){a.ia().o(g);k.K(d);k.Ga(g);if(!k.s()&&(k.ba()>f||k.aa()>
f))return!1;k.K(e);k.Ga(g);k.s()||(h=!0)}return h};b.uI=function(a,d,f){var e=new c.i,h=new c.i;a.o(e);d.o(h);if(b.rc(e,h,f)||b.rc(h,e,f)||b.rc(h,e,f)||h.ba()>f&&h.aa()>f||h.ba()<=f&&h.aa()<=f)return!1;e=new c.Xa;h=new c.Va;d.uf(0,h);e.df(h);d.uf(2,h);e.lineTo(h);return b.dA(a,e,f)};b.TI=function(a,d,f){var e=new c.i,h=new c.i;a.o(e);d.o(h);if(!b.rc(h,e,f)||h.ba()<=f&&h.aa()<=f)return!1;if(h.ba()<=f||h.aa()<=f)return b.rc(h,e,f);a=a.Ca();d=new c.i;d.K(h);d.P(-f,-f);for(var h=!1,e=new c.i,g=new c.i;a.kb();)for(;a.La();)a.ia().o(e),
d.jl(e)?h=!0:(g.K(d),g.Ga(e),!g.s()&&(g.ba()>f||g.aa()>f)&&(h=!0));return h};b.cH=function(a,d,f){var e=new c.i,h=new c.i;d.o(h);a.o(e);if(!b.rc(e,h,f)||h.ba()>f&&h.aa()>f)return!1;if(h.ba()<=f&&h.aa()<=f)return d=d.pq(),b.Xz(a,d,f);e=new c.Xa;h=new c.Va;d.uf(0,h);e.df(h);d.uf(2,h);e.lineTo(h);return b.Wf(e,a,f,!1)};b.tH=function(a,d,f){var e=new c.i,h=new c.i;a.o(e);d.o(h);if(b.rc(h,e,f)||h.ba()<=f&&h.aa()<=f)return!1;if(h.ba()<=f||h.aa()<=f)return e=new c.Xa,h=new c.Va,d.uf(0,h),e.df(h),d.uf(2,
h),e.lineTo(h),b.GE(a,e,f);a=a.Ca();d=new c.i;e=new c.i;e.K(h);d.K(h);e.P(-f,-f);d.P(f,f);for(var g=h=!1,k=new c.i,m=new c.i;a.kb();)for(;a.La();)if(a.ia().o(k),g||d.contains(k)||(g=!0),h||(m.K(e),m.Ga(k),!m.s()&&(m.ba()>f||m.aa()>f)&&(h=!0)),h&&g)return!0;return!1};b.KH=function(a,d,f){var e=new c.i,h=new c.i;a.o(e);d.o(h);return b.ze(e,h,f)?b.OH(a,d,f)?!0:b.Pw(a,d,f,!1,!0,!1):!1};b.FH=function(a,d,c){return!b.kA(a,d,c)};b.CI=function(a,d,c){return b.Pw(a,d,c,!1,!1,!0)};b.iA=function(a,d,f){var e=
new c.i,h=new c.i;a.o(e);d.o(h);return b.rc(e,h,f)?b.Pw(d,a,f,!0,!1,!1):!1};b.ku=function(a,b,f){f*=f;for(var e=new c.b,h=new c.b,g=0;g<b.F();g++){b.w(g,h);for(var k=!1,m=0;m<a.F();m++)if(a.w(m,e),c.b.Yb(e,h)<=f){k=!0;break}if(!k)return!1}return!0};b.lu=function(a,d,f){var e=new c.i,h=new c.i;a.o(e);d.o(h);return b.ze(e,h,f)};b.jA=function(a,d,c){d=d.w();return b.nr(a,d,c)};b.SI=function(a,d,c){return b.lu(a,d,c)};b.wH=function(a,d,c){return!b.jA(a,d,c)};b.HH=function(a,d,f){var e=new c.i,h=new c.i;
a.o(e);d.o(h);return h.ba()>f||h.aa()>f?!1:b.ze(e,h,f)};b.DH=function(a,d,f){var e=new c.i,h=new c.i;a.o(e);d.o(h);if(b.rc(h,e,f))return!1;d=new c.i;d.K(h);d.P(f,f);f=new c.b;for(h=0;h<a.F();h++)if(a.w(h,f),d.contains(f))return!1;return!0};b.KI=function(a,b,f){var e=new c.i,h=new c.i,g=new c.i;b.o(e);if(e.ba()<=f&&e.aa()<=f)return!1;if(e.ba()<=f||e.aa()<=f){b=new c.b;var k=!1;h.K(e);g.K(e);h.P(f,f);e.ba()>f?g.P(0,-f):g.P(-f,0);for(var m=0;m<a.F();m++)if(a.w(m,b),h.contains(b)){if(e.ba()>f){if(b.y>
g.C&&b.y<g.G)return!1}else if(b.x>g.v&&b.x<g.B)return!1;k=!0}return k}h.K(e);g.K(e);h.P(f,f);g.P(-f,-f);b=new c.b;k=!1;for(m=0;m<a.F();m++)if(a.w(m,b),h.contains(b)){if(g.jl(b))return!1;k=!0}return k};b.NI=function(a,d,f){var e=new c.i,h=new c.i;a.o(e);d.o(h);if(!b.rc(h,e,f))return!1;if(h.ba()<=f&&h.aa()<=f)return b.ze(e,h,f);if(h.ba()<=f||h.aa()<=f){d=!1;var e=new c.i,g=new c.i;e.K(h);g.K(h);h.ba()>f?e.P(0,-f):e.P(-f,0);g.P(f,f);for(var k=new c.b,m=0;m<a.F();m++){a.w(m,k);if(!g.contains(k))return!1;
h.ba()>f?k.y>e.C&&k.y<e.G&&(d=!0):k.x>e.v&&k.x<e.B&&(d=!0)}return d}d=!1;e=new c.i;g=new c.i;e.K(h);g.K(h);e.P(-f,-f);g.P(f,f);k=new c.b;for(m=0;m<a.F();m++){a.w(m,k);if(!g.contains(k))return!1;e.jl(k)&&(d=!0)}return d};b.sH=function(a,d,f){var e=new c.i,h=new c.i;a.o(e);d.o(h);if(!b.rc(e,h,f)||h.ba()>f||h.aa()>f)return!1;d=d.pq();return!b.nr(a,d,f)};b.AH=function(a,d,f){var e=new c.i,h=new c.i;a.o(e);d.o(h);if(b.rc(h,e,f)||h.ba()<=f&&h.aa()<=f)return!1;if(h.ba()<=f||h.aa()<=f){d=new c.i;e=new c.i;
d.K(h);h.ba()>f?d.P(0,-f):d.P(-f,0);e.K(h);e.P(f,f);for(var g=new c.b,k=!1,m=!1,r=0;r<a.F();r++)if(a.w(r,g),k||(h.ba()>f?g.y>d.C&&g.y<d.G&&(k=!0):g.x>d.v&&g.x<d.B&&(k=!0)),m||e.contains(g)||(m=!0),k&&m)return!0;return!1}d=new c.i;e=new c.i;d.K(h);d.P(-f,-f);e.K(h);e.P(f,f);g=new c.b;m=k=!1;for(r=0;r<a.F();r++)if(a.w(r,g),!k&&d.jl(g)&&(k=!0),m||e.contains(g)||(m=!0),k&&m)return!0;return!1};b.JA=function(a,b,f){return c.b.Yb(a,b)<=f*f?!0:!1};b.dJ=function(a,b,f){return c.b.Yb(a,b)>f*f?!0:!1};b.oA=function(a,
d,c){return b.JA(a,d,c)};b.hz=function(a,d,f){var e=new c.i;e.K(a);return b.ze(e,d,f)};b.qu=function(a,b,f){var e=new c.i;e.K(b);e.P(f,f);return!e.contains(a)};b.ax=function(a,b,f){if(b.ba()<=f&&b.aa()<=f)return!1;var e=new c.i,h=new c.i;e.K(b);e.P(f,f);if(!e.contains(a))return!1;if(b.ba()<=f||b.aa()<=f){h.K(b);b.ba()>f?h.P(0,-f):h.P(-f,0);if(b.ba()>f){if(a.y>h.C&&a.y<h.G)return!1}else if(a.x>h.v&&a.x<h.B)return!1;return!0}h.K(b);h.P(-f,-f);return h.jl(a)?!1:!0};b.bx=function(a,b,f){if(b.ba()<=f&&
b.aa()<=f)return!0;if(b.ba()<=f||b.aa()<=f){var e=new c.i;e.K(b);b.ba()>f?e.P(0,-f):e.P(-f,0);var h=!1;b.ba()>f?a.y>e.C&&a.y<e.G&&(h=!0):a.x>e.v&&a.x<e.B&&(h=!0);return h}e=new c.i;e.K(b);e.P(-f,-f);return e.jl(a)};b.aJ=function(a,d,c){return b.hz(a,d,c)};b.ze=function(a,d,c){return b.rc(a,d,c)&&b.rc(d,a,c)};b.mj=function(a,b,f){var e=new c.i;e.K(b);e.P(f,f);return!a.jc(e)};b.mR=function(a,d,f){if(a.ba()<=f&&a.aa()<=f){var e=a.Af();return b.ax(e,d,f)}if(d.ba()<=f&&d.aa()<=f)return e=d.Af(),b.ax(e,
a,f);a.ba()>f&&a.aa()>f&&(d.ba()<=f||d.aa()<=f)?e=d:(e=a,a=d);if(e.ba()<=f||e.aa()<=f){if(a.ba()<=f||a.aa()<=f){d=new c.yb;var h=new c.yb,g=[0,0],k=[0,0],m=new c.b;e.Yl(m);d.dd(m);e.Zl(m);d.vd(m);a.Yl(m);h.dd(m);a.Zl(m);h.vd(m);d.Ga(h,null,g,k,f);return 1!=d.Ga(h,null,null,null,f)?!1:0==g[0]||1==g[1]||0==k[0]||1==k[1]}d=new c.i;h=new c.i;d.K(a);d.P(-f,-f);h.K(d);h.Ga(e);return!h.s()&&(h.ba()>f||h.aa()>f)?!1:!0}a.P(f,f);h=new c.i;h.K(e);h.Ga(a);return h.s()||!h.s()&&h.ba()>f&&h.aa()>f?!1:!0};b.eR=
function(a,d,f){if(b.rc(a,d,f)||b.rc(d,a,f)||a.ba()<=f&&a.aa()<=f||d.ba()<=f&&d.aa()<=f)return!1;if(a.ba()<=f||a.aa()<=f){if(d.ba()>f&&d.aa()>f)return!1;var e=new c.yb,h=new c.yb,g=[0,0],k=[0,0],m=new c.b;a.Yl(m);e.dd(m);a.Zl(m);e.vd(m);d.Yl(m);h.dd(m);d.Zl(m);h.vd(m);e.Ga(h,null,g,k,f);return 2!=e.Ga(h,null,null,null,f)?!1:(0<g[0]||1>g[1])&&(0<k[0]||1>k[1])}if(d.ba()<=f||d.aa()<=f)return!1;e=new c.i;e.K(a);e.Ga(d);return e.s()||e.ba()<=f||e.aa()<=f?!1:!0};b.zz=function(a,d,f){if(!b.rc(a,d,f))return!1;
if(a.ba()<=f&&a.aa()<=f)return a=a.Af(),b.bx(a,d,f);if(d.ba()<=f&&d.aa()<=f)return d=d.Af(),b.bx(d,a,f);if(a.ba()<=f||a.aa()<=f)return b.rc(a,d,f);if(d.ba()<=f||d.aa()<=f){var e=new c.i;e.K(a);e.P(-f,-f);if(e.jl(d))return!0;a=new c.i;a.K(e);a.Ga(d);return a.s()||a.ba()<=f&&a.aa()<=f?!1:!0}return b.rc(a,d,f)};b.AQ=function(a,d,f){if(b.rc(a,d,f)||b.rc(d,a,f)||a.ba()<=f&&a.aa()<=f||d.ba()<=f&&d.aa()<=f||d.ba()>f&&d.aa()>f&&a.ba()>f&&a.aa()>f)return!1;var e;a.ba()>f&&a.aa()>f?e=d:(e=a,a=d);if(a.ba()>
f&&a.aa()>f){d=new c.i;var h=new c.i;h.K(a);h.P(-f,-f);d.K(h);d.Ga(e);return d.s()||d.ba()<=f&&d.aa()<=f?!1:!0}d=new c.yb;var h=new c.yb,g=[0,0],k=[0,0],m=new c.b;e.Yl(m);d.dd(m);e.Zl(m);d.vd(m);a.Yl(m);h.dd(m);a.Zl(m);h.vd(m);d.Ga(h,null,g,k,f);return 1!=d.Ga(h,null,null,null,f)?!1:0<g[0]&&1>g[1]&&0<k[0]&&1>k[1]};b.VC=function(a,b,f){var e,h,g=new c.i,k=new c.i,m=new c.cl(a,b,f,!0);if(!m.next())return!0;if(this.BD(a,b,f))return!1;var r;r=a;var q;q=null;1736==b.D()&&(q=b);var n=!1,u=!1;do{e=m.jk();
h=m.ek();h=b.Fa(b.Ea(h));g.K(m.Fw());g.P(f,f);if(g.contains(h)&&(h=c.fd.ge(r,h,0),0!=h)||1736==b.D()&&(e=a.Fa(a.Ea(e)),k.K(m.jw()),k.P(f,f),k.contains(e)&&(h=c.fd.ge(q,e,0),0!=h)))return!1;n||(!c.ff.An(a,b.ea()-1)||null!=a.pb&&null!=a.pb.Ab?r=a:(r=new c.Ka,a.copyTo(r),r.cj(1)),n=!0);1736!=b.D()||u||(u=b,!c.ff.An(u,a.ea()-1)||null!=b.pb&&null!=b.pb.Ab?q=b:(q=new c.Ka,u.copyTo(q),q.cj(1)),u=!0)}while(m.next());return!0};b.rc=function(a,b,f){var e=new c.i;e.K(a);e.P(f,f);return e.contains(b)};b.lm=function(a,
b,f){var e=new c.i;e.K(b);e.P(f,f);b=new c.b;a.Yl(b);if(!e.contains(b))return!0;a.VE(b);if(!e.contains(b))return!0;a.YE(b);if(!e.contains(b))return!0;a.Zl(b);return e.contains(b)?!1:!0};b.hA=function(a,b,f){if(a.ea()!=b.ea()||a.F()!=b.F())return!1;var e=new c.b,h=new c.b,g=!0;f*=f;for(var k=0;k<a.ea();k++){if(a.Dc(k)!=b.Dc(k)){g=!1;break}for(var m=a.Ea(k);m<b.Dc(k);m++)if(a.w(m,e),b.w(m,h),c.b.Yb(e,h)>f){g=!1;break}if(!g)break}return g?!0:!1};b.OH=function(a,b,f){if(a.F()!=b.F())return!1;var e=new c.b,
h=new c.b,g=!0;f*=f;for(var k=0;k<a.F();k++)if(a.w(k,e),b.w(k,h),c.b.Yb(e,h)>f){g=!1;break}return g?!0:!1};b.Pw=function(a,b,f,e,h,g){var k=!1,m;a.F()>b.F()?(e&&(e=!1,k=!0),m=b):(m=a,a=b);b=null;if(h||g||k){b=new c.Wk(a.F());for(var r=0;r<a.F();r++)b.write(r,0)}var r=new c.i,q=new c.i,n=new c.i;m.o(r);a.o(q);r.P(f,f);q.P(f,f);n.K(r);n.Ga(q);for(var q=new c.b,u=new c.b,p=!0,t=c.Ia.nB(a,n),x=t.Re(),F=f*f,D=0;D<m.F();D++)if(m.w(D,q),n.contains(q)){var y=!1;r.K(q.x,q.y,q.x,q.y);x.Bh(r,f);for(var z=x.next();-1!=
z&&!(z=t.da(z),a.w(z,u),c.b.Yb(q,u)<=F&&((h||g||k)&&b.write(z,1),y=!0,e));z=x.next());if(!y&&(p=!1,h||e))return!1}else{if(h||e)return!1;p=!1}if(g&&p)return!1;if(e)return!0;for(r=0;r<a.F();r++)if(1==b.read(r)){if(g)return!0}else if(h||k)return!1;return g?!1:!0};b.kA=function(a,b,f){var e;a.F()>b.F()?e=b:(e=a,a=b);b=new c.i;var h=new c.i,g=new c.i;e.o(b);a.o(h);b.P(f,f);h.P(f,f);g.K(b);g.Ga(h);for(var h=new c.b,k=new c.b,m=f*f,r=c.Ia.nB(a,g),q=r.Re(),n=0;n<e.F();n++)if(e.w(n,h),g.contains(h)){b.K(h.x,
h.y,h.x,h.y);q.Bh(b,f);for(var u=q.next();-1!=u;u=q.next())if(a.w(r.da(u),k),c.b.Yb(h,k)<=m)return!0}return!1};b.Vv=function(a,d,c,e){return b.Wf(a,d,c,e)&&b.Wf(d,a,c,e)};b.Wf=function(a,d,f,e){function h(a,b){return n.HB(a,b)}var g=!0,k=[0,0],m=[0,0],r=0,q=new c.ga(0),n=new b,u,t=new c.i,w=new c.i,x=new c.i;a.o(t);d.o(w);t.P(f,f);w.P(f,f);x.K(t);x.Ga(w);a=a.Ca();var w=d.Ca(),F=null,D=F=null,y=d.pb;null!=y?(F=y.Ab,D=y.nn,null==F&&(F=c.Ia.hj(d,x))):F=c.Ia.hj(d,x);d=F.Re();y=null;for(null!=D&&(y=D.Re());a.kb();)for(;a.La();){var z=
!1,A=a.ia();A.o(t);if(!t.jc(x))return!1;if(null!=y&&(y.Bh(t,f),-1==y.next()))return g=!1;D=A.Zb();d.Fn(A,f);for(u=d.next();-1!=u;u=d.next()){w.Sb(F.da(u));u=w.ia();var B=A.Ga(u,null,k,m,f);if(2==B&&(!e||m[0]<=m[1])){var B=k[0],C=k[1],E=m[0],G=m[1];if(B*D<=f&&(1-C)*D<=f){z=!0;r=0;q.resize(0);n.Sg.length=0;for(var H=a.Jb(),E=!0;E;){if(a.La()){A=a.ia();D=A.Zb();B=A.Ga(u,null,k,m,f);if(2==B&&(!e||m[0]<=m[1])&&(B=k[0],C=k[1],B*D<=f&&(1-C)*D<=f)){H=a.Jb();continue}if(w.La()&&(u=w.ia(),B=A.Ga(u,null,k,m,
f),2==B&&(!e||m[0]<=m[1])&&(B=k[0],C=k[1],B*D<=f&&(1-C)*D<=f))){H=a.Jb();continue}}E=!1}H!=a.Jb()&&(a.Sb(H),a.ia());break}else H=a.Jb(),u=p.Oa(H,a.Qa,B,C,w.Jb(),w.Qa,E,G),n.Sg.push(u),q.add(q.size)}}if(!z){if(r==n.Sg.length)return!1;1<q.size-r&&q.xd(r,q.size,h);for(z=0;r<n.Sg.length;r++)if(u=n.Sg[q.get(r)],!(u.Oi<z&&u.ji<z)){if(D*(u.Oi-z)>f)return!1;z=u.ji;if(D*(1-z)<=f||1==z)break}if(D*(1-z)>f)return!1;r=0;q.resize(0);n.Sg.length=0}}return g};b.dA=function(a,d,f){if(1>b.Zv(a,d,f,null))return!1;var e=
new c.i,h=new c.i;a.o(e);d.o(h);var g=b.lm(e,h,f),e=b.lm(h,e,f);return g&&e?!0:g&&!e?!b.Wf(d,a,f,!1):e&&!g?!b.Wf(a,d,f,!1):!b.Wf(a,d,f,!1)&&!b.Wf(d,a,f,!1)};b.Zv=function(a,d,f,e){function h(a,b){return w.HB(a,b)}var g,k;a.Iw()>d.Iw()?(g=d,k=a):(g=a,k=d);a=g.Ca();d=k.Ca();var m=[0,0],r=[0,0],q=-1,n=0,u,t=new c.ga(0),w=new b,x,F=new c.i,D=new c.i,y=new c.i;g.o(F);k.o(D);F.P(f,f);D.P(f,f);y.K(F);y.Ga(D);g=null;null!=e&&(g=new c.b);u=D=D=null;var z=k.pb;null!=z?(D=z.Ab,u=z.nn,null==D&&(D=c.Ia.hj(k,y))):
D=c.Ia.hj(k,y);k=D.Re();z=null;for(null!=u&&(z=u.Re());a.kb();)for(u=0;a.La();){var A=a.ia();A.o(F);if(F.jc(y)){if(null!=z&&(z.Bh(F,f),-1==z.next()))continue;var B=A.Zb();k.Fn(A,f);for(var C=k.next();-1!=C;C=k.next()){var E=D.da(C);d.Sb(E);x=d.ia();var G=x.Zb(),H=A.Ga(x,null,m,r,f);if(0<H){var C=m[0],q=r[0],I=2==H?m[1]:NaN,K=2==H?r[1]:NaN;if(2==H){if(B*(I-C)>f)return q=1;var L=B*(I-C);if(d.La()){x=d.ia();H=A.Ga(x,null,m,null,f);if(2==H){var H=m[0],J=m[1],H=B*(J-H);if(L+H>f)return q=1}d.Sb(E);d.ia()}if(!d.wl()){d.oi();
x=d.oi();H=A.Ga(x,null,m,null,f);if(2==H&&(H=m[0],J=m[1],H=B*(J-H),L+H>f))return q=1;d.Sb(E);d.ia()}if(a.La()){E=a.Jb();A=a.ia();H=A.Ga(x,null,m,null,f);if(2==H&&(H=m[0],J=m[1],H=B*(J-H),L+H>f))return q=1;a.Sb(E);a.ia()}if(!a.wl()){E=a.Jb();a.oi();A=a.oi();H=A.Ga(x,null,m,null,f);if(2==H&&(H=m[0],J=m[1],H=G*(J-H),L+H>f))return q=1;a.Sb(E);a.ia()}x=p.Oa(a.Jb(),a.Qa,C,I,d.Jb(),d.Qa,q,K);w.Sg.push(x);t.add(t.size)}q=0;null!=e&&(A.Kb(C,g),e.add(g.x),e.add(g.y))}}if(n<w.Sg.length){t.xd(n,t.size,h);A=0;
for(C=w.Sg[t.get(n)].Jl;n<w.Sg.length;n++)if(x=w.Sg[t.get(n)],!(x.Oi<A&&x.ji<A))if(B*(x.Oi-A)>f)u=B*(x.ji-x.Oi),A=x.ji,C=x.Jl;else{x.Jl!=C?(u=B*(x.ji-x.Oi),C=x.Jl):u+=B*(x.ji-x.Oi);if(u>f)return q=1;A=x.ji;if(1==A)break}B*(1-A)>f&&(u=0);n=0;t.resize(0);w.Sg.length=0}}}return q};b.BD=function(a,b,f){var e=a.Ca(),h=b.Ca();for(a=new c.cl(a,b,f,!1);a.next();){b=a.jk();var g=a.ek();e.Sb(b);h.Sb(g);b=e.ia();if(0<h.ia().Ga(b,null,null,null,f))return!0}return!1};b.bA=function(a,b,f,e){var h=a.Ca(),g=new c.i,
k=new c.i,m=new c.i;a.o(g);b.o(k);g.P(f,f);g.contains(k);k.P(f,f);m.K(g);m.Ga(k);g=a.pb;null!=g?(g=g.Ab,null==g&&(g=c.Ia.hj(a,m))):g=c.Ia.hj(a,m);a=g.Re();for(var r=new c.b,q=new c.b,n=f*f,u=0;u<b.F();u++)if(b.w(u,r),m.contains(r)){k.K(r.x,r.y,r.x,r.y);a.Bh(k,f);for(var p=!1,t=a.next();-1!=t;t=a.next())if(h.Sb(g.da(t)),t=h.ia(),t.Kb(t.Gd(r,!1),q),c.b.Yb(q,r)<=n){p=!0;break}if(e){if(!p)return!1}else if(p)return!0}return e?!0:!1};b.ex=function(a,b,f){var e=new c.b,h=f*f,g=a.Ca();a=a.pb;if(null!=a&&
(a=a.Ab,null!=a)){var k=new c.i;k.K(b);f=a.xw(k,f);for(k=f.next();-1!=k;k=f.next())if(g.Sb(a.da(k)),g.La()){var k=g.ia(),m=k.Gd(b,!1);k.Kb(m,e);if(c.b.Yb(b,e)<=h)return!0}return!1}for(a=new c.i;g.kb();)for(;g.La();)if(k=g.ia(),k.o(a),a.P(f,f),a.contains(b)&&(m=k.Gd(b,!1),k.Kb(m,e),c.b.Yb(b,e)<=h))return!0;return!1};b.Xz=function(a,d,c){return b.ex(a,d,c)&&!b.bw(a,d,c)};b.bw=function(a,d,c){a=a.Rf();return!b.nr(a,d,c)};b.aA=function(a,b,f){if(a.Hm()){var e=new c.yb(b.v,b.C,b.v,b.G),h=new c.yb(b.v,
b.G,b.B,b.G),g=new c.yb(b.B,b.G,b.B,b.C);b=new c.yb(b.B,b.C,b.v,b.C);for(a=a.Ca();a.kb();)for(;a.La();){var k=a.ia();if(k.jc(e,f)||k.jc(h,f)||k.jc(g,f)||k.jc(b,f))return!0}}else{e=new c.i;e.K(b);e.P(f,f);f=a.mc(0);h=new c.b;g=new c.b;b=new c.b;for(var k=new c.b,m=0,r=a.ea();m<r;m++)for(var q=!0,n=a.Ea(m),u=a.Dc(m);n<u;n++)if(q)f.dc(2*n,g),q=!1;else{f.dc(2*n,h);b.J(g);k.J(h);if(0!=e.Nv(b,k))return!0;g.J(h)}}return!1};b.ec=function(a,d,f){var e=a.D(),h=d.D();if(c.T.Th(e)){var g=a.pb;if(null!=g&&(g=
g.hi,null!=g))if(33==h){var k=d.w(),k=g.Kk(k.x,k.y);if(1==k)return 1;if(0==k)return 4}else{k=new c.i;d.o(k);k=g.Dn(k);if(1==k)return 1;if(0==k)return 4;if(f&&c.T.Th(h)&&b.wz(d,g))return 1073741824}}if(c.T.Th(h)&&(g=d.pb,null!=g&&(g=g.hi,null!=g)))if(33==e){a=a.w();k=g.Kk(a.x,a.y);if(1==k)return 2;if(0==k)return 4}else{d=new c.i;a.o(d);k=g.Dn(d);if(1==k)return 2;if(0==k)return 4;if(f&&c.T.Th(e)&&b.wz(a,g))return 1073741824}return 0};b.wz=function(a,b){for(var f=a.F(),e=new c.b,h=0;h<f;h++)if(a.w(h,
e),1==b.Kk(e.x,e.y))return!0;return!1};b.vD=function(a,b,f,e){for(var h=1<=a.qj(0)&&1<=b.qj(0),g=a.Ca(),k=b.Ca(),m=[0,0],r=[0,0],q=new c.cl(a,b,f,!1),n=!1;q.next();){var u=q.jk(),p=q.ek();g.Sb(u);k.Sb(p);u=g.ia();p=k.ia().Ga(u,null,r,m,f);if(2==p){n=m[0];p=m[1];u=u.Zb();if(h&&(p-n)*u>f)return!1;n=!0}else if(0!=p){n=m[0];u=r[0];if(0<n&&1>n&&0<u&&1>u)return!1;n=!0}}if(!n)return!1;g=new c.i;k=new c.i;h=new c.i;a.o(g);b.o(k);g.P(1E3*f,1E3*f);k.P(1E3*f,1E3*f);h.K(g);h.Ga(k);return 10<a.F()&&(a=c.Ed.clip(a,
h,f,0),a.s())||10<b.F()&&(b=c.Ed.clip(b,h,f,0),b.s())?!1:c.el.ur(a,b,f,"F********",e)};b.WC=function(a,d,f,e){var h=1<=a.qj(0)&&1<=d.qj(0),g=new c.i,k=new c.i,m=new c.i;a.o(g);d.o(k);for(var r=!1,q=b.lm(g,k,f),n=b.lm(k,g,f),u=a.Ca(),p=d.Ca(),t=[0,0],x=[0,0],F=new c.cl(a,d,f,!1);F.next();){var D=F.jk(),y=F.ek();u.Sb(D);p.Sb(y);y=u.ia();D=p.ia().Ga(y,null,x,t,f);if(2==D){var D=t[0],z=t[1],y=y.Zb();if(h&&(z-D)*y>f&&(r=!0,q&&n))return!0}else if(0!=D&&(D=t[0],y=x[0],0<D&&1>D&&0<y&&1>y))return!0}h=new c.i;
u=new c.i;h.K(g);h.P(1E3*f,1E3*f);u.K(k);u.P(1E3*f,1E3*f);m.K(h);m.Ga(u);g="";g=r?g+"**":g+"T*";if(q){if(10<d.F()&&(d=c.Ed.clip(d,m,f,0),d.s()))return!1;g+="****"}else g+="T***";if(n){if(10<a.F()&&(a=c.Ed.clip(a,m,f,0),a.s()))return!1;g+="***"}else g+="T**";return c.el.ur(a,d,f,g.toString(),e)};b.XB=function(a,d,f,e){var h=[!1],g=b.cB(a,d,f,h);if(h[0])return g;h=new c.i;d.o(h);h.P(1E3*f,1E3*f);return 10<a.F()&&(a=c.Ed.clip(a,h,f,0),a.s())?!1:c.el.ru(a,d,f,e)};b.cB=function(a,b,f,e){e[0]=!1;for(var h=
a.Ca(),g=b.Ca(),k=[0,0],m=[0,0],r=new c.cl(a,b,f,!1),q=!1;r.next();){var n=r.jk(),u=r.ek();h.Sb(n,-1);g.Sb(u,-1);n=h.ia();n=g.ia().Ga(n,null,m,k,f);if(0!=n&&(q=!0,1==n&&(n=k[0],u=m[0],0<n&&1>n&&0<u&&1>u)))return e[0]=!0,!1}if(!q){e[0]=!0;k=new c.i;a.o(k);k.P(f,f);r=a;q=!1;m=new c.i;e=0;for(h=b.ea();e<h;e++)if(0<b.Ha(e)){b.Ti(e,m);if(k.jc(m)){if(g=b.Fa(b.Ea(e)),g=c.ff.xl(r,g,0),0==g)return!1}else return!1;q||(!c.ff.An(a,b.ea()-1)||null!=a.pb&&null!=a.pb.Ab?r=a:(g=new c.Ka,a.copyTo(g),g.cj(1),r=g),
q=!0)}if(1==a.ea()||1607==b.D())return!0;k=new c.i;b.o(k);k.P(f,f);m=b;r=!1;f=new c.i;e=0;for(h=a.ea();e<h;e++)if(0<a.Ha(e)){a.Ti(e,f);if(k.jc(f)&&(g=a.Fa(a.Ea(e)),g=c.ff.xl(m,g,0),1==g))return!1;r||(!c.ff.An(b,a.ea()-1)||null!=b.pb&&null!=b.pb.Ab?m=b:(g=new c.Ka,b.copyTo(g),g.cj(1),m=g),r=!0)}return!0}return!1};b.xE=function(a,b,f,e){for(var h=a.Ca(),g=b.Ca(),k=[0,0],m=[0,0],r=new c.cl(a,b,f,!1),q=!1;r.next();){var n=r.jk(),u=r.ek();h.Sb(n);g.Sb(u);n=h.ia();n=g.ia().Ga(n,null,m,k,f);if(2==n)q=!0;
else if(0!=n){q=k[0];n=m[0];if(0<q&&1>q&&0<n&&1>n)return!1;q=!0}}if(!q)return!1;g=new c.i;k=new c.i;h=new c.i;a.o(g);b.o(k);g.P(1E3*f,1E3*f);k.P(1E3*f,1E3*f);h.K(g);h.Ga(k);return 10<a.F()&&(a=c.Ed.clip(a,h,f,0),a.s())||10<b.F()&&(b=c.Ed.clip(b,h,f,0),b.s())?!1:c.el.Vl(a,b,f,"F********",e)};b.gC=function(a,d,f,e){for(var h=a.Ca(),g=d.Ca(),k=[0,0],m=[0,0],r=new c.cl(a,d,f,!1),q=!1;r.next();){var n=r.jk(),u=r.ek();h.Sb(n);g.Sb(u);n=h.ia();n=g.ia().Ga(n,null,m,k,f);if(2==n)q=!0;else if(0!=n){q=k[0];
n=m[0];if(0<q&&1>q&&0<n&&1>n)return!0;q=!0}}if(!q)return!1;g=new c.i;k=new c.i;m=new c.i;r=new c.i;h=new c.i;a.o(g);d.o(k);return b.lm(k,g,f)?(m.K(g),m.P(1E3*f,1E3*f),r.K(k),r.P(1E3*f,1E3*f),h.K(m),h.Ga(r),10<a.F()&&(a=c.Ed.clip(a,h,f,0),a.s())||10<d.F()&&(d=c.Ed.clip(d,h,f,0),d.s())?!1:f=c.el.Vl(a,d,f,"T********",e)):f=c.el.Vl(a,d,f,"T*****T**",e)};b.aC=function(a,d,f,e){var h=[!1],g=b.cB(a,d,f,h);if(h[0])return g;h=new c.i;d.o(h);h.P(1E3*f,1E3*f);return 10<a.F()&&(a=c.Ed.clip(a,h,f,0),a.s())?!1:
c.el.dy(a,d,f,e)};b.vB=function(a,b,f){return 1==c.fd.ge(a,b,f)?!0:!1};b.uD=function(a,b,f){return 2==c.fd.ge(a,b,f)?!0:!1};b.nr=function(a,b,f){var e=new c.b;f*=f;for(var h=0;h<a.F();h++)if(a.w(h,e),c.b.Yb(e,b)<=f)return!1;return!0};b.prototype.HB=function(a,b){var c=this.Sg[a],e=this.Sg[b];return c.Jl<e.Jl||c.Jl==e.Jl&&(c.Vt<e.Vt||c.Vt==e.Vt&&(c.Oi<e.Oi||c.Oi==e.Oi&&(c.ji<e.ji||c.ji==e.ji&&c.aE<e.aE)))?-1:1};return b}();c.gd=g})(t||(t={}));(function(c){var p;(function(b){b[b.InteriorInterior=0]=
"InteriorInterior";b[b.InteriorBoundary=1]="InteriorBoundary";b[b.InteriorExterior=2]="InteriorExterior";b[b.BoundaryInterior=3]="BoundaryInterior";b[b.BoundaryBoundary=4]="BoundaryBoundary";b[b.BoundaryExterior=5]="BoundaryExterior";b[b.ExteriorInterior=6]="ExteriorInterior";b[b.ExteriorBoundary=7]="ExteriorBoundary";b[b.ExteriorExterior=8]="ExteriorExterior"})(p||(p={}));var g;(function(b){b[b.AreaAreaPredicates=0]="AreaAreaPredicates";b[b.AreaLinePredicates=1]="AreaLinePredicates";b[b.LineLinePredicates=
2]="LineLinePredicates";b[b.AreaPointPredicates=3]="AreaPointPredicates";b[b.LinePointPredicates=4]="LinePointPredicates";b[b.PointPointPredicates=5]="PointPointPredicates"})(g||(g={}));p=function(){function b(){this.Wd=0;this.h=new c.fs;this.A=[0,0,0,0,0,0,0,0,0];this.Ta=[0,0,0,0,0,0,0,0,0];this.Y=[!1,!1,!1,!1,!1,!1,!1,!1,!1];this.Nl=this.Zt=-1}b.py=function(a,b,f,e,h){if(9!=e.length)throw c.g.ra("relation string length has to be 9 characters");for(var g=0;9>g;g++){var k=e.charAt(g);if("*"!=k&&"T"!=
k&&"F"!=k&&"0"!=k&&"1"!=k&&"2"!=k)throw c.g.ra("relation string");}g=this.ZN(e,a.fb(),b.fb());if(0!=g)return c.gd.qy(a,b,f,g,h);g=new c.i;a.o(g);k=new c.i;b.o(k);var m=new c.i;m.K(g);m.Db(k);f=c.Ia.zd(f,m,!1);a=this.MB(a,f);b=this.MB(b,f);if(a.s()||b.s())return this.tR(a,b,e);g=b.D();k=!1;switch(a.D()){case 1736:switch(g){case 1736:k=this.ur(a,b,f,e,h);break;case 1607:k=this.Vl(a,b,f,e,h);break;case 33:k=this.tr(a,b,f,e,h);break;case 550:k=this.sr(a,b,f,e,h)}break;case 1607:switch(g){case 1736:k=
this.Vl(b,a,f,this.Ko(e),h);break;case 1607:k=this.ey(a,b,f,e,h);break;case 33:k=this.wr(a,b,f,e,h);break;case 550:k=this.vr(a,b,f,e,h)}break;case 33:switch(g){case 1736:k=this.tr(b,a,f,this.Ko(e),h);break;case 1607:k=this.wr(b,a,f,this.Ko(e),h);break;case 33:k=this.MQ(a,b,f,e);break;case 550:k=this.or(b,a,f,this.Ko(e),h)}break;case 550:switch(g){case 1736:k=this.sr(b,a,f,this.Ko(e),h);break;case 1607:k=this.vr(b,a,f,this.Ko(e),h);break;case 550:k=this.Wx(a,b,f,e,h);break;case 33:k=this.or(a,b,f,
e,h)}break;default:k=!1}return k};b.ur=function(a,d,f,e,h){var g=new b;g.pi();g.si(e);g.sF();var k=new c.i,m=new c.i;a.o(k);d.o(m);e=!1;c.gd.mj(k,m,f)&&(g.As(a,d),e=!0);e||(k=c.gd.ec(a,d,!1),4==k?(g.As(a,d),e=!0):1==k?(g.Bv(d),e=!0):2==k&&(g.ZA(a),e=!0));e||(e=new c.ed,a=e.Eb(a),d=e.Eb(d),g.In(e,f,h),g.ro(a,d),g.h.wg());return b.Mf(g.A,g.Hc)};b.ru=function(a,d,f,e){var h=new b;h.pi();h.si("T*****F**");h.sF();var g=new c.i,k=new c.i;a.o(g);d.o(k);var m=!1;c.gd.mj(g,k,f)&&(h.As(a,d),m=!0);m||(g=c.gd.ec(a,
d,!1),4==g?(h.As(a,d),m=!0):1==g?(h.Bv(d),m=!0):2==g&&(h.ZA(a),m=!0));if(m)return g=this.Mf(h.A,h.Hc);m=new c.ed;a=m.Eb(a);g=m.Eb(d);c.aj.$(m,f,e,!1);f=m.hf(g).Rf();m.wo(0,!0,!0);c.mm.$(m,a,-1,!1,e);if(0==m.F(a))return!1;c.mm.$(m,g,-1,!1,e);h.Np(m,e);d=0==m.F(g);if(!d&&(h.ro(a,g),h.h.wg(),g=this.Mf(h.A,h.Hc),!g))return g;a=m.hf(a);m=new c.ed;a=m.Eb(a);g=m.Eb(f);h.Np(m,e);h.Wd=0;h.pi();h.si(d?"T*****F**":"******F**");h.wy();h.ro(a,g);h.h.wg();return g=this.Mf(h.A,h.Hc)};b.Vl=function(a,d,f,e,h){var g=
new b;g.pi();g.si(e);g.wy();var k=new c.i,m=new c.i;a.o(k);d.o(m);e=!1;c.gd.mj(k,m,f)&&(g.Bs(a,d),e=!0);e||(k=c.gd.ec(a,d,!1),4==k?(g.Bs(a,d),e=!0):1==k&&(g.$A(d),e=!0));e||(e=new c.ed,a=e.Eb(a),d=e.Eb(d),g.In(e,f,h),g.Ig=g.h.to(),b.ds(d,g.h,g.Ig),g.ro(a,d),g.h.uo(g.Ig),g.h.wg());return b.Mf(g.A,g.Hc)};b.dy=function(a,d,f,e){var h=new b;h.pi();h.si("T*****F**");h.wy();var g=new c.i,k=new c.i;a.o(g);d.o(k);var m=!1;c.gd.mj(g,k,f)&&(h.Bs(a,d),m=!0);m||(g=c.gd.ec(a,d,!1),4==g?(h.Bs(a,d),m=!0):1==g&&
(h.$A(d),m=!0));if(m)return f=this.Mf(h.A,h.Hc);m=new c.ed;a=m.Eb(a);d=m.Eb(d);h.In(m,f,e);if(0==m.F(a))return!1;h.ro(a,d);h.h.wg();return f=this.Mf(h.A,h.Hc)};b.sr=function(a,d,f,e,h){var g=new b;g.pi();g.si(e);g.tF();var k=new c.i,m=new c.i;a.o(k);d.o(m);e=!1;c.gd.mj(k,m,f)&&(g.Cs(a),e=!0);e||(k=c.gd.ec(a,d,!1),4==k?(g.Cs(a),e=!0):1==k&&(g.bK(),e=!0));e||(e=new c.ed,a=e.Eb(a),d=e.Eb(d),g.In(e,f,h),g.Pv(a,d),g.h.wg());return b.Mf(g.A,g.Hc)};b.ey=function(a,d,f,e,h){var g=new b;g.pi();g.si(e);g.aS();
e=new c.i;var k=new c.i;a.o(e);d.o(k);var m=!1;c.gd.mj(e,k,f)&&(g.zD(a,d),m=!0);m||4!=c.gd.ec(a,d,!1)||(g.zD(a,d),m=!0);m||(e=new c.ed,a=e.Eb(a),d=e.Eb(d),g.In(e,f,h),g.oh=g.h.to(),g.Ig=g.h.to(),b.ds(a,g.h,g.oh),b.ds(d,g.h,g.Ig),g.ro(a,d),g.h.uo(g.oh),g.h.uo(g.Ig),g.h.wg());return b.Mf(g.A,g.Hc)};b.vr=function(a,d,f,e,h){var g=new b;g.pi();g.si(e);g.HF();e=new c.i;var k=new c.i;a.o(e);d.o(k);var m=!1;c.gd.mj(e,k,f)&&(g.dx(a),m=!0);m||4!=c.gd.ec(a,d,!1)||(g.dx(a),m=!0);m||(e=new c.ed,a=e.Eb(a),d=e.Eb(d),
g.In(e,f,h),g.oh=g.h.to(),b.ds(a,g.h,g.oh),g.Pv(a,d),g.h.uo(g.oh),g.h.wg());return b.Mf(g.A,g.Hc)};b.Wx=function(a,d,f,e,h){var g=new b;g.pi();g.si(e);g.MF();e=new c.i;var k=new c.i;a.o(e);d.o(k);var m=!1;c.gd.mj(e,k,f)&&(g.ME(),m=!0);m||(e=new c.ed,a=e.Eb(a),d=e.Eb(d),g.In(e,f,h),g.Pv(a,d),g.h.wg());return b.Mf(g.A,g.Hc)};b.tr=function(a,d,f,e){var h=new b;h.pi();h.si(e);h.tF();var g=new c.i;a.o(g);d=d.w();var k=!1;c.gd.qu(d,g,f)&&(h.Cs(a),k=!0);k||(f=c.fd.ge(a,d,f),1==f?(h.A[0]=0,h.A[2]=2,h.A[3]=
-1,h.A[5]=1,h.A[6]=-1):2==f?(h.A[6]=-1,0!=a.Lh()?(h.A[0]=-1,h.A[3]=0,h.A[2]=2,h.A[5]=1):(h.A[0]=0,h.A[3]=-1,h.A[5]=-1,f=new c.i,a.o(f),h.A[2]=0==f.ba()&&0==f.aa()?-1:1)):h.Cs(a));return this.Mf(h.A,e)};b.wr=function(a,d,f,e,h){var g=new b;g.pi();g.si(e);g.HF();var k=new c.i;a.o(k);e=d.w();var m=!1;c.gd.qu(e,k,f)&&(g.dx(a),m=!0);if(!m){var k=null,r=m=!1;if(g.Y[0]||g.Y[6])c.gd.ex(a,e,f)?(g.Y[0]&&(k=c.Gh.il(a,h),r=!c.gd.nr(k,e,f),m=!0,g.A[0]=r?-1:0),g.A[6]=-1):(g.A[0]=-1,g.A[6]=0);g.Y[3]&&(null!=k&&
k.s()?g.A[3]=-1:(m||(null==k&&(k=c.Gh.il(a,h)),r=!c.gd.nr(k,e,f),m=!0),g.A[3]=r?0:-1));g.Y[5]&&(null!=k&&k.s()?g.A[5]=-1:m&&!r?g.A[5]=0:(null==k&&(k=c.Gh.il(a,h)),h=c.gd.lu(k,d,f),g.A[5]=h?-1:0));g.Y[2]&&(0!=a.Zb()?g.A[2]=1:(h=new c.pe(a.description),h.Pd(a,0,a.F()),a=c.gd.lu(h,d,f),g.A[2]=a?-1:0))}return this.Mf(g.A,g.Hc)};b.or=function(a,d,f,e){var h=new b;h.pi();h.si(e);h.MF();var g=new c.i;a.o(g);d=d.w();var k=!1;c.gd.qu(d,g,f)&&(h.ME(),k=!0);if(!k){g=!1;k=!0;f*=f;for(var m=0;m<a.F();m++){var r=
a.Fa(m);c.b.Yb(r,d)<=f?g=!0:k=!1;if(g&&!k)break}g?(h.A[0]=0,h.A[2]=k?-1:0,h.A[6]=-1):(h.A[0]=-1,h.A[2]=0,h.A[6]=0)}return b.Mf(h.A,e)};b.MQ=function(a,d,f,e){a=a.w();d=d.w();for(var h=[],g=0;9>g;g++)h[g]=-1;c.b.Yb(a,d)<=f*f?h[0]=0:(h[2]=0,h[6]=0);h[8]=2;return b.Mf(h,e)};b.Mf=function(a,b){for(var c=0;9>c;c++)switch(b.charAt(c)){case "T":if(-1==a[c])return!1;break;case "F":if(-1!=a[c])return!1;break;case "0":if(0!=a[c])return!1;break;case "1":if(1!=a[c])return!1;break;case "2":if(2!=a[c])return!1}return!0};
b.tR=function(a,b,f){var e=[-1,-1,-1,-1,-1,-1,-1,-1,-1];if(a.s()&&b.s()){for(var h=0;9>h;h++)e[h]=-1;return this.Mf(e,f)}h=!1;a.s()&&(a=b,h=!0);e[0]=-1;e[1]=-1;e[3]=-1;e[4]=-1;e[6]=-1;e[7]=-1;e[8]=2;b=a.D();c.T.Kc(b)?1736==b?0!=a.Lh()?(e[2]=2,e[5]=1):(e[5]=-1,b=new c.i,a.o(b),e[2]=0==b.ba()&&0==b.aa()?0:1):(b=0!=a.Zb(),e[2]=b?1:0,e[5]=c.Gh.Mo(a)?0:-1):(e[2]=0,e[5]=-1);h&&this.nG(e);return this.Mf(e,f)};b.ZN=function(a,d,c){return b.ER(a)?3:b.XP(a)?4:b.HR(a,d,c)?8:b.rP(a,d,c)?16:b.vO(a)?1:b.YI(a,d,
c)?32:0};b.ER=function(a){return"T"==a.charAt(0)&&"*"==a.charAt(1)&&"F"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&"F"==a.charAt(5)&&"F"==a.charAt(6)&&"F"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1};b.XP=function(a){return"F"==a.charAt(0)&&"F"==a.charAt(1)&&"*"==a.charAt(2)&&"F"==a.charAt(3)&&"F"==a.charAt(4)&&"*"==a.charAt(5)&&"*"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1};b.HR=function(a,b,c){if(0==b&&0==c)return!1;if(2!=b||2!=c)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==c&&"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!=c&&"F"==a.charAt(0)&&"*"==a.charAt(1)&&"*"==a.charAt(2)&&"*"==a.charAt(3)&&"T"==a.charAt(4)&&"*"==a.charAt(5)&&"*"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1};b.rP=function(a,b,c){return b>
c?"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==c&&"0"==a.charAt(0)&&"*"==a.charAt(1)&&"*"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&&"*"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1};b.vO=function(a){return"T"==a.charAt(0)&&"*"==a.charAt(1)&&"*"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&&"F"==a.charAt(6)&&"F"==
a.charAt(7)&&"*"==a.charAt(8)?!0:!1};b.YI=function(a,b,c){if(b==c){if(1!=b)return"T"==a.charAt(0)&&"*"==a.charAt(1)&&"T"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&&"T"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8)?!0:!1;if("1"==a.charAt(0)&&"*"==a.charAt(1)&&"T"==a.charAt(2)&&"*"==a.charAt(3)&&"*"==a.charAt(4)&&"*"==a.charAt(5)&&"T"==a.charAt(6)&&"*"==a.charAt(7)&&"*"==a.charAt(8))return!0}return!1};b.ds=function(a,b,c){a=b.ya(a);for(var e=b.Ce;-1!=e;e=b.Bf(e))if(0!=(b.ld(e)&
a)){var h=b.ue(e);if(-1==h)b.fm(e,c,0);else{var g=h,k=0;do 0!=(b.Fg(g)&a)&&k++,g=b.Vb(b.sa(g));while(g!=h);b.fm(e,c,k)}}};b.Ko=function(a){var b;b=""+a.charAt(0);b+=a.charAt(3);b+=a.charAt(6);b+=a.charAt(1);b+=a.charAt(4);b+=a.charAt(7);b+=a.charAt(2);b+=a.charAt(5);return b+=a.charAt(8)};b.prototype.pi=function(){for(var a=0;9>a;a++)this.A[a]=-2,this.Ta[a]=-2};b.nG=function(a){var b=a[1],c=a[2],e=a[5];a[1]=a[3];a[2]=a[6];a[5]=a[7];a[3]=b;a[6]=c;a[7]=e};b.prototype.si=function(a){this.Hc=a;for(a=
0;9>a;a++)"*"!=this.Hc.charAt(a)?(this.Y[a]=!0,this.Wd++):this.Y[a]=!1};b.prototype.PF=function(){for(var a=0;9>a;a++)this.Y[a]&&-2==this.A[a]&&(this.A[a]=-1,this.Y[a]=!1)};b.prototype.cc=function(a){if(-2==this.A[a])return!1;if(-1==this.A[a])return this.Y[a]=!1,this.Wd--,!0;if("T"!=this.Hc.charAt(a)&&"F"!=this.Hc.charAt(a)){if(this.A[a]<this.Ta[a])return!1;this.Y[a]=!1;this.Wd--;return!0}this.Y[a]=!1;this.Wd--;return!0};b.prototype.sF=function(){this.Zt=0;this.Ta[0]=2;this.Ta[1]=1;this.Ta[2]=2;this.Ta[3]=
1;this.Ta[4]=1;this.Ta[5]=1;this.Ta[6]=2;this.Ta[7]=1;this.Ta[8]=2;this.Y[8]&&(this.A[8]=2,this.Y[8]=!1,this.Wd--)};b.prototype.wy=function(){this.Zt=1;this.Nl=3;this.Ta[0]=1;this.Ta[1]=0;this.Ta[2]=2;this.Ta[3]=1;this.Ta[4]=0;this.Ta[5]=1;this.Ta[6]=1;this.Ta[7]=0;this.Ta[8]=2;this.Y[8]&&(this.A[8]=2,this.Y[8]=!1,this.Wd--)};b.prototype.aS=function(){this.Zt=2;this.Nl=4;this.Ta[0]=1;this.Ta[1]=0;this.Ta[2]=1;this.Ta[3]=0;this.Ta[4]=0;this.Ta[5]=0;this.Ta[6]=1;this.Ta[7]=0;this.Ta[8]=2;this.Y[8]&&
(this.A[8]=2,this.Y[8]=!1,this.Wd--)};b.prototype.tF=function(){this.Nl=3;this.Ta[0]=0;this.Ta[1]=-1;this.Ta[2]=2;this.Ta[3]=0;this.Ta[4]=-1;this.Ta[5]=1;this.Ta[6]=0;this.Ta[7]=-1;this.Ta[8]=2;this.Y[1]&&(this.A[1]=-1,this.Y[1]=!1,this.Wd--);this.Y[4]&&(this.A[4]=-1,this.Y[4]=!1,this.Wd--);this.Y[7]&&(this.A[7]=-1,this.Y[7]=!1,this.Wd--);this.Y[8]&&(this.A[8]=2,this.Y[8]=!1,this.Wd--)};b.prototype.HF=function(){this.Nl=4;this.Ta[0]=0;this.Ta[1]=-1;this.Ta[2]=1;this.Ta[3]=0;this.Ta[4]=-1;this.Ta[5]=
0;this.Ta[6]=0;this.Ta[7]=-1;this.Ta[8]=2;this.Y[1]&&(this.A[1]=-1,this.Y[1]=!1,this.Wd--);this.Y[4]&&(this.A[4]=-1,this.Y[4]=!1,this.Wd--);this.Y[7]&&(this.A[7]=-1,this.Y[7]=!1,this.Wd--);this.Y[8]&&(this.A[8]=2,this.Y[8]=!1,this.Wd--)};b.prototype.MF=function(){this.Nl=5;this.Ta[0]=0;this.Ta[1]=-1;this.Ta[2]=0;this.Ta[3]=-1;this.Ta[4]=-1;this.Ta[5]=-1;this.Ta[6]=0;this.Ta[7]=-1;this.Ta[8]=2;this.Y[1]&&(this.A[1]=-1,this.Y[1]=!1,this.Wd--);this.Y[3]&&(this.A[3]=-1,this.Y[3]=!1,this.Wd--);this.Y[4]&&
(this.A[4]=-1,this.Y[4]=!1,this.Wd--);this.Y[5]&&(this.A[5]=-1,this.Y[5]=!1,this.Wd--);this.Y[7]&&(this.A[7]=-1,this.Y[7]=!1,this.Wd--);this.Y[8]&&(this.A[8]=2,this.Y[8]=!1,this.Wd--)};b.prototype.$J=function(a,b,c){var e=!0;this.Y[0]&&(this.JO(a,b,c),e=e&&this.cc(0));this.Y[1]&&(this.bD(a,b,1),e=e&&this.cc(1));this.Y[2]&&(this.cD(a,b,c,2),e=e&&this.cc(2));this.Y[3]&&(this.bD(a,c,3),e=e&&this.cc(3));this.Y[4]&&(this.fK(a,b,c),e=e&&this.cc(4));this.Y[5]&&(this.dB(a,c,5),e=e&&this.cc(5));this.Y[6]&&
(this.cD(a,c,b,6),e=e&&this.cc(6));this.Y[7]&&(this.dB(a,b,7),e=e&&this.cc(7));return e};b.prototype.As=function(a,b){this.A[0]=-1;this.A[1]=-1;this.A[3]=-1;this.A[4]=-1;this.hq(a,this.Y[2]?2:-1,this.Hc.charAt(2),this.Y[5]?5:-1,this.Hc.charAt(5));this.hq(b,this.Y[6]?6:-1,this.Hc.charAt(6),this.Y[7]?7:-1,this.Hc.charAt(7))};b.prototype.hq=function(a,b,f,e,h){if(-1!=b||-1!=e)("T"!=f&&"F"!=f&&-1!=b||"T"!=h&&"F"!=h&&-1!=e?0!=a.Lh():1)?(-1!=b&&(this.A[b]=2),-1!=e&&(this.A[e]=1)):(-1!=e&&(this.A[e]=-1),
-1!=b&&(f=new c.i,a.o(f),this.A[b]=0==f.ba()&&0==f.aa()?0:1))};b.prototype.Bv=function(a){this.A[2]=2;this.A[3]=-1;this.A[4]=-1;this.A[5]=1;this.A[6]=-1;this.A[7]=-1;this.hq(a,this.Y[0]?0:-1,this.Hc.charAt(0),this.Y[1]?1:-1,this.Hc.charAt(1))};b.prototype.ZA=function(a){this.Bv(a);b.nG(this.A)};b.prototype.Bs=function(a,b){this.A[0]=-1;this.A[1]=-1;this.A[3]=-1;this.A[4]=-1;if(this.Y[6]){var f=this.Hc.charAt(6),f="T"!=f&&"F"!=f?0!=b.Zb():!0;this.A[6]=f?1:0}this.Y[7]&&(f=c.Gh.Mo(b),this.A[7]=f?0:-1);
this.hq(a,this.Y[2]?2:-1,this.Hc.charAt(2),this.Y[5]?5:-1,this.Hc.charAt(5))};b.prototype.$A=function(a){if(this.Y[0]){var b=this.Hc.charAt(0),b="T"!=b&&"F"!=b?0!=a.Zb():!0;this.A[0]=b?1:0}this.Y[1]&&(a=c.Gh.Mo(a),this.A[1]=a?0:-1);this.A[2]=2;this.A[3]=-1;this.A[4]=-1;this.A[5]=1;this.A[6]=-1;this.A[7]=-1};b.prototype.Cs=function(a){this.A[0]=-1;this.A[3]=-1;this.A[6]=0;this.hq(a,this.Y[2]?2:-1,this.Hc.charAt(2),this.Y[5]?5:-1,this.Hc.charAt(5))};b.prototype.bK=function(){this.A[0]=0;this.A[2]=2;
this.A[3]=-1;this.A[5]=1;this.A[6]=-1};b.prototype.zD=function(a,b){this.A[0]=-1;this.A[1]=-1;this.A[3]=-1;this.A[4]=-1;if(this.Y[2]){var f=this.Hc.charAt(2),f="T"!=f&&"F"!=f?0!=a.Zb():!0;this.A[2]=f?1:0}this.Y[5]&&(f=c.Gh.Mo(a),this.A[5]=f?0:-1);this.Y[6]&&(f=this.Hc.charAt(6),f="T"!=f&&"F"!=f?0!=b.Zb():!0,this.A[6]=f?1:0);this.Y[7]&&(f=c.Gh.Mo(b),this.A[7]=f?0:-1)};b.prototype.dx=function(a){this.A[0]=-1;this.A[3]=-1;if(this.Y[2]){var b=this.Hc.charAt(2),b="T"!=b&&"F"!=b?0!=a.Zb():!0;this.A[2]=
b?1:0}this.Y[5]&&(a=c.Gh.Mo(a),this.A[5]=a?0:-1);this.A[6]=0};b.prototype.ME=function(){this.A[0]=-1;this.A[2]=0;this.A[6]=0};b.prototype.aK=function(a,b,c){var e=!0;this.Y[0]&&(this.KO(a,b),e=e&&this.cc(0));this.Y[1]&&(this.GO(a,b,c,this.Ig),e=e&&this.cc(1));this.Y[2]&&(this.HO(a,b),e=e&&this.cc(2));this.Y[3]&&(this.jK(a,b,c,this.Ig),e=e&&this.cc(3));this.Y[4]&&(this.gK(a,b,c,this.Ig),e=e&&this.cc(4));this.Y[5]&&(this.hK(a,b,c),e=e&&this.cc(5));this.Y[6]&&(this.AM(a,b),e=e&&this.cc(6));this.Y[7]&&
(this.zM(a,b,c,this.Ig),e=e&&this.cc(7));return e};b.prototype.wP=function(a,b,c){var e=!0;this.Y[0]&&(this.NO(a,b,c,this.oh,this.Ig),e=e&&this.cc(0));this.Y[1]&&(this.dD(a,b,c,this.oh,this.Ig,1),e=e&&this.cc(1));this.Y[2]&&(this.eD(a,b,c,2),e=e&&this.cc(2));this.Y[3]&&(this.dD(a,c,b,this.Ig,this.oh,3),e=e&&this.cc(3));this.Y[4]&&(this.lK(a,b,c,this.oh,this.Ig),e=e&&this.cc(4));this.Y[5]&&(this.eB(a,c,this.oh,5),e=e&&this.cc(5));this.Y[6]&&(this.eD(a,c,b,6),e=e&&this.cc(6));this.Y[7]&&(this.eB(a,
b,this.Ig,7),e=e&&this.cc(7));return e};b.prototype.aB=function(a,b,c){var e=!0;this.Y[0]&&(this.LO(a,b),e=e&&this.cc(0));this.Y[2]&&(this.IO(a,b),e=e&&this.cc(2));this.Y[3]&&(this.kK(a,b,c),e=e&&this.cc(3));this.Y[5]&&(this.iK(a,b),e=e&&this.cc(5));this.Y[6]&&(this.BM(a,b),e=e&&this.cc(6));return e};b.prototype.AD=function(a,b,c){var e=!0;this.Y[0]&&(this.OO(a,b,c,this.oh),e=e&&this.cc(0));this.Y[2]&&(this.MO(a,c),e=e&&this.cc(2));this.Y[3]&&(this.nK(a,b,c,this.oh),e=e&&this.cc(3));this.Y[5]&&(this.mK(a,
b,c,this.oh),e=e&&this.cc(5));this.Y[6]&&(this.CM(a,b,c),e=e&&this.cc(6));return e};b.prototype.LQ=function(a,b,c){var e=!0;this.Y[0]&&(this.PO(a,b,c),e=e&&this.cc(0));this.Y[2]&&(this.fD(a,b,c,2),e=e&&this.cc(2));this.Y[6]&&(this.fD(a,c,b,6),e=e&&this.cc(6));return e};b.prototype.JO=function(a,b,c){2!=this.A[0]&&(a=this.h.Qe(a),0!=(a&b)&&0!=(a&c)&&(this.A[0]=2))};b.prototype.bD=function(a,b,c){if(1!=this.A[c]){var e=this.h.Qe(this.h.sa(a));0!=(this.h.Qe(a)&b)&&0!=(e&b)&&(this.A[c]=1)}};b.prototype.cD=
function(a,b,c,e){2!=this.A[e]&&(a=this.h.Qe(a),0!=(a&b)&&0==(a&c)&&(this.A[e]=2))};b.prototype.fK=function(a,b,c){if(1!=this.A[4]){var e=this.h.Fg(a);0!=(e&b)&&0!=(e&c)?this.A[4]=1:0!=this.A[4]&&1!=this.h.tb(this.h.ee(this.h.sa(a)),this.ni)&&(a=this.h.ld(this.h.jf(a)),0!=(a&b)&&0!=(a&c)&&(this.A[4]=0))}};b.prototype.dB=function(a,b,c){if(1!=this.A[c]){var e=this.h.Qe(this.h.sa(a));0==(this.h.Qe(a)&b)&&0==(e&b)&&(this.A[c]=1)}};b.prototype.KO=function(a,b){if(1!=this.A[0]){var c=this.h.Qe(this.h.sa(a));
0!=(this.h.Qe(a)&b)&&0!=(c&b)&&(this.A[0]=1)}};b.prototype.GO=function(a,b,c,e){if(0!=this.A[1]&&1!=this.h.tb(this.h.ee(this.h.sa(a)),this.ni)){var h=this.h.jf(a),g=this.h.ld(h);0==(g&b)&&0!=(this.h.Qe(a)&b)&&(a=this.h.Sf(h,e),0!=(g&c)&&0!=a%2&&(this.A[1]=0))}};b.prototype.HO=function(a,b){2!=this.A[2]&&0!=(this.h.Fg(a)&b)&&(this.A[2]=2)};b.prototype.jK=function(a,b,c,e){if(1!=this.A[3]){var h=this.h.Fg(a);0!=(h&b)&&0!=(h&c)?this.A[3]=1:0!=this.A[3]&&1!=this.h.tb(this.h.ee(this.h.sa(a)),this.ni)&&
(h=this.h.jf(a),a=this.h.ld(h),0!=(a&b)&&(b=this.h.Sf(h,e),0!=(a&c)&&0==b%2&&(this.A[3]=0)))}};b.prototype.gK=function(a,b,c,e){if(0!=this.A[4]&&1!=this.h.tb(this.h.ee(this.h.sa(a)),this.ni)){var h=this.h.jf(a);a=this.h.ld(h);0!=(a&b)&&(b=this.h.Sf(h,e),0!=(a&c)&&0!=b%2&&(this.A[4]=0))}};b.prototype.hK=function(a,b,c){1!=this.A[5]&&(a=this.h.Fg(a),0!=(a&b)&&0==(a&c)&&(this.A[5]=1))};b.prototype.AM=function(a,b){if(1!=this.A[6]){var c=this.h.Qe(this.h.sa(a));0==(this.h.Qe(a)&b)&&0==(c&b)&&(this.A[6]=
1)}};b.prototype.zM=function(a,b,c,e){if(0!=this.A[7]&&1!=this.h.tb(this.h.ee(this.h.sa(a)),this.ni)){var h=this.h.jf(a),g=this.h.ld(h);0==(g&b)&&0==(this.h.Qe(a)&b)&&(a=this.h.Sf(h,e),0!=(g&c)&&0!=a%2&&(this.A[7]=0))}};b.prototype.NO=function(a,b,c,e,h){if(1!=this.A[0]){var g=this.h.Fg(a);0!=(g&b)&&0!=(g&c)?this.A[0]=1:0!=this.A[0]&&1!=this.h.tb(this.h.ee(this.h.sa(a)),this.ni)&&(a=this.h.jf(a),g=this.h.ld(a),0!=(g&b)&&0!=(g&c)&&(b=this.h.Sf(a,e),h=this.h.Sf(a,h),0==b%2&&0==h%2&&(this.A[0]=0)))}};
b.prototype.dD=function(a,b,c,e,h,g){if(0!=this.A[g]&&1!=this.h.tb(this.h.ee(this.h.sa(a)),this.ni)){a=this.h.jf(a);var k=this.h.ld(a);0!=(k&b)&&0!=(k&c)&&(b=this.h.Sf(a,e),h=this.h.Sf(a,h),0==b%2&&0!=h%2&&(this.A[g]=0))}};b.prototype.eD=function(a,b,c,e){1!=this.A[e]&&(a=this.h.Fg(a),0!=(a&b)&&0==(a&c)&&(this.A[e]=1))};b.prototype.lK=function(a,b,c,e,h){if(0!=this.A[4]&&1!=this.h.tb(this.h.ee(this.h.sa(a)),this.ni)){a=this.h.jf(a);var g=this.h.ld(a);0!=(g&b)&&0!=(g&c)&&(b=this.h.Sf(a,e),h=this.h.Sf(a,
h),0!=b%2&&0!=h%2&&(this.A[4]=0))}};b.prototype.eB=function(a,b,c,e){0!=this.A[e]&&1!=this.h.tb(this.h.ee(this.h.sa(a)),this.ni)&&(a=this.h.jf(a),0==(this.h.ld(a)&b)&&0!=this.h.Sf(a,c)%2&&(this.A[e]=0))};b.prototype.LO=function(a,b){0!=this.A[0]&&0==(this.h.ld(a)&b)&&0!=(this.h.oj(this.h.mw(a))&b)&&(this.A[0]=0)};b.prototype.IO=function(a,b){2!=this.A[2]&&0!=(this.h.ld(a)&b)&&(this.A[2]=2)};b.prototype.kK=function(a,b,c){0!=this.A[3]&&(a=this.h.ld(a),0!=(a&b)&&0!=(a&c)&&(this.A[3]=0))};b.prototype.iK=
function(a,b){1!=this.A[5]&&0!=(this.h.ld(a)&b)&&(this.A[5]=1)};b.prototype.BM=function(a,b){0!=this.A[6]&&0==(this.h.ld(a)&b)&&0==(this.h.oj(this.h.mw(a))&b)&&(this.A[6]=0)};b.prototype.OO=function(a,b,c,e){if(0!=this.A[0]){var h=this.h.ld(a);0!=(h&b)&&0!=(h&c)&&0==this.h.Sf(a,e)%2&&(this.A[0]=0)}};b.prototype.MO=function(a,b){1!=this.A[2]&&(-1!=this.h.ue(a)?this.A[2]=1:0!=this.A[2]&&0==(this.h.ld(a)&b)&&(this.A[2]=0))};b.prototype.nK=function(a,b,c,e){if(0!=this.A[3]){var h=this.h.ld(a);0!=(h&b)&&
0!=(h&c)&&0!=this.h.Sf(a,e)%2&&(this.A[3]=0)}};b.prototype.mK=function(a,b,c,e){if(0!=this.A[5]){var h=this.h.ld(a);0!=(h&b)&&0==(h&c)&&0!=this.h.Sf(a,e)%2&&(this.A[5]=0)}};b.prototype.CM=function(a,b,c){0!=this.A[6]&&(a=this.h.ld(a),0==(a&b)&&0!=(a&c)&&(this.A[6]=0))};b.prototype.PO=function(a,b,c){0!=this.A[0]&&(a=this.h.ld(a),0!=(a&b)&&0!=(a&c)&&(this.A[0]=0))};b.prototype.fD=function(a,b,c,e){0!=this.A[e]&&(a=this.h.ld(a),0!=(a&b)&&0==(a&c)&&(this.A[e]=0))};b.prototype.ro=function(a,b){var f=
!1,e=this.h.ya(a),h=this.h.ya(b);this.ni=this.h.Dg();for(var g=this.h.Ce;-1!=g;g=this.h.Bf(g)){var k=this.h.ue(g);if(-1==k){if(-1!=this.Nl)switch(this.Nl){case 3:f=this.aB(g,e,h);break;case 4:f=this.AD(g,e,h);break;default:throw c.g.ra("internal error");}}else{var m=k;do{var r=m;if(1!=this.h.tb(r,this.ni)){do{switch(this.Zt){case 0:f=this.$J(r,e,h);break;case 1:f=this.aK(r,e,h);break;case 2:f=this.wP(r,e,h);break;default:throw c.g.ra("internal error");}if(f)break;this.h.Bb(r,this.ni,1);r=this.h.Vb(r)}while(r!=
m&&!f)}if(f)break;m=this.h.Vb(this.h.sa(r))}while(m!=k);if(f)break}}f||this.PF();this.h.jh(this.ni)};b.prototype.Pv=function(a,b){for(var f=!1,e=this.h.ya(a),h=this.h.ya(b),g=this.h.Ce;-1!=g;g=this.h.Bf(g)){switch(this.Nl){case 3:f=this.aB(g,e,h);break;case 4:f=this.AD(g,e,h);break;case 5:f=this.LQ(g,e,h);break;default:throw c.g.wa();}if(f)break}f||this.PF()};b.prototype.Np=function(a,b){this.h.Lp(a,b)};b.prototype.In=function(a,b,c){this.sM(a,b,c);this.Np(a,c)};b.prototype.sM=function(a,b,f){c.aj.$(a,
b,f,!1);a.wo(0,!0,!0);for(b=a.Yc;-1!=b;b=a.xe(b))1736==a.Lb(b)&&c.mm.$(a,b,-1,!1,f)};b.MB=function(a,b){var f=a.D();if(c.T.Lc(f))return f=new c.Xa(a.description),f.Bc(a,!0),f;if(197==f){f=new c.i;a.o(f);if(f.ba()<=b&&f.aa()<=b)return f=new c.Va(a.description),a.Af(f),f;if(f.ba()<=b||f.aa()<=b){var f=new c.Xa(a.description),e=new c.Va;a.uf(0,e);f.df(e);a.uf(2,e);f.lineTo(e);return f}f=new c.Ka(a.description);f.Uc(a,!1);return f}return a};return b}();c.el=p})(t||(t={}));(function(c){var p=function(){function a(a){this.Dl=
new c.ga(0);this.Nt=new c.ga(0);this.zr=new c.b;this.Ar=new c.b;this.a=a;this.Sq=-1}a.prototype.bc=function(a){return this.a.bc(this.Jw(a))};a.prototype.nt=function(a){var b=this.tw(a);a=this.sC(a);if(this.a.Ua(b)==a){var c=b,b=a;a=c}this.a.uc(b,this.zr);this.a.uc(a,this.Ar);return this.zr.y<this.Ar.y};a.prototype.Jw=function(a){var b=this.tw(a);a=this.sC(a);return this.a.X(b)==a?b:a};a.prototype.tw=function(a){return this.Dl.get(a)};a.prototype.sC=function(a){return this.Nt.get(a)};a.prototype.eC=
function(a){this.Dl.set(a,this.Sq);this.Sq=a};a.prototype.DE=function(a){if(-1!=this.Sq){var b=this.Sq;this.Sq=this.Dl.get(b);this.Dl.set(b,a);this.Nt.set(b,this.a.X(a));return b}null==this.Dl&&(this.Dl=new c.ga(0),this.Nt=new c.ga(0));b=this.Dl.size;this.Dl.add(a);this.Nt.add(this.a.X(a));return b};a.prototype.Dw=function(a){return this.a.rd(this.tw(a))};return a}();c.wT=p;var g=function(){function a(a){this.le=a;this.Ud=new c.yb;this.Kl=new c.yb;this.bE=0;this.on=null;this.zx=-1}a.prototype.compare=
function(a,b,c){c=a.da(c);var h=this.le.$a,g;this.zx==b?g=this.bE:(this.on=h.bc(b),null==this.on?(a=h.a,a.Nc(h.Jw(b),this.Ud),this.on=this.Ud,g=this.Ud.ye(this.le.Yg,0)):g=this.on.ye(this.le.Yg,0),this.bE=g,this.zx=b);a=h.bc(c);var k;null==a?(a=h.a,a.Nc(h.Jw(c),this.Kl),a=this.Kl,k=this.Kl.ye(this.le.Yg,0)):k=a.ye(this.le.Yg,0);g==k&&(b=h.nt(b),c=h.nt(c),c=Math.min(b?this.on.ha:this.on.ja,c?a.ha:a.ja),b=.5*(c+this.le.Yg),b==this.le.Yg&&(b=c),g=this.on.ye(b,0),k=a.ye(b,0));return g<k?-1:g>k?1:0};a.prototype.reset=
function(){this.zx=-1};return a}(),b=function(){function a(){this.Rl=this.Dk=null;this.Za=new c.bj;this.Za.kM();this.Ld=new g(this);this.Za.Hn(this.Ld)}a.prototype.WM=function(){var a=!1;this.Pt&&(a=this.XM());if(1==this.a.ea(this.U)){var b=this.a.Ub(this.U),a=this.a.Gw(b);this.a.Dy(b,!0);return 0>a?(a=this.a.Cb(b),this.a.iF(a),this.a.Wi(b,this.a.Ua(a)),!0):!1}this.Ak=this.a.Uv();this.kn=this.a.Uv();for(b=this.a.Ub(this.U);-1!=b;b=this.a.ac(b))this.a.Qp(b,this.Ak,0),this.a.Qp(b,this.kn,-1);b=new c.ga(0);
this.Yg=NaN;var e=new c.b;this.kr=this.a.ea(this.U);this.fn=this.a.se();this.ar=this.a.se();for(var h=this.Dk.fc(this.Dk.Vd);-1!=h;h=this.Dk.bb(h)){var g=this.Dk.getData(h);this.a.uc(g,e);e.y!=this.Yg&&0!=b.size&&(a=this.xr(b)||a,this.Ld.reset(),b.clear(!1));b.add(g);this.Yg=e.y;if(0==this.kr)break}0<this.kr&&(a=this.xr(b)||a,b.clear(!1));this.a.bf(this.fn);this.a.bf(this.ar);for(b=this.a.Ub(this.U);-1!=b;)if(3==this.a.Ei(b,this.Ak)){this.a.Dy(b,!0);e=b;for(b=this.a.Ei(b,this.kn);-1!=b;)h=this.a.Ei(b,
this.kn),this.a.dQ(this.U,this.a.ac(e),b),e=b,b=h;b=this.a.ac(e)}else this.a.Dy(b,!1),b=this.a.ac(b);this.a.ty(this.Ak);this.a.ty(this.kn);return a};a.prototype.xr=function(a){return this.YQ(a)};a.prototype.YQ=function(a){var b=!1;null==this.$a&&(this.$a=new p(this.a));null==this.Rl?(this.Rl=new c.ga(0),this.Rl.xb(16)):this.Rl.clear(!1);this.XQ(a);for(var e=0,h=a.size;e<h;e++){var g=a.get(e);-1!=g&&this.ZC(g,-1)}for(e=0;e<this.Rl.size&&0<this.kr;e++)if(a=this.Rl.get(e),g=this.$a.Dw(this.Za.da(a)),
h=-1,0==this.a.Ei(g,this.Ak)){for(var g=this.Za.fe(a),k=a,m;-1!=g;){var r=this.Za.da(g),q=this.$a.Dw(r),n=this.a.Ei(q,this.Ak);if(0!=n){h=q;break}k=g;g=this.Za.fe(g)}-1==g?(m=!0,g=k):(r=this.Za.da(g),m=this.$a.nt(r),g=this.Za.bb(g),m=!m);do{r=this.Za.da(g);q=this.$a.Dw(r);n=this.a.Ei(q,this.Ak);if(0==n&&(m!=this.$a.nt(r)&&(b=this.a.Cb(q),this.a.iF(b),this.a.Wi(q,this.a.Ua(b)),b=!0),this.a.Qp(q,this.Ak,m?3:2),m||(k=this.a.Ei(h,this.kn),this.a.Qp(h,this.kn,q),this.a.Qp(q,this.kn,k)),this.kr--,0==this.kr))return b;
h=q;k=g;g=this.Za.bb(g);m=!m}while(k!=a)}return b};a.prototype.XQ=function(a){for(var b=0,c=a.size;b<c;b++){var h=a.get(b),g=this.a.Ra(h,this.fn),k=this.a.Ra(h,this.ar);if(-1!=g){var m=this.Za.da(g);this.$a.eC(m);this.a.lb(h,this.fn,-1)}-1!=k&&(m=this.Za.da(k),this.$a.eC(m),this.a.lb(h,this.ar,-1));m=-1;-1!=g&&-1!=k?(this.Za.jd(g,-1),this.Za.jd(k,-1),a.set(b,-1)):m=-1!=g?g:k;-1!=m&&(this.ZC(h,m)||this.Za.jd(m,-1),a.set(b,-1))}};a.prototype.ZC=function(a,b){var e=new c.b,h=new c.b;this.a.uc(a,e);var g=
this.a.X(a);this.a.uc(g,h);var k=!1;if(e.y<h.y){var k=!0,m=this.$a.DE(a),r;-1==b?r=this.Za.addElement(m,-1):(r=b,this.Za.Vi(r,m));m=this.a.Ra(g,this.fn);-1==m?this.a.lb(g,this.fn,r):this.a.lb(g,this.ar,r);g=this.a.rd(a);0==this.a.Ei(g,this.Ak)&&this.Rl.add(r)}g=this.a.Ua(a);this.a.uc(g,h);e.y<h.y&&(k=!0,m=this.$a.DE(g),-1==b?r=this.Za.addElement(m,-1):(r=b,this.Za.Vi(r,m)),m=this.a.Ra(g,this.fn),-1==m?this.a.lb(g,this.fn,r):this.a.lb(g,this.ar,r),g=this.a.rd(a),0==this.a.Ei(g,this.Ak)&&this.Rl.add(r));
return k};a.$=function(b,c,e,h){var g=new a;g.a=b;g.U=c;g.Dk=e;g.Pt=h;return g.WM()};a.prototype.XM=function(){var a=new c.ga(0),b=new c.ga(0),e=-1,h=-1,g=new c.b;g.Dh();for(var k=-1,m=-1,r=-1,q=new c.b,n=this.Dk.fc(this.Dk.Vd);-1!=n;n=this.Dk.bb(n)){var u=this.Dk.getData(n);this.a.uc(u,q);var p=this.a.rd(u);g.ub(q)&&m==p?(-1==h&&(e=this.a.Uv(),h=this.a.se()),-1==r&&(r=b.size,this.a.lb(k,h,r),b.add(1),-1==this.a.Ei(p,e)&&(this.a.Qp(p,e,k),a.add(p))),this.a.lb(u,h,r),b.GF(b.tc()+1)):(r=-1,g.J(q));
k=u;m=p}if(0==a.size)return!1;g=new c.ga(0);k=new c.ga(0);m=0;for(r=a.size;m<r;m++){var p=a.get(m),t=this.a.Ei(p,e),u=this.a.Ra(t,h);g.clear(!1);k.clear(!1);g.add(t);k.add(u);for(u=this.a.X(t);u!=t;u=this.a.X(u)){var x=u,q=this.a.Ra(x,h);if(-1!=q)if(0==k.size)k.add(q),g.add(x);else if(k.tc()==q){var n=g.tc(),F=this.a.X(n),t=this.a.X(x);this.a.Qc(n,t);this.a.Rc(t,n);this.a.Qc(x,F);this.a.Rc(F,x);x=[!1];F=this.a.YC(this.U,F,this.a.Cb(p),x);this.a.lb(u,h,-1);x[0]&&this.a.Ch(p,t);u=this.a.Ha(p);t=this.a.Ha(F);
u-=t;this.a.hm(p,u);b.set(q,b.get(q)-1);1==b.get(q)&&(b.set(q,0),k.af(),g.af());u=t=n}else g.add(u),k.add(q)}}this.a.ty(e);this.a.bf(h);return!0};return a}();c.zI=b})(t||(t={}));(function(c){var p=function(){function g(){}g.prototype.zg=function(){this.Mx=this.ib=null};g.prototype.get=function(){return this.Mx};g.prototype.set=function(b){this.Mx=b;if(null!=b)throw 322==b.D()&&(this.ib=b),c.g.wa();};g.prototype.create=function(b){if(322==b)this.lq();else throw c.g.ra("Not Implemented");};g.prototype.lq=
function(){null==this.ib&&(this.ib=new c.yb);this.Mx=this.ib};return g}();c.zg=p})(t||(t={}));(function(c){c=c.EI||(c.EI={});c[c.enumLineSeg=1]="enumLineSeg";c[c.enumBezierSeg=2]="enumBezierSeg";c[c.enumArcSeg=4]="enumArcSeg";c[c.enumNonlinearSegmentMask=6]="enumNonlinearSegmentMask";c[c.enumSegmentMask=7]="enumSegmentMask";c[c.enumDensified=8]="enumDensified"})(t||(t={}));(function(c){var p=function(){return function(b){this.ri=b;this.dz=this.ez=1;this.ky=this.jy=this.ly=0}}(),g=function(){function b(){this.np=
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.Hj=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.nf=new c.Va;this.ka=this.eu=0;this.an=[];this.hr=[];this.au=[];this.pp=[];this.Jx=[]}b.prototype.ny=function(a){if(null!=a){for(var b=0,c=a.length;b<c;b++)this.rR(a[b]);a.length=0}};b.prototype.rR=function(a){a.ri=null;this.pp.push(a)};b.prototype.mu=function(a){if(0===this.pp.length)var b=new p(a);else b=this.pp[this.pp.length-1],b.ri=a,this.pp.length=this.pp.length-1;return b};b.prototype.eO=function(a,b){return 0==a?this.hr[b]:
this.au[b]};b.prototype.Zx=function(){this.eu>=this.Jx.length&&this.Jx.push(new c.zg);var a=this.Jx[this.eu];this.eu++;return a};b.prototype.clear=function(){this.ny(this.an);this.ny(this.hr);this.ny(this.au);this.eu=0};b.prototype.zn=function(a){this.an.push(this.mu(a))};b.prototype.kk=function(a){return 0==a?this.hr.length:this.au.length};b.prototype.Ho=function(a,b){return this.eO(a,b).ri};b.prototype.Ga=function(a,b){if(2!=this.an.length)throw c.g.wa();this.ka=a;var f=c.vi.Ty(.01*a),e=!1,h=this.an[0],
g=this.an[1];if(b||0!=(h.ri.eq(g.ri,a,!0)&5)){if(322==h.ri.D()){var k=h.ri;if(322==g.ri.D()){var m=g.ri,r=c.yb.ov(k,m,null,this.np,this.Hj,a);if(0==r)throw c.yb.ov(k,m,null,this.np,this.Hj,a),c.g.wa();var q=Array(9);c.I.Os(q,null);for(var n=0;n<r;n++){var u=this.np[n],p=this.Hj[n],t=h.ky,x=1;0==u?(t=h.ly,x=h.ez):1==u&&(t=h.jy,x=h.dz);var F=g.ky,D=1;0==p?(F=g.ly,D=g.ez):1==p&&(F=g.jy,D=g.dz);var y=new c.b;t==F?(t=new c.b,k.Kb(u,t),u=new c.b,m.Kb(p,u),p=x+D,D/=p,c.vi.yD(t,u,D,y),c.b.Yb(y,t)+c.b.Yb(y,
u)>f&&(e=!0)):t>F?(k.Kb(u,y),u=new c.b,m.Kb(p,u),c.b.Yb(y,u)>f&&(e=!0)):(m.Kb(p,y),t=new c.b,k.Kb(u,t),c.b.Yb(y,t)>f&&(e=!0));q[n]=y}h=0;g=-1;for(n=0;n<=r;n++)D=n<r?this.np[n]:1,D!=h&&(f=this.Zx(),k.Bi(h,D,f),-1!=g&&f.get().dd(q[g]),n!=r&&f.get().vd(q[n]),h=D,this.hr.push(this.mu(f.get()))),g=n;k=[0,0,0,0,0,0,0,0,0];for(n=0;n<r;n++)k[n]=n;1<r&&this.Hj[0]>this.Hj[1]&&(D=this.Hj[0],this.Hj[0]=this.Hj[1],this.Hj[1]=D,n=k[0],k[0]=k[1],k[1]=n);h=0;g=-1;for(n=0;n<=r;n++)D=n<r?this.Hj[n]:1,D!=h&&(f=this.Zx(),
m.Bi(h,D,f),-1!=g&&(h=k[g],f.get().dd(q[h])),n!=r&&(h=k[n],f.get().vd(q[h])),h=D,this.au.push(this.mu(f.get()))),g=n;return e}}throw c.g.wa();}return!1};b.prototype.Tw=function(a,b,f){b.copyTo(this.nf);if(1!=this.an.length)throw c.g.wa();this.ka=a;var e=this.an[0];if(f||e.ri.ps(b.w(),a,!0))if(322==e.ri.D()){a=e.ri;var h=a.Gd(b.w(),!1);this.np[0]=h;var g=e.ky;f=1;0==h?(g=e.ly,f=e.ez):1==h&&(g=e.jy,f=e.dz);e=new c.b;0==g?(g=new c.b,a.Kb(h,g),b=b.w(),c.vi.yD(g,b,1/(f+1),e)):0<g?(e=new c.b,a.Kb(h,e)):
e=b.w();f=0;h=-1;for(g=0;1>=g;g++){b=1>g?this.np[g]:1;if(b!=f){var k=this.Zx();a.Bi(f,b,k);-1!=h&&k.get().dd(e);1!=g&&k.get().vd(e);f=b;this.hr.push(this.mu(k.get()))}h=g}this.nf.hc(e)}else throw c.g.wa();};return b}();c.fA=g})(t||(t={}));(function(c){var p=function(){function g(b){this.Oq=this.xj=this.ib=null;this.zk=this.Fe=this.Gc=this.Ae=this.Rg=this.Qa=0;this.ab=null;this.zl=!1;this.Ae=-1;this.Rg=this.Gc=0;this.Qa=-1;this.ab=b;this.Fe=this.cq(this.Rg);this.zl=!1;this.xj=null;this.zk=-1;this.Oq=
new c.b}g.Xn=function(b,a){if(0>a||a>=b.F())throw c.g.Sc();var d=new g(b),f=b.Ew(a);d.Gc=a-b.Ea(f);d.Rg=f+1;d.Qa=f;d.Fe=d.cq(d.Qa);d.zk=d.ab.Ea(d.Qa);return d};g.Un=function(b,a,d){if(0>a||a>=b.ea()||0>d)throw c.g.Sc();var f=b.vc(a)?0:1;if(d>=b.Ha(a)-f)throw c.g.Sc();b=new g(b);b.Ae=-1;b.Gc=d;b.Qa=a;b.Rg=b.Gc+1;b.Fe=b.cq(b.Rg);b.zk=b.ab.Ea(b.Qa);return b};g.prototype.zR=function(b){if(this.ab!=b.ab)throw c.g.xa();this.Ae=b.Ae;this.Gc=b.Gc;this.Qa=b.Qa;this.Rg=b.Rg;this.Fe=b.Fe;this.zl=b.zl;this.zk=
b.zk;this.xj=null};g.prototype.ia=function(){this.Ae!=this.Gc&&this.IA();if(this.zl)this.Gc=(this.Gc+1)%this.Fe;else{if(this.Gc==this.Fe)throw c.g.Sc();this.Gc++}return this.xj};g.prototype.oi=function(){if(this.zl)this.Gc=(this.Fe+this.Gc-1)%this.Fe;else{if(0==this.Gc)throw c.g.Sc();this.Gc--}this.Gc!=this.Ae&&this.IA();return this.xj};g.prototype.AR=function(){this.Ae=-1;this.Gc=0};g.prototype.BR=function(){this.Gc=this.Fe;this.Ae=-1};g.prototype.Sb=function(b,a){void 0===a&&(a=-1);if(0<=this.Qa&&
this.Qa<this.ab.ea()){var d=this.tJ();if(b>=d&&b<this.ab.Dc(this.Qa)){this.Ae=-1;this.Gc=b-d;return}}d=0<=a&&a<this.ab.ea()&&b>=this.ab.Ea(a)&&b<this.ab.Dc(a)?a:this.ab.Ew(b);this.Rg=d+1;this.Qa=d;this.Ae=-1;this.Gc=b-this.ab.Ea(d);this.Fe=this.cq(d);this.zk=this.ab.Ea(this.Qa)};g.prototype.kb=function(){this.Qa=this.Rg;if(this.Qa>=this.ab.ea())return!1;this.Ae=-1;this.Gc=0;this.Fe=this.cq(this.Qa);this.zk=this.ab.Ea(this.Qa);this.Rg++;return!0};g.prototype.Lk=function(){this.Fe=this.Gc=this.Ae=-1;
this.Rg=0;this.zk=this.Qa=-1};g.prototype.vy=function(b){if(0>b)throw c.g.Sc();this.Rg=b;this.zk=this.Fe=this.Gc=this.Ae=this.Qa=-1};g.prototype.cq=function(b){if(this.ab.sc())return 0;var a=1;this.ab.vc(b)&&(a=0);return this.ab.Ha(b)-a};g.prototype.iD=function(){return this.Ae==this.Fe-1&&this.ab.vc(this.Qa)};g.prototype.PR=function(){this.zl=!0};g.prototype.Jb=function(){return this.ab.jb.f[this.Qa]+this.Ae};g.prototype.tJ=function(){return this.ab.Ea(this.Qa)};g.prototype.Bm=function(){return this.iD()?
this.ab.Ea(this.Qa):this.Jb()+1};g.prototype.wl=function(){return 0==this.Ae};g.prototype.Jm=function(){return this.Ae==this.Fe-1};g.prototype.La=function(){return this.Gc<this.Fe};g.prototype.Ow=function(){return 0<this.Gc};g.prototype.vm=function(){var b=new g(this.ab);b.Ae=this.Ae;b.Gc=this.Gc;b.Fe=this.Fe;b.Qa=this.Qa;b.Rg=this.Rg;b.ab=this.ab;b.zl=this.zl;return b};g.prototype.IA=function(){if(0>this.Gc||this.Gc>=this.Fe)throw c.g.Sc();this.Ae=this.Gc;var b=this.Jb();this.ab.kc();var a=this.ab.Ge,
d=1;null!=a&&(d=a.read(b)&7);a=this.ab.description;switch(d){case 1:null==this.ib&&(this.ib=new c.yb);this.xj=this.ib;break;case 2:throw c.g.ra("internal error");case 4:throw c.g.wa();default:throw c.g.wa();}this.xj.Qf(a);d=this.Bm();this.ab.uc(b,this.Oq);this.xj.dd(this.Oq);this.ab.uc(d,this.Oq);this.xj.vd(this.Oq);for(var f=1,e=a.Aa;f<e;f++)for(var h=a.Hd(f),g=c.pa.Wa(h),k=0;k<g;k++){var m=this.ab.kd(h,b,k);this.xj.My(h,k,m);m=this.ab.kd(h,d,k);this.xj.Cy(h,k,m)}};g.prototype.$O=function(){return this.Qa==
this.ab.ea()-1};return g}();c.FI=p})(t||(t={}));(function(c){var p=function(){function g(b){b instanceof c.T?(this.WD=b,this.ua=-1,this.Wh=1):(this.FP=b.slice(0),this.ua=-1,this.Wh=b.length)}g.prototype.ya=function(){return this.ua};g.prototype.next=function(){return this.ua<this.Wh-1?(this.ua++,null!=this.WD?this.WD:this.FP[this.ua]):null};return g}();c.Oc=p})(t||(t={}));(function(c){var p=function(){return function(){this.next=null}}(),g=function(){function b(){this.Bp=this.iu=this.ju=this.uj=this.dh=
0;this.$B=!1;this.bG=0;this.am=this.wf=this.Vk=this.hh=null;this.Mk=0;this.Kv=null;this.uj=this.dh=-1}b.prototype.xS=function(a,b,f){this.dh=a;this.uj=b;this.hh=this.Vk=null;this.Bp=0;this.Kv=f;null==this.am&&(this.am=c.I.Kh(384,0));this.eG()};b.prototype.aa=function(){return this.dh};b.prototype.ba=function(){return this.uj};b.prototype.flush=function(){0<this.Mk&&(this.Kv.WB(this.am,this.Mk),this.Mk=0)};b.prototype.eG=function(){if(0<this.Bp){for(var a=0;a<this.uj;a++){for(var b=this.Vk[a];null!=
b;){var c=b,b=b.next;c.next=null}this.Vk[a]=null}this.hh=null}this.ju=this.uj;this.iu=-1;this.Bp=0};b.prototype.cF=function(a){this.$B=a==b.Zu;for(a=this.ju;a<=this.iu;a++)this.UJ(),this.OJ(a),this.uM();this.eG()};b.prototype.zv=function(a,b,f,e){if(b!=e){var h=1;b>e&&(h=a,a=f,f=h,h=b,b=e,e=h,h=-1);if(!(0>e||b>=this.uj)){0>a&&0>f?f=a=-1:a>=this.dh&&f>=this.dh&&(f=a=this.dh);var g=(f-a)/(e-b);e>this.uj&&(e=this.uj,f=g*(e-b)+a);0>b&&(a=g*(0-b)+a,b=0);var k=Math.max(this.dh+1,8388607);-8388607>a?(b=
(0-a)/g+b,a=0):a>k&&(b=(this.dh-a)/g+b,a=this.dh);-8388607>f?e=(0-a)/g+b:f>k&&(e=(this.dh-a)/g+b);b=c.I.truncate(b);e=c.I.truncate(e);b!=e&&(f=new p,f.x=c.I.truncate(4294967296*a),f.y=b,f.G=e,f.oM=c.I.truncate(4294967296*g),f.dir=h,null==this.Vk&&(this.Vk=c.I.Kh(this.uj,null)),f.next=this.Vk[f.y],this.Vk[f.y]=f,f.y<this.ju&&(this.ju=f.y),f.G>this.iu&&(this.iu=f.G),this.Bp++)}}};b.prototype.UJ=function(){if(null!=this.hh){for(var a=!1,b=null,c=this.hh;null!=c;)if(c.y++,c.y==c.G){var e=c,c=c.next;null!=
b?b.next=c:this.hh=c;e.next=null}else c.x+=c.oM,null!=b&&b.x>c.x&&(a=!0),b=c,c=c.next;a&&(this.hh=this.aG(this.hh))}};b.prototype.OJ=function(a){if(!(a>=this.uj)){var b=this.Vk[a];if(null!=b){this.Vk[a]=null;b=this.aG(b);this.Bp-=this.bG;a=this.hh;for(var c=!0,e=b,h=null;null!=a&&null!=e;)a.x>e.x?(c&&(this.hh=e),c=e.next,e.next=a,null!=h&&(h.next=e),h=e,e=c):(c=a.next,a.next=e,null!=h&&(h.next=a),h=a,a=c),c=!1;null==this.hh&&(this.hh=b)}}};b.Kz=function(a,b){return 0>a?0:a>b?b:a};b.prototype.uM=function(){if(null!=
this.hh)for(var a=0,d=this.hh,f=c.I.truncate(c.I.CD(d.x)),e=d.next;null!=e;e=e.next)if(a=this.$B?a^1:a+e.dir,e.x>d.x){var h=c.I.truncate(c.I.CD(e.x));0!=a&&(d=b.Kz(f,this.dh),f=b.Kz(h,this.dh),f>d&&d<this.dh&&(this.am[this.Mk++]=d,this.am[this.Mk++]=f,this.am[this.Mk++]=e.y,this.Mk==this.am.length&&(this.Kv.WB(this.am,this.Mk),this.Mk=0)));d=e;f=h}};b.prototype.aG=function(a){for(var d=0,f=a;null!=f;f=f.next)d++;this.bG=d;if(1==d)return a;null==this.wf?this.wf=c.I.Kh(Math.max(d,16),null):this.wf.length<
d&&(this.wf=c.I.Kh(Math.max(d,2*this.wf.length),null));for(var e=0,f=a;null!=f;f=f.next)this.wf[e++]=f;2==d?this.wf[0].x>this.wf[1].x&&(a=this.wf[0],this.wf[0]=this.wf[1],this.wf[1]=a):b.DM(this.wf,d,function(a,b){return a==b?0:a.x<b.x?-1:a.x>b.x?1:0});a=this.wf[0];this.wf[0]=null;f=a;for(e=1;e<d;e++)f.next=this.wf[e],f=this.wf[e],this.wf[e]=null;f.next=null;return a};b.DM=function(a,b,c){if(b==a.length)a.sort(c);else{var e=a.slice(0,0),h=a.slice(b);b=a.slice(0,b).sort(c);a.length=0;a.push.apply(a,
e.concat(b).concat(h))}};b.Zu=0;b.sU=1;return b}();c.ev=g})(t||(t={}));(function(c){var p=function(){function g(){}g.prototype.Ih=function(b,a){var d=this.a.Ra(b,this.up);this.yk==d&&(this.yk=this.Zd.bb(this.yk));this.Xm==d&&(this.Xm=this.Zd.bb(this.Xm));this.Zd.Jc(this.Ox,d);this.gj(b);if(a&&(d=this.a.rd(b),-1!=d&&this.a.Cb(d)==b)){var c=this.a.X(b);if(c!=b){var e=this.a.rd(c);if(e==d){this.a.Ch(d,c);return}c=this.a.Ua(b);if(c!=b&&(e=this.a.rd(c),e==d)){this.a.Ch(d,c);return}}this.a.Ch(d,-1);this.a.Wi(d,
-1)}};g.prototype.xA=function(){for(var b=!1,a=0,d=new c.b;;){a++;null==this.mh?(this.mh=new c.ga(0),this.Lq=new c.ga(0),this.he=new c.ga(0)):(this.mh.clear(!1),this.Lq.clear(!1),this.he.clear(!1));for(var f=this.Xm,e=0,h=!0;f!=this.yk;){var g=this.Zd.getData(f),k=new c.b;this.a.uc(g,k);h&&(this.a.uc(g,d),h=!1);var k=this.a.Ua(g),m=this.a.X(g);-559038737!=this.a.Ra(k,this.fg)&&(this.mh.add(k),this.a.lb(k,this.fg,-559038737),this.Lq.add(g),this.he.add(e++));-559038737!=this.a.Ra(m,this.fg)&&(this.mh.add(m),
this.a.lb(m,this.fg,-559038737),this.Lq.add(g),this.he.add(e++));f=this.Zd.bb(f)}if(2>this.mh.size)break;var r=this;this.he.xd(0,this.he.size,function(a,b){return r.lJ(a,b)});f=0;for(e=this.he.size;f<e;f++)h=this.he.get(f),h=this.mh.get(h),this.a.lb(h,this.fg,f),k=new c.b,this.a.uc(h,k);k=this.yJ(d);f=0;for(e=this.he.size;f<e;f++)h=this.he.get(f),-1!=h&&(h=this.mh.get(h),this.a.lb(h,this.fg,-1));if(k)b=!0;else break}return b};g.prototype.yJ=function(b){for(var a=!1,d=!0;d;){var d=!1,c=0;-1==this.he.get(c)&&
(c=this.fl(c));for(var e=this.fl(c),h=0,g=this.he.size;h<g&&-1!=c&&-1!=e&&c!=e;h++){var k=this.he.get(c),e=this.he.get(e),k=this.mh.get(k),e=this.mh.get(e),m=this.a.X(k);this.a.ot(m,b)||(m=this.a.Ua(k));var r=this.a.X(e);this.a.ot(r,b)||(r=this.a.Ua(e));var q=this.ns(m,k),n=this.ns(r,e),p=q?this.a.Ua(m):this.a.X(m),t=n?this.a.Ua(r):this.a.X(r),w=!1;this.ho(m)?w=!0:this.ho(r)?w=!0:this.ho(k)?w=!0:this.ho(e)?w=!0:this.ho(p)?w=!0:this.ho(t)&&(w=!0);!w&&this.a.Bq(k,e)&&(w=!0,this.AA(q,n,m,k,r,e));!w&&
this.a.Bq(p,t)&&(w=!0,this.AA(!q,!n,m,p,r,t));w&&(a=!0);d=d||w;c=this.fl(c);e=this.fl(c)}}if(!a)for(c=0,-1==this.he.get(c)&&(c=this.fl(c)),e=this.fl(c),h=0,g=this.he.size;h<g&&-1!=c&&-1!=e&&c!=e;h++)k=this.he.get(c),e=this.he.get(e),k=this.mh.get(k),e=this.mh.get(e),m=this.a.X(k),this.a.ot(m,b)||(m=this.a.Ua(k)),r=this.a.X(e),this.a.ot(r,b)||(r=this.a.Ua(e)),q=this.ns(m,k),n=this.ns(r,e),p=q?this.a.Ua(m):this.a.X(m),t=n?this.a.Ua(r):this.a.X(r),this.pJ(q,n,k,m,p,e,r,t)&&(a=!0),c=this.fl(c),e=this.fl(c);
return a};g.prototype.BJ=function(){1736==this.a.Lb(this.U)&&1==this.a.Cm(this.U)&&(new c.Of).FQ(this.Pt,this.a,this.U,this.ne);var b=!1,a=!0;this.fg=this.up=-1;var d=this.a.F(this.U),f=new c.ga(0);f.xb(d);for(var e=this.a.Ub(this.U);-1!=e;e=this.a.ac(e))for(var h=this.a.Cb(e),g=0,k=this.a.Ha(e);g<k;g++)f.add(h),h=this.a.X(h);var m=this.a.bd.f,r=this.a.bd.Ic;this.a.wb.kc();var q=this.a.wb.Ba[0].f;f.xd(0,d,function(a,b){var d=m[r*a],c=m[r*b],e=q[2*d],d=q[2*d+1],f=q[2*c],c=q[2*c+1],e=d<c?-1:d>c?1:e<
f?-1:e>f?1:0;0==e&&(e=m[r*a+3],c=m[r*b+3],e=e<c?-1:e==c?0:1);return e});this.up=this.a.se();this.Zd=new c.Zn;this.Ox=this.Zd.ih(0);this.Zd.$l(d);for(e=0;e<d;e++)h=f.get(e),g=this.Zd.addElement(this.Ox,h),this.a.lb(h,this.up,g);this.fg=this.a.se();this.yk=-1;for(this.rA()&&(b=!0);a;){a=!1;d=0;f=!1;do{f=!1;this.Xm=-1;for(var k=0,e=new c.b,g=new c.b,n=this.Zd.fc(this.Ox);-1!=n;)h=this.Zd.getData(n),-1!=this.Xm?(this.a.uc(h,g),e.ub(g))?k++:(e.J(g),this.yk=n,0<k&&(h=this.xA())&&(f=!0,-1!=this.yk&&(h=this.Zd.getData(this.yk),
this.a.uc(h,e))),this.Xm=n=this.yk,k=0):(this.Xm=n,this.a.uc(this.Zd.getData(n),e),k=0),-1!=n&&(n=this.Zd.bb(n));this.yk=-1;0<k&&(h=this.xA())&&(f=!0);if(10<d++)throw c.g.wa();f&&this.sJ();this.rA()&&(f=!0);a=a||f&&!1;b=b||f}while(f)}this.a.bf(this.up);this.a.bf(this.fg);return b=c.zI.$(this.a,this.U,this.Zd,this.Pt)||b};g.prototype.ns=function(b,a){return this.a.X(a)==b?!1:!0};g.prototype.pJ=function(b,a,d,c,e,h,g,k){if(c==g)return this.gj(d),this.gj(h),!1;var m=this.a.Ra(d,this.fg),r=this.a.Ra(e,
this.fg),q=this.a.Ra(h,this.fg),n=this.a.Ra(k,this.fg);d=[0,0,0,0,0,0,0,0];var p=[0,0,0,0];d[0]=0;p[0]=m;d[1]=0;p[1]=r;d[2]=1;p[2]=q;d[3]=1;p[3]=n;for(m=1;4>m;m++){r=p[m];q=d[m];for(n=m-1;0<=n&&p[n]>r;)p[n+1]=p[n],d[n+1]=d[n],n--;p[n+1]=r;d[n+1]=q}p=0;0!=d[0]&&(p|=1);0!=d[1]&&(p|=2);0!=d[2]&&(p|=4);0!=d[3]&&(p|=8);if(5!=p&&10!=p)return!1;b==a?b?(this.a.Qc(k,c),this.a.Rc(c,k),this.a.Qc(e,g),this.a.Rc(g,e)):(this.a.Rc(k,c),this.a.Qc(c,k),this.a.Rc(e,g),this.a.Qc(g,e)):b?(this.a.Rc(c,h),this.a.Qc(h,
c),this.a.Rc(g,e),this.a.Qc(e,g)):(this.a.Qc(c,h),this.a.Rc(h,c),this.a.Qc(g,e),this.a.Rc(e,g));return!0};g.prototype.AA=function(b,a,d,c,e,h){this.fU?this.AJ():this.zJ(b,a,d,c,e,h)};g.prototype.AJ=function(){throw c.g.ra("not implemented.");};g.prototype.zJ=function(b,a,d,c,e,h){if(b!=a)b?(this.a.Qc(d,e),this.a.Rc(e,d),this.a.Qc(h,c),this.a.Rc(c,h),this.pm(e,d),this.Ih(e,!0),this.a.Ui(e,!0),this.gj(d),this.pm(h,c),this.Ih(h,!0),this.a.Ui(h,!1)):(this.a.Qc(e,d),this.a.Rc(d,e),this.a.Qc(c,h),this.a.Rc(h,
c),this.pm(e,d),this.Ih(e,!0),this.a.Ui(e,!1),this.gj(d),this.pm(h,c),this.Ih(h,!0),this.a.Ui(h,!0)),this.gj(c);else{var g=b?d:c,k=a?e:h;b=b?c:d;a=a?h:e;e=!1;this.a.Qc(g,k);this.a.Qc(k,g);this.a.Rc(b,a);this.a.Rc(a,b);for(h=a;h!=k;)d=this.a.Ua(h),c=this.a.X(h),this.a.Rc(h,c),this.a.Qc(h,d),e=e||h==g,h=c;e||(d=this.a.Ua(k),c=this.a.X(k),this.a.Rc(k,c),this.a.Qc(k,d));this.pm(k,g);this.Ih(k,!0);this.a.Ui(k,!1);this.gj(g);this.pm(a,b);this.Ih(a,!0);this.a.Ui(a,!1);this.gj(b)}};g.prototype.rA=function(){for(var b=
!1,a=this.a.Ub(this.U);-1!=a;){for(var d=this.a.Cb(a),c=0,e=this.a.Ha(a);c<e&&1<e;){var h=this.a.Ua(d),g=this.a.X(d);this.a.Bq(h,g)?(b=!0,this.Ih(d,!1),this.a.vf(d,!0),this.Ih(g,!1),this.a.vf(g,!0),d=h,c=0,e=this.a.Ha(a)):(d=g,c++)}if(2>this.a.Ha(a)){b=this.a.Cb(a);c=0;for(e=this.a.Ha(a);c<e;c++)this.Ih(b,!1),b=this.a.X(b);a=this.a.Br(a);b=!0}else a=this.a.ac(a)}return b};g.prototype.ho=function(b){for(var a=!1;;){var d=this.a.X(b),c=this.a.Ua(b);if(d==b)return this.Ih(b,!0),this.a.Ui(b,!1),!0;if(!this.a.Bq(d,
c))break;a=!0;this.gj(c);this.gj(d);this.Ih(b,!0);this.a.Ui(b,!1);this.pm(d,c);this.Ih(d,!0);this.a.Ui(d,!0);if(d==c)break;b=c}return a};g.prototype.sJ=function(){for(var b=0,a=this.Zd.fc(this.Zd.Vd);-1!=a;a=this.Zd.bb(a)){var d=this.Zd.getData(a);this.a.im(d,-1)}for(var c=0,e=this.a.Ub(this.U);-1!=e;)if(a=this.a.Cb(e),-1==a||-1!=this.a.rd(a))d=e,e=this.a.ac(e),this.a.xu(d);else{this.a.im(a,e);for(var h=1,d=this.a.X(a);d!=a;d=this.a.X(d))this.a.im(d,e),h++;this.a.Ir(e,!1);this.a.hm(e,h);this.a.Wi(e,
this.a.Ua(a));c+=h;b++;e=this.a.ac(e)}for(a=this.Zd.fc(this.Zd.Vd);-1!=a;a=this.Zd.bb(a))d=this.Zd.getData(a),-1==this.a.rd(d)&&(e=this.a.YC(this.U,d,d,null),c+=this.a.Ha(e),b++);this.a.gm(this.U,b);this.a.Pk(this.U,c);b=0;for(c=this.a.Yc;-1!=c;c=this.a.xe(c))b+=this.a.F(c);this.a.WF(b)};g.prototype.fl=function(b){for(var a=0,d=this.he.size-1;a<d;a++)if(b=(b+1)%this.he.size,-1!=this.he.get(b))return b;return-1};g.prototype.pm=function(b,a){var d=this.a.Ra(a,this.up),c=this.a.Ra(a,this.fg);this.a.Zy(b,
a);this.a.lb(a,this.up,d);this.a.lb(a,this.fg,c)};g.prototype.gj=function(b){var a=this.a.Ra(b,this.fg);-1!=a&&(this.he.set(a,-1),this.a.lb(b,this.fg,-1))};g.$=function(b,a,d,c,e){var h=new g;h.a=b;h.U=a;h.yx=d;h.Pt=c;h.ne=e;return h.BJ()};g.prototype.lJ=function(b,a){var d=this.mh.get(b),f=new c.b;this.a.uc(d,f);var d=new c.b,e=this.mh.get(a);this.a.uc(e,d);if(f.ub(d))return 0;var h=this.Lq.get(b),e=new c.b;this.a.uc(h,e);var g=this.Lq.get(a),h=new c.b;this.a.uc(g,h);g=new c.b;g.pc(f,e);f=new c.b;
f.pc(d,h);return c.b.bq(g,f)};return g}();c.mm=p})(t||(t={}));(function(c){(function(c){c[c.Local=0]="Local";c[c.Geographic=1]="Geographic";c[c.Projected=2]="Projected";c[c.Unknown=3]="Unknown"})(c.GI||(c.GI={}));(function(c){c[c.Integer32=0]="Integer32";c[c.Integer64=1]="Integer64";c[c.FloatingPoint=2]="FloatingPoint"})(c.qI||(c.qI={}));var p=function(){function g(){this.eo="";this.mi=0;this.Sl=null}g.prototype.md=function(){return this.mi};g.prototype.Jo=function(){var b=.001;0!=this.mi?b=c.ks.RM(this.mi):
null!=this.Sl&&(b=c.lA.SM(this.Sl));return b};g.prototype.Se=function(){if(0!=this.mi)return c.ic.re(c.ks.bC(this.mi));if(null!=this.Sl)return c.lA.TM(this.Sl)};g.Am=function(b){if(0!=b.mi){if(!0===c.ks.YO(b.mi))return 1;if(!0===c.ks.aP(b.mi))return 2}return 3};g.create=function(b){if(0>=b)throw c.g.N("Invalid or unsupported wkid: "+b);var a=new g;a.mi=b;return a};g.ML=function(b){if(null==b||0==b.length)throw c.g.N("Cannot create SpatialReference from null or empty text.");var a=new g;a.Sl=b;return a};
g.prototype.lc=function(b){return this==b?!0:null==b||this.constructor!=b.constructor||this.mi!=b.mi||0==this.mi&&this.Sl!==b.Sl?!1:!0};g.nN=function(b,a){var d=Math.PI/180,f=new c.ca;c.lH.qN(b.w().x*d,b.w().y*d,a.w().x*d,a.w().y*d,f);return f.l};g.prototype.toString=function(){return"[ tol: "+this.wq()+"; wkid: "+this.md()+"; wkt: "+this.Sl+"]"};g.prototype.gc=function(){if(""!==this.eo)return this.eo;var b=this.toString();if(Array.prototype.reduce)return this.eo="S"+b.split("").reduce(function(a,
b){a=(a<<5)-a+b.charCodeAt(0);return a&a},0);var a=0;if(0===b.length)return"";for(var d=0;d<b.length;d++)a=(a<<5)-a+b.charCodeAt(d),a&=a;return this.eo="S"+a};g.prototype.wq=function(){return this.Jo()};g.$T=!0;g.xU=2147483645;g.mT=9007199254740990;return g}();c.gh=p})(t||(t={}));(function(c){function p(a,b){89.99999<b?b=89.99999:-89.99999>b&&(b=-89.99999);var d=.017453292519943*b;return[111319.49079327169*a,3189068.5*Math.log((1+Math.sin(d))/(1-Math.sin(d)))]}function g(a,b,d){a=a/6378137*57.29577951308232;
return d?[a,57.29577951308232*(1.5707963267948966-2*Math.atan(Math.exp(-1*b/6378137)))]:[a-360*Math.floor((a+180)/360),57.29577951308232*(1.5707963267948966-2*Math.atan(Math.exp(-1*b/6378137)))]}function b(a,b){var d=a.vm();if(33===a.D()){var f=b(d.lk(),d.mk());d.hc(f[0],f[1])}else if(197===a.D()){var f=b(a.R.v,a.R.C,!0),g=b(a.R.B,a.R.G,!0);d.K(f[0],f[1],g[0],g[1])}else for(f=new c.b,g=0;g<d.F();g++){d.w(g,f);var r=b(f.x,f.y,!0);f.ma(r[0],r[1]);d.hc(g,f)}return d}function a(a){return b(a,g)}function d(a){return b(a,
p)}var f=function(){function a(){}a.Wr=function(a){var b=Math.PI/180,d=Math.sin(a.y*b);return c.b.Oa(6378137*a.x*b,3167719.6636462314*(d/(1-.006694379990197414*d*d)-6.111035746609262*Math.log((1-.0818191908429643*d)/(1+.0818191908429643*d))))};a.Vu=function(a,b,d,e){var f=1/298.257223563,g=Math.sin(d);d=Math.cos(d);var n=(1-f)*Math.tan(a);a=1/Math.sqrt(1+n*n);for(var p=n*a,t=Math.atan2(n,d),n=a*g*a*g,w=1-n,x=2.7233160610754688E11*w/4.040829998466145E13,F=1+x/16384*(4096+x*(-768+x*(320-175*x))),D=
x/1024*(256+x*(-128+x*(74-47*x))),x=e/(6356752.31424518*F),y=2*Math.PI,z,A,B,C;1E-12<Math.abs(x-y);)B=Math.cos(2*t+x),z=Math.sin(x),A=Math.cos(x),C=D*z*(B+D/4*(A*(-1+2*B*B)-D/6*B*(-3+4*z*z)*(-3+4*B*B))),y=x,x=e/(6356752.31424518*F)+C;e=p*z-a*A*d;w=f/16*w*(4+f*(4-3*w));return c.b.Oa((b+(Math.atan2(z*g,a*A-p*z*d)-(1-w)*f*Math.sqrt(n)*(x+w*z*(B+w*A*(-1+2*B*B)))))/(Math.PI/180),Math.atan2(p*A+a*z*d,(1-f)*Math.sqrt(n+e*e))/(Math.PI/180))};a.JK=function(a,b,d,c){var e=1/298.257223563,f=c-b,g=Math.atan((1-
e)*Math.tan(a)),p=Math.atan((1-e)*Math.tan(d)),t=Math.sin(g),g=Math.cos(g),w=Math.sin(p),p=Math.cos(p),x=f,F,D=1E3,y,z,A,B,C,E,G;do{A=Math.sin(x);B=Math.cos(x);z=Math.sqrt(p*A*p*A+(g*w-t*p*B)*(g*w-t*p*B));if(0===z)return 0;B=t*w+g*p*B;C=Math.atan2(z,B);E=g*p*A/z;y=1-E*E;A=B-2*t*w/y;isNaN(A)&&(A=0);G=e/16*y*(4+e*(4-3*y));F=x;x=f+(1-G)*e*E*(C+G*z*(A+G*B*(-1+2*A*A)))}while(1E-12<Math.abs(x-F)&&0<--D);if(0===D)return t=c-b,{azimuth:Math.atan2(Math.sin(t)*Math.cos(d),Math.cos(a)*Math.sin(d)-Math.sin(a)*
Math.cos(d)*Math.cos(t)),geodesicDistance:6371009*Math.acos(Math.sin(a)*Math.sin(d)+Math.cos(a)*Math.cos(d)*Math.cos(c-b))};a=2.7233160610754688E11*y/4.040829998466145E13;b=a/1024*(256+a*(-128+a*(74-47*a)));return{azimuth:Math.atan2(p*Math.sin(x),g*w-t*p*Math.cos(x)),mN:6356752.31424518*(1+a/16384*(4096+a*(-768+a*(320-175*a))))*(C-b*z*(A+b/4*(B*(-1+2*A*A)-b/6*A*(-3+4*z*z)*(-3+4*A*A)))),qU:Math.atan2(g*Math.sin(x),g*w*Math.cos(x)-t*p)}};a.PS=function(a){var b=a.hasAttribute(1),d=a.hasAttribute(2),
e=[],f=a.ea(),g=null,n=null;b&&(g=a.mc(1));d&&(n=a.mc(2));for(var p=new c.b,t=0;t<f;t++){for(var w=a.Ea(t),x=a.Ha(t),F=0,D=0,y=NaN,z=NaN,A=NaN,B=NaN,C=a.vc(t),E=[],G=w;G<w+x;G++){a.w(G,p);var B=A=NaN,H=[p.x,p.y];b&&(A=g.get(G),H.push(A));d&&(f=n.get(G),H.push(B));G==w&&C&&(F=p.x,D=p.y,y=A,z=B);E.push(H)}!C||F==p.x&&D==p.y&&(!b||isNaN(y)&&isNaN(A)||y==A)&&(!d||isNaN(z)&&isNaN(B)||z==B)||E.push(E[0].slice(0));e.push(E)}return e};a.fw=function(b,d){var c=a.PS(b),f=Math.PI/180;637.100877151506>d&&(d=
637.100877151506);for(var g=[],q=0;q<c.length;q++){var n=c[q],p;g.push(p=[]);p.push([n[0][0],n[0][1]]);var t,w,x,F,D,y;t=n[0][0]*f;w=n[0][1]*f;for(D=0;D<n.length-1;D++)if(x=n[D+1][0]*f,F=n[D+1][1]*f,t!==x||w!==F){F=a.JK(w,t,F,x);x=F.azimuth;F=F.mN;var z=F/d;if(1<z){for(y=1;y<=z-1;y++){var A=a.Vu(w,t,x,y*d);p.push([A.x,A.y])}y=a.Vu(w,t,x,(F+Math.floor(z-1)*d)/2);p.push([y.x,y.y])}w=a.Vu(w,t,x,F);p.push([w.x,w.y]);t=w.x*f;w=w.y*f}}return{jF:g}};a.lN=function(b){for(var d=[],f=0;f<b.length;f++){var g=
b[f],g=a.fw(g,1E4);d.push(g)}b=[];for(var r,q,n=0;n<d.length;n++){for(var g=d[n],p=0,f=0;f<g.jF.length;f++){var t=g.jF[f];r=a.Wr(c.b.Oa(t[0][0],t[0][1]));q=a.Wr(c.b.Oa(t[t.length-1][0],t[t.length-1][1]));var w=q.x*r.y-r.x*q.y,x;for(x=0;x<t.length-1;x++)r=a.Wr(c.b.Oa(t[x+1][0],t[x+1][1])),q=a.Wr(c.b.Oa(t[x][0],t[x][1])),w+=q.x*r.y-r.x*q.y;w/=4046.87;p+=w}b.push(p/-2*4046.85642)}return b};return a}();c.mH=f;f=function(){function b(){}b.oy=function(a,d,c,f,g,q,n){b.sG[a.gc()]=d;0==isNaN(c)&&(b.yG[a.gc()]=
c);0==isNaN(f)&&(b.GG[a.gc()]=f);0==isNaN(g)&&(b.iG[a.gc()]=g);b.AG[a.gc()]=q;null!==n&&(b.CG[a.gc()]=n)};b.wu=function(a,d,c){b.EG[a.gc()+"-"+d.gc()]=c};b.Em=function(a){a=b.sG[a.gc()];if(void 0==a)throw c.g.qe();return a};b.FC=function(a){a=b.yG[a.gc()];if(void 0==a)throw c.g.qe();return a};b.et=function(a){a=b.GG[a.gc()];if(void 0==a)throw c.g.qe();return a};b.Ss=function(a){a=b.iG[a.gc()];if(void 0==a)throw c.g.qe();return a};b.Fm=function(a){a=b.CG[a.gc()];if(void 0==a)throw c.g.qe();return c.i.Oa(a[0],
a[1],a[2],a[3])};b.Po=function(a){a=b.AG[a.gc()];if(void 0==a)throw c.g.qe();return a};b.Wl=function(a,d,f){if(d.lc(f))return a;var g=b.EG[d.gc()+"-"+f.gc()];if(void 0!==g)return g(a,d,f);throw c.g.qe();};b.su=function(){throw c.g.qe();};b.rN=function(){throw c.g.qe();};b.$Q=function(){throw c.g.qe();};b.UN=function(){throw c.g.qe();};b.sR=function(){var b=c.gh.create(102100),e=c.gh.create(3857),f=c.gh.create(4326);c.Ya.oy(b,f,NaN,NaN,NaN,!1,null);c.Ya.oy(f,f,1,.0033528106647474805,6378137,!0,[-180,
-90,180,90]);c.Ya.oy(e,f,NaN,NaN,NaN,!1,null);c.Ya.wu(b,f,a);c.Ya.wu(f,b,d);c.Ya.wu(e,f,a);c.Ya.wu(f,e,d)};b.sG=[];b.yG=[];b.GG=[];b.iG=[];b.AG=[];b.CG=[];b.EG=[];return b}();c.Ya=f})(t||(t={}));t.Ya.sR();(function(c){var p=function(){function g(b){this.f=null;this.pg=-1;this.Vc=this.size=this.We=0;this.Ic=b}g.prototype.Jc=function(b){b<this.We?(this.f[b*this.Ic]=this.pg,this.pg=b):this.We--;this.size--};g.prototype.O=function(b,a){return this.f[b*this.Ic+a]};g.prototype.L=function(b,a,d){this.f[b*
this.Ic+a]=d};g.prototype.ae=function(){var b=this.pg;if(-1==b){if(this.We==this.Vc){b=0!=this.Vc?c.I.truncate(3*(this.Vc+1)/2):1;2147483647<b&&(b=2147483647);if(b==this.Vc)throw c.g.Sc();this.Gm(b)}b=this.We;this.We++}else this.pg=this.f[b*this.Ic];this.size++;for(var a=b*this.Ic+this.Ic,d=b*this.Ic;d<a;d++)this.f[d]=-1;return b};g.prototype.Oj=function(b){var a=this.pg;if(-1==a){if(this.We==this.Vc){a=0!=this.Vc?c.I.truncate(3*(this.Vc+1)/2):1;2147483647<a&&(a=2147483647);if(a==this.Vc)throw c.g.Sc();
this.Gm(a)}a=this.We;this.We++}else this.pg=this.f[a*this.Ic];this.size++;for(var d=a*this.Ic,f=this.Ic,e=0;e<f;e++)this.f[d+e]=b[e];return a};g.prototype.Nh=function(b){this.pg=-1;this.size=this.We=0;b&&(this.f=null,this.Vc=0)};g.prototype.ce=function(b){b>this.Vc&&this.Gm(b)};g.prototype.Ou=function(b,a,d){var c=this.f[this.Ic*a+d];this.f[this.Ic*a+d]=this.f[this.Ic*b+d];this.f[this.Ic*b+d]=c};g.Zk=function(){return-2};g.lm=function(){return-3};g.Zw=function(b){return 0<=b};g.prototype.Gm=function(b){null==
this.f&&(this.f=[]);this.Vc=b};return g}();c.Fc=p;p=function(){function g(b){this.f=new Int32Array(0);this.pg=-1;this.Vc=this.size=this.We=0;this.Ic=b}g.prototype.Jc=function(b){b<this.We?(this.f[b*this.Ic]=this.pg,this.pg=b):this.We--;this.size--};g.prototype.O=function(b,a){return this.f[b*this.Ic+a]};g.prototype.L=function(b,a,d){this.f[b*this.Ic+a]=d};g.prototype.ae=function(){var b=this.pg;if(-1==b){if(this.We==this.Vc){b=0!=this.Vc?c.I.truncate(3*(this.Vc+1)/2):1;2147483647<b&&(b=2147483647);
if(b==this.Vc)throw c.g.Sc();this.Gm(b)}b=this.We;this.We++}else this.pg=this.f[b*this.Ic];this.size++;for(var a=b*this.Ic;a<b*this.Ic+this.Ic;a++)this.f[a]=-1;return b};g.prototype.Oj=function(b){var a=this.pg;if(-1==a){if(this.We==this.Vc){a=0!=this.Vc?c.I.truncate(3*(this.Vc+1)/2):1;2147483647<a&&(a=2147483647);if(a==this.Vc)throw c.g.Sc();this.Gm(a)}a=this.We;this.We++}else this.pg=this.f[a*this.Ic];this.size++;for(var d=a*this.Ic,f=0;f<b.length;f++)this.f[d+f]=b[f];return a};g.prototype.Nh=function(b){this.pg=
-1;this.size=this.We=0;b&&(this.f=null,this.Vc=0)};g.prototype.ce=function(b){b>this.Vc&&this.Gm(b)};g.prototype.Ou=function(b,a,d){var c=this.f[this.Ic*a+d];this.f[this.Ic*a+d]=this.f[this.Ic*b+d];this.f[this.Ic*b+d]=c};g.Zk=function(){return-2};g.lm=function(){return-3};g.Zw=function(b){return 0<=b};g.prototype.Gm=function(b){null==this.f&&(this.f=new Int32Array(0));var a=new Int32Array(this.Ic*b);a.set(this.f,0);this.f=a;this.Vc=b};return g}();c.HI=p;!0===c.$g.Sk&&(c.Fc=c.HI)})(t||(t={}));(function(c){var p;
(function(a){a[a.enumInputModeBuildGraph=0]="enumInputModeBuildGraph";a[a.enumInputModeSimplifyAlternate=4]="enumInputModeSimplifyAlternate";a[a.enumInputModeSimplifyWinding=5]="enumInputModeSimplifyWinding";a[a.enumInputModeIsSimplePolygon=7]="enumInputModeIsSimplePolygon"})(p||(p={}));var g=function(){function a(a){this.le=a;this.Yg=NaN;this.HD=new c.zg;this.JD=new c.zg;this.zq=new c.Nd;this.Aq=new c.Nd}a.prototype.compare=function(a,b,c){a=a.da(c);this.le.iy(b,this.HD);this.le.iy(a,this.JD);b=
this.HD.get();a=this.JD.get();this.zq.K(b.na,b.la);this.Aq.K(a.na,a.la);if(this.zq.va<this.Aq.qa)return-1;if(this.zq.qa>this.Aq.va)return 1;c=b.ja==b.ha;var h=a.ja==a.ha;if(c||h){if(c&&h)return 0;if(b.ja==a.ja&&b.na==a.na)return c?1:-1;if(b.ha==a.ha&&b.la==a.la)return c?-1:1}c=b.ye(this.Yg,this.zq.qa);h=a.ye(this.Yg,this.Aq.qa);c==h&&(c=Math.min(b.ha,a.ha),h=.5*(c+this.Yg),h==this.Yg&&(h=c),c=b.ye(h,this.zq.qa),h=a.ye(h,this.Aq.qa));return c<h?-1:c>h?1:0};a.prototype.XF=function(a){this.Yg=a};return a}(),
b=function(){function a(a){this.ab=a;this.rE=new c.zg;this.nf=new c.b;this.xx=new c.Nd}a.prototype.gS=function(a){this.nf.J(a)};a.prototype.compare=function(a,b){this.ab.iy(a.da(b),this.rE);var c=this.rE.get();this.xx.K(c.na,c.la);if(this.nf.x<this.xx.qa)return-1;if(this.nf.x>this.xx.va)return 1;c=c.ye(this.nf.y,this.nf.x);return this.nf.x<c?-1:this.nf.x>c?1:0};return a}();p=function(){function a(){this.LD=this.Vh=this.Yh=this.px=this.Pm=this.ie=this.xc=this.Hg=this.Sd=null;this.sn=this.eg=-1;this.KD=
!0;this.tx=!1;this.qx=NaN;this.ei=new c.wd;this.DK=2147483647;this.CK=c.I.truncate(-2147483648);this.Kf=this.Md=this.Ek=this.kp=this.Bl=this.jp=this.Yq=this.Ce=-1;this.ta=0}a.prototype.Mv=function(a){this.qx=a};a.prototype.Ul=function(){null==this.Sd&&(this.Sd=new c.Fc(8));var a=this.Sd.ae();this.Sd.L(a,1,0);return a};a.prototype.mQ=function(){null==this.xc&&(this.xc=new c.Fc(8));var a=this.xc.ae();this.xc.L(a,2,0);this.xc.L(a,3,0);var b=this.xc.ae();this.xc.L(b,2,0);this.xc.L(b,3,0);this.DF(a,b);
this.DF(b,a);return a};a.prototype.CE=function(){null==this.ie&&(this.ie=new c.Fc(8));var a=this.ie.ae();this.ie.L(a,2,0);return a};a.prototype.SR=function(a,b){this.Sd.L(a,7,b)};a.prototype.em=function(a,b){this.Sd.L(a,2,b)};a.prototype.RR=function(a,b){this.Sd.L(a,1,b)};a.prototype.hS=function(a,b){this.Sd.L(a,3,b)};a.prototype.eS=function(a,b){this.Sd.L(a,4,b)};a.prototype.Kp=function(a,b){this.Sd.L(a,5,b)};a.prototype.vN=function(a){return this.Sd.O(a,5)};a.prototype.QR=function(a,b){this.Sd.L(a,
6,b)};a.prototype.HJ=function(a,b){this.QR(b,a)};a.prototype.CF=function(a,b){this.xc.L(a,1,b)};a.prototype.DF=function(a,b){this.xc.L(a,4,b)};a.prototype.Rk=function(a,b){this.xc.L(a,5,b)};a.prototype.Qk=function(a,b){this.xc.L(a,6,b)};a.prototype.XR=function(a,b){this.xc.L(a,2,b)};a.prototype.Cu=function(a,b){this.xc.L(a,3,b)};a.prototype.wC=function(a){return this.xc.O(a,3)};a.prototype.Hr=function(a,b){this.xc.L(a,7,b)};a.prototype.xG=function(a,b){if(-1!=this.ql(a))for(var c=b?-1:a,h=this.ql(a);-1!=
h;h=this.yq(h))this.a.lb(this.Gi(h),this.kp,c)};a.prototype.Su=function(a,b){-1!=a&&(this.xG(a,b),this.xG(this.sa(a),b))};a.prototype.Fr=function(a,b){this.ie.L(a,1,b)};a.prototype.xg=function(a,b){this.ie.L(a,2,b)};a.prototype.cm=function(a,b){this.ie.L(a,3,b);this.NR(a,this.uN(b));this.MR(b,a)};a.prototype.MR=function(a,b){this.ie.L(a,4,b)};a.prototype.NR=function(a,b){this.ie.L(a,5,b)};a.prototype.xF=function(a,b){this.ie.L(a,6,b)};a.prototype.vF=function(a,b){this.ie.L(a,7,b)};a.prototype.uF=
function(a,b){this.Pm.write(a,b)};a.prototype.wF=function(a,b){this.px.write(a,b)};a.prototype.aT=function(a){var b=0,e=0,h=this.mC(a),g=new c.b,k=new c.b,m=new c.b;this.sq(h,g);k.J(g);var r=h;do this.pl(r,m),e+=c.b.Fb(k,m),this.Pe(this.sa(r))!=a&&(b+=(m.x-g.x-(k.x-g.x))*(m.y-g.y+(k.y-g.y))*.5),k.J(m),r=this.Vb(r);while(r!=h);this.Pm.write(a,b);this.px.write(a,e)};a.prototype.IQ=function(a){var f=new g(this),e=new c.bj;e.ce(c.I.truncate(this.ta/2));e.Hn(f);for(var h=new c.ga(0),l=this.Dg(),k=null,
m=0,r=new c.b,q=this.Ce;-1!=q;q=this.Bf(q)){m++;var n=this.ue(q);if(-1!=n){h.cf(0);if(!this.WS(e,l,h,n)){this.w(q,r);f.XF(r.y);var p=n;do{var t=this.tb(p,l);-1!=t&&(e.jd(t,-1),this.Bb(p,l,-2));p=this.Vb(this.sa(p))}while(n!=p);p=n;do t=this.tb(p,l),-1==t&&(t=e.addElement(p,-1),h.add(t)),p=this.Vb(this.sa(p));while(n!=p)}for(n=h.size-1;0<=n;n--)t=h.get(n),p=e.da(t),this.Bb(this.sa(p),l,t),this.HQ(e,t,a)}else-1==this.mw(q)&&(null==k&&(k=new b(this)),this.w(q,r),k.gS(r),p=e.IR(k),n=this.Ek,-1!=p&&(t=
e.da(p),this.Pe(t)==this.Pe(this.sa(t))&&(t=this.yC(e,p)),-1!=t&&(n=this.Pe(t))),this.HJ(n,q))}this.jh(l)};a.prototype.HQ=function(a,b,c){var h=a.da(b),g=this.Pe(h);if(-1==this.ym(g)){var k=this.yC(a,b),m=this.sa(h),r=this.Pe(m);this.xo(g);this.xo(r);var q=this.ym(g),n=this.ym(r);-1==k&&-1==q&&(r==g?(this.cm(r,this.Ek),q=n=this.Ek):(-1==n&&(this.cm(r,this.Ek),n=this.Ek),this.cm(g,r),q=r));if(-1!=k){var p=this.Pe(k);-1==n&&(0>=this.xo(p)?(n=this.ym(p),this.cm(r,n)):(this.cm(r,p),n=p),r==g&&(q=n))}-1==
q&&this.XS(g,r);0==c?this.cR(a,b,h,k,g,r):5==c?this.dR(a,b,h,m,g,r):4==c&&this.bR(h,k,g,r)}};a.prototype.cR=function(a,b,c,h,g,k){var m=this.oj(g);if(-1!=h){var r=this.oj(k),q=this.oj(this.Pe(h));h=m&r&q;q^=q&this.Fg(c);q|=h;0!=q&&(this.xg(k,r|q),this.xg(g,q|m),m=m||q)}for(b=a.bb(b);-1!=b;b=a.bb(b)){h=a.da(b);c=this.Pe(this.sa(h));g=this.oj(c);k=this.Fg(h);r=this.Pe(h);q=this.oj(r);h=g&q&m;m^=m&k;m|=h;if(0==m)break;this.xg(c,g|m);this.xg(r,q|m)}};a.prototype.dR=function(a,b,e,g,l,k){if(l!=k){e=this.tb(e,
this.Kf);e+=this.tb(g,this.Kf);g=0;var m=new c.ga(0),r=new c.ga(0);r.add(0);for(var q=a.fc(-1);q!=b;q=a.bb(q)){var n=a.da(q),p=this.sa(n),t=this.Pe(n),w=this.Pe(p);if(t!=w){n=this.tb(n,this.Kf);n+=this.tb(p,this.Kf);g+=n;p=!1;0!=m.size&&m.tc()==w&&(r.af(),m.af(),p=!0);if(-1==this.ym(w))throw c.g.wa();p&&this.ym(w)==t||(r.add(g),m.add(t))}}g+=e;0!=m.size&&m.tc()==k&&(r.af(),m.af());0!=g?0==r.tc()&&(a=this.a.Yc,a=this.ya(a),this.xg(l,a)):0!=r.tc()&&(a=this.a.Yc,a=this.ya(a),this.xg(l,a))}};a.prototype.bR=
function(a,b,c,g){var l=this.ya(this.a.Yc);if(-1==b)this.xg(g,this.sn),a=this.tb(a,this.eg),0!=(a&1)?this.xg(c,l):this.xg(c,this.sn);else{var k=this.oj(g);0==k&&(k=this.oj(this.Pe(b)),this.xg(g,k));a=this.tb(a,this.eg);0!=(a&1)?this.xg(c,k==l?this.sn:l):this.xg(c,k)}};a.prototype.WS=function(a,b,c,g){var l=g,k=-1,m=-1,r=0;do{if(2==r)return!1;var q=this.tb(l,b);if(-1!=q){if(-1!=k)return!1;k=q}else{if(-1!=m)return!1;m=l}r++;l=this.Vb(this.sa(l))}while(g!=l);if(-1==m||-1==k)return!1;this.Bb(a.da(k),
b,-2);a.Vi(k,m);c.add(k);return!0};a.prototype.XS=function(a,b){var c=this.xo(a);if(0!=c){var g=this.xo(b);0<c&&0>g?this.cm(a,b):0>c&&0<g?this.cm(a,b):(c=this.ym(b),-1!=c&&this.cm(a,c))}};a.prototype.QL=function(a,b){this.kp=this.a.se();for(var e=0,g=b.size;e<g;e++){var l=b.get(e),k=this.a.Ra(l,this.Bl),m=this.a.Vf(this.a.rd(l)),r=this.a.Lb(m);if(c.T.Kc(r)){var q=this.a.X(l);if(-1!=q){var n=this.a.Ra(q,this.Bl);if(k!=n){var p=this.mQ(),t=this.sa(p),w=this.Hg.ae();this.Hg.L(w,0,l);this.Hg.L(w,1,-1);
this.Hr(p,w);this.CF(p,k);w=this.ue(k);-1==w?(this.em(k,p),this.Rk(p,t),this.Qk(t,p)):(k=this.ee(w),this.Rk(w,t),this.Qk(t,w),this.Qk(k,p),this.Rk(p,k));this.CF(t,n);k=this.ue(n);-1==k?(this.em(n,t),this.Qk(p,t),this.Rk(t,p)):(n=this.ee(k),this.Rk(k,p),this.Qk(p,k),this.Qk(n,t),this.Rk(t,n));m=this.ya(m);0==a?(this.Bb(t,this.Md,0),this.Bb(p,this.Md,1736==r?m:0)):5==a?(n=new c.b,this.a.w(l,n),l=new c.b,this.a.w(q,l),k=q=0,0>n.compare(l)?q=1:k=-1,this.Bb(t,this.Md,0),this.Bb(p,this.Md,0),this.Bb(p,
this.Kf,q),this.Bb(t,this.Kf,k)):7==a?(this.Bb(t,this.Md,this.sn),this.Bb(p,this.Md,1736==r?m:0)):4==a&&(this.Bb(t,this.Md,0),this.Bb(p,this.Md,0),this.Bb(p,this.eg,1),this.Bb(t,this.eg,1));r=1736==r?this.CK:0;this.Cu(p,m|r);this.Cu(t,m|r)}}}}};a.prototype.aQ=function(a,b){var c=this.ql(b);if(-1!=c){var g=this.ql(a);this.Hg.L(c,1,g);this.Hr(a,c);this.Hr(b,-1)}var l=this.sa(a),k=this.sa(b),c=this.ql(k);-1!=c&&(g=this.ql(l),this.Hg.L(c,1,g),this.Hr(l,c),this.Hr(k,-1))};a.prototype.CS=function(a){function b(a,
d){return g.kL(a,d)}var e=new c.ga(0);e.xb(10);for(var g=this,l=this.Ce;-1!=l;l=this.Bf(l)){e.clear(!1);var k=this.ue(l);if(-1!=k){var m=k;do e.add(m),m=this.Vb(this.sa(m));while(m!=k);if(1<e.size){m=!0;if(2<e.size)e.xd(0,e.size,b),e.add(e.get(0));else if(0<this.jL(e.get(0),e.get(1))){var r=e.get(0);e.set(0,e.get(1));e.set(1,r)}else m=!1;for(var q=r=e.get(0),n=this.jf(q),p=this.sa(q),t=-1,w=1,x=e.size;w<x;w++){var F=e.get(w),D=this.sa(F),y=this.pj(D);if(y==n&&F!=q){if(0==a)t=this.wC(q)|this.wC(F),
this.Cu(q,t),this.Cu(p,t),this.Bb(q,this.Md,this.tb(q,this.Md)|this.tb(F,this.Md)),this.Bb(p,this.Md,this.tb(p,this.Md)|this.tb(D,this.Md));else if(-1!=this.Kf)t=this.tb(q,this.Kf)+this.tb(F,this.Kf),D=this.tb(p,this.Kf)+this.tb(D,this.Kf),this.Bb(q,this.Kf,t),this.Bb(p,this.Kf,D);else{if(7==a){this.ei=new c.wd(5,l,-1);return}-1!=this.eg&&(t=this.tb(q,this.eg)+this.tb(F,this.eg),D=this.tb(p,this.eg)+this.tb(D,this.eg),this.Bb(q,this.eg,t),this.Bb(p,this.eg,D))}this.aQ(q,F);this.Wv(F);t=q;e.set(w,
-1);F==r&&(e.set(0,-1),r=-1)}else this.Su(t,!1),t=-1,q=F,n=y,p=D}this.Su(t,!1);t=-1;if(m){r=-1;w=0;for(x=e.size;w<x;w++)if(F=e.get(w),-1!=F)if(-1==r)q=r=F,n=this.jf(q),p=this.sa(q);else if(F!=q&&(D=this.sa(F),y=this.pj(D),this.Qk(p,F),this.Rk(F,p),q=F,n=y,p=D,7==a&&(this.tb(F,this.Md)|this.tb(this.ee(F),this.Md))==(this.sn|1))){this.ei=new c.wd(5,l,-1);return}this.em(l,r)}else{r=-1;w=0;for(x=e.size;w<x;w++)if(F=e.get(w),-1!=F){r=F;break}k!=r&&this.em(l,r)}}}}};a.prototype.zK=function(){for(var a=
-1,b=this.Dg(),e=this.Ce;-1!=e;e=this.Bf(e)){var g=this.ue(e);if(-1!=g){var l=g;do{if(1!=this.tb(l,b)){var k=this.CE();this.Fr(k,l);this.vF(k,a);-1!=a&&this.xF(a,k);var a=k,m=0,r=l;do m|=this.tb(r,this.Md),this.XR(r,k),this.Bb(r,b,1),r=this.Vb(r);while(r!=l);this.xg(k,m)}l=this.Vb(this.sa(l))}while(l!=g)}}k=this.CE();this.Fr(k,-1);this.vF(k,a);-1!=a&&this.xF(a,k);this.Ek=k;this.Pm=c.qd.Wc(this.ie.size,NaN);this.px=c.qd.Wc(this.ie.size,NaN);this.uF(this.Ek,Infinity);this.wF(this.Ek,Infinity);this.jh(b)};
a.prototype.FN=function(a,b,c){b=-1!=b?b:this.ue(a);if(-1==b)return-1;for(a=b;;){if(1!=this.tb(b,c))return b;b=this.Vb(this.sa(b));if(b==a)return-1}};a.prototype.wR=function(){for(var a=this.Dg(),b=this.Ce;-1!=b;b=this.Bf(b))for(var c=-1;;){var g=this.FN(b,c,a);if(-1==g)break;for(var c=this.Vb(this.sa(g)),l=g;;){var k=this.Vb(l),m=this.ee(l),r=this.sa(l);if(m==r){this.aM(l);if(c==l||c==r)c=-1;if(l==g||m==g){g=k;if(l==g||m==g)break;l=k;continue}}else this.Bb(l,a,1);l=k;if(l==g)break}}};a.prototype.Ay=
function(a,b,e,g){this.wg();this.KD=g;this.a=a;this.jp=this.a.QB();a=new c.ga(0);a.xb(null!=e?this.a.F(e.get(0)):this.a.pd);var l=0,k=1,m=null!=e?e.get(0):this.a.Yc;for(g=1;-1!=m;){this.a.BF(m,this.jp,k);for(var k=k<<1,r=this.a.Ub(m);-1!=r;r=this.a.ac(r))for(var q=this.a.Cb(r),n=0,p=this.a.Ha(r);n<p;n++)a.add(q),q=this.a.X(q);c.T.Km(this.a.Lb(m))||(l+=this.a.ea(m));null!=e?(m=g<e.size?e.get(g):-1,g++):m=this.a.xe(m)}this.sn=k;this.ta=a.size;this.a.Lu(a,this.ta);null==this.Hg&&(this.Hg=new c.Fc(2),
this.Sd=new c.Fc(8),this.xc=new c.Fc(8),this.ie=new c.Fc(8));this.Hg.ce(this.ta);this.Sd.ce(this.ta+10);this.xc.ce(2*this.ta+32);this.ie.ce(Math.max(32,l));this.Bl=this.a.se();e=new c.b;g=0;l=new c.b;e.Dh();for(k=0;k<=this.ta;k++)if(k<this.ta?(q=a.get(k),this.a.w(q,l)):l.Dh(),!e.ub(l)){if(g<k){q=this.Ul();for(p=n=-1;g<k;g++)p=a.get(g),this.a.lb(p,this.Bl,q),m=this.Hg.ae(),this.Hg.L(m,0,p),this.Hg.L(m,1,n),n=m,r=this.a.rd(p),m=this.a.Vf(r),m=this.ya(m),this.RR(q,this.ld(q)|m);this.SR(q,n);this.Kp(q,
this.a.gb(p));-1!=this.Yq&&this.eS(this.Yq,q);this.hS(q,this.Yq);this.Yq=q;-1==this.Ce&&(this.Ce=q)}g=k;e.J(l)}this.Md=this.Dg();5==b&&(this.Kf=this.Dg());4==b&&(this.eg=this.Dg());this.QL(b,a);0==this.ei.xh&&(this.CS(b),0==this.ei.xh&&(isNaN(this.qx)||this.YK()?(this.zK(),0==this.ei.xh&&(this.jh(this.Md),this.Md=-1,this.KD&&this.IQ(b))):this.tx=!0))};a.prototype.Wv=function(a){var b=this.Vb(a),c=this.ee(a),g=this.sa(a),l=this.Vb(g),k=this.ee(g);b!=g&&(this.Qk(k,b),this.Rk(b,k));c!=g&&(this.Qk(c,
l),this.Rk(l,c));c=this.pj(a);this.ue(c)==a&&(l!=a?this.em(c,l):this.em(c,-1));l=this.pj(g);this.ue(l)==g&&(b!=g?this.em(l,b):this.em(l,-1));this.xc.Jc(a);this.xc.Jc(g)};a.prototype.yC=function(a,b){for(var c=b;;)if(c=a.fe(c),-1!=c){var g=a.da(c);if(this.Pe(g)!=this.Pe(this.sa(g)))return g}else return-1};a.prototype.Lp=function(a,b,c){void 0===c&&(c=!0);this.Ay(a,0,null,c)};a.prototype.qF=function(a,b){var e=new c.ga(0);e.add(b);this.Ay(a,4,e,1736==a.Lb(b))};a.prototype.rF=function(a,b){var e=new c.ga(0);
e.add(b);this.Ay(a,5,e,!0)};a.prototype.wg=function(){null!=this.a&&(-1!=this.jp&&(this.a.vR(this.jp),this.jp=-1),-1!=this.Bl&&(this.a.bf(this.Bl),this.Bl=-1),-1!=this.kp&&(this.a.bf(this.kp),this.kp=-1),-1!=this.Md&&(this.jh(this.Md),this.Md=-1),-1!=this.Kf&&(this.jh(this.Kf),this.Kf=-1),-1!=this.eg&&(this.jh(this.eg),this.eg=-1),this.a=null,this.Sd.Nh(!0),this.Hg.Nh(!0),this.Yq=this.Ce=-1,null!=this.xc&&this.xc.Nh(!0),null!=this.Yh&&(this.Yh.length=0),null!=this.Vh&&(this.Vh.length=0),null!=this.LD&&
(this.LD.length=0),null!=this.ie&&this.ie.Nh(!0),this.Ek=-1,this.Pm=null)};a.prototype.ue=function(a){return this.Sd.O(a,2)};a.prototype.w=function(a,b){this.a.PC(this.vN(a),b)};a.prototype.ld=function(a){return this.Sd.O(a,1)};a.prototype.Bf=function(a){return this.Sd.O(a,4)};a.prototype.mw=function(a){return this.Sd.O(a,6)};a.prototype.ol=function(a){return this.Sd.O(a,7)};a.prototype.yq=function(a){return this.Hg.O(a,1)};a.prototype.Gi=function(a){return this.Hg.O(a,0)};a.prototype.Sf=function(a,
b){var c=this.Vh[b];return c.size<=a?-1:c.read(a)};a.prototype.fm=function(a,b,c){b=this.Vh[b];b.size<=a&&b.resize(this.Sd.size,-1);b.write(a,c)};a.prototype.to=function(){null==this.Vh&&(this.Vh=[]);for(var a=c.ga.Wc(this.Sd.Vc,-1),b=0,e=this.Vh.length;b<e;b++)if(null==this.Vh[b])return this.Vh[b]=a,b;this.Vh.push(a);return this.Vh.length-1};a.prototype.uo=function(a){this.Vh[a]=null};a.prototype.pj=function(a){return this.xc.O(a,1)};a.prototype.jf=function(a){return this.pj(this.sa(a))};a.prototype.sa=
function(a){return this.xc.O(a,4)};a.prototype.ee=function(a){return this.xc.O(a,5)};a.prototype.Vb=function(a){return this.xc.O(a,6)};a.prototype.Pe=function(a){return this.xc.O(a,2)};a.prototype.Qe=function(a){return this.oj(this.xc.O(a,2))};a.prototype.ql=function(a){return this.xc.O(a,7)};a.prototype.sq=function(a,b){this.w(this.pj(a),b)};a.prototype.pl=function(a,b){this.w(this.jf(a),b)};a.prototype.Fg=function(a){return this.xc.O(a,3)&this.DK};a.prototype.tb=function(a,b){var c=this.Yh[b];return c.size<=
a?-1:c.read(a)};a.prototype.Bb=function(a,b,c){b=this.Yh[b];b.size<=a&&b.resize(this.xc.size,-1);b.write(a,c)};a.prototype.Dg=function(){null==this.Yh&&(this.Yh=[]);for(var a=c.ga.Wc(this.xc.Vc,-1),b=0,e=this.Yh.length;b<e;b++)if(null==this.Yh[b])return this.Yh[b]=a,b;this.Yh.push(a);return this.Yh.length-1};a.prototype.jh=function(a){this.Yh[a]=null};a.prototype.aM=function(a){var b=this.Pe(a),c=this.Vb(a);c==this.sa(a)&&(c=this.Vb(c),c==a&&(c=-1));this.mC(b)==a&&this.Fr(b,c);c=this.Pm.read(b);isNaN(c)||
(this.uF(b,NaN),this.wF(b,NaN));this.Su(a,!0);this.Wv(a)};a.prototype.bM=function(a){for(var b=0,c=a.size;b<c;b++){var g=a.get(b),l=this.Pe(this.sa(g));this.Fr(this.Pe(g),-1);this.Fr(l,-1);this.Su(g,!0);this.Wv(g)}};a.prototype.mC=function(a){return this.ie.O(a,1)};a.prototype.oj=function(a){return this.ie.O(a,2)};a.prototype.ym=function(a){return this.ie.O(a,3)};a.prototype.uN=function(a){return this.ie.O(a,4)};a.prototype.xo=function(a){var b=this.Pm.read(a);isNaN(b)&&(this.aT(a),b=this.Pm.read(a));
return b};a.prototype.ya=function(a){return this.a.vC(a,this.jp)};a.prototype.te=function(a){return this.a.Ra(a,this.Bl)};a.prototype.HN=function(a){return this.a.Ra(a,this.kp)};a.prototype.GN=function(a,b){var c=this.ue(a);if(-1==c)return-1;var g=c,l=-1,k=-1;do{if(this.jf(g)==b)return g;if(-1==l){l=this.ue(b);if(-1==l)break;k=l}if(this.jf(k)==a)return g=this.sa(k);g=this.Vb(this.sa(g));k=this.Vb(this.sa(k))}while(g!=c&&k!=l);return-1};a.prototype.iy=function(a,b){b.lq();var e=b.get(),g=new c.b;this.sq(a,
g);e.dd(g);this.pl(a,g);e.vd(g)};a.prototype.kL=function(a,b){if(a==b)return 0;var e=new c.b;this.pl(a,e);var g=new c.b;this.pl(b,g);if(e.ub(g))return 0;var l=new c.b;this.sq(a,l);var k=new c.b;k.pc(e,l);e=new c.b;e.pc(g,l);return c.b.bq(k,e)};a.prototype.jL=function(a,b){if(a==b)return 0;var e=new c.b;this.pl(a,e);var g=new c.b;this.pl(b,g);if(e.ub(g))return 0;var l=new c.b;this.sq(a,l);var k=new c.b;k.pc(e,l);e=new c.b;e.pc(g,l);return 0<=e.y&&0<k.y?c.b.bq(k,e):0};a.prototype.YK=function(){for(var a=
c.vi.Ty(this.qx),b=new c.b,e=new c.b,g=new c.b,l=new c.b,k=new c.b,m=this.Ce;-1!=m;m=this.Bf(m)){var r=this.ue(m);if(-1!=r){var q=r;this.sq(q,b);this.pl(q,e);k.pc(e,b);var n=k.Tp();do{var p=q,q=this.Vb(this.sa(q));if(q!=p){this.pl(q,g);l.pc(g,b);var p=l.Tp(),t=l.Ai(k);if(t*t/(p*n)*Math.min(p,n)<=a)return!1;k.J(l);n=p;e.J(g)}}while(q!=r)}}return!0};return a}();c.fs=p})(t||(t={}));(function(c){var p=function(){function g(){this.h=null;this.QD=new c.b;this.RD=new c.b;this.Pg=null;this.Fq=!1;this.Ym=
-1}g.prototype.Te=function(b){return b<this.Pg.length?this.Pg[b]:!1};g.prototype.xm=function(b,a,d,f){var e=c.T.we(this.h.a.Lb(d));if(2==c.T.we(this.h.a.Lb(a))&&1==e)this.VL(b,a,d,f);else throw c.g.wa();};g.prototype.Lp=function(b,a){null==this.h&&(this.h=new c.fs);this.h.Lp(b,a)};g.prototype.Mp=function(b,a,d){c.aj.$(b,a,d,!0);for(a=b.Yc;-1!=a;a=b.xe(a))1736==b.Lb(a)&&c.mm.$(b,a,-1,this.Fq,d);this.Lp(b,d)};g.prototype.DB=function(b,a,c,f,e){var g=this.h.a;if(1736==g.Lb(b))for(b=g.Ub(b);-1!=b;b=g.ac(b)){var l=
g.Cb(b);this.h.te(l);this.h.te(g.X(l));var k=this.h.HN(l);if(-1!=k){var m=this.h.tb(k,c);if(1!=m&&2!=m)if(this.Te(this.h.Qe(k))){this.h.Bb(k,c,1);var m=g.Cf(a,-1),r=k,q=this.h.te(l),n=1;do{var p=this.tl(l,e);g.zi(m,p);-1!=f&&this.h.fm(q,f,1);this.h.Bb(r,c,1);var r=this.h.Vb(r),t;do p=1==n?g.X(l):g.Ua(l),t=-1!=p?this.h.te(p):-1;while(t==q);var w=this.h.pj(r);if(w!=t){do p=1==n?g.Ua(l):g.X(l),t=-1!=p?this.h.te(p):-1;while(t==q);w!=t?(t=w,p=this.h.Gi(this.h.ol(t))):n=-n}q=t;l=p}while(r!=k);g.Gn(m,!0)}else this.h.Bb(k,
c,2)}}};g.prototype.TB=function(){for(var b=this.h.Dg(),a=new c.ga(0),d=this.h.Ce;-1!=d;d=this.h.Bf(d)){var f=this.h.ue(d),e=f;if(-1!=f){do{if(1!=this.h.tb(e,b)){var g=this.h.sa(e);this.h.Bb(g,b,1);this.h.Bb(e,b,1);this.Te(this.h.Qe(e))&&this.Te(this.h.Qe(g))&&a.add(e)}e=this.h.Vb(this.h.sa(e))}while(e!=f)}}this.h.jh(b);this.h.bM(a)};g.prototype.tl=function(b,a){return-1==a?b:this.lO(b,a)};g.prototype.lO=function(b,a){var c=this.h.a,f,e,g=this.h.ol(this.h.te(b));do{f=this.h.Gi(g);e=c.Vf(c.rd(f));
if(e==a)return f;g=this.h.yq(g)}while(-1!=g);return b};g.prototype.Wp=function(b,a,d){this.TB();var f=this.h.a,e=f.ig(1736),g=this.h.Dg();this.mG(b,a,e,d,g,-1);this.h.jh(g);c.mm.$(f,e,1,this.Fq,null);return e};g.prototype.mG=function(b,a,c,f,e,g){this.DB(b,c,e,g,f);-1!=a&&this.DB(a,c,e,g,f);b=this.h.a;for(a=this.h.Ce;-1!=a;a=this.h.Bf(a)){var l=this.h.ue(a);if(-1!=l){var k=l;do{var m=this.h.tb(k,e);if(1!=m&&2!=m)if(this.Te(this.h.Qe(k))){var m=b.Cf(c,-1),p=k;do{var q=this.h.ql(p);-1!=q?q=this.h.Gi(q):
(q=this.h.Gi(this.h.ql(this.h.sa(p))),q=this.h.a.X(q));q=this.tl(q,f);b.zi(m,q);this.h.Bb(p,e,1);-1!=g&&(q=this.h.te(q),this.h.fm(q,g,1));p=this.h.Vb(p)}while(p!=k);b.Gn(m,!0)}else this.h.Bb(k,e,2);k=this.h.Vb(this.h.sa(k))}while(k!=l)}}};g.prototype.SS=function(b,a,d){var f=this.h.a,e=f.ig(1736),g=f.ig(1607),l=f.ig(550);this.TB();var k=-1,m=this.h.Dg(),p=this.h.to();this.mG(b,a,e,d,m,p);for(b=this.h.Ce;-1!=b;b=this.h.Bf(b))if(a=this.h.ue(b),-1!=a){var q=a;do{var n=this.h.tb(q,m),t=this.h.tb(this.h.sa(q),
m),n=n|t;if(2==n)if(n=this.h.Fg(q),this.Te(n)){var v=f.Cf(g,-1),w=q,n=this.zu(b,f),n=this.tl(n,d);f.zi(v,n);this.h.fm(b,p,1);do{n=this.h.jf(w);t=this.zu(n,f);t=this.tl(t,d);f.zi(v,t);this.h.Bb(w,m,1);this.h.Bb(this.h.sa(w),m,1);this.h.fm(n,p,1);w=this.h.Vb(w);n=this.h.tb(w,m);t=this.h.tb(this.h.sa(w),m);n|=t;if(2!=n)break;n=this.h.Fg(w);if(!this.Te(n)){this.h.Bb(w,m,1);this.h.Bb(this.h.sa(w),m,1);break}}while(w!=q)}else this.h.Bb(q,m,1),this.h.Bb(this.h.sa(q),m,1);q=this.h.Vb(this.h.sa(q))}while(q!=
a)}for(b=this.h.Ce;-1!=b;b=this.h.Bf(b))n=this.h.Sf(b,p),1!=n&&(n=this.h.ld(b),this.Te(n)&&(-1==k&&(k=f.Cf(l,-1)),a=this.h.ol(b),-1!=a&&(a=this.h.Gi(a),n=this.tl(a,d),f.zi(k,n))));this.h.uo(p);this.h.jh(m);c.mm.$(f,e,1,this.Fq,null);d=[];d[0]=l;d[1]=g;d[2]=e;return d};g.prototype.zu=function(b,a){for(var c=-1,f=this.h.ol(b);-1!=f;f=this.h.yq(f)){var e=this.h.Gi(f);-1==c&&(c=e);var g=this.h.ya(a.Vf(a.rd(e)));if(this.Te(g)){c=e;break}}return c};g.prototype.fy=function(b,a){for(var d=this.h.pj(a),f=
this.h.jf(a),e=0,g=0,l=this.h.ol(d);-1!=l;l=this.h.yq(l)){var k=this.h.Gi(l),m=b.rd(k),p=this.h.ya(b.Vf(m)),q=b.X(k),n=b.Ua(k),m=b.Cb(m);m==k&&(this.Ym=a);-1!=q&&this.h.te(q)==f?(e++,this.Te(p)&&(m==q&&(this.Ym=this.h.Vb(a)),g++)):-1!=n&&this.h.te(n)==f&&(e--,this.Te(p)&&(m==n&&(this.Ym=this.h.Vb(a)),g--))}this.h.w(d,this.QD);this.h.w(f,this.RD);d=c.b.Fb(this.QD,this.RD);return(0!=g?g:e)*d};g.prototype.zo=function(b){return this.h.Fg(b)|this.h.Qe(b)|this.h.Qe(this.h.sa(b))};g.prototype.pG=function(b){for(var a=
this.h.sa(this.h.ee(b)),c=-1;a!=b;){if(this.Te(this.zo(a))){if(-1!=c)return-1;c=a}a=this.h.sa(this.h.ee(a))}return-1!=c?this.h.sa(c):-1};g.prototype.qG=function(b){for(var a=this.h.sa(this.h.Vb(b)),c=-1;a!=b;){if(this.Te(this.zo(a))){if(-1!=c)return-1;c=a}a=this.h.sa(this.h.Vb(a))}return-1!=c?this.h.sa(c):-1};g.prototype.gF=function(b,a,d,f,e){var g=this.h.a,l=b,k=this.h.sa(l);this.h.Bb(l,d,1);this.h.Bb(k,d,1);var m=this.fy(g,l);this.Ym=-1;for(var p=l,q=-1,n=!1,t=1;;){var v=this.h.ee(l);if(v==k)break;
k=this.h.Vb(k);if(this.h.sa(v)!=k)if(l=this.pG(l),-1==l)break;else n=!0,k=this.h.sa(l);else l=v;if(l==b){q=b;break}v=this.zo(l);if(!this.Te(v))break;this.h.Bb(l,d,1);this.h.Bb(k,d,1);p=l;m+=this.fy(g,l);t++}if(-1==q)for(l=b,k=this.h.sa(l),q=l;;){b=this.h.Vb(l);if(b==k)break;k=this.h.ee(k);if(this.h.sa(b)!=k)if(l=this.qG(l),-1==l){n=!0;break}else k=this.h.sa(l);else l=b;v=this.zo(l);if(!this.Te(v))break;this.h.Bb(l,d,1);this.h.Bb(k,d,1);q=l;m+=this.fy(g,l);t++}else if(-1!=this.Ym&&(p=this.Ym,q=this.h.ee(this.Ym),
this.h.sa(q)!=this.h.Vb(this.h.sa(p))&&(q=this.pG(p),-1==q)))throw c.g.wa();0<=m||(l=q,q=this.h.sa(p),p=this.h.sa(l));d=g.Cf(a,-1);l=p;p=this.h.pj(p);n=this.h.jf(q)==p&&n;m=this.zu(p,g);m=this.tl(m,e);g.zi(d,m);-1!=f&&this.h.fm(p,f,1);p=0;for(t=n?c.I.truncate((t+1)/2):-1;;){b=this.h.jf(l);m=this.zu(b,g);m=this.tl(m,e);g.zi(d,m);p++;-1!=f&&this.h.fm(b,f,1);n&&p==t&&(d=g.Cf(a,-1),g.zi(d,m));if(l==q)break;b=this.h.Vb(l);if(this.h.ee(this.h.sa(l))!=this.h.sa(b)){if(l=this.qG(l),-1==l)throw c.g.wa();}else l=
b}};g.prototype.Xp=function(b){for(var a=this.h.a.ig(1607),c=this.h.Dg(),f=this.h.Ce;-1!=f;f=this.h.Bf(f)){var e=this.h.ue(f),g=e;do 1!=this.h.tb(g,c)&&this.Te(this.zo(g))&&this.gF(g,a,c,-1,b),g=this.h.Vb(this.h.sa(g));while(g!=e)}this.h.jh(c);return a};g.prototype.TS=function(b){for(var a=this.h.a,c=a.ig(1607),f=a.ig(550),e=this.h.Dg(),g=this.h.to(),l=-1,k=this.h.Ce;-1!=k;k=this.h.Bf(k)){var m=this.h.ue(k),p=m;do{var q=this.h.tb(p,e);1!=q&&(q=this.zo(p),this.Te(q)&&this.gF(p,c,e,g,b));p=this.h.Vb(this.h.sa(p))}while(p!=
m)}for(k=this.h.Ce;-1!=k;k=this.h.Bf(k))q=this.h.Sf(k,g),1!=q&&(q=this.h.ld(k),this.Te(q)&&(-1==l&&(l=a.Cf(f,-1)),m=this.h.ol(k),-1!=m&&(m=this.h.Gi(m),m=this.tl(m,b),a.zi(l,m))));this.h.jh(e);this.h.uo(g);b=[];b[0]=f;b[1]=c;return b};g.prototype.Pn=function(){for(var b=this.h.a,a=b.ig(550),c=b.Cf(a,-1),f=this.h.Ce;-1!=f;f=this.h.Bf(f))if(this.Te(this.h.ld(f))){for(var e=-1,g=this.h.ol(f);-1!=g;g=this.h.yq(g)){var l=this.h.Gi(g);-1==e&&(e=l);var k=this.h.ya(b.Vf(b.rd(l)));if(this.Te(k)){e=l;break}}b.zi(c,
e)}return a};g.prototype.Im=function(b){this.Pg=[];for(var a=0;a<b;a++)this.Pg[a]=!1};g.$E=function(b,a,d,f){var e=b.Pa(),g=Array(1E3);c.I.Os(g,null);var l=c.I.Kh(1E3,0),k=b.F(),m=!0,p=2==a.fb();if(1!=a.fb()&&2!=a.fb())throw c.g.wa();for(var q=0;q<k;){var n=c.I.truncate(b.hR(g,q)-q);p?c.fd.kG(a,g,n,d,l):c.fd.lG(a,g,n,d,l);for(var t=0,v=0;v<n;v++){var w=0==l[v];f||(w=!w);w&&(m&&(m=!1,e.Pd(b,0,q)),t!=v&&e.Pd(b,q+t,q+v),t=v+1)}m||t==n||e.Pd(b,q+t,q+n);q+=n}return m?b:e};g.gD=function(b,a,d){return b instanceof
c.pe?g.$E(b,a,d,!0):a instanceof c.Va?b.s()||a.s()?b.Pa():c.aj.EE(d,b,a)?c.aj.fL(b,a):b.Pa():g.nF(b,a,d,!0)};g.lt=function(b,a,d,f){var e=new c.i;b.o(e);var h=new c.i;a.o(h);var l=new c.i;l.K(e);l.Db(h);d=c.Ia.zd(d,l,!0);l=new c.i;l.K(h);h=c.Ia.zs(d);l.P(h,h);if(!e.jc(l)){if(b.fb()<=a.fb())return g.Cc(g.ob(b.Pa()),b,"&");if(b.fb()>a.fb())return g.Cc(g.ob(a.Pa()),b,"&")}h=new g;e=new c.ed;l=e.Eb(g.ob(b));a=e.Eb(g.ob(a));h.Mp(e,d,f);f=h.lt(l,a);b=g.Cc(e.hf(f),b,"&");c.T.Kc(b.D())&&(b.hg(2,d),1736==
b.D()&&b.hl());return b};g.nF=function(b,a,d,f){if(b.s())return b.Pa();if(a.s())return f?b.Pa():null;var e=[null],g=[0],l=2==a.fb();if(1!=a.fb()&&2!=a.fb())throw c.g.wa();e[0]=b.w();l?c.fd.kG(a,e,1,d,g):c.fd.lG(a,e,1,d,g);a=0==g[0];f||(a=!a);return a?b.Pa():b};g.CT=function(b,a,d){return b instanceof c.pe?g.$E(b,a,d,!1):a instanceof c.Va?b.s()?b.Pa():a.s()?b:c.aj.EE(d,b,a)?b.Pa():b:g.nF(b,a,d,!1)};g.prototype.JE=function(b,a,d,f,e){if(b.s())return b;var g=new c.ed;b=g.Eb(b);return this.Pj(g,b,a,d,
f,e)};g.prototype.GQ=function(b,a,d,f,e,g){if(e&&550!=b.Lb(a)){var l=new c.$z;l.MS(b,d);l.ng?(c.aj.$(b,d,g,!0),e=!1):this.h.Mv(d)}else c.aj.$(b,d,g,!0),e=!1;f&&550!=b.Lb(a)?this.h.rF(b,a):this.h.qF(b,a);if(this.h.tx)return this.h.wg(),this.h=null,this.Pj(b,a,d,f,!1,g);this.h.Mv(NaN);g=this.h.ya(a);this.Im(g+1);this.Pg[g]=!0;if(1736==b.Lb(a)||f&&550!=b.Lb(a))return b.Op(a,0),a=this.Wp(a,-1,-1),b=b.hf(a),b.Op(0),e?b.hg(1,0):(b.hg(2,d),b.hl()),b;if(1607==b.Lb(a))return a=this.Xp(-1),b=b.hf(a),e||b.hg(2,
d),b;if(550==b.Lb(a))return a=this.Pn(),b=b.hf(a),e||b.hg(2,d),b;throw c.g.wa();};g.prototype.Pj=function(b,a,d,f,e,g){this.h=new c.fs;try{return this.GQ(b,a,d,f,e,g)}finally{this.h.wg()}};g.Pj=function(b,a,c,f,e){return(new g).JE(b,a,c,f,e)};g.prototype.FQ=function(b,a,d){this.Fq=b;this.h=new c.fs;b=a.Cm(d);var f=a.Lb(d);1!=b||550==f?this.h.qF(a,d):this.h.rF(a,d);if(!this.h.tx)if(this.h.Mv(NaN),f=this.h.ya(d),this.Im(f+1),this.Pg[f]=!0,1736==a.Lb(d)||1==b&&550!=a.Lb(d))a.Op(d,0),b=this.Wp(d,-1,-1),
a.Vy(b,d),a.sy(b);else if(1607==a.Lb(d))b=this.Xp(-1),a.Vy(b,d),a.sy(b);else if(550==a.Lb(d))b=this.Pn(),a.Vy(b,d),a.sy(b);else throw c.g.ra("internal error");};g.Ry=function(b,a,c,f){var e=new g;e.Fq=!0;return e.JE(b,a,!1,c,f)};g.prototype.ll=function(b,a){var d=c.T.we(this.h.a.Lb(b)),f=c.T.we(this.h.a.Lb(a));if(d>f)return b;var e=this.h.ya(b),g=this.h.ya(a);this.Im((e|g)+1);this.Pg[this.h.ya(b)]=!0;if(2==d&&2==f)return this.Wp(b,a,-1);if(1==d&&2==f||1==d&&1==f)return this.Xp(-1);if(0==d)return this.Pn();
throw c.g.wa();};g.prototype.SB=function(b,a){var d=c.T.we(this.h.a.Lb(b)),f=c.T.we(this.h.a.Lb(a));if(d>f)return b;if(d<f)return a;var e=this.h.ya(b),g=this.h.ya(a);this.Im((e|g)+1);this.Pg[this.h.ya(b)]=!0;this.Pg[this.h.ya(a)]=!0;this.Pg[this.h.ya(b)|this.h.ya(a)]=!0;if(2==d&&2==f)return this.Wp(b,a,-1);if(1==d&&1==f)return this.Xp(-1);if(0==d&&0==f)return this.Pn();throw c.g.wa();};g.prototype.lt=function(b,a){var d=c.T.we(this.h.a.Lb(b)),f=c.T.we(this.h.a.Lb(a)),e=this.h.ya(b),g=this.h.ya(a);
this.Im((e|g)+1);this.Pg[this.h.ya(b)|this.h.ya(a)]=!0;e=-1;1<this.h.a.vp.Aa&&(e=b);if(2==d&&2==f)return this.Wp(b,a,e);if(1==d&&0<f||1==f&&0<d)return this.Xp(e);if(0==d||0==f)return this.Pn();throw c.g.wa();};g.prototype.Uw=function(b,a){var d=c.T.we(this.h.a.Lb(b)),f=c.T.we(this.h.a.Lb(a)),e=this.h.ya(b),g=this.h.ya(a);this.Im((e|g)+1);this.Pg[this.h.ya(b)|this.h.ya(a)]=!0;e=-1;1<this.h.a.vp.Aa&&(e=b);if(2==d&&2==f)return this.SS(b,a,e);if(1==d&&0<f||1==f&&0<d)return this.TS(e);if(0==d||0==f)return d=
[],d[0]=this.Pn(),d;throw c.g.wa();};g.prototype.On=function(b,a){var d=c.T.we(this.h.a.Lb(b)),f=c.T.we(this.h.a.Lb(a)),e=this.h.ya(b),g=this.h.ya(a);this.Im((e|g)+1);this.Pg[this.h.ya(b)]=!0;this.Pg[this.h.ya(a)]=!0;if(2==d&&2==f)return this.Wp(b,a,-1);if(1==d&&1==f)return this.Xp(-1);if(0==d&&0==f)return this.Pn();throw c.g.wa();};g.ob=function(b){var a=b.D();return 197==a?(a=new c.Ka(b.description),b.s()||a.Uc(b,!1),a):33==a?(a=new c.pe(b.description),b.s()||a.add(b),a):322==a?(a=new c.Xa(b.description),
b.s()||a.Bc(b,!0),a):b};g.Cc=function(b,a,d){var f=b.D();return 197==f?(a=new c.Ka(b.description),b.s()||a.Uc(b,!1),a):33!=f||"|"!=d&&"^"!=d?322==f?(a=new c.Xa(b.description),b.s()||a.Bc(b,!0),a):33==f&&"-"==d&&33==a.D()||550==f&&"&"==d&&33==a.D()?(a=new c.Va(b.description),b.s()||b.Rd(0,a),a):b:(a=new c.pe(b.description),b.s()||a.add(b),a)};g.ll=function(b,a,d,f){if(b.s()||a.s()||b.fb()>a.fb())return g.Cc(g.ob(b),b,"-");var e=new c.i;b.o(e);var h=new c.i;a.o(h);if(!e.jc(h))return g.Cc(g.ob(b),b,
"-");var l=new c.i;l.K(e);l.Db(h);d=c.Ia.zd(d,l,!0);h=new g;e=new c.ed;l=e.Eb(g.ob(b));a=e.Eb(g.ob(a));h.Mp(e,d,f);f=h.ll(l,a);f=e.hf(f);b=g.Cc(f,b,"-");c.T.Kc(b.D())&&(b.hg(2,d),1736==b.D()&&b.hl());return b};g.SB=function(b,a,d,f){if(b.fb()>a.fb())return g.Cc(g.ob(b),b,"|");if(b.fb()<a.fb()||b.s())return g.Cc(g.ob(a),b,"|");if(a.s())return g.Cc(g.ob(b),b,"|");var e=new c.i;b.o(e);var h=new c.i;a.o(h);var l=new c.i;l.K(e);l.Db(h);d=c.Ia.zd(d,l,!0);if(!e.jc(h.JN(d,d)))switch(b=g.ob(b),a=g.ob(a),b.D()){case 550:return b=
c.T.Yj(b),b.Pd(a,0,-1),b;case 1607:return b=c.T.Yj(b),b.add(a,!1),b;case 1736:return b=c.T.Yj(b),b.add(a,!1),b;default:throw c.g.wa();}h=new g;e=new c.ed;l=e.Eb(g.ob(b));a=e.Eb(g.ob(a));h.Mp(e,d,f);a=h.SB(l,a);b=g.Cc(e.hf(a),b,"|");c.T.Kc(b.D())&&(b.hg(2,d),1736==b.D()&&b.hl());return b};g.nM=function(b,a,d){if(2>b.length)throw c.g.N("not enough geometries to dissolve");for(var f=0,e=0,h=b.length;e<h;e++)f=Math.max(b[e].fb(),f);var l=new c.i;l.Ja();for(var k=new c.ed,m=-1,p=0,q=-1,e=0,h=b.length;e<
h;e++)if(b[e].fb()==f)if(b[e].s())-1==q&&(q=e);else{q=e;-1==m?m=k.Eb(g.ob(b[e])):k.XJ(m,g.ob(b[e]));var n=new c.i;b[e].cd(n);l.Db(n);p++}if(2>p)return g.ob(b[q]);b=2==f;a=c.Ia.zd(0==f?a:null,l,!0);return(new g).Pj(k,m,a,b,!0,d)};g.Uw=function(b,a,d,f){var e=[null,null,null],h=new c.i;b.o(h);var l=new c.i;a.o(l);var k=new c.i;k.K(h);k.Db(l);d=c.Ia.zd(d,k,!0);k=new c.i;k.K(l);l=c.Ia.zs(d);k.P(l,l);if(!h.jc(k)){if(b.fb()<=a.fb())return b=g.Cc(g.ob(b.Pa()),b,"&"),e[b.fb()]=b,e;if(b.fb()>a.fb())return b=
g.Cc(g.ob(a.Pa()),b,"&"),e[b.fb()]=b,e}l=new g;h=new c.ed;k=h.Eb(g.ob(b));a=h.Eb(g.ob(a));l.Mp(h,d,f);f=l.Uw(k,a);for(a=0;a<f.length;a++)l=g.Cc(h.hf(f[a]),b,"&"),c.T.Kc(l.D())&&(l.hg(2,d),1736==l.D()&&l.hl()),e[l.fb()]=l;return e};g.On=function(b,a,d,f){if(b.fb()>a.fb())return g.Cc(g.ob(b),b,"^");if(b.fb()<a.fb()||b.s())return g.Cc(g.ob(a),b,"^");if(a.s())return g.Cc(g.ob(b),b,"^");var e=new c.i;b.o(e);var h=new c.i;a.o(h);var l=new c.i;l.K(e);l.Db(h);d=c.Ia.zd(d,l,!0);h=new g;e=new c.ed;l=e.Eb(g.ob(b));
a=e.Eb(g.ob(a));h.Mp(e,d,f);f=h.On(l,a);b=g.Cc(e.hf(f),b,"^");c.T.Kc(b.D())&&(b.hg(2,d),1736==b.D()&&b.hl());return b};g.tU=function(b,a,d){a=a.D();d=d.D();return 550==b.D()&&(33==a||33==d)&&1>=b.F()?(d=new c.Va(b.description),b.s()||b.Rd(0,d),d):b};g.prototype.$M=function(b,a){for(var c=this.h.a,f=c.Cf(b,-1),e=a.size,g=0;g<e;g++){var l=a.get(g);c.zi(f,l)}c.Gn(f,!0)};g.prototype.YR=function(b,a){for(var c=this.h.a,f=c.Yc;-1!=f;f=c.xe(f))if(f==a)for(var e=c.Ub(f);-1!=e;e=c.ac(e)){var g=c.Cb(e);if(-1!=
g)for(var l=c.X(g);-1!=l;){var g=this.h.te(g),k=this.h.te(l),g=this.h.GN(g,k);-1!=g&&(k=this.h.sa(g),this.h.Bb(g,b,1),this.h.Bb(k,b,2));g=l;l=c.X(g)}}};g.prototype.ZQ=function(b,a,d,f){d=this.h.ya(d);f=this.h.ya(f);var e=new c.ga(0);e.xb(256);for(var g=this.h.a,l=this.h.Dg(),k=this.h.Ce;-1!=k;k=this.h.Bf(k)){var m=this.h.ue(k);if(-1!=m){var p=m;do{if(1!=this.h.tb(p,l)){var q=p,n=p,t=!1,v=0;do{this.h.Bb(q,l,1);if(!t){var w=this.h.Fg(q);0!=(w&f)&&0!=(this.h.Qe(q)&d)&&(n=q,t=!0)}t&&(e.add(this.h.Gi(this.h.ol(this.h.pj(q)))),
-1!=b&&(w=this.h.Fg(q),0!=(w&f)&&(w=this.h.tb(q,b),v|=w)));q=this.h.Vb(q)}while(q!=n);t&&0<this.h.xo(this.h.Pe(n))&&(q=g.ig(1736),this.$M(q,e),-1!=a&&g.BF(q,a,v));e.clear(!1)}p=this.h.Vb(this.h.sa(p))}while(p!=m)}}this.h.jh(l)};g.prototype.VL=function(b,a,c,f){this.h.wR();var e=-1;-1!=b&&(e=this.h.Dg(),this.YR(e,c));this.ZQ(e,b,a,c);var g=this.h.a;b=0;for(e=g.Yc;-1!=e;e=g.xe(e))e!=a&&e!=c&&(f.add(e),b++);f.xd(0,b,function(a,b){var c=g.Gw(g.Ub(a)),d=g.Gw(g.Ub(b));return c<d?-1:c==d?0:1})};g.prototype.wg=
function(){null!=this.h&&(this.h.wg(),this.h=null)};return g}();c.Of=p})(t||(t={}));(function(c){var p=function(){function g(b){void 0!==b?this.Ly(b):this.FF()}g.prototype.Ku=function(){this.Ob=this.Nb=this.sb=this.rb=this.eb=this.mb=0};g.prototype.lc=function(b){return this==b?!0:b instanceof g?this.mb==b.mb&&this.rb==b.rb&&this.Nb==b.Nb&&this.sb==b.sb&&this.eb==b.eb&&this.Ob==b.Ob:!1};g.prototype.gc=function(){c.I.Rh();c.I.Rh();c.I.Rh();c.I.Rh();c.I.Rh();return c.I.Rh()};g.prototype.Zi=function(b,
a){var c=this.sb*b.x+this.eb*b.y+this.Ob;a.x=this.mb*b.x+this.rb*b.y+this.Nb;a.y=c};g.prototype.multiply=function(b){g.multiply(this,b,this)};g.multiply=function(b,a,c){var f,e,g,l,k;f=b.mb*a.mb+b.sb*a.rb;e=b.rb*a.mb+b.eb*a.rb;g=b.Nb*a.mb+b.Ob*a.rb+a.Nb;l=b.mb*a.sb+b.sb*a.eb;k=b.rb*a.sb+b.eb*a.eb;b=b.Nb*a.sb+b.Ob*a.eb+a.Ob;c.mb=f;c.rb=e;c.Nb=g;c.sb=l;c.eb=k;c.Ob=b};g.prototype.vm=function(){var b=new g;b.mb=this.mb;b.rb=this.rb;b.Nb=this.Nb;b.sb=this.sb;b.eb=this.eb;b.Ob=this.Ob;return b};g.prototype.$y=
function(b){if(!b.s()){for(var a=[],d=0;4>d;d++)a[d]=new c.b;b.hy(a);this.VS(a,a);b.Ey(a,4)}};g.prototype.VS=function(b,a){for(var d=0;d<b.length;d++){var f=new c.b,e=b[d];f.x=this.mb*e.x+this.rb*e.y+this.Nb;f.y=this.sb*e.x+this.eb*e.y+this.Ob;a[d]=f}};g.prototype.yO=function(b,a){b.s()||a.s()||0==b.aa()||0==b.ba()?this.Ku():(this.rb=this.sb=0,this.mb=a.aa()/b.aa(),this.eb=a.ba()/b.ba(),this.Nb=a.v-b.v*this.mb,this.Ob=a.C-b.C*this.eb)};g.prototype.US=function(b){var a=new c.b,d=new c.b;a.ma(this.mb,
this.sb);d.ma(this.rb,this.eb);a.sub(a);var f=.5*a.Tp();a.ma(this.mb,this.sb);d.ma(this.rb,this.eb);a.add(d);a=.5*a.Tp();return b*(f>a?Math.sqrt(f):Math.sqrt(a))};g.prototype.FF=function(){this.mb=1;this.sb=this.Nb=this.rb=0;this.eb=1;this.Ob=0};g.prototype.ZO=function(){return 1==this.mb&&1==this.eb&&0==this.rb&&0==this.Nb&&0==this.sb&&0==this.Ob};g.prototype.lg=function(b){return Math.abs(this.mb*this.eb-this.sb*this.rb)<=2*b*(Math.abs(this.mb*this.eb)+Math.abs(this.sb*this.rb))};g.prototype.Nn=
function(b,a){this.mb=1;this.rb=0;this.Nb=b;this.sb=0;this.eb=1;this.Ob=a};g.prototype.Ly=function(b,a){void 0!==a?(this.mb=b,this.sb=this.Nb=this.rb=0,this.eb=a,this.Ob=0):this.Ly(b,b)};g.prototype.Oy=function(){this.mb=0;this.rb=1;this.Nb=0;this.sb=1;this.Ob=this.eb=0};g.prototype.lS=function(b){this.mS(Math.cos(b),Math.sin(b))};g.prototype.mS=function(b,a){this.mb=b;this.rb=-a;this.Nb=0;this.sb=a;this.eb=b;this.Ob=0};g.prototype.shift=function(b,a){this.Nb+=b;this.Ob+=a};g.prototype.scale=function(b,
a){this.mb*=b;this.rb*=b;this.Nb*=b;this.sb*=a;this.eb*=a;this.Ob*=a};g.prototype.rotate=function(b){var a=new g;a.lS(b);this.multiply(a)};g.prototype.inverse=function(b){if(void 0!==b){var a=this.mb*this.eb-this.rb*this.sb;0==a?b.Ku():(a=1/a,b.Nb=(this.rb*this.Ob-this.Nb*this.eb)*a,b.Ob=(this.Nb*this.sb-this.mb*this.Ob)*a,b.mb=this.eb*a,b.rb=-this.rb*a,b.sb=-this.sb*a,b.eb=this.mb*a)}else this.inverse(this)};return g}();c.Ag=p})(t||(t={}));(function(c){var p=function(){function g(){}g.prototype.Ku=
function(){this.eh=this.Ob=this.Nb=this.Le=this.Je=this.Ie=this.Ke=this.eb=this.rb=this.ef=this.sb=this.mb=0};g.prototype.Ly=function(b,a,c){this.mb=b;this.rb=this.ef=this.sb=0;this.eb=a;this.Je=this.Ie=this.Ke=0;this.Le=c;this.eh=this.Ob=this.Nb=0};g.prototype.$y=function(b){if(b.s())return b;for(var a=new c.de[8],d=0;8>d;d++)a[d]=new c.de;b.hy(a);this.transform(a,8,a);b.Ey(a);return b};g.prototype.transform=function(b,a,d){for(var f=0;f<a;f++){var e=new c.de,g=b[f];e.x=this.mb*g.x+this.rb*g.y+this.Ie*
g.z+this.Nb;e.y=this.sb*g.x+this.eb*g.y+this.Je*g.z+this.Ob;e.z=this.ef*g.x+this.Ke*g.y+this.Le*g.z+this.eh;d[f]=e}};g.prototype.Qn=function(b){var a=new c.de;a.x=this.mb*b.x+this.rb*b.y+this.Ie*b.z+this.Nb;a.y=this.sb*b.x+this.eb*b.y+this.Je*b.z+this.Ob;a.z=this.ef*b.x+this.Ke*b.y+this.Le*b.z+this.eh;return a};g.prototype.zp=function(b){g.multiply(this,b,this)};g.multiply=function(b,a,c){var f,e,g,l,k,m,p,q,n,t,v;f=b.mb*a.mb+b.sb*a.rb+b.ef*a.Ie;e=b.mb*a.sb+b.sb*a.eb+b.ef*a.Je;g=b.mb*a.ef+b.sb*a.Ke+
b.ef*a.Le;l=b.rb*a.mb+b.eb*a.rb+b.Ke*a.Ie;k=b.rb*a.sb+b.eb*a.eb+b.Ke*a.Je;m=b.rb*a.ef+b.eb*a.Ke+b.Ke*a.Le;p=b.Ie*a.mb+b.Je*a.rb+b.Le*a.Ie;q=b.Ie*a.sb+b.Je*a.eb+b.Le*a.Je;n=b.Ie*a.ef+b.Je*a.Ke+b.Le*a.Le;t=b.Nb*a.mb+b.Ob*a.rb+b.eh*a.Ie+a.Nb;v=b.Nb*a.sb+b.Ob*a.eb+b.eh*a.Je+a.Ob;b=b.Nb*a.ef+b.Ob*a.Ke+b.eh*a.Le+a.eh;c.mb=f;c.sb=e;c.ef=g;c.rb=l;c.eb=k;c.Ke=m;c.Ie=p;c.Je=q;c.Le=n;c.Nb=t;c.Ob=v;c.eh=b};g.inverse=function(b,a){var d=b.mb*(b.eb*b.Le-b.Ke*b.Je)-b.sb*(b.rb*b.Le-b.Ke*b.Ie)+b.ef*(b.rb*b.Je-b.eb*
b.Ie);if(0!=d){var f,e,g,l,k,m,p,q,n,t,v;q=1/d;d=(b.eb*b.Le-b.Ke*b.Je)*q;g=-(b.rb*b.Le-b.Ke*b.Ie)*q;m=(b.rb*b.Je-b.eb*b.Ie)*q;f=-(b.sb*b.Le-b.Je*b.ef)*q;l=(b.mb*b.Le-b.ef*b.Ie)*q;p=-(b.mb*b.Je-b.sb*b.Ie)*q;e=(b.sb*b.Ke-b.ef*b.eb)*q;k=-(b.mb*b.Ke-b.ef*b.rb)*q;q*=b.mb*b.eb-b.sb*b.rb;n=-(b.Nb*d+b.Ob*g+b.eh*m);t=-(b.Nb*f+b.Ob*l+b.eh*p);v=-(b.Nb*e+b.Ob*k+b.eh*q);a.mb=d;a.sb=f;a.ef=e;a.rb=g;a.eb=l;a.Ke=k;a.Ie=m;a.Je=p;a.Le=q;a.Nb=n;a.Ob=t;a.eh=v}else throw c.g.ra("math singularity");};g.prototype.vm=function(){var b=
new g;b.mb=this.mb;b.sb=this.sb;b.ef=this.ef;b.rb=this.rb;b.eb=this.eb;b.Ke=this.Ke;b.Ie=this.Ie;b.Je=this.Je;b.Le=this.Le;b.Nb=this.Nb;b.Ob=this.Ob;b.eh=this.eh;return b};return g}();c.UT=p})(t||(t={}));(function(c){var p=function(b){function a(a){if(void 0!==a)b.call(this,a.gc(),a);else{b.call(this);this.Jf=[];this.Jf[0]=0;this.Aa=1;this.Vg=[];for(a=0;10>a;a++)this.Vg[a]=-1;this.Vg[this.Jf[0]]=0}this.So=!0}M(a,b);a.prototype.Ne=function(a){this.hasAttribute(a)||(this.Vg[a]=0,this.wA())};a.prototype.removeAttribute=
function(a){if(0==a)throw c.g.N("Position attribue cannot be removed");this.hasAttribute(a)&&(this.Vg[a]=-1,this.wA())};a.prototype.reset=function(){this.Jf[0]=0;this.Aa=1;for(var a=0;a<this.Vg.length;a++)this.Vg[a]=-1;this.Vg[this.Jf[0]]=0;this.So=!0};a.prototype.qw=function(){return g.ww().add(this)};a.Tf=function(){return g.ww().jO()};a.Yn=function(){return g.ww().kO()};a.prototype.oJ=function(){var a=this.gc();return new c.pa(a,this)};a.prototype.wA=function(){for(var a=this.Aa=0,b=0;10>a;a++)0<=
this.Vg[a]&&(this.Jf[b]=a,this.Vg[a]=b,b++,this.Aa++);this.So=!0};a.prototype.gc=function(){this.So&&(this.tk=this.ij(),this.So=!1);return this.tk};a.prototype.lc=function(b){if(null==b)return!1;if(b==this)return!0;if(!(b instanceof a)||b.Aa!=this.Aa)return!1;for(var c=0;c<this.Aa;c++)if(this.Jf[c]!=b.Jf[c])return!1;return this.So!=b.So?!1:!0};a.prototype.nD=function(a){if(a.Aa!=this.Aa)return!1;for(var b=0;b<this.Aa;b++)if(this.Jf[b]!=a.Jf[b])return!1;return!0};a.hu=function(a,b){for(var c=[],g=
0;g<a.Aa;g++)c[g]=-1;for(var g=0,l=a.Aa;g<l;g++)c[g]=b.zf(a.Hd(g));return c};a.QN=function(b,c){var e=new a(b);e.Ne(c);return e.qw()};a.RN=function(b,c){for(var e=null,g=0;10>g;g++)!b.hasAttribute(g)&&c.hasAttribute(g)&&(null==e&&(e=new a(b)),e.Ne(g));return null!=e?e.qw():b};a.ao=function(b,c){var e=new a(b);e.removeAttribute(c);return e.qw()};return a}(c.pa);c.Od=p;var g=function(){function b(){this.map=[];var a=new p;this.add(a);a=new p;a.Ne(1);this.add(a)}b.ww=function(){return b.NH};b.prototype.jO=
function(){return b.Xn};b.prototype.kO=function(){return b.Yn};b.prototype.add=function(a){var c=a.gc();if(null!=b.Xn&&b.Xn.gc()==c&&a.nD(b.Xn))return b.Xn;if(null!=b.Yn&&b.Yn.gc()==c&&a.nD(b.Yn))return b.Yn;var f=null;void 0!==this.map[c]&&(f=this.map[c]);null==f&&(f=a.oJ(),1==f.Aa?b.Xn=f:2==f.Aa&&1==f.Hd(1)?b.Yn=f:this.map[c]=f);return f};b.NH=new b;return b}()})(t||(t={}));ha.qO=function(c){c=c.data;var p,g,b;try{switch(c.action){case "equals":Z(c,t.Pb.lc);break;case "disjoint":Z(c,t.Pb.mM);break;
case "within":Z(c,t.Pb.gT);break;case "contains":Z(c,t.Pb.contains);break;case "crosses":Z(c,t.Pb.UL);break;case "touches":Z(c,t.Pb.touches);break;case "overlaps":Z(c,t.Pb.vQ);break;case "intersects":Z(c,t.Pb.TO);break;case "distance":postMessage({msgId:c.msgId,status:1,result:t.Pb.Fb(L(c.geoma),L(c.geomb),P(c.spatialReference),t.ic.re(c.distanceunits))});break;case "issimple":postMessage({msgId:c.msgId,status:1,result:t.Pb.eP(L(c.geoma),P(c.spatialReference))});break;case "relate":postMessage({msgId:c.msgId,
status:1,result:t.Pb.py(L(c.geoma),L(c.geomb),P(c.spatialReference),c.relation)});break;case "union":postMessage({msgId:c.msgId,status:1,result:O(t.Pb.uG([L(c.geoma),L(c.geomb)],P(c.spatialReference)))});break;case "intersect":ea(c,t.Pb.Ga);break;case "difference":ea(c,t.Pb.ll);break;case "symdifference":ea(c,t.Pb.On);break;case "clip":ea(c,t.Pb.clip);break;case "cut":p=t.Pb.xm(L(c.geoma),L(c.geomb),P(c.spatialReference));if(null!==p)for(var a=0;a<p.length;a++)p[a]=O(p[a]);postMessage({msgId:c.msgId,
status:1,result:p});break;case "simplify":postMessage({msgId:c.msgId,status:1,result:O(t.Pb.Qy(L(c.geoma),P(c.spatialReference)))});break;case "convexhull":postMessage({msgId:c.msgId,status:1,result:O(t.Pb.IL(L(c.geoma)))});break;case "nearestcoord":g=t.Pb.zw(L(c.geoma),L(c.geomb),P(c.spatialReference),c.testinterior);null===g?g={coordinate:null,distance:-1,isRightSide:!1,vertexIndex:-1,isEmpty:!0}:g={coordinate:O(g.pw()),distance:g.sw(),isRightSide:g.Xw(),vertexIndex:g.gb(),isEmpty:g.s()};postMessage({msgId:c.msgId,
status:1,result:g});break;case "nearestvertex":g=t.Pb.Aw(L(c.geoma),L(c.geomb),P(c.spatialReference));null===g?g={coordinate:null,distance:-1,isRightSide:!1,vertexIndex:-1,isEmpty:!0}:g={coordinate:O(g.pw()),distance:g.sw(),isRightSide:g.Xw(),vertexIndex:g.gb(),isEmpty:g.s()};postMessage({msgId:c.msgId,status:1,result:g});break;case "nearestvertices":p=t.Pb.Bw(L(c.geoma),L(c.geomb),c.searchradius,c.maxreturn);g=[];if(null!==p)for(a=0;a<p.length;a++)null===p[a]?g.push({coordinate:null,distance:-1,
isRightSide:!1,vertexIndex:-1,isEmpty:!0}):g.push({coordinate:O(p[a].pw()),distance:p[a].sw(),isRightSide:p[a].Xw(),vertexIndex:p[a].gb(),isEmpty:p[a].s()});postMessage({msgId:c.msgId,status:1,result:g});break;case "buffer":postMessage({msgId:c.msgId,status:1,result:O(t.Pb.buffer(L(c.geoma),P(c.spatialReference),c.distance,t.ic.re(c.unit),c.geodesic,c.geodesicmaxdeviation,c.geodesiccurvetype))});break;case "offset":postMessage({msgId:c.msgId,status:1,result:O(t.Pb.offset(L(c.geoma),P(c.spatialReference),
c.distance,c.joins,c.bevelratio,c.flattenerror,t.ic.re(c.offsetunit)))});break;case "generalize":postMessage({msgId:c.msgId,status:1,result:O(t.Pb.gN(L(c.geoma),P(c.spatialReference),c.maxdeviation,c.removedegenerateparts,t.ic.re(c.maxdeviationunit)))});break;case "densify":postMessage({msgId:c.msgId,status:1,result:O(t.Pb.nq(L(c.geoma),P(c.spatialReference),c.maxsegmentlength,t.ic.re(c.maxsegmentlengthunit)))});break;case "geodensify":postMessage({msgId:c.msgId,status:1,result:O(t.Pb.fw(L(c.geoma),
P(c.spatialReference),c.maxsegmentlength,t.ic.re(c.maxsegmentlengthunit),c.curveType))});break;case "unionmany":b=[];for(a=0;a<c.geometries.length;a++)b.push(L(c.geometries[a]));postMessage({msgId:c.msgId,status:1,result:O(t.Pb.uG(b,P(c.spatialReference)))});break;case "differencemany":b=[];for(a=0;a<c.geometries.length;a++)b.push(L(c.geometries[a]));p=t.Pb.jM(b,L(c.geom),P(c.spatialReference));if(null!==p)for(a=0;a<p.length;a++)p[a]=O(p[a]);postMessage({msgId:c.msgId,status:1,result:p});break;case "symdifferencemany":b=
[];for(a=0;a<c.geometries.length;a++)b.push(L(c.geometries[a]));p=t.Pb.OS(b,L(c.geom),P(c.spatialReference));if(null!==p)for(a=0;a<p.length;a++)p[a]=O(p[a]);postMessage({msgId:c.msgId,status:1,result:p});break;case "convexhullmany":b=[];for(a=0;a<c.geometries.length;a++)b.push(L(c.geometries[a]));p=t.Pb.uQ(b,c.merge);if(null!==p)for(a=0;a<p.length;a++)p[a]=O(p[a]);postMessage({msgId:c.msgId,status:1,result:p});break;case "offsetmany":b=[];for(a=0;a<c.geometries.length;a++)b.push(L(c.geometries[a]));
p=t.Pb.JL(b,P(c.spatialReference));if(null!==p)for(a=0;a<p.length;a++)p[a]=O(p[a]);postMessage({msgId:c.msgId,status:1,result:p});break;case "intersectmany":b=[];for(a=0;a<c.geometries.length;a++)b.push(L(c.geometries[a]));p=t.Pb.SO(b,L(c.geom),P(c.spatialReference));if(null!==p)for(a=0;a<p.length;a++)p[a]=O(p[a]);postMessage({msgId:c.msgId,status:1,result:p});break;case "buffermany":b=[];for(a=0;a<c.geometries.length;a++)b.push(L(c.geometries[a]));p=t.Pb.qK(b,P(c.spatialReference),c.distances,t.ic.re(c.unit),
c.geodesic,c.tounionresults,c.geodesicmaxdeviation,c.geodesiccurvetype);if(null!==p)for(a=0;a<p.length;a++)p[a]=O(p[a]);postMessage({msgId:c.msgId,status:1,result:p});break;case "rotate":var d=t.$u.rotate(c.geoma,c.angle,c.rotpt);postMessage({msgId:c.msgId,status:1,result:d});break;case "flipv":d=t.$u.ZM(c.geoma,c.flippt);postMessage({msgId:c.msgId,status:1,result:d});break;case "fliph":d=t.$u.YM(c.geoma,c.flippt);postMessage({msgId:c.msgId,status:1,result:d});break;case "geodesicarea":postMessage({msgId:c.msgId,
status:1,result:t.Pb.kN(L(c.geoma),P(c.spatialReference),t.ic.re(c.unit),c.geodesiccurvetype)});break;case "area":postMessage({msgId:c.msgId,status:1,result:t.Pb.DQ(L(c.geoma),P(c.spatialReference),t.ic.re(c.unit))});break;case "geodesiclength":postMessage({msgId:c.msgId,status:1,result:t.Pb.oN(L(c.geoma),P(c.spatialReference),t.ic.re(c.unit),c.geodesiccurvetype)});break;case "length":postMessage({msgId:c.msgId,status:1,result:t.Pb.EQ(L(c.geoma),P(c.spatialReference),t.ic.re(c.unit))});break;case "extendedspatialreferenceinfo":var f=
P(c.spatialReference),e=f.Se(),h=f.wq();postMessage({msgId:c.msgId,status:1,result:{tolerance:h,unitType:null==e?-1:e.ad,unitID:null==e?-1:e.md(),unitBaseFactor:null==e?0:e.Cj,unitSquareDerivative:null==e?0:t.ic.MC(e).md()}});break;default:ba(Error("Unrecognised Action"),c)}}catch(l){ba(l,c)}}})(fa||(fa={}));self.addEventListener("message",fa.qO,!1);
