/**Released Version v3.0.9,BUILD 171,Time 1650882259110. Fengmap Javascript SDK , see: https://www.fengmap.com for details**/ !function(t,i){"object"==typeof exports&&"object"==typeof module?module.exports=i(require("fs")):"function"==typeof define&&define.amd?define(["fs"],i):"object"==typeof exports?exports.fengmap=i(require("fs")):t.fengmap=i(t.fs)}(this,function(__WEBPACK_EXTERNAL_MODULE__47__){return function(n){var r={};function e(t){if(r[t])return r[t].exports;var i=r[t]={i:t,l:!1,exports:{}};return n[t].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=n,e.c=r,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"u",{value:!0})},e.t=function(i,t){if(1&t&&(i=e(i)),8&t)return i;if(4&t&&"object"==typeof i&&i&&i.u)return i;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:i}),2&t&&"string"!=typeof i)for(var r in i)e.d(n,r,function(t){return i[t]}.bind(null,r));return n},e.n=function(t){var i=t&&t.u?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.p="",e(e.s=50)}([function(t,i,n){"use strict";var r,e,s=t.exports=n(2),o=n(16),u=(s.codegen=n(40),s.fetch=n(41),s.path=n(42),s.fs=s.inquire("fs"),s.toArray=function(t){if(t){for(var i=Object.keys(t),n=new Array(i.length),r=0;ri)return!0;return!1},c.isReservedName=function(t,i){if(t)for(var n=0;n>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;127>>7;i[n++]=t.lo}function b(t,i,n){i[n]=255&t,i[n+1]=t>>>8&255,i[n+2]=t>>>16&255,i[n+3]=t>>>24}c.create=l(),c.alloc=function(t){return new e.Array(t)},e.Array!==Array&&(c.alloc=e.pool(c.alloc,e.Array.prototype.subarray)),c.prototype.R=function(t,i,n){return this.tail=this.tail.next=new h(t,i,n),this.len+=i,this},(y.prototype=Object.create(h.prototype)).fn=function(t,i,n){for(;127>>=7;i[n]=t},c.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new y((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this},c.prototype.int32=function(t){return t<0?this.R(d,10,s.fromNumber(t)):this.uint32(t)},c.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},c.prototype.int64=c.prototype.uint64=function(t){t=s.from(t);return this.R(d,t.length(),t)},c.prototype.sint64=function(t){t=s.from(t).zzEncode();return this.R(d,t.length(),t)},c.prototype.bool=function(t){return this.R(v,1,t?1:0)},c.prototype.sfixed32=c.prototype.fixed32=function(t){return this.R(b,4,t>>>0)},c.prototype.sfixed64=c.prototype.fixed64=function(t){t=s.from(t);return this.R(b,4,t.lo).R(b,4,t.hi)},c.prototype.float=function(t){return this.R(e.float.writeFloatLE,4,t)},c.prototype.double=function(t){return this.R(e.float.writeDoubleLE,8,t)};var p=e.Array.prototype.set?function(t,i,n){i.set(t,n)}:function(t,i,n){for(var r=0;r>>0;return n?(e.isString(t)&&(i=c.alloc(n=o.length(t)),o.decode(t,i,0),t=i),this.uint32(n).R(p,n,t)):this.R(v,1,0)},c.prototype.string=function(t){var i=u.length(t);return i?this.uint32(i).R(u.write,i,t):this.R(v,1,0)},c.prototype.fork=function(){return this.states=new f(this),this.head=this.tail=new h(a,0,0),this.len=0,this},c.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new h(a,0,0),this.len=0),this},c.prototype.ldelim=function(){var t=this.head,i=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=i,this.len+=n),this},c.prototype.finish=function(){for(var t=this.head.next,i=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,i,n),n+=t.len,t=t.next;return i},c.O=function(t){r=t,c.create=l(),r.O()}},function(t,i,n){"use strict";t.exports=h;var r,e=n(2),s=e.LongBits,o=e.utf8;function u(t,i){return RangeError("index out of range: "+t.pos+" + "+(i||1)+" > "+t.len)}function h(t){this.buf=t,this.pos=0,this.len=t.length}function a(){return e.Buffer?function(t){return(h.create=function(t){return e.Buffer.isBuffer(t)?new r(t):c(t)})(t)}:c}var f,c="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new h(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new h(t);throw Error("illegal buffer")};function l(){var t=new s(0,0),i=0;if(!(4=this.len)throw u(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*i)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*i)>>>0,t}for(;i<4;++i)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*i)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;if(i=0,4>>0,this.buf[this.pos++]<128)return t}else for(;i<5;++i){if(this.pos>=this.len)throw u(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*i+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function v(t,i){return(t[i-4]|t[i-3]<<8|t[i-2]<<16|t[i-1]<<24)>>>0}function y(){if(this.pos+8>this.len)throw u(this,8);return new s(v(this.buf,this.pos+=4),v(this.buf,this.pos+=4))}h.create=a(),h.prototype.A=e.Array.prototype.subarray||e.Array.prototype.slice,h.prototype.uint32=(f=4294967295,function(){if(f=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return f;if(f=(f|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return f;if(f=(f|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return f;if(f=(f|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return f;if(f=(f|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return f;if((this.pos+=5)>this.len)throw this.pos=this.len,u(this,10);return f}),h.prototype.int32=function(){return 0|this.uint32()},h.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},h.prototype.bool=function(){return 0!==this.uint32()},h.prototype.fixed32=function(){if(this.pos+4>this.len)throw u(this,4);return v(this.buf,this.pos+=4)},h.prototype.sfixed32=function(){if(this.pos+4>this.len)throw u(this,4);return 0|v(this.buf,this.pos+=4)},h.prototype.float=function(){if(this.pos+4>this.len)throw u(this,4);var t=e.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},h.prototype.double=function(){if(this.pos+8>this.len)throw u(this,4);var t=e.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},h.prototype.bytes=function(){var t=this.uint32(),i=this.pos,n=this.pos+t;if(n>this.len)throw u(this,t);return this.pos+=t,Array.isArray(this.buf)?this.buf.slice(i,n):i===n?new this.buf.constructor(0):this.A.call(this.buf,i,n)},h.prototype.string=function(){var t=this.bytes();return o.read(t,0,t.length)},h.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw u(this,t);this.pos+=t}else do{if(this.pos>=this.len)throw u(this)}while(128&this.buf[this.pos++]);return this},h.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},h.O=function(t){r=t,h.create=a(),r.O();var i=e.Long?"toLong":"toNumber";e.merge(h.prototype,{int64:function(){return l.call(this)[i](!1)},uint64:function(){return l.call(this)[i](!0)},sint64:function(){return l.call(this).zzDecode()[i](!1)},fixed64:function(){return y.call(this)[i](!0)},sfixed64:function(){return y.call(this)[i](!1)}})}},function(t,i,n){"use strict";t.exports=e;var r=n(2);function e(t){if(t)for(var i=Object.keys(t),n=0;n>>0,8|f.mapKey[s.keyType],s.keyType),void 0===h?n("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",o,i):n(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|h,u,i),n("}")("}")):s.repeated?(n("if(%s!=null&&%s.length){",i,i),s.packed&&void 0!==f.packed[u]?n("w.uint32(%i).fork()",(s.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",i)("w.%s(%s[i])",u,i)("w.ldelim()"):(n("for(var i=0;i<%s.length;++i)",i),void 0===h?l(n,s,o,i+"[i]"):n("w.uint32(%i).%s(%s[i])",(s.id<<3|h)>>>0,u,i)),n("}")):(s.optional&&n("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",i,s.name),void 0===h?l(n,s,o,i):n("w.uint32(%i).%s(%s)",(s.id<<3|h)>>>0,u,i))}return n("return w")};var a=n(3),f=n(7),c=n(0);function l(t,i,n,r){i.resolvedType.group?t("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",n,r,(i.id<<3|3)>>>0,(i.id<<3|4)>>>0):t("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",n,r,(i.id<<3|2)>>>0)}},function(t,i,n){"use strict";t.exports=m;var o=n(6),u=(((m.prototype=Object.create(o.prototype)).constructor=m).className="Type",n(3)),h=n(8),a=n(5),f=n(19),c=n(20),e=n(12),s=n(11),l=n(10),v=n(0),y=n(17),d=n(22),b=n(23),p=n(24),w=n(25);function m(t,i){o.call(this,t,i),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this.N=null,this.S=null,this.I=null,this.L=null}function r(t){return t.N=t.S=t.I=null,delete t.encode,delete t.decode,delete t.verify,t}Object.defineProperties(m.prototype,{fieldsById:{get:function(){if(this.N)return this.N;this.N={};for(var t=Object.keys(this.fields),i=0;i>>3){");for(var n=0;n>>3){")("case 1: k=r.%s(); break",r.keyType)("case 2:"),void 0===h.basic[e]?i("value=types[%i].decode(r,r.uint32())",n):i("value=r.%s()",e),i("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==h.long[r.keyType]?i('%s[typeof k==="object"?util.longToHash(k):k]=value',s):i("%s[k]=value",s)):r.repeated?(i("if(!(%s&&%s.length))",s,s)("%s=[]",s),void 0!==h.packed[e]&&i("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0",r,r);break;case"int32":case"sint32":case"sfixed32":t("m%s=d%s|0",r,r);break;case"uint64":u=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":t("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",r,r,u)('else if(typeof d%s==="string")',r)("m%s=parseInt(d%s,10)",r,r)('else if(typeof d%s==="number")',r)("m%s=d%s",r,r)('else if(typeof d%s==="object")',r)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",r,r,r,u?"true":"");break;case"bytes":t('if(typeof d%s==="string")',r)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",r,r,r)("else if(d%s.length)",r)("m%s=d%s",r,r);break;case"string":t("m%s=String(d%s)",r,r);break;case"bool":t("m%s=Boolean(d%s)",r,r)}}return t}function y(t,i,n,r){if(i.resolvedType)i.resolvedType instanceof l?t("d%s=o.enums===String?types[%i].values[m%s]:m%s",r,n,r,r):t("d%s=types[%i].toObject(m%s,o)",r,n,r);else{var e=!1;switch(i.type){case"double":case"float":t("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",r,r,r,r);break;case"uint64":e=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":t('if(typeof m%s==="number")',r)("d%s=o.longs===String?String(m%s):m%s",r,r,r)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",r,r,r,r,e?"true":"",r);break;case"bytes":t("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",r,r,r,r,r);break;default:t("d%s=m%s",r,r)}}return t}i.fromObject=function(t){var i=t.fieldsArray,n=v.codegen(["d"],t.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!i.length)return n("return new this.ctor");n("var m=new this.ctor");for(var r=0;r>2],r=(3&h)<<4,u=1;break;case 1:s[o++]=a[r|h>>4],r=(15&h)<<2,u=2;break;case 2:s[o++]=a[r|h>>6],s[o++]=a[63&h],u=0}8191>4,r=u,s=2;break;case 2:i[n++]=(15&r)<<4|(60&u)>>2,r=u,s=3;break;case 3:i[n++]=(3&r)<<6|u,s=0}}if(1===s)throw Error(f);return n-e},i.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},function(t,i,n){"use strict";function r(){this.B={}}(t.exports=r).prototype.on=function(t,i,n){return(this.B[t]||(this.B[t]=[])).push({fn:i,ctx:n||this}),this},r.prototype.off=function(t,i){if(void 0===t)this.B={};else if(void 0===i)this.B[t]=[];else for(var n=this.B[t],r=0;r>>0:i<11754943508222875e-54?(e<<31|Math.round(i/1401298464324817e-60))>>>0:(e<<31|(t=Math.floor(Math.log(i)/Math.LN2))+127<<23|8388607&Math.round(i*Math.pow(2,-t)*8388608))>>>0,n,r)}function n(t,i,n){t=t(i,n),i=2*(t>>31)+1,n=t>>>23&255,t&=8388607;return 255==n?t?NaN:1/0*i:0==n?1401298464324817e-60*i*t:i*Math.pow(2,n-150)*(8388608+t)}function r(t,i,n){u[0]=t,i[n]=h[0],i[n+1]=h[1],i[n+2]=h[2],i[n+3]=h[3]}function e(t,i,n){u[0]=t,i[n]=h[3],i[n+1]=h[2],i[n+2]=h[1],i[n+3]=h[0]}function s(t,i){return h[0]=t[i],h[1]=t[i+1],h[2]=t[i+2],h[3]=t[i+3],u[0]}function o(t,i){return h[3]=t[i],h[2]=t[i+1],h[1]=t[i+2],h[0]=t[i+3],u[0]}var u,h,a,f,c;function l(t,i,n,r,e,s){var o,u,h=r<0?1:0;0===(r=h?-r:r)?(t(0,e,s+i),t(0<1/r?0:2147483648,e,s+n)):isNaN(r)?(t(0,e,s+i),t(2146959360,e,s+n)):17976931348623157e292>>0,e,s+n)):r<22250738585072014e-324?(t((o=r/5e-324)>>>0,e,s+i),t((h<<31|o/4294967296)>>>0,e,s+n)):(1024===(u=Math.floor(Math.log(r)/Math.LN2))&&(u=1023),t(4503599627370496*(o=r*Math.pow(2,-u))>>>0,e,s+i),t((h<<31|u+1023<<20|1048576*o&1048575)>>>0,e,s+n))}function v(t,i,n,r,e){i=t(r,e+i),t=t(r,e+n),r=2*(t>>31)+1,e=t>>>20&2047,n=4294967296*(1048575&t)+i;return 2047==e?n?NaN:1/0*r:0==e?5e-324*r*n:r*Math.pow(2,e-1075)*(n+4503599627370496)}function y(t,i,n){a[0]=t,i[n]=f[0],i[n+1]=f[1],i[n+2]=f[2],i[n+3]=f[3],i[n+4]=f[4],i[n+5]=f[5],i[n+6]=f[6],i[n+7]=f[7]}function d(t,i,n){a[0]=t,i[n]=f[7],i[n+1]=f[6],i[n+2]=f[5],i[n+3]=f[4],i[n+4]=f[3],i[n+5]=f[2],i[n+6]=f[1],i[n+7]=f[0]}function b(t,i){return f[0]=t[i],f[1]=t[i+1],f[2]=t[i+2],f[3]=t[i+3],f[4]=t[i+4],f[5]=t[i+5],f[6]=t[i+6],f[7]=t[i+7],a[0]}function p(t,i){return f[7]=t[i],f[6]=t[i+1],f[5]=t[i+2],f[4]=t[i+3],f[3]=t[i+4],f[2]=t[i+5],f[1]=t[i+6],f[0]=t[i+7],a[0]}return"undefined"!=typeof Float32Array?(u=new Float32Array([-0]),h=new Uint8Array(u.buffer),c=128===h[3],t.writeFloatLE=c?r:e,t.writeFloatBE=c?e:r,t.readFloatLE=c?s:o,t.readFloatBE=c?o:s):(t.writeFloatLE=i.bind(null,w),t.writeFloatBE=i.bind(null,m),t.readFloatLE=n.bind(null,_),t.readFloatBE=n.bind(null,x)),"undefined"!=typeof Float64Array?(a=new Float64Array([-0]),f=new Uint8Array(a.buffer),c=128===f[7],t.writeDoubleLE=c?y:d,t.writeDoubleBE=c?d:y,t.readDoubleLE=c?b:p,t.readDoubleBE=c?p:b):(t.writeDoubleLE=l.bind(null,w,0,4),t.writeDoubleBE=l.bind(null,m,4,0),t.readDoubleLE=v.bind(null,_,0,4),t.readDoubleBE=v.bind(null,x,4,0)),t}function w(t,i,n){i[n]=255&t,i[n+1]=t>>>8&255,i[n+2]=t>>>16&255,i[n+3]=t>>>24}function m(t,i,n){i[n]=t>>>24,i[n+1]=t>>>16&255,i[n+2]=t>>>8&255,i[n+3]=255&t}function _(t,i){return(t[i]|t[i+1]<<8|t[i+2]<<16|t[i+3]<<24)>>>0}function x(t,i){return(t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3])>>>0}t.exports=r(r)},function(t,i,n){"use strict";i.length=function(t){for(var i,n=0,r=0;r>10),s[o++]=56320+(1023&r)):s[o++]=(15&r)<<12|(63&t[i++])<<6|63&t[i++],8191>6|192:(55296==(64512&r)&&56320==(64512&(e=t.charCodeAt(o+1)))?(++o,i[n++]=(r=65536+((1023&r)<<10)+(1023&e))>>18|240,i[n++]=r>>12&63|128):i[n++]=r>>12|224,i[n++]=r>>6&63|128),i[n++]=63&r|128);return n-s}},function(t,i,n){"use strict";t.exports=function(i,n,t){var r=t||8192,e=r>>>1,s=null,o=r;return function(t){if(t<1||e>>0,this.hi=i>>>0}var s=e.zero=new e(0,0),o=(s.toNumber=function(){return 0},s.zzEncode=s.zzDecode=function(){return this},s.length=function(){return 1},e.zeroHash="\0\0\0\0\0\0\0\0",e.fromNumber=function(t){if(0===t)return s;var i=t<0,n=(t=i?-t:t)>>>0,t=(t-n)/4294967296>>>0;return i&&(t=~t>>>0,n=~n>>>0,4294967295<++n&&(n=0,4294967295<++t&&(t=0))),new e(n,t)},e.from=function(t){if("number"==typeof t)return e.fromNumber(t);if(r.isString(t)){if(!r.Long)return e.fromNumber(parseInt(t,10));t=r.Long.fromString(t)}return t.low||t.high?new e(t.low>>>0,t.high>>>0):s},e.prototype.toNumber=function(t){var i;return!t&&this.hi>>>31?(t=1+~this.lo>>>0,i=~this.hi>>>0,-(t+4294967296*(i=t?i:i+1>>>0))):this.lo+4294967296*this.hi},e.prototype.toLong=function(t){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(t)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(t)}},String.prototype.charCodeAt);e.fromHash=function(t){return"\0\0\0\0\0\0\0\0"===t?s:new e((o.call(t,0)|o.call(t,1)<<8|o.call(t,2)<<16|o.call(t,3)<<24)>>>0,(o.call(t,4)|o.call(t,5)<<8|o.call(t,6)<<16|o.call(t,7)<<24)>>>0)},e.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},e.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},e.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},e.prototype.length=function(){var t=this.lo,i=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0==n?0==i?t<16384?t<128?1:2:t<2097152?3:4:i<16384?i<128?5:6:i<2097152?7:8:n<128?9:10}},function(t,i,n){"use strict";t.exports=s;var r=n(10),e=((s.prototype=Object.create(r.prototype)).constructor=s,n(2));function s(){r.call(this)}function o(t,i,n){t.length<40?e.utf8.write(t,i,n):i.utf8Write?i.utf8Write(t,n):i.write(t,n)}s.O=function(){s.alloc=e._,s.writeBytesBuffer=e.Buffer&&e.Buffer.prototype instanceof Uint8Array&&"set"===e.Buffer.prototype.set.name?function(t,i,n){i.set(t,n)}:function(t,i,n){if(t.copy)t.copy(i,n,0,t.length);else for(var r=0;r>>0;return this.uint32(i),i&&this.R(s.writeBytesBuffer,i,t),this},s.prototype.string=function(t){var i=e.Buffer.byteLength(t);return this.uint32(i),i&&this.R(o,i,t),this},s.O()},function(t,i,n){"use strict";t.exports=s;var r=n(11),e=((s.prototype=Object.create(r.prototype)).constructor=s,n(2));function s(t){r.call(this,t)}s.O=function(){e.Buffer&&(s.prototype.A=e.Buffer.prototype.slice)},s.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},s.O()},function(t,i,n){"use strict";t.exports=r;var u=n(2);function r(t,i,n){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");u.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=Boolean(i),this.responseDelimited=Boolean(n)}((r.prototype=Object.create(u.EventEmitter.prototype)).constructor=r).prototype.rpcCall=function t(n,i,r,e,s){if(!e)throw TypeError("request must be specified");var o=this;if(!s)return u.asPromise(t,o,n,i,r,e);if(o.rpcImpl)try{return o.rpcImpl(n,i[o.requestDelimited?"encodeDelimited":"encode"](e).finish(),function(t,i){if(t)return o.emit("error",t,n),s(t);if(null!==i){if(!(i instanceof r))try{i=r[o.responseDelimited?"decodeDelimited":"decode"](i)}catch(t){return o.emit("error",t,n),s(t)}return o.emit("data",i,n),s(null,i)}o.end(!0)})}catch(t){return o.emit("error",t,n),void setTimeout(function(){s(t)},0)}else setTimeout(function(){s(Error("already ended"))},0)},r.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},function(t,i,n){"use strict";function r(i,n){"string"==typeof i&&(n=i,i=void 0);var h=[];function a(t){if("string"!=typeof t){var i="return "+(i=f());if(t){for(var n=Object.keys(t),r=new Array(n.length+1),e=new Array(n.length),s=0;s=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function l(t,i){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;var n=(t="string"!=typeof t?""+t:t).length;if(0===n)return 0;for(var r=!1;;)switch(i){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return R(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return A(t).length;default:if(r)return R(t).length;i=(""+i).toLowerCase(),r=!0}}function i(t,i,n){var r,e=!1;if((i=void 0===i||i<0?0:i)>this.length)return"";if((n=void 0===n||n>this.length?this.length:n)<=0)return"";if((n>>>=0)<=(i>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":var s=this,o=i,u=n,h=s.length;(!u||u<0||h=t.length){if(e)return-1;n=t.length-1}else if(n<0){if(!e)return-1;n=0}if("string"==typeof i&&(i=c.from(i,r)),c.isBuffer(i))return 0===i.length?-1:d(t,i,n,r,e);if("number"==typeof i)return i&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(e?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,i,n):d(t,[i],n,r,e);throw new TypeError("val must be string, number or Buffer")}function d(t,i,n,r,e){var s=1,o=t.length,u=i.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||i.length<2)return-1;o/=s=2,u/=2,n/=2}function h(t,i){return 1===s?t[i]:t.readUInt16BE(i*s)}if(e)for(var a=-1,f=n;f>8,r=r%256,e.push(r),e.push(n);return e}(i,t.length-n),t,n,r)}function E(t,i,n){n=Math.min(t.length,n);for(var r=[],e=i;e>>10&1023|55296),f=56320|1023&f),r.push(f),e+=c}var l=r,v=l.length;if(v<=w)return String.fromCharCode.apply(String,l);for(var y="",d=0;di&&(t+=" ... ")),""},c.prototype.compare=function(t,i,n,r,e){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===e&&(e=this.length),(i=void 0===i?0:i)<0||n>t.length||r<0||e>this.length)throw new RangeError("out of range index");if(e<=r&&n<=i)return 0;if(e<=r)return-1;if(n<=i)return 1;if(this===t)return 0;for(var s=(e>>>=0)-(r>>>=0),o=(n>>>=0)-(i>>>=0),u=Math.min(s,o),h=this.slice(r,e),a=t.slice(i,n),f=0;fthis.length)throw new RangeError("Attempt to write outside buffer bounds");r=r||"utf8";for(var s,o,u,h=!1;;)switch(r){case"hex":var a=this,f=t,c=i,l=n,v=(c=Number(c)||0,a.length-c);if((!l||v<(l=Number(l)))&&(l=v),(v=f.length)%2!=0)throw new TypeError("Invalid hex string");v/2t.length)throw new RangeError("Index out of range")}function x(t,i,n,r){i<0&&(i=65535+i+1);for(var e=0,s=Math.min(t.length-n,2);e>>8*(r?e:1-e)}function g(t,i,n,r){i<0&&(i=4294967295+i+1);for(var e=0,s=Math.min(t.length-n,4);e>>8*(r?e:3-e)&255}function O(t,i,n,r){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function T(t,i,n,r,e){return e||O(t,0,n,4),s.write(t,i,n,r,23,4),n+4}function M(t,i,n,r,e){return e||O(t,0,n,8),s.write(t,i,n,r,52,8),n+8}c.prototype.slice=function(t,i){var n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):n>>8):x(this,t,i,!0),i+2},c.prototype.writeUInt16BE=function(t,i,n){return t=+t,i|=0,n||_(this,t,i,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[i]=t>>>8,this[i+1]=255&t):x(this,t,i,!1),i+2},c.prototype.writeUInt32LE=function(t,i,n){return t=+t,i|=0,n||_(this,t,i,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[i+3]=t>>>24,this[i+2]=t>>>16,this[i+1]=t>>>8,this[i]=255&t):g(this,t,i,!0),i+4},c.prototype.writeUInt32BE=function(t,i,n){return t=+t,i|=0,n||_(this,t,i,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[i]=t>>>24,this[i+1]=t>>>16,this[i+2]=t>>>8,this[i+3]=255&t):g(this,t,i,!1),i+4},c.prototype.writeIntLE=function(t,i,n,r){t=+t,i|=0,r||_(this,t,i,n,(r=Math.pow(2,8*n-1))-1,-r);var e=0,s=1,o=0;for(this[i]=255&t;++e>0)-o&255;return i+n},c.prototype.writeIntBE=function(t,i,n,r){t=+t,i|=0,r||_(this,t,i,n,(r=Math.pow(2,8*n-1))-1,-r);var e=n-1,s=1,o=0;for(this[i+e]=255&t;0<=--e&&(s*=256);)t<0&&0===o&&0!==this[i+e+1]&&(o=1),this[i+e]=(t/s>>0)-o&255;return i+n},c.prototype.writeInt8=function(t,i,n){return t=+t,i|=0,n||_(this,t,i,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[i]=255&(t=t<0?255+t+1:t),i+1},c.prototype.writeInt16LE=function(t,i,n){return t=+t,i|=0,n||_(this,t,i,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[i]=255&t,this[i+1]=t>>>8):x(this,t,i,!0),i+2},c.prototype.writeInt16BE=function(t,i,n){return t=+t,i|=0,n||_(this,t,i,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[i]=t>>>8,this[i+1]=255&t):x(this,t,i,!1),i+2},c.prototype.writeInt32LE=function(t,i,n){return t=+t,i|=0,n||_(this,t,i,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[i]=255&t,this[i+1]=t>>>8,this[i+2]=t>>>16,this[i+3]=t>>>24):g(this,t,i,!0),i+4},c.prototype.writeInt32BE=function(t,i,n){return t=+t,i|=0,n||_(this,t,i,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[i]=t>>>24,this[i+1]=t>>>16,this[i+2]=t>>>8,this[i+3]=255&t):g(this,t,i,!1),i+4},c.prototype.writeFloatLE=function(t,i,n){return T(this,t,i,!0,n)},c.prototype.writeFloatBE=function(t,i,n){return T(this,t,i,!1,n)},c.prototype.writeDoubleLE=function(t,i,n){return M(this,t,i,!0,n)},c.prototype.writeDoubleBE=function(t,i,n){return M(this,t,i,!1,n)},c.prototype.copy=function(t,i,n,r){if(n=n||0,r||0===r||(r=this.length),i>=t.length&&(i=t.length),(r=0=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length);var e,s=(r=t.length-i>>=0,n=void 0===n?this.length:n>>>0,"number"==typeof(t=t||0))for(u=i;u>6|192,63&n|128)}else if(n<65536){if((i-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((i-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function A(t){return j.toByteArray(function(t){var i;if((t=((i=t).trim?i.trim():i.replace(/^\s+|\s+$/g,"")).replace(k,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function S(t,i,n,r){for(var e=0;e=i.length||e>=t.length);++e)i[e+n]=t[e];return e}}.call(this,I(9))},function(t,i,n){"use strict";i.byteLength=function(t){var t=f(t),i=t[0],t=t[1];return 3*(i+t)/4-t},i.toByteArray=function(t){var i,n,r=f(t),e=r[0],r=r[1],s=new a(function(t,i){return 3*(t+i)/4-i}(e,r)),o=0,u=0>16&255,s[o++]=i>>8&255,s[o++]=255&i;2===r&&(i=h[t.charCodeAt(n)]<<2|h[t.charCodeAt(n+1)]>>4,s[o++]=255&i);1===r&&(i=h[t.charCodeAt(n)]<<10|h[t.charCodeAt(n+1)]<<4|h[t.charCodeAt(n+2)]>>2,s[o++]=i>>8&255,s[o++]=255&i);return s},i.fromByteArray=function(t){for(var i,n=t.length,r=n%3,e=[],s=0,o=n-r;s>18&63]+u[t>>12&63]+u[t>>6&63]+u[63&t]}(r));return e.join("")}(t,s,o>2]+u[i<<4&63]+"==")):2==r&&(i=(t[n-2]<<8)+t[n-1],e.push(u[i>>10]+u[i>>4&63]+u[i<<2&63]+"="));return e.join("")};for(var u=[],h=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,s=r.length;e>1,f=-7,c=n?e-1:0,l=n?-1:1,e=t[i+c];for(c+=l,s=e&(1<<-f)-1,e>>=-f,f+=u;0>=-f,f+=r;0>1,c=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,l=r?0:s-1,v=r?1:-1,s=i<0||0===i&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(u=isNaN(i)?1:0,o=a):(o=Math.floor(Math.log(i)/Math.LN2),i*(r=Math.pow(2,-o))<1&&(o--,r*=2),2<=(i+=1<=o+f?c/r:c*Math.pow(2,1-f))*r&&(o++,r/=2),a<=o+f?(u=0,o=a):1<=o+f?(u=(i*r-1)*Math.pow(2,e),o+=f):(u=i*Math.pow(2,f-1)*Math.pow(2,e),o=0));8<=e;t[n+l]=255&u,l+=v,u/=256,e-=8);for(o=o<=r.next.y&&r.next.y!==r.y){var u=r.x+(s-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(u<=e&&o=r.x&&r.x>=f&&e!==r.x&&jt(sn.x||r.x===n.x&&function(t,i){return T(t.prev,t,i.prev)<0&&T(i.next,t,t.next)<0}(n,r)))&&(n=r,l=h)),r=r.next,r!==a;);return n}(t,i))&&(t=At(i,t),E(i,i.next),E(t,t.next))}(h[e],n),n=E(n,n.next);return n}(t,i,f,n)),t.length>80*n){for(var l=r=t[0],v=e=t[1],y=n;ys.x?e.x>o.x?e:o:s.x>o.x?s:o).x,f=(e.y>s.y?e.y>o.y?e:o:s.y>o.y?s:o).y,c=Ot(u,h,i,n,r),l=Ot(a,f,i,n,r),v=t.prevZ,y=t.nextZ;for(;v&&v.z>=c&&y&&y.z<=l;){if(v!==t.prev&&v!==t.next&&jt(e.x,e.y,s.x,s.y,o.x,o.y,v.x,v.y)&&0<=T(v.prev,v,v.next))return;if(v=v.prevZ,y!==t.prev&&y!==t.next&&jt(e.x,e.y,s.x,s.y,o.x,o.y,y.x,y.y)&&0<=T(y.prev,y,y.next))return;y=y.nextZ}for(;v&&v.z>=c;){if(v!==t.prev&&v!==t.next&&jt(e.x,e.y,s.x,s.y,o.x,o.y,v.x,v.y)&&0<=T(v.prev,v,v.next))return;v=v.prevZ}for(;y&&y.z<=l;){if(y!==t.prev&&y!==t.next&&jt(e.x,e.y,s.x,s.y,o.x,o.y,y.x,y.y)&&0<=T(y.prev,y,y.next))return;y=y.nextZ}return 1}(t,r,e,s):function(t){var i=t.prev,n=t,r=t.next;if(0<=T(i,n,r))return;var e=t.next.next;for(;e!==t.prev;){if(jt(i.x,i.y,n.x,n.y,r.x,r.y,e.x,e.y)&&0<=T(e.prev,e,e.next))return;e=e.next}return 1}(t))i.push(g.i/n),i.push(t.i/n),i.push(O.i/n),Nt(t),t=O.next,j=O.next;else if((t=O)===j){o?1===o?xt(t=function(t,i,n){var r=t;do{var e=r.prev,s=r.next.next}while(!Et(e,s)&&Tt(e,r,r.next,s)&&Rt(e,s)&&Rt(s,e)&&(i.push(e.i/n),i.push(r.i/n),i.push(s.i/n),Nt(r),Nt(r.next),r=t=s),r=r.next,r!==t);return E(r)}(E(t),i,n),i,n,r,e,s,2):2===o&&function(t,i,n,r,e,s){var o=t;do{for(var u,h=o.next.next;h!==o.prev;){if(o.i!==h.i&&function(t,i){return t.next.i!==i.i&&t.prev.i!==i.i&&!function(t,i){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==i.i&&n.next.i!==i.i&&Tt(n,n.next,t,i))return 1}while(n=n.next,n!==t);return}(t,i)&&(Rt(t,i)&&Rt(i,t)&&function(t,i){var n=t,r=!1,e=(t.x+i.x)/2,s=(t.y+i.y)/2;for(;n.y>s!=n.next.y>s&&n.next.y!==n.y&&e<(n.next.x-n.x)*(s-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next,n!==t;);return r}(t,i)&&(T(t.prev,t,i.prev)||T(t,i.prev,i))||Et(t,i)&&0=Math.min(t.x,n.x)&&i.y<=Math.max(t.y,n.y)&&i.y>=Math.min(t.y,n.y)}function kt(t){return 0t.length)&&(i=t.length);for(var n=0,r=new Array(i);n=Math.min(e,o)&&h>i.x&&h!==e&&(h===o&&0<(s-i.y)*(u-i.y)?n+=2:n++):h<=Math.max(e,o)&&h>=Math.min(e,o)&&h>i.x&&(h===o&&0<(s-i.y)*(u-i.y)?n+=2:n++)}}return 0n.x)&&!(t.y>n.y)))},at:function(t,i,n){var r=Math.min(i.x,n.x),e=Math.max(i.x,n.x),s=Math.min(i.y,n.y),i=Math.max(i.y,n.y);return!(t.xe||t.yi)},ft:function(t,i,n){var r=Math.min(n.x,i.x),e=Math.max(n.x,i.x),s=Math.min(n.y,i.y),n=Math.max(n.y,i.y);return!(t.xe||t.yn)},ct:function(t,i,n){for(var r,e,s=!1,o=0;o=t.y||e.y=t.y)&&(r.x<=t.x||e.x<=t.x)&&r.x+(t.y-r.y)/(e.y-r.y)*(e.x-r.x)o)return!1;var d=(y-l)/(v-c)*(a-c)+l;return e.y=d,e.x=a,do)return!1;var d=(y-l)/(v-c)*(a-c)+l;return e.y=d,e.x=a,fthis.max.x&&(i=!1),t.max.ythis.max.y?!1:i}}])&&Vt(i.prototype,n),r&&Vt(i,r),Object.defineProperty(i,"prototype",{writable:!1}),t}(),u=(Object.assign(i.prototype,{Dt:function(){return!(this.min.x>this.max.x||this.min.y>this.max.y)},It:function(t){t&&t.valid()&&(t.min.xthis.max.x&&(this.max.x=t.max.x),t.max.y>this.max.y&&(this.max.y=t.max.y))},Lt:function(t){var i=this;t&&0!=t.length&&t.forEach(function(t){t.xi.max.x&&(i.max.x=t.x),t.y>i.max.y&&(i.max.y=t.y)})}}),i);function Yt(t){return(Yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zt(t,i){for(var n=0;nt.length)&&(i=t.length);for(var n=0,r=new Array(i);n>(-2*s&6))))n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return e}),s.twXBiB=function(t){for(var i=atob(t),n=[],r=0,e=i.length;r>=1;return r}function Zi(t,i,n){for(var r=0;r<4;r++)t[0+r]^=i[16*n+4*r],t[4+r]^=i[16*n+4*r+1],t[8+r]^=i[16*n+4*r+2],t[12+r]^=i[16*n+4*r+3]}function Gi(t){for(var i,n,r,e=1;e<4;e++)for(n=0;n>4,r=15&t[4*e+i],t[4*e+i]=Pi[16*n+r]}function Vi(t){for(var i=0;i<4;i++)t[i]=Fi[16*((240&t[i])>>4)+(15&t[i])]}function Yi(t){return parseInt(t,16)}Fi=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],Pi=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],Ci=[2,d=y=0,0,0];var zi={decryption:function(t,i){for(var n=Array(16),r=0;r<16;r++)n[r]=16*Yi(i.substr(2*r,1))+Yi(i.substr(2*r+1,1));var e=Array(16);for(r=0;r<16;r++)e[r]=16*Yi(t.substr(2*r,1))+Yi(t.substr(2*r+1,1));var s=Array(16);switch(r=[],n.length){default:case 16:y=4,d=10;break;case 24:y=6,d=12;break;case 32:y=8,d=14}for(var o=r=Array(16*(d+1)),u=Array(4),h=4*(d+1),a=0;a>16)+(i>>16)+(n>>16)<<16|65535&n}function Xi(t,i,n,r,e,s){return l((i=l(l(i,t),l(r,s)))<>>32-e,n)}function v(t,i,n,r,e,s,o){return Xi(i&n|~i&r,t,i,e,s,o)}function p(t,i,n,r,e,s,o){return Xi(i&r|n&~r,t,i,e,s,o)}function w(t,i,n,r,e,s,o){return Xi(i^n^r,t,i,e,s,o)}function x(t,i,n,r,e,s,o){return Xi(n^(i|~r),t,i,e,s,o)}function qi(t,i){t[i>>5]|=128<>>9<<4)]=i;for(var n,r,e,s,o=1732584193,u=-271733879,h=-1732584194,a=271733878,f=0;f>5]>>>r%32&255);return i}function Qi(t){var i=[];for(i[(t.length>>2)-1]=void 0,r=0;r>5]|=(255&t.charCodeAt(r/8))<>>4&15)+n.charAt(15&i);return r}function Ji(t){return unescape(encodeURIComponent(t))}function Ki(t){return Hi(qi(Qi(t=Ji(t)),8*t.length))}function tn(t,i){var n,t=Ji(t),i=Ji(i),r=Qi(t),e=[],s=[];for(e[15]=s[15]=void 0,16t.length)&&(i=t.length);for(var n=0,r=new Array(i);n=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var e,s=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){o=!0,e=t},f:function(){try{s||null==r.return||r.return()}finally{if(o)throw e}}}}function xn(t,i){(null==i||i>t.length)&&(i=t.length);for(var n=0,r=new Array(i);n>8&255]+e[t>>16&255]+e[t>>24&255]+"-"+e[255&i]+e[i>>8&255]+"-"+e[i>>16&15|64]+e[i>>24&255]+"-"+e[63&n|128]+e[n>>8&255]+"-"+e[n>>16&255]+e[n>>24&255]+e[255&r]+e[r>>8&255]+e[r>>16&255]+e[r>>24&255]).toUpperCase()},clamp:function(t,i,n){return Math.max(i,Math.min(n,t))},euclideanModulo:function(t,i){return(t%i+i)%i},mapLinear:function(t,i,n,r,e){return r+(t-i)*(e-r)/(n-i)},lerp:function(t,i,n){return(1-n)*t+n*i},smoothstep:function(t,i,n){return t<=i?0:n<=t?1:(t=(t-i)/(n-i))*t*(3-2*t)},smootherstep:function(t,i,n){return t<=i?0:n<=t?1:(t=(t-i)/(n-i))*t*t*(t*(6*t-15)+10)},randInt:function(t,i){return t+Math.floor(Math.random()*(i-t+1))},randFloat:function(t,i){return t+Math.random()*(i-t)},randFloatSpread:function(t){return t*(.5-Math.random())},degToRad:function(t){return t*Cn.DEG2RAD},radToDeg:function(t){return t*Cn.RAD2DEG},isPowerOfTwo:function(t){return 0==(t&t-1)&&0!==t},ceilPowerOfTwo:function(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},floorPowerOfTwo:function(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))},setQuaternionFromProperEuler:function(t,i,n,r,e){var s=Math.cos,o=Math.sin,u=s(n/2),n=o(n/2),h=s((i+r)/2),a=o((i+r)/2),f=s((i-r)/2),c=o((i-r)/2),s=s((r-i)/2),o=o((r-i)/2);"XYX"===e?t.set(u*a,n*f,n*c,u*h):"YZY"===e?t.set(n*c,u*a,n*f,u*h):"ZXZ"===e?t.set(n*f,n*c,u*a,u*h):"XZX"===e?t.set(u*a,n*o,n*s,u*h):"YXY"===e?t.set(n*s,u*a,n*o,u*h):"ZYZ"===e?t.set(n*o,n*s,u*a,u*h):console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order.")}},Un={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},r={h:0,s:0,l:0},Bn={h:0,s:0,l:0};function Zn(t,i,n){return void 0===i&&void 0===n?this.set(t):this.setRGB(t,i,n)}function Gn(t,i,n){return n<0&&(n+=1),1>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,this},setRGB:function(t,i,n){return this.r=t,this.g=i,this.b=n,this},setHSL:function(t,i,n){return t=Cn.euclideanModulo(t,1),i=Cn.clamp(i,0,1),n=Cn.clamp(n,0,1),0===i?this.r=this.g=this.b=n:(this.r=Gn(i=2*n-(n=n<=.5?n*(1+i):n+i-n*i),n,t+1/3),this.g=Gn(i,n,t),this.b=Gn(i,n,t-1/3)),this},setStyle:function(i){function t(t){void 0!==t&&parseFloat(t)<1&&console.warn("THREE.Color: Alpha component of "+i+" will be ignored.")}if(h=/^((?:rgb|hsl)a?)\(\s*([^\)]*)\)/.exec(i)){var n,r,e,s,o=h[1],u=h[2];switch(o){case"rgb":case"rgba":if(n=/^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(u))return this.r=Math.min(255,parseInt(n[1],10))/255,this.g=Math.min(255,parseInt(n[2],10))/255,this.b=Math.min(255,parseInt(n[3],10))/255,t(n[5]),this;if(n=/^(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(u))return this.r=Math.min(100,parseInt(n[1],10))/100,this.g=Math.min(100,parseInt(n[2],10))/100,this.b=Math.min(100,parseInt(n[3],10))/100,t(n[5]),this;break;case"hsl":case"hsla":if(n=/^([0-9]*\.?[0-9]+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(u))return r=parseFloat(n[1])/360,e=parseInt(n[2],10)/100,s=parseInt(n[3],10)/100,t(n[5]),this.setHSL(r,e,s)}}else if(h=/^\#([A-Fa-f0-9]+)$/.exec(i)){var o=h[1],h=o.length;if(3===h)return this.r=parseInt(o.charAt(0)+o.charAt(0),16)/255,this.g=parseInt(o.charAt(1)+o.charAt(1),16)/255,this.b=parseInt(o.charAt(2)+o.charAt(2),16)/255,this;if(6===h)return this.r=parseInt(o.charAt(0)+o.charAt(1),16)/255,this.g=parseInt(o.charAt(2)+o.charAt(3),16)/255,this.b=parseInt(o.charAt(4)+o.charAt(5),16)/255,this}return i&&0>8&255]+t[n>>16&255]+t[n>>24&255]+"-"+t[255&r]+t[r>>8&255]+"-"+t[r>>16&15|64]+t[r>>24&255]+"-"+t[63&e|128]+t[e>>8&255]+"-"+t[e>>16&255]+t[e>>24&255]+t[255&s]+t[s>>8&255]+t[s>>16&255]+t[s>>24&255];return t.length=0,n.toUpperCase()}},{key:"findNearNthPowerOfTwo",value:function(t){t-=1;return(t=(t=(t=(t=(t|=t>>1)|t>>2)|t>>4)|t>>8)|t>>16)<0?1:1+t}},{key:"toRgba",value:function(t){return void 0===t?t:"number"!=typeof t?3<=(i=t.split(",")).length?"rgba("+parseInt(i[0])+","+parseInt(i[1])+","+parseInt(i[2])+",1)":t:"rgba("+parseInt(255*new Zn(t).r)+","+parseInt(255*new Zn(t).g)+","+parseInt(255*new Zn(t).b)+",1)";var i}},{key:"toColor",value:function(t){if("number"==typeof t)return t;var i=t.split(",");return 3<=i.length?parseInt(i[0])<<16|parseInt(i[1])<<8|parseInt(i[2]):(console.error("color format error",t),0)}}],(n=null)&&Yn(i.prototype,n),r&&Yn(i,r),Object.defineProperty(i,"prototype",{writable:!1}),t}();function Xn(t,i){var n,r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,i){if(t){if("string"==typeof t)return qn(t,i);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qn(t,i):void 0}}(t))||i&&t&&"number"==typeof t.length)return r&&(t=r),n=0,{s:i=function(){},n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var e,s=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){o=!0,e=t},f:function(){try{s||null==r.return||r.return()}finally{if(o)throw e}}}}function qn(t,i){(null==i||i>t.length)&&(i=t.length);for(var n=0,r=new Array(i);n>8&255]+f[t>>16&255]+f[t>>24&255]+"-"+f[255&i]+f[i>>8&255]+"-"+f[i>>16&15|64]+f[i>>24&255]+"-"+f[63&n|128]+f[n>>8&255]+"-"+f[n>>16&255]+f[n>>24&255]+f[255&r]+f[r>>8&255]+f[r>>16&255]+f[r>>24&255]).toUpperCase()},clamp:function(t,i,n){return Math.max(i,Math.min(n,t))},euclideanModulo:function(t,i){return(t%i+i)%i},mapLinear:function(t,i,n,r,e){return r+(t-i)*(e-r)/(n-i)},lerp:function(t,i,n){return(1-n)*t+n*i},smoothstep:function(t,i,n){return t<=i?0:n<=t?1:(t=(t-i)/(n-i))*t*(3-2*t)},smootherstep:function(t,i,n){return t<=i?0:n<=t?1:(t=(t-i)/(n-i))*t*t*(t*(6*t-15)+10)},randInt:function(t,i){return t+Math.floor(Math.random()*(i-t+1))},randFloat:function(t,i){return t+Math.random()*(i-t)},randFloatSpread:function(t){return t*(.5-Math.random())},seededRandom:function(t){return((Kn=16807*(Kn=void 0!==t?t%2147483647:Kn)%2147483647)-1)/2147483646},degToRad:function(t){return t*tr.DEG2RAD},radToDeg:function(t){return t*tr.RAD2DEG},isPowerOfTwo:function(t){return 0==(t&t-1)&&0!==t},ceilPowerOfTwo:function(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},floorPowerOfTwo:function(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))},setQuaternionFromProperEuler:function(t,i,n,r,e){var s=Math.cos,o=Math.sin,u=s(n/2),h=o(n/2),a=s((i+r)/2),f=o((i+r)/2),c=s((i-r)/2),l=o((i-r)/2),v=s((r-i)/2),y=o((r-i)/2);switch(e){case"XYX":t.set(u*f,h*c,h*l,u*a);break;case"YZY":t.set(h*l,u*f,h*c,u*a);break;case"ZXZ":t.set(h*c,h*l,u*f,u*a);break;case"XZX":t.set(u*f,h*y,h*v,u*a);break;case"YXY":t.set(h*v,u*f,h*y,u*a);break;case"ZYZ":t.set(h*y,h*v,u*f,u*a);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+e)}}};function ir(t,i){for(var n=0;nNumber.EPSILON&&(a=Math.sqrt(a),h=Math.atan2(a,h*u),s=Math.sin(s*h)/a,o=Math.sin(o*h)/a),f=f*s+r*(h=o*u),c=c*s+v*h,l=l*s+y*h,n=n*s+e*h,s===1-o&&(f*=a=1/Math.sqrt(f*f+c*c+l*l+n*n),c*=a,l*=a,n*=a)),t[i]=f,t[i+1]=c,t[i+2]=l,t[i+3]=n}},{key:"multiplyQuaternionsFlat",value:function(t,i,n,r,e,s){var o=n[r],u=n[r+1],h=n[r+2],n=n[r+3],r=e[s],a=e[s+1],f=e[s+2],e=e[s+3];return t[i]=o*e+n*r+u*f-h*a,t[i+1]=u*e+n*a+h*r-o*f,t[i+2]=h*e+n*f+o*a-u*r,t[i+3]=n*e-o*r-u*a-h*f,t}}],(i=[{key:"x",get:function(){return this.Zn},set:function(t){this.Zn=t,this.Yn()}},{key:"y",get:function(){return this.Gn},set:function(t){this.Gn=t,this.Yn()}},{key:"z",get:function(){return this.Wn},set:function(t){this.Wn=t,this.Yn()}},{key:"w",get:function(){return this.Vn},set:function(t){this.Vn=t,this.Yn()}},{key:"set",value:function(t,i,n,r){return this.Zn=t,this.Gn=i,this.Wn=n,this.Vn=r,this.Yn(),this}},{key:"clone",value:function(){return new this.constructor(this.Zn,this.Gn,this.Wn,this.Vn)}},{key:"copy",value:function(t){return this.Zn=t.x,this.Gn=t.y,this.Wn=t.z,this.Vn=t.w,this.Yn(),this}},{key:"setFromEuler",value:function(t,i){if(!t||!t.isEuler)throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");var n=t.Zn,r=t.Gn,e=t.Wn,s=t.zn,t=Math.cos,o=Math.sin,u=t(n/2),h=t(r/2),a=t(e/2),f=o(n/2),c=o(r/2),l=o(e/2);switch(s){case"XYZ":this.Zn=f*h*a+u*c*l,this.Gn=u*c*a-f*h*l,this.Wn=u*h*l+f*c*a,this.Vn=u*h*a-f*c*l;break;case"YXZ":this.Zn=f*h*a+u*c*l,this.Gn=u*c*a-f*h*l,this.Wn=u*h*l-f*c*a,this.Vn=u*h*a+f*c*l;break;case"ZXY":this.Zn=f*h*a-u*c*l,this.Gn=u*c*a+f*h*l,this.Wn=u*h*l+f*c*a,this.Vn=u*h*a-f*c*l;break;case"ZYX":this.Zn=f*h*a-u*c*l,this.Gn=u*c*a+f*h*l,this.Wn=u*h*l-f*c*a,this.Vn=u*h*a+f*c*l;break;case"YZX":this.Zn=f*h*a+u*c*l,this.Gn=u*c*a+f*h*l,this.Wn=u*h*l-f*c*a,this.Vn=u*h*a-f*c*l;break;case"XZY":this.Zn=f*h*a-u*c*l,this.Gn=u*c*a-f*h*l,this.Wn=u*h*l+f*c*a,this.Vn=u*h*a+f*c*l;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+s)}return!1!==i&&this.Yn(),this}},{key:"setFromAxisAngle",value:function(t,i){var i=i/2,n=Math.sin(i);return this.Zn=t.x*n,this.Gn=t.y*n,this.Wn=t.z*n,this.Vn=Math.cos(i),this.Yn(),this}},{key:"setFromRotationMatrix",value:function(t){var t=t.elements,i=t[0],n=t[4],r=t[8],e=t[1],s=t[5],o=t[9],u=t[2],h=t[6],t=t[10],a=i+s+t;return 0Math.abs(t.z)?(this.Zn=-t.y,this.Gn=t.x,this.Wn=0):(this.Zn=0,this.Gn=-t.z,this.Wn=t.y)):(this.Zn=t.y*i.z-t.z*i.y,this.Gn=t.z*i.x-t.x*i.z,this.Wn=t.x*i.y-t.y*i.x),this.Vn=n,this.normalize()}},{key:"angleTo",value:function(t){return 2*Math.acos(Math.abs(tr.clamp(this.dot(t),-1,1)))}},{key:"rotateTowards",value:function(t,i){var n=this.angleTo(t);if(0===n)return this;i=Math.min(1,i/n);return this.slerp(t,i),this}},{key:"identity",value:function(){return this.set(0,0,0,1)}},{key:"invert",value:function(){return this.conjugate()}},{key:"conjugate",value:function(){return this.Zn*=-1,this.Gn*=-1,this.Wn*=-1,this.Yn(),this}},{key:"dot",value:function(t){return this.Zn*t.Zn+this.Gn*t.Gn+this.Wn*t.Wn+this.Vn*t.Vn}},{key:"lengthSq",value:function(){return this.Zn*this.Zn+this.Gn*this.Gn+this.Wn*this.Wn+this.Vn*this.Vn}},{key:"length",value:function(){return Math.sqrt(this.Zn*this.Zn+this.Gn*this.Gn+this.Wn*this.Wn+this.Vn*this.Vn)}},{key:"normalize",value:function(){var t=this.length();return 0===t?(this.Zn=0,this.Gn=0,this.Wn=0,this.Vn=1):(this.Zn=this.Zn*(t=1/t),this.Gn=this.Gn*t,this.Wn=this.Wn*t,this.Vn=this.Vn*t),this.Yn(),this}},{key:"multiply",value:function(t,i){return void 0!==i?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(t,i)):this.multiplyQuaternions(this,t)}},{key:"premultiply",value:function(t){return this.multiplyQuaternions(t,this)}},{key:"multiplyQuaternions",value:function(t,i){var n=t.Zn,r=t.Gn,e=t.Wn,t=t.Vn,s=i.Zn,o=i.Gn,u=i.Wn,i=i.Vn;return this.Zn=n*i+t*s+r*u-e*o,this.Gn=r*i+t*o+e*s-n*u,this.Wn=e*i+t*u+n*o-r*s,this.Vn=t*i-n*s-r*o-e*u,this.Yn(),this}},{key:"slerp",value:function(t,i){if(0===i)return this;if(1===i)return this.copy(t);var n=this.Zn,r=this.Gn,e=this.Wn,s=this.Vn,o=s*t.Vn+n*t.Zn+r*t.Gn+e*t.Wn;if(o<0?(this.Vn=-t.Vn,this.Zn=-t.Zn,this.Gn=-t.Gn,this.Wn=-t.Wn,o=-o):this.copy(t),1<=o)return this.Vn=s,this.Zn=n,this.Gn=r,this.Wn=e,this;t=1-o*o;if(t<=Number.EPSILON)return this.Vn=(u=1-i)*s+i*this.Vn,this.Zn=u*n+i*this.Zn,this.Gn=u*r+i*this.Gn,this.Wn=u*e+i*this.Wn,this.normalize(),this.Yn(),this;var u=Math.sqrt(t),t=Math.atan2(u,o),o=Math.sin((1-i)*t)/u,i=Math.sin(i*t)/u;return this.Vn=s*o+this.Vn*i,this.Zn=n*o+this.Zn*i,this.Gn=r*o+this.Gn*i,this.Wn=e*o+this.Wn*i,this.Yn(),this}},{key:"equals",value:function(t){return t.Zn===this.Zn&&t.Gn===this.Gn&&t.Wn===this.Wn&&t.Vn===this.Vn}},{key:"fromArray",value:function(t){var i=1>2&7},set sr(t){this.zt|=t<<5},get sr(){return this.zt>>5&3},set or(t){this.zt|=t<<7},get or(){return this.zt>>7&3},set ur(t){this.zt|=t<<9},get ur(){return this.zt>>9&3},An:function(t){this.Ii=t,this.Vt={x:0,y:0},this.zt=0,this.Qn=0,this.Jn=!1,this.Kn=!1},hr:function(t){return this.Ii==t.Ii},ar:function(t){this.Ii=t.Ii,this.Vt=Object.assign({},t.Vt),this.zt=t.zt,this.qn=[];for(var i=0;i>2&3},set ur(t){this.zt|=t<<4},get ur(){return this.zt>>4&3},set Tr(t){t?this.zt|=16:this.zt&=-17},get Tr(){return 16&this.zt?1:0},Mr:function(t){this.Ii=t.Ii,this.br=t.br,this.pr=Object.assign({},t.pr),this.wr=t.wr,this.mr=Object.assign({},t.mr),this.Cn=t.Cn,this.zt=t.zt,this._r=[],this.xr=t.xr;for(var i=0;i=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var e,s=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){o=!0,e=t},f:function(){try{s||null==r.return||r.return()}finally{if(o)throw e}}}}function xr(t,i){(null==i||i>t.length)&&(i=t.length);for(var n=0,r=new Array(i);nthis.he&&(this.he=this.qr[t].Ii),t++);for(var i=0;ithis.ue&&(this.ue=this.Xr[i].Ii),i++)},ke:function(t){t=this.se.get(t);return void 0===t?null:t},Re:function(t){t=this.oe.get(t);return void 0===t?null:t},Ae:function(t){for(var i=Number.MAX_VALUE,n=null,r=0;re.area&&(n=(i=e).area)}return i},Xe:function(t){for(var i=-1,n=0;nt.length)&&(i=t.length);for(var n=0,r=new Array(i);n=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var e,s=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){o=!0,e=t},f:function(){try{s||null==r.return||r.return()}finally{if(o)throw e}}}}function Pr(t,i){(null==i||i>t.length)&&(i=t.length);for(var n=0,r=new Array(i);nb?(d.tr=b,d.nr=[],d.nr.push(f),u.push(t.Xr[w]),u.sort(h)):Math.abs(d.tr-(p+c.tr))<1e-12&&-1==d.nr.indexOf(f)&&d.nr.push(f)))}}}}}return!(o=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var e,s=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){o=!0,e=t},f:function(){try{s||null==r.return||r.return()}finally{if(o)throw e}}}}function j(t){return function(t){if(Array.isArray(t))return $r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Qr(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qr(t,i){if(t){if("string"==typeof t)return $r(t,i);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$r(t,i):void 0}}function $r(t,i){(null==i||i>t.length)&&(i=t.length);for(var n=0,r=new Array(i);nh&&((h=a.area)=h)return r.vt=Number.MAX_VALUE,r.zs=!1;if(!r.zs)return!1;if(u=this.Yo(t),1!=this.zt)for(var l={},v=0;vS.vt(c.st,n.pr)?(s.push(c),s.push(l)):(s.push(l),s.push(c))),s;return s},xu:function(t,i,n,r,e){for(var s=r||30,o=0;o<360;o+=s){var u=new Hr;this.yu(t,i,o,u,e),1==u.zs&&n.push(u)}n.sort(this.pu)},Ho:function(t,i,n,r){var e=new Map,s=[];for(this.xu(t,i,s,n,r);0!=s.length;){var o=s[0],u=e.get(o.Vs.Ii);u?u.push(o):((u=[]).push(o),e.set(o.Vs.Ii,u)),s.splice(0,1)}return e},Io:function(t,i){var n=new L,i=(n.Ii=this.Wo(),n.Vt=Object.assign({},i),this.Yo(t));return i.Xr.push(n),i.se.set(n.Ii,i.Xr.length-1),this.tu(t)._s=i,n},gu:function(t,i,n){if(n)return this.Io(t,i);n=new L,n.Ii=this.Ne(),n.Vt=Object.assign({},i),i=this.Yo(t),t=i.Xr,t=this.fu(n,t);return i.se.set(n.Ii,t),n},_u:function(t,i,n,r){for(var e,s=this.Yo(-1),o=0;oS.K()&&S.vt(n.Vt,h)>S.K())return null}void 0===r&&(r=I.NaviRoadEntry_BOTH),void 0===e&&(e=!0),void 0===s&&(s=!0);var a=new D;a.br=i.Ii,a.pr=i.Vt,a.wr=n.Ii,a.mr=n.Vt,a._r=[i.Vt,n.Vt],a.jr=1,this.po.push(i.Ii),this.po.push(n.Ii),a.Ii=e?this.Wo():this.Ie(),a.Er=r,a.kr(),s&&this.fo.push(a);this.Yo(t).qr.push(a);e=this.tu(t);return I.NaviRoadEntry_BOTH==r&&(s={Be:n.Ii,Cn:a.Cn},(t=e._s.ie.get(i.Ii))?t.push(s):((t=[]).push(s),e._s.ie.set(i.Ii,t)),s={Be:i.Ii,Cn:a.Cn},(t=e._s.ie.get(n.Ii))?t.push(s):((t=[]).push(s),e._s.ie.set(n.Ii,t))),I.NaviRoadEntry_FORWARD==r&&(s={Be:n.Ii,Cn:a.Cn},(t=e._s.ie.get(i.Ii))?t.push(s):((t=[]).push(s),e._s.ie(i.Ii,t))),I.NaviRoadEntry_BACK==r&&(s={Be:i.Ii,Cn:a.Cn},(t=e._s.ie.get(n.Ii))?t.push(s):((t=[]).push(s),e._s.ie.set(n.Ii,t))),a},Ko:function(t){var i=this.ko(t),n=this.so.get(i);if(n)for(var r=0;r=this.ku())throw"positon is out of bounder";this.Tu[t]=i},Au:function(t){var i=t;return"string"==typeof t&&(i=this.Mu.indexOf(t)),this.Tu[i]},Su:function(){for(var t=[],i=0;i=this.queue.length&&(this.queue=this.queue.slice(this.offset),this.offset=0),t},Yu:function(){return 0=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var e,s=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){o=!0,e=t},f:function(){try{s||null==r.return||r.return()}finally{if(o)throw e}}}}function _e(t,i){if(t){if("string"==typeof t)return xe(t,i);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xe(t,i):void 0}}function xe(t,i){(null==i||i>t.length)&&(i=t.length);for(var n=0,r=new Array(i);nS.K()?c.push.apply(c,A(b)):(f=!0,v=this.$o(this.no,b[0].st,b[0].Vs),this.Jo(this.no,this.xs,v))}}catch(t){l.e(t)}finally{l.f()}f||c.forEach(function(t){t=n.$o(n.no,t.st,t.Vs);n.Jo(n.no,n.xs,t)})}if(e&&null!=this.qs&&0S.K()?c.push.apply(c,A(b)):(f=!0,v=this.$o(this.ro,b[0].st,b[0].Vs),this.Jo(this.ro,this.gs,v))}}catch(t){l.e(t)}finally{l.f()}f||c.forEach(function(t){t=n.$o(n.ro,t.st,t.Vs);n.Jo(n.ro,n.gs,t)})}if(e&&null!=this.Hs&&0S.K()?b.push.apply(b,A(x)):(d=!0,w=this.$o(h,x[0].st,x[0].Vs),this.Jo(h,i,w))}}catch(t){p.e(t)}finally{p.f()}d||b.forEach(function(t){t=r.$o(h,t.st,t.Vs);r.Jo(h,i,t)})}if(s&&null!=u&&0h&&((h=a.area)S.vt(l.st,n.pr)?(s.push(l),s.push(v)):(s.push(v),s.push(l))),s;return s},xu:function(t,i,n,r,e,s){for(var o=e||30,u=0;u<360;u+=o){var h=new Hr;this.Ch(t,i,u,n,h,s),1==h.zs&&r.push(h)}r.sort(this.pu)},Ho:function(t,i,n,r,e){var s=new Map,o=[];for(this.xu(t,i,n,o,r,e);0!=o.length;){var u=o[0],h=s.get(u.Vs.Ii);h?h.push(u):((h=[]).push(u),s.set(u.Vs.Ii,h)),o.splice(0,1)}return s},Io:function(t,i){var n=new L,i=(n.Ii=this.Ph(),n.Vt=Object.assign({},i),this.$s.get(t));return i.Xr.push(n),i.se.set(n.Ii,i.Xr.length-1),n},gu:function(t,i,n){if(n)return this.Io(t,i);n=new L,n.Ii=this._s.Ne(),n.Vt=Object.assign({},i),i=this.$s.get(t),t=i.Xr,t=this.fu(n,t);return i.se.set(n.Ii,t),n},_u:function(t,i,n,r){for(var e,s=this.$s.get(-1),o=0;oS.K()&&S.vt(n.Vt,h)>S.K())return null}void 0===r&&(r=I.NaviRoadEntry_BOTH),void 0===e&&(e=!0),void 0===s&&(s=!0);var a=new D;a.br=i.Ii,a.pr=i.Vt,a.wr=n.Ii,a.mr=n.Vt,a._r=[i.Vt,n.Vt],this.ch.push(i.Ii),this.ch.push(n.Ii),a.Ii=e?this.Ph():this._s.Ie(),a.Er=r,a.kr(),s&&this.fo.push(a);this.$s.get(t).qr.push(a);e=this.fh.get(t);return I.NaviRoadEntry_BOTH==r&&(s={Be:n.Ii,Cn:a.Cn},(t=e._s.ie.get(i.Ii))?t.push(s):((t=[]).push(s),e._s.ie.set(i.Ii,t)),s={Be:i.Ii,Cn:a.Cn},(t=e._s.ie.get(n.Ii))?t.push(s):((t=[]).push(s),e._s.ie.set(n.Ii,t))),I.NaviRoadEntry_FORWARD==r&&(s={Be:n.Ii,Cn:a.Cn},(t=e._s.ie.get(i.Ii))?t.push(s):((t=[]).push(s),e._s.ie(i.Ii,t))),I.NaviRoadEntry_BACK==r&&(s={Be:i.Ii,Cn:a.Cn},(t=e._s.ie.get(n.Ii))?t.push(s):((t=[]).push(s),e._s.ie.set(n.Ii,t))),a},Ko:function(t){var i=this.Dh(t),n=this.so.get(i);if(n)for(var r=0;r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var e,s=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){o=!0,e=t},f:function(){try{s||null==r.return||r.return()}finally{if(o)throw e}}}}function Ee(t,i){(null==i||i>t.length)&&(i=t.length);for(var n=0,r=new Array(i);n=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var e,s=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){o=!0,e=t},f:function(){try{s||null==r.return||r.return()}finally{if(o)throw e}}}}function De(t,i){if(t){if("string"==typeof t)return Fe(t,i);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fe(t,i):void 0}}function Fe(t,i){(null==i||i>t.length)&&(i=t.length);for(var n=0,r=new Array(i);ni[0])s[1].push(u);else{for(var h=u.Ci,a=[{Pn:u.Pn,Ci:[]},{Pn:u.Pn,Ci:[]}],f=0;fn.Pn))for(var p=0;pt.Pn))for(var l=0;l=n[0]){t[e+1].Fh=!0;break}n.splice(0,1)}},Kf:function(t){var i="",t=this.xn(t);return i=null==t||""+(i=this.Ff==s.ZH?t.desc:t.gname.toUpperCase())!="null"&&""+i!=""&&""+i!="undefined"?i:t.gname.toUpperCase()},tc:function(t,i,n,r,e){var s,o,u=t[i],h=t[i+1],a=this.Hf(this.Zf[h.relField]),n=(this.Gf=i==t.length-3&&h.distancet.length)&&(i=t.length);for(var n=0,r=new Array(i);nt.length)&&(i=t.length);for(var n=0,r=new Array(i);n