12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973 |
- !function(){function t(e){return t="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(e)}function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function n(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?e(Object(i),!0).forEach((function(e){r(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function r(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===t(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}System.register(["./index-legacy-2404ff5b.js"],(function(e,r){"use strict";var i,o,a,s,l,u,c,h,f,d,p,g,v,y,m,_,x,b,w,M,S,j,C,E,P,T,k,A,O,I,B,L,F,D,R,N,z,H,G,Y=document.createElement("style");return Y.textContent=".horHead[data-v-b75b25fc]{position:relative}.horHead.horSty[data-v-b75b25fc]{height:.38542rem}.horHead .horHead-content[data-v-b75b25fc]{width:100%;height:100%;color:#efdec6;text-align:center}.horHead .horHead-content .firtitle[data-v-b75b25fc]{font-weight:700;font-size:.19792rem;font-family:Alibaba PuHuiTi}.horHead .horHead-content .sectitle[data-v-b75b25fc]{font-weight:500;font-size:.08333rem;letter-spacing:.04167rem}.horHead .horHead-left[data-v-b75b25fc]{position:absolute;top:0;left:0;font-size:0;display:flex;align-items:center}.horHead .horHead-left .CBIClass[data-v-b75b25fc]{display:inline-block;font-size:.13021rem;color:#efdec6;font-family:Alibaba PuHuiTi;margin-right:.05208rem;font-weight:600}.horHead .horHead-right[data-v-b75b25fc]{position:absolute;top:0;right:0;display:flex;height:.23958rem}.horHead .horHead-right .right-item[data-v-b75b25fc]{display:flex;justify-content:center;align-items:center;font-size:.10417rem;color:#efdec6;font-weight:400;line-height:.11458rem;margin-left:.09375rem;box-sizing:border-box}.horHead .horHead-right .right-item .controlImg[data-v-b75b25fc]{margin-right:0;width:.17708rem;cursor:pointer}.horHead .horHead-right .right-item .disbaleImg[data-v-b75b25fc]{opacity:.3}.horHead .horHead-right .right-item .firstImg[data-v-b75b25fc]{margin-right:.05208rem;width:.14583rem;cursor:pointer}.horHead .horHead-right .right-item .item-time[data-v-b75b25fc]{font-family:Persagy;font-weight:400}.horHead .horHead-right .button-wrap[data-v-b75b25fc]{padding:0 .05208rem;background:rgba(100,108,130,.3);backdrop-filter:blur(.02604rem);border-radius:.04167rem}.horHead .horHead-right .showButton[data-v-b75b25fc]{background:#fff;padding:.02604rem .04167rem;color:#4f4f4f}.horiNowClass[data-v-6bea809c]{height:48%}.NowData .subhead-title[data-v-6bea809c]{margin-left:.07292rem}.NowData .title-right-icon[data-v-6bea809c]{display:inline-block;padding:0;width:.0625rem;height:.0625rem;margin-right:.04167rem;border-radius:50%;background:rgb(126,216,116)}.NowData .contain[data-v-6bea809c]{height:calc(100% - .3125rem);display:flex}.NowData .item[data-v-6bea809c]{width:20%;display:flex;align-items:center;justify-content:center}.NowData .item .item_content[data-v-6bea809c]{background-size:auto 1.25rem;background-position:center -.1875rem;background-repeat:no-repeat;padding-bottom:.15625rem;width:100%;text-align:center}.NowData .item .item_content .content_value[data-v-6bea809c]{font-family:Persagy;font-size:.27083rem;font-weight:700;background:linear-gradient(180deg,#fff5df 0%,#ead0b1 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;text-shadow:0 0 .04167rem rgba(255,255,255,.4);line-height:.33333rem}.NowData .item .item_content .content_value .value[data-v-6bea809c]{font-family:PersagyBold}.NowData .item .item_content .content_value .unit[data-v-6bea809c]{font-size:.16667rem;margin-left:.04167rem}.NowData .item .item_content .content_name[data-v-6bea809c]{margin-top:.04167rem;font-family:PingFang SC;font-size:.16667rem;font-weight:400;line-height:.23958rem;color:#f7e6cd}.NowData .content_level[data-v-6bea809c]{margin-top:.04167rem;margin-right:.04167rem;box-sizing:border-box;width:.08333rem;height:.08333rem;border-radius:50%;background:rgb(126,216,116)}.NowData .content_level.middle[data-v-6bea809c]{background:rgb(239,214,46)}.NowData .normal-explain[data-v-6bea809c]{display:flex;align-items:center;font-size:.07292rem}.verticalNowData[data-v-6bea809c]{height:27%}.verticalNowData .item .item_content .content_value[data-v-6bea809c]{font-size:.22917rem}.verticalNowData .item .item_content .content_name[data-v-6bea809c]{margin-top:.0625rem;font-size:.14583rem}.lastMonth .item[data-v-46ba594c]{display:flex;align-items:center}.lastMonth .item .item-left[data-v-46ba594c]{width:.32292rem;height:.32292rem;margin-right:.10417rem;background:rgba(100,108,130,.06);backdrop-filter:blur(.05208rem);border-radius:.0625rem;font-size:0}.lastMonth .item .item-left img[data-v-46ba594c]{width:.32292rem}.lastMonth .item .item-right[data-v-46ba594c]{width:.625rem;white-space:nowrap}.lastMonth .item .item-value[data-v-46ba594c]{font-family:Persagy;font-weight:700;font-size:.125rem;line-height:.15625rem;color:#f7e6cd}.lastMonth .item .item-content[data-v-46ba594c]{display:flex;align-items:center;padding-top:.03125rem;font-weight:500;font-size:.07292rem}.lastMonth .item .item-content-right[data-v-46ba594c]{font-size:.07292rem;font-weight:400;line-height:.10417rem;color:#f7e6cd;white-space:nowrap}.lastMonth .item .item-content-right .min[data-v-46ba594c]{padding-top:.02083rem}.horiLastMonth[data-v-46ba594c]{height:100%;padding-left:.18229rem}.horiLastMonth .item[data-v-46ba594c]{align-items:center;padding-top:0}.horiLastMonth .itemWrap[data-v-46ba594c]{height:calc(100% - .3125rem);display:flex;flex-direction:column;justify-content:space-evenly}.verLastMonth[data-v-46ba594c]{height:26%;padding:0 .1875rem;background:rgba(149,162,194,.1);backdrop-filter:blur(.20833rem);border-radius:.10417rem}.verLastMonth .itemWrap[data-v-46ba594c]{box-sizing:border-box;padding-top:.10417rem;height:calc(100% - .3125rem);display:flex;flex-direction:row;flex-wrap:wrap}.verLastMonth .itemWrap .item[data-v-46ba594c]{justify-content:center;width:33.33%;align-items:center}.verLastMonth .itemWrap .item .item-content-right[data-v-46ba594c]{font-size:.07292rem;white-space:nowrap}.airSwitch[data-v-242cac08]{background:rgba(149,162,194,.1);backdrop-filter:blur(.20833rem);border-radius:.10417rem}.airSwitch.verAirClass[data-v-242cac08]{height:16%;padding:0 .1875rem;box-sizing:border-box}.airSwitch .air-cont[data-v-242cac08]{height:calc(100% - .3125rem);display:flex;align-items:center}.airSwitch .air-cont .air-left[data-v-242cac08]{width:100%}.airSwitch .air-cont .air-left .bar-box[data-v-242cac08]{width:93%;height:.05208rem;background:#3c3f52;border-radius:.03125rem}.airSwitch .air-cont .air-left .bar-box .bar[data-v-242cac08]{width:80%;height:.05208rem;background:linear-gradient(249.29deg,#fffbec 13.72%,#efdec6 36.81%,#cfae88 85.57%);border-radius:.04167rem}.airSwitch .air-cont .air-left .air-rate[data-v-242cac08]{font-size:.10417rem;display:flex;height:.20833rem;align-items:center;margin-top:.07292rem;color:#f7e6cd}.airSwitch .air-cont .air-left .air-rate .air-rate-value[data-v-242cac08]{color:#f7e6cd;font-size:.16667rem;padding-left:.04167rem;font-weight:700}.airSwitch[data-v-6f8e2b6b] .airText{width:100%;background:linear-gradient(180deg,#fff5df 0%,#ead0b1 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;text-shadow:0 0 .04167rem rgba(255,255,255,.4);font-size:.21875rem;font-weight:700;transform:translate(-50%)}.airSwitch[data-v-6f8e2b6b] .airText .unit{font-size:.15625rem}.airSwitch[data-v-6f8e2b6b]{height:100%;width:100%}.airSwitch .airWrap[data-v-6f8e2b6b]{height:100%;display:flex;flex-direction:column;justify-content:center}.airSwitch .container[data-v-6f8e2b6b]{height:1.09375rem}.airSwitch .air-title[data-v-6f8e2b6b]{width:100%;font-size:.125rem;line-height:.17708rem;text-align:center;color:#f7e6cd;margin-top:.125rem}.temChart .temChartCont[data-v-a29e2755]{width:100%;height:100%;box-sizing:border-box;font-size:0}.temChart .tempChartBox[data-v-a29e2755]{width:100%;height:100%;box-sizing:border-box}.horiCompClass[data-v-a29e2755]{height:100%;box-sizing:border-box;padding:.26042rem .10417rem .10417rem}.verCompClass[data-v-a29e2755]{height:31%;padding:.14583rem 0;box-sizing:border-box}.verCompClass .temChartCont[data-v-a29e2755]{padding:0 .1875rem;background:rgba(149,162,194,.1);backdrop-filter:blur(.20833rem);border-radius:.10417rem}.verCompClass .tempChartBox[data-v-a29e2755]{height:calc(100% - .3125rem);padding-top:.15625rem;box-sizing:border-box}.lastMonth[data-v-c2e9d3ad]{height:100%;backdrop-filter:blur(.10417rem);background:rgba(100,108,130,.06);border-radius:.10417rem}.lastMonth .saveEnergy[data-v-c2e9d3ad]{color:#f7e6cd;font-size:.23958rem;height:calc(100% - 1.01563rem);display:flex;justify-content:center;align-items:center;font-weight:600;font-family:Persagy}.lastMonth .saveEnergy .backImage[data-v-c2e9d3ad]{background-image:url(/sgdaping/assets/lastAllLight.333484c8.png);background-repeat:no-repeat;background-position:center bottom;background-size:120%;padding-bottom:.03646rem;text-shadow:0 0 .04167rem rgba(255,255,255,.4)}.lastMonth .saveEnergy .backImage .value[data-v-c2e9d3ad]{font-weight:700;font-size:.25rem;margin-left:.01042rem}.lastMonth .energySave[data-v-c2e9d3ad]{color:#e0c29b;font-size:.10417rem;padding-bottom:.16667rem;padding-left:.125rem;padding-right:.125rem;height:.44271rem;box-sizing:border-box}.lastMonth .energyTotal[data-v-c2e9d3ad]{color:#cbcdda;font-size:.10417rem;height:.26042rem;padding-left:.125rem;padding-right:.125rem;box-sizing:border-box}.lastMonth .textDiv[data-v-c2e9d3ad]{display:flex;justify-content:space-between;padding-bottom:.04167rem;font-family:Persagy}.lastMonth .saveBack[data-v-c2e9d3ad]{height:.07813rem;background-image:url(/sgdaping/assets/lastGold.982ba332.svg);transition:width .8s linear;width:0}.lastMonth .totalBack[data-v-c2e9d3ad]{height:.07813rem;background-image:url(/sgdaping/assets/lastGray.80fa12cf.svg);transition:width .8s linear;width:0}.verLastClass[data-v-c2e9d3ad]{height:28%;box-sizing:border-box;padding:0 .1875rem .20833rem}.lastMonth[data-v-ba9ae691],.lastMonth .lastMonthCont[data-v-ba9ae691]{height:100%}.lastMonth .saveCont[data-v-ba9ae691]{height:calc(100% - .3125rem);padding-top:.05208rem;box-sizing:border-box;text-align:center;color:#f7e6cd;position:relative}.lastMonth .saveCont .svideo[data-v-ba9ae691]{width:100%}.lastMonth .saveCont .saveCenterCont[data-v-ba9ae691]{position:relative;width:.00521rem;height:.00521rem;left:50%;top:50%}.lastMonth .saveCont .centerOval[data-v-ba9ae691]{width:.00521rem;height:.00521rem;position:absolute;left:-.26042rem;top:.15625rem;transform:translate(-50%,-50%)}.lastMonth .saveCont .centerOval .round1[data-v-ba9ae691]{position:absolute;width:1.43229rem;left:0;top:0;transform:translate(-50%,-.58333rem);animation:round1Move-ba9ae691 2s linear infinite alternate;-webkit-animation:round1Move-ba9ae691 2s linear infinite alternate;-webkit-backface-visibility:hidden;-webkit-transform-style:preserve-3d}.lastMonth .saveCont .centerOval .round2[data-v-ba9ae691]{position:absolute;width:1.43229rem;left:0;top:0;transform:translate(-50%,-.52083rem);animation:round2Move-ba9ae691 2s linear infinite alternate;-webkit-animation:round2Move-ba9ae691 2s linear infinite alternate;-webkit-backface-visibility:hidden;-webkit-transform-style:preserve-3d}.lastMonth .saveCont .centerOval .round3[data-v-ba9ae691]{position:absolute;width:1.53646rem;left:0;top:0;transform:translate(-50%,-.3125rem);animation:round3Move-ba9ae691 2s linear infinite alternate;-webkit-animation:round3Move-ba9ae691 2s linear infinite alternate;-webkit-backface-visibility:hidden;-webkit-transform-style:preserve-3d}.lastMonth .saveCont .centerOval .round4[data-v-ba9ae691]{position:absolute;width:1.77083rem;left:0;top:-.05208rem;transform:translate(-50%,-50%)}.lastMonth .saveCont .centerOval .round5[data-v-ba9ae691]{position:absolute;width:1.95833rem;left:0;top:0;transform:translate(-50%,-50%)}.lastMonth .saveCont .centerOval .electWrap[data-v-ba9ae691]{position:absolute;top:-.875rem;left:50%;font-size:.15625rem;white-space:nowrap;transform:translate(-50%);color:#f7e6cd;text-align:center}.lastMonth .saveCont .centerOval .electWrap .value[data-v-ba9ae691]{margin-top:.02604rem;font-weight:500;font-size:.16667rem;text-shadow:0 0 .04167rem rgba(255,255,255,.4)}.lastMonth .saveCont .centerOval .electWrap .value .num[data-v-ba9ae691]{font-size:.25rem;font-weight:700;margin-right:.02083rem;font-family:Persagy}.lastMonth .saveCont .outOval[data-v-ba9ae691]{width:.79167rem;height:.35417rem;position:absolute;display:flex;transform:translate(-50%,-50%)}.lastMonth .saveCont .outOval .outCircle[data-v-ba9ae691]{width:.79167rem;height:.35417rem;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border:1px dashed rgba(224,194,155,.26);border-radius:50%;animation:mycircle-ba9ae691 3s linear infinite;-webkit-animation:mycircle-ba9ae691 3s linear infinite}.lastMonth .saveCont .outOval .inOval[data-v-ba9ae691]{width:.58333rem;height:.20833rem;margin:auto;border:1px dashed rgba(224,194,155,.36);border-radius:50%}.lastMonth .saveCont .outOval .saveLight[data-v-ba9ae691]{font-size:0;width:.36458rem;position:absolute;top:.03125rem;left:50%;transform:translate(-50%)}.lastMonth .saveCont .outOval .saveCo2[data-v-ba9ae691]{font-size:0;width:.36458rem;position:absolute;top:-.26042rem;left:50%;transform:translate(-50%)}.lastMonth .saveCont .outOval .co2Wrap[data-v-ba9ae691]{position:absolute;font-size:.11458rem;white-space:nowrap}.lastMonth .saveCont .outOval .co2Wrap .value[data-v-ba9ae691]{padding:0 .04167rem;font-size:.125rem;font-weight:700;font-family:Persagy}.lastMonth .saveCont .outOval .sco2[data-v-ba9ae691]{top:-.41667rem;left:50%;transform:translate(-50%)}@keyframes mycircle-ba9ae691{0%{width:.79167rem;height:.35417rem;opacity:1}to{width:1.04167rem;height:.51042rem;opacity:.6}}@keyframes round1Move-ba9ae691{0%{transform:translate(-50%,-.58333rem)}to{transform:translate(-50%,-.72917rem)}}@keyframes round2Move-ba9ae691{0%{transform:translate(-50%,-.52083rem)}to{transform:translate(-50%,-.60417rem)}}@keyframes round3Move-ba9ae691{0%{transform:translate(-50%,-.3125rem)}to{transform:translate(-50%,-.39063rem)}}.lastMonth .saveCont .outOvalCo2[data-v-ba9ae691]{left:-2.08333rem;top:-.15625rem}.lastMonth .saveCont .outOvalCarbon[data-v-ba9ae691]{left:1.5625rem;top:-.52083rem}.lastMonth .saveCont .outOvalTree[data-v-ba9ae691]{left:1.97917rem;top:.52083rem}.lastMonth .saveCont .videoWrap[data-v-ba9ae691]{position:absolute;bottom:0;top:.05208rem;left:0;right:0;margin:0}.lastMonth .saveCont .co2Canvas[data-v-ba9ae691],.lastMonth .saveCont .circleCanvas1[data-v-ba9ae691]{position:absolute;left:0;top:0;transform:translate(-50%,-50%)}.horSaveClass[data-v-ba9ae691]{backdrop-filter:blur(.10417rem);background:rgba(100,108,130,.06);border-radius:.10417rem;overflow:hidden}.horSaveClass .subhead-title[data-v-ba9ae691]{padding-left:.16667rem}.verSaveClass[data-v-ba9ae691]{box-sizing:border-box;height:42%;padding:.14583rem 0}.verSaveClass .lastMonthCont[data-v-ba9ae691]{background:rgba(100,108,130,.06);backdrop-filter:blur(.10417rem);border-radius:.10417rem;box-sizing:border-box;overflow:hidden}.floorSpace[data-v-b97b7467]{width:100%;height:100%;display:flex;position:relative;border-radius:.08333rem}.floorSpace .buildName[data-v-b97b7467]{position:absolute;top:-.20833rem;left:-.20833rem;background:linear-gradient(90deg,rgba(131,195,255,.16) 0%,rgba(131,195,255,0) 100%);height:.23958rem;line-height:.23958rem;font-size:.10417rem;padding:0 .10417rem;color:#f7ecdb;box-sizing:border-box}.topChange[data-v-b97b7467]{height:1.14583rem;width:100%;margin:0 auto;background:#ffffff;position:relative;background:rgba(149,162,194,.1);backdrop-filter:blur(.10417rem);border-radius:.10417rem}.topChange .allIndicator[data-v-b97b7467]{position:relative;padding-top:.1875rem;padding-bottom:.1875rem;display:flex;align-items:center;justify-content:center}.topChange .allIndicator .eachItem[data-v-b97b7467]{cursor:pointer;font-size:.14583rem;font-weight:600;color:#9b98ad;margin-right:.20833rem;display:flex;flex-direction:column;align-items:center;width:.46875rem}.topChange .allIndicator .eachItem .bar[data-v-b97b7467]{width:.41667rem}.topChange .allIndicator .eachItem.select[data-v-b97b7467]{color:#f7e6cd;background-image:url(/sgdaping/assets/lastAllLight.333484c8.png);background-repeat:no-repeat;background-position:center bottom;background-size:100%;padding-bottom:.03646rem}.topChange .imageDiv[data-v-b97b7467]{height:.16667rem;margin:0 .16667rem;font-size:0;text-align:center}.topChange .imageDiv img[data-v-b97b7467]{font-size:0;height:100%}.topChange .textCont[data-v-b97b7467]{color:#f7e6cd;font-size:.10417rem;font-weight:600;text-align:center;padding-top:.08333rem}.topChange .textCont .value[data-v-b97b7467]{margin-left:.03125rem}.leftChange[data-v-b97b7467]{height:100%;width:.80208rem;box-sizing:border-box;padding:.33854rem 0 .10417rem;margin:0 auto;position:relative}.leftChange .allIndicator[data-v-b97b7467]{position:relative;height:100%}.leftChange .allIndicator .showItem[data-v-b97b7467]{transition:all .4s linear;height:36%;box-sizing:border-box;padding-top:.10417rem;position:absolute;top:0;left:.08333rem;width:.625rem;background-color:rgba(100,108,130,.2);backdrop-filter:blur(.05208rem);background-image:url(/sgdaping/assets/twoLight.66edefc6.png);background-repeat:no-repeat;background-position:center top;background-size:100%;border-radius:.05208rem;text-align:center}.leftChange .allIndicator .showItem .other[data-v-b97b7467]{height:60%;padding:.07292rem 0;box-sizing:border-box;font-size:0}.leftChange .allIndicator .showItem .other .img[data-v-b97b7467]{height:100%;padding:0;margin:0}.leftChange .allIndicator .showItem .title[data-v-b97b7467]{color:#f7ecdb;font-size:.125rem;height:20%;font-weight:600}.leftChange .allIndicator .showItem .ltextCont[data-v-b97b7467]{color:#f7ecdb;line-height:.11979rem;height:20%}.leftChange .allIndicator .showItem .ltextCont .value[data-v-b97b7467]{font-weight:700;font-size:.10417rem;font-family:PersagyBold}.leftChange .allIndicator .showItem .ltextCont .name[data-v-b97b7467]{font-weight:400;font-size:.07292rem}.leftChange .allIndicator .eachItem[data-v-b97b7467]{cursor:pointer;padding-top:.10417rem;height:16%;box-sizing:border-box;text-align:center;font-family:PingFang SC}.leftChange .allIndicator .eachItem .title[data-v-b97b7467]{color:#9b98ad;font-size:.125rem;font-weight:600}.leftChange .allIndicator .eachItem.select[data-v-b97b7467]{height:36%}.leftChange .allIndicator .eachItem[data-v-b97b7467]:last-child{margin-bottom:0}.floorWrap[data-v-b97b7467]{flex:1;margin:0 auto;border-top-right-radius:.08333rem;border-bottom-right-radius:.08333rem;box-sizing:border-box}.floorWrap .floor-item[data-v-b97b7467]{display:flex;padding:.09375rem .10417rem .09375rem 0;box-sizing:border-box}.floorWrap .floor-num[data-v-b97b7467]{display:flex;justify-content:center;align-items:center;font-family:PersagyBold;font-size:.1875rem;font-weight:700;line-height:.22396rem;color:#f7ecdb;width:.46875rem;flex-shrink:0}.floorWrap .floor-space[data-v-b97b7467]{display:flex;flex:1;flex-wrap:wrap;font-size:.07292rem}.floorWrap .floor-space .space-box[data-v-b97b7467]{padding:.02083rem;box-sizing:border-box}.floorWrap .floor-space .space-box .space-name[data-v-b97b7467]{display:flex;justify-content:center;align-items:center;height:100%;min-width:.10417rem;border-radius:.04167rem;color:#f7ecdb;backdrop-filter:blur(.02604rem);background:rgba(34,139,81,.76);text-align:center;padding:0 .04167rem;box-sizing:border-box;font-weight:500;font-family:Persagy}.verFloorClass[data-v-b97b7467]{display:block}.verFloorClass .floorWrap[data-v-b97b7467]{padding-top:.07292rem;height:calc(100% - 1.14583rem)}.verFloorClass .buildName[data-v-b97b7467]{top:-.28646rem}.lastChart[data-v-8ec787c8]{height:100%;background:rgba(100,108,130,.06);backdrop-filter:blur(.10417rem);border-radius:.10417rem}.lastChart .head-title[data-v-8ec787c8]{justify-content:space-between;padding:0 .16667rem}.lastChart .head-title .rightVal[data-v-8ec787c8]{color:#39354e;font-size:.07292rem;font-weight:400}.lastChart .lastChartBox[data-v-8ec787c8]{padding-top:.1875rem;box-sizing:border-box;height:calc(100% - .3125rem)}.verticalTemChart[data-v-8ec787c8]{height:30%;box-sizing:border-box;padding:0 .1875rem}\n",document.head.appendChild(Y),{setters:[function(t){i=t.j,o=t.u,a=t.s,s=t.a,l=t.k,u=t.o,c=t.t,h=t.l,f=t.m,d=t._,p=t.b,g=t.d,v=t.n,y=t.f,m=t.h,_=t.p,x=t.i,b=t.q,w=t.F,M=t.v,S=t.w,j=t.x,C=t.y,E=t.r,P=t.z,T=t.A,k=t.B,A=t.C,O=t.D,I=t.E,B=t.G,L=t.c,F=t.H,D=t.I,R=t.J,N=t.K,z=t.L,H=t.M,G=t.N}],execute:function(){var r=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return _v},get Circle(){return bv},get Ellipse(){return Sv},get Image(){return Ev},get Line(){return kv},get Marker(){return Iv},get Path(){return Yv},get Polygon(){return qv},get Polyline(){return Uv},get Rect(){return Kv},get Text(){return $v}},Symbol.toStringTag,{value:"Module"})),Y=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return gy},get Circle(){return yy},get Dom(){return _y},get Ellipse(){return by},get Image(){return My},get Line(){return jy},get Marker(){return Ty},get Path(){return Ay},get Polygon(){return Iy},get Polyline(){return Ly},get Rect(){return Dy},get Text(){return Gy}},Symbol.toStringTag,{value:"Module"})),V="/sgdaping/assets/persagyLogo.da1c54bb.svg",X="/sgdaping/assets/zhijianglogo.3d5e485a.png",q="/sgdaping/assets/changeVer.0a6966ec.svg",W="/sgdaping/assets/changeHor.31bd2dd3.svg",U="/sgdaping/assets/yellowlight.e2ed4936.png",Z="/sgdaping/assets/redlight.da537064.png",K="/sgdaping/assets/greenlight.46aff2a5.png",Q="/sgdaping/assets/bluegreen.00759706.png",$="/sgdaping/assets/yellowgreen.8ba3e101.png",J="/sgdaping/assets/redyellow.a4d31e06.png",tt="/sgdaping/assets/bluelight.94881ed2.png",et="/sgdaping/assets/lastco2.24f784ab.png",nt="/sgdaping/assets/lasthumidity.06543219.png",rt="/sgdaping/assets/lastmethanal.498d635d.png",it="/sgdaping/assets/lastpm25.c890de2b.png",ot="/sgdaping/assets/lasttemp.af551cbe.png",at="/sgdaping/assets/floor_co2.1473ef18.png",st="/sgdaping/assets/floor_jiaquan.5a70d2b7.png",lt="/sgdaping/assets/floor_pm25.a5578d12.png",ut="/sgdaping/assets/floor_shidu.5b65577c.png",ct="/sgdaping/assets/floor_wendu.4c10f196.png",ht="/sgdaping/assets/floor_co2_ver.452fda21.png",ft="/sgdaping/assets/floor_jiaquan_ver.89176ec7.png",dt="/sgdaping/assets/floor_pm25_ver.ae37a6d9.png",pt="/sgdaping/assets/floor_shidu_ver.d5fad17b.png",gt="/sgdaping/assets/floor_wendu_ver.430ba6f4.png",vt="/sgdaping/assets/playbutton.f8f7c1b9.svg",yt="/sgdaping/assets/stopbutton.8e181bb5.svg",mt="/sgdaping/assets/persagyLogo2.2c2cd343.svg",_t=i({props:{navigateItem:{type:String}},setup:function(t,e){var r=mt,i=V,d=X,p=W,g=q,v=vt,y=yt,m=h(),_=f(),x=o(),b=a(x),w=b.weatherCont,M=b.projectObj,S=b.projectId,j=b.stopSign,C=s({logo:"Pj3301100002"==x.projectId?d:"Pj1101010007"==x.projectId?r:i,changeHor:p,changeVer:g,playbutton:v,stopbutton:y,nowScreen:m.path.indexOf("horiScreen")>-1?"horizontal":"vertical",nowStr:l().format("YYYY.MM.DD HH:mm"),setNowInterval:function(){setInterval((function(){var t=l().format("YYYY.MM.DD HH:mm");C.nowStr=t}),3e4)},changeScreen:function(){"vertical"==C.nowScreen?(C.nowScreen="horizontal",_.push({path:"/horiScreen"})):(C.nowScreen="vertical",_.push({path:"/verScreen"}))},toPlayStop:function(){1==x.stopSign?(x.stopSign=!1,e.emit("toplay")):(x.stopSign=!0,e.emit("tostop"))},toPlay:function(){x.stopSign=!1,e.emit("toplay")},toStop:function(){x.stopSign=!0,e.emit("tostop")},toLast:function(){e.emit("lastpage")},toNext:function(){e.emit("nextpage")}});return u((function(){console.log("pagehead-mounted"),C.setNowInterval()})),n(n({},c(C)),{},{weatherCont:w,projectObj:M,stopSign:j,projectId:S})}}),xt={class:"horHead horSty"},bt={class:"horHead-content"},wt={class:"firtitle"},Mt=function(t){return _("data-v-b75b25fc"),t=t(),x(),t}((function(){return g("div",{class:"sectitle"},"懂空间,更懂办公",-1)})),St={class:"horHead-left"},jt={key:0,class:"CBIClass"},Ct=["src"],Et={class:"horHead-right"},Pt={class:"right-item"},Tt={class:"item-time"},kt={class:"right-item"},At={class:"right-item button-wrap"},Ot=["src"],It=["src"];e("p",d(_t,[["render",function(t,e,n,r,i,o){return m(),p("div",xt,[g("div",bt,[g("div",null,[g("div",wt,v(t.projectObj.localName),1),Mt])]),g("div",St,["Pj1101010007"==t.projectId?(m(),p("div",jt,"塑美尚格")):y("",!0),g("img",{src:t.logo,alt:"",style:{height:"48px"}},null,8,Ct)]),g("div",Et,[g("div",Pt,[g("span",Tt,v(t.nowStr),1)]),g("div",kt,v(t.weatherCont.text),1),g("div",At,[g("img",{class:"controlImg",alt:"",src:"/sgdaping/assets/lastbutton.98e444b1.svg",onClick:e[0]||(e[0]=function(){return t.toLast&&t.toLast.apply(t,arguments)})}),g("img",{class:"controlImg",alt:"",src:t.stopSign?t.playbutton:t.stopbutton,onClick:e[1]||(e[1]=function(){return t.toPlayStop&&t.toPlayStop.apply(t,arguments)})},null,8,Ot),g("img",{class:"controlImg",alt:"",src:"/sgdaping/assets/nextButton.aeca7da3.svg",onClick:e[2]||(e[2]=function(){return t.toNext&&t.toNext.apply(t,arguments)})})]),g("div",{class:"right-item button-wrap",onClick:e[3]||(e[3]=function(){return t.changeScreen&&t.changeScreen.apply(t,arguments)})},[g("img",{class:"firstImg",alt:"",src:"vertical"==t.nowScreen?t.changeHor:t.changeVer},null,8,It)])])])}],["__scopeId","data-v-b75b25fc"]]));var Bt=function(t,e,n){if(null==t)return null;var r=U,i=Z,o=K,a=Q,s=$,l=J,u=tt,c={temp:[{min:Number.NEGATIVE_INFINITY,max:20,image:u,color:"#52A0FF",fcolor:"rgba(0, 95, 163, 0.76)"},{min:20,max:22,image:a,color:"#40DDCE",fcolor:"rgba(0, 160, 163, 0.76)"},{min:22,max:27,image:o,color:"#7ED874",fcolor:"rgba(34, 139, 81, 0.76)"},{min:27,max:28,image:s,color:"#C4E34F",fcolor:"rgba(133, 148, 0, 0.76)"},{min:28,max:30,image:l,color:"#EE9F2B",fcolor:"rgba(173, 107, 0, 0.8)"},{min:30,max:Number.POSITIVE_INFINITY,image:i,color:"#F5483D",fcolor:"rgba(154, 40, 40, 0.8)"}],humidity:[{min:0,max:30,image:i,color:"#F5483D",fcolor:"rgba(173, 107, 0, 0.8)"},{min:30,max:35,image:l,color:"#EE9F2B",fcolor:"rgba(133, 148, 0, 0.76)"},{min:35,max:65,image:o,color:"#7ED874",fcolor:"rgba(34, 139, 81, 0.76)"},{min:65,max:95,image:a,color:"#40DDCE",fcolor:"rgba(0, 160, 163, 0.76)"},{min:95,max:Number.POSITIVE_INFINITY,image:u,color:"#52A0FF",fcolor:"rgba(0, 95, 163, 0.76)"}],co2:[{min:0,max:800,image:o,color:"#7ED874",fcolor:"rgba(34, 139, 81, 0.76)"},{min:800,max:1e3,image:s,color:"#C4E34F",fcolor:"rgba(133, 148, 0, 0.76)"},{min:1e3,max:2500,image:l,color:"#EE9F2B",fcolor:"rgba(173, 107, 0, 0.8)"},{min:2500,max:Number.POSITIVE_INFINITY,image:i,color:"#F5483D",fcolor:"rgba(154, 40, 40, 0.8)"}],methanal:[{min:0,max:.08,image:o,color:"#7ED874",fcolor:"rgba(34, 139, 81, 0.76)"},{min:.08,max:.1,image:s,color:"#C4E34F",fcolor:"rgba(133, 148, 0, 0.76)"},{min:.1,max:.2,image:l,color:"#EE9F2B",fcolor:"rgba(173, 107, 0, 0.8)"},{min:.2,max:Number.POSITIVE_INFINITY,image:i,color:"#F5483D",fcolor:"rgba(154, 40, 40, 0.8)"}],pm25:[{min:0,max:35,image:o,color:"#7ED874",fcolor:"rgba(34, 139, 81, 0.76)"},{min:35,max:75,image:s,color:"#C4E34F",fcolor:"rgba(133, 148, 0, 0.76)"},{min:75,max:150,image:r,color:"#EFD62E",fcolor:"rgba(156, 137, 0, 0.76)"},{min:150,max:250,image:l,color:"#EE9F2B",fcolor:"rgba(173, 107, 0, 0.8)"},{min:250,max:Number.POSITIVE_INFINITY,image:i,color:"#F5483D",fcolor:"rgba(154, 40, 40, 0.8)"}]},h=null;return c[e].forEach((function(e){t>=e.min&&t<e.max&&(h=n?e.fcolor:e.image)})),h},Lt=i({props:{screenType:{type:String}},setup:function(t,e){var r=s({realDataArr:[],selectColor:Bt}),i=[{id:"temp",code:"Tdb",name:"温度",unit:"℃",level:"low",fixed:1},{id:"humidity",name:"湿度",code:"RH",unit:"%",level:"middle",fixed:0},{id:"co2",name:"CO₂",code:"CO2",unit:"ppm",level:"low",fixed:0},{id:"methanal",code:"HCHO",name:"甲醛",unit:"mg/m³",level:"low",fixed:2},{id:"pm25",code:"PM2d5",name:"PM2.5",unit:"ug/m³",level:"low",fixed:0}];return u((function(){b().then((function(t){var e=t.data.data||[];i.forEach((function(t){var n=(e.filter((function(e){return e.code==t.code}))[0]||{}).data;t.value=n?Number(n.toFixed(t.fixed)):n})),r.realDataArr=i})).catch((function(t){r.realDataArr=i}))})),n({},c(r))}}),Ft=function(t){return _("data-v-6bea809c"),t=t(),x(),t}((function(){return g("div",{class:"head-title"},[g("span",null,"实时数据"),g("span",{class:"subhead-title"},"主动式空调,会呼吸的写字楼")],-1)})),Dt={class:"contain"},Rt={class:"content_value"},Nt={class:"value"},zt={class:"unit"},Ht={class:"content_name"};e("N",d(Lt,[["render",function(t,e,n,r,i,o){return m(),p("div",{class:S(["NowData",["hor"===t.screenType?"horiNowClass":"verticalNowData"]])},[Ft,g("div",Dt,[(m(!0),p(w,null,M(t.realDataArr,(function(e,n){return m(),p("div",{class:"item",key:n},[g("div",{class:"item_content",style:j({backgroundImage:"url("+t.selectColor(e.value,e.id)+")"})},[g("div",Rt,[g("span",Nt,v(e.value),1),g("span",zt,v(e.unit),1)]),g("div",Ht,[g("span",null,v(e.name),1)])],4)])})),128))])],2)}],["__scopeId","data-v-6bea809c"]]));var Gt=i({props:{screenType:{type:String}},setup:function(t,e){var r=et,i=nt,o=rt,a=it,l=ot,h=s({lastDataArr:[]}),f=[{id:"temp",name:"温度",code:"Tdb",unit:"℃",maxName:"最高温",minName:"最低温",img:l,fixed:1},{id:"humidity",name:"湿度",code:"RH",unit:"%",maxName:"最大值",max:50,minName:"最小值",min:20,img:i,fixed:0},{id:"co2",name:"CO2",code:"CO2",value:2600,unit:"ppm",maxName:"最大值",max:2600,minName:"最小值",min:300,img:r,fixed:0},{id:"methanal",name:"甲醛",code:"HCHO",value:.03,unit:"mg/m³",maxName:"最大值",max:.01,minName:"最小值",min:.07,img:o,fixed:2},{id:"pm25",name:"PM2.5",code:"PM2d5",value:120,unit:"ug/m³",maxColor:"#C4E34F",minColor:"#7ed874",maxName:"最大值",max:340,minName:"最小值",min:20,img:a,fixed:0}];return u((function(){C().then((function(t){var e=t.data.data||[];f.forEach((function(t){var n=e.filter((function(e){return e.code==t.code}))[0]||{};t.value=n.avgData?Number(n.avgData.toFixed(t.fixed)):n.avgData,t.max=n.maxData?Number(n.maxData.toFixed(t.fixed)):n.maxData,t.min=n.minData?Number(n.minData.toFixed(t.fixed)):n.minData})),h.lastDataArr=f})).catch((function(t){h.lastDataArr=f}))})),n({},c(h))}}),Yt=function(t){return _("data-v-46ba594c"),t=t(),x(),t}((function(){return g("div",{class:"subhead-title"},[g("span",null,"上月数据")],-1)})),Vt={class:"itemWrap"},Xt={class:"item-left"},qt=["src"],Wt={class:"item-right"},Ut={class:"item-value"},Zt={class:"item-content"},Kt={class:"item-content-right"},Qt={class:"max"},$t={class:"min"};e("L",d(Gt,[["render",function(t,e,n,r,i,o){return m(),p("div",{class:S(["lastMonth",["hor"===t.screenType?"horiLastMonth":"verLastMonth"]])},[Yt,g("div",Vt,[(m(!0),p(w,null,M(t.lastDataArr,(function(t,e){return m(),p("div",{class:"item",key:e},[g("div",Xt,[g("img",{src:t.img},null,8,qt)]),g("div",Wt,[g("div",Ut,[g("span",null,v(t.value),1),g("span",null,v(t.unit),1)]),g("div",Zt,[g("div",Kt,[g("div",Qt,[g("span",null,v(t.maxName),1),g("span",null,v(t.max),1),g("span",null,v(t.unit),1)]),g("div",$t,[g("span",null,v(t.minName),1),g("span",null,v(t.min),1),g("span",null,v(t.unit),1)])])])])])})),128))])],2)}],["__scopeId","data-v-46ba594c"]]));function Jt(){var t=E(),e=E();return u((function(){P().then((function(n){var r=(n.data.data||{}).openRate||0;t.value=r?Number((100*r).toFixed(0)):r,e.value=!!r})).catch((function(t){}))})),{airValue:t,airStatus:e}}var te=i({props:{navigateItem:{type:String},color:{type:String}},setup:function(t,e){var r=Jt(),i=r.airValue,o=r.airStatus,a=s({airValue:i,airStatus:o});return n({},c(a))}}),ee={class:"airSwitch verAirClass"},ne={class:"subhead-title"},re={class:"air-cont"},ie={class:"air-left"},oe={class:"bar-box"},ae={class:"air-rate"},se=function(t){return _("data-v-242cac08"),t=t(),x(),t}((function(){return g("span",null,"空调开启率",-1)})),le={class:"air-rate-value"};e("a",d(te,[["render",function(t,e,n,r,i,o){return m(),p("div",ee,[g("div",ne,[g("span",null,v(t.airStatus?"空调已开启":"空调已关闭"),1)]),g("div",re,[g("div",ie,[g("div",oe,[g("div",{class:"bar",style:j({width:t.airValue+"%"})},null,4)]),g("div",ae,[se,g("span",le,v(t.airValue)+"%",1)])])])])}],["__scopeId","data-v-242cac08"]]));var ue=function(t,e){return ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},ue(t,e)};function ce(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}ue(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var he=function(){return he=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},he.apply(this,arguments)};function fe(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function de(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{l(r.next(t))}catch(e){o(e)}}function s(t){try{l(r.throw(t))}catch(e){o(e)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))}function pe(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(l){s=[6,l],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function ge(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ve(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function ye(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function me(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}var _e=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},xe=function(t,e){return!!_e(t)&&t.indexOf(e)>-1},be=function(t,e){if(!_e(t))return t;for(var n=[],r=0;r<t.length;r++){var i=t[r];e(i,r)&&n.push(i)}return n},we={}.toString,Me=function(t,e){return we.call(t)==="[object "+e+"]"},Se=function(t){return Me(t,"Function")},je=function(t){return null==t},Ce=function(t){return Array.isArray?Array.isArray(t):Me(t,"Array")},Ee=function(e){var n=t(e);return null!==e&&"object"===n||"function"===n};function Pe(t,e){if(t)if(Ce(t))for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);else if(Ee(t))for(var i in t)if(t.hasOwnProperty(i)&&!1===e(t[i],i))break}var Te=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return Pe(t,(function(n,r){Se(t)&&"prototype"===r||e.push(r)})),e};var ke=function(e){return"object"===t(e)&&null!==e},Ae=function(t){if(!ke(t)||!Me(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e};function Oe(t,e){if(!Ce(t))return null;var n;if(Se(e)&&(n=e),Ae(e)&&(n=function(t){return function(t,e){var n=Te(e),r=n.length;if(je(t))return!r;for(var i=0;i<r;i+=1){var o=n[i];if(e[o]!==t[o]||!(o in t))return!1}return!0}(t,e)}),n)for(var r=0;r<t.length;r+=1)if(n(t[r]))return t[r];return null}var Ie=function(t){if(!Ce(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},Be=function(t){if(Ce(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])},Le=function(t){if(Ce(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])},Fe=Array.prototype.splice,De=function(t,e,n){if(!Ce(t)&&!Ae(t))return t;var r=n;return Pe(t,(function(t,n){r=e(r,t,n)})),r},Re=function(t,e){var n=[];if(!_e(t))return n;for(var r=-1,i=[],o=t.length;++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return function(t,e){if(!_e(t))return[];for(var n=t?e.length:0,r=n-1;n--;){var i=void 0,o=e[n];n!==r&&o===i||(i=o,Fe.call(t,o,1))}}(t,i),n},Ne=function(t){return Me(t,"String")};function ze(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var r=0,i=t.length;r<i;r++){var o=t[r];e.has(o)||(n.push(o),e.set(o,!0))}return n}var He=function(t,e){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i][e];if(!je(o)){Ce(o)||(o=[o]);for(var a=0;a<o.length;a++){var s=o[a];r[s]||(n.push(s),r[s]=!0)}}}return n};function Ge(t){if(_e(t))return t[0]}function Ye(t){if(_e(t)){return t[t.length-1]}}var Ve=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1},Xe=Object.prototype.hasOwnProperty;function qe(t,e){if(!e||!Ce(t))return{};for(var n,r={},i=Se(e)?e:function(t){return t[e]},o=0;o<t.length;o++){var a=t[o];n=i(a),Xe.call(r,n)?r[n].push(a):r[n]=[a]}return r}function We(t,e){if(!e)return{0:t};if(!Se(e)){var n=Ce(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return qe(t,e)}var Ue=function(t,e,n){return t<e?e:t>n?n:t},Ze=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))},Ke=function(t){return Me(t,"Number")};function Qe(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}var $e=function(t,e){return(t%e+e)%e},Je=Math.PI/180,tn=function(t){return Je*t},en=function(t,e){return t.hasOwnProperty(e)},nn=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return Pe(t,(function(n,r){Se(t)&&"prototype"===r||e.push(n)})),e},rn=function(t){return je(t)?"":t.toString()},on=function(t){return rn(t).toLowerCase()};function an(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}var sn=function(t){var e=rn(t);return e.charAt(0).toUpperCase()+e.substring(1)},ln={}.toString,un=function(t){return Me(t,"Boolean")},cn=function(t){return Me(t,"Date")},hn=Object.prototype,fn=function(t){return void 0===t},dn=function(t){return t instanceof Element||t instanceof HTMLDocument};function pn(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function gn(t,e,n,r){return e&&pn(t,e),n&&pn(t,n),r&&pn(t,r),t}var vn=function e(n){if("object"!==t(n)||null===n)return n;var r;if(Ce(n)){r=[];for(var i=0,o=n.length;i<o;i++)"object"===t(n[i])&&null!=n[i]?r[i]=e(n[i]):r[i]=n[i]}else for(var a in r={},n)"object"===t(n[a])&&null!=n[a]?r[a]=e(n[a]):r[a]=n[a];return r};function yn(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,e),s&&t.apply(i,o)}}var mn=function(t,e){if(!Se(t))throw new TypeError("Expected a function");var n=function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,r);return a.set(o,s),s};return n.cache=new Map,n};function _n(t,e,n,r){for(var i in n=n||0,r=r||5,e)if(e.hasOwnProperty(i)){var o=e[i];null!==o&&Ae(o)?(Ae(t[i])||(t[i]={}),n<r?_n(t[i],o,n+1,r):t[i]=e[i]):Ce(o)?(t[i]=[],t[i]=t[i].concat(o)):void 0!==o&&(t[i]=o)}}var xn=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)_n(t,e[r]);return t},bn=function(t,e){if(!_e(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var r=-1,i=0;i<t.length;i++)if(t[i]===e){r=i;break}return r},wn=Object.prototype.hasOwnProperty;function Mn(t){if(je(t))return!0;if(_e(t))return!t.length;var e=function(t){return ln.call(t).replace(/^\[object /,"").replace(/]$/,"")}(t);if("Map"===e||"Set"===e)return!t.size;if(function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||hn)}(t))return!Object.keys(t).length;for(var n in t)if(wn.call(t,n))return!1;return!0}var Sn,jn=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(Ne(e)||Ne(n))return!1;if(_e(e)||_e(n)){if(e.length!==n.length)return!1;for(var r=!0,i=0;i<e.length&&(r=t(e[i],n[i]));i++);return r}if(ke(e)||ke(n)){var o=Object.keys(e),a=Object.keys(n);if(o.length!==a.length)return!1;for(r=!0,i=0;i<o.length&&(r=t(e[o[i]],n[o[i]]));i++);return r}return!1},Cn=function(t,e){if(!_e(t))return t;for(var n=[],r=0;r<t.length;r++){var i=t[r];n.push(e(i,r))}return n},En=function(t){return t},Pn=function(t,e,n){for(var r=0,i=Ne(e)?e.split("."):e;t&&r<i.length;)t=t[i[r++]];return void 0===t||r<i.length?n:t},Tn=function(t,e,n){var r=t,i=Ne(e)?e.split("."):e;return i.forEach((function(t,e){e<i.length-1?(Ee(r[t])||(r[t]=Ke(i[e+1])?[]:{}),r=r[t]):r[t]=n})),t},kn=Object.prototype.hasOwnProperty,An=function(t,e){if(null===t||!Ae(t))return{};var n={};return Pe(e,(function(e){kn.call(t,e)&&(n[e]=t[e])})),n},On=function(t,e,n){var r,i,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},u=function(){var u=Date.now();s||!1!==n.leading||(s=u);var c=e-(u-s);return i=this,o=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),s=u,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,c)),a};return u.cancel=function(){clearTimeout(r),s=0,r=i=o=null},u},In={},Bn=function(t){return In[t=t||"g"]?In[t]+=1:In[t]=1,t+In[t]},Ln=function(){};function Fn(t){return je(t)?0:_e(t)?t.length:Object.keys(t).length}var Dn,Rn,Nn,zn=mn((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return Sn||(Sn=document.createElement("canvas").getContext("2d")),Sn.font=[o,a,i,n+"px",r].join(" "),Sn.measureText(Ne(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),ye([t],nn(e)).join("")})),Hn=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();!function(t){t.FORE="fore",t.MID="mid",t.BG="bg"}(Dn||(Dn={})),function(t){t.TOP="top",t.TOP_LEFT="top-left",t.TOP_RIGHT="top-right",t.RIGHT="right",t.RIGHT_TOP="right-top",t.RIGHT_BOTTOM="right-bottom",t.LEFT="left",t.LEFT_TOP="left-top",t.LEFT_BOTTOM="left-bottom",t.BOTTOM="bottom",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_RIGHT="bottom-right",t.RADIUS="radius",t.CIRCLE="circle",t.NONE="none"}(Rn||(Rn={})),function(t){t.AXIS="axis",t.GRID="grid",t.LEGEND="legend",t.TOOLTIP="tooltip",t.ANNOTATION="annotation",t.SLIDER="slider",t.SCROLLBAR="scrollbar",t.OTHER="other"}(Nn||(Nn={}));var Gn,Yn,Vn,Xn,qn=3,Wn=2,Un=1;!function(t){t.BEFORE_RENDER="beforerender",t.AFTER_RENDER="afterrender",t.BEFORE_PAINT="beforepaint",t.AFTER_PAINT="afterpaint",t.BEFORE_CHANGE_DATA="beforechangedata",t.AFTER_CHANGE_DATA="afterchangedata",t.BEFORE_CLEAR="beforeclear",t.AFTER_CLEAR="afterclear",t.BEFORE_DESTROY="beforedestroy",t.BEFORE_CHANGE_SIZE="beforechangesize",t.AFTER_CHANGE_SIZE="afterchangesize"}(Gn||(Gn={})),function(t){t.BEFORE_DRAW_ANIMATE="beforeanimate",t.AFTER_DRAW_ANIMATE="afteranimate",t.BEFORE_RENDER_LABEL="beforerenderlabel",t.AFTER_RENDER_LABEL="afterrenderlabel"}(Yn||(Yn={})),function(t){t.MOUSE_ENTER="plot:mouseenter",t.MOUSE_DOWN="plot:mousedown",t.MOUSE_MOVE="plot:mousemove",t.MOUSE_UP="plot:mouseup",t.MOUSE_LEAVE="plot:mouseleave",t.TOUCH_START="plot:touchstart",t.TOUCH_MOVE="plot:touchmove",t.TOUCH_END="plot:touchend",t.TOUCH_CANCEL="plot:touchcancel",t.CLICK="plot:click",t.DBLCLICK="plot:dblclick",t.CONTEXTMENU="plot:contextmenu",t.LEAVE="plot:leave",t.ENTER="plot:enter"}(Vn||(Vn={})),function(t){t.ACTIVE="active",t.INACTIVE="inactive",t.SELECTED="selected",t.DEFAULT="default"}(Xn||(Xn={}));var Zn,Kn,Qn,$n,Jn=["color","shape","size"],tr="_origin",er={};function nr(t,e){er[t]=e}function rr(t,e,n){if(t){if("function"==typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if("function"==typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}function ir(t){Zn||(Zn=document.createElement("table"),Kn=document.createElement("tr"),Qn=/^\s*<(\w+|!)[^>]*>/,$n={tr:document.createElement("tbody"),tbody:Zn,thead:Zn,tfoot:Zn,td:Kn,th:Kn,"*":document.createElement("div")});var e=Qn.test(t)&&RegExp.$1;e&&e in $n||(e="*");var n=$n[e];t="string"==typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var r=n.childNodes[0];return r&&n.contains(r)&&n.removeChild(r),r}function or(t,e,n){var r;try{r=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(i){}finally{r=void 0===r?n:r}return r}function ar(t,e){var n=function(t,e){var n=or(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}(t,e),r=parseFloat(or(t,"borderTopWidth"))||0,i=parseFloat(or(t,"paddingTop"))||0,o=parseFloat(or(t,"paddingBottom"))||0;return n+r+(parseFloat(or(t,"borderBottomWidth"))||0)+i+o+(parseFloat(or(t,"marginTop"))||0)+(parseFloat(or(t,"marginBottom"))||0)}function sr(t,e){var n=function(t,e){var n=or(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}(t,e),r=parseFloat(or(t,"borderLeftWidth"))||0,i=parseFloat(or(t,"paddingLeft"))||0,o=parseFloat(or(t,"paddingRight"))||0,a=parseFloat(or(t,"borderRightWidth"))||0,s=parseFloat(or(t,"marginRight"))||0;return n+r+a+i+o+(parseFloat(or(t,"marginLeft"))||0)+s}function lr(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}function ur(t){return"number"==typeof t&&!isNaN(t)}function cr(t,e,n,r){var i=n,o=r;if(e){var a=function(t){var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}(t);i=a.width?a.width:i,o=a.height?a.height:o}return{width:Math.max(ur(i)?i:1,1),height:Math.max(ur(o)?o:1,1)}}var hr=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0)},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this._events[t]||[],o=this._events["*"]||[],a=function(r){for(var i=r.length,o=0;o<i;o++)if(r[o]){var a=r[o],s=a.callback;a.once&&(r.splice(o,1),0===r.length&&delete e._events[t],i--,o--),s.apply(e,n)}};a(i),a(o)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],r=n.length,i=0;i<r;i++)n[i].callback===e&&(n.splice(i,1),r--,i--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}(),fr=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=e.visible,i=void 0===r||r;return n.visible=i,n}return ce(e,t),e.prototype.show=function(){this.visible||this.changeVisible(!0)},e.prototype.hide=function(){this.visible&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}(hr),dr="\t\n\v\f\r \u2028\u2029",pr=new RegExp("([a-z])["+dr+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+dr+"]*,?["+dr+"]*)+)","ig"),gr=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+dr+"]*,?["+dr+"]*","ig"),vr=function(t){if(!t)return null;if(Ce(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(pr,(function(r,i,o){var a=[],s=i.toLowerCase();if(o.replace(gr,(function(t,e){e&&a.push(+e)})),"m"===s&&a.length>2&&(n.push([i].concat(a.splice(0,2))),s="l",i="m"===i?"l":"L"),"o"===s&&1===a.length&&n.push([i,a[0]]),"r"===s)n.push([i].concat(a));else for(;a.length>=e[s]&&(n.push([i].concat(a.splice(0,e[s]))),e[s]););return t})),n},yr=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},mr=function(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,s=t+n*Math.cos(-r*a),l=t+n*Math.cos(-i*a);o=[["M",s,e+n*Math.sin(-r*a)],["A",n,n,0,+(i-r>180),0,l,e+n*Math.sin(-i*a)]]}else o=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return o},_r=function(t){if(!(t=vr(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,o=0,a=0,s=0,l=0;"M"===t[0][0]&&(a=i=+t[0][1],s=o=+t[0][2],l++,r[0]=["M",i,o]);for(var u=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),c=void 0,h=void 0,f=l,d=t.length;f<d;f++){if(r.push(c=[]),(e=(h=t[f])[0])!==e.toUpperCase())switch(c[0]=e.toUpperCase(),c[0]){case"A":c[1]=h[1],c[2]=h[2],c[3]=h[3],c[4]=h[4],c[5]=h[5],c[6]=+h[6]+i,c[7]=+h[7]+o;break;case"V":c[1]=+h[1]+o;break;case"H":c[1]=+h[1]+i;break;case"R":for(var p=2,g=(n=[i,o].concat(h.slice(1))).length;p<g;p++)n[p]=+n[p]+i,n[++p]=+n[p]+o;r.pop(),r=r.concat(yr(n,u));break;case"O":r.pop(),(n=mr(i,o,h[1],h[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(mr(i,o,h[1],h[2],h[3])),c=["U"].concat(r[r.length-1].slice(-2));break;case"M":a=+h[1]+i,s=+h[2]+o;break;default:for(p=1,g=h.length;p<g;p++)c[p]=+h[p]+(p%2?i:o)}else if("R"===e)n=[i,o].concat(h.slice(1)),r.pop(),r=r.concat(yr(n,u)),c=["R"].concat(h.slice(-2));else if("O"===e)r.pop(),(n=mr(i,o,h[1],h[2])).push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(mr(i,o,h[1],h[2],h[3])),c=["U"].concat(r[r.length-1].slice(-2));else for(var v=0,y=h.length;v<y;v++)c[v]=h[v];if("O"!==(e=e.toUpperCase()))switch(c[0]){case"Z":i=+a,o=+s;break;case"H":i=c[1];break;case"V":o=c[1];break;case"M":a=c[c.length-2],s=c[c.length-1];break;default:i=c[c.length-2],o=c[c.length-1]}}return r},xr=function(t,e,n,r){return[t,e,n,r,n,r]},br=function(t,e,n,r,i,o){var a=1/3,s=2/3;return[a*t+s*n,a*e+s*r,a*i+s*n,a*o+s*r,i,o]},wr=function t(e,n,r,i,o,a,s,l,u,c){r===i&&(r+=1);var h,f,d,p,g,v=120*Math.PI/180,y=Math.PI/180*(+o||0),m=[],_=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(c)f=c[0],d=c[1],p=c[2],g=c[3];else{e=(h=_(e,n,-y)).x,n=h.y,l=(h=_(l,u,-y)).x,u=h.y,e===l&&n===u&&(l+=1,u+=1);var x=(e-l)/2,b=(n-u)/2,w=x*x/(r*r)+b*b/(i*i);w>1&&(r*=w=Math.sqrt(w),i*=w);var M=r*r,S=i*i,j=(a===s?-1:1)*Math.sqrt(Math.abs((M*S-M*b*b-S*x*x)/(M*b*b+S*x*x)));p=j*r*b/i+(e+l)/2,g=j*-i*x/r+(n+u)/2,f=Math.asin(((n-g)/i).toFixed(9)),d=Math.asin(((u-g)/i).toFixed(9)),f=e<p?Math.PI-f:f,d=l<p?Math.PI-d:d,f<0&&(f=2*Math.PI+f),d<0&&(d=2*Math.PI+d),s&&f>d&&(f-=2*Math.PI),!s&&d>f&&(d-=2*Math.PI)}var C=d-f;if(Math.abs(C)>v){var E=d,P=l,T=u;d=f+v*(s&&d>f?1:-1),m=t(l=p+r*Math.cos(d),u=g+i*Math.sin(d),r,i,o,0,s,P,T,[d,E,p,g])}C=d-f;var k=Math.cos(f),A=Math.sin(f),O=Math.cos(d),I=Math.sin(d),B=Math.tan(C/4),L=4/3*r*B,F=4/3*i*B,D=[e,n],R=[e+L*A,n-F*k],N=[l+L*I,u-F*O],z=[l,u];if(R[0]=2*D[0]-R[0],R[1]=2*D[1]-R[1],c)return[R,N,z].concat(m);for(var H=[],G=0,Y=(m=[R,N,z].concat(m).join().split(",")).length;G<Y;G++)H[G]=G%2?_(m[G-1],m[G],y).y:_(m[G],m[G+1],y).x;return H},Mr=function(t,e){var n,r=_r(t),i=e&&_r(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],l=[],u="",c="",h=function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(wr.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(br(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(br(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(xr(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(xr(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(xr(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(xr(e.x,e.y,e.X,e.Y))}return t},f=function(t,e){if(t[e].length>7){t[e].shift();for(var o=t[e];o.length;)s[e]="A",i&&(l[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},d=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var p=0;p<n;p++){r[p]&&(u=r[p][0]),"C"!==u&&(s[p]=u,p&&(c=s[p-1])),r[p]=h(r[p],o,c),"A"!==s[p]&&"C"===u&&(s[p]="C"),f(r,p),i&&(i[p]&&(u=i[p][0]),"C"!==u&&(l[p]=u,p&&(c=l[p-1])),i[p]=h(i[p],a,c),"A"!==l[p]&&"C"===u&&(l[p]="C"),f(i,p)),d(r,i,o,a,p),d(i,r,a,o,p);var g=r[p],v=i&&i[p],y=g.length,m=i&&v.length;o.x=g[y-2],o.y=g[y-1],o.bx=parseFloat(g[y-4])||o.x,o.by=parseFloat(g[y-3])||o.y,a.bx=i&&(parseFloat(v[m-4])||a.x),a.by=i&&(parseFloat(v[m-3])||a.y),a.x=i&&v[m-2],a.y=i&&v[m-1]}return i?[r,i]:r},Sr=/,?([a-z]),?/gi,jr=function(t){return t.join(",").replace(Sr,"$1")},Cr=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},Er=function(t,e,n,r,i,o,a,s,l){null===l&&(l=1);for(var u=(l=l>1?1:l<0?0:l)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,d=0;d<12;d++){var p=u*c[d]+u,g=Cr(p,t,n,i,a),v=Cr(p,e,r,o,s),y=g*g+v*v;f+=h[d]*Math.sqrt(y)}return u*f},Pr=function(t,e,n,r,i,o,a,s){for(var l,u,c,h,f=[],d=[[],[]],p=0;p<2;++p)if(0===p?(u=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*a,c=3*n-3*t):(u=6*e-12*r+6*o,l=-3*e+9*r-9*o+3*s,c=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;(h=-c/u)>0&&h<1&&f.push(h)}else{var g=u*u-4*c*l,v=Math.sqrt(g);if(!(g<0)){var y=(-u+v)/(2*l);y>0&&y<1&&f.push(y);var m=(-u-v)/(2*l);m>0&&m<1&&f.push(m)}}for(var _,x=f.length,b=x;x--;)_=1-(h=f[x]),d[0][x]=_*_*_*t+3*_*_*h*n+3*_*h*h*i+h*h*h*a,d[1][x]=_*_*_*e+3*_*_*h*r+3*_*h*h*o+h*h*h*s;return d[0][b]=t,d[1][b]=e,d[0][b+1]=a,d[1][b+1]=s,d[0].length=d[1].length=b+2,{min:{x:Math.min.apply(0,d[0]),y:Math.min.apply(0,d[1])},max:{x:Math.max.apply(0,d[0]),y:Math.max.apply(0,d[1])}}},Tr=function(t,e,n,r,i,o,a,s){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,s)||Math.min(e,r)>Math.max(o,s))){var l=(t-n)*(o-s)-(e-r)*(i-a);if(l){var u=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/l,c=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/l,h=+u.toFixed(2),f=+c.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,a).toFixed(2)||h>+Math.max(i,a).toFixed(2)||f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(o,s).toFixed(2)||f>+Math.max(o,s).toFixed(2)))return{x:u,y:c}}}},kr=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},Ar=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=jr,o},Or=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:Ar(t,e,n,r),vb:[t,e,n,r].join(" ")}},Ir=function(t,e,n,r,i,o,a,s){Ce(t)||(t=[t,e,n,r,i,o,a,s]);var l=Pr.apply(null,t);return Or(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},Br=function(t,e,n,r,i,o,a,s,l){var u=1-l,c=Math.pow(u,3),h=Math.pow(u,2),f=l*l,d=f*l,p=t+2*l*(n-t)+f*(i-2*n+t),g=e+2*l*(r-e)+f*(o-2*r+e),v=n+2*l*(i-n)+f*(a-2*i+n),y=r+2*l*(o-r)+f*(s-2*o+r);return{x:c*t+3*h*l*n+3*u*l*l*i+d*a,y:c*e+3*h*l*r+3*u*l*l*o+d*s,m:{x:p,y:g},n:{x:v,y:y},start:{x:u*t+l*n,y:u*e+l*r},end:{x:u*i+l*a,y:u*o+l*s},alpha:90-180*Math.atan2(p-v,g-y)/Math.PI}},Lr=function(t,e,n){if(!function(t,e){return t=Or(t),e=Or(e),kr(e,t.x,t.y)||kr(e,t.x2,t.y)||kr(e,t.x,t.y2)||kr(e,t.x2,t.y2)||kr(t,e.x,e.y)||kr(t,e.x2,e.y)||kr(t,e.x,e.y2)||kr(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(Ir(t),Ir(e)))return n?0:[];for(var r=~~(Er.apply(0,t)/8),i=~~(Er.apply(0,e)/8),o=[],a=[],s={},l=n?0:[],u=0;u<r+1;u++){var c=Br.apply(0,t.concat(u/r));o.push({x:c.x,y:c.y,t:u/r})}for(u=0;u<i+1;u++){c=Br.apply(0,e.concat(u/i));a.push({x:c.x,y:c.y,t:u/i})}for(u=0;u<r;u++)for(var h=0;h<i;h++){var f=o[u],d=o[u+1],p=a[h],g=a[h+1],v=Math.abs(d.x-f.x)<.001?"y":"x",y=Math.abs(g.x-p.x)<.001?"y":"x",m=Tr(f.x,f.y,d.x,d.y,p.x,p.y,g.x,g.y);if(m){if(s[m.x.toFixed(4)]===m.y.toFixed(4))continue;s[m.x.toFixed(4)]=m.y.toFixed(4);var _=f.t+Math.abs((m[v]-f[v])/(d[v]-f[v]))*(d.t-f.t),x=p.t+Math.abs((m[y]-p[y])/(g[y]-p[y]))*(g.t-p.t);_>=0&&_<=1&&x>=0&&x<=1&&(n?l+=1:l.push({x:m.x,y:m.y,t1:_,t2:x}))}}return l};function Fr(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var o=[],a=0;a<e.length-1;a++)0===a&&n.push(e[0]),a===e.length-2&&r.push(e[a+1]),o[a]=[(1-i)*e[a][0]+i*e[a+1][0],(1-i)*e[a][1]+i*e[a+1][1]];t(o,i)}}(t,e),{left:n,right:r.reverse()}}var Dr=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(function(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var o=r,a=1/n,s=0;s<n-1;s++){var l=Fr(o,a/(1-a*s));i.push(l.left),o=l.right}return i.push(o),i.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r},Rr=function(t,e){if(t.length!==e.length)return!1;var n=!0;return Pe(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function Nr(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}var zr=function(t,e){var n=function(t,e){var n,r,i=t.length,o=e.length,a=0;if(0===i||0===o)return null;for(var s=[],l=0;l<=i;l++)s[l]=[],s[l][0]={min:l};for(var u=0;u<=o;u++)s[0][u]={min:u};for(l=1;l<=i;l++)for(n=t[l-1],u=1;u<=o;u++){r=e[u-1],a=Rr(n,r)?0:1;var c=s[l-1][u].min+1,h=s[l][u-1].min+1,f=s[l-1][u-1].min+a;s[l][u]=Nr(c,h,f)}return s}(t,e),r=t.length,i=e.length,o=[],a=1,s=1;if(n[r][i].min!==r){for(var l=1;l<=r;l++){var u=n[l][l].min;s=l;for(var c=a;c<=i;c++)n[l][c].min<u&&(u=n[l][c].min,s=c);a=s,n[l][a].type&&o.push({index:l-1,type:n[l][a].type})}for(l=o.length-1;l>=0;l--)a=o[l].index,"add"===o[l].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}var h=i-(r=t.length);if(r<i)for(l=0;l<h;l++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t};function Hr(t,e,n){for(var r,i=[].concat(t),o=1/(n+1),a=Gr(e)[0],s=1;s<=n;s++)o*=s,0===(r=Math.floor(t.length*o))?i.unshift([a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]):i.splice(r,0,[a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]);return i}function Gr(t){var e=[];switch(t[0]){case"M":case"L":case"T":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}var Yr=function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=Gr(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=Hr(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=Hr(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=Hr(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t},Vr=Object.freeze(Object.defineProperty({__proto__:null,catmullRomToBezier:yr,fillPath:function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<r-n;a++)t.push(t[0]);return t}for(a=0;a<r;a++){var s=Math.floor(i*a);o[s]=(o[s]||0)+1}var l=o.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(Dr(t[i],t[i+1],r))}),[]);return l.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||l.push("Z"),l},fillPathByDiff:zr,formatPath:Yr,intersection:function(t,e){return function(t,e,n){var r,i,o,a,s,l,u,c,h,f;t=Mr(t),e=Mr(e);for(var d=n?0:[],p=0,g=t.length;p<g;p++){var v=t[p];if("M"===v[0])r=s=v[1],i=l=v[2];else{"C"===v[0]?(h=[r,i].concat(v.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,s,l,s,l],r=s,i=l);for(var y=0,m=e.length;y<m;y++){var _=e[y];if("M"===_[0])o=u=_[1],a=c=_[2];else{"C"===_[0]?(f=[o,a].concat(_.slice(1)),o=f[6],a=f[7]):(f=[o,a,o,a,u,c,u,c],o=u,a=c);var x=Lr(h,f,n);if(n)d+=x;else{for(var b=0,w=x.length;b<w;b++)x[b].segment1=p,x[b].segment2=y,x[b].bez1=h,x[b].bez2=f;d=d.concat(x)}}}}}return d}(t,e)},parsePathArray:jr,parsePathString:vr,pathToAbsolute:_r,pathToCurve:Mr,rectPath:Ar},Symbol.toStringTag,{value:"Module"})),Xr=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();function qr(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}var Wr="undefined"!=typeof window&&void 0!==window.document;function Ur(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),r=!1;n;){if(n===t){r=!0;break}n=n.getParent()}return r}function Zr(t){return t.cfg.visible&&t.cfg.capture}var Kr=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=gn(r,e),n}return ce(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(hr),Qr=globalThis&&globalThis.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},$r=function(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"},Jr=function(t){this.version=t,this.type="node",this.name="node",this.os=process.platform},ti=function(t,e,n,r){this.name=t,this.version=e,this.os=n,this.bot=r,this.type="bot-device"},ei=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},ni=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},ri=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,ii=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],oi=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function ai(t){return t?si(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new ni:"undefined"!=typeof navigator?si(navigator.userAgent):"undefined"!=typeof process&&process.version?new Jr(process.version.slice(1)):null}function si(t){var e=function(t){return""!==t&&ii.reduce((function(e,n){var r=n[0],i=n[1];if(e)return e;var o=i.exec(t);return!!o&&[r,o]}),!1)}(t);if(!e)return null;var n=e[0],r=e[1];if("searchbot"===n)return new ei;var i=r[1]&&r[1].split(".").join("_").split("_").slice(0,3);i?i.length<3&&(i=Qr(Qr([],i,!0),function(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}(3-i.length),!0)):i=[];var o=i.join("."),a=function(t){for(var e=0,n=oi.length;e<n;e++){var r=oi[e],i=r[0];if(r[1].exec(t))return i}return null}(t),s=ri.exec(t);return s&&s[1]?new ti(n,o,a,s[1]):new $r(n,o,a)}var li,ui="undefined"!=typeof Float32Array?Float32Array:Array;function ci(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=n[0],d=n[1],p=n[2],g=n[3],v=n[4],y=n[5],m=n[6],_=n[7],x=n[8];return t[0]=f*r+d*a+p*u,t[1]=f*i+d*s+p*c,t[2]=f*o+d*l+p*h,t[3]=g*r+v*a+y*u,t[4]=g*i+v*s+y*c,t[5]=g*o+v*l+y*h,t[6]=m*r+_*a+x*u,t[7]=m*i+_*s+x*c,t[8]=m*o+_*l+x*h,t}function hi(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function fi(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function di(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function pi(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function gi(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function vi(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function yi(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.hypot(n,r)}function mi(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function _i(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function xi(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],a=Math.sqrt(n*n+r*r)*Math.sqrt(i*i+o*o),s=a&&(n*i+r*o)/a;return Math.acos(Math.min(Math.max(s,-1),1))}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)}),li=new ui(3),ui!=Float32Array&&(li[0]=0,li[1]=0,li[2]=0);var bi=di;function wi(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return function(t,e){t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1}(r,n),ci(t,r,e)}function Mi(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return function(t,e){var n=Math.sin(e),r=Math.cos(e);t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1}(r,n),ci(t,r,e)}function Si(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return function(t,e){t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1}(r,n),ci(t,r,e)}function ji(t,e,n){return ci(t,n,e)}function Ci(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],r=0,i=e.length;r<i;r++){var o=e[r];switch(o[0]){case"t":wi(n,n,[o[1],o[2]]);break;case"s":Si(n,n,[o[1],o[2]]);break;case"r":Mi(n,n,o[1]);break;case"m":ji(n,n,o[1])}}return n}function Ei(t,e,n){var r=xi(t,e),i=function(t,e){return t[0]*e[1]-e[0]*t[1]}(t,e)>=0;return n?i?2*Math.PI-r:r:i?r:2*Math.PI-r}function Pi(t,e){var n=[],r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],c=t[7],h=t[8],f=e[0],d=e[1],p=e[2],g=e[3],v=e[4],y=e[5],m=e[6],_=e[7],x=e[8];return n[0]=f*r+d*a+p*u,n[1]=f*i+d*s+p*c,n[2]=f*o+d*l+p*h,n[3]=g*r+v*a+y*u,n[4]=g*i+v*s+y*c,n[5]=g*o+v*l+y*h,n[6]=m*r+_*a+x*u,n[7]=m*i+_*s+x*c,n[8]=m*o+_*l+x*h,n}function Ti(t,e){var n=[],r=e[0],i=e[1];return n[0]=t[0]*r+t[3]*i+t[6],n[1]=t[1]*r+t[4]*i+t[7],n}function ki(t){var e=[],n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],u=t[7],c=t[8],h=c*a-s*u,f=-c*o+s*l,d=u*o-a*l,p=n*h+r*f+i*d;return p?(p=1/p,e[0]=h*p,e[1]=(-c*r+i*u)*p,e[2]=(s*r-i*a)*p,e[3]=f*p,e[4]=(c*n-i*l)*p,e[5]=(-s*n+i*o)*p,e[6]=d*p,e[7]=(-u*n+r*l)*p,e[8]=(a*n-r*o)*p,e):null}!function(){var t=function(){var t=new ui(2);return ui!=Float32Array&&(t[0]=0,t[1]=0),t}()}();var Ai=Ci,Oi="matrix",Ii=["zIndex","capture","visible","type"],Bi=["repeat"];function Li(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function Fi(t,e){var n={},r=e.attr();return Pe(t,(function(t,e){-1!==Bi.indexOf(e)||jn(r[e],t)||(n[e]=t)})),n}function Di(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,i=e.duration,o=Object.prototype.hasOwnProperty;return Pe(t,(function(t){n+r<t.startTime+t.delay+t.duration&&i>t.delay&&Pe(e.toAttrs,(function(e,n){o.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var Ri=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return gn(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return ce(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0],i=e[1];if(!r)return this.attrs;if(Ee(r)){for(var o in r)this.setAttr(o,r[o]);return this.afterAttrsChange(r),this}return 2===e.length?(this.setAttr(r,i),this.afterAttrsChange(((t={})[r]=i,t)),this):this.attrs[r]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren();this.get("el");var n=e.indexOf(this);e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren();this.get("el");var n=e.indexOf(this);e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?(qr(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr(Oi,this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr(Oi)},e.prototype.setMatrix=function(t){this.attr(Oi,t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;t=n&&e?Pi(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?Pi(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?Ti(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=ki(e);if(n)return Ti(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var r=this.getShapeBase()[sn(t.type)];r&&(n=new r({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};Pe(e,(function(t,r){Ce(e[r])?n[r]=function(t){for(var e=[],n=0;n<t.length;n++)Ce(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}(e[r]):n[r]=e[r]}));var r=new(0,this.constructor)({attrs:n});return Pe(Ii,(function(e){r.set(e,t.get(e))})),r},e.prototype.destroy=function(){this.destroyed||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.get("timeline")||this.get("canvas")){this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var r=this.get("animations")||[];n.timer||n.initTimer();var i,o,a,s,l,u=t[0],c=t[1],h=t[2],f=void 0===h?"easeLinear":h,d=t[3],p=void 0===d?Ln:d,g=t[4],v=void 0===g?0:g;Se(u)?(i=u,u={}):Ee(u)&&u.onFrame&&(i=u.onFrame,o=u.repeat),Ee(c)?(c=(l=c).duration,f=l.easing||"easeLinear",v=l.delay||0,o=l.repeat||o||!1,p=l.callback||Ln,a=l.pauseCallback||Ln,s=l.resumeCallback||Ln):(Ke(p)&&(v=p,p=null),Se(f)?(p=f,f="easeLinear"):f=f||"easeLinear");var y=Fi(u,this),m={fromAttrs:Li(y,this),toAttrs:y,duration:c,easing:f,repeat:o,callback:p,pauseCallback:a,resumeCallback:s,delay:v,startTime:n.getTime(),id:Bn(),onFrame:i,pathFormatted:!1};r.length>0?r=Di(r,m):n.addAnimator(this),r.push(m),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0),Pe(this.get("animations"),(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return Pe(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return Pe(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,i=e.propagationPath;this.getEvents(),"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var o=function(t){var o=i[t],s=o.get("name");if(s){if((o.isGroup()||o.isCanvas&&o.isCanvas())&&n&&Ur(o,n))return"break";Ce(s)?Pe(s,(function(t){r.emitDelegateEvent(o,t,e)})):a.emitDelegateEvent(o,s,e)}},a=this,s=0;s<i.length;s++){if("break"===o(s))break}},e.prototype.emitDelegateEvent=function(t,e,n){var r=this.getEvents(),i=e+":"+n.type;(r[i]||r["*"])&&(n.name=i,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(i,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),r=Ai(n,[["t",t,e]]);return this.setMatrix(r),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,r=this.attr("y")||0;return this.translate(t-n,e-r),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),r=Ai(n,[["s",t,e||t]]);return this.setMatrix(r),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=Ai(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,r=e.y,i=this.getMatrix(),o=Ai(i,[["t",-n,-r],["r",t],["t",n,r]]);return this.setMatrix(o),this},e.prototype.rotateAtPoint=function(t,e,n){var r=this.getMatrix(),i=Ai(r,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(i),this},e}(Kr),Ni={},zi="_INDEX";function Hi(t,e){if(t.set("canvas",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){Hi(t,e)}))}}function Gi(t,e){if(t.set("timeline",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){Gi(t,e)}))}}var Yi,Vi,Xi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],o=[],a=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return a.length>0?(Pe(a,(function(t){var e=t.getBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=Le(i),e=Be(i),n=Le(o),r=Be(o)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],o=[],a=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return a.length>0?(Pe(a,(function(t){var e=t.getCanvasBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=Le(i),e=Be(i),n=Le(o),r=Be(o)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){Pe(this.getChildren(),(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1];Ee(n)?r=n:r.type=n;var i=Ni[r.type];i||(i=sn(r.type),Ni[r.type]=i);var o=this.getShapeBase(),a=new o[i](r);return this.add(a),a},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r=t[0],i=t[1];if(Se(r))n=new r(i||{parent:this});else{var o=r||{},a=this.getGroupBase();n=new a(o)}return this.add(n),n},e.prototype.getCanvas=function(){return this.isCanvas()?this:this.get("canvas")},e.prototype.getShape=function(t,e,n){if(!Zr(this))return null;var r,i=this.getChildren();if(this.isCanvas())r=this._findShape(i,t,e,n);else{var o=[t,e,1];o=this.invertFromMatrix(o),this.isClipped(o[0],o[1])||(r=this._findShape(i,o[0],o[1],n))}return r},e.prototype._findShape=function(t,e,n,r){for(var i=null,o=t.length-1;o>=0;o--){var a=t[o];if(Zr(a)&&(a.isGroup()?i=a.getShape(e,n,r):a.isHit(e,n)&&(i=a)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),qr(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&Hi(t,e),r&&Gi(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();Pe(e,(function(t,e){return t[zi]=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e[zi]-n[zi]:r})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[];return Pe(this.getChildren(),(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null;return Pe(this.getChildren(),(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(Ri),qi=0,Wi=0,Ui=0,Zi=0,Ki=0,Qi=0,$i="object"===("undefined"==typeof performance?"undefined":t(performance))&&performance.now?performance:Date,Ji="object"===("undefined"==typeof window?"undefined":t(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function to(){return Ki||(Ji(eo),Ki=$i.now()+Qi)}function eo(){Ki=0}function no(){this._call=this._time=this._next=null}function ro(t,e,n){var r=new no;return r.restart(t,e,n),r}function io(){Ki=(Zi=$i.now())+Qi,qi=Wi=0;try{!function(){to(),++qi;for(var t,e=Yi;e;)(t=Ki-e._time)>=0&&e._call.call(null,t),e=e._next;--qi}()}finally{qi=0,function(){var t,e,n=Yi,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Yi=e);Vi=t,ao(r)}(),Ki=0}}function oo(){var t=$i.now(),e=t-Zi;e>1e3&&(Qi-=e,Zi=t)}function ao(t){qi||(Wi&&(Wi=clearTimeout(Wi)),t-Ki>24?(t<1/0&&(Wi=setTimeout(io,t-$i.now()-Qi)),Ui&&(Ui=clearInterval(Ui))):(Ui||(Zi=$i.now(),Ui=setInterval(oo,1e3)),qi=1,Ji(io)))}function so(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function lo(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function uo(){}no.prototype=ro.prototype={constructor:no,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?to():+n)+(null==e?0:+e),this._next||Vi===this||(Vi?Vi._next=this:Yi=this,Vi=this),this._call=t,this._time=n,ao()},stop:function(){this._call&&(this._call=null,this._time=1/0,ao())}};var co=.7,ho=1/co,fo="\\s*([+-]?\\d+)\\s*",po="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",go="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",vo=/^#([0-9a-f]{3,8})$/,yo=new RegExp("^rgb\\(".concat(fo,",").concat(fo,",").concat(fo,"\\)$")),mo=new RegExp("^rgb\\(".concat(go,",").concat(go,",").concat(go,"\\)$")),_o=new RegExp("^rgba\\(".concat(fo,",").concat(fo,",").concat(fo,",").concat(po,"\\)$")),xo=new RegExp("^rgba\\(".concat(go,",").concat(go,",").concat(go,",").concat(po,"\\)$")),bo=new RegExp("^hsl\\(".concat(po,",").concat(go,",").concat(go,"\\)$")),wo=new RegExp("^hsla\\(".concat(po,",").concat(go,",").concat(go,",").concat(po,"\\)$")),Mo={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};function So(){return this.rgb().formatHex()}function jo(){return this.rgb().formatRgb()}function Co(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=vo.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Eo(e):3===n?new Ao(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Po(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Po(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=yo.exec(t))?new Ao(e[1],e[2],e[3],1):(e=mo.exec(t))?new Ao(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=_o.exec(t))?Po(e[1],e[2],e[3],e[4]):(e=xo.exec(t))?Po(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=bo.exec(t))?Do(e[1],e[2]/100,e[3]/100,1):(e=wo.exec(t))?Do(e[1],e[2]/100,e[3]/100,e[4]):Mo.hasOwnProperty(t)?Eo(Mo[t]):"transparent"===t?new Ao(NaN,NaN,NaN,0):null}function Eo(t){return new Ao(t>>16&255,t>>8&255,255&t,1)}function Po(t,e,n,r){return r<=0&&(t=e=n=NaN),new Ao(t,e,n,r)}function To(t){return t instanceof uo||(t=Co(t)),t?new Ao((t=t.rgb()).r,t.g,t.b,t.opacity):new Ao}function ko(t,e,n,r){return 1===arguments.length?To(t):new Ao(t,e,n,null==r?1:r)}function Ao(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Oo(){return"#".concat(Fo(this.r)).concat(Fo(this.g)).concat(Fo(this.b))}function Io(){var t=Bo(this.opacity);return"".concat(1===t?"rgb(":"rgba(").concat(Lo(this.r),", ").concat(Lo(this.g),", ").concat(Lo(this.b)).concat(1===t?")":", ".concat(t,")"))}function Bo(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Lo(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Fo(t){return((t=Lo(t))<16?"0":"")+t.toString(16)}function Do(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new No(t,e,n,r)}function Ro(t){if(t instanceof No)return new No(t.h,t.s,t.l,t.opacity);if(t instanceof uo||(t=Co(t)),!t)return new No;if(t instanceof No)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new No(a,s,l,t.opacity)}function No(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function zo(t){return(t=(t||0)%360)<0?t+360:t}function Ho(t){return Math.max(0,Math.min(1,t||0))}function Go(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}so(uo,Co,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:So,formatHex:So,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ro(this).formatHsl()},formatRgb:jo,toString:jo}),so(Ao,ko,lo(uo,{brighter:function(t){return t=null==t?ho:Math.pow(ho,t),new Ao(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?co:Math.pow(co,t),new Ao(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},clamp:function(){return new Ao(Lo(this.r),Lo(this.g),Lo(this.b),Bo(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Oo,formatHex:Oo,formatHex8:function(){return"#".concat(Fo(this.r)).concat(Fo(this.g)).concat(Fo(this.b)).concat(Fo(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:Io,toString:Io})),so(No,(function(t,e,n,r){return 1===arguments.length?Ro(t):new No(t,e,n,null==r?1:r)}),lo(uo,{brighter:function(t){return t=null==t?ho:Math.pow(ho,t),new No(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?co:Math.pow(co,t),new No(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Ao(Go(t>=240?t-240:t+120,i,r),Go(t,i,r),Go(t<120?t+240:t-120,i,r),this.opacity)},clamp:function(){return new No(zo(this.h),Ho(this.s),Ho(this.l),Bo(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=Bo(this.opacity);return"".concat(1===t?"hsl(":"hsla(").concat(zo(this.h),", ").concat(100*Ho(this.s),"%, ").concat(100*Ho(this.l),"%").concat(1===t?")":", ".concat(t,")"))}}));var Yo=function(t){return function(){return t}};function Vo(t){return 1==(t=+t)?Xo:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Yo(isNaN(e)?n:e)}}function Xo(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Yo(isNaN(t)?e:t)}var qo=function t(e){var n=Vo(e);function r(t,e){var r=n((t=ko(t)).r,(e=ko(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Xo(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Wo(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function Uo(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Zo(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=na(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function Ko(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Qo(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function $o(e,n){var r,i={},o={};for(r in null!==e&&"object"===t(e)||(e={}),null!==n&&"object"===t(n)||(n={}),n)r in e?i[r]=na(e[r],n[r]):o[r]=n[r];return function(t){for(r in i)o[r]=i[r](t);return o}}var Jo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ta=new RegExp(Jo.source,"g");function ea(t,e){var n,r,i,o=Jo.lastIndex=ta.lastIndex=0,a=-1,s=[],l=[];for(t+="",e+="";(n=Jo.exec(t))&&(r=ta.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:Qo(n,r)})),o=ta.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})}function na(e,n){var r,i=t(n);return null==n||"boolean"===i?Yo(n):("number"===i?Qo:"string"===i?(r=Co(n))?(n=r,qo):ea:n instanceof Co?qo:n instanceof Date?Ko:Uo(n)?Wo:Array.isArray(n)?Zo:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?$o:Qo)(e,n)}function ra(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function ia(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var oa=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),aa=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),sa=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),la=Math.PI,ua=la/2;function ca(t){return(1-Math.cos(la*t))/2}function ha(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function fa(t){return((t*=2)<=1?ha(1-t):2-ha(t-1))/2}function da(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var pa=4/11,ga=7.5625;function va(t){return(t=+t)<pa?ga*t*t:t<.7272727272727273?ga*(t-=.5454545454545454)*t+.75:t<.9090909090909091?ga*(t-=.8181818181818182)*t+.9375:ga*(t-=.9545454545454546)*t+.984375}var ya=1.70158,ma=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(ya),_a=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(ya),xa=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(ya),ba=2*Math.PI,wa=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=ba);function i(t){return e*ha(- --t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*ba)},i.period=function(n){return t(e,n)},i}(1,.3),Ma=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=ba);function i(t){return 1-e*ha(t=+t)*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*ba)},i.period=function(n){return t(e,n)},i}(1,.3),Sa=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=ba);function i(t){return((t=2*t-1)<0?e*ha(-t)*Math.sin((r-t)/n):2-e*ha(t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*ba)},i.period=function(n){return t(e,n)},i}(1,.3),ja=Object.freeze(Object.defineProperty({__proto__:null,easeLinear:function(t){return+t},easeQuad:ra,easeQuadIn:function(t){return t*t},easeQuadOut:function(t){return t*(2-t)},easeQuadInOut:ra,easeCubic:ia,easeCubicIn:function(t){return t*t*t},easeCubicOut:function(t){return--t*t*t+1},easeCubicInOut:ia,easePoly:sa,easePolyIn:oa,easePolyOut:aa,easePolyInOut:sa,easeSin:ca,easeSinIn:function(t){return 1==+t?1:1-Math.cos(t*ua)},easeSinOut:function(t){return Math.sin(t*ua)},easeSinInOut:ca,easeExp:fa,easeExpIn:function(t){return ha(1-+t)},easeExpOut:function(t){return 1-ha(t)},easeExpInOut:fa,easeCircle:da,easeCircleIn:function(t){return 1-Math.sqrt(1-t*t)},easeCircleOut:function(t){return Math.sqrt(1- --t*t)},easeCircleInOut:da,easeBounce:va,easeBounceIn:function(t){return 1-va(1-t)},easeBounceOut:va,easeBounceInOut:function(t){return((t*=2)<=1?1-va(1-t):va(t-1)+1)/2},easeBack:xa,easeBackIn:ma,easeBackOut:_a,easeBackInOut:xa,easeElastic:Ma,easeElasticIn:wa,easeElasticOut:Ma,easeElasticInOut:Sa},Symbol.toStringTag,{value:"Module"})),Ca={};function Ea(t,e){Ca[t.toLowerCase()]=e}var Pa=[1,0,0,0,1,0,0,0,1];function Ta(t,e,n){var r,i=e.startTime;if(n<i+e.delay||e._paused)return!1;var o,a=e.duration,s=e.easing,l=Ca[(o=s).toLowerCase()]||ja[o];if(n=n-i-e.delay,e.repeat)r=l(r=n%a/a);else{if(!((r=n/a)<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;r=l(r)}if(e.onFrame){var u=e.onFrame(r);t.attr(u)}else!function(t,e,n){var r={},i=e.fromAttrs,o=e.toAttrs;if(!t.destroyed){var a,s,l,u;for(var c in o)if(!jn(i[c],o[c]))if("path"===c){var h=o[c],f=i[c];h.length>f.length?(h=vr(o[c]),f=vr(i[c]),f=zr(f,h),f=Yr(f,h),e.fromAttrs.path=f,e.toAttrs.path=h):e.pathFormatted||(h=vr(o[c]),f=vr(i[c]),f=Yr(f,h),e.fromAttrs.path=f,e.toAttrs.path=h,e.pathFormatted=!0),r[c]=[];for(var d=0;d<h.length;d++){for(var p=h[d],g=f[d],v=[],y=0;y<p.length;y++)Ke(p[y])&&g&&Ke(g[y])?(a=na(g[y],p[y]),v.push(a(n))):v.push(p[y]);r[c].push(v)}}else if("matrix"===c){var m=(l=i[c]||Pa,(Uo(u=o[c]||Pa)?Wo:Zo)(l,u))(n);r[c]=m}else["fill","stroke","fillStyle","strokeStyle"].includes(c)&&(s=o[c],/^[r,R,L,l]{1}[\s]*\(/.test(s))?r[c]=o[c]:Se(o[c])||(a=na(i[c],o[c]),r[c]=a(n));t.attr(r)}}(t,e,r);return!1}var ka=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,r=this;this.timer=ro((function(i){if(r.current=i,r.animators.length>0){for(var o=r.animators.length-1;o>=0;o--)if((t=r.animators[o]).destroyed)r.removeAnimator(o);else{if(!t.isAnimatePaused())for(var a=(e=t.get("animations")).length-1;a>=0;a--)n=e[a],Ta(t,n,i)&&(e.splice(a,1),!1,n.callback&&n.callback());0===e.length&&r.removeAnimator(o)}r.canvas.get("autoDraw")||r.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),Aa=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Oa(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function Ia(t,e,n){if(n.bubbles){var r=void 0,i=!1;if("mouseenter"===e?(r=n.fromShape,i=!0):"mouseleave"===e&&(i=!0,r=n.toShape),t.isCanvas()&&i)return;if(r&&Ur(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var Ba=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");Pe(Aa,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");Pe(Aa,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,r,i,o){var a=new Xr(t,e);return a.fromShape=i,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(r),a},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],o=!1;if(i)i.call(this,n,r,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(o||(this.currentShape=r),r&&!r.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=r.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,l=n.timeStamp-this.mousedownTimeStamp,u=a.clientX-t.clientX,c=a.clientY-t.clientY;l>120||u*u+c*c>40?s&&s.get("draggable")?((o=this.mousedownShape).set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,o){var a=this._getEventObj(t,e,n,r,i,o);if(r){a.shape=r,Oa(r,t,a);for(var s=r.getParent();s;)s.emitDelegation(t,a),a.propagationStopped||Ia(s,t,a),a.propagationPath.push(s),s=s.getParent()}else{Oa(this.canvas,t,a)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),La=ai(),Fa=La&&"firefox"===La.name,Da=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");Ne(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new Ba({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new ka(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");Wr&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");Wr&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(Fa&&!je(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!je(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(Xi),Ra=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),r=0;r<n.length;r++){var i=n[r];e.add(i.clone())}return e},e}(Xi),Na=function(t){function e(e){return t.call(this,e)||this}return ce(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,o=t.maxY;if(e){var a=Ti(e,[t.minX,t.minY]),s=Ti(e,[t.maxX,t.minY]),l=Ti(e,[t.minX,t.maxY]),u=Ti(e,[t.maxX,t.maxY]);n=Math.min(a[0],s[0],l[0],u[0]),i=Math.max(a[0],s[0],l[0],u[0]),r=Math.min(a[1],s[1],l[1],u[1]),o=Math.max(a[1],s[1],l[1],u[1])}var c=this.attrs;if(c.shadowColor){var h=c.shadowBlur,f=void 0===h?0:h,d=c.shadowOffsetX,p=void 0===d?0:d,g=c.shadowOffsetY,v=void 0===g?0:g,y=n-f+p,m=i+f+p,_=r-f+v,x=o+f+v;n=Math.min(n,y),i=Math.max(i,m),r=Math.min(r,_),o=Math.max(o,x)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:o,width:i-n,height:o-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1],o=(i=this.invertFromMatrix(i))[0],a=i[1],s=this._isInBBox(o,a);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(r&&r.isHit(o,a))return!0}return!1},e}(Ri),za=new Map;function Ha(t,e){za.set(t,e)}function Ga(t){return za.get(t)}function Ya(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}}function Va(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}}function Xa(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function qa(t,e){return Math.abs(t-e)<.001}function Wa(t,e){var n=Le(t),r=Le(e);return{x:n,y:r,width:Be(t)-n,height:Be(e)-r}}function Ua(t){return(t+2*Math.PI)%(2*Math.PI)}var Za={box:function(t,e,n,r){return Wa([t,n],[e,r])},length:function(t,e,n,r){return Xa(t,e,n,r)},pointAt:function(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r}},pointDistance:function(t,e,n,r,i,o){var a=(n-t)*(i-t)+(r-e)*(o-e);return a<0?Xa(t,e,i,o):a>(n-t)*(n-t)+(r-e)*(r-e)?Xa(n,r,i,o):this.pointToLine(t,e,n,r,i,o)},pointToLine:function(t,e,n,r,i,o){var a=[n-t,r-e];if(function(t,e){return t[0]===e[0]&&t[1]===e[1]}(a,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var s=[-a[1],a[0]];_i(s,s);var l=[i-t,o-e];return Math.abs(function(t,e){return t[0]*e[0]+t[1]*e[1]}(l,s))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}};function Ka(t,e,n,r,i,o){var a,s=1/0,l=[n,r],u=20;o&&o>200&&(u=o/10);for(var c=1/u,h=c/10,f=0;f<=u;f++){var d=f*c,p=[i.apply(null,t.concat([d])),i.apply(null,e.concat([d]))];(m=Xa(l[0],l[1],p[0],p[1]))<s&&(a=d,s=m)}if(0===a)return{x:t[0],y:e[0]};if(1===a){var g=t.length;return{x:t[g-1],y:e[g-1]}}s=1/0;for(f=0;f<32&&!(h<1e-4);f++){var v=a-h,y=a+h,m=(p=[i.apply(null,t.concat([v])),i.apply(null,e.concat([v]))],Xa(l[0],l[1],p[0],p[1]));if(v>=0&&m<s)a=v,s=m;else{var _=[i.apply(null,t.concat([y])),i.apply(null,e.concat([y]))],x=Xa(l[0],l[1],_[0],_[1]);y<=1&&x<s?(a=y,s=x):h*=.5}}return{x:i.apply(null,t.concat([a])),y:i.apply(null,e.concat([a]))}}function Qa(t,e,n,r){var i=1-r;return i*i*t+2*r*i*e+r*r*n}function $a(t,e,n){var r=t+n-2*e;if(qa(r,0))return[.5];var i=(t-e)/r;return i<=1&&i>=0?[i]:[]}function Ja(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function ts(t,e,n,r,i,o,a){var s=Qa(t,n,i,a),l=Qa(e,r,o,a),u=Za.pointAt(t,e,n,r,a),c=Za.pointAt(n,r,i,o,a);return[[t,e,u.x,u.y,s,l],[s,l,c.x,c.y,i,o]]}function es(t,e,n,r,i,o,a){if(0===a)return(Xa(t,e,n,r)+Xa(n,r,i,o)+Xa(t,e,i,o))/2;var s=ts(t,e,n,r,i,o,.5),l=s[0],u=s[1];return l.push(a-1),u.push(a-1),es.apply(null,l)+es.apply(null,u)}var ns={box:function(t,e,n,r,i,o){var a=$a(t,n,i)[0],s=$a(e,r,o)[0],l=[t,i],u=[e,o];return void 0!==a&&l.push(Qa(t,n,i,a)),void 0!==s&&u.push(Qa(e,r,o,s)),Wa(l,u)},length:function(t,e,n,r,i,o){return es(t,e,n,r,i,o,3)},nearestPoint:function(t,e,n,r,i,o,a,s){return Ka([t,n,i],[e,r,o],a,s,Qa)},pointDistance:function(t,e,n,r,i,o,a,s){var l=this.nearestPoint(t,e,n,r,i,o,a,s);return Xa(l.x,l.y,a,s)},interpolationAt:Qa,pointAt:function(t,e,n,r,i,o,a){return{x:Qa(t,n,i,a),y:Qa(e,r,o,a)}},divide:function(t,e,n,r,i,o,a){return ts(t,e,n,r,i,o,a)},tangentAngle:function(t,e,n,r,i,o,a){var s=Ja(t,n,i,a),l=Ja(e,r,o,a);return Ua(Math.atan2(l,s))}};function rs(t,e,n,r,i){var o=1-i;return o*o*o*t+3*e*i*o*o+3*n*i*i*o+r*i*i*i}function is(t,e,n,r,i){var o=1-i;return 3*(o*o*(e-t)+2*o*i*(n-e)+i*i*(r-n))}function os(t,e,n,r){var i,o,a,s=-3*t+9*e-9*n+3*r,l=6*t-12*e+6*n,u=3*e-3*t,c=[];if(qa(s,0))qa(l,0)||(i=-u/l)>=0&&i<=1&&c.push(i);else{var h=l*l-4*s*u;qa(h,0)?c.push(-l/(2*s)):h>0&&(o=(-l-(a=Math.sqrt(h)))/(2*s),(i=(-l+a)/(2*s))>=0&&i<=1&&c.push(i),o>=0&&o<=1&&c.push(o))}return c}function as(t,e,n,r,i,o,a,s,l){var u=rs(t,n,i,a,l),c=rs(e,r,o,s,l),h=Za.pointAt(t,e,n,r,l),f=Za.pointAt(n,r,i,o,l),d=Za.pointAt(i,o,a,s,l),p=Za.pointAt(h.x,h.y,f.x,f.y,l),g=Za.pointAt(f.x,f.y,d.x,d.y,l);return[[t,e,h.x,h.y,p.x,p.y,u,c],[u,c,g.x,g.y,d.x,d.y,a,s]]}function ss(t,e,n,r,i,o,a,s,l){if(0===l)return function(t,e){for(var n=0,r=t.length,i=0;i<r;i++)n+=Xa(t[i],e[i],t[(i+1)%r],e[(i+1)%r]);return n/2}([t,n,i,a],[e,r,o,s]);var u=as(t,e,n,r,i,o,a,s,.5),c=u[0],h=u[1];return c.push(l-1),h.push(l-1),ss.apply(null,c)+ss.apply(null,h)}var ls={extrema:os,box:function(t,e,n,r,i,o,a,s){for(var l=[t,a],u=[e,s],c=os(t,n,i,a),h=os(e,r,o,s),f=0;f<c.length;f++)l.push(rs(t,n,i,a,c[f]));for(f=0;f<h.length;f++)u.push(rs(e,r,o,s,h[f]));return Wa(l,u)},length:function(t,e,n,r,i,o,a,s){return ss(t,e,n,r,i,o,a,s,3)},nearestPoint:function(t,e,n,r,i,o,a,s,l,u,c){return Ka([t,n,i,a],[e,r,o,s],l,u,rs,c)},pointDistance:function(t,e,n,r,i,o,a,s,l,u,c){var h=this.nearestPoint(t,e,n,r,i,o,a,s,l,u,c);return Xa(h.x,h.y,l,u)},interpolationAt:rs,pointAt:function(t,e,n,r,i,o,a,s,l){return{x:rs(t,n,i,a,l),y:rs(e,r,o,s,l)}},divide:function(t,e,n,r,i,o,a,s,l){return as(t,e,n,r,i,o,a,s,l)},tangentAngle:function(t,e,n,r,i,o,a,s,l){var u=is(t,n,i,a,l),c=is(e,r,o,s,l);return Ua(Math.atan2(c,u))}};function us(t,e,n,r,i,o){return n*Math.cos(i)*Math.cos(o)-r*Math.sin(i)*Math.sin(o)+t}function cs(t,e,n,r,i,o){return n*Math.sin(i)*Math.cos(o)+r*Math.cos(i)*Math.sin(o)+e}var hs=function(t,e,n,r,i,o,a){for(var s=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,r,i),l=1/0,u=-1/0,c=[o,a],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var f=s+h;o<a?o<f&&f<a&&c.push(f):a<f&&f<o&&c.push(f)}for(h=0;h<c.length;h++){var d=us(t,0,n,r,i,c[h]);d<l&&(l=d),d>u&&(u=d)}var p=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,r,i),g=1/0,v=-1/0,y=[o,a];for(h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var m=p+h;o<a?o<m&&m<a&&y.push(m):a<m&&m<o&&y.push(m)}for(h=0;h<y.length;h++){var _=cs(0,e,n,r,i,y[h]);_<g&&(g=_),_>v&&(v=_)}return{x:l,y:g,width:u-l,height:v-g}};var fs=function(t){return function(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var r=t[n],i=t[n+1];e+=Xa(r[0],r[1],i[0],i[1])}return e}(t)};function ds(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function ps(t,e){var n=t.get("startArrowShape"),r=t.get("endArrowShape");return n&&(e=ds(e,n.getCanvasBBox())),r&&(e=ds(e,r.getCanvasBBox())),e}var gs=null;function vs(){if(!gs){var t=document.createElement("canvas");t.width=1,t.height=1,gs=t.getContext("2d")}return gs}function ys(t,e,n){var r=1;if(Ne(t)&&(r=t.split("\n").length),r>1){var i=function(t,e){return e?e-t:.14*t}(e,n);return e*r+i*(r-1)}return e}function ms(t){var e=t.fontSize,n=t.fontFamily,r=t.fontWeight;return[t.fontStyle,t.fontVariant,r,e+"px",n].join(" ").trim()}var _s=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,xs=/[^\s\,]+/gi;function bs(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);var s,l,u,c=function(t,e,n,r){var i,o,a,s,l,u,c,h=[],f=!!r;if(f){a=r[0],s=r[1];for(var d=0,p=t.length;d<p;d+=1)a=pi([0,0],a,v=t[d]),s=gi([0,0],s,v)}d=0;for(var g=t.length;d<g;d+=1){var v=t[d];if(0!==d||n)if(d!==g-1||n){i=t[[d?d-1:g-1,d-1][n?0:1]],o=t[n?(d+1)%g:d+1];var y=[0,0];y=vi(y=bi(y,o,i),y,e);var m=yi(v,i),_=yi(v,o),x=m+_;0!==x&&(m/=x,_/=x);var b=vi([0,0],y,-m),w=vi([0,0],y,_);u=fi([0,0],v,b),l=pi([0,0],l=fi([0,0],v,w),gi([0,0],o,v)),l=gi([0,0],l,pi([0,0],o,v)),u=pi([0,0],u=fi([0,0],v,b=vi([0,0],b=bi([0,0],l,v),-m/_)),gi([0,0],i,v)),u=gi([0,0],u,pi([0,0],i,v)),l=fi([0,0],v,w=vi([0,0],w=bi([0,0],v,u),_/m)),f&&(u=pi([0,0],u=gi([0,0],u,a),s),l=pi([0,0],l=gi([0,0],l,a),s)),h.push(c),h.push(u),c=l}else u=v,h.push(c),h.push(u);else c=v}return n&&h.push(h.shift()),h}(i,.4,r,n),h=i.length,f=[];for(o=0;o<h-1;o+=1)s=c[2*o],l=c[2*o+1],u=i[o+1],f.push(["C",s[0],s[1],l[0],l[1],u[0],u[1]]);return r&&(s=c[h],l=c[h+1],u=i[0],f.push(["C",s[0],s[1],l[0],l[1],u[0],u[1]])),f}var ws="\t\n\v\f\r \u2028\u2029",Ms=new RegExp("([a-z])["+ws+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+ws+"]*,?["+ws+"]*)+)","ig"),Ss=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+ws+"]*,?["+ws+"]*","ig");function js(t){if(!t)return null;if(Ce(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(Ms,(function(t,r,i){var o=[],a=r.toLowerCase();if(i.replace(Ss,(function(t,e){e&&o.push(+e)})),"m"===a&&o.length>2&&(n.push([r].concat(o.splice(0,2))),a="l",r="m"===r?"l":"L"),"o"===a&&1===o.length&&n.push([r,o[0]]),"r"===a)n.push([r].concat(o));else for(;o.length>=e[a]&&(n.push([r].concat(o.splice(0,e[a]))),e[a]););return""})),n}var Cs=/[a-z]/;function Es(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function Ps(t){var e=js(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,r=0;r<e.length;r++){var i=e[r][0];if(Cs.test(i)||["V","H","T","S"].indexOf(i)>=0){n=!0;break}}if(!n)return e;var o=[],a=0,s=0,l=0,u=0,c=0,h=e[0];"M"!==h[0]&&"m"!==h[0]||(l=a=+h[1],u=s=+h[2],c++,o[0]=["M",a,s]);r=c;for(var f=e.length;r<f;r++){var d=e[r],p=o[r-1],g=[],v=(i=d[0]).toUpperCase();if(i!==v)switch(g[0]=v,v){case"A":g[1]=d[1],g[2]=d[2],g[3]=d[3],g[4]=d[4],g[5]=d[5],g[6]=+d[6]+a,g[7]=+d[7]+s;break;case"V":g[1]=+d[1]+s;break;case"H":g[1]=+d[1]+a;break;case"M":l=+d[1]+a,u=+d[2]+s,g[1]=l,g[2]=u;break;default:for(var y=1,m=d.length;y<m;y++)g[y]=+d[y]+(y%2?a:s)}else g=e[r];switch(v){case"Z":a=+l,s=+u;break;case"H":g=["L",a=g[1],s];break;case"V":g=["L",a,s=g[1]];break;case"T":a=g[1],s=g[2];var _=Es([p[1],p[2]],[p[3],p[4]]);g=["Q",_[0],_[1],a,s];break;case"S":a=g[g.length-2],s=g[g.length-1];var x=p.length,b=Es([p[x-4],p[x-3]],[p[x-2],p[x-1]]);g=["C",b[0],b[1],g[1],g[2],a,s];break;case"M":l=g[g.length-2],u=g[g.length-1];break;default:a=g[g.length-2],s=g[g.length-1]}o.push(g)}return o}function Ts(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ks(t,e){return Ts(t)*Ts(e)?(t[0]*e[0]+t[1]*e[1])/(Ts(t)*Ts(e)):1}function As(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(ks(t,e))}function Os(t,e){return t[0]===e[0]&&t[1]===e[1]}function Is(t,e){var n=e[1],r=e[2],i=$e(tn(e[3]),2*Math.PI),o=e[4],a=e[5],s=t[0],l=t[1],u=e[6],c=e[7],h=Math.cos(i)*(s-u)/2+Math.sin(i)*(l-c)/2,f=-1*Math.sin(i)*(s-u)/2+Math.cos(i)*(l-c)/2,d=h*h/(n*n)+f*f/(r*r);d>1&&(n*=Math.sqrt(d),r*=Math.sqrt(d));var p=n*n*(f*f)+r*r*(h*h),g=p?Math.sqrt((n*n*(r*r)-p)/p):1;o===a&&(g*=-1),isNaN(g)&&(g=0);var v=r?g*n*f/r:0,y=n?g*-r*h/n:0,m=(s+u)/2+Math.cos(i)*v-Math.sin(i)*y,_=(l+c)/2+Math.sin(i)*v+Math.cos(i)*y,x=[(h-v)/n,(f-y)/r],b=[(-1*h-v)/n,(-1*f-y)/r],w=As([1,0],x),M=As(x,b);return ks(x,b)<=-1&&(M=Math.PI),ks(x,b)>=1&&(M=0),0===a&&M>0&&(M-=2*Math.PI),1===a&&M<0&&(M+=2*Math.PI),{cx:m,cy:_,rx:Os(t,[u,c])?0:n,ry:Os(t,[u,c])?0:r,startAngle:w,endAngle:w+M,xRotation:i,arcFlag:o,sweepFlag:a}}function Bs(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function Ls(t){t=function(t){var e=t||[];return Ce(e)?e:Ne(e)?(Pe(e=e.match(_s),(function(t,n){if((t=t.match(xs))[0].length>1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}Pe(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}(t);for(var e=[],n=null,r=null,i=null,o=0,a=t.length,s=0;s<a;s++){var l=t[s];r=t[s+1];var u=l[0],c={command:u,prePoint:n,params:l,startTangent:null,endTangent:null};switch(u){case"M":i=[l[1],l[2]],o=s;break;case"A":var h=Is(n,l);c.arcParams=h}if("Z"===u)n=i,r=t[o+1];else{var f=l.length;n=[l[f-2],l[f-1]]}r&&"Z"===r[0]&&(r=t[o],e[o]&&(e[o].prePoint=n)),c.currentPoint=n,e[o]&&Os(n,e[o].currentPoint)&&(e[o].prePoint=c.prePoint);var d=r?[r[r.length-2],r[r.length-1]]:null;c.nextPoint=d;var p=c.prePoint;if(["L","H","V"].includes(u))c.startTangent=[p[0]-n[0],p[1]-n[1]],c.endTangent=[n[0]-p[0],n[1]-p[1]];else if("Q"===u){var g=[l[1],l[2]];c.startTangent=[p[0]-g[0],p[1]-g[1]],c.endTangent=[n[0]-g[0],n[1]-g[1]]}else if("T"===u){g=Bs((m=e[s-1]).currentPoint,p);"Q"===m.command?(c.command="Q",c.startTangent=[p[0]-g[0],p[1]-g[1]],c.endTangent=[n[0]-g[0],n[1]-g[1]]):(c.command="TL",c.startTangent=[p[0]-n[0],p[1]-n[1]],c.endTangent=[n[0]-p[0],n[1]-p[1]])}else if("C"===u){var v=[l[1],l[2]],y=[l[3],l[4]];c.startTangent=[p[0]-v[0],p[1]-v[1]],c.endTangent=[n[0]-y[0],n[1]-y[1]],0===c.startTangent[0]&&0===c.startTangent[1]&&(c.startTangent=[v[0]-y[0],v[1]-y[1]]),0===c.endTangent[0]&&0===c.endTangent[1]&&(c.endTangent=[y[0]-v[0],y[1]-v[1]])}else if("S"===u){var m;v=Bs((m=e[s-1]).currentPoint,p),y=[l[1],l[2]];"C"===m.command?(c.command="C",c.startTangent=[p[0]-v[0],p[1]-v[1]],c.endTangent=[n[0]-y[0],n[1]-y[1]]):(c.command="SQ",c.startTangent=[p[0]-y[0],p[1]-y[1]],c.endTangent=[n[0]-y[0],n[1]-y[1]])}else if("A"===u){var _=.001,x=c.arcParams||{},b=x.cx,w=void 0===b?0:b,M=x.cy,S=void 0===M?0:M,j=x.rx,C=void 0===j?0:j,E=x.ry,P=void 0===E?0:E,T=x.sweepFlag,k=void 0===T?0:T,A=x.startAngle,O=void 0===A?0:A,I=x.endAngle,B=void 0===I?0:I;0===k&&(_*=-1);var L=C*Math.cos(O-_)+w,F=P*Math.sin(O-_)+S;c.startTangent=[L-i[0],F-i[1]];var D=C*Math.cos(O+B+_)+w,R=P*Math.sin(O+B-_)+S;c.endTangent=[p[0]-D,p[1]-R]}e.push(c)}return e}var Fs=function(t,e,n){return t>=e&&t<=n};function Ds(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function Rs(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function Ns(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o=0;o<i;o++){var a=t[o],s=t[(o+1)%i];if(Rs(a,s,[e,n]))return!0;Ds(a[1]-n)>0!=Ds(s[1]-n)>0&&Ds(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}function zs(t){for(var e=[],n=t.length,r=0;r<n-1;r++){var i=t[r],o=t[r+1];e.push({from:{x:i[0],y:i[1]},to:{x:o[0],y:o[1]}})}if(e.length>1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return e}function Hs(t,e){var n=!1;return Pe(t,(function(t){if(function(t,e,n,r){var i=n.x-t.x,o=n.y-t.y,a=e.x-t.x,s=e.y-t.y,l=r.x-n.x,u=r.y-n.y,c=a*u-s*l,h=null;if(c*c>.001*(a*a+s*s)*(l*l+u*u)){var f=(i*u-o*l)/c,d=(i*s-o*a)/c;Fs(f,0,1)&&Fs(d,0,1)&&(h={x:t.x+f*a,y:t.y+f*s})}return h}(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function Gs(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function Ys(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,o=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),a=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),s=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),l=Math.acos((o+a-s)/(2*Math.sqrt(o)*Math.sqrt(a)));if(!l||0===Math.sin(l)||Qe(l,0))return{xExtra:0,yExtra:0};var u=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),c=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));return u=u>Math.PI/2?Math.PI-u:u,c=c>Math.PI/2?Math.PI-c:c,{xExtra:Math.cos(l/2-u)*(e/2*(1/Math.sin(l/2)))-e/2||0,yExtra:Math.cos(c-l/2)*(e/2*(1/Math.sin(l/2)))-e/2||0}}Ha("rect",Ya),Ha("image",Ya),Ha("circle",Va),Ha("marker",Va),Ha("polyline",(function(t){for(var e=t.attr().points,n=[],r=[],i=0;i<e.length;i++){var o=e[i];n.push(o[0]),r.push(o[1])}var a=Wa(n,r),s=a.x,l=a.y,u={minX:s,minY:l,maxX:s+a.width,maxY:l+a.height};return{x:(u=ps(t,u)).minX,y:u.minY,width:u.maxX-u.minX,height:u.maxY-u.minY}})),Ha("polygon",(function(t){for(var e=t.attr().points,n=[],r=[],i=0;i<e.length;i++){var o=e[i];n.push(o[0]),r.push(o[1])}return Wa(n,r)})),Ha("text",(function(t){var e=t.attr(),n=e.x,r=e.y,i=e.text,o=e.fontSize,a=e.lineHeight,s=e.font;s||(s=ms(e));var l,u=function(t,e){var n=vs(),r=0;return je(t)||""===t||(n.save(),n.font=e,Ne(t)&&t.includes("\n")?Pe(t.split("\n"),(function(t){var e=n.measureText(t).width;r<e&&(r=e)})):r=n.measureText(t).width,n.restore()),r}(i,s);if(u){var c=e.textAlign,h=e.textBaseline,f=ys(i,o,a),d={x:n,y:r-f};c&&("end"===c||"right"===c?d.x-=u:"center"===c&&(d.x-=u/2)),h&&("top"===h?d.y+=f:"middle"===h&&(d.y+=f/2)),l={x:d.x,y:d.y,width:u,height:f}}else l={x:n,y:r,width:0,height:0};return l})),Ha("path",(function(t){var e=t.attr(),n=e.path,r=e.stroke?e.lineWidth:0,i=function(t,e){for(var n=[],r=[],i=[],o=0;o<t.length;o++){var a=(g=t[o]).currentPoint,s=g.params,l=g.prePoint,u=void 0;switch(g.command){case"Q":u=ns.box(l[0],l[1],s[1],s[2],s[3],s[4]);break;case"C":u=ls.box(l[0],l[1],s[1],s[2],s[3],s[4],s[5],s[6]);break;case"A":var c=g.arcParams;u=hs(c.cx,c.cy,c.rx,c.ry,c.xRotation,c.startAngle,c.endAngle);break;default:n.push(a[0]),r.push(a[1])}u&&(g.box=u,n.push(u.x,u.x+u.width),r.push(u.y,u.y+u.height)),e&&("L"===g.command||"M"===g.command)&&g.prePoint&&g.nextPoint&&i.push(g)}n=n.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0})),r=r.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0}));var h=Le(n),f=Le(r),d=Be(n),p=Be(r);if(0===i.length)return{x:h,y:f,width:d-h,height:p-f};for(o=0;o<i.length;o++){var g;(a=(g=i[o]).currentPoint)[0]===h?h-=Ys(g,e).xExtra:a[0]===d&&(d+=Ys(g,e).xExtra),a[1]===f?f-=Ys(g,e).yExtra:a[1]===p&&(p+=Ys(g,e).yExtra)}return{x:h,y:f,width:d-h,height:p-f}}(t.get("segments")||Ls(n),r),o=i.x,a=i.y,s={minX:o,minY:a,maxX:o+i.width,maxY:a+i.height};return{x:(s=ps(t,s)).minX,y:s.minY,width:s.maxX-s.minX,height:s.maxY-s.minY}})),Ha("line",(function(t){var e=t.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a={minX:Math.min(n,i),maxX:Math.max(n,i),minY:Math.min(r,o),maxY:Math.max(r,o)};return{x:(a=ps(t,a)).minX,y:a.minY,width:a.maxX-a.minX,height:a.maxY-a.minY}})),Ha("ellipse",(function(t){var e=t.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;return{x:n-i,y:r-o,width:2*i,height:2*o}}));var Vs=function(){function t(t){var e=t.xField,n=t.yField,r=t.adjustNames,i=void 0===r?["x","y"]:r,o=t.dimValuesMap;this.adjustNames=i,this.xField=e,this.yField=n,this.dimValuesMap=o}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var r,i,o=this.yField,a=n.indexOf(e),s=n.length;return!o&&this.isAdjust("y")?(r=0,i=1):s>1?(r=n[0===a?0:a-1],i=n[a===s-1?s-1:a+1],0!==a?r+=(e-r)/2:r-=(i-e)/2,a!==s-1?i-=(i-e)/2:i+=(e-n[s-2])/2):(r=0===e?0:e-.5,i=0===e?1:e+.5),{pre:r,next:i}},t.prototype.adjustData=function(t,e){var n=this,r=this.getDimValues(e);Pe(t,(function(t,e){Pe(r,(function(r,i){n.adjustDim(i,r,t,e)}))}))},t.prototype.groupData=function(t,e){return Pe(t,(function(t){void 0===t[e]&&(t[e]=0)})),qe(t,e)},t.prototype.adjustDim=function(t,e,n,r){},t.prototype.getDimValues=function(t){var e=this.xField,n=this.yField,r=gn({},this.dimValuesMap),i=[];if(e&&this.isAdjust("x")&&i.push(e),n&&this.isAdjust("y")&&i.push(n),i.forEach((function(e){r&&r[e]||(r[e]=He(t,e).sort((function(t,e){return t-e})))})),!n&&this.isAdjust("y")){r.y=[0,1]}return r},t}(),Xs={},qs=function(t){return Xs[t.toLowerCase()]},Ws=function(t,e){if(qs(t))throw new Error("Adjust type '"+t+"' existed.");Xs[t.toLowerCase()]=e},Us=function(t,e){return Us=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},Us(t,e)};function Zs(t,e){function n(){this.constructor=t}Us(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Ks=function(){return Ks=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ks.apply(this,arguments)},Qs=function(t){function e(e){var n=t.call(this,e)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var r=e.marginRatio,i=void 0===r?.5:r,o=e.dodgeRatio,a=void 0===o?.5:o,s=e.dodgeBy,l=e.intervalPadding,u=e.dodgePadding,c=e.xDimensionLength,h=e.groupNum,f=e.defaultSize,d=e.maxColumnWidth,p=e.minColumnWidth,g=e.columnWidthRatio,v=e.customOffset;return n.marginRatio=i,n.dodgeRatio=a,n.dodgeBy=s,n.intervalPadding=l,n.dodgePadding=u,n.xDimensionLegenth=c,n.groupNum=h,n.defaultSize=f,n.maxColumnWidth=d,n.minColumnWidth=p,n.columnWidthRatio=g,n.customOffset=v,n}return Zs(e,t),e.prototype.process=function(t){var e=vn(t),n=Ie(e),r=this.dodgeBy,i=r?function(t,e){if(!e)return[t];var n=We(t,e),r=[];for(var i in n)r.push(n[i]);return r}(n,r):e;return this.cacheMap={},this.adjustDataArray=i,this.mergeData=n,this.adjustData(i,n),this.adjustDataArray=[],this.mergeData=[],e},e.prototype.adjustDim=function(t,e,n,r){var i=this,o=this.customOffset,a=this.getDistribution(t);return Pe(this.groupData(n,t),(function(n,s){var l;l=1===e.length?{pre:e[0]-1,next:e[0]+1}:i.getAdjustRange(t,parseFloat(s),e),Pe(n,(function(e){var n=e[t],s=a[n],u=s.indexOf(r);if(je(o))e[t]=i.getDodgeOffset(l,u,s.length);else{var c=l.pre,h=l.next;e[t]=Se(o)?o(e,l):(c+h)/2+o}}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var r,i=this,o=i.dodgeRatio,a=i.marginRatio,s=i.intervalPadding,l=i.dodgePadding,u=t.pre,c=t.next,h=c-u;if(!je(s)&&je(l)&&s>=0)r=u+this.getIntervalOnlyOffset(n,e);else if(!je(l)&&je(s)&&l>=0){r=u+this.getDodgeOnlyOffset(n,e)}else if(!je(s)&&!je(l)&&s>=0&&l>=0){r=u+this.getIntervalAndDodgeOffset(n,e)}else{var f=h*o/n,d=a*f;r=(u+c)/2+(.5*(h-n*f-(n-1)*d)+((e+1)*f+e*d)-.5*f-.5*h)}return r},e.prototype.getIntervalOnlyOffset=function(t,e){var n=this,r=n.defaultSize,i=n.intervalPadding,o=n.xDimensionLegenth,a=n.groupNum,s=n.dodgeRatio,l=n.maxColumnWidth,u=n.minColumnWidth,c=n.columnWidthRatio,h=i/o,f=(1-(a-1)*h)/a*s/(t-1),d=((1-h*(a-1))/a-f*(t-1))/t;if(d=je(c)?d:1/a/t*c,!je(l)){var p=l/o;d=Math.min(d,p)}if(!je(u)){var g=u/o;d=Math.max(d,g)}return((.5+e)*(d=r?r/o:d)+e*(f=((1-(a-1)*h)/a-t*d)/(t-1))+.5*h)*a-h/2},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,r=n.defaultSize,i=n.dodgePadding,o=n.xDimensionLegenth,a=n.groupNum,s=n.marginRatio,l=n.maxColumnWidth,u=n.minColumnWidth,c=n.columnWidthRatio,h=i/o,f=1*s/(a-1),d=((1-f*(a-1))/a-h*(t-1))/t;if(d=c?1/a/t*c:d,!je(l)){var p=l/o;d=Math.min(d,p)}if(!je(u)){var g=u/o;d=Math.max(d,g)}return((.5+e)*(d=r?r/o:d)+e*h+.5*(f=(1-(d*t+h*(t-1))*a)/(a-1)))*a-f/2},e.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this,r=n.intervalPadding,i=n.dodgePadding,o=n.xDimensionLegenth,a=n.groupNum,s=r/o,l=i/o;return((.5+e)*(((1-s*(a-1))/a-l*(t-1))/t)+e*l+.5*s)*a-s/2},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,r=n[t];return r||(r={},Pe(e,(function(e,n){var i=He(e,t);i.length||i.push(0),Pe(i,(function(t){r[t]||(r[t]=[]),r[t].push(n)}))})),n[t]=r),r},e}(Vs);var $s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zs(e,t),e.prototype.process=function(t){var e=vn(t),n=Ie(e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var r=this;return Pe(this.groupData(n,t),(function(n,i){return r.adjustGroup(n,t,parseFloat(i),e)}))},e.prototype.getAdjustOffset=function(t){var e=t.pre,n=t.next,r=.05*(n-e);return function(t,e){return(e-t)*Math.random()+t}(e+r,n-r)},e.prototype.adjustGroup=function(t,e,n,r){var i=this,o=this.getAdjustRange(e,n,r);return Pe(t,(function(t){t[e]=i.getAdjustOffset(o)})),t},e}(Vs),Js=Hn,tl=function(t){function e(e){var n=t.call(this,e)||this,r=e.adjustNames,i=void 0===r?["y"]:r,o=e.height,a=void 0===o?NaN:o,s=e.size,l=void 0===s?10:s,u=e.reverseOrder,c=void 0!==u&&u;return n.adjustNames=i,n.height=a,n.size=l,n.reverseOrder=c,n}return Zs(e,t),e.prototype.process=function(t){var e=this.yField,n=this.reverseOrder,r=e?this.processStack(t):this.processOneDimStack(t);return n?this.reverse(r):r},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this,n=e.xField,r=e.yField,i=e.reverseOrder?this.reverse(t):t,o=new Js,a=new Js;return i.map((function(t){return t.map((function(t){var e,i=Pn(t,n,0),s=Pn(t,[r]),l=i.toString();if(s=Ce(s)?s[1]:s,!je(s)){var u=s>=0?o:a;u.has(l)||u.set(l,0);var c=u.get(l),h=s+c;return u.set(l,h),Ks(Ks({},t),((e={})[r]=[c,h],e))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,n=this,r=n.xField,i=n.height,o=n.reverseOrder,a=o?this.reverse(t):t,s=new Js;return a.map((function(t){return t.map((function(t){var n,o=e.size,a=t[r],l=2*o/i;s.has(a)||s.set(a,l/2);var u=s.get(a);return s.set(a,u+l),Ks(Ks({},t),((n={}).y=u,n))}))}))},e}(Vs),el=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zs(e,t),e.prototype.process=function(t){var e=Ie(t),n=this.xField,r=this.yField,i=this.getXValuesMaxMap(e),o=Math.max.apply(Math,Object.keys(i).map((function(t){return i[t]})));return Cn(t,(function(t){return Cn(t,(function(t){var e,a,s=t[r],l=t[n];if(Ce(s)){var u=(o-i[l])/2;return Ks(Ks({},t),((e={})[r]=Cn(s,(function(t){return u+t})),e))}var c=(o-s)/2;return Ks(Ks({},t),((a={})[r]=[c,s+c],a))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this.xField,r=this.yField;return function(t,e){void 0===e&&(e=En);var n={};return Ee(t)&&!je(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n}(qe(t,(function(t){return t[n]})),(function(t){return e.getDimMaxValue(t,r)}))},e.prototype.getDimMaxValue=function(t,e){var n=Cn(t,(function(t){return Pn(t,e,[])})),r=Ie(n);return Math.max.apply(Math,r)},e}(Vs);Ws("Dodge",Qs),Ws("Jitter",$s),Ws("Stack",tl),Ws("Symmetric",el);var nl=function(t,e){return Ne(e)?e:t.invert(t.scale(e))},rl=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.map((function(e,n){return t._toOriginParam(e,t.scales[n])}));return this.callback.apply(this,r)},t.prototype.getLinearValue=function(t){var e=this.values.length-1,n=Math.floor(e*t),r=e*t-n,i=this.values[n];return i+((n===e?i:this.values[n+1])-i)*r},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),r=[],i=0;i<n;i+=1)r.push(e[i]);return r},t.prototype.getFields=function(){return this.scales.map((function(t){return t.field}))},t.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},t.prototype.defaultCallback=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 0===e.length?this.values:e.map((function(e,n){var r=t.scales[n];return"identity"===r.type?r.values[0]:t._getAttributeValue(r,e)}))},t.prototype._parseCfg=function(t){var e=this,n=t.type,r=void 0===n?"base":n,i=t.names,o=void 0===i?[]:i,a=t.scales,s=void 0===a?[]:a,l=t.values,u=void 0===l?[]:l,c=t.callback;this.type=r,this.scales=s,this.values=u,this.names=o,this.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(c){var r=c.apply(void 0,t);if(!je(r))return[r]}return e.defaultCallback.apply(e,t)}},t.prototype._getAttributeValue=function(t,e){if(t.isCategory&&!this.linear){var n=t.translate(e);return this.values[n%this.values.length]}var r=t.scale(e);return this.getLinearValue(r)},t.prototype._toOriginParam=function(t,e){return e.isLinear?t:Ce(t)?t.map((function(t){return nl(e,t)})):nl(e,t)},t}(),il=function(t,e){return il=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},il(t,e)};function ol(t,e){function n(){this.constructor=t}il(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var al=/rgba?\(([\s.,0-9]+)\)/,sl=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,ll=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,ul=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,cl=function(t,e,n,r){return t[r]+(e[r]-t[r])*n};function hl(t){return"#"+pl(t[0])+pl(t[1])+pl(t[2])}var fl,dl=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},pl=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},gl=function(t){if("#"===t[0]&&7===t.length)return t;var e;fl||((e=document.createElement("i")).title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),fl=e),fl.style.color=t;var n=document.defaultView.getComputedStyle(fl,"").getPropertyValue("color");return n=hl(al.exec(n)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))},vl={rgb2arr:dl,gradient:function(t){var e=Ne(t)?t.split("-"):t,n=Cn(e,(function(t){return dl(-1===t.indexOf("#")?gl(t):t)}));return function(t){return function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),r=t.length-1,i=Math.floor(r*n),o=r*n-i,a=t[i],s=i===r?a:t[i+1];return hl([cl(a,s,o,0),cl(a,s,o,1),cl(a,s,o,2)])}(n,t)}},toRGB:mn(gl),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0]){var r=+(i=sl.exec(t))[1]+90;n=i[2],e="linear-gradient("+r+"deg, "}else if("r"===t[0]){var i;e="radial-gradient(",n=(i=ll.exec(t))[4]}var o=n.match(ul);return Pe(o,(function(t,n){var r=t.split(":");e+=r[1]+" "+100*r[0]+"%",n!==o.length-1&&(e+=", ")})),e+=")"}return t}},yl=function(t){function e(e){var n=t.call(this,e)||this;return n.type="color",n.names=["color"],Ne(n.values)&&(n.linear=!0),n.gradient=vl.gradient(n.values),n}return ol(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(rl),ml=function(t){function e(e){var n=t.call(this,e)||this;return n.type="opacity",n.names=["opacity"],n}return ol(e,t),e}(rl),_l=function(t){function e(e){var n=t.call(this,e)||this;return n.names=["x","y"],n.type="position",n}return ol(e,t),e.prototype.mapping=function(t,e){var n=this.scales,r=n[0],i=n[1];return je(t)||je(e)?[]:[Ce(t)?t.map((function(t){return r.scale(t)})):r.scale(t),Ce(e)?e.map((function(t){return i.scale(t)})):i.scale(e)]},e}(rl),xl=function(t){function e(e){var n=t.call(this,e)||this;return n.type="shape",n.names=["shape"],n}return ol(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(rl),bl=function(t){function e(e){var n=t.call(this,e)||this;return n.type="size",n.names=["size"],n}return ol(e,t),e}(rl),wl={};function Ml(t,e){wl[t]=e}var Sl=function(){function t(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return t.prototype.translate=function(t){return t},t.prototype.change=function(t){gn(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return Cn(this.ticks,(function(e,n){return Ee(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var n=this.formatter,r=n?n(t,e):t;return je(r)||!Se(r.toString)?"":r.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){gn(this,this.__cfg__),this.setDomain(),Mn(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},t.prototype.initCfg=function(){},t.prototype.setDomain=function(){},t.prototype.calculateTicks=function(){var t=this.tickMethod,e=[];if(Ne(t)){var n=wl[t];if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else Se(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return this.range[0]},t.prototype.rangeMax=function(){return this.range[1]},t.prototype.calcPercent=function(t,e,n){return Ke(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}(),jl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return ce(e,t),e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;t<this.values.length;t++)this.translateIndexMap.set(this.values[t],t)}},e.prototype.translate=function(t){this.buildIndexMap();var e=this.translateIndexMap.get(t);return void 0===e&&(e=Ke(t)?t:NaN),e},e.prototype.scale=function(t){var e=this.translate(t),n=this.calcPercent(e,this.min,this.max);return this.calcValue(n,this.rangeMin(),this.rangeMax())},e.prototype.invert=function(t){var e=this.max-this.min,n=this.calcPercent(t,this.rangeMin(),this.rangeMax()),r=Math.round(e*n)+this.min;return r<this.min||r>this.max?NaN:this.values[r]},e.prototype.getText=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=e;return Ke(e)&&!this.values.includes(e)&&(i=this.values[i]),t.prototype.getText.apply(this,ye([i],n))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if(je(this.getConfig("min"))&&(this.min=0),je(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(Sl),Cl=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,El="\\d\\d?",Pl="\\d\\d",Tl="[^\\s]+",kl=/\[([^]*?)\]/gm;function Al(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}var Ol=function(t){return function(e,n){var r=n[t].map((function(t){return t.toLowerCase()})),i=r.indexOf(e.toLowerCase());return i>-1?i:null}};function Il(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,i=e;r<i.length;r++){var o=i[r];for(var a in o)t[a]=o[a]}return t}var Bl=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Ll=["January","February","March","April","May","June","July","August","September","October","November","December"],Fl=Al(Ll,3),Dl={dayNamesShort:Al(Bl,3),dayNames:Bl,monthNamesShort:Fl,monthNames:Ll,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10?1:0)*t%10]}},Rl=Il({},Dl),Nl=function(t){return Rl=Il(Rl,t)},zl=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Hl=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},Gl={D:function(t){return String(t.getDate())},DD:function(t){return Hl(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return Hl(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return Hl(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return Hl(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return Hl(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return Hl(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return Hl(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return Hl(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return Hl(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return Hl(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return Hl(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Hl(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Hl(Math.floor(Math.abs(e)/60),2)+":"+Hl(Math.abs(e)%60,2)}},Yl=function(t){return+t-1},Vl=[null,El],Xl=[null,Tl],ql=["isPm",Tl,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],Wl=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],Ul={D:["day",El],DD:["day",Pl],Do:["day",El+Tl,function(t){return parseInt(t,10)}],M:["month",El,Yl],MM:["month",Pl,Yl],YY:["year",Pl,function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour",El,void 0,"isPm"],hh:["hour",Pl,void 0,"isPm"],H:["hour",El],HH:["hour",Pl],m:["minute",El],mm:["minute",Pl],s:["second",El],ss:["second",Pl],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond",Pl,function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:Vl,dd:Vl,ddd:Xl,dddd:Xl,MMM:["month",Tl,Ol("monthNamesShort")],MMMM:["month",Tl,Ol("monthNames")],a:ql,A:ql,ZZ:Wl,Z:Wl},Zl={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Kl=function(t){return Il(Zl,t)},Ql=function(t,e,n){if(void 0===e&&(e=Zl.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");var r=[];e=(e=Zl[e]||e).replace(kl,(function(t,e){return r.push(e),"@@@"}));var i=Il(Il({},Rl),n);return(e=e.replace(Cl,(function(e){return Gl[e](t,i)}))).replace(/@@@/g,(function(){return r.shift()}))};function $l(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=Zl[e]||e,t.length>1e3)return null;var r={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},i=[],o=[],a=e.replace(kl,(function(t,e){return o.push(zl(e)),"@@@"})),s={},l={};a=zl(a).replace(Cl,(function(t){var e=Ul[t],n=e[0],r=e[1],o=e[3];if(s[n])throw new Error("Invalid format. "+n+" specified twice in format");return s[n]=!0,o&&(l[o]=!0),i.push(e),"("+r+")"})),Object.keys(l).forEach((function(t){if(!s[t])throw new Error("Invalid format. "+t+" is required in specified format")})),a=a.replace(/@@@/g,(function(){return o.shift()}));var u=t.match(new RegExp(a,"i"));if(!u)return null;for(var c,h=Il(Il({},Rl),n),f=1;f<u.length;f++){var d=i[f-1],p=d[0],g=d[2],v=g?g(u[f],h):+u[f];if(null==v)return null;r[p]=v}if(1===r.isPm&&null!=r.hour&&12!=+r.hour?r.hour=+r.hour+12:0===r.isPm&&12==+r.hour&&(r.hour=0),null==r.timezoneOffset){c=new Date(r.year,r.month,r.day,r.hour,r.minute,r.second,r.millisecond);for(var y=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],m=(f=0,y.length);f<m;f++)if(s[y[f][0]]&&r[y[f][0]]!==c[y[f][1]]())return null}else if(c=new Date(Date.UTC(r.year,r.month,r.day,r.hour,r.minute-r.timezoneOffset,r.second,r.millisecond)),r.month>11||r.month<0||r.day>31||r.day<1||r.hour>23||r.hour<0||r.minute>59||r.minute<0||r.second>59||r.second<0)return null;return c}var Jl={format:Ql,parse:$l,defaultI18n:Dl,setGlobalDateI18n:Nl,setGlobalDateMasks:Kl},tu=Object.freeze(Object.defineProperty({__proto__:null,default:Jl,assign:Il,format:Ql,parse:$l,defaultI18n:Dl,setGlobalDateI18n:Nl,setGlobalDateMasks:Kl},Symbol.toStringTag,{value:"Module"}));var eu="format";function nu(t,e){return(tu[eu]||Jl[eu])(t,e)}function ru(t){return Ne(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),cn(t)&&(t=t.getTime()),t}var iu=1e3,ou=6e4,au=36e5,su=24*au,lu=31*su,uu=365*su,cu=[["HH:mm:ss",iu],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",ou],["HH:mm",6e5],["HH:mm",18e5],["HH",au],["HH",6*au],["HH",12*au],["YYYY-MM-DD",su],["YYYY-MM-DD",4*su],["YYYY-WW",7*su],["YYYY-MM",lu],["YYYY-MM",4*lu],["YYYY-MM",6*lu],["YYYY",380*su]];function hu(t,e,n){var r,i=(r=function(t){return t[1]},function(t,e,n,i){for(var o=je(n)?0:n,a=je(i)?t.length:i;o<a;){var s=o+a>>>1;r(t[s])>e?a=s:o=s+1}return o})(cu,(e-t)/n)-1,o=cu[i];return i<0?o=cu[0]:i>=cu.length&&(o=Ye(cu)),o}var fu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return ce(e,t),e.prototype.translate=function(t){t=ru(t);var e=this.values.indexOf(t);return-1===e&&(e=Ke(t)&&t<this.values.length?t:NaN),e},e.prototype.getText=function(t,e){var n=this.translate(t);if(n>-1){var r=this.values[n],i=this.formatter;return r=i?i(r,e):nu(r,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;Pe(e,(function(t,n){e[n]=ru(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(jl),du=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return ce(e,t),e.prototype.scale=function(t){if(je(t))return NaN;var e=this.rangeMin(),n=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=Ge(e),r=Ye(e);n<this.min&&(this.min=n),r>this.max&&(this.max=r),je(this.minLimit)||(this.min=n),je(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(Ce(t[0])){for(var n=[],r=0;r<t.length;r++)n=n.concat(t[r]);e=n}var i=Be(e);return{min:Le(e),max:i}}(this.values),e=t.min,n=t.max;je(this.min)&&(this.min=e),je(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=be(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(Sl),pu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return ce(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(du);function gu(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)}function vu(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function yu(t,e,n){je(n)&&(n=Math.max.apply(null,t));var r=n;return Pe(t,(function(t){t>0&&t<r&&(r=t)})),r===n&&(r=n/e),r>1&&(r=1),r}var mu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return ce(e,t),e.prototype.invert=function(t){var e,n=this.base,r=vu(n,this.max),i=this.rangeMin(),o=this.rangeMax()-i,a=this.positiveMin;if(a){if(0===t)return 0;var s=1/(r-(e=vu(n,a/n)))*o;if(t<s)return t/s*a}else e=vu(n,this.min);var l=(t-i)/o*(r-e)+e;return Math.pow(n,l)},e.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},e.prototype.setDomain=function(){t.prototype.setDomain.call(this);var e=this.min;if(e<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");0===e&&(this.positiveMin=yu(this.values,this.base,this.max))},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var r=this.base,i=this.positiveMin;return i&&(n=1*i/r),t<i?t/i/(vu(r,e)-vu(r,n)):(vu(r,t)-vu(r,n))/(vu(r,e)-vu(r,n))},e}(du),_u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return ce(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,r=gu(n,this.max),i=gu(n,this.min),o=e*(r-i)+i,a=o>=0?1:-1;return Math.pow(o,n)*a},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return(gu(r,t)-gu(r,n))/(gu(r,e)-gu(r,n))},e}(du),xu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return ce(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):nu(n,this.mask)},e.prototype.scale=function(e){var n=e;return(Ne(n)||cn(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return ru(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if(je(e)&&Ke(e)||(this.min=this.translate(this.min)),je(n)&&Ke(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],i=1/0,o=i,a=0;Pe(t,(function(t){var e=ru(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");i>e?(o=i,i=e):o>e&&(o=e),a<e&&(a=e),r.push(e)})),t.length>1&&(this.minTickInterval=o-i),je(e)&&(this.min=i),je(n)&&(this.max=a)}},e}(pu),bu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return ce(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),i=Math.floor(r*(n-1));if(i>=n-1)return Ye(e);if(i<0)return Ge(e);var o=e[i],a=i/(n-1);return o+(r-a)/((i+1)/(n-1)-a)*(e[i+1]-o)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||(Ye(e)!==this.max&&e.push(this.max),Ge(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<Ge(e))return 0;if(t>Ye(e))return 1;var n=0;return Pe(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}(du),wu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return ce(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(bu),Mu={};function Su(t){return Mu[t]}function ju(t,e){if(Su(t))throw new Error("type '"+t+"' existed.");Mu[t]=e}var Cu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return ce(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Ke(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return t<e[0]||t>e[1]?NaN:this.values[0]},e}(Sl);function Eu(t){var e=t.values,n=t.tickInterval,r=t.tickCount,i=t.showLast;if(Ke(n)){var o=be(e,(function(t,e){return e%n==0})),a=Ye(e);return i&&Ye(o)!==a&&o.push(a),o}var s=e.length,l=t.min,u=t.max;if(je(l)&&(l=0),je(u)&&(u=e.length-1),!Ke(r)||r>=s)return e.slice(l,u+1);if(r<=0||u<=0)return[];for(var c=1===r?s:Math.floor(s/(r-1)),h=[],f=l,d=0;d<r&&!(f>=u);d++)f=Math.min(l+d*c,u),d===r-1&&i?h.push(e[u]):h.push(e[f]);return h}var Pu=Math.sqrt(50),Tu=Math.sqrt(10),ku=Math.sqrt(2),Au=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=5);var r,i=this._domain.slice(),o=0,a=this._domain.length-1,s=this._domain[o],l=this._domain[a];return l<s&&(s=(e=[l,s])[0],l=e[1],o=(n=[a,o])[0],a=n[1]),(r=Ou(s,l,t))>0?r=Ou(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,t):r<0&&(r=Ou(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,t)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(l/r)*r,this.domain(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(l*r)/r,this.domain(i)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];(r=e<t)&&(i=t,t=e,e=i);if(0===(a=Ou(t,e,n))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(t+s)*a;else for(t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(t-s)/a;r&&o.reverse();return o}(this._domain[0],this._domain[this._domain.length-1],t||5)},t}();function Ou(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Pu?10:o>=Tu?5:o>=ku?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Pu?10:o>=Tu?5:o>=ku?2:1)}function Iu(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}function Bu(t,e,n){var r=Iu(t,n,"floor"),i=Iu(e,n,"ceil");r=Ze(r,n),i=Ze(i,n);for(var o=[],a=Math.max((i-r)/(Math.pow(2,12)-1),n),s=r;s<=i;s+=a){var l=Ze(s,a);o.push(l)}return{min:r,max:i,ticks:o}}function Lu(t,e,n){var r,i=t.minLimit,o=t.maxLimit,a=t.min,s=t.max,l=t.tickCount,u=void 0===l?5:l,c=je(i)?je(e)?a:e:i,h=je(o)?je(n)?s:n:o;if(c>h&&(h=(r=[c,h])[0],c=r[1]),u<=2)return[c,h];for(var f=(h-c)/(u-1),d=[],p=0;p<u;p++)d.push(c+f*p);return d}function Fu(t){return Math.abs(t)<1e-15?t:parseFloat(t.toFixed(15))}var Du=[1,5,2,2.5,4,3],Ru=100*Number.EPSILON;function Nu(t,e,n,r,i,o){var a=Fn(e),s=bn(e,t),l=0,u=function(t,e){return(t%e+e)%e}(r,o);return(u<Ru||o-u<Ru)&&r<=0&&i>=0&&(l=1),1-s/(a-1)-n+l}function zu(t,e,n){var r=Fn(e);return 1-bn(e,t)/(r-1)-n+1}function Hu(t,e,n,r,i,o){var a=(t-1)/(o-i),s=(e-1)/(Math.max(o,r)-Math.min(n,i));return 2-Math.max(a/s,s/a)}function Gu(t,e){return t>=e?2-(t-1)/(e-1):1}function Yu(t,e,n,r){var i=e-t;return 1-.5*(Math.pow(e-r,2)+Math.pow(t-n,2))/Math.pow(.1*i,2)}function Vu(t,e,n){var r=e-t;if(n>r){var i=(n-r)/2;return 1-Math.pow(i,2)/Math.pow(.1*r,2)}return 1}function Xu(t,e,n,r,i,o){void 0===n&&(n=5),void 0===r&&(r=!0),void 0===i&&(i=Du),void 0===o&&(o=[.25,.2,.5,.05]);var a=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!=typeof t||"number"!=typeof e||!a)return{min:0,max:0,ticks:[]};if(e-t<1e-15||1===a)return{min:t,max:e,ticks:[t]};if(e-t>1e148){var s=(e-t)/(b=n||5);return{min:t,max:e,ticks:Array(b).fill(null).map((function(e,n){return Fu(t+s*n)}))}}for(var l={score:-2,lmin:0,lmax:0,lstep:0},u=1;u<1/0;){for(var c=0;c<i.length;c+=1){var h=i[c],f=zu(h,i,u);if(o[0]*f+o[1]+o[2]+o[3]<l.score){u=1/0;break}for(var d=2;d<1/0;){var p=Gu(d,a);if(o[0]*f+o[1]+o[2]*p+o[3]<l.score)break;for(var g=(e-t)/(d+1)/u/h,v=Math.ceil(Math.log10(g));v<1/0;){var y=u*h*Math.pow(10,v),m=Vu(t,e,y*(d-1));if(o[0]*f+o[1]*m+o[2]*p+o[3]<l.score)break;var _=Math.floor(e/y)*u-(d-1)*u,x=Math.ceil(t/y)*u;if(_<=x)for(var b=x-_,w=0;w<=b;w+=1){var M=(_+w)*(y/u),S=M+y*(d-1),j=y,C=Nu(h,i,u,M,S,j),E=Yu(t,e,M,S),P=Hu(d,a,t,e,M,S),T=o[0]*C+o[1]*E+o[2]*P+1*o[3];T>l.score&&(!r||M<=t&&S>=e)&&(l.lmin=M,l.lmax=S,l.lstep=j,l.score=T)}v+=1}d+=1}}u+=1}var k=Fu(l.lmax),A=Fu(l.lmin),O=Fu(l.lstep),I=Math.floor(function(t){return Math.round(1e12*t)/1e12}((k-A)/O))+1,B=new Array(I);B[0]=Fu(A);for(c=1;c<I;c++)B[c]=Fu(B[c-1]+O);return{min:Math.min(t,Ge(B)),max:Math.max(e,Ye(B)),ticks:B}}function qu(t,e,n){if(void 0===n&&(n=5),t===e)return{max:e,min:t,ticks:[t]};var r=n<0?0:Math.round(n);if(0===r)return{max:e,min:t,ticks:[]};var i=(e-t)/r,o=Math.pow(10,Math.floor(Math.log10(i))),a=o;2*o-i<1.5*(i-a)&&5*o-i<2.75*(i-(a=2*o))&&10*o-i<1.5*(i-(a=5*o))&&(a=10*o);for(var s=Math.ceil(e/a),l=Math.floor(t/a),u=Math.max(s*a,e),c=Math.min(l*a,t),h=Math.floor((u-c)/a)+1,f=new Array(h),d=0;d<h;d++)f[d]=Fu(c+d*a);return{min:c,max:u,ticks:f}}function Wu(t,e){var n=t.length*e;return 1===e?t[t.length-1]:0===e?t[0]:n%1!=0?t[Math.ceil(n)-1]:t.length%2==0?(t[n-1]+t[n])/2:t[n]}function Uu(t){return new Date(t).getFullYear()}function Zu(t){return new Date(t,0,1).getTime()}function Ku(t){return new Date(t).getMonth()}function Qu(t,e){return new Date(t,e,1).getTime()}Ml("cat",Eu),Ml("time-cat",(function(t){return Eu(he({showLast:!0},t))})),Ml("wilkinson-extended",(function(t){var e=t.min,n=t.max,r=t.tickCount,i=t.nice,o=t.tickInterval,a=t.minLimit,s=t.maxLimit,l=Xu(e,n,r,i).ticks;return je(a)&&je(s)?o?Bu(e,n,o).ticks:l:Lu(t,Ge(l),Ye(l))})),Ml("r-pretty",(function(t){var e=t.min,n=t.max,r=t.tickCount,i=t.tickInterval,o=t.minLimit,a=t.maxLimit,s=qu(e,n,r).ticks;return je(o)&&je(a)?i?Bu(e,n,i).ticks:s:Lu(t,Ge(s),Ye(s))})),Ml("time",(function(t){var e=t.min,n=t.max,r=t.minTickInterval,i=t.tickInterval,o=t.tickCount;if(i)o=Math.ceil((n-e)/i);else{var a=(n-e)/(i=hu(e,n,o)[1])/o;a>1&&(i*=Math.ceil(a)),r&&i<r&&(i=r)}i=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),i);for(var s=[],l=e;l<n+i;l+=i)s.push(l);return s})),Ml("time-pretty",(function(t){var e=t.min,n=t.max,r=t.minTickInterval,i=t.tickCount,o=t.tickInterval,a=[];o||(o=(n-e)/i,r&&o<r&&(o=r)),o=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),o);var s=Uu(e);if(o>uu)for(var l=Uu(n),u=Math.ceil(o/uu),c=s;c<=l+u;c+=u)a.push(Zu(c));else if(o>lu){var h=Math.ceil(o/lu),f=Ku(e),d=function(t,e){var n=Uu(t),r=Uu(e),i=Ku(t);return 12*(r-n)+(Ku(e)-i)%12}(e,n);for(c=0;c<=d+h;c+=h)a.push(Qu(s,c+f))}else if(o>su){var p=(_=new Date(e)).getFullYear(),g=_.getMonth(),v=_.getDate(),y=Math.ceil(o/su),m=function(t,e){return Math.ceil((e-t)/su)}(e,n);for(c=0;c<m+y;c+=y)a.push(new Date(p,g,v+c).getTime())}else if(o>au){p=(_=new Date(e)).getFullYear(),g=_.getMonth(),y=_.getDate();var _,x=_.getHours(),b=Math.ceil(o/au),w=function(t,e){return Math.ceil((e-t)/au)}(e,n);for(c=0;c<=w+b;c+=b)a.push(new Date(p,g,y,x+c).getTime())}else if(o>ou){var M=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),S=Math.ceil(o/ou);for(c=0;c<=M+S;c+=S)a.push(e+c*ou)}else{var j=o;j<iu&&(j=iu);var C=Math.floor(e/iu)*iu,E=Math.ceil((n-e)/iu),P=Math.ceil(j/iu);for(c=0;c<E+P;c+=P)a.push(C+c*iu)}return a.length>=512&&console.warn("Notice: current ticks length("+a.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+o+") is too small, increase the value to solve the problem!"),a})),Ml("log",(function(t){var e,n=t.base,r=t.tickCount,i=t.min,o=t.max,a=t.values,s=vu(n,o);if(i>0)e=Math.floor(vu(n,i));else{var l=yu(a,n,o);e=Math.floor(vu(n,l))}for(var u=s-e,c=Math.ceil(u/r),h=[],f=e;f<s+c;f+=c)h.push(Math.pow(n,f));return i<=0&&h.unshift(0),h})),Ml("pow",(function(t){var e=t.exponent,n=t.tickCount,r=Math.ceil(gu(e,t.max));return qu(Math.floor(gu(e,t.min)),r,n).ticks.map((function(t){var n=t>=0?1:-1;return Math.pow(t,e)*n}))})),Ml("quantile",(function(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var r=n.slice().sort((function(t,e){return t-e})),i=[],o=0;o<e;o++){var a=o/(e-1);i.push(Wu(r,a))}return i})),Ml("d3-linear",(function(t){var e=t.min,n=t.max,r=t.tickInterval,i=t.minLimit,o=t.maxLimit,a=function(t){var e=t.min,n=t.max,r=t.nice,i=t.tickCount,o=new Au;return o.domain([e,n]),r&&o.nice(i),o.ticks(i)}(t);return je(i)&&je(o)?r?Bu(e,n,r).ticks:a:Lu(t,Ge(a),Ye(a))})),ju("cat",jl),ju("category",jl),ju("identity",Cu),ju("linear",pu),ju("log",mu),ju("pow",_u),ju("time",xu),ju("timeCat",fu),ju("quantize",bu),ju("quantile",wu);var $u={},Ju=function(t){return $u[t.toLowerCase()]},tc=function(t,e){if(Ju(t))throw new Error("Attribute type '"+t+"' existed.");$u[t.toLowerCase()]=e};tc("Color",yl),tc("Opacity",ml),tc("Position",_l),tc("Shape",xl),tc("Size",bl);var ec=function(){function t(t){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var e=t.start,n=t.end,r=t.matrix,i=void 0===r?[1,0,0,0,1,0,0,0,1]:r,o=t.isTransposed,a=void 0!==o&&o;this.start=e,this.end=n,this.matrix=i,this.originalMatrix=me([],i),this.isTransposed=a}return t.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},t.prototype.update=function(t){gn(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,r=this[e],i=r.start,o=r.end;return this.isReflect(e)&&(i=(n=[o,i])[0],o=n[1]),i+t*(o-i)},t.prototype.invertDim=function(t,e){var n,r=this[e],i=r.start,o=r.end;return this.isReflect(e)&&(i=(n=[o,i])[0],o=n[1]),(t-i)/(o-i)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var r=[t,e,n];return hi(r,r,this.matrix),r},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var r=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=c*a-s*u,f=-c*o+s*l,d=u*o-a*l,p=n*h+r*f+i*d;return p?(p=1/p,t[0]=h*p,t[1]=(-c*r+i*u)*p,t[2]=(s*r-i*a)*p,t[3]=f*p,t[4]=(c*n-i*l)*p,t[5]=(-s*n+i*o)*p,t[6]=d*p,t[7]=(-u*n+r*l)*p,t[8]=(a*n-r*o)*p,t):null}([0,0,0,0,0,0,0,0,0],this.matrix),i=[t,e,n];return r&&hi(i,i,r),i},t.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,r=e.y,i=this.applyMatrix(n,r,1);return{x:i[0],y:i[1]}},t.prototype.invert=function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})},t.prototype.rotate=function(t){var e=this.matrix,n=this.center;return wi(e,e,[-n.x,-n.y]),Mi(e,e,t),wi(e,e,[n.x,n.y]),this},t.prototype.reflect=function(t){return"x"===t?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},t.prototype.scale=function(t,e){var n=this.matrix,r=this.center;return wi(n,n,[-r.x,-r.y]),Si(n,n,[t,e]),wi(n,n,[r.x,r.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return wi(n,n,[t,e]),this},t.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},t.prototype.getCenter=function(){return this.center},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRadius=function(){return this.radius},t.prototype.isReflect=function(t){return"x"===t?this.isReflectX:this.isReflectY},t.prototype.resetMatrix=function(t){this.matrix=t||me([],this.originalMatrix)},t}(),nc=function(t){function e(e){var n=t.call(this,e)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return ce(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=this.start,n=this.end;this.x={start:e.x,end:n.x},this.y={start:e.y,end:n.y}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:this.convertDim(n,"x"),y:this.convertDim(r,"y")}},e.prototype.invertPoint=function(t){var e,n=this.invertDim(t.x,"x"),r=this.invertDim(t.y,"y");return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:n,y:r}},e}(ec),rc=function(t){function e(e){var n=t.call(this,e)||this;n.isHelix=!0,n.type="helix";var r=e.startAngle,i=void 0===r?1.25*Math.PI:r,o=e.endAngle,a=void 0===o?7.25*Math.PI:o,s=e.innerRadius,l=void 0===s?0:s,u=e.radius;return n.startAngle=i,n.endAngle=a,n.innerRadius=l,n.radius=u,n.initial(),n}return ce(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+.99*this.d}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;this.isTransposed&&(n=(e=[r,n])[0],r=e[1]);var i=this.convertDim(n,"x"),o=this.a*i,a=this.convertDim(r,"y");return{x:this.center.x+Math.cos(i)*(o+a),y:this.center.y+Math.sin(i)*(o+a)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,r=di([0,0],[t.x,t.y],[this.center.x,this.center.y]),i=Ei(r,[1,0],!0),o=i*this.a;mi(r)<o&&(o=mi(r)),i=2*Math.floor((mi(r)-o)/n)*Math.PI+i;var a=this.a*i,s=mi(r)-a;s=Qe(s,0)?0:s;var l=this.invertDim(i,"x"),u=this.invertDim(s,"y");return l=Qe(l,0)?0:l,u=Qe(u,0)?0:u,this.isTransposed&&(l=(e=[u,l])[0],u=e[1]),{x:l,y:u}},e}(ec),ic=function(t){function e(e){var n=t.call(this,e)||this;n.isPolar=!0,n.type="polar";var r=e.startAngle,i=void 0===r?-Math.PI/2:r,o=e.endAngle,a=void 0===o?3*Math.PI/2:o,s=e.innerRadius,l=void 0===s?0:s,u=e.radius;return n.startAngle=i,n.endAngle=a,n.innerRadius=l,n.radius=u,n.initial(),n}return ce(e,t),e.prototype.initial=function(){for(t.prototype.initial.call(this);this.endAngle<this.startAngle;)this.endAngle+=2*Math.PI;var e,n=this.getOneBox(),r=n.maxX-n.minX,i=n.maxY-n.minY,o=Math.abs(n.minX)/r,a=Math.abs(n.minY)/i;this.height/i>this.width/r?(e=this.width/r,this.circleCenter={x:this.center.x-(.5-o)*this.width,y:this.center.y-(.5-a)*e*i}):(e=this.height/i,this.circleCenter={x:this.center.x-(.5-o)*e*r,y:this.center.y-(.5-a)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,n=this.getCenter(),r=t.x,i=t.y;return this.isTransposed&&(r=(e=[i,r])[0],i=e[1]),r=this.convertDim(r,"x"),i=this.convertDim(i,"y"),{x:n.x+Math.cos(r)*i,y:n.y+Math.sin(r)*i}},e.prototype.invertPoint=function(t){var e,n=this.getCenter(),r=[t.x-n.x,t.y-n.y],i=this.startAngle,o=this.endAngle;this.isReflect("x")&&(i=(e=[o,i])[0],o=e[1]);var a=[1,0,0,0,1,0,0,0,1];Mi(a,a,i);var s=[1,0,0];hi(s,s,a);var l=Ei([s[0],s[1]],r,o<i);Qe(l,2*Math.PI)&&(l=0);var u=mi(r),c=l/(o-i);c=o-i>0?c:-c;var h=this.invertDim(u,"y"),f={x:0,y:0};return f.x=this.isTransposed?h:c,f.y=this.isTransposed?c:h,f},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],r=[0,Math.sin(t),Math.sin(e)],i=Math.min(t,e);i<Math.max(t,e);i+=Math.PI/18)n.push(Math.cos(i)),r.push(Math.sin(i));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,r),maxY:Math.max.apply(Math,r)}},e}(ec),oc={},ac=function(t,e){oc[t.toLowerCase()]=e};function sc(t,e,n){var r=new Xr(e,n);r.target=t,r.propagationPath.push(t),t.emitDelegation(e,r);for(var i=t.getParent();i;)i.emitDelegation(e,r),r.propagationPath.push(i),i=i.getParent()}ac("rect",nc),ac("cartesian",nc),ac("polar",ic),ac("helix",rc);var lc=[1,0,0,0,1,0,0,0,1];function uc(t,e,n){return void 0===n&&(n=lc),e?Ci(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]):null}function cc(t,e){return t.x||t.y?Ci(e||lc,[["t",t.x,t.y]]):null}function hc(t,e){var n=[0,0];return function(t,e,n){var r=e[0],i=e[1];t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7]}(n,e,t),n}function fc(t,e,n,r){if(e){var i=uc({x:n,y:r},e,t.getMatrix());t.setMatrix(i)}}function dc(t,e,n){var r=cc({x:e,y:n});t.attr("matrix",r)}function pc(t){var e=0,n=0,r=0,i=0;return Ke(t)?e=n=r=i=t:Ce(t)&&(e=t[0],r=je(t[1])?t[0]:t[1],i=je(t[2])?t[0]:t[2],n=je(t[3])?r:t[3]),[e,r,i,n]}function gc(t){for(var e=t.childNodes,n=e.length-1;n>=0;n--)t.removeChild(e[n])}function vc(t){var e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),o=Math.max(e.x,n.x),a=Math.max(e.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}function yc(t,e,n,r){var i=t+n,o=e+r;return{x:t,y:e,width:n,height:r,minX:t,minY:e,maxX:isNaN(i)?0:i,maxY:isNaN(o)?0:o}}function mc(t,e,n){return(1-n)*t+e*n}function _c(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}}var xc=function(t,e,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)<n};function bc(t){var e,n,r,i,o,a=t.getClip(),s=a&&a.getBBox();if(t.isGroup()){var l=1/0,u=-1/0,c=1/0,h=-1/0,f=t.getChildren();f.length>0?Pe(f,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var e=bc(t),n=t.applyToMatrix([e.minX,e.minY,1]),r=t.applyToMatrix([e.minX,e.maxY,1]),i=t.applyToMatrix([e.maxX,e.minY,1]),o=t.applyToMatrix([e.maxX,e.maxY,1]),a=Math.min(n[0],r[0],i[0],o[0]),s=Math.max(n[0],r[0],i[0],o[0]),f=Math.min(n[1],r[1],i[1],o[1]),d=Math.max(n[1],r[1],i[1],o[1]);a<l&&(l=a),s>u&&(u=s),f<c&&(c=f),d>h&&(h=d)}})):(l=0,u=0,c=0,h=0),e=yc(l,c,u-l,h-c)}else e=t.getBBox();return s?(n=e,r=s,i=Math.max(n.minX,r.minX),o=Math.max(n.minY,r.minY),yc(i,o,Math.min(n.maxX,r.maxX)-i,Math.min(n.maxY,r.maxY)-o)):e}function wc(t){return t+"px"}function Mc(t,e,n,r){var i,o,a,s,l=r/(i=t,a=(o=e).x-i.x,s=o.y-i.y,Math.sqrt(a*a+s*s)),u=0;return"start"===n?u=0-l:"end"===n&&(u=1+l),{x:mc(t.x,e.x,u),y:mc(t.y,e.y,u)}}var Sc={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},jc=function(t){function e(e){var n=t.call(this,e)||this;return n.initCfg(),n}return ce(e,t),e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var e=this,n=this.get("defaultCfg")||{};Pe(t,(function(t,r){var i=t;e.get(r)!==t&&(Ee(t)&&n[r]&&(i=xn({},n[r],t)),e.set(r,i))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){en(t,"visible")&&(t.visible?this.show():this.hide()),en(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,e){this.update({offsetX:t,offsetY:e})},e.prototype.setLocation=function(t){var e=he({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType");return Pe(Sc[n],(function(n){e[n]=t.get(n)})),e},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this;Pe(this.get("defaultCfg"),(function(e,n){var r=t.get(n);if(Ee(r)){var i=xn({},e,r);t.set(n,i)}}))},e}(Kr),Cc="update_status",Ec=["visible","tip","delegateObject"],Pc=["container","group","shapesMap","isRegister","isUpdating","destroyed"],Tc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear(),this.get("group").remove()},e.prototype.clear=function(){this.get("group").clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t);return e&&e.get("component")},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var e=this.getElementId(t);return this.getElementById(e)},e.prototype.getElementsByName=function(t){var e=[];return Pe(this.get("shapesMap"),(function(n){n.get("name")===t&&e.push(n)})),e},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var e=this.get("group");this.updateElements(t,e),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){this.get("group").show(),this.set("visible",!0)},e.prototype.hide=function(){this.get("group").hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){this.get("group").set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),t.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),e=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(e=function(t,e){var n=hc(t,[e.minX,e.minY]),r=hc(t,[e.maxX,e.minY]),i=hc(t,[e.minX,e.maxY]),o=hc(t,[e.maxX,e.maxY]),a=Math.min(n[0],r[0],i[0],o[0]),s=Math.max(n[0],r[0],i[0],o[0]),l=Math.min(n[1],r[1],i[1],o[1]),u=Math.max(n[1],r[1],i[1],o[1]);return{x:a,y:l,minX:a,minY:l,maxX:s,maxY:u,width:s-a,height:u-l}}(n,e)),e},e.prototype.on=function(t,e,n){return this.get("group").on(t,e,n),this},e.prototype.off=function(t,e){var n=this.get("group");return n&&n.off(t,e),this},e.prototype.emit=function(t,e){this.get("group").emit(t,e)},e.prototype.init=function(){t.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,e){var n=this.get("group");e.target=n,n.emit(t,e),sc(n,t,e)},e.prototype.createOffScreenGroup=function(){return new(this.get("group").getGroupBase())({delegateObject:this.getDelegateObject()})},e.prototype.applyOffset=function(){var t=this.get("offsetX"),e=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:e})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",bc(t)),t},e.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var n=t.addGroup(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var n=t.addShape(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addComponent=function(t,e){var n=e.id,r=e.component,i=fe(e,["id","component"]),o=new r(he(he({},i),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return o.init(),o.render(),this.get("isRegister")&&this.registerElement(o.get("group")),o},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){this.get("group").off()},e.prototype.getElementId=function(t){return this.get("id")+"-"+this.get("name")+"-"+t},e.prototype.registerElement=function(t){var e=t.get("id");this.get("shapesMap")[e]=t},e.prototype.unregisterElement=function(t){var e=t.get("id");delete this.get("shapesMap")[e]},e.prototype.moveElementTo=function(t,e){var n=cc(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var r=e.attr("opacity");je(r)&&(r=1),e.attr("opacity",0),e.animate({opacity:r},n)},e.prototype.removeAnimation=function(t,e,n){e.animate({opacity:0},n)},e.prototype.updateAnimation=function(t,e,n,r){e.animate(n,r)},e.prototype.updateElements=function(t,e){var n,r=this,i=this.get("animate"),o=this.get("animateOption");Pe(t.getChildren().slice(0),(function(t){var a=t.get("id"),s=r.getElementById(a),l=t.get("name");if(s)if(t.get("isComponent")){var u=t.get("component"),c=s.get("component"),h=An(u.cfg,function(t,e){return void 0===e&&(e=[]),be(t,(function(t){return!xe(e,t)}))}(Te(u.cfg),Pc));c.update(h),s.set(Cc,"update")}else{var f=r.getReplaceAttrs(s,t);i&&o.update?r.updateAnimation(l,s,f,o.update):s.attr(f),t.isGroup()&&r.updateElements(t,s),Pe(Ec,(function(e){s.set(e,t.get(e))})),function(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var r={type:n.get("type"),attrs:n.attr()};t.setClip(r)}else t.setClip(null)}}(s,t),n=s,s.set(Cc,"update")}else{e.add(t);var d=e.getChildren();if(d.splice(d.length-1,1),n){var p=d.indexOf(n);d.splice(p+1,0,t)}else d.unshift(t);if(r.registerElement(t),t.set(Cc,"add"),t.get("isComponent"))(u=t.get("component")).set("container",e);else t.isGroup()&&r.registerNewGroup(t);if(n=t,i){var g=r.get("isInit")?o.appear:o.enter;g&&r.addAnimation(l,t,g)}}}))},e.prototype.clearUpdateStatus=function(t){Pe(t.getChildren(),(function(t){t.set(Cc,null)}))},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t;return(t={})[this.get("name")]=this,t.component=this,t},e.prototype.appendDelegateObject=function(t,e){var n=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),gn(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),r=e.attr();return Pe(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r},e.prototype.registerNewGroup=function(t){var e=this;Pe(t.getChildren(),(function(t){e.registerElement(t),t.set(Cc,"add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];Pe(e,(function(t,e){!t.get(Cc)||t.destroyed?n.push([e,t]):t.set(Cc,null)}));var r=this.get("animate"),i=this.get("animateOption");Pe(n,(function(n){var o=n[0],a=n[1];if(!a.destroyed){var s=a.get("name");if(r&&i.leave){var l=gn({callback:function(){t.removeElement(a)}},i.leave);t.removeAnimation(s,a,l)}else t.removeElement(a)}delete e[o]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(jc);function kc(t,e){return t.charCodeAt(e)>0&&t.charCodeAt(e)<128?1:2}function Ac(t){if(t.length>400)return function(t){for(var e=t.map((function(t){var e=t.attr("text");return je(e)?"":""+e})),n=0,r=0,i=0;i<e.length;i+=1){for(var o=0,a=0;a<=e[i].length;a+=1){var s=e[i].charCodeAt(a);o+=s>=19968&&s<=40869?2:1}o>n&&(n=o,r=i)}return t[r].getBBox().width}(t);var e=0;return Pe(t,(function(t){var n=t.getBBox().width;e<n&&(e=n)})),e}function Oc(t,e,n,r){var i;void 0===r&&(r="tail");var o=null!==(i=e.attr("text"))&&void 0!==i?i:"";if("tail"===r){var a=function(t,e,n,r){void 0===r&&(r="...");var i,o,a=zn(r,n),s=Ne(t)?t:rn(t),l=e,u=[];if(zn(t,n)<=e)return t;for(;i=s.substr(0,16),!((o=zn(i,n))+a>l&&o>l);)if(u.push(i),l-=o,!(s=s.substr(16)))return u.join("");for(;i=s.substr(0,1),!((o=zn(i,n))+a>l);)if(u.push(i),l-=o,!(s=s.substr(1)))return u.join("");return""+u.join("")+r}(o,n,An(e.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),"…");return o!==a?(e.attr("text",a),e.set("tip",o),!0):(e.set("tip",null),!1)}var s=function(t,e){var n=e.getCanvasBBox();return t?n.width:n.height}(t,e),l=function(t){for(var e=0,n=0;n<t.length;n++)e+=kc(t,n);return e}(o),u=!1;if(n<s){var c=Math.floor(n/s*l)-2,h=void 0;h=c>=0?function(t,e,n){void 0===n&&(n="tail");var r=t.length,i="";if("tail"===n){for(var o=0,a=0;o<e&&o+kc(t,a)<=e;)i+=t[a],o+=kc(t,a),a++;i+="…"}else if("head"===n){for(o=0,a=r-1;o<e&&o+kc(t,a)<=e;)i+=t[a],o+=kc(t,a),a--;i="…"+i}else{for(var s="",l="",u=(o=0,0),c=r-1;o<e;){var h=kc(t,u),f=!1;h+o<=e&&(s+=t[u],u++,o+=h,f=!0);var d=kc(t,c);if(d+o<=e&&(l=t[c]+l,o+=d,c--,f=!0),!f)break}i=s+"…"+l}return i}(o,c,r):"…",h&&(e.attr("text",h),u=!0)}return u?e.set("tip",o):e.set("tip",null),u}function Ic(t,e){var n=e.x,r=e.y,i=e.content,o=e.style,a=e.id,s=e.name,l=e.rotate,u=e.maxLength,c=e.autoEllipsis,h=e.isVertical,f=e.ellipsisPosition,d=e.background,p=t.addGroup({id:a+"-group",name:s+"-group",attrs:{x:n,y:r}}),g=p.addShape({type:"text",id:a,name:s,attrs:he({x:0,y:0,text:i},o)}),v=pc(Pn(d,"padding",0));u&&c&&Oc(!h,g,u-(v[1]+v[3]),f);if(d){var y=Pn(d,"style",{}),m=g.getCanvasBBox(),_=m.minX,x=m.minY,b=m.width,w=m.height;p.addShape("rect",{id:a+"-bg",name:a+"-bg",attrs:he({x:_-v[3],y:x-v[0],width:b+v[1]+v[3],height:w+v[0]+v[2]},y)}).toBack()}dc(p,n,r),fc(p,l,n,r)}var Bc={fontFamily:'\n BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n SimSun, "sans-serif"',textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"},Lc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:Bc.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:Bc.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:Bc.lineColor,lineWidth:1}}}})},e.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},e.prototype.renderLine=function(t){var e=this.get("start"),n=this.get("end"),r=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:he({x1:e.x,y1:e.y,x2:n.x,y2:n.y},r)})},e.prototype.getLabelPoint=function(t,e,n){var r;return((r="start"===n?0:"center"===n?.5:Ne(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:Ke(n)?n:1)>1||r<0)&&(r=1),{x:mc(t.x,e.x,r),y:mc(t.y,e.y,r)}},e.prototype.renderLabel=function(t){var e=this.get("text"),n=this.get("start"),r=this.get("end"),i=e.position,o=e.content,a=e.style,s=e.offsetX,l=e.offsetY,u=e.autoRotate,c=e.maxLength,h=e.autoEllipsis,f=e.ellipsisPosition,d=e.background,p=e.isVertical,g=void 0!==p&&p,v=this.getLabelPoint(n,r,i),y=v.x+s,m=v.y+l,_={id:this.getElementId("line-text"),name:"annotation-line-text",x:y,y:m,content:o,style:a,maxLength:c,autoEllipsis:h,ellipsisPosition:f,background:d,isVertical:g};if(u){var x=[r.x-n.x,r.y-n.y];_.rotate=Math.atan2(x[1],x[0])}Ic(t,_)},e}(Tc),Fc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:Bc.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:Bc.fontFamily}}})},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.renderInner=function(t){var e=this.getLocation(),n=e.x,r=e.y,i=this.get("content"),o=this.get("style");Ic(t,{id:this.getElementId("text"),name:this.get("name")+"-text",x:n,y:r,content:i,style:o,maxLength:this.get("maxLength"),autoEllipsis:this.get("autoEllipsis"),isVertical:this.get("isVertical"),ellipsisPosition:this.get("ellipsisPosition"),background:this.get("background"),rotate:this.get("rotate")})},e.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var e=this.getLocation(),n=e.x,r=e.y,i=this.get("rotate");dc(t,n,r),fc(t,i,n,r)}},e}(Tc),Dc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},e.prototype.renderInner=function(t){this.renderArc(t)},e.prototype.getArcPath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,i=t.endAngle,o=_c(e,n,r),a=_c(e,n,i),s=i-r>Math.PI?1:0,l=[["M",o.x,o.y]];if(i-r==2*Math.PI){var u=_c(e,n,r+Math.PI);l.push(["A",n,n,0,s,1,u.x,u.y]),l.push(["A",n,n,0,s,1,a.x,a.y])}else l.push(["A",n,n,0,s,1,a.x,a.y]);return l},e.prototype.renderArc=function(t){var e=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:he({path:e},n)})},e}(Tc),Rc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:Bc.regionColor,opacity:.4}}})},e.prototype.renderInner=function(t){this.renderRegion(t)},e.prototype.renderRegion=function(t){var e=this.get("start"),n=this.get("end"),r=this.get("style"),i=vc({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:he({x:i.x,y:i.y,width:i.width,height:i.height},r)})},e}(Tc),Nc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),e=this.get("end"),n=this.get("style"),r=vc({start:t,end:e}),i=this.get("src");return he({x:r.x,y:r.y,img:i,width:r.width,height:r.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(Tc),zc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:Bc.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:Bc.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:Bc.fontFamily}}}})},e.prototype.renderInner=function(t){Pn(this.get("line"),"display")&&this.renderLine(t),Pn(this.get("text"),"display")&&this.renderText(t),Pn(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var e=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:e})},e.prototype.renderLine=function(t){var e=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:e})},e.prototype.renderText=function(t){var e=this.getShapeAttrs().text,n=e.x,r=e.y,i=e.text,o=fe(e,["x","y","text"]),a=this.get("text"),s=a.background,l=a.maxLength,u=a.autoEllipsis,c=a.isVertival,h=a.ellipsisPosition;Ic(t,{x:n,y:r,id:this.getElementId("text"),name:"annotation-text",content:i,style:o,background:s,maxLength:l,autoEllipsis:u,isVertival:c,ellipsisPosition:h})},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),r=this.get("y"),i=Pn(this.get("line"),"length",0),o=this.get("coordinateBBox"),a=t.getBBox(),s=a.minX,l=a.maxX,u=a.minY,c=a.maxY,h=t.findById(this.getElementId("text-group")),f=t.findById(this.getElementId("text")),d=t.findById(this.getElementId("line"));if(o){if(h){if(n+s<=o.minX){var p=o.minX-(n+s);dc(h,h.attr("x")+p,h.attr("y"))}if(n+l>=o.maxX){p=n+l-o.maxX;dc(h,h.attr("x")-p,h.attr("y"))}}if("upward"===e&&r+u<=o.minY||"upward"!==e&&r+c>=o.maxY){var g=void 0,v=void 0;"upward"===e&&r+u<=o.minY?(g="top",v=1):(g="bottom",v=-1),f.attr("textBaseline",g),d&&d.attr("path",[["M",0,0],["L",0,i*v]]),dc(h,h.attr("x"),(i+2)*v)}}},e.prototype.getShapeAttrs=function(){var t=Pn(this.get("line"),"display"),e=Pn(this.get("point"),"style",{}),n=Pn(this.get("line"),"style",{}),r=Pn(this.get("text"),"style",{}),i=this.get("direction"),o=t?Pn(this.get("line"),"length",0):0,a="upward"===i?-1:1;return{point:he({x:0,y:0},e),line:he({path:[["M",0,0],["L",0,o*a]]},n),text:he({x:0,y:(o+2)*a,text:Pn(this.get("text"),"content",""),textBaseline:"upward"===i?"bottom":"top"},r)}},e}(Tc),Hc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:Bc.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:Bc.textColor,fontFamily:Bc.fontFamily}}}})},e.prototype.renderInner=function(t){var e=Pn(this.get("region"),"style",{});Pn(this.get("text"),"style",{});var n=this.get("lineLength")||0,r=this.get("points");if(r.length){var i=function(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),r=Math.min.apply(Math,e),i=Math.min.apply(Math,n),o=Math.max.apply(Math,e),a=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}(r),o=[];o.push(["M",r[0].x,i.minY-n]),r.forEach((function(t){o.push(["L",t.x,t.y])})),o.push(["L",r[r.length-1].x,r[r.length-1].y-n]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:he({path:o},e)}),Ic(t,he({id:this.getElementId("text"),name:"annotation-text",x:(i.minX+i.maxX)/2,y:i.minY-n},this.get("text")))}},e}(Tc),Gc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var e=this,n=this.get("start"),r=this.get("end"),i=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});Pe(this.get("shapes"),(function(t,n){var r=t.get("type"),o=vn(t.attr());e.adjustShapeAttrs(o),e.addShape(i,{id:e.getElementId("shape-"+r+"-"+n),capture:!1,type:r,attrs:o})}));var o=vc({start:n,end:r});i.setClip({type:"rect",attrs:{x:o.minX,y:o.minY,width:o.width,height:o.height}})},e.prototype.adjustShapeAttrs=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},e}(Tc),Yc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{name:"annotation",type:"shape",draw:Ln})},e.prototype.renderInner=function(t){var e=this.get("render");Se(e)&&e(t)},e}(Tc),Vc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=t?"auto":"none";this.getContainer().style.pointerEvents=e,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer();return yc(parseFloat(t.style.left)||0,parseFloat(t.style.top)||0,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){gc(this.get("container"))},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),t.prototype.destroy.call(this)},e.prototype.init=function(){t.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if(je(t)){t=this.createDom();var e=this.get("parent");Ne(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else Ne(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t=t?xn({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n,r=this.get("containerClassName");if(r&&(n=r,e.className.match(new RegExp("(\\s|^)"+n+"(\\s|$)"))))lr(e,t[r])}},e.prototype.applyChildrenStyles=function(t,e){Pe(e,(function(e,n){Pe(t.getElementsByClassName(n),(function(t){lr(t,e)}))}))},e.prototype.applyStyle=function(t,e){lr(e,this.get("domStyles")[t])},e.prototype.createDom=function(){return ir(this.get("containerTpl"))},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){en(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(jc),Xc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'<div class="g2-html-annotation" style="position:absolute"></div>',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");gc(t);var n=Se(e)?e(t):e;if(dn(n))t.appendChild(n);else if(Ne(n)||Ke(n)){var r=ir(""+n);r&&t.appendChild(r)}this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,r=e.y,i=this.get("alignX"),o=this.get("alignY"),a=this.get("offsetX"),s=this.get("offsetY"),l=sr(t),u=ar(t),c={x:n,y:r};"middle"===i?c.x-=Math.round(l/2):"right"===i&&(c.x-=Math.round(l)),"middle"===o?c.y-=Math.round(u/2):"bottom"===o&&(c.y-=Math.round(u)),a&&(c.x+=a),s&&(c.y+=s),lr(t,{position:"absolute",left:c.x+"px",top:c.y+"px",zIndex:this.get("zIndex")})},e}(Vc),qc=Object.freeze(Object.defineProperty({__proto__:null,Line:Lc,Text:Fc,Arc:Dc,Region:Rc,Image:Nc,DataMarker:zc,DataRegion:Hc,RegionFilter:Gc,Shape:Yc,Html:Xc},Symbol.toStringTag,{value:"Module"}));function Wc(t,e,n){var r=e+"Style",i=null;return Pe(n,(function(e,n){t[n]&&e[r]&&(i||(i={}),gn(i,e[r]))})),i}var Uc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:Bc.lineColor}},tickLine:{style:{lineWidth:1,stroke:Bc.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:Bc.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:Bc.textColor,fontFamily:Bc.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:Bc.textColor,textBaseline:"middle",fontFamily:Bc.fontFamily,textAlign:"center"},iconStyle:{fill:Bc.descriptionIconFill,stroke:Bc.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:Bc.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},e.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("ticks")},e.prototype.setItems=function(t){this.update({ticks:t})},e.prototype.updateItem=function(t,e){gn(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n,this.updateTickStates(t)},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("tickStates"),n=[];return Pe(e,(function(e,r){t[r]&&n.push(r)})),n},e.prototype.clearItemsState=function(t){var e=this;Pe(this.getItemsByState(t),(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return be(n,(function(n){return e.hasState(n,t)}))},e.prototype.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},e.prototype.getTextAnchor=function(t){var e;return Qe(t[0],0)?e="center":t[0]>0?e="start":t[0]<0&&(e="end"),e},e.prototype.getTextBaseline=function(t){var e;return Qe(t[1],0)?e="middle":t[1]>0?e="top":t[1]<0&&(e="bottom"),e},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var e=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:gn({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],r=this.get("tickLine"),i=r.alignTick,o=r.length,a=1;return t.length>=2&&(a=t[1].value-t[0].value),Pe(t,(function(t){var r=t.point;i||(r=e.getTickPoint(t.value-a/2));var s=e.getSidePoint(r,o);n.push({startPoint:r,tickValue:t.value,endPoint:s,tickId:t.id,id:"tickline-"+t.id})})),n},e.prototype.getSubTickLineItems=function(t){var e=[],n=this.get("subTickLine"),r=n.count,i=t.length;if(i>=2)for(var o=0;o<i-1;o++)for(var a=t[o],s=t[o+1],l=0;l<r;l++){var u=(l+1)/(r+1),c=(1-u)*a.tickValue+u*s.tickValue,h=this.getTickPoint(c),f=this.getSidePoint(h,n.length);e.push({startPoint:h,endPoint:f,tickValue:c,id:"sub-"+a.id+"-"+l})}return e},e.prototype.getTickLineAttrs=function(t,e,n,r){var i=this.get(e).style,o={points:[t.startPoint,t.endPoint]},a=Pn(this.get("theme"),["tickLine","style"],{});i=Se(i)?gn({},a,i(o,n,r)):i;var s=t.startPoint,l=t.endPoint;return he({x1:s.x,y1:s.y,x2:l.x,y2:l.y},i)},e.prototype.drawTick=function(t,e,n,r,i){this.addShape(e,{type:"line",id:this.getElementId(t.id),name:"axis-"+n,attrs:this.getTickLineAttrs(t,n,r,i)})},e.prototype.drawTickLines=function(t){var e=this,n=this.get("ticks"),r=this.get("subTickLine"),i=this.getTickLineItems(n),o=this.addGroup(t,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),a=this.get("tickLine");if(Pe(i,(function(n,r){if(a.displayWithLabel){var s=e.getElementId("label-"+n.tickId);t.findById(s)&&e.drawTick(n,o,"tickLine",r,i)}else e.drawTick(n,o,"tickLine",r,i)})),r){var s=this.getSubTickLineItems(i);Pe(s,(function(t,n){e.drawTick(t,o,"subTickLine",n,s)}))}},e.prototype.processTicks=function(){var t=this;Pe(this.get("ticks"),(function(e){e.point=t.getTickPoint(e.value),je(e.id)&&(e.id=e.name)}))},e.prototype.drawTicks=function(t){var e=this;this.optimizeTicks(),this.processTicks(),this.get("label")&&this.drawLabels(t),this.get("tickLine")&&this.drawTickLines(t),Pe(this.get("ticks"),(function(n){e.applyTickStates(n,t)}))},e.prototype.optimizeTicks=function(){var t=this.get("optimize"),e=this.get("ticks");if(t&&t.enable&&t.threshold>0){var n=Fn(e);if(n>t.threshold){var r=Math.ceil(n/t.threshold),i=e.filter((function(t,e){return e%r==0}));this.set("ticks",i),this.set("originalTicks",e)}}},e.prototype.getLabelAttrs=function(t,e,n){var r=this.get("label"),i=r.offset,o=r.offsetX,a=r.offsetY,s=r.rotate,l=r.formatter,u=this.getSidePoint(t.point,i),c=this.getSideVector(i,u),h=l?l(t.name,t,e):t.name,f=r.style;f=Se(f)?Pn(this.get("theme"),["label","style"],{}):f;var d=gn({x:u.x+o,y:u.y+a,text:h,textAlign:this.getTextAnchor(c),textBaseline:this.getTextBaseline(c)},f);return s&&(d.matrix=uc(u,s)),d},e.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),r=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});Pe(n,(function(t,i){e.addShape(r,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,i,n),delegateObject:{tick:t,item:t,index:i}})})),this.processOverlap(r);var i=r.getChildren(),o=Pn(this.get("theme"),["label","style"],{}),a=this.get("label"),s=a.style,l=a.formatter;if(Se(s)){var u=i.map((function(t){return Pn(t.get("delegateObject"),"tick")}));Pe(i,(function(t,e){var n=t.get("delegateObject").tick,r=l?l(n.name,n,e):n.name,i=gn({},o,s(r,e,u));t.attr(i)}))}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,r=t.offset,i=t.spacing,o=void 0===i?0:i,a=t.autoRotate,s=e.fontSize,l=.5;"start"===n?l=0:"end"===n&&(l=1);var u=this.getTickPoint(l),c=this.getSidePoint(u,r||o+s/2),h=gn({x:c.x,y:c.y,text:t.text},e),f=t.rotate,d=f;if(je(f)&&a){d=Ei(this.getAxisVector(u),[1,0],!0)}if(d){var p=uc(c,d);h.matrix=p}return h},e.prototype.drawTitle=function(t){var e,n=this.getTitleAttrs(),r=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});(null===(e=this.get("title"))||void 0===e?void 0:e.description)&&this.drawDescriptionIcon(t,r,n.matrix)},e.prototype.drawDescriptionIcon=function(t,e,n){var r=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),i=e.getBBox(),o=i.maxX,a=i.maxY,s=i.height,l=this.get("title").iconStyle,u=s/2,c=u/6,h=o+4,f=a-s/2,d=[h+u,f-u],p=d[0],g=d[1],v=[p+u,g+u],y=v[0],m=v[1],_=[p,m+u],x=_[0],b=_[1],w=[h,g+u],M=w[0],S=w[1],j=[h+u,f-s/4],C=j[0],E=j[1],P=[C,E+c],T=P[0],k=P[1],A=[T,k+c],O=A[0],I=A[1],B=[O,I+3*u/4],L=B[0],F=B[1];this.addShape(r,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:he({path:[["M",p,g],["A",u,u,0,0,1,y,m],["A",u,u,0,0,1,x,b],["A",u,u,0,0,1,M,S],["A",u,u,0,0,1,p,g],["M",C,E],["L",T,k],["M",O,I],["L",L,F]],lineWidth:c,matrix:n},l)}),this.addShape(r,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:h,y:f-s/2,width:s,height:s,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},e.prototype.applyTickStates=function(t,e){if(this.getItemStates(t).length){var n=this.get("tickStates"),r=this.getElementId("label-"+t.id),i=e.findById(r);if(i){var o=Wc(t,"label",n);o&&i.attr(o)}var a=this.getElementId("tickline-"+t.id),s=e.findById(a);if(s){var l=Wc(t,"tickLine",n);l&&s.attr(l)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),r=this.get("label"),i=this.getElementByLocalId("label-"+t.id),o=this.get("tickLine"),a=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(i){var s=Wc(t,"label",n);s&&i.attr(s)}if(a){var l=Wc(t,"tickLine",n);l&&a.attr(l)}}else i&&i.attr(r.style),a&&a.attr(o.style)},e}(Tc);function Zc(t,e,n,r){var i=e.getChildren(),o=!1;return Pe(i,(function(e){var i=Oc(t,e,n,r);o=o||i})),o}function Kc(t,e,n){return Zc(t,e,n,"tail")}var Qc=Object.freeze(Object.defineProperty({__proto__:null,getDefault:function(){return Kc},ellipsisHead:function(t,e,n){return Zc(t,e,n,"head")},ellipsisTail:Kc,ellipsisMiddle:function(t,e,n){return Zc(t,e,n,"middle")}},Symbol.toStringTag,{value:"Module"}));function $c(t){var e=function(t){var e=t.attr("matrix");return e&&1!==e[0]}(t)?function(t){var e=[0,0,0];return hi(e,[1,0,0],t),Math.atan2(e[1],e[0])}(t.attr("matrix")):0;return e%360}function Jc(t,e,n,r){var i=!1,o=$c(e),a=t?Math.abs(n.attr("y")-e.attr("y")):Math.abs(n.attr("x")-e.attr("x")),s=(t?n.attr("y")>e.attr("y"):n.attr("x")>e.attr("x"))?e.getBBox():n.getBBox();if(t){var l=Math.abs(Math.cos(o));i=xc(l,0,Math.PI/180)?s.width+r>a:s.height/l+r>a}else{l=Math.abs(Math.sin(o));i=xc(l,0,Math.PI/180)?s.width+r>a:s.height/l+r>a}return i}function th(t,e,n,r){var i=(null==r?void 0:r.minGap)||0,o=e.getChildren().slice().filter((function(t){return t.get("visible")}));if(!o.length)return!1;var a=!1;n&&o.reverse();for(var s=o.length,l=o[0],u=1;u<s;u++){var c=o[u];c.getBBox(),Jc(t,l,c,i)?(c.hide(),a=!0):l=c}return a}function eh(t,e,n){var r=(null==n?void 0:n.minGap)||0,i=e.getChildren().slice();if(i.length<2)return!1;var o=!1,a=i[0],s=a.getBBox(),l=i[1],u=i.length,c=$c(a),h=t?Math.abs(l.attr("y")-a.attr("y")):Math.abs(l.attr("x")-a.attr("x")),f=0;if(t){var d=Math.abs(Math.cos(c));if(xc(d,0,Math.PI/180))f=(Ac(i)+r)/h;else f=(s.height/d+r)/h}else{d=Math.abs(Math.sin(c));if(xc(d,0,Math.PI/180))f=(Ac(i)+r)/h;else f=(s.height/d+r)/h}if(f>1){f=Math.ceil(f);for(var p=0;p<u;p++)p%f!=0&&(i[p].hide(),o=!0)}return o}function nh(t,e,n,r){var i=eh(t,e,r);return th(t,e,!1)&&(i=!0),i}var rh=Object.freeze(Object.defineProperty({__proto__:null,getDefault:function(){return nh},reserveFirst:function(t,e,n,r){return th(t,e,!1,r)},reserveLast:function(t,e,n,r){return th(t,e,!0,r)},reserveBoth:function(t,e,n,r){var i=(null==r?void 0:r.minGap)||0,o=e.getChildren().slice();if(o.length<=2)return!1;for(var a=!1,s=o.length,l=o[0],u=o[s-1],c=l,h=1;h<s-1;h++){var f=o[h];f.getBBox(),Jc(t,c,f,i)?(f.hide(),a=!0):c=f}return Jc(t,c,u,i)&&(c.hide(),a=!0),a},equidistance:nh,equidistanceWithReverseBoth:function(t,e,n,r){var i=e.getChildren().slice(),o=eh(t,e,r);if(i.length>2){var a=i[0],s=i[i.length-1];a.get("visible")||(a.show(),th(t,e,!1,r)&&(o=!0)),s.get("visible")||(s.show(),th(t,e,!0,r)&&(o=!0))}return o}},Symbol.toStringTag,{value:"Module"}));function ih(t,e,n,r){var i=e.getChildren();if(!i.length)return!1;if(!t&&i.length<2)return!1;var o=Ac(i),a=!1;t?a=!!n&&o>n:a=o>Math.abs(i[1].attr("x")-i[0].attr("x"));a&&function(t,e){Pe(t,(function(t){var n=uc({x:t.attr("x"),y:t.attr("y")},e);t.attr("matrix",n)}))}(i,r(n,o));return a}function oh(t,e,n,r){return ih(t,e,n,(function(){return Ke(r)?r:t?Bc.verticalAxisRotate:Bc.horizontalAxisRotate}))}var ah,sh=Object.freeze(Object.defineProperty({__proto__:null,getDefault:function(){return oh},fixedAngle:oh,unfixedAngle:function(t,e,n){return ih(t,e,n,(function(e,n){if(!e)return t?Bc.verticalAxisRotate:Bc.horizontalAxisRotate;if(t)return-Math.acos(e/n);var r=0;return(e>n||(r=Math.asin(e/n))>Math.PI/4)&&(r=Math.PI/4),r}))}},Symbol.toStringTag,{value:"Module"})),lh=Object.freeze(Object.defineProperty({__proto__:null,autoHide:rh,autoRotate:sh,autoEllipsis:Qc},Symbol.toStringTag,{value:"Module"})),uh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},e.prototype.getInnerLayoutBBox=function(){var e=this.get("start"),n=this.get("end"),r=t.prototype.getInnerLayoutBBox.call(this),i=Math.min(e.x,n.x,r.x),o=Math.min(e.y,n.y,r.y),a=Math.max(e.x,n.x,r.maxX),s=Math.max(e.y,n.y,r.maxY);return{x:i,y:o,minX:i,minY:o,maxX:a,maxY:s,width:a-i,height:s-o}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return Qe(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return Qe(t.y,e.y)},e.prototype.getTickPoint=function(t){var e=this.get("start"),n=this.get("end"),r=n.x-e.x,i=n.y-e.y;return{x:e.x+r*t,y:e.y+i*t}},e.prototype.getSideVector=function(t){var e=_i([0,0],this.getAxisVector()),n=this.get("verticalFactor");return vi([0,0],[e[1],-1*e[0]],t*n)},e.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},e.prototype.processOverlap=function(t){var e=this,n=this.isVertical(),r=this.isHorizontal();if(n||r){var i=this.get("label"),o=this.get("title"),a=this.get("verticalLimitLength"),s=i.offset,l=a,u=0,c=0;if(o&&(u=o.style.fontSize,c=o.spacing),l&&(l=l-s-c-u),Pe(this.get("overlapOrder"),(function(n){i[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,i[n],t,l)})),o&&je(o.offset)){var h=t.getCanvasBBox(),f=n?h.width:h.height;o.offset=s+f+c+u/2}}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||je(e.rotate)},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,o=this.isVertical(),a=!1,s=lh[t];if(!0===e)this.get("label"),a=s.getDefault()(o,n,r);else if(Se(e))a=e(o,n,r);else if(Ee(e)){var l=e;s[l.type]&&(a=s[l.type](o,n,r,l.cfg))}else s[e]&&(a=s[e](o,n,r));if("autoRotate"===t){if(a){var u=n.getChildren(),c=this.get("verticalFactor");Pe(u,(function(t){if("center"===t.attr("textAlign")){var e=c>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){Pe(n.getChildren().slice(0),(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(Uc),ch=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,r=this.get("radius"),i=r,o=this.get("startAngle"),a=this.get("endAngle"),s=[];if(Math.abs(a-o)===2*Math.PI)s=[["M",e,n-i],["A",r,i,0,1,1,e,n+i],["A",r,i,0,1,1,e,n-i],["Z"]];else{var l=this.getCirclePoint(o),u=this.getCirclePoint(a),c=Math.abs(a-o)>Math.PI?1:0,h=o>a?0:1;s=[["M",e,n],["L",l.x,l.y],["A",r,i,0,c,h,u.x,u.y],["L",e,n]]}return s},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this.getCirclePoint(n)},e.prototype.getSideVector=function(t,e){var n=this.get("center"),r=[e.x-n.x,e.y-n.y];return vi(r,r,this.get("verticalFactor")*t/mi(r)),r},e.prototype.getAxisVector=function(t){var e=this.get("center"),n=[t.x-e.x,t.y-e.y];return[n[1],-1*n[0]]},e.prototype.getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||je(e.rotate)},e.prototype.processOverlap=function(t){var e=this,n=this.get("label"),r=this.get("title"),i=this.get("verticalLimitLength"),o=n.offset,a=i,s=0,l=0;if(r&&(s=r.style.fontSize,l=r.spacing),a&&(a=a-o-l-s),Pe(this.get("overlapOrder"),(function(r){n[r]&&e.canProcessOverlap(r)&&e.autoProcessOverlap(r,n[r],t,a)})),r&&je(r.offset)){var u=t.getCanvasBBox().height;r.offset=o+u+l+s/2}},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,o=!1,a=lh[t];if(r>0)if(!0===e)o=a.getDefault()(!1,n,r);else if(Se(e))o=e(!1,n,r);else if(Ee(e)){var s=e;a[s.type]&&(o=a[s.type](!1,n,r,s.cfg))}else a[e]&&(o=a[e](!1,n,r));if("autoRotate"===t){if(o){var l=n.getChildren(),u=this.get("verticalFactor");Pe(l,(function(t){if("center"===t.attr("textAlign")){var e=u>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){Pe(n.getChildren().slice(0),(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(Uc),hh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:Bc.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:Bc.textColor,textAlign:"center",textBaseline:"middle",fontFamily:Bc.fontFamily}},textBackground:{padding:5,style:{stroke:Bc.lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var e=this.get("text"),n=e.style,r=e.autoRotate,i=e.content;if(!je(i)){var o=this.getTextPoint(),a=null;if(r)a=uc(o,this.getRotateAngle());this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:he(he(he({},o),{text:i,matrix:a}),n)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),n=this.get("line").style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:he({path:e},n)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),r=this.get("textBackground");if(r&&n){var i=n.getBBox(),o=pc(r.padding),a=r.style;this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:he({x:i.x-o[3],y:i.y-o[0],width:i.width+o[1]+o[3],height:i.height+o[0]+o[2],matrix:n.attr("matrix")},a)}).toBack()}},e}(Tc),fh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text").position,i=Math.atan2(n.y-e.y,n.x-e.x);return"start"===r?i-Math.PI/2:i+Math.PI/2},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text");return Mc(e,n,r.position,r.offset)},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.start,n=t.end;return[["M",e.x,e.y],["L",n.x,n.y]]},e}(hh),dh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.startAngle,n=t.endAngle;return"start"===this.get("text").position?e+Math.PI/2:n-Math.PI/2},e.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,n=t.offset,r=this.getLocation(),i=r.center,o=r.radius,a=r.startAngle,s=r.endAngle,l="start"===e?a:s,u=this.getRotateAngle()-Math.PI,c=_c(i,o,l),h=Math.cos(u)*n,f=Math.sin(u)*n;return{x:c.x+h,y:c.y+f}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,i=t.endAngle,o=null;if(i-r==2*Math.PI){var a=e.x,s=e.y;o=[["M",a,s-n],["A",n,n,0,1,1,a,s+n],["A",n,n,0,1,1,a,s-n],["Z"]]}else{var l=_c(e,n,r),u=_c(e,n,i),c=Math.abs(i-r)>Math.PI?1:0,h=r>i?0:1;o=[["M",l.x,l.y],["A",n,n,0,c,h,u.x,u.y]]}return o},e}(hh),ph="g2-crosshair",gh=ph+"-line",vh=ph+"-text",yh=((ah={})[""+ph]={position:"relative"},ah[""+gh]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},ah[""+vh]={position:"absolute",color:Bc.textColor,fontFamily:Bc.fontFamily},ah),mh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'<div class="'+ph+'"></div>',crosshairTpl:'<div class="'+gh+'"></div>',textTpl:'<span class="'+vh+'">{content}</span>',domStyles:null,containerClassName:ph,defaultStyles:yh,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},e.prototype.render=function(){this.resetText(),this.resetPosition()},e.prototype.initCrossHair=function(){var t=this.getContainer(),e=ir(this.get("crosshairTpl"));t.appendChild(e),this.applyStyle(gh,e),this.set("crosshairEl",e)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text");return Mc(e,n,r.position,r.offset)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var n=t.content;if(!e){var r=this.getContainer();e=ir(an(this.get("textTpl"),t)),r.appendChild(e),this.applyStyle(vh,e),this.set("textEl",e)}e.innerHTML=n}else e&&e.remove()},e.prototype.isVertical=function(t,e){return t.x===e.x},e.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var e=this.get("start"),n=this.get("end"),r=Math.min(e.x,n.x),i=Math.min(e.y,n.y);this.isVertical(e,n)?lr(t,{width:"1px",height:wc(Math.abs(n.y-e.y))}):lr(t,{height:"1px",width:wc(Math.abs(n.x-e.x))}),lr(t,{top:wc(i),left:wc(r)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,n=t.clientWidth,r=this.getTextPoint();switch(e){case"center":r.x=r.x-n/2;break;case"right":r.x=r.x-n}lr(t,{top:wc(r.y),left:wc(r.x)})}},e.prototype.updateInner=function(e){en(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(Vc),_h=Object.freeze(Object.defineProperty({__proto__:null,Line:fh,Circle:dh,Base:hh,Html:mh},Symbol.toStringTag,{value:"Module"})),xh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:Bc.lineColor}}}})},e.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,e){var n=this.getGridPath(t),r=e.slice(0).reverse(),i=this.getGridPath(r,!0);return this.get("closed")?n=n.concat(i):(i[0][0]="L",(n=n.concat(i)).push(["Z"])),n},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,n=this.get("line"),r=this.get("items"),i=this.get("alternateColor"),o=null;Pe(r,(function(a,s){var l=a.id||s;if(n){var u=e.getPathStyle();u=Se(u)?u(a,s,r):u;var c=e.getElementId("line-"+l),h=e.getGridPath(a.points);e.addShape(t,{type:"path",name:"grid-line",id:c,attrs:gn({path:h},u)})}if(i&&s>0){var f=e.getElementId("region-"+l),d=s%2==0;if(Ne(i))d&&e.drawAlternateRegion(f,t,o.points,a.points,i);else{var p=d?i[1]:i[0];e.drawAlternateRegion(f,t,o.points,a.points,p)}}o=a}))},e.prototype.drawAlternateRegion=function(t,e,n,r,i){var o=this.getAlternatePath(n,r);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:o,fill:i}})},e}(Tc);var bh,wh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n,r,i,o,a,s,l=this.getLineType(),u=this.get("closed"),c=[];if(t.length)if("circle"===l){var h=this.get("center"),f=t[0],d=(n=h.x,r=h.y,i=f.x,o=f.y,a=i-n,s=o-r,Math.sqrt(a*a+s*s)),p=e?0:1;u?(c.push(["M",h.x,h.y-d]),c.push(["A",d,d,0,0,p,h.x,h.y+d]),c.push(["A",d,d,0,0,p,h.x,h.y-d]),c.push(["Z"])):Pe(t,(function(t,e){0===e?c.push(["M",t.x,t.y]):c.push(["A",d,d,0,0,p,t.x,t.y])}))}else Pe(t,(function(t,e){0===e?c.push(["M",t.x,t.y]):c.push(["L",t.x,t.y])})),u&&c.push(["Z"]);return c},e}(xh),Mh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return Pe(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(xh),Sh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var e=t.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),r=this.get("maxHeight"),i=e.width,o=e.height;return n&&(i=Math.min(i,n)),r&&(o=Math.min(o,r)),yc(e.minX,e.minY,i,o)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),r=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:e+r})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var e=this.get("background"),n=t.getBBox(),r=pc(e.padding),i=he({x:0,y:0,width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},e.style);this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:i}).toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),r=n.spacing,i=n.style,o=n.text,a=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:he({text:o,x:e.x,y:e.y},i)}).getBBox();this.set("currentPoint",{x:e.x,y:a.maxY+r})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=pc(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(Tc),jh={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},Ch={fill:Bc.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:Bc.fontFamily,fontWeight:"normal",lineHeight:12},Eh="navigation-arrow-right",Ph="navigation-arrow-left",Th={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},kh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPageIndex=1,e.totalPagesCnt=1,e.pageWidth=0,e.pageHeight=0,e.startX=0,e.startY=0,e.onNavigationBack=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex>1){e.currentPageIndex-=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e.onNavigationAfter=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex<e.totalPagesCnt){e.currentPageIndex+=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{name:"legend",type:"category",itemSpacing:24,itemMarginBottom:8,maxItemWidth:null,itemWidth:null,itemHeight:null,itemName:{},itemValue:null,maxWidth:null,maxHeight:null,marker:{},radio:null,items:[],itemStates:{},itemBackground:{},pageNavigator:{},defaultCfg:{title:{spacing:5,style:{fill:Bc.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:Bc.lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},pageNavigator:jh,itemName:{spacing:16,style:Ch},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:Ch,spacing:6},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:Bc.uncheckedColor},markerStyle:{fill:Bc.uncheckedColor,stroke:Bc.uncheckedColor}},inactive:{nameStyle:{fill:Bc.uncheckedColor},markerStyle:{opacity:.2}}}}})},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("items")},e.prototype.setItems=function(t){this.update({items:t})},e.prototype.updateItem=function(t,e){gn(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("item-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n;var r=this.getElementByLocalId("item-"+t.id);if(r){var i=this.getItems().indexOf(t),o=this.createOffScreenGroup(),a=this.drawItem(t,i,this.getItemHeight(),o);this.updateElements(a,r),this.clearUpdateStatus(r)}},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("itemStates"),n=[];return Pe(e,(function(e,r){t[r]&&n.push(r)})),n},e.prototype.clearItemsState=function(t){var e=this;Pe(this.getItemsByState(t),(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return be(n,(function(n){return e.hasState(n,t)}))},e.prototype.drawLegendContent=function(t){this.processItems(),this.drawItems(t)},e.prototype.processItems=function(){Pe(this.get("items"),(function(t){t.id||(t.id=t.name)}))},e.prototype.drawItems=function(t){var e=this,n=this.addGroup(t,{id:this.getElementId("item-container-group"),name:"legend-item-container-group"}),r=this.addGroup(n,{id:this.getElementId("item-group"),name:"legend-item-group"}),i=this.getItemHeight(),o=this.get("itemWidth"),a=this.get("itemSpacing"),s=this.get("itemMarginBottom"),l=this.get("currentPoint"),u=l.x,c=l.y,h=this.get("layout"),f=this.get("items"),d=!1,p=0,g=this.get("maxWidth"),v=this.get("maxHeight");Pe(f,(function(t,n){var f=e.drawItem(t,n,i,r),y=f.getBBox(),m=o||y.width;m>p&&(p=m),"horizontal"===h?(g&&g<l.x+m-u&&(d=!0,l.x=u,l.y+=i+s),e.moveElementTo(f,l),l.x+=m+a):(v&&v<l.y+i+s-c&&(d=!0,l.x+=p+a,l.y=c,p=0),e.moveElementTo(f,l),l.y+=i+s)})),d&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=u,this.startY=c,this.adjustNavigation(t,r))},e.prototype.getItemHeight=function(){var t=this.get("itemHeight");if(!t){var e=(this.get("itemName")||{}).style;if(Se(e)){var n=this.getItems();n.forEach((function(r,i){var o=he(he({},Ch),e(r,i,n)).fontSize;t<o&&(t=o)}))}else e&&(t=e.fontSize)}return t},e.prototype.drawMarker=function(t,e,n,r){var i=he(he(he({x:0,y:r/2},e.style),{symbol:Pn(n.marker,"symbol","circle")}),Pn(n.marker,"style",{})),o=this.addShape(t,{type:"marker",id:this.getElementId("item-"+n.id+"-marker"),name:"legend-item-marker",attrs:i}),a=o.getBBox();o.attr("x",a.width/2);var s=o.attr(),l=s.stroke,u=s.fill;return l&&o.set("isStroke",!0),u&&o.set("isFill",!0),o},e.prototype.drawItemText=function(t,e,n,r,i,o,a){var s=n.formatter,l=n.style,u=he(he({x:o,y:i/2,text:s?s(r[e],r,a):r[e]},Ch),Se(l)?l(r,a,this.getItems()):l);return this.addShape(t,{type:"text",id:this.getElementId("item-"+r.id+"-"+e),name:"legend-item-"+e,attrs:u})},e.prototype.drawRadio=function(t,e,n,r,i){var o,a,s=e.style||{},l=null!==(o=s.r)&&void 0!==o?o:r/2,u=3.6*l/8,c=[i+l,r/2-l],h=c[0],f=c[1],d=[h+l,f+l],p=d[0],g=d[1],v=[h,g+l],y=v[0],m=v[1],_=[i,f+l],x=_[0],b=_[1],w=n.showRadio,M=he(he({path:[["M",h,f],["A",l,l,0,0,1,p,g],["L",p-u,g],["L",p,g],["A",l,l,0,0,1,y,m],["L",y,m-u],["L",y,m],["A",l,l,0,0,1,x,b],["L",x+u,b],["L",x,b],["A",l,l,0,0,1,h,f],["L",h,f+u]],stroke:"#000000",fill:"#ffffff"},s),{opacity:w?null!==(a=null==s?void 0:s.opacity)&&void 0!==a?a:.45:0}),S=this.addShape(t,{type:"path",id:this.getElementId("item-"+n.id+"-radio"),name:"legend-item-radio",attrs:M});return S.set("tip",e.tip),S},e.prototype.drawItem=function(t,e,n,r){var i="item-"+t.id,o=this.addGroup(r,{name:"legend-item-container",id:this.getElementId("item-container-"+i),delegateObject:{item:t,index:e}}),a=this.addGroup(o,{name:"legend-item",id:this.getElementId(i),delegateObject:{item:t,index:e}}),s=this.get("marker"),l=this.get("itemName"),u=this.get("itemValue"),c=this.get("itemBackground"),h=this.get("radio"),f=this.getLimitItemWidth(),d=0;if(s){var p=this.drawMarker(a,s,t,n),g=s.spacing,v=Pn(t,["marker","spacing"]);Ke(v)&&(g=v),d=p.getBBox().maxX+g}if(l){var y=this.drawItemText(a,"name",l,t,n,d,e);f&&Oc(!0,y,Ue(f-d,0,f)),d=y.getBBox().maxX+l.spacing}if(u){var m=this.drawItemText(a,"value",u,t,n,d,e);f&&(u.alignRight?(m.attr({textAlign:"right",x:f}),Oc(!0,m,Ue(f-d,0,f),"head")):Oc(!0,m,Ue(f-d,0,f))),d=m.getBBox().maxX+u.spacing}if(h&&this.drawRadio(a,h,t,n,d),c){var _=a.getBBox();this.addShape(a,{type:"rect",name:"legend-item-background",id:this.getElementId(i+"-background"),attrs:he({x:0,y:0,width:_.width,height:n},c.style)}).toBack()}return this.applyItemStates(t,a),a},e.prototype.adjustNavigation=function(t,e){var n=this,r=this.startX,i=this.startY,o=this.get("layout"),a=e.findAll((function(t){return"legend-item"===t.get("name")})),s=this.get("maxWidth"),l=this.get("maxHeight"),u=this.get("itemWidth"),c=this.get("itemSpacing"),h=this.getItemHeight(),f=xn({},jh,this.get("pageNavigator")),d=this.drawNavigation(t,o,"00/00",f),p=d.getBBox(),g={x:r,y:i},v=1,y=0,m=0,_=0,x=this.get("itemMarginBottom");if("horizontal"===o){var b=this.get("maxRow")||1,w=h+(1===b?0:x);this.pageHeight=w*b,Pe(a,(function(t){var e=t.getBBox(),i=u||e.width;(y&&y<g.x+i+c||s<g.x+i+c+p.width)&&(1===v&&(y=g.x+c,n.pageWidth=y,n.moveElementTo(d,{x:s-c-p.width-p.minX,y:g.y+h/2-p.height/2-p.minY})),v+=1,g.x=r,g.y+=w),n.moveElementTo(t,g),t.getParent().setClip({type:"rect",attrs:{x:g.x,y:g.y,width:i+c,height:h}}),g.x+=i+c}))}else{Pe(a,(function(t){var e=t.getBBox();e.width>m&&(m=e.width)})),_=m,m+=c,s&&(m=Math.min(s,m),_=Math.min(s,_)),this.pageWidth=m,this.pageHeight=l-Math.max(p.height,h+x);var M=Math.floor(this.pageHeight/(h+x));Pe(a,(function(t,e){0!==e&&e%M==0&&(v+=1,g.x+=m,g.y=i),n.moveElementTo(t,g),t.getParent().setClip({type:"rect",attrs:{x:g.x,y:g.y,width:m,height:h}}),g.y+=h+x})),this.totalPagesCnt=v,this.moveElementTo(d,{x:r+_/2-p.width/2-p.minX,y:l-p.height-p.minY})}this.pageHeight&&this.pageWidth&&e.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),"horizontal"===o&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(v/this.get("maxRow")):this.totalPagesCnt=v,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(d),e.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,e,n,r){var i={x:0,y:0},o=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),a=Pn(r.marker,"style",{}),s=a.size,l=void 0===s?12:s,u=fe(a,["size"]),c=this.drawArrow(o,i,Ph,"horizontal"===e?"up":"left",l,u);c.on("click",this.onNavigationBack);var h=c.getBBox();i.x+=h.width+2;var f=this.addShape(o,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:he({x:i.x,y:i.y+l/2,text:n,textBaseline:"middle"},Pn(r.text,"style"))}).getBBox();return i.x+=f.width+2,this.drawArrow(o,i,Eh,"horizontal"===e?"down":"right",l,u).on("click",this.onNavigationAfter),o},e.prototype.updateNavigation=function(t){var e=xn({},jh,this.get("pageNavigator")).marker.style,n=e.fill,r=e.opacity,i=e.inactiveFill,o=e.inactiveOpacity,a=this.currentPageIndex+"/"+this.totalPagesCnt,s=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),l=t?t.findById(this.getElementId(Ph)):this.getElementByLocalId(Ph),u=t?t.findById(this.getElementId(Eh)):this.getElementByLocalId(Eh);s.attr("text",a),l.attr("opacity",1===this.currentPageIndex?o:r),l.attr("fill",1===this.currentPageIndex?i:n),l.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),u.attr("opacity",this.currentPageIndex===this.totalPagesCnt?o:r),u.attr("fill",this.currentPageIndex===this.totalPagesCnt?i:n),u.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var c=l.getBBox().maxX+2;s.attr("x",c),c+=s.getBBox().width+2,this.updateArrowPath(u,{x:c,y:0})},e.prototype.drawArrow=function(t,e,n,r,i,o){var a=e.x,s=e.y,l=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:he({size:i,direction:r,path:[["M",a+i/2,s],["L",a,s+i],["L",a+i,s+i],["Z"]],cursor:"pointer"},o)});return l.attr("matrix",uc({x:a+i/2,y:s+i/2},Th[r])),l},e.prototype.updateArrowPath=function(t,e){var n=e.x,r=e.y,i=t.attr(),o=i.size,a=i.direction,s=uc({x:n+o/2,y:r+o/2},Th[a]);t.attr("path",[["M",n+o/2,r],["L",n,r+o],["L",n+o,r+o],["Z"]]),t.attr("matrix",s)},e.prototype.getCurrentNavigationMatrix=function(){var t=this,e=t.currentPageIndex,n=t.pageWidth,r=t.pageHeight;return cc("horizontal"===this.get("layout")?{x:0,y:r*(1-e)}:{x:n*(1-e),y:0})},e.prototype.applyItemStates=function(t,e){if(this.getItemStates(t).length>0){var n=e.getChildren(),r=this.get("itemStates");Pe(n,(function(e){var n=e.get("name").split("-")[2],i=Wc(t,n,r);i&&(e.attr(i),"marker"!==n||e.get("isStroke")&&e.get("isFill")||(e.get("isStroke")&&e.attr("fill",null),e.get("isFill")&&e.attr("stroke",null)))}))}},e.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),e=this.get("maxItemWidth");return e?t&&(e=t<=e?t:e):t&&(e=t),e},e}(Sh),Ah=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:Bc.textColor,textBaseline:"middle",fontFamily:Bc.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:Bc.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},e.prototype.isSlider=function(){return!0},e.prototype.getValue=function(){return this.getCurrentValue()},e.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},e.prototype.setRange=function(t,e){this.update({min:t,max:e})},e.prototype.setValue=function(t){var e=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:e,value:t})},e.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},e.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},e.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},e.prototype.bindHandlersEvent=function(t){var e=this;t.on("legend-handler-min:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),r=e.getCurrentValue()[1];r<n&&(r=n),e.setValue([n,r])})),t.on("legend-handler-max:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),r=e.getCurrentValue()[0];r>n&&(r=n),e.setValue([r,n])}))},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var e=this,n=null;t.on("legend-track:dragstart",(function(t){n={x:t.x,y:t.y}})),t.on("legend-track:drag",(function(t){if(n){var r=e.getValueByCanvasPoint(n.x,n.y),i=e.getValueByCanvasPoint(t.x,t.y),o=e.getCurrentValue(),a=o[1]-o[0],s=e.getRange(),l=i-r;l<0?o[0]+l>s.min?e.setValue([o[0]+l,o[1]+l]):e.setValue([s.min,s.min+a]):l>0&&(l>0&&o[1]+l<s.max?e.setValue([o[0]+l,o[1]+l]):e.setValue([s.max-a,s.max])),n={x:t.x,y:t.y}}})),t.on("legend-track:dragend",(function(t){n=null}))},e.prototype.drawLabels=function(t){this.drawLabel("min",t),this.drawLabel("max",t)},e.prototype.drawLabel=function(t,e){var n=this.get("label"),r=n.style,i=n.align,o=n.formatter,a=this.get(t),s=this.getLabelAlignAttrs(t,i),l="label-"+t;this.addShape(e,{type:"text",id:this.getElementId(l),name:"legend-label-"+t,attrs:he(he({x:0,y:0,text:Se(o)?o(a):a},r),s)})},e.prototype.getLabelAlignAttrs=function(t,e){var n="center",r="middle";return this.isVertical()?(n="start",r="rail"!==e?"min"===t?"top":"bottom":"top"):"rail"!==e?(r="top",n="min"===t?"start":"end"):(n="start",r="middle"),{textAlign:n,textBaseline:r}},e.prototype.getRailPath=function(t,e,n,r){var i=this.get("rail"),o=i.size,a=i.defaultLength,s=i.type,l=this.isVertical(),u=n,c=r;u||(u=l?o:a),c||(c=l?a:o);var h=[];return"color"===s?(h.push(["M",t,e]),h.push(["L",t+u,e]),h.push(["L",t+u,e+c]),h.push(["L",t,e+c]),h.push(["Z"])):(h.push(["M",t+u,e]),h.push(["L",t+u,e+c]),h.push(["L",t,e+c]),h.push(["Z"])),h},e.prototype.drawRail=function(t){var e=this.get("rail").style;this.addShape(t,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:he({path:this.getRailPath(0,0)},e)})},e.prototype.getTrackColor=function(t){var e,n=t.length;if(!n)return null;if(1===n)return t[0];e=this.isVertical()?"l(90)":"l(0)";for(var r=0;r<n;r++){e+=" "+r/(n-1)+":"+t[r]}return e},e.prototype.getTrackPath=function(t){var e=this.getRailShape(t).attr("path");return vn(e)},e.prototype.getClipTrackAttrs=function(t){var e,n,r,i,o=this.getCurrentValue(),a=o[0],s=o[1],l=this.getRailBBox(t),u=this.getPointByValue(a,t),c=this.getPointByValue(s,t);return this.isVertical()?(e=l.minX,n=u.y,r=l.width,i=c.y-u.y):(e=u.x,n=l.minY,r=c.x-u.x,i=l.height),{x:e,y:n,width:r,height:i}},e.prototype.getTrackAttrs=function(t){var e=this.get("track"),n=this.get("colors");return gn({path:this.getTrackPath(t),fill:this.getTrackColor(n)},e.style)},e.prototype.resetTrackClip=function(t){var e=t||this.get("group"),n=this.getElementId("track"),r=e.findById(n),i=r.getClip(),o=this.getClipTrackAttrs(t);i?i.attr(o):r.setClip({type:"rect",attrs:o})},e.prototype.resetTrack=function(t){var e=this.getElementId("track"),n=t.findById(e),r=this.getTrackAttrs(t);n?n.attr(r):this.addShape(t,{type:"path",id:e,draggable:this.get("slidable"),name:"legend-track",attrs:r})},e.prototype.getPointByValue=function(t,e){var n=this.getRange(),r=n.min,i=(t-r)/(n.max-r),o=this.getRailBBox(e),a={x:0,y:0};return this.isVertical()?(a.x=o.minX+o.width/2,a.y=mc(o.minY,o.maxY,i)):(a.x=mc(o.minX,o.maxX,i),a.y=o.minY+o.height/2),a},e.prototype.getRailShape=function(t){return(t||this.get("group")).findById(this.getElementId("rail"))},e.prototype.getRailBBox=function(t){return this.getRailShape(t).getBBox()},e.prototype.getRailCanvasBBox=function(){return this.get("group").findById(this.getElementId("rail")).getCanvasBBox()},e.prototype.isVertical=function(){return"vertical"===this.get("layout")},e.prototype.getValueByCanvasPoint=function(t,e){var n=this.getRange(),r=n.min,i=n.max,o=this.getRailCanvasBBox(),a=this.isVertical(),s=this.get("step"),l=mc(r,i,a?(e-o.minY)/o.height:(t-o.minX)/o.width);s&&(l=r+Math.round((l-r)/s)*s);return l>i&&(l=i),l<r&&(l=r),l},e.prototype.getCurrentValue=function(){var t=this.get("value");if(!t){var e=this.get("values");return e?[Math.max(Math.min.apply(Math,ye(e,[this.get("max")])),this.get("min")),Math.min(Math.max.apply(Math,ye(e,[this.get("min")])),this.get("max"))]:[this.get("min"),this.get("max")]}return t},e.prototype.resetHandlers=function(t){var e=this.getCurrentValue(),n=e[0],r=e[1];this.resetHandler(t,"min",n),this.resetHandler(t,"max",r)},e.prototype.getHandlerPath=function(t,e){var n=this.isVertical(),r=[],i=t.size,o=e.x,a=e.y,s=1.4*i,l=i/2,u=i/6;if(n){var c=o+.4*s;r.push(["M",o,a]),r.push(["L",c,a+l]),r.push(["L",o+s,a+l]),r.push(["L",o+s,a-l]),r.push(["L",c,a-l]),r.push(["Z"]),r.push(["M",c,a+u]),r.push(["L",o+s-2,a+u]),r.push(["M",c,a-u]),r.push(["L",o+s-2,a-u])}else{var h=a+.4*s;r.push(["M",o,a]),r.push(["L",o-l,h]),r.push(["L",o-l,a+s]),r.push(["L",o+l,a+s]),r.push(["L",o+l,h]),r.push(["Z"]),r.push(["M",o-u,h]),r.push(["L",o-u,a+s-2]),r.push(["M",o+u,h]),r.push(["L",o+u,a+s-2])}return r},e.prototype.resetHandler=function(t,e,n){var r=this.getPointByValue(n,t),i=this.get("handler"),o=this.getHandlerPath(i,r),a=this.getElementId("handler-"+e),s=t.findById(a),l=this.isVertical();s?s.attr("path",o):this.addShape(t,{type:"path",name:"legend-handler-"+e,draggable:!0,id:a,attrs:he(he({path:o},i.style),{cursor:l?"ns-resize":"ew-resize"})})},e.prototype.fixedElements=function(t){var e=t.findById(this.getElementId("rail")),n=t.findById(this.getElementId("label-min")),r=t.findById(this.getElementId("label-max")),i=this.getDrawPoint();this.isVertical()?this.fixedVertail(n,r,e,i):this.fixedHorizontal(n,r,e,i)},e.prototype.fitRailLength=function(t,e,n,r){var i=this.isVertical()?"height":"width",o=this.get("label"),a=o.align,s=o.spacing,l=this.get("max"+sn(i));if(l){var u=("rail"===a?n[i]+t[i]+e[i]+2*s:n[i])-l;u>0&&this.changeRailLength(r,i,n[i]-u)}},e.prototype.changeRailLength=function(t,e,n){var r,i=t.getBBox();r="height"===e?this.getRailPath(i.x,i.y,i.width,n):this.getRailPath(i.x,i.y,n,i.height),t.attr("path",r)},e.prototype.changeRailPosition=function(t,e,n){var r=t.getBBox(),i=this.getRailPath(e,n,r.width,r.height);t.attr("path",i)},e.prototype.fixedHorizontal=function(t,e,n,r){var i=this.get("label"),o=i.align,a=i.spacing,s=n.getBBox(),l=t.getBBox(),u=e.getBBox(),c=s.height;this.fitRailLength(l,u,s,n),s=n.getBBox(),"rail"===o?(t.attr({x:r.x,y:r.y+c/2}),this.changeRailPosition(n,r.x+l.width+a,r.y),e.attr({x:r.x+l.width+s.width+2*a,y:r.y+c/2})):"top"===o?(t.attr({x:r.x,y:r.y}),e.attr({x:r.x+s.width,y:r.y}),this.changeRailPosition(n,r.x,r.y+l.height+a)):(this.changeRailPosition(n,r.x,r.y),t.attr({x:r.x,y:r.y+s.height+a}),e.attr({x:r.x+s.width,y:r.y+s.height+a}))},e.prototype.fixedVertail=function(t,e,n,r){var i=this.get("label"),o=i.align,a=i.spacing,s=n.getBBox(),l=t.getBBox(),u=e.getBBox();if(this.fitRailLength(l,u,s,n),s=n.getBBox(),"rail"===o)t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x,r.y+l.height+a),e.attr({x:r.x,y:r.y+l.height+s.height+2*a});else if("right"===o)t.attr({x:r.x+s.width+a,y:r.y}),this.changeRailPosition(n,r.x,r.y),e.attr({x:r.x+s.width+a,y:r.y+s.height});else{var c=Math.max(l.width,u.width);t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x+c+a,r.y),e.attr({x:r.x,y:r.y+s.height})}},e}(Sh),Oh="g2-tooltip",Ih="g2-tooltip-title",Bh="g2-tooltip-list",Lh="g2-tooltip-list-item",Fh="g2-tooltip-marker",Dh="g2-tooltip-value",Rh="g2-tooltip-name",Nh="g2-tooltip-crosshair-x",zh="g2-tooltip-crosshair-y",Hh=Object.freeze(Object.defineProperty({__proto__:null,CONTAINER_CLASS:Oh,TITLE_CLASS:Ih,LIST_CLASS:Bh,LIST_ITEM_CLASS:Lh,MARKER_CLASS:Fh,VALUE_CLASS:Dh,NAME_CLASS:Rh,CROSSHAIR_X:Nh,CROSSHAIR_Y:zh},Symbol.toStringTag,{value:"Module"})),Gh=((bh={})[""+Oh]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:Bc.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},bh[""+Ih]={marginBottom:"4px"},bh[""+Bh]={margin:"0px",listStyleType:"none",padding:"0px"},bh[""+Lh]={listStyleType:"none",marginBottom:"4px"},bh[""+Fh]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},bh[""+Dh]={display:"inline-block",float:"right",marginLeft:"30px"},bh[""+Nh]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},bh[""+zh]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},bh);var Yh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'<div class="'+Oh+'"><div class="'+Ih+'"></div><ul class="'+Bh+'"></ul></div>',itemTpl:'<li class="'+Lh+'" data-index={index}>\n <span class="'+Fh+'" style="background:{color}"></span>\n <span class="'+Rh+'">{name}</span>:\n <span class="'+Dh+'">{value}</span>\n </li>',xCrosshairTpl:'<div class="'+Nh+'"></div>',yCrosshairTpl:'<div class="'+zh+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:Oh,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:Gh})},e.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},e.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},e.prototype.show=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!0),lr(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),lr(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},e.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},e.prototype.setCrossHairsVisible=function(t){var e=t?"":"none",n=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");n&&lr(n,{display:e}),r&&lr(r,{display:e})},e.prototype.initContainer=function(){if(t.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var e=this.getHtmlContentNode();this.get("parent").appendChild(e),this.set("container",e),this.resetStyles(),this.applyStyles()}},e.prototype.updateInner=function(e){this.get("customContent")?this.renderCustomContent():(function(t,e){var n=!1;return Pe(e,(function(e){if(en(t,e))return n=!0,!1})),n}(e,["title","showTitle"])&&this.resetTitle(),en(e,"items")&&this.renderItems()),t.prototype.updateInner.call(this,e)},e.prototype.initDom=function(){this.cacheDoms()},e.prototype.removeDom=function(){t.prototype.removeDom.call(this),this.clearCrosshairs()},e.prototype.resetPosition=function(){var t,e=this.get("x"),n=this.get("y"),r=this.get("offset"),i=this.getOffset(),o=i.offsetX,a=i.offsetY,s=this.get("position"),l=this.get("region"),u=this.getContainer(),c=this.getBBox(),h=c.width,f=c.height;l&&(t=vc(l));var d=function(t,e,n,r,i,o,a){var s=function(t,e,n,r,i,o){var a=t,s=e;switch(o){case"left":a=t-r-n,s=e-i/2;break;case"right":a=t+n,s=e-i/2;break;case"top":a=t-r/2,s=e-i-n;break;case"bottom":a=t-r/2,s=e+n;break;default:a=t+n,s=e-i-n}return{x:a,y:s}}(t,e,n,r,i,o);if(a){var l=function(t,e,n,r,i){return{left:t<i.x,right:t+n>i.x+i.width,top:e<i.y,bottom:e+r>i.y+i.height}}(s.x,s.y,r,i,a);"auto"===o?(l.right&&(s.x=Math.max(0,t-r-n)),l.top&&(s.y=Math.max(0,e-i-n))):"top"===o||"bottom"===o?(l.left&&(s.x=a.x),l.right&&(s.x=a.x+a.width-r),"top"===o&&l.top&&(s.y=e+n),"bottom"===o&&l.bottom&&(s.y=e-i-n)):(l.top&&(s.y=a.y),l.bottom&&(s.y=a.y+a.height-i),"left"===o&&l.left&&(s.x=t+n),"right"===o&&l.right&&(s.x=t-r-n))}return s}(e,n,r,h,f,s,t);lr(u,{left:wc(d.x+o),top:wc(d.y+a)}),this.resetCrosshairs()},e.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),e=this.get("parent"),n=this.get("container");n&&n.parentNode===e?e.replaceChild(t,n):e.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},e.prototype.getHtmlContentNode=function(){var t,e=this.get("customContent");if(e){var n=e(this.get("title"),this.get("items"));t=dn(n)?n:ir(n)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(Ih)[0],n=t.getElementsByClassName(Bh)[0];this.set("titleDom",e),this.set("listDom",n)},e.prototype.resetTitle=function(){var t=this.get("title");this.get("showTitle")&&t?this.setTitle(t):this.setTitle("")},e.prototype.setTitle=function(t){var e=this.get("titleDom");e&&(e.innerText=t)},e.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),e=this.get("crosshairs");if(t&&e){var n=vc(t),r=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");"x"===e?(this.resetCrosshair("x",n),i&&(i.remove(),this.set("yCrosshairDom",null))):"y"===e?(this.resetCrosshair("y",n),r&&(r.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},e.prototype.resetCrosshair=function(t,e){var n=this.checkCrosshair(t),r=this.get(t);lr(n,"x"===t?{left:wc(r),top:wc(e.y),height:wc(e.height)}:{top:wc(r),left:wc(e.x),width:wc(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",r="CROSSHAIR_"+t.toUpperCase(),i=Hh[r],o=this.get(e),a=this.get("parent");return o||(o=ir(this.get(n)),this.applyStyle(i,o),a.appendChild(o),this.set(e,o)),o},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),e=this.get("itemTpl"),n=this.get("listDom");n&&(Pe(t,(function(t){var r=vl.toCSSGradient(t.color),i=he(he({},t),{color:r}),o=ir(an(e,i));n.appendChild(o)})),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&gc(this.get("listDom"))},e.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),e=this.get("yCrosshairDom");t&&t.remove(),e&&e.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},e}(Vc),Vh={opacity:0},Xh={stroke:"#C5C5C5",strokeOpacity:.85},qh={fill:"#CACED4",opacity:.85};function Wh(t){return function(t){return Cn(t,(function(t,e){return[0===e?"M":"L",t[0],t[1]]}))}(t)}function Uh(t,e,n,r){void 0===r&&(r=!0);var i=new pu({values:t}),o=new jl({values:Cn(t,(function(t,e){return e}))}),a=Cn(t,(function(t,r){return[o.scale(r)*e,n-i.scale(t)*n]}));return r?function(t){if(t.length<=2)return Wh(t);var e=[];Pe(t,(function(t){jn(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=bs(e,!1),r=Ge(t),i=r[0],o=r[1];return n.unshift(["M",i,o]),n}(a):Wh(a)}function Zh(t,e,n,r){var i=ye(t),o=function(t,e){var n=new pu({values:t}),r=n.max<0?n.max:Math.max(0,n.min);return e-n.scale(r)*e}(r,n);return i.push(["L",e,o]),i.push(["L",0,o]),i.push(["Z"]),i}var Kh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:Vh,lineStyle:Xh,areaStyle:qh})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,i=e.data,o=e.smooth,a=e.isArea,s=e.backgroundStyle,l=e.lineStyle,u=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:he({x:0,y:0,width:n,height:r},s)});var c=Uh(i,n,r,o);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:he({path:c},l)}),a){var h=Zh(c,n,r,i);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:he({path:h},u)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},e}(Tc),Qh={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},$h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{name:"handler",x:0,y:0,width:10,height:24,style:Qh})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,i=e.style,o=i.fill,a=i.stroke,s=i.radius,l=i.opacity,u=i.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:r,fill:o,stroke:a,radius:s,opacity:l,cursor:u}});var c=1/3*n,h=2/3*n,f=1/4*r,d=3/4*r;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:c,y1:f,x2:c,y2:d,stroke:a,cursor:u}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:h,y1:f,x2:h,y2:d,stroke:a,cursor:u}})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",(function(){var e=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",e),t.draw()})),this.get("group").on("mouseleave",(function(){var e=t.get("style").fill;t.getElementByLocalId("background").attr("fill",e),t.draw()}))},e.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},e}(Tc),Jh={fill:"#416180",opacity:.05},tf={fill:"#5B8FF9",opacity:.15,cursor:"move"},ef={width:10,height:24},nf={textBaseline:"middle",fill:"#000",opacity:.45},rf="sliderchange",of=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(t){return function(n){e.currentTarget=t;var r=n.originalEvent;r.stopPropagation(),r.preventDefault(),e.prevX=Pn(r,"touches.0.pageX",r.pageX),e.prevY=Pn(r,"touches.0.pageY",r.pageY);var i=e.getContainerDOM();i.addEventListener("mousemove",e.onMouseMove),i.addEventListener("mouseup",e.onMouseUp),i.addEventListener("mouseleave",e.onMouseUp),i.addEventListener("touchmove",e.onMouseMove),i.addEventListener("touchend",e.onMouseUp),i.addEventListener("touchcancel",e.onMouseUp)}},e.onMouseMove=function(t){var n=e.cfg.width,r=[e.get("start"),e.get("end")];t.stopPropagation(),t.preventDefault();var i=Pn(t,"touches.0.pageX",t.pageX),o=Pn(t,"touches.0.pageY",t.pageY),a=i-e.prevX,s=e.adjustOffsetRange(a/n);e.updateStartEnd(s),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=i,e.prevY=o,e.draw(),e.emit(rf,[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:r,value:[e.get("start"),e.get("end")]})},e.onMouseUp=function(){e.currentTarget&&(e.currentTarget=void 0);var t=e.getContainerDOM();t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp))},e}return ce(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.get("start"),r=this.get("end"),i=Ue(n,t,e),o=Ue(r,t,e);this.get("isInit")||n===i&&r===o||this.setValue([i,o])},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange();if(Ce(t)&&2===t.length){var n=[this.get("start"),this.get("end")];this.update({start:Ue(t[0],e.min,e.max),end:Ue(t[1],e.min,e.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},e.prototype.getValue=function(){return[this.get("start"),this.get("end")]},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:Jh,foregroundStyle:tf,handlerStyle:ef,textStyle:nf}})},e.prototype.update=function(e){var n=e.start,r=e.end,i=he({},e);je(n)||(i.start=Ue(n,0,1)),je(r)||(i.end=Ue(r,0,1)),t.prototype.update.call(this,i),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},e.prototype.init=function(){this.set("start",Ue(this.get("start"),0,1)),this.set("end",Ue(this.get("end"),0,1)),t.prototype.init.call(this)},e.prototype.render=function(){t.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},e.prototype.renderInner=function(t){var e=this.cfg;e.start,e.end;var n=e.width,r=e.height,i=e.trendCfg,o=void 0===i?{}:i,a=e.minText,s=e.maxText,l=e.backgroundStyle,u=void 0===l?{}:l,c=e.foregroundStyle,h=void 0===c?{}:c,f=e.textStyle,d=void 0===f?{}:f,p=xn({},Qh,this.cfg.handlerStyle);Fn(Pn(o,"data"))&&(this.trend=this.addComponent(t,he({component:Kh,id:this.getElementId("trend"),x:0,y:0,width:n,height:r},o))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:he({x:0,y:0,width:n,height:r},u)}),this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:he({y:r/2,textAlign:"right",text:a,silent:!1},d)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:he({y:r/2,textAlign:"left",text:s,silent:!1},d)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:he({y:0,height:r},h)});var g=Pn(p,"width",10),v=Pn(p,"height",24);this.minHandler=this.addComponent(t,{component:$h,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(r-v)/2,width:g,height:v,cursor:"ew-resize",style:p}),this.maxHandler=this.addComponent(t,{component:$h,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(r-v)/2,width:g,height:v,cursor:"ew-resize",style:p})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.updateUI=function(t,e,n){var r=this.cfg,i=r.start,o=r.end,a=r.width,s=r.minText,l=r.maxText,u=r.handlerStyle,c=r.height,h=i*a,f=o*a;this.trend&&(this.trend.update({width:a,height:c}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",h),t.attr("width",f-h);var d=Pn(u,"width",10);e.attr("text",s),n.attr("text",l);var p=this._dodgeText([h,f],e,n),g=p[0],v=p[1];this.minHandler&&(this.minHandler.update({x:h-d/2}),this.get("updateAutoRender")||this.minHandler.render()),Pe(g,(function(t,n){return e.attr(n,t)})),this.maxHandler&&(this.maxHandler.update({x:f-d/2}),this.get("updateAutoRender")||this.maxHandler.render()),Pe(v,(function(t,e){return n.attr(e,t)}))},e.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var e=t.findById(this.getElementId("foreground"));e.on("mousedown",this.onMouseDown("foreground")),e.on("touchstart",this.onMouseDown("foreground"))},e.prototype.adjustOffsetRange=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":var i=0-n,o=1-n;return Math.min(o,Math.max(i,t));case"maxHandler":i=0-r,o=1-r;return Math.min(o,Math.max(i,t));case"foreground":i=0-n,o=1-r;return Math.min(o,Math.max(i,t))}},e.prototype.updateStartEnd=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":r+=t;break;case"foreground":n+=t,r+=t}this.set("start",n),this.set("end",r)},e.prototype._dodgeText=function(t,e,n){var r,i,o=this.cfg,a=o.handlerStyle,s=o.width,l=Pn(a,"width",10),u=t[0],c=t[1],h=!1;u>c&&(u=(r=[c,u])[0],c=r[1],e=(i=[n,e])[0],n=i[1],h=!0);var f=e.getBBox(),d=n.getBBox(),p=f.width>u-2?{x:u+l/2+2,textAlign:"left"}:{x:u-l/2-2,textAlign:"right"},g=d.width>s-c-2?{x:c-l/2-2,textAlign:"right"}:{x:c+l/2+2,textAlign:"left"};return h?[g,p]:[p,g]},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e}(Tc),af={default:{trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},hover:{thumbColor:"rgba(0,0,0,0.2)"}},sf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=Ln,e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var r=t?Pn(n.originalEvent,"touches.0.clientX"):n.clientX,i=t?Pn(n.originalEvent,"touches.0.clientY"):n.clientY;e.startPos=e.cfg.isHorizontal?r:i,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),n=[];n=e.isMobile?[rr(t,"touchmove",e.onMouseMove),rr(t,"touchend",e.onMouseUp),rr(t,"touchcancel",e.onMouseUp)]:[rr(t,"mousemove",e.onMouseMove),rr(t,"mouseup",e.onMouseUp),rr(t,"mouseleave",e.onMouseUp)],e.clearEvents=function(){n.forEach((function(t){t.remove()}))}},e.onMouseMove=function(t){var n=e.cfg,r=n.isHorizontal,i=n.thumbOffset;t.preventDefault();var o=e.isMobile?Pn(t,"touches.0.clientX"):t.clientX,a=e.isMobile?Pn(t,"touches.0.clientY"):t.clientY,s=r?o:a,l=s-e.startPos;e.startPos=s,e.updateThumbOffset(i+l)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var n=e.cfg,r=n.isHorizontal,i=n.x,o=n.y,a=n.thumbLen,s=e.getContainerDOM().getBoundingClientRect(),l=t.clientX,u=t.clientY,c=r?l-s.left-i-a/2:u-s.top-o-a/2,h=e.validateRange(c);e.updateThumbOffset(h)},e.onThumbMouseOver=function(){var t=e.cfg.theme.hover.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e.onThumbMouseOut=function(){var t=e.cfg.theme.default.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e}return ce(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),r=Ue(n,t,e);n===r||this.get("isInit")||this.setValue(r)},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*Ue(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},e.prototype.getValue=function(){return Ue(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return he(he({},e),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:af})},e.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.renderTrackShape=function(t){var e=this.cfg,n=e.trackLen,r=e.theme,i=xn({},af,void 0===r?{default:{}}:r).default,o=i.lineCap,a=i.trackColor,s=i.size,l=Pn(this.cfg,"size",s),u=this.get("isHorizontal")?{x1:0+l/2,y1:l/2,x2:n-l/2,y2:l/2,lineWidth:l,stroke:a,lineCap:o}:{x1:l/2,y1:0+l/2,x2:l/2,y2:n-l/2,lineWidth:l,stroke:a,lineCap:o};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:u})},e.prototype.renderThumbShape=function(t){var e=this.cfg,n=e.thumbOffset,r=e.thumbLen,i=e.theme,o=xn({},af,i).default,a=o.size,s=o.lineCap,l=o.thumbColor,u=Pn(this.cfg,"size",a),c=this.get("isHorizontal")?{x1:n+u/2,y1:u/2,x2:n+r-u/2,y2:u/2,lineWidth:u,stroke:l,lineCap:s,cursor:"default"}:{x1:u/2,y1:n+u/2,x2:u/2,y2:n+r-u/2,lineWidth:u,stroke:l,lineCap:s,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:c})},e.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp),t.findById(this.getElementId("track")).on("click",this.onTrackClick);var e=t.findById(this.getElementId("thumb"));e.on("mouseover",this.onThumbMouseOver),e.on("mouseout",this.onThumbMouseOut)},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e.prototype.validateRange=function(t){var e=this.cfg,n=e.thumbLen,r=e.trackLen,i=t;return t+n>r?i=r-n:t+n<n&&(i=0),i},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.updateThumbOffset=function(t){var e=this.cfg,n=e.thumbOffset,r=e.isHorizontal,i=e.thumbLen,o=e.size,a=this.validateRange(t);if(a!==n){var s=this.getElementByLocalId("thumb");r?s.attr({x1:a+o/2,x2:a+i-o/2}):s.attr({y1:a+o/2,y2:a+i-o/2}),this.emitOffsetChange(a)}},e.prototype.emitOffsetChange=function(t){var e=this.cfg,n=e.thumbOffset,r=e.trackLen,i=e.thumbLen;this.cfg.thumbOffset=t,this.emit("scrollchange",{thumbOffset:t,ratio:Ue(t/(r-i),0,1)}),this.delegateEmit("valuechange",{originalValue:n,value:t})},e}(Tc),lf=uh,uf=ch,cf=Mh,hf=wh,ff=kh,df=Ah,pf=Yh;function gf(t){return 1===Array.from(new Set(t)).length}function vf(t){return(Le(t)+Be(t))/2}function yf(t,e,n,r){return{x:t+n*Math.cos(r),y:e+n*Math.sin(r)}}function mf(t,e,n,r,i,o){void 0===o&&(o=0);var a=yf(t,e,n,r),s=yf(t,e,n,i),l=yf(t,e,o,r),u=yf(t,e,o,i);if(i-r==2*Math.PI){var c=yf(t,e,n,r+Math.PI),h=yf(t,e,o,r+Math.PI),f=[["M",a.x,a.y],["A",n,n,0,1,1,c.x,c.y],["A",n,n,0,1,1,s.x,s.y],["M",l.x,l.y]];return o&&(f.push(["A",o,o,0,1,0,h.x,h.y]),f.push(["A",o,o,0,1,0,u.x,u.y])),f.push(["M",a.x,a.y]),f.push(["Z"]),f}var d=i-r<=Math.PI?0:1,p=[["M",a.x,a.y],["A",n,n,0,d,1,s.x,s.y],["L",u.x,u.y]];return o&&p.push(["A",o,o,0,d,0,l.x,l.y]),p.push(["L",a.x,a.y]),p.push(["Z"]),p}function _f(t,e,n,r,i){var o=yf(t,e,n,r),a=yf(t,e,n,i);if(Qe(i-r,2*Math.PI)){var s=yf(t,e,n,r+Math.PI);return[["M",o.x,o.y],["A",n,n,0,1,1,s.x,s.y],["A",n,n,0,1,1,o.x,o.y],["A",n,n,0,1,0,s.x,s.y],["A",n,n,0,1,0,o.x,o.y],["Z"]]}var l=i-r<=Math.PI?0:1;return[["M",o.x,o.y],["A",n,n,0,l,1,a.x,a.y]]}function xf(t,e){var n,r,i=function(t){if(Mn(t))return null;var e=t[0].x,n=t[0].x,r=t[0].y,i=t[0].y;return Pe(t,(function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,r=r>t.y?t.y:r,i=i<t.y?t.y:i})),{minX:e,maxX:n,minY:r,maxY:i,centerX:(e+n)/2,centerY:(r+i)/2}}(t.points),o=e.startAngle,a=e.endAngle-o;return e.isTransposed?(n=i.maxY*a,r=i.minY*a):(n=i.maxX*a,r=i.minX*a),{startAngle:r+=o,endAngle:n+=o}}function bf(t,e){var n=t.attr(),r=e.attr();return Pe(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r}function wf(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i}function Mf(e,n){return"object"===t(e)&&n.forEach((function(t){delete e[t]})),e}function Sf(t,e,n){var r,i;void 0===e&&(e=[]),void 0===n&&(n=new Map);try{for(var o=ge(t),a=o.next();!a.done;a=o.next()){var s=a.value;n.has(s)||(e.push(s),n.set(s,!0))}}catch(l){r={error:l}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return e}var jf=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.x=t,this.y=e,this.height=r,this.width=n}return t.fromRange=function(e,n,r,i){return new t(e,n,r-e,i-n)},t.fromObject=function(e){return new t(e.minX,e.minY,e.width,e.height)},Object.defineProperty(t.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.contains=function(t){return t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return Pe(t,(function(t){n.x=Math.min(t.x,n.x),n.y=Math.min(t.y,n.y),n.width=Math.max(t.maxX,n.maxX)-n.x,n.height=Math.max(t.maxY,n.maxY)-n.y})),n},t.prototype.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return Pe(t,(function(t){n.x=Math.max(t.x,n.x),n.y=Math.max(t.y,n.y),n.width=Math.min(t.maxX,n.maxX)-n.x,n.height=Math.min(t.maxY,n.maxY)-n.y})),n},t.prototype.cut=function(e,n){var r=e.width,i=e.height;switch(n){case Rn.TOP:case Rn.TOP_LEFT:case Rn.TOP_RIGHT:return t.fromRange(this.minX,this.minY+i,this.maxX,this.maxY);case Rn.RIGHT:case Rn.RIGHT_TOP:case Rn.RIGHT_BOTTOM:return t.fromRange(this.minX,this.minY,this.maxX-r,this.maxY);case Rn.BOTTOM:case Rn.BOTTOM_LEFT:case Rn.BOTTOM_RIGHT:return t.fromRange(this.minX,this.minY,this.maxX,this.maxY-i);case Rn.LEFT:case Rn.LEFT_TOP:case Rn.LEFT_BOTTOM:return t.fromRange(this.minX+r,this.minY,this.maxX,this.maxY);default:return this}},t.prototype.shrink=function(e){var n=ve(e,4),r=n[0],i=n[1],o=n[2],a=n[3];return new t(this.x+a,this.y+r,this.width-a-i,this.height-r-o)},t.prototype.expand=function(e){var n=ve(e,4),r=n[0],i=n[1],o=n[2],a=n[3];return new t(this.x-a,this.y-r,this.width+a+i,this.height+r+o)},t.prototype.exceed=function(t){return[Math.max(-this.minY+t.minY,0),Math.max(this.maxX-t.maxX,0),Math.max(this.maxY-t.maxY,0),Math.max(-this.minX+t.minX,0)]},t.prototype.collide=function(t){return this.minX<t.maxX&&this.maxX>t.minX&&this.minY<t.maxY&&this.maxY>t.minY},t.prototype.size=function(){return this.width*this.height},t.prototype.isPointIn=function(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY},t}();function Cf(t){if(t.isPolar&&!t.isTransposed)return(t.endAngle-t.startAngle)*t.getRadius();var e=t.convert({x:0,y:0}),n=t.convert({x:1,y:0});return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function Ef(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function Pf(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)}function Tf(t,e){void 0===e&&(e=0);var n,r=t.start,i=t.end,o=t.getWidth(),a=t.getHeight();if(t.isPolar){var s=t.startAngle,l=t.endAngle,u=t.getCenter(),c=t.getRadius();return{type:"path",startState:{path:mf(u.x,u.y,c+e,s,s)},endState:function(t){var n=(l-s)*t+s;return{path:mf(u.x,u.y,c+e,s,n)}},attrs:{path:mf(u.x,u.y,c+e,s,l)}}}return n=t.isTransposed?{height:a+2*e}:{width:o+2*e},{type:"rect",startState:{x:r.x-e,y:i.y-e,width:t.isTransposed?o+2*e:0,height:t.isTransposed?0:a+2*e},endState:n,attrs:{x:r.x-e,y:i.y-e,width:o+2*e,height:a+2*e}}}var kf=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function Af(t,e,n,r){return void 0===e&&(e={}),e.type?e.type:"identity"!==t.type&&Jn.includes(n)&&["interval"].includes(r)||t.isCategory?"cat":t.type}function Of(t,e,n){var r=e||[];if(Ke(t)||je(function(t,e){for(var n=null,r=0;r<t.length;r++){var i=t[r][e];if(!je(i)){n=Ce(i)?i[0]:i;break}}return n}(r,t))&&Mn(n))return new(Su("identity"))({field:t.toString(),values:[t]});var i=He(r,t);return new(Su(Pn(n,"type",function(t){var e="linear";return kf.test(t)?e="timeCat":Ne(t)&&(e="cat"),e}(i[0]))))(he({field:t,values:i},n))}function If(t){return t.alias||t.field}function Bf(t,e,n){var r,i=t.values.length;if(1===i)r=[.5,1];else{var o=0;r=function(t){if(t.isPolar){var e=t.startAngle;return t.endAngle-e==2*Math.PI}return!1}(e)?e.isTransposed?[(o=1/i*Pn(n,"widthRatio.multiplePie",1/1.3))/2,1-o/2]:[0,1-1/i]:[o=1/i/2,1-o]}return r}function Lf(t){var e=t.values.filter((function(t){return!je(t)&&!isNaN(t)}));return Math.max.apply(Math,me(me([],ve(e),!1),[je(t.max)?-1/0:t.max],!1))}function Ff(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=function(t){var e,n;switch(t){case Rn.TOP:e={x:0,y:1},n={x:1,y:1};break;case Rn.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case Rn.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case Rn.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}(e):t.isPolar&&(n=function(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{start:e,end:n}}(t));var r=n.start,i=n.end;return{start:t.convert(r),end:t.convert(i)}}function Df(t){var e=t.start,n=t.end;return e.x===n.x}function Rf(t,e){var n=t.start,r=t.end;return Df(t)?(n.y-r.y)*(e.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-e.y)>0?-1:1}function Nf(t,e){var n=Pn(t,["components","axis"],{});return xn({},Pn(n,["common"],{}),xn({},Pn(n,[e],{})))}function zf(t,e,n){var r=Pn(t,["components","axis"],{});return xn({},Pn(r,["common","title"],{}),xn({},Pn(r,[e,"title"],{})),n)}function Hf(t){var e=t.x,n=t.y,r=t.circleCenter,i=n.start>n.end,o=t.isTransposed?t.convert({x:i?0:1,y:0}):t.convert({x:0,y:i?0:1}),a=[o.x-r.x,o.y-r.y],s=[1,0],l=o.y>r.y?xi(a,s):-1*xi(a,s),u=l+(e.end-e.start);return{center:r,radius:Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),startAngle:l,endAngle:u}}function Gf(t,e){return un(t)?!1!==t&&{}:Pn(t,[e])}function Yf(t,e){return Pn(t,"position",e)}function Vf(t,e){return Pn(e,["title","text"],If(t))}var Xf=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=xn({},this.getDefaultCfg(),e)}return t.prototype.init=function(){this.container||(this.container=this.createContainer());var t=this.view.getData();this.facets=this.generateFacets(t)},t.prototype.render=function(){this.renderViews()},t.prototype.update=function(){},t.prototype.clear=function(){this.clearFacetViews()},t.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},t.prototype.facetToView=function(t){var e=t.region,n=t.data,r=t.padding,i=void 0===r?this.cfg.padding:r,o=this.view.createView({region:e,padding:i});o.data(n||[]),t.view=o,this.beforeEachView(o,t);var a=this.cfg.eachView;return a&&a(o,t),this.afterEachView(o,t),o},t.prototype.createContainer=function(){return this.view.getLayer(Dn.FORE).addGroup()},t.prototype.renderViews=function(){this.createFacetViews()},t.prototype.createFacetViews=function(){var t=this;return this.facets.map((function(e){return t.facetToView(e)}))},t.prototype.clearFacetViews=function(){var t=this;Pe(this.facets,(function(e){e.view&&(t.view.removeView(e.view),e.view=void 0)}))},t.prototype.parseSpacing=function(){var t=this.view.viewBBox,e=t.width,n=t.height;return this.cfg.spacing.map((function(t,r){return Ke(t)?t/(0===r?e:n):parseFloat(t)/100}))},t.prototype.getFieldValues=function(t,e){var n=[],r={};return Pe(t,(function(t){var i=t[e];je(i)||r[i]||(n.push(i),r[i]=!0)})),n},t.prototype.getRegion=function(t,e,n,r){var i=ve(this.parseSpacing(),2),o=i[0],a=i[1],s=(1+o)/(0===e?1:e)-o,l=(1+a)/(0===t?1:t)-a,u={x:(s+o)*n,y:(l+a)*r};return{start:u,end:{x:u.x+s,y:u.y+l}}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},t.prototype.processAxis=function(t,e){var n=t.getOptions(),r=n.coordinate,i=t.geometries;if("rect"===Pn(r,"type","rect")&&i.length){je(n.axes)&&(n.axes={});var o=n.axes,a=ve(i[0].getXYFields(),2),s=a[0],l=a[1],u=Gf(o,s),c=Gf(o,l);!1!==u&&(n.axes[s]=this.getXAxisOption(s,o,u,e)),!1!==c&&(n.axes[l]=this.getYAxisOption(l,o,c,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0}(t,(function(t){var n=t.field,r=t.value;return!(!je(r)&&n)||e[n]===r}))}},t}(),qf={},Wf=function(t,e){qf[on(t)]=e},Uf=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){gn(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}(),Zf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.execute=function(){this.callback&&this.callback(this.context)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.callback=null},e}(Uf),Kf={};function Qf(t,e,n){Kf[t]={ActionClass:e,cfg:n}}function $f(t,e){var n=new Zf(e);return n.callback=t,n.name="callback",n}function Jf(t,e){for(var n=[t[0]],r=1,i=t.length;r<i;r+=2){var o=e.convert({x:t[r],y:t[r+1]});n.push(o.x,o.y)}return n}function td(t,e){var n=e.isTransposed,r=t[1],i=t[6],o=t[7],a=e.convert({x:i,y:o});return["A",r,r,0,0,n?0:1,a.x,a.y]}function ed(t,e,n){for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);var s,l,u,c=function(t,e,n,r){var i,o,a,s,l,u,c,h,f=[],d=!!r;if(d){s=(i=ve(r,2))[0],l=i[1];for(var p=0,g=t.length;p<g;p++)s=pi([0,0],s,y=t[p]),l=gi([0,0],l,y)}p=0;for(var v=t.length;p<v;p++){var y=t[p];if(0!==p||n)if(p!==v-1||n){o=t[n?p?p-1:v-1:p-1],a=t[n?(p+1)%v:p+1];var m=[0,0];m=vi(m=bi(m,a,o),m,e);var _=yi(y,o),x=yi(y,a),b=_+x;0!==b&&(_/=b,x/=b);var w=vi([0,0],m,-_),M=vi([0,0],m,x);c=fi([0,0],y,w),u=pi([0,0],u=fi([0,0],y,M),gi([0,0],a,y)),u=gi([0,0],u,pi([0,0],a,y)),c=pi([0,0],c=fi([0,0],y,w=vi([0,0],w=bi([0,0],u,y),-_/x)),gi([0,0],o,y)),c=gi([0,0],c,pi([0,0],o,y)),u=fi([0,0],y,M=vi([0,0],M=bi([0,0],y,c),x/_)),d&&(c=pi([0,0],c=gi([0,0],c,s),l),u=pi([0,0],u=gi([0,0],u,s),l)),f.push(h),f.push(c),h=u}else c=y,f.push(h),f.push(c);else h=y}return n&&f.push(f.shift()),f}(i,.4,r,n),h=i.length,f=[];for(o=0;o<h-1;o++)s=c[2*o],l=c[2*o+1],u=i[o+1],f.push(["C",s[0],s[1],l[0],l[1],u[0],u[1]]);return r&&(s=c[h],l=c[h+1],u=i[0],f.push(["C",s[0],s[1],l[0],l[1],u[0],u[1]])),f}function nd(t,e){return function(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var r=1,i=t.length;r<i;r+=1){var o=t[r];n.push(["L",o.x,o.y])}e&&n.push(["Z"])}return n}(t,e)}function rd(t,e,n){var r=[],i=t[0],o=null;if(t.length<=2)return nd(t,e);for(var a=0,s=t.length;a<s;a++){var l=t[a];o&&o.x===l.x&&o.y===l.y||(r.push(l.x),r.push(l.y),o=l)}var u=ed(r,e,n||[[0,0],[1,1]]);return u.unshift(["M",i.x,i.y]),u}function id(t,e){var n,r,i,o=[];return Pe(e,(function(a,s){switch(a[0].toLowerCase()){case"m":case"c":case"q":o.push(Jf(a,t));break;case"l":n=e[s-1],r=a,i=t.isTransposed,(i?n[n.length-2]===r[1]:n[n.length-1]===r[2])?o=o.concat(function(t,e,n){var r=n.isTransposed,i=n.startAngle,o=n.endAngle,a="a"===t[0].toLowerCase()?{x:t[6],y:t[7]}:{x:t[1],y:t[2]},s={x:e[1],y:e[2]},l=[],u=r?"y":"x",c=Math.abs(s[u]-a[u])*(o-i),h=s[u]>=a[u]?1:0,f=c>Math.PI?1:0,d=n.convert(s),p=Ef(n,d);if(p>=.5)if(c===2*Math.PI){var g={x:(s.x+a.x)/2,y:(s.y+a.y)/2},v=n.convert(g);l.push(["A",p,p,0,f,h,v.x,v.y]),l.push(["A",p,p,0,f,h,d.x,d.y])}else l.push(["A",p,p,0,f,h,d.x,d.y]);return l}(n,r,t)):o.push(Jf(a,t));break;case"a":o.push(td(a,t));break;default:o.push(a)}})),function(t){Pe(t,(function(e,n){if("a"===e[0].toLowerCase()){var r=t[n-1],i=t[n+1];i&&"a"===i[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&i&&"l"===i[0].toLowerCase()&&(i[0]="M")}}))}(o),o}function od(t,e){var n=t.event.target.getCanvasBBox();return n.width>=e||n.height>=e?n:null}function ad(t){var e,n=t.event.target;return n&&(e=n.get("element")),e}function sd(t){var e,n=t.event.target;return n&&(e=n.get("delegateObject")),e}function ld(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function ud(t){return t&&t.component&&t.component.isList()}function cd(t){return t&&t.component&&t.component.isSlider()}function hd(t){var e=t.event.target;return e&&"mask"===e.get("name")}function fd(t,e){if("path"===t.event.target.get("type")){var n=function(t,e){var n=t.event.target,r=n.getCanvasBBox();return r.width>=e||r.height>=e?n.attr("path"):null}(t,e);if(!n)return;return function(t,e){var n=pd(t),r=md(e);return n.filter((function(t){var e,n,i=t.shape;if("path"===i.get("type"))e=md(i.attr("path"));else{var o=i.getCanvasBBox();e=[[(n=o).minX,n.minY],[n.maxX,n.minY],[n.maxX,n.maxY],[n.minX,n.maxY]]}return function(t,e){if(t.length<2||e.length<2)return!1;var n,r,i=Gs(t),o=Gs(e);if(n=i,(r=o).minX>n.maxX||r.maxX<n.minX||r.minY>n.maxY||r.maxY<n.minY)return!1;var a=!1;if(Pe(e,(function(e){if(Ns(t,e[0],e[1]))return a=!0,!1})),a)return!0;if(Pe(t,(function(t){if(Ns(e,t[0],t[1]))return a=!0,!1})),a)return!0;var s=zs(t),l=zs(e),u=!1;return Pe(l,(function(t){if(Hs(s,t))return u=!0,!1})),u}(r,e)}))}(t.view,n)}var r=od(t,e);return r?yd(t.view,r):null}function dd(t,e,n){var r=od(t,n);if(!r)return null;var i=t.view,o=Md(i,e,{x:r.x,y:r.y}),a=Md(i,e,{x:r.maxX,y:r.maxY});return yd(e,{minX:o.x,minY:o.y,maxX:a.x,maxY:a.y})}function pd(t){var e=t.geometries,n=[];return Pe(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&Pe(t.views,(function(t){n=n.concat(pd(t))})),n}function gd(t,e){var n=t.geometries,r=[];return Pe(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));r=r.concat(n)})),r}function vd(t,e){var n=t.getModel().data;return Ce(n)?n[0][e]:n[e]}function yd(t,e){var n=pd(t),r=[];return Pe(n,(function(t){var n,i,o=t.shape.getCanvasBBox();n=e,(i=o).minX>n.maxX||i.maxX<n.minX||i.minY>n.maxY||i.maxY<n.minY||r.push(t)})),r}function md(t){var e=[];return Pe(t,(function(t){if("A"!==t[0])for(var n=1;n<t.length;n+=2)e.push([t[n],t[n+1]]);else{var r=t.length;e.push([t[r-2],t[r-1]])}})),e}function _d(t){return t.getComponents().map((function(t){return t.component}))}function xd(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function bd(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y}function wd(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n}function Md(t,e,n){var r=function(t,e){return t.getCoordinate().invert(e)}(t,n);return e.getCoordinate().convert(r)}function Sd(t,e,n,r){var i=!1;return Pe(t,(function(t){if(t[n]===e[n]&&t[r]===e[r])return i=!0,!1})),i}function jd(t,e){var n=t.getScaleByField(e);return!n&&t.views&&Pe(t.views,(function(t){if(n=jd(t,e))return!1})),n}var Cd=function(){function t(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return t.prototype.cache=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length)return this.cacheMap[t[0]];2===t.length&&(this.cacheMap[t[0]]=t[1])},t.prototype.getAction=function(t){return this.actions.find((function(e){return e.name===t}))},t.prototype.addAction=function(t){this.actions.push(t)},t.prototype.removeAction=function(t){var e=this.actions,n=this.actions.indexOf(t);n>=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event;return t?t.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(t.clientX,t.clientY):{x:t.x,y:t.y}:null},t.prototype.getCurrentShape=function(){return Pn(this.event,["gEvent","shape"])},t.prototype.isInPlot=function(){var t=this.getCurrentPoint();return!!t&&this.view.isPointInPlot(t)},t.prototype.isInShape=function(t){var e=this.getCurrentShape();return!!e&&e.get("name")===t},t.prototype.isInComponent=function(t){var e=_d(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var r=e.getBBox();return t?e.get("name")===t&&bd(r,n):bd(r,n)}))},t.prototype.destroy=function(){Pe(this.actions.slice(),(function(t){t.destroy()})),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},t}(),Ed=function(){function t(t,e){this.view=t,this.cfg=e}return t.prototype.init=function(){this.initEvents()},t.prototype.initEvents=function(){},t.prototype.clearEvents=function(){},t.prototype.destroy=function(){this.clearEvents()},t}();function Pd(t,e,n){var r=t.split(":"),i=r[0],o=e.getAction(i)||function(t,e){var n=Kf[t],r=null;return n&&((r=new(0,n.ActionClass)(e,n.cfg)).name=t,r.init()),r}(i,e);if(!o)throw new Error("There is no action named ".concat(i));return{action:o,methodName:r[1],arg:n}}function Td(t){var e=t.action,n=t.methodName,r=t.arg;if(!e[n])throw new Error("Action(".concat(e.name,") doesn't have a method called ").concat(n));e[n](r)}var kd="start",Ad="showEnable",Od="end",Id="rollback",Bd="processing",Ld=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.callbackCaches={},r.emitCaches={},r.steps=n,r}return ce(e,t),e.prototype.init=function(){this.initContext(),t.prototype.init.call(this)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},e.prototype.initEvents=function(){var t=this;Pe(this.steps,(function(e,n){Pe(e,(function(e){var r=t.getActionCallback(n,e);r&&t.bindEvent(e.trigger,r)}))}))},e.prototype.clearEvents=function(){var t=this;Pe(this.steps,(function(e,n){Pe(e,(function(e){var r=t.getActionCallback(n,e);r&&t.offEvent(e.trigger,r)}))}))},e.prototype.initContext=function(){var t=this.view,e=new Cd(t);this.context=e,Pe(this.steps,(function(t){Pe(t,(function(t){if(Se(t.action))t.actionObject={action:$f(t.action,e),methodName:"execute"};else if(Ne(t.action))t.actionObject=Pd(t.action,e,t.arg);else if(Ce(t.action)){var n=t.action,r=Ce(t.arg)?t.arg:[t.arg];t.actionObject=[],Pe(n,(function(n,i){t.actionObject.push(Pd(n,e,r[i]))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===Ad)return!0;if(t===Bd)return e===kd;if(t===kd)return e!==Bd;if(t===Od)return e===Bd||e===kd;if(t===Id){if(n[Od])return e===Od;if(e===kd)return!0}return!1},e.prototype.isAllowExecute=function(t,e){if(this.isAllowStep(t)){var n=this.getKey(t,e);return(!e.once||!this.emitCaches[n])&&(!e.isEnable||e.isEnable(this.context))}return!1},e.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},e.prototype.afterExecute=function(t,e){t!==Ad&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,e);this.emitCaches[n]=!0},e.prototype.getKey=function(t,e){return t+e.trigger+e.action},e.prototype.getActionCallback=function(t,e){var n=this,r=this.context,i=this.callbackCaches,o=e.actionObject;if(e.action&&o){var a=this.getKey(t,e);if(!i[a]){var s=function(i){r.event=i,n.isAllowExecute(t,e)?(Ce(o)?Pe(o,(function(t){r.event=i,Td(t)})):(r.event=i,Td(o)),n.afterExecute(t,e),e.callback&&(r.event=i,e.callback(r))):r.event=null};e.debounce?i[a]=yn(s,e.debounce.wait,e.debounce.immediate):e.throttle?i[a]=On(s,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):i[a]=s}return i[a]}return null},e.prototype.bindEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.addEventListener(n[1],e):"document"===n[0]?document.addEventListener(n[1],e):this.view.on(t,e)},e.prototype.offEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.removeEventListener(n[1],e):"document"===n[0]?document.removeEventListener(n[1],e):this.view.off(t,e)},e}(Ed),Fd={};function Dd(t,e){Fd[on(t)]=e}function Rd(t,e,n){var r=function(t){return Fd[on(t)]}(t);if(!r)return null;if(Ae(r)){var i=gn(vn(r),n);return new Ld(e,i)}return new r(e,n)}function Nd(t){var e,n={point:{default:{fill:t.pointFillColor,r:t.pointSize,stroke:t.pointBorderColor,lineWidth:t.pointBorder,fillOpacity:t.pointFillOpacity},active:{stroke:t.pointActiveBorderColor,lineWidth:t.pointActiveBorder},selected:{stroke:t.pointSelectedBorderColor,lineWidth:t.pointSelectedBorder},inactive:{fillOpacity:t.pointInactiveFillOpacity,strokeOpacity:t.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:t.hollowPointFillColor,lineWidth:t.hollowPointBorder,stroke:t.hollowPointBorderColor,strokeOpacity:t.hollowPointBorderOpacity,r:t.hollowPointSize},active:{stroke:t.hollowPointActiveBorderColor,strokeOpacity:t.hollowPointActiveBorderOpacity},selected:{lineWidth:t.hollowPointSelectedBorder,stroke:t.hollowPointSelectedBorderColor,strokeOpacity:t.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:t.hollowPointInactiveBorderOpacity}},area:{default:{fill:t.areaFillColor,fillOpacity:t.areaFillOpacity,stroke:null},active:{fillOpacity:t.areaActiveFillOpacity},selected:{fillOpacity:t.areaSelectedFillOpacity},inactive:{fillOpacity:t.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:t.hollowAreaBorderColor,lineWidth:t.hollowAreaBorder,strokeOpacity:t.hollowAreaBorderOpacity},active:{fill:null,lineWidth:t.hollowAreaActiveBorder},selected:{fill:null,lineWidth:t.hollowAreaSelectedBorder},inactive:{strokeOpacity:t.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:t.intervalFillColor,fillOpacity:t.intervalFillOpacity},active:{stroke:t.intervalActiveBorderColor,lineWidth:t.intervalActiveBorder},selected:{stroke:t.intervalSelectedBorderColor,lineWidth:t.intervalSelectedBorder},inactive:{fillOpacity:t.intervalInactiveFillOpacity,strokeOpacity:t.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:t.hollowIntervalFillColor,stroke:t.hollowIntervalBorderColor,lineWidth:t.hollowIntervalBorder,strokeOpacity:t.hollowIntervalBorderOpacity},active:{stroke:t.hollowIntervalActiveBorderColor,lineWidth:t.hollowIntervalActiveBorder,strokeOpacity:t.hollowIntervalActiveBorderOpacity},selected:{stroke:t.hollowIntervalSelectedBorderColor,lineWidth:t.hollowIntervalSelectedBorder,strokeOpacity:t.hollowIntervalSelectedBorderOpacity},inactive:{stroke:t.hollowIntervalInactiveBorderColor,lineWidth:t.hollowIntervalInactiveBorder,strokeOpacity:t.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:t.lineBorderColor,lineWidth:t.lineBorder,strokeOpacity:t.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:t.lineActiveBorder},selected:{lineWidth:t.lineSelectedBorder},inactive:{strokeOpacity:t.lineInactiveBorderOpacity}}},r=function(t){return{title:{autoRotate:!0,position:"center",spacing:t.axisTitleSpacing,style:{fill:t.axisTitleTextFillColor,fontSize:t.axisTitleTextFontSize,lineHeight:t.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily},iconStyle:{fill:t.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:t.axisLabelOffset,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0}}(t),i=function(t){return{title:null,marker:{symbol:"circle",spacing:t.legendMarkerSpacing,style:{r:t.legendCircleMarkerSize,fill:t.legendMarkerColor}},itemName:{spacing:5,style:{fill:t.legendItemNameFillColor,fontFamily:t.fontFamily,fontSize:t.legendItemNameFontSize,lineHeight:t.legendItemNameLineHeight,fontWeight:t.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:t.legendPageNavigatorMarkerSize,inactiveFill:t.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:t.legendPageNavigatorMarkerInactiveFillOpacity,fill:t.legendPageNavigatorMarkerFillColor,opacity:t.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:t.legendPageNavigatorTextFillColor,fontSize:t.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:t.legendItemSpacing,itemMarginBottom:t.legendItemMarginBottom,padding:t.legendPadding}}(t);return{background:t.backgroundColor,defaultColor:t.brandColor,subColor:t.subColor,semanticRed:t.paletteSemanticRed,semanticGreen:t.paletteSemanticGreen,padding:"auto",fontFamily:t.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,sequenceColors:t.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:function(t){var e=t.geometry.coordinate;if(e.isPolar&&e.isTransposed){var r=xf(t.getModel(),e),i=(r.startAngle+r.endAngle)/2;return{matrix:Ci(null,[["t",7.5*Math.cos(i),7.5*Math.sin(i)]])}}return n.interval.selected}}},"hollow-rect":{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},line:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},tick:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},funnel:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}},pyramid:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},line:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},dot:{default:{style:he(he({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:he(he({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:he(he({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:he(he({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:he(he({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:he(he({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:he(he({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:he(he({},n.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hvh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},polygon:{polygon:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},point:{circle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},square:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},bowtie:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},diamond:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},hexagon:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},triangle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"triangle-down":{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"hollow-circle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-square":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-bowtie":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-diamond":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-hexagon":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle-down":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},cross:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},tick:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},plus:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},hyphen:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},line:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}}},area:{area:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},smooth:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},line:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"smooth-line":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}},schema:{candle:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},box:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}}},edge:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},arc:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},violin:{violin:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hollow:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"hollow-smooth":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}}},components:{axis:{common:r,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:xn({},r.grid,{line:{type:"line"}})},radius:{title:null,grid:xn({},r.grid,{line:{type:"circle"}})}},legend:{common:i,right:{layout:"vertical",padding:t.legendVerticalPadding},left:{layout:"vertical",padding:t.legendVerticalPadding},top:{layout:"horizontal",padding:t.legendHorizontalPadding},bottom:{layout:"horizontal",padding:t.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:t.sliderRailHeight,defaultLength:t.sliderRailWidth,style:{fill:t.sliderRailFillColor,stroke:t.sliderRailBorderColor,lineWidth:t.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:t.sliderLabelTextFillColor,fontSize:t.sliderLabelTextFontSize,lineHeight:t.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},handler:{size:t.sliderHandlerWidth,style:{fill:t.sliderHandlerFillColor,stroke:t.sliderHandlerBorderColor}},slidable:!0,padding:i.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:t.tooltipCrosshairsBorderColor,lineWidth:t.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(e={},e["".concat(Oh)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:t.tooltipContainerFillColor,opacity:t.tooltipContainerFillOpacity,boxShadow:t.tooltipContainerShadow,borderRadius:"".concat(t.tooltipContainerBorderRadius,"px"),color:t.tooltipTextFillColor,fontSize:"".concat(t.tooltipTextFontSize,"px"),fontFamily:t.fontFamily,lineHeight:"".concat(t.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},e["".concat(Ih)]={marginBottom:"12px",marginTop:"12px"},e["".concat(Bh)]={margin:0,listStyleType:"none",padding:0},e["".concat(Lh)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e["".concat(Fh)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e["".concat(Dh)]={display:"inline-block",float:"right",marginLeft:"30px"},e)},annotation:{arc:{style:{stroke:t.annotationArcBorderColor,lineWidth:t.annotationArcBorder},animate:!0},line:{style:{stroke:t.annotationLineBorderColor,lineDash:t.annotationLineDash,lineWidth:t.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textAlign:"start",fontFamily:t.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:t.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:t.annotationRegionBorder,stroke:t.annotationRegionBorderColor,fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:t.brandColor,lineWidth:2}},line:{style:{stroke:t.annotationLineBorderColor,lineWidth:t.annotationLineBorder},length:t.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:t.cSliderBackgroundFillColor,opacity:t.cSliderBackgroundFillOpacity},foregroundStyle:{fill:t.cSliderForegroundFillColor,opacity:t.cSliderForegroundFillOpacity},handlerStyle:{width:t.cSliderHandlerWidth,height:t.cSliderHandlerHeight,fill:t.cSliderHandlerFillColor,opacity:t.cSliderHandlerFillOpacity,stroke:t.cSliderHandlerBorderColor,lineWidth:t.cSliderHandlerBorder,radius:t.cSliderHandlerBorderRadius,highLightFill:t.cSliderHandlerHighlightFillColor},textStyle:{fill:t.cSliderTextFillColor,opacity:t.cSliderTextFillOpacity,fontSize:t.cSliderTextFontSize,lineHeight:t.cSliderTextLineHeight,fontWeight:t.cSliderTextFontWeight,stroke:t.cSliderTextBorderColor,lineWidth:t.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:t.scrollbarTrackFillColor,thumbColor:t.scrollbarThumbFillColor}},hover:{style:{thumbColor:t.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:t.labelFillColor,fontSize:t.labelFontSize,fontFamily:t.fontFamily,stroke:t.labelBorderColor,lineWidth:t.labelBorder},fillColorDark:t.labelFillColorDark,fillColorLight:t.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:t.innerLabelFillColor,fontSize:t.innerLabelFontSize,fontFamily:t.fontFamily,stroke:t.innerLabelBorderColor,lineWidth:t.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:t.overflowLabelFillColor,fontSize:t.overflowLabelFontSize,fontFamily:t.fontFamily,stroke:t.overflowLabelBorderColor,lineWidth:t.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:t.labelLineBorder}},autoRotate:!0}}}var zd="#000",Hd="#595959",Gd="#8C8C8C",Yd="#BFBFBF",Vd="#D9D9D9",Xd="#F0F0F0",qd="#FFFFFF",Wd="#D9D9D9",Ud=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],Zd=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],Kd=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Qd=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?Ud:e,r=t.paletteQualitative20,i=void 0===r?Zd:r,o=t.brandColor,a=void 0===o?n[0]:o;return he(he({},{backgroundColor:"transparent",brandColor:a,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:n,paletteQualitative20:i,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:Kd,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:Yd,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:Hd,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:Wd,axisTickLineBorderColor:Yd,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Vd,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:Gd,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Vd,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:Gd,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:a,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:Hd,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:zd,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:zd,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:Gd,legendPageNavigatorTextFontSize:12,sliderRailFillColor:Vd,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:Gd,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Xd,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Yd,annotationArcBorderColor:Vd,annotationArcBorder:1,annotationLineBorderColor:Yd,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:Hd,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:zd,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Yd,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:Hd,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:Hd,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:qd,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:Hd,overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:qd,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Yd,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:a,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:qd,pointBorderOpacity:1,pointActiveBorderColor:zd,pointSelectedBorder:2,pointSelectedBorderColor:zd,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:a,hollowPointBorderOpacity:.95,hollowPointFillColor:qd,hollowPointActiveBorder:1,hollowPointActiveBorderColor:zd,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:zd,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:a,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:a,areaFillOpacity:.25,areaActiveFillColor:a,areaActiveFillOpacity:.5,areaSelectedFillColor:a,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:a,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:zd,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:zd,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:a,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:zd,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:zd,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:a,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:qd,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:zd,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:zd,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}),t)};function $d(t){var e=t.styleSheet,n=void 0===e?{}:e,r=fe(t,["styleSheet"]),i=Qd(n);return xn({},Nd(i),r)}Qd();var Jd={default:$d({})};function tp(t){return Pn(Jd,on(t),Jd.default)}function ep(t,e,n){return Qe(n.translate(t),n.translate(e))}function np(t,e,n){var r=n.coordinate,i=n.getYScale(),o=i.field,a=r.invert(e),s=i.invert(a.y);return Oe(t,(function(t){var e=t[tr];return e[o][0]<=s&&e[o][1]>=s}))||t[t.length-1]}var rp=mn((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,r=t.translate(e[0]),i=r,o=0;o<n;o++){var a=e[o],s=t.translate(a);s<r&&(r=s),s>i&&(i=s)}return(i-r)/(n-1)}));function ip(t){var e,n,r,i=function(t){var e=nn(t.attributes);return be(e,(function(t){return xe(Jn,t.type)}))}(t);try{for(var o=ge(i),a=o.next();!a.done;a=o.next()){var s=a.value,l=s.getScale(s.type);if(l&&l.isLinear)if("cat"!==Af(l,Pn(t.scaleDefs,l.field),s.type,t.type)){r=l;break}}}catch(h){e={error:h}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}var u=t.getXScale(),c=t.getYScale();return r||c||u}function op(t,e,n){if(0===e.length)return null;var r=n.type,i=n.getXScale(),o=n.getYScale(),a=i.field,s=o.field,l=null;if("heatmap"===r||"point"===r){for(var u=n.coordinate.invert(t),c=i.invert(u.x),h=o.invert(u.y),f=1/0,d=0;d<e.length;d++){var p=e[d],g=p[tr],v=Math.pow(g[a]-c,2)+Math.pow(g[s]-h,2);v<f&&(f=v,l=p)}return l}var y=e[0],m=e[e.length-1],_=function(t,e){var n=e.coordinate,r=e.getXScale(),i=r.range,o=i[i.length-1],a=i[0],s=n.invert(t).x;return n.isPolar&&s>(1+o)/2&&(s=a),r.translate(r.invert(s))}(t,n),x=y[tr][a],b=y[tr][s],w=m[tr][a],M=o.isLinear&&Ce(b);if(Ce(x)){for(d=0;d<e.length;d++){g=(T=e[d])[tr];if(i.translate(g[a][0])<=_&&i.translate(g[a][1])>=_){if(!M){l=T;break}Ce(l)||(l=[]),l.push(T)}}Ce(l)&&(l=np(l,t,n))}else{var S=void 0;if(i.isLinear||"timeCat"===i.type){if((_>i.translate(w)||_<i.translate(x))&&(_>i.max||_<i.min))return null;for(var j=0,C=e.length-1,E=void 0;j<=C;){var P=e[E=Math.floor((j+C)/2)][tr][a];if(ep(P,_,i))return e[E];i.translate(P)<=i.translate(_)?(j=E+1,m=e[E],S=e[E+1]):(0===C&&(m=e[0]),C=E-1)}}else{for(d=0;d<e.length;d++){var T;if(ep((g=(T=e[d])[tr])[a],_,i)){if(!M){l=T;break}Ce(l)||(l=[]),l.push(T)}else i.translate(g[a])<=_&&(m=T,S=e[d+1])}Ce(l)&&(l=np(l,t,n))}m&&S&&Math.abs(i.translate(m[tr][a])-_)>Math.abs(i.translate(S[tr][a])-_)&&(m=S)}var k=rp(n.getXScale());return!l&&Math.abs(i.translate(m[tr][a])-_)<=k/2&&(l=m),l}function ap(t,e,n,r){var i,o;void 0===n&&(n=""),void 0===r&&(r=!1);var a,s,l=t[tr],u=function(t,e,n){var r=e.getAttribute("position").getFields(),i=e.scales,o=Se(n)||!n?r[0]:n,a=i[o],s=a?a.getText(t[o]):t[o]||o;return Se(n)?n(s,t):s}(l,e,n),c=e.tooltipOption,h=e.theme.defaultColor,f=[];function d(e,n){if(r||!je(n)&&""!==n){var i={title:u,data:l,mappingData:t,name:e,value:n,color:t.color||h,marker:!0};f.push(i)}}if(Ee(c)){var p=c.fields,g=c.callback;if(g){var v=p.map((function(e){return t[tr][e]})),y=g.apply(void 0,me([],ve(v),!1)),m=he({data:t[tr],mappingData:t,title:u,color:t.color||h,marker:!0},y);f.push(m)}else{var _=e.scales;try{for(var x=ge(p),b=x.next();!b.done;b=x.next()){var w=b.value;if(!je(l[w])){var M=_[w];d(a=If(M),s=M.getText(l[w]))}}}catch(j){i={error:j}}finally{try{b&&!b.done&&(o=x.return)&&o.call(x)}finally{if(i)throw i.error}}}}else{var S=ip(e);s=function(t,e){var n=t[e.field];return Ce(n)?n.map((function(t){return e.getText(t)})).join("-"):e.getText(n)}(l,S),a=function(t,e){var n,r=e.getGroupScales();if(r.length&&(n=r[0]),n){var i=n.field;return n.getText(t[i])}return If(ip(e))}(l,e),d(a,s)}return f}function sp(t,e,n,r){var i,o,a=r.showNil,s=[],l=t.dataArray;if(!Mn(l)){t.sort(l);try{for(var u=ge(l),c=u.next();!c.done;c=u.next()){var h=op(e,c.value,t);if(h){var f=t.getElementId(h),d=t.elementsMap[f];if("heatmap"===t.type||d.visible){var p=ap(h,t,n,a);p.length&&s.push(p)}}}}catch(g){i={error:g}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}}return s}function lp(t,e,n,r){var i=r.showNil,o=[],a=t.container.getShape(e.x,e.y);if(a&&a.get("visible")&&a.get("origin")){var s=ap(a.get("origin").mappingData,t,n,i);s.length&&o.push(s)}return o}function up(t,e,n){var r,i,o=[],a=t.geometries,s=n.shared,l=n.title,u=n.reversed;try{for(var c=ge(a),h=c.next();!h.done;h=c.next()){var f=h.value;if(f.visible&&!1!==f.tooltipOption){var d=f.type,p=void 0;(p=["point","edge","polygon"].includes(d)?lp(f,e,l,n):["area","line","path","heatmap"].includes(d)||!1!==s?sp(f,e,l,n):lp(f,e,l,n)).length&&(u&&p.reverse(),o.push(p))}}}catch(g){r={error:g}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}return o}function cp(t){void 0===t&&(t=0);var e=Ce(t)?t:[t];switch(e.length){case 0:e=[0,0,0,0];break;case 1:e=new Array(4).fill(e[0]);break;case 2:e=me(me([],ve(e),!1),ve(e),!1);break;case 3:e=me(me([],ve(e),!1),[e[1]],!1);break;default:e=e.slice(0,4)}return e}var hp={};function fp(t,e){hp[t]=e}var dp=function(){function t(t){this.option=this.wrapperOption(t)}return t.prototype.update=function(t){return this.option=this.wrapperOption(t),this},t.prototype.hasAction=function(t){var e=this.option.actions;return Ve(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var n=this.option,r=n.type,i=n.cfg,o="theta"===r,a=he({start:t,end:e},i),s=function(t){return oc[t.toLowerCase()]}(o?"polar":r);return this.coordinate=new s(a),this.coordinate.type=r,o&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},t.prototype.adjust=function(t,e){return this.coordinate.update({start:t,end:e}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},t.prototype.rotate=function(t){return this.option.actions.push(["rotate",t]),this},t.prototype.reflect=function(t){return this.option.actions.push(["reflect",t]),this},t.prototype.scale=function(t,e){return this.option.actions.push(["scale",t,e]),this},t.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},t.prototype.getOption=function(){return this.option},t.prototype.getCoordinate=function(){return this.coordinate},t.prototype.wrapperOption=function(t){return he({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this;Pe(this.option.actions,(function(n){var r,i=ve(n),o=i[0],a=i.slice(1);(!!je(t)||t.includes(o))&&(r=e.coordinate)[o].apply(r,me([],ve(a),!1))}))},t}(),pp=function(){function t(t,e,n){this.view=t,this.gEvent=e,this.data=n,this.type=e.type}return t.fromData=function(e,n,r){return new t(e,new Xr(n,{}),r)},Object.defineProperty(t.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}();function gp(t){var e=t.getController("axis"),n=t.getController("legend"),r=t.getController("annotation");[e,t.getController("slider"),t.getController("scrollbar"),n,r].forEach((function(t){t&&t.layout()}))}var vp=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,r){var i=n,o=this.getScaleMeta(r);if(0===e.length&&o){var a=o.scale,s={type:a.type};a.isCategory&&(s.values=a.values),i=xn(s,o.scaleDef,n)}var l=Of(t,e,i);return this.cacheScale(l,n,r),l},t.prototype.sync=function(t,e){var n=this;this.syncScales.forEach((function(r,i){var o=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER,s=[];Pe(r,(function(t){var e=n.getScale(t);a=Ke(e.max)?Math.max(a,e.max):a,o=Ke(e.min)?Math.min(o,e.min):o,Pe(e.values,(function(t){s.includes(t)||s.push(t)}))})),Pe(r,(function(r){var i=n.getScale(r);if(i.isContinuous)i.change({min:o,max:a,values:s});else if(i.isCategory){var l=i.range,u=n.getScaleMeta(r);s&&!Pn(u,["scaleDef","range"])&&(l=Bf(xn({},i,{values:s}),t,e)),i.change({values:s,range:l})}}))}))},t.prototype.cacheScale=function(t,e,n){var r=this.getScaleMeta(n);r&&r.scale.type===t.type?(!function(t,e){if("identity"!==t.type&&"identity"!==e.type){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);t.change(n)}}(r.scale,t),r.scaleDef=e):(r={key:n,scale:t,scaleDef:e},this.scales.set(n,r));var i=this.getSyncKey(r);if(r.syncKey=i,this.removeFromSyncScales(n),i){var o=this.syncScales.get(i);o||(o=[],this.syncScales.set(i,o)),o.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=Ye(t.split("-")),r=this.syncScales.get(n);r&&r.length&&(e=this.getScaleMeta(r[0]))}return e&&e.scale},t.prototype.deleteScale=function(t){var e=this.getScaleMeta(t);if(e){var n=e.syncKey,r=this.syncScales.get(n);if(r&&r.length){var i=r.indexOf(t);-1!==i&&r.splice(i,1)}}this.scales.delete(t)},t.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},t.prototype.removeFromSyncScales=function(t){var e=this;this.syncScales.forEach((function(n,r){var i=n.indexOf(t);if(-1!==i)return n.splice(i,1),0===n.length&&e.syncScales.delete(r),!1}))},t.prototype.getSyncKey=function(t){var e=t.scale,n=t.scaleDef,r=e.field,i=Pn(n,["sync"]);return!0===i?r:!1===i?void 0:i},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}(),yp=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=t,this.right=e,this.bottom=n,this.left=r}return t.instance=function(e,n,r,i){return void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=0),new t(e,n,r,i)},t.prototype.max=function(t){var e=ve(t,4),n=e[0],r=e[1],i=e[2],o=e[3];return this.top=Math.max(this.top,n),this.right=Math.max(this.right,r),this.bottom=Math.max(this.bottom,i),this.left=Math.max(this.left,o),this},t.prototype.shrink=function(t){var e=ve(t,4),n=e[0],r=e[1],i=e[2],o=e[3];return this.top+=n,this.right+=r,this.bottom+=i,this.left+=o,this},t.prototype.inc=function(t,e){var n=t.width,r=t.height;switch(e){case Rn.TOP:case Rn.TOP_LEFT:case Rn.TOP_RIGHT:this.top+=r;break;case Rn.RIGHT:case Rn.RIGHT_TOP:case Rn.RIGHT_BOTTOM:this.right+=n;break;case Rn.BOTTOM:case Rn.BOTTOM_LEFT:case Rn.BOTTOM_RIGHT:this.bottom+=r;break;case Rn.LEFT:case Rn.LEFT_TOP:case Rn.LEFT_BOTTOM:this.left+=n}return this},t.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},t.prototype.clone=function(){return new(t.bind.apply(t,me([void 0],ve(this.getPadding()),!1)))},t}();function mp(t){var e=t.padding;if(!function(t){return!Ke(t)&&!Ce(t)}(e))return new(yp.bind.apply(yp,me([void 0],ve(cp(e)),!1)));var n=t.viewBBox,r=new yp,i=[],o=[],a=[];return Pe(t.getComponents(),(function(t){var e=t.type;e===Nn.AXIS?i.push(t):[Nn.LEGEND,Nn.SLIDER,Nn.SCROLLBAR].includes(e)?o.push(t):e!==Nn.GRID&&e!==Nn.TOOLTIP&&a.push(t)})),Pe(i,(function(t){var e=t.component.getLayoutBBox(),i=new jf(e.x,e.y,e.width,e.height).exceed(n);r.max(i)})),Pe(o,(function(t){var e=t.component,n=t.direction,i=e.getLayoutBBox(),o=e.get("padding"),a=new jf(i.x,i.y,i.width,i.height).expand(o);r.inc(a,n)})),Pe(a,(function(t){var e=t.component,n=t.direction,i=e.getLayoutBBox(),o=new jf(i.x,i.y,i.width,i.height);r.inc(o,n)})),r}function _p(t,e,n){var r=n.instance();e.forEach((function(t){t.autoPadding=r.max(t.autoPadding.getPadding())}))}var xp=function(t){function e(e){var n=t.call(this,{visible:e.visible})||this;n.views=[],n.geometries=[],n.controllers=[],n.interactions={},n.limitInPlot=!1,n.options={data:[],animate:!0},n.usedControllers=Object.keys(hp),n.scalePool=new vp,n.layoutFunc=gp,n.isPreMouseInPlot=!1,n.isDataChanged=!1,n.isCoordinateChanged=!1,n.createdScaleKeys=new Map,n.onCanvasEvent=function(t){var e=t.name;if(!e.includes(":")){var r=n.createViewEvent(t);n.doPlotEvent(r),n.emit(e,r)}},n.onDelegateEvents=function(t){var e=t.name;if(e.includes(":")){var r=n.createViewEvent(t);n.emit(e,r)}};var r=e.id,i=void 0===r?Bn("view"):r,o=e.parent,a=e.canvas,s=e.backgroundGroup,l=e.middleGroup,u=e.foregroundGroup,c=e.region,h=void 0===c?{start:{x:0,y:0},end:{x:1,y:1}}:c,f=e.padding,d=e.appendPadding,p=e.theme,g=e.options,v=e.limitInPlot,y=e.syncViewPadding;return n.parent=o,n.canvas=a,n.backgroundGroup=s,n.middleGroup=l,n.foregroundGroup=u,n.region=h,n.padding=f,n.appendPadding=d,n.options=he(he({},n.options),g),n.limitInPlot=v,n.id=i,n.syncViewPadding=y,n.themeObject=Ee(p)?xn({},tp("default"),$d(p)):tp(p),n.init(),n}return ce(e,t),e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},e.prototype.render=function(t,e){void 0===t&&(t=!1),this.emit(Gn.BEFORE_RENDER,pp.fromData(this,Gn.BEFORE_RENDER,e)),this.paint(t),this.emit(Gn.AFTER_RENDER,pp.fromData(this,Gn.AFTER_RENDER,e)),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(Gn.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,n=0;n<e.length;n++)e[n].clear(),e[n].container.remove(!0),e[n].labelsContainer.remove(!0);this.geometries=[];var r=this.controllers;for(n=0;n<r.length;n++)"annotation"===r[n].name?r[n].clear(!0):r[n].clear();this.createdScaleKeys.forEach((function(e,n){t.getRootView().scalePool.deleteScale(n)})),this.createdScaleKeys.clear();var i=this.views;for(n=0;n<i.length;n++)i[n].clear();this.emit(Gn.AFTER_CLEAR)},e.prototype.destroy=function(){this.emit(Gn.BEFORE_DESTROY),Pe(this.interactions,(function(t){t&&t.destroy()})),this.clear();for(var e=this.controllers,n=0,r=e.length;n<r;n++){e[n].destroy()}this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.geometries,r=0,i=n.length;r<i;r++){n[r].changeVisible(e)}var o=this.controllers;for(r=0,i=o.length;r<i;r++){o[r].changeVisible(e)}return this.foregroundGroup.set("visible",e),this.middleGroup.set("visible",e),this.backgroundGroup.set("visible",e),this.getCanvas().draw(),this},e.prototype.data=function(t){return Tn(this.options,"data",t),this.isDataChanged=!0,this},e.prototype.source=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.data() instead."),this.data(t)},e.prototype.filter=function(t,e){return Se(e)?(Tn(this.options,["filters",t],e),this):(!e&&Pn(this.options,["filters",t])&&delete this.options.filters[t],this)},e.prototype.axis=function(t,e){return un(t)?Tn(this.options,["axes"],t):Tn(this.options,["axes",t],e),this},e.prototype.legend=function(t,e){return un(t)?Tn(this.options,["legends"],t):Ne(t)?(Tn(this.options,["legends",t],e),Ae(e)&&(null==e?void 0:e.selected)&&Tn(this.options,["filters",t],(function(t){var n;return null===(n=null==e?void 0:e.selected[t])||void 0===n||n}))):Tn(this.options,["legends"],t),this},e.prototype.scale=function(t,e){var n=this;return Ne(t)?Tn(this.options,["scales",t],e):Ee(t)&&Pe(t,(function(t,e){Tn(n.options,["scales",e],t)})),this},e.prototype.tooltip=function(t){return Tn(this.options,"tooltip",t),this},e.prototype.annotation=function(){return this.getController("annotation")},e.prototype.guide=function(){return console.warn("This method will be removed at G2 V4.1. Please use chart.annotation() instead."),this.annotation()},e.prototype.coordinate=function(t,e){return Ne(t)?Tn(this.options,"coordinate",{type:t,cfg:e}):Tn(this.options,"coordinate",t),this.coordinateController.update(this.options.coordinate),this.coordinateController},e.prototype.coord=function(t,e){return console.warn("This method will be removed at G2 V4.1. Please use chart.coordinate() instead."),this.coordinate(t,e)},e.prototype.facet=function(t,e){this.facetInstance&&this.facetInstance.destroy();var n=function(t){return qf[on(t)]}(t);if(!n)throw new Error("facet '".concat(t,"' is not exist!"));return this.facetInstance=new n(this,he(he({},e),{type:t})),this},e.prototype.animate=function(t){return Tn(this.options,"animate",t),this},e.prototype.updateOptions=function(t){return this.clear(),gn(this.options,t),this.views.forEach((function(t){return t.destroy()})),this.views=[],this.initOptions(),this.coordinateBBox=this.viewBBox,this},e.prototype.option=function(t,n){if(e.prototype[t])throw new Error("Can't use built in variable name \"".concat(t,'", please change another one.'));return Tn(this.options,t,n),this},e.prototype.theme=function(t){return this.themeObject=Ee(t)?xn({},this.themeObject,$d(t)):tp(t),this},e.prototype.interaction=function(t,e){var n=this.interactions[t];n&&n.destroy();var r=Rd(t,this,e);return r&&(r.init(),this.interactions[t]=r),this},e.prototype.removeInteraction=function(t){var e=this.interactions[t];e&&(e.destroy(),this.interactions[t]=void 0)},e.prototype.changeData=function(t){this.isDataChanged=!0,this.emit(Gn.BEFORE_CHANGE_DATA,pp.fromData(this,Gn.BEFORE_CHANGE_DATA,null)),this.data(t),this.paint(!0);for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].changeData(t)}this.emit(Gn.AFTER_CHANGE_DATA,pp.fromData(this,Gn.AFTER_CHANGE_DATA,null))},e.prototype.createView=function(t){this.parent&&this.parent.parent&&console.warn("The view nesting recursive feature will be removed at G2 V4.1. Please avoid to use it.");var n={data:this.options.data,scales:vn(this.options.scales),axes:vn(this.options.axes),coordinate:vn(this.coordinateController.getOption()),tooltip:vn(this.options.tooltip),legends:vn(this.options.legends),animate:this.options.animate,visible:this.visible},r=new e(he(he({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:Un}),middleGroup:this.middleGroup.addGroup({zIndex:Wn}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:qn}),theme:this.themeObject,padding:this.padding},t),{options:he(he({},n),Pn(t,"options",{}))}));return this.views.push(r),r},e.prototype.view=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.createView() instead."),this.createView(t)},e.prototype.removeView=function(t){var e=Re(this.views,(function(e){return e===t}))[0];return e&&e.destroy(),e},e.prototype.getCoordinate=function(){return this.coordinateInstance},e.prototype.getTheme=function(){return this.themeObject},e.prototype.getXScale=function(){var t=this.geometries[0];return t?t.getXScale():null},e.prototype.getYScales=function(){var t={},e=[];return this.geometries.forEach((function(n){var r=n.getYScale(),i=r.field;t[i]||(t[i]=!0,e.push(r))})),e},e.prototype.getScalesByDim=function(t){for(var e=this.geometries,n={},r=0,i=e.length;r<i;r++){var o=e[r],a="x"===t?o.getXScale():o.getYScale();a&&!n[a.field]&&(n[a.field]=a)}return n},e.prototype.getScale=function(t,e){var n=e||this.getScaleKey(t);return this.getRootView().scalePool.getScale(n)},e.prototype.getScaleByField=function(t,e){return this.getScale(t,e)},e.prototype.getOptions=function(){return this.options},e.prototype.getData=function(){return this.filteredData},e.prototype.getOriginalData=function(){return this.options.data},e.prototype.getPadding=function(){return this.autoPadding.getPadding()},e.prototype.getGeometries=function(){return this.geometries},e.prototype.getElements=function(){return De(this.geometries,(function(t,e){return t.concat(e.getElements())}),[])},e.prototype.getElementsBy=function(t){return this.getElements().filter((function(e){return t(e)}))},e.prototype.getLayer=function(t){return t===Dn.BG?this.backgroundGroup:t===Dn.MID?this.middleGroup:(Dn.FORE,this.foregroundGroup)},e.prototype.isPointInPlot=function(t){return function(t,e){var n=!1;if(t)if("theta"===t.type){var r=t.start,i=t.end;n=wf(e.x,r.x,i.x)&&wf(e.y,r.y,i.y)}else{var o=t.invert(e);n=wf(o.x,0,1)&&wf(o.y,0,1)}return n}(this.getCoordinate(),t)},e.prototype.getLegendAttributes=function(){return Ie(this.geometries.map((function(t){return t.getGroupAttributes()})))},e.prototype.getGroupScales=function(){var t=this.geometries.map((function(t){return t.getGroupScales()}));return Sf(Ie(t))},e.prototype.getCanvas=function(){return this.getRootView().canvas},e.prototype.getRootView=function(){for(var t=this;t.parent;)t=t.parent;return t},e.prototype.getXY=function(t){var e,n,r=this.getCoordinate(),i=this.getScalesByDim("x"),o=this.getScalesByDim("y");if(Pe(t,(function(t,r){i[r]&&(e=i[r].scale(t)),o[r]&&(n=o[r].scale(t))})),!je(e)&&!je(n))return r.convert({x:e,y:n})},e.prototype.getController=function(t){return Oe(this.controllers,(function(e){return e.name===t}))},e.prototype.showTooltip=function(t){var e=this.getController("tooltip");return e&&e.showTooltip(t),this},e.prototype.hideTooltip=function(){var t=this.getController("tooltip");return t&&t.hideTooltip(),this},e.prototype.lockTooltip=function(){var t=this.getController("tooltip");return t&&t.lockTooltip(),this},e.prototype.unlockTooltip=function(){var t=this.getController("tooltip");return t&&t.unlockTooltip(),this},e.prototype.isTooltipLocked=function(){var t=this.getController("tooltip");return t&&t.isTooltipLocked()},e.prototype.getTooltipItems=function(t){var e=this.getController("tooltip");return e?e.getTooltipItems(t):[]},e.prototype.getSnapRecords=function(t){for(var e=this.geometries,n=[],r=0,i=e.length;r<i;r++){var o=e[r],a=o.dataArray;o.sort(a);for(var s=void 0,l=0,u=a.length;l<u;l++){(s=op(t,a[l],o))&&n.push(s)}}var c=this.views;for(r=0,i=c.length;r<i;r++){var h=c[r].getSnapRecords(t);n=n.concat(h)}return n},e.prototype.getComponents=function(){for(var t=[],e=this.controllers,n=0,r=e.length;n<r;n++){var i=e[n];t=t.concat(i.getComponents())}return t},e.prototype.filterData=function(t){var e=this.options.filters;return 0===Fn(e)?t:be(t,(function(t,n){return Object.keys(e).every((function(r){return(0,e[r])(t[r],t,n)}))}))},e.prototype.filterFieldData=function(t,e){var n=this.options.filters,r=Pn(n,t);return fn(r)?e:e.filter((function(e,n){return r(e[t],e,n)}))},e.prototype.adjustCoordinate=function(){var t=this.getCoordinate(),e=t.start,n=t.end,r=this.coordinateBBox.bl,i=this.coordinateBBox.tr;jn(e,r)&&jn(n,i)?this.isCoordinateChanged=!1:(this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(r,i))},e.prototype.paint=function(t){this.renderDataRecursive(t),this.syncScale(),this.emit(Gn.BEFORE_PAINT),this.renderPaddingRecursive(t),this.renderLayoutRecursive(t),this.renderBackgroundStyleShape(),this.renderPaintRecursive(t),this.emit(Gn.AFTER_PAINT),this.isDataChanged=!1},e.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var t=Pn(this.themeObject,"background");if(t){this.backgroundStyleRectShape||(this.backgroundStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{},zIndex:-1,capture:!1}),this.backgroundStyleRectShape.toBack());var e=this.viewBBox,n=e.x,r=e.y,i=e.width,o=e.height;this.backgroundStyleRectShape.attr({fill:t,x:n,y:r,width:i,height:o})}else this.backgroundStyleRectShape&&(this.backgroundStyleRectShape.remove(!0),this.backgroundStyleRectShape=void 0)}},e.prototype.renderPaddingRecursive=function(t){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(t),this.autoPadding=mp(this).shrink(cp(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate(),this.controllers.find((function(t){return"tooltip"===t.name})).update();for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].renderPaddingRecursive(t)}},e.prototype.renderLayoutRecursive=function(t){var e=!0===this.syncViewPadding?_p:Se(this.syncViewPadding)?this.syncViewPadding:void 0;e&&(e(this,this.views,yp),this.views.forEach((function(t){t.coordinateBBox=t.viewBBox.shrink(t.autoPadding.getPadding()),t.adjustCoordinate()}))),this.doLayout();for(var n=this.views,r=0,i=n.length;r<i;r++){n[r].renderLayoutRecursive(t)}},e.prototype.renderPaintRecursive=function(t){var e=this.middleGroup;if(this.limitInPlot){var n=Tf(this.coordinateInstance),r=n.type,i=n.attrs;e.setClip({type:r,attrs:i})}else e.setClip(void 0);this.paintGeometries(t),this.renderComponents(t);for(var o=this.views,a=0,s=o.length;a<s;a++){o[a].renderPaintRecursive(t)}},e.prototype.createScale=function(t,e,n,r){var i=Pn(this.options.scales,[t]),o=he(he({},i),n);return this.parent?this.parent.createScale(t,e,o,r):this.scalePool.createScale(t,e,o,r)},e.prototype.renderDataRecursive=function(t){this.doFilterData(),this.createCoordinate(),this.initGeometries(t),this.renderFacet(t);for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].renderDataRecursive(t)}},e.prototype.calculateViewBBox=function(){var t,e,n,r;if(this.parent){var i=this.parent.coordinateBBox;t=i.x,e=i.y,n=i.width,r=i.height}else t=0,e=0,n=this.canvas.get("width"),r=this.canvas.get("height");var o=this.region,a=o.start,s=o.end,l=new jf(t+n*a.x,e+r*a.y,n*(s.x-a.x),r*(s.y-a.y));this.viewBBox&&this.viewBBox.isEqual(l)||(this.viewBBox=new jf(t+n*a.x,e+r*a.y,n*(s.x-a.x),r*(s.y-a.y))),this.coordinateBBox=this.viewBBox},e.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},e.prototype.initComponentController=function(){for(var t=this.usedControllers,e=0,n=t.length;e<n;e++){var r=t[e],i=hp[r];i&&this.controllers.push(new i(this))}},e.prototype.createViewEvent=function(t){var e=t.shape,n=t.name,r=e?e.get("origin"):null,i=new pp(this,t,r);return i.type=n,i},e.prototype.doPlotEvent=function(t){var e=t.type,n={x:t.x,y:t.y};if(["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"].includes(e)){var r=this.isPointInPlot(n),i=t.clone();if(r){var o="plot:".concat(e);i.type=o,this.emit(o,i),"mouseleave"!==e&&"touchend"!==e||(this.isPreMouseInPlot=!1)}"mousemove"===e||"touchmove"===e?(this.isPreMouseInPlot&&!r?("mousemove"===e&&(i.type=Vn.MOUSE_LEAVE,this.emit(Vn.MOUSE_LEAVE,i)),i.type=Vn.LEAVE,this.emit(Vn.LEAVE,i)):!this.isPreMouseInPlot&&r&&("mousemove"===e&&(i.type=Vn.MOUSE_ENTER,this.emit(Vn.MOUSE_ENTER,i)),i.type=Vn.ENTER,this.emit(Vn.ENTER,i)),this.isPreMouseInPlot=r):"mouseleave"!==e&&"touchend"!==e||this.isPreMouseInPlot&&("mouseleave"===e&&(i.type=Vn.MOUSE_LEAVE,this.emit(Vn.MOUSE_LEAVE,i)),i.type=Vn.LEAVE,this.emit(Vn.LEAVE,i),this.isPreMouseInPlot=!1)}},e.prototype.doFilterData=function(){var t=this.options.data;this.filteredData=this.filterData(t)},e.prototype.initGeometries=function(t){this.createOrUpdateScales();for(var e=this.getCoordinate(),n=Pn(this.options,"scales",{}),r=this.geometries,i=0,o=r.length;i<o;i++){var a=r[i];a.scales=this.getGeometryScales();var s={coordinate:e,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?a.update(s):a.init(s)}this.adjustScales()},e.prototype.createOrUpdateScales=function(){for(var t=this.getScaleFields(),e=this.getGroupedFields(),n=this.getOptions(),r=n.data,i=n.scales,o=void 0===i?{}:i,a=this.filteredData,s=0,l=t.length;s<l;s++){var u=t[s],c=o[u],h=this.getScaleKey(u);this.createScale(u,e.includes(u)?r:a,c,h),this.createdScaleKeys.set(h,!0)}},e.prototype.syncScale=function(){this.getRootView().scalePool.sync(this.getCoordinate(),this.theme)},e.prototype.getGeometryScales=function(){for(var t=this.getScaleFields(),e={},n=0;n<t.length;n++){var r=t[n];e[r]=this.getScaleByField(r)}return e},e.prototype.getScaleFields=function(){for(var t=[],e=new Map,n=this.geometries,r=0;r<n.length;r++){Sf(n[r].getScaleFields(),t,e)}return t},e.prototype.getGroupedFields=function(){for(var t=[],e=new Map,n=this.geometries,r=0;r<n.length;r++){Sf(n[r].getGroupFields(),t,e)}return t},e.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},e.prototype.adjustCategoryScaleRange=function(){var t=this,e=me([this.getXScale()],ve(this.getYScales()),!1).filter((function(t){return!!t})),n=this.getCoordinate(),r=this.options.scales;Pe(e,(function(e){var i=e.field,o=e.values,a=e.isCategory,s=e.isIdentity;(a||s)&&o&&!Pn(r,[i,"range"])&&(e.range=Bf(e,n,t.theme))}))},e.prototype.initComponents=function(t){for(var e=this.controllers,n=0;n<e.length;n++){var r=e[n];t?r.update():(r.clear(),r.render())}},e.prototype.doLayout=function(){this.layoutFunc(this)},e.prototype.createCoordinate=function(){var t=this.coordinateBBox.bl,e=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(t,e)},e.prototype.paintGeometries=function(t){for(var e=this.options.animate,n=this.getCoordinate(),r={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},i=this.geometries,o=0;o<i.length;o++){var a=i[o];a.coordinate=n,a.canvasRegion=r,e||a.animate(!1),a.paint(t)}},e.prototype.renderComponents=function(t){for(var e=this.getComponents(),n=0;n<e.length;n++){e[n].component.render()}},e.prototype.renderFacet=function(t){this.facetInstance&&(t?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},e.prototype.initOptions=function(){var t=this,e=this.options,n=e.geometries,r=void 0===n?[]:n,i=e.interactions,o=void 0===i?[]:i,a=e.views,s=void 0===a?[]:a,l=e.annotations,u=void 0===l?[]:l,c=e.coordinate,h=e.events,f=e.facets;this.coordinateController?c&&this.coordinateController.update(c):this.coordinateController=new dp(c);for(var d=0;d<r.length;d++){var p=r[d];this.createGeometry(p)}for(var g=0;g<o.length;g++){var v=o[g],y=v.type,m=v.cfg;this.interaction(y,m)}for(var _=0;_<s.length;_++){var x=s[_];this.createView(x)}for(var b=this.getController("annotation"),w=0;w<u.length;w++){var M=u[w];b.annotation(M)}h&&Pe(h,(function(e,n){t.on(n,e)})),f&&Pe(f,(function(e){var n=e.type,r=fe(e,["type"]);t.facet(n,r)}))},e.prototype.createGeometry=function(t){var e=t.type,n=t.cfg,r=void 0===n?{}:n;if(this[e]){var i=this[e](r);Pe(t,(function(t,e){Se(i[e])&&i[e](t)}))}},e.prototype.getScaleKey=function(t){return"".concat(this.id,"-").concat(t)},e}(fr);function bp(t,e){xp.prototype[t.toLowerCase()]=function(t){void 0===t&&(t={});var n=he({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},t),r=new e(n);return this.geometries.push(r),r}}var wp=function(t){function e(e){var n=this,r=e.container,i=e.width,o=e.height,a=e.autoFit,s=void 0!==a&&a,l=e.padding,u=e.appendPadding,c=e.renderer,h=void 0===c?"canvas":c,f=e.pixelRatio,d=e.localRefresh,p=void 0===d||d,g=e.visible,v=void 0===g||g,y=e.supportCSSTransform,m=void 0!==y&&y,_=e.defaultInteractions,x=void 0===_?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text","axis-description"]:_,b=e.options,w=e.limitInPlot,M=e.theme,S=e.syncViewPadding,j=Ne(r)?document.getElementById(r):r,C=ir('<div style="position:relative;"></div>');j.appendChild(C);var E=cr(j,s,i,o),P=new(function(t){var e=er[t];if(!e)throw new Error("G engine '".concat(t,"' is not exist, please register it at first."));return e}(h).Canvas)(he({container:C,pixelRatio:f,localRefresh:p,supportCSSTransform:m},E));return(n=t.call(this,{parent:null,canvas:P,backgroundGroup:P.addGroup({zIndex:Un}),middleGroup:P.addGroup({zIndex:Wn}),foregroundGroup:P.addGroup({zIndex:qn}),padding:l,appendPadding:u,visible:v,options:b,limitInPlot:w,theme:M,syncViewPadding:S})||this).onResize=yn((function(){n.forceFit()}),300),n.ele=j,n.canvas=P,n.width=E.width,n.height=E.height,n.autoFit=s,n.localRefresh=p,n.renderer=h,n.wrapperElement=C,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(x),n}return ce(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;Pe(t,(function(t){e.interaction(t)}))},e.prototype.aria=function(t){var e="aria-label";!1===t?this.ele.removeAttribute(e):this.ele.setAttribute(e,t.label)},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(Gn.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(Gn.AFTER_CHANGE_SIZE)),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.aria(!1)},e.prototype.destroy=function(){var e,n;t.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),e=this.wrapperElement,(n=e.parentNode)&&n.removeChild(e),this.wrapperElement=null},e.prototype.changeVisible=function(e){return t.prototype.changeVisible.call(this,e),this.wrapperElement.style.display=e?"":"none",this},e.prototype.forceFit=function(){if(!this.destroyed){var t=cr(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){lr(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},e.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},e.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},e}(xp),Mp=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){Pe(this.components,(function(t){t.component.destroy()})),this.components=[]},t.prototype.destroy=function(){this.clear()},t.prototype.getComponents=function(){return this.components},t.prototype.changeVisible=function(t){this.visible!==t&&(this.components.forEach((function(e){t?e.component.show():e.component.hide()})),this.visible=t)},t}();var Sp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return ce(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},e.prototype.render=function(){},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var e=this.view,n=this.getTooltipItems(t);if(n.length){var r=this.getTitle(n),i={x:n[0].x,y:n[0].y};e.emit("tooltip:show",pp.fromData(e,"tooltip:show",he({items:n,title:r},t)));var o=this.getTooltipCfg(),a=o.follow,s=o.showMarkers,l=o.showCrosshairs,u=o.showContent,c=o.marker,h=this.items,f=this.title;if(jn(f,r)&&jn(h,n)?(this.tooltip&&a&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",pp.fromData(e,"tooltip:change",he({items:n,title:r},t))),(Se(u)?u(n):u)&&(this.tooltip||this.renderTooltip(),this.tooltip.update(gn({},o,{items:this.getItemsAfterProcess(n),title:r},a?t:{})),this.tooltip.show()),s&&this.renderTooltipMarkers(n,c)),this.items=n,this.title=r,l){var d=Pn(o,["crosshairs","follow"],!1);this.renderCrosshairs(d?t:i,o)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){if(this.getTooltipCfg().follow){var t=this.tooltipMarkersGroup;t&&t.hide();var e=this.xCrosshair,n=this.yCrosshair;e&&e.hide(),n&&n.hide();var r=this.tooltip;r&&r.hide(),this.view.emit("tooltip:hide",pp.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},e.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},e.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},e.prototype.isTooltipLocked=function(){return this.isLocked},e.prototype.clear=function(){var t=this,e=t.tooltip,n=t.xCrosshair,r=t.yCrosshair,i=t.tooltipMarkersGroup;e&&(e.hide(),e.clear()),n&&n.clear(),r&&r.clear(),i&&i.clear(),(null==e?void 0:e.get("customContent"))&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},e.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},e.prototype.changeVisible=function(t){if(this.visible!==t){var e=this,n=e.tooltip,r=e.tooltipMarkersGroup,i=e.xCrosshair,o=e.yCrosshair;t?(n&&n.show(),r&&r.show(),i&&i.show(),o&&o.show()):(n&&n.hide(),r&&r.hide(),i&&i.hide(),o&&o.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e,n,r,i,o,a,s=this.findItemsFromView(this.view,t);if(s.length){s=Ie(s);try{for(var l=ge(s),u=l.next();!u.done;u=l.next()){var c=u.value;try{for(var h=(r=void 0,ge(c)),f=h.next();!f.done;f=h.next()){var d=f.value,p=d.mappingData,g=p.x,v=p.y;d.x=Ce(g)?g[g.length-1]:g,d.y=Ce(v)?v[v.length-1]:v}}catch(M){r={error:M}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}}catch(S){e={error:S}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}if(!1===this.getTooltipCfg().shared&&s.length>1){var y=s[0],m=Math.abs(t.y-y[0].y);try{for(var _=ge(s),x=_.next();!x.done;x=_.next()){var b=x.value,w=Math.abs(t.y-b[0].y);w<=m&&(y=b,m=w)}}catch(j){o={error:j}}finally{try{x&&!x.done&&(a=_.return)&&a.call(_)}finally{if(o)throw o.error}}s=[y]}return function(t){for(var e=[],n=function(n){var r=t[n];Oe(e,(function(t){return t.color===r.color&&t.name===r.name&&t.value===r.value&&t.title===r.title}))||e.push(r)},r=0;r<t.length;r++)n(r);return e}(Ie(s))}return[]},e.prototype.layout=function(){},e.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},e.prototype.isCursorEntered=function(t){if(this.tooltip){var e=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(e&&n){var r=e.getBoundingClientRect(),i=r.x,o=r.y,a=r.width,s=r.height;return new jf(i,o,a,s).isPointIn(t)}}return!1},e.prototype.getTooltipCfg=function(){var t=this.view,e=t.getOptions().tooltip,n=this.processCustomContent(e),r=t.getTheme(),i=Pn(r,["components","tooltip"],{}),o=Pn(n,"enterable",i.enterable);return xn({},i,n,{capture:!(!o&&!this.isLocked)})},e.prototype.processCustomContent=function(t){if(un(t)||!Pn(t,"customContent"))return t;var e=t.customContent;return he(he({},t),{customContent:function(t,n){var r=e(t,n)||"";return Ne(r)?'<div class="g2-tooltip">'+r+"</div>":r}})},e.prototype.getTitle=function(t){var e=t[0].title||t[0].name;return this.title=e,e},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),e={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),r=new pf(he(he({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));r.init(),this.tooltip=r},e.prototype.renderTooltipMarkers=function(t,e){var n,r,i=this.getTooltipMarkersGroup(),o=this.view.getRootView(),a=o.limitInPlot;try{for(var s=ge(t),l=s.next();!l.done;l=s.next()){var u=l.value,c=u.x,h=u.y;if(a||(null==i?void 0:i.getClip())){var f=Tf(o.getCoordinate()),d=f.type,p=f.attrs;null==i||i.setClip({type:d,attrs:p})}else null==i||i.setClip(void 0);var g=this.view.getTheme(),v=Pn(g,["components","tooltip","marker"],{}),y=he(he({fill:u.color,symbol:"circle",shadowColor:u.color},Se(e)?he(he({},v),e(u)):e),{x:c,y:h});i.addShape("marker",{attrs:y})}}catch(m){n={error:m}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}},e.prototype.renderCrosshairs=function(t,e){var n=Pn(e,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===n&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var n,r,i=this.getViewWithGeometry(this.view).getCoordinate();if(i.isRect)i.isTransposed?(n={x:i.start.x,y:t.y},r={x:i.end.x,y:t.y}):(n={x:t.x,y:i.end.y},r={x:t.x,y:i.start.y});else{var o=Pf(i,t),a=i.getCenter(),s=i.getRadius();r=yf(a.x,a.y,s,o),n=a}var l=xn({start:n,end:r,container:this.getTooltipCrosshairsGroup()},Pn(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete l.type;var u=this.xCrosshair;u?u.update(l):(u=new fh(l)).init(),u.render(),u.show(),this.xCrosshair=u},e.prototype.renderYCrosshairs=function(t,e){var n,r,i=this.getViewWithGeometry(this.view).getCoordinate();if(i.isRect){var o=void 0,a=void 0;i.isTransposed?(o={x:t.x,y:i.end.y},a={x:t.x,y:i.start.y}):(o={x:i.start.x,y:t.y},a={x:i.end.x,y:t.y}),n={start:o,end:a},r="Line"}else n={center:i.getCenter(),radius:Ef(i,t),startAngle:i.startAngle,endAngle:i.endAngle},r="Circle";delete(n=xn({container:this.getTooltipCrosshairsGroup()},n,Pn(e,"crosshairs",{}),this.getCrosshairsText("y",t,e))).type;var s=this.yCrosshair;s?i.isRect&&"circle"===s.get("type")||!i.isRect&&"line"===s.get("type")?(s=new _h[r](n)).init():s.update(n):(s=new _h[r](n)).init(),s.render(),s.show(),this.yCrosshair=s},e.prototype.getCrosshairsText=function(t,e,n){var r=Pn(n,["crosshairs","text"]),i=Pn(n,["crosshairs","follow"]),o=this.items;if(r){var a=this.getViewWithGeometry(this.view),s=o[0],l=a.getXScale(),u=a.getYScales()[0],c=void 0,h=void 0;if(i){var f=this.view.getCoordinate().invert(e);c=l.invert(f.x),h=u.invert(f.y)}else c=s.data[l.field],h=s.data[u.field];var d="x"===t?c:h;return Se(r)?r=r(t,d,o,e):r.content=d,{text:r}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):((t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"})).toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||((t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1})).toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.findItemsFromView=function(t,e){var n,r;if(!1===t.getOptions().tooltip)return[];var i=up(t,e,this.getTooltipCfg());try{for(var o=ge(t.views),a=o.next();!a.done;a=o.next()){var s=a.value;i=i.concat(this.findItemsFromView(s,e))}}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:Oe(t.views,(function(t){return e.getViewWithGeometry(t)}))},e.prototype.getItemsAfterProcess=function(t){var e=this.getTooltipCfg().customItems;return(e||function(t){return t})(t)},e}(Mp),jp={};function Cp(t){return jp[t.toLowerCase()]}function Ep(t,e){jp[t.toLowerCase()]=e}var Pp={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},Tp={interval:function(t){return{enter:{animation:t.isRect?t.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:t.isPolar&&t.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},kp={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(t){var e;return t.isRect?e=t.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",t.isPolar&&t.isTransposed&&(e="wave-in")),{animation:e}},schema:function(t){return{animation:t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy"}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function Ap(t,e,n){var r=Tp[t];return r&&(Se(r)&&(r=r(e)),r=xn({},Pp,r),n)?r[n]:r}function Op(t,e,n){var r=Pn(t.get("origin"),"data",tr),i=e.animation,o=function(t,e){return{delay:Se(t.delay)?t.delay(e):t.delay,easing:Se(t.easing)?t.easing(e):t.easing,duration:Se(t.duration)?t.duration(e):t.duration,callback:t.callback,repeat:t.repeat}}(e,r);if(i){var a=Cp(i);a&&a(t,o,n)}else t.animate(n.toAttrs,o)}var Ip="element-background",Bp=function(t){function e(e){var n=t.call(this,e)||this;n.labelShape=[],n.states=[];var r=e.shapeFactory,i=e.container,o=e.offscreenGroup,a=e.elementIndex,s=e.visible,l=void 0===s||s;return n.shapeFactory=r,n.container=i,n.offscreenGroup=o,n.visible=l,n.elementIndex=a,n}return ce(e,t),e.prototype.draw=function(t,e){void 0===e&&(e=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,e),!1===this.visible&&this.changeVisible(!1)},e.prototype.update=function(t){var e=this.shapeFactory,n=this.shape;if(n){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(n,t);var r=this.getOffscreenGroup(),i=e.drawShape(this.shapeType,t,r);i.cfg.data=this.data,i.cfg.origin=t,i.cfg.element=this,this.syncShapeStyle(n,i,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this.shapeFactory,n=this.shape;if(n){var r=this.getAnimateCfg("leave");r?Op(n,r,{coordinate:e.coordinate,toAttrs:he({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e),e?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach((function(t){t.show()}))):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach((function(t){t.hide()})))},e.prototype.setState=function(t,e){var n=this,r=n.states,i=n.shapeFactory,o=n.model,a=n.shape,s=n.shapeType,l=r.indexOf(t);if(e){if(l>-1)return;r.push(t),"active"!==t&&"selected"!==t||null==a||a.toFront()}else{if(-1===l)return;if(r.splice(l,1),"active"===t||"selected"===t){var u=this.geometry,c=u.sortZIndex,h=u.zIndexReversed?this.geometry.elements.length-this.elementIndex:this.elementIndex;c?a.setZIndex(h):a.set("zIndex",h)}}var f=i.drawShape(s,o,this.getOffscreenGroup());r.length?this.syncShapeStyle(a,f,r,null):this.syncShapeStyle(a,f,["reset"],null),f.remove(!0);var d={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",d),sc(this.shape,"statechange",d)},e.prototype.clearStates=function(){var t=this;Pe(this.states,(function(e){t.setState(e,!1)})),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this.shape,e=this.labelShape,n={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return t&&(n=t.getCanvasBBox()),e&&e.forEach((function(t){var e=t.getCanvasBBox();n.x=Math.min(e.x,n.x),n.y=Math.min(e.y,n.y),n.minX=Math.min(e.minX,n.minX),n.minY=Math.min(e.minY,n.minY),n.maxX=Math.max(e.maxX,n.maxX),n.maxY=Math.max(e.maxY,n.maxY)})),n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this,e=t.shapeType,n=t.geometry,r=t.shapeFactory,i=n.stateOption,o=r.defaultShapeType,a=r.theme[e]||r.theme[o];this.statesStyle=xn({},a,i)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),r=Pn(n,[t,"style"],{}),i=r[e]||r;return Se(i)?i(this):i},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var r=n[t];return r?he(he({},r),{callback:function(){var t;Se(r.callback)&&r.callback(),null===(t=e.geometry)||void 0===t||t.emit(Yn.AFTER_DRAW_ANIMATE)}}):r}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var r=this,i=r.shapeFactory,o=r.container,a=r.shapeType;if(this.shape=i.drawShape(a,t,o),this.shape){this.setShapeInfo(this.shape,t);var s=this.shape.cfg.name;s?Ne(s)&&(this.shape.cfg.name=["element",s]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var l=e?"enter":"appear",u=this.getAnimateCfg(l);u&&(null===(n=this.geometry)||void 0===n||n.emit(Yn.BEFORE_DRAW_ANIMATE),Op(this.shape,u,{coordinate:i.coordinate,toAttrs:he({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this;(t.cfg.origin=e,t.cfg.element=this,t.isGroup())&&t.get("children").forEach((function(t){n.setShapeInfo(t,e)}))},e.prototype.syncShapeStyle=function(t,e,n,r,i){var o,a=this;if(void 0===n&&(n=[]),void 0===i&&(i=0),t&&e){var s=t.get("clipShape"),l=e.get("clipShape");if(this.syncShapeStyle(s,l,n,r),t.isGroup())for(var u=t.get("children"),c=e.get("children"),h=0;h<u.length;h++)this.syncShapeStyle(u[h],c[h],n,r,i+h);else{if(!Mn(n)&&!jn(n,["reset"])){var f=t.get("name");Ce(f)&&(f=f[1]),Pe(n,(function(t){if(e.get("name")!==Ip){var n=a.getStateStyle(t,f||i);e.attr(n)}}))}var d=bf(t,e);this.animate?r?(null===(o=this.geometry)||void 0===o||o.emit(Yn.BEFORE_DRAW_ANIMATE),Op(t,r,{coordinate:this.shapeFactory.coordinate,toAttrs:d,shapeModel:this.model})):Mn(n)?t.attr(d):(t.stopAnimate(),t.animate(d,{duration:300})):t.attr(d)}}},e.prototype.getShapeType=function(t){var e=Pn(t,"shape");return Ce(e)?e[0]:e},e}(fr),Lp={},Fp={};function Dp(t,e){Lp[t.toLowerCase()]=e}function Rp(t,e){Fp[t.toLowerCase()]=e}var Np={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(t,e){var n=this.getShape(t);return n.getPoints?n.getPoints(e):this.getDefaultPoints(e)},getShape:function(t){var e=this[t]||this[this.defaultShapeType];return e.coordinate=this.coordinate,e},getDefaultPoints:function(){return[]},getDefaultStyle:function(t){return Pn(t,[this.defaultShapeType,"default","style"],{})},getMarker:function(t,e){var n=this.getShape(t);if(!n.getMarker){var r=this.defaultShapeType;n=this.getShape(r)}var i=this.theme,o=Pn(i,[t,"default"],{}),a=n.getMarker(e);return xn({},o,a)},drawShape:function(t,e,n){return this.getShape(t).draw(e,n)}},zp={coordinate:null,parsePath:function(t){var e=this.coordinate,n=js(t);return n=e.isPolar?id(e,n):function(t,e){var n=[];return Pe(e,(function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":n.push(Jf(e,t));break;case"a":n.push(td(e,t));break;default:n.push(e)}})),n}(e,n),n},parsePoint:function(t){return this.coordinate.convert(t)},parsePoints:function(t){var e=this.coordinate;return t.map((function(t){return e.convert(t)}))},draw:function(t,e){}},Hp={};function Gp(t,e){var n=sn(t),r=he(he(he({},Np),e),{geometryType:t});return Hp[n]=r,r}function Yp(t,e,n){var r=sn(t),i=Hp[r],o=he(he({},zp),n);return i[e]=o,o}function Vp(t){var e=sn(t);return Hp[e]}function Xp(t,e){return Ve(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(n){return!jn(t[n],e[n])}))}function qp(t){return Ce(t)?t:t.split("*")}function Wp(t,e){for(var n=[],r=[],i=[],o=new Map,a=0;a<e.length;a++){var s=e[a];t[s]?r.push(s):n.push(s),o.set(s,!0)}return Object.keys(t).forEach((function(t){o.has(t)||i.push(t)})),{added:n,updated:r,removed:i}}var Up=function(e){function n(t){var n=e.call(this,t)||this;n.type="base",n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1,n.isCoordinateChanged=!1;var r=t.container,i=t.labelsContainer,o=t.coordinate,a=t.data,s=t.sortable,l=void 0!==s&&s,u=t.visible,c=void 0===u||u,h=t.theme,f=t.scales,d=void 0===f?{}:f,p=t.scaleDefs,g=void 0===p?{}:p,v=t.intervalPadding,y=t.dodgePadding,m=t.maxColumnWidth,_=t.minColumnWidth,x=t.columnWidthRatio,b=t.roseWidthRatio,w=t.multiplePieWidthRatio,M=t.zIndexReversed,S=t.sortZIndex,j=t.useDeferredLabel;return n.container=r,n.labelsContainer=i,n.coordinate=o,n.data=a,n.sortable=l,n.visible=c,n.userTheme=h,n.scales=d,n.scaleDefs=g,n.intervalPadding=v,n.dodgePadding=y,n.maxColumnWidth=m,n.minColumnWidth=_,n.columnWidthRatio=x,n.roseWidthRatio=b,n.multiplePieWidthRatio=w,n.zIndexReversed=M,n.sortZIndex=S,n.useDeferredLabel=j?"number"==typeof j?j:1/0:null,n}return ce(n,e),n.prototype.position=function(t){var e=t;Ae(t)||(e={fields:qp(t)});var n=Pn(e,"fields");return 1===n.length&&(n.unshift("1"),Tn(e,"fields",n)),Tn(this.attributeOption,"position",e),this},n.prototype.color=function(t,e){return this.createAttrOption("color",t,e),this},n.prototype.shape=function(t,e){return this.createAttrOption("shape",t,e),this},n.prototype.size=function(t,e){return this.createAttrOption("size",t,e),this},n.prototype.adjust=function(t){var e=t;return(Ne(t)||Ae(t))&&(e=[t]),Pe(e,(function(t,n){Ee(t)||(e[n]={type:t})})),this.adjustOption=e,this},n.prototype.style=function(t,e){if(Ne(t)){var n=qp(t);this.styleOption={fields:n,callback:e}}else{var r=t,i=(n=r.fields,r.callback),o=r.cfg;this.styleOption=n||i||o?t:{cfg:t}}return this},n.prototype.tooltip=function(t,e){if(Ne(t)){var n=qp(t);this.tooltipOption={fields:n,callback:e}}else this.tooltipOption=t;return this},n.prototype.animate=function(t){return this.animateOption=t,this},n.prototype.label=function(t,e,n){if(Ne(t)){var r={},i=qp(t);r.fields=i,Se(e)?r.callback=e:Ae(e)&&(r.cfg=e),n&&(r.cfg=n),this.labelOption=r}else this.labelOption=t;return this},n.prototype.state=function(t){return this.stateOption=t,this},n.prototype.customInfo=function(t){return this.customOption=t,this},n.prototype.init=function(t){void 0===t&&(t={}),this.setCfg(t),this.initAttributes(),this.processData(this.data),this.adjustScale()},n.prototype.update=function(t){void 0===t&&(t={});var e=t.data,n=t.isDataChanged,r=t.isCoordinateChanged,i=this.attributeOption,o=this.lastAttributeOption;jn(i,o)?!e||!n&&jn(e,this.data)?this.setCfg(t):(this.setCfg(t),this.initAttributes(),this.processData(e)):this.init(t),this.adjustScale(),this.isCoordinateChanged=r},n.prototype.paint=function(t){var e=this;void 0===t&&(t=!1),this.animateOption&&(this.animateOption=xn({},Ap(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[],this.getOffscreenGroup().clear();var n=this.beforeMappingData,r=this.beforeMapping(n);this.dataArray=new Array(r.length);for(var i=0;i<r.length;i++){var o=r[i];this.dataArray[i]=this.mapping(o)}if(this.updateElements(this.dataArray,t),this.lastElementsMap=this.elementsMap,this.canDoGroupAnimation(t)){var a=this.container,s=this.type,l=this.coordinate,u=Pn(this.animateOption,"appear"),c=this.getYScale(),h=l.convert({x:0,y:c.scale(this.getYMinValue())});!function(t,e,n,r,i){if(kp[n]){var o=kp[n](r),a=Cp(Pn(o,"animation",""));if(a){var s=he(he(he({},Pp.appear),o),e);t.stopAnimate(),a(t,s,{coordinate:r,minYPoint:i,toAttrs:null})}}}(a,u,s,l,h)}if(this.labelOption){var f=this.useDeferredLabel,d=function(){return e.renderLabels(Ie(e.dataArray),t)}.bind(this);if("number"==typeof f){var p="number"==typeof f&&f!==1/0?f:0;if(window.requestIdleCallback){var g=p&&p!==1/0?{timeout:p}:void 0;window.requestIdleCallback(d,g)}else setTimeout(d,p)}else d()}this.lastAttributeOption=he({},this.attributeOption),!1===this.visible&&this.changeVisible(!1)},n.prototype.clear=function(){var t=this,e=t.container,n=t.geometryLabel,r=t.offscreenGroup;e&&e.clear(),n&&n.clear(),r&&r.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1,this.isCoordinateChanged=!1},n.prototype.destroy=function(){this.clear(),this.container.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,e.prototype.destroy.call(this)},n.prototype.getGroupScales=function(){return this.groupScales},n.prototype.getAttribute=function(t){return this.attributes[t]},n.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},n.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},n.prototype.getGroupAttributes=function(){var t=[];return Pe(this.attributes,(function(e){Jn.includes(e.type)&&t.push(e)})),t},n.prototype.getDefaultValue=function(t){var e,n=this.getAttribute(t);return n&&Mn(n.scales)&&(e=n.values[0]),e},n.prototype.getAttributeValues=function(t,e){for(var n=[],r=t.scales,i=0,o=r.length;i<o;i++){var a=r[i],s=a.field;a.isIdentity?n.push(a.values):n.push(e[s])}return t.mapping.apply(t,me([],ve(n),!1))},n.prototype.getAdjust=function(t){return this.adjusts[t]},n.prototype.getCoordinate=function(){return this.coordinate},n.prototype.getData=function(){return this.data},n.prototype.getShapeMarker=function(t,e){return this.getShapeFactory().getMarker(t,e)},n.prototype.getElementsBy=function(t){return this.elements.filter((function(e){return t(e)}))},n.prototype.getElements=function(){return this.elements},n.prototype.getElementId=function(t){var e=(t=Ce(t)?t[0]:t)[tr];if(this.idFields.length){for(var n=e[this.idFields[0]],r=1;r<this.idFields.length;r++)n+="-"+e[this.idFields[r]];return n}var i,o,a=this.type,s=this.getXScale(),l=this.getYScale(),u=s.field||"x",c=e[l.field||"y"];i="identity"===s.type?s.values[0]:e[u],o="interval"===a||"schema"===a?"".concat(i):"line"===a||"area"===a||"path"===a?a:"".concat(i,"-").concat(c);for(var h=this.groupScales,f=(r=0,h.length);r<f;r++){var d=h[r].field;o="".concat(o,"-").concat(e[d])}var p=this.getAdjust("dodge");if(p){var g=p.dodgeBy;g&&(o="".concat(o,"-").concat(e[g]))}return this.getAdjust("jitter")&&(o="".concat(o,"-").concat(t.x,"-").concat(t.y)),o},n.prototype.getScaleFields=function(){var t=[],e=new Map,n=this,r=n.attributeOption,i=n.labelOption,o=n.tooltipOption;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a];s.fields?Sf(s.fields,t,e):s.values&&Sf(s.values,t,e)}return i&&i.fields&&Sf(i.fields,t,e),Ee(o)&&o.fields&&Sf(o.fields,t,e),t},n.prototype.changeVisible=function(t){e.prototype.changeVisible.call(this,t);for(var n=this.elements,r=0,i=n.length;r<i;r++){n[r].changeVisible(t)}t?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},n.prototype.getFields=function(){var t=new Map,e=[];return Object.values(this.attributeOption).forEach((function(n){((null==n?void 0:n.fields)||[]).forEach((function(n){t.has(n)||e.push(n),t.set(n,!0)}))}),[]),e},n.prototype.getGroupFields=function(){for(var t=[],e=new Map,n=0,r=Jn.length;n<r;n++){var i=Jn[n],o=this.attributeOption[i];o&&o.fields&&Sf(o.fields,t,e)}return t},n.prototype.getXYFields=function(){var t=ve(this.attributeOption.position.fields,2);return[t[0],t[1]]},n.prototype.getXField=function(){return Pn(this.getXYFields(),[0])},n.prototype.getYField=function(){return Pn(this.getXYFields(),[1])},n.prototype.getShapes=function(){return this.elements.map((function(t){return t.shape}))},n.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},n.prototype.sort=function(t){if(!this.hasSorted)for(var e=this.getXScale(),n=e.field,r=0;r<t.length;r++){t[r].sort((function(t,r){return e.translate(t[tr][n])-e.translate(r[tr][n])}))}this.hasSorted=!0},n.prototype.adjustScale=function(){var t=this.getYScale();t&&this.getAdjust("stack")&&this.updateStackRange(t,this.beforeMappingData)},n.prototype.getShapeFactory=function(){var t=this.shapeType;if(Vp(t))return this.shapeFactory||(this.shapeFactory=vn(Vp(t))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[t]||{},this.shapeFactory},n.prototype.createShapePointsCfg=function(t){var e=this.getXScale(),n=this.getYScale();return{x:this.normalizeValues(t[e.field],e),y:n?this.normalizeValues(t[n.field],n):t.y?t.y:.1,y0:n?n.scale(this.getYMinValue()):void 0}},n.prototype.createElement=function(t,e,n){void 0===n&&(n=!1);var r=this.container,i=this.getDrawCfg(t),o=this.getShapeFactory(),a=new Bp({shapeFactory:o,container:r,offscreenGroup:this.getOffscreenGroup(),elementIndex:e});return a.animate=this.animateOption,a.geometry=this,a.draw(i,n),a},n.prototype.getDrawCfg=function(t){var e=t[tr],n={mappingData:t,data:e,x:t.x,y:t.y,color:t.color,size:t.size,isInCircle:this.coordinate.isPolar,customInfo:this.customOption},r=t.shape;!r&&this.getShapeFactory()&&(r=this.getShapeFactory().defaultShapeType),n.shape=r;var i=this.theme.geometries[this.shapeType];n.defaultStyle=Pn(i,[r,"default"],{}).style,!n.defaultStyle&&this.getShapeFactory()&&(n.defaultStyle=this.getShapeFactory().getDefaultStyle(i));var o=this.styleOption;return o&&(n.style=this.getStyleCfg(o,e)),this.generatePoints&&(n.points=t.points,n.nextPoints=t.nextPoints),n},n.prototype.updateElements=function(t,e){var n,r,i,o,a,s;void 0===e&&(e=!1);for(var l=new Map,u=[],c=new Map,h=0,f=0;f<t.length;f++)for(var d=t[f],p=0;p<d.length;p++){var g=d[p],v=this.getElementId(g),y=l.has(v)?"".concat(v,"-").concat(f,"-").concat(p):v;u.push(y),l.set(y,g),c.set(y,h),h++}this.elements=new Array(h);var m=Wp(this.lastElementsMap,u),_=m.added,x=m.updated,b=m.removed;try{for(var w=ge(_),M=w.next();!M.done;M=w.next()){v=M.value,g=l.get(v),f=c.get(v);var S=this.createElement(g,f,e);this.elements[f]=S,this.elementsMap[v]=S,S.shape&&S.shape.set("zIndex",this.zIndexReversed?this.elements.length-f:f)}}catch(A){n={error:A}}finally{try{M&&!M.done&&(r=w.return)&&r.call(w)}finally{if(n)throw n.error}}try{for(var j=ge(x),C=j.next();!C.done;C=j.next()){v=C.value,S=this.lastElementsMap[v],g=l.get(v);var E=this.getDrawCfg(g),P=S.getModel();f=c.get(v);(this.isCoordinateChanged||Xp(E,P))&&(S.animate=this.animateOption,S.update(E)),this.elements[f]=S,this.elementsMap[v]=S,S.shape&&S.shape.set("zIndex",this.zIndexReversed?this.elements.length-f:f)}}catch(O){i={error:O}}finally{try{C&&!C.done&&(o=j.return)&&o.call(j)}finally{if(i)throw i.error}}this.container&&this.container.sort();try{for(var T=ge(b),k=T.next();!k.done;k=T.next()){v=k.value;(S=this.lastElementsMap[v]).animate=this.animateOption,S.destroy()}}catch(I){a={error:I}}finally{try{k&&!k.done&&(s=T.return)&&s.call(T)}finally{if(a)throw a.error}}},n.prototype.getLabelType=function(){var t=this,e=t.labelOption,n=t.coordinate,r=t.type,i=n.type,o=n.isTransposed,a=Pn(e,["cfg","type"]);return a||(a="polar"===i?o?"pie":"polar":"theta"===i?"pie":"interval"===r||"polygon"===r?"interval":"base"),a},n.prototype.getYMinValue=function(){var t=this.getYScale(),e=t.min,n=t.max;return e>=0?e:n<=0?n:0},n.prototype.createAttrOption=function(t,e,n){if(je(e)||Ee(e))Ee(e)&&jn(Object.keys(e),["values"])?Tn(this.attributeOption,t,{fields:e.values}):Tn(this.attributeOption,t,e);else{var r={};Ke(e)?r.values=[e]:r.fields=qp(e),n&&(Se(n)?r.callback=n:r.values=n),Tn(this.attributeOption,t,r)}},n.prototype.initAttributes=function(){var e=this,n=this,r=n.attributes,i=n.attributeOption,o=n.theme,a=n.shapeType;this.groupScales=[];var s={},l=function(t){if(i.hasOwnProperty(t)){var n=i[t];if(!n)return{value:void 0};var l=he({},n),u=l.callback,c=l.values,h=l.fields,f=(void 0===h?[]:h).map((function(n){var r=e.scales[n];!s[n]&&Jn.includes(t)&&("cat"===Af(r,Pn(e.scaleDefs,n),t,e.type)&&(e.groupScales.push(r),s[n]=!0));return r}));l.scales=f,"position"!==t&&1===f.length&&"identity"===f[0].type?l.values=f[0].values:u||c||("size"===t?l.values=o.sizes:"shape"===t?l.values=o.shapes[a]||[]:"color"===t&&(f.length?l.values=f[0].values.length<=10?o.colors10:o.colors20:l.values=o.colors10));var d=Ju(t);r[t]=new d(l)}};for(var u in i){var c=l(u);if("object"===t(c))return c.value}},n.prototype.processData=function(t){var e,n;this.hasSorted=!1;for(var r=this.getAttribute("position").scales.filter((function(t){return t.isCategory})),i=this.groupData(t),o=[],a=0,s=i.length;a<s;a++){for(var l=i[a],u=[],c=0,h=l.length;c<h;c++){var f=l[c],d={};for(var p in f)d[p]=f[p];d[tr]=f;try{for(var g=(e=void 0,ge(r)),v=g.next();!v.done;v=g.next()){var y=v.value,m=y.field;d[m]=y.translate(d[m])}}catch(x){e={error:x}}finally{try{v&&!v.done&&(n=g.return)&&n.call(g)}finally{if(e)throw e.error}}u.push(d)}o.push(u)}var _=this.adjustData(o);return this.beforeMappingData=_,_},n.prototype.adjustData=function(t){var e=this.adjustOption,n=this,r=n.intervalPadding,i=n.dodgePadding,o=n.theme,a=this.maxColumnWidth||o.maxColumnWidth,s=this.minColumnWidth||o.minColumnWidth,l=this.columnWidthRatio||o.columnWidthRatio,u=t;if(e){var c=this.getXScale(),h=this.getYScale(),f=c.field,d=h?h.field:null,p=Cf(this.coordinate),g=c.values.length,v=this.getAttribute("size"),y=void 0;v&&(y=v.values[0]);for(var m=0,_=e.length;m<_;m++){var x=e[m],b=he({xField:f,yField:d,intervalPadding:r,dodgePadding:i,xDimensionLength:p,groupNum:g,defaultSize:y,maxColumnWidth:a,minColumnWidth:s,columnWidthRatio:l},x),w=x.type;if("dodge"===w){var M=[];if(c.isCategory||"identity"===c.type)M.push("x");else{if(h)throw new Error("dodge is not support linear attribute, please use category attribute!");M.push("y")}b.adjustNames=M,b.dodgeRatio=l}else if("stack"===w){var S=this.coordinate;if(!h){b.height=S.getHeight();var j=this.getDefaultValue("size")||3;b.size=j}!S.isTransposed&&je(b.reverseOrder)&&(b.reverseOrder=!0)}var C=qs(w);b.dimValuesMap={},c&&c.values&&(b.dimValuesMap[c.field]=c.values.map((function(t){return c.translate(t)})));var E=new C(b);u=E.process(u),this.adjusts[w]=E}}return u},n.prototype.groupData=function(t){for(var e=this.getGroupScales(),n=this.scaleDefs,r={},i=[],o=0;o<e.length;o++){var a=e[o].field;i.push(a),Pn(n,[a,"values"])&&(r[a]=n[a].values)}return function(t,e,n){var r,i;if(void 0===n&&(n={}),!e)return[t];var o=We(t,e),a=[];if(1===e.length&&n[e[0]]){var s=n[e[0]];try{for(var l=ge(s),u=l.next();!u.done;u=l.next()){var c=u.value,h=o["_".concat(c)];h&&a.push(h)}}catch(p){r={error:p}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}else for(var f in o)if(o.hasOwnProperty(f)){var d=o[f];a.push(d)}return a}(t,i,r)},n.prototype.updateStackRange=function(t,e){for(var n=Ie(e),r=t.field,i=t.min,o=t.max,a=0;a<n.length;a++){var s=n[a],l=Math.min.apply(null,s[r]),u=Math.max.apply(null,s[r]);l<i&&(i=l),u>o&&(o=u)}var c=this.scaleDefs,h={};i<t.min&&!Pn(c,[r,"min"])&&(h.min=i),o>t.max&&!Pn(c,[r,"max"])&&(h.max=o),t.change(h)},n.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,r=e.length;n<r;n++){var i=e[n];this.generateShapePoints(i);var o=e[n+1];o&&(this.generateShapePoints(o),i[0].nextPoints=o[0].points)}return e},n.prototype.generateShapePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttribute("shape"),r=0;r<t.length;r++){var i=t[r],o=this.createShapePointsCfg(i),a=n?this.getAttributeValues(n,i):null,s=e.getShapePoints(a,o);i.points=s}},n.prototype.normalizeValues=function(t,e){var n=[];if(Ce(t))for(var r=0;r<t.length;r++){var i=t[r];n.push(e.scale(i))}else n=e.scale(t);return n},n.prototype.mapping=function(t){for(var e=this.attributes,n=[],r=0;r<t.length;r++){var i=t[r],o={_origin:i[tr],points:i.points,nextPoints:i.nextPoints};for(var a in e)if(e.hasOwnProperty(a)){var s=e[a],l=s.names,u=this.getAttributeValues(s,i);if(l.length>1)for(var c=0;c<u.length;c+=1){var h=u[c];o[l[c]]=Ce(h)&&1===h.length?h[0]:h}else o[l[0]]=1===u.length?u[0]:u}this.convertPoint(o),n.push(o)}return n},n.prototype.convertPoint=function(t){var e,n,r,i=t.x,o=t.y,a=this.coordinate;if(Ce(i)&&Ce(o)){e=[],n=[];for(var s=0,l=0,u=i.length,c=o.length;s<u&&l<c;s+=1,l+=1)r=a.convert({x:i[s],y:o[l]}),e.push(r.x),n.push(r.y)}else if(Ce(o)){n=[];for(var h=0;h<o.length;h++){var f=o[h];r=a.convert({x:i,y:f}),e&&e!==r.x?(Ce(e)||(e=[e]),e.push(r.x)):e=r.x,n.push(r.y)}}else if(Ce(i)){e=[];for(h=0;h<i.length;h++){var d=i[h];r=a.convert({x:d,y:o}),n&&n!==r.y?(Ce(n)||(n=[n]),n.push(r.y)):n=r.y,e.push(r.x)}}else{var p=a.convert({x:i,y:o});e=p.x,n=p.y}t.x=e,t.y=n},n.prototype.getStyleCfg=function(t,e){var n=t.fields,r=void 0===n?[]:n,i=t.callback,o=t.cfg;if(o)return o;var a=r.map((function(t){return e[t]}));return i.apply(void 0,me([],ve(a),!1))},n.prototype.setCfg=function(t){var e=this,n=t.coordinate,r=t.data,i=t.theme,o=t.scaleDefs;n&&(this.coordinate=n),r&&(this.data=r),o&&(this.scaleDefs=o,this.idFields=[],Pe(o,(function(t,n){t&&t.key&&e.idFields.push(n)}))),i&&(this.theme=this.userTheme?xn({},i,this.userTheme):i)},n.prototype.renderLabels=function(t,e){return void 0===e&&(e=!1),de(this,void 0,void 0,(function(){var n,r,i,o,a,s,l,u,c,h,f,d,p=this;return pe(this,(function(g){switch(g.label){case 0:return n=this.geometryLabel,this.emit(Yn.BEFORE_RENDER_LABEL),n||(r=this.getLabelType(),i=Lp[r.toLowerCase()],n=new i(this),this.geometryLabel=n),[4,n.render(t,e)];case 1:g.sent(),o=n.labelsRenderer.shapesMap,a=new Map,Pe(o,(function(t,e){for(var n=t.getChildren()||[],r=0;r<n.length;r++){var i=n[r],o=p.elementsMap[i.get("elementId")||e.split(" ")[0]];if(o){i.cfg.name=["element","label"],i.cfg.element=o;var s=a.get(o)||new Set;s.add(t),a.set(o,s)}}}));try{for(s=ge(a.entries()),l=s.next();!l.done;l=s.next())u=ve(l.value,2),c=u[0],h=u[1],c.labelShape=me([],ve(h),!1)}catch(v){f={error:v}}finally{try{l&&!l.done&&(d=s.return)&&d.call(s)}finally{if(f)throw f.error}}return this.emit(Yn.AFTER_RENDER_LABEL),[2]}}))}))},n.prototype.canDoGroupAnimation=function(t){return!t&&this.animateOption&&(void 0===Pn(this.animateOption,"appear")||Pn(this.animateOption,"appear")&&void 0===Pn(this.animateOption,["appear","animation"]))},n}(fr),Zp=Ci;function Kp(t,e,n){var r=Zp(t.getMatrix(),[["t",e,n]]);t.setMatrix(r)}function Qp(t,e){var n=function(t,e){var n=t.attr(),r=n.x,i=n.y;return Zp(t.getMatrix(),[["t",-r,-i],["r",e],["t",r,i]])}(t,e);t.setMatrix(n)}function $p(t){return t.find((function(t){return"text"===t.get("type")}))}function Jp(t,e,n){void 0===n&&(n=[0,0,0,0]);var r=t&&t.getChildren()[0];if(r){var i=r.clone();(null==e?void 0:e.rotate)&&Qp(i,-e.rotate);var o=i.getCanvasBBox(),a=o.x,s=o.y,l=o.width,u=o.height;i.destroy();var c=n;return je(c)?c=[2,2,2,2]:Ke(c)&&(c=new Array(4).fill(c)),{x:a-c[3],y:s-c[0],width:l+c[1]+c[3],height:u+c[0]+c[2],rotation:(null==e?void 0:e.rotate)||0}}return{x:0,y:0,width:0,height:0,rotation:0}}function tg(t,e){var n=t.getBBox();return Ve(e,(function(t){var e,r,i,o=t.getBBox();return e=n,r=o,void 0===(i=2)&&(i=0),Math.max(0,Math.min(e.x+e.width+i,r.x+r.width+i)-Math.max(e.x-i,r.x-i))*Math.max(0,Math.min(e.y+e.height+i,r.y+r.height+i)-Math.max(e.y-i,r.y-i))>0}))}function eg(t,e,n){var r=n.data,i=n.origin,o=n.animateCfg,a=n.coordinate,s=Pn(o,"update");t.set("data",r),t.set("origin",i),t.set("animateCfg",o),t.set("coordinate",a),t.set("visible",e.get("visible")),(t.getChildren()||[]).forEach((function(l,u){var c=e.getChildByIndex(u);if(c){l.set("data",r),l.set("origin",i),l.set("animateCfg",o),l.set("coordinate",a);var h=bf(l,c);s?Op(l,s,{toAttrs:h,coordinate:a}):l.attr(h),c.isGroup()&&eg(l,c,n)}else t.removeChild(l),l.remove(!0)})),Pe(e.getChildren(),(function(e,n){n>=t.getCount()&&(e.destroyed||t.add(e))}))}var ng=function(){function t(t){this.shapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){return void 0===n&&(n=!1),de(this,void 0,void 0,(function(){var r,i,o,a,s,l,u,c,h=this;return pe(this,(function(f){switch(f.label){case 0:if(r={},i=this.createOffscreenGroup(),!t.length)return[3,2];try{for(o=ge(t),a=o.next();!a.done;a=o.next())(s=a.value)&&(r[s.id]=this.renderLabel(s,i))}catch(d){u={error:d}}finally{try{a&&!a.done&&(c=o.return)&&c.call(o)}finally{if(u)throw u.error}}return[4,this.doLayout(t,e,r)];case 1:f.sent(),this.renderLabelLine(t,r),this.renderLabelBackground(t,r),this.adjustLabel(t,r),f.label=2;case 2:return l=this.shapesMap,Pe(r,(function(t,e){if(t.destroyed)delete r[e];else{if(l[e]){var i=t.get("data"),o=t.get("origin"),a=t.get("coordinate"),s=t.get("animateCfg"),u=l[e];eg(u,r[e],{data:i,origin:o,animateCfg:s,coordinate:a}),r[e]=u}else{if(h.container.destroyed)return;h.container.add(t);var c=Pn(t.get("animateCfg"),n?"enter":"appear");c&&Op(t,c,{toAttrs:he({},t.attr()),coordinate:t.get("coordinate")})}delete l[e]}})),Pe(l,(function(t){var e=Pn(t.get("animateCfg"),"leave");e?Op(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.shapesMap=r,i.destroy(),[2]}}))}))},t.prototype.clear=function(){this.container.clear(),this.shapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},t.prototype.renderLabel=function(t,e){var n,r,i=t.id,o=t.elementId,a=t.data,s=t.mappingData,l=t.coordinate,u=t.animate,c=t.content,h={id:i,elementId:o,capture:t.capture,data:a,origin:he(he({},s),{data:s[tr]}),coordinate:l},f=e.addGroup(he({name:"label",animateCfg:!1!==this.animate&&null!==u&&!1!==u&&xn({},this.animate,u)},h));if(c.isGroup&&c.isGroup()||c.isShape&&c.isShape()){var d=c.getCanvasBBox(),p=d.width,g=d.height,v=Pn(t,"textAlign","left"),y=t.x;"center"===v?y-=p/2:"right"!==v&&"end"!==v||(y-=p),Kp(c,y,t.y-g/2),n=c,f.add(c)}else{var m=Pn(t,["style","fill"]);n=f.addShape("text",he({attrs:he(he({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:Pn(t,"textBaseline","middle"),text:t.content},t.style),{fill:(r=m,null===r?t.color:m)})},h))}return t.rotate&&Qp(n,t.rotate),f},t.prototype.doLayout=function(t,e,n){return de(this,void 0,void 0,(function(){var r,i=this;return pe(this,(function(o){switch(o.label){case 0:return this.layout?(r=Ce(this.layout)?this.layout:[this.layout],[4,Promise.all(r.map((function(r){var o,a=(o=Pn(r,"type",""),Fp[o.toLowerCase()]);if(a){var s=[],l=[];return Pe(n,(function(t,n){s.push(t),l.push(e[t.get("elementId")])})),a(t,s,l,i.region,r.cfg)}})))]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}}))}))},t.prototype.renderLabelLine=function(t,e){Pe(t,(function(t){var n=Pn(t,"coordinate");if(t&&n){var r=n.getCenter(),i=n.getRadius();if(t.labelLine){var o=Pn(t,"labelLine",{}),a=t.id,s=o.path;if(!s){var l=yf(r.x,r.y,i,t.angle);s=[["M",l.x,l.y],["L",t.x,t.y]]}var u=e[a];u.destroyed||u.addShape("path",{capture:!1,attrs:he({path:s,stroke:t.color?t.color:Pn(t,["style","fill"],"#000"),fill:null},o.style),id:a,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t,e){Pe(t,(function(t){var n=Pn(t,"coordinate"),r=Pn(t,"background");if(r&&n){var i=t.id,o=e[i];if(!o.destroyed){var a=o.getChildren()[0];if(a){var s=Jp(o,t,r.padding),l=s.rotation,u=fe(s,["rotation"]),c=o.addShape("rect",{attrs:he(he({},u),r.style||{}),id:i,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(c.setZIndex(-1),l){var h=a.getMatrix();c.setMatrix(h)}}}}}))},t.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},t.prototype.adjustLabel=function(t,e){Pe(t,(function(t){if(t){var n=t.id,r=e[n];if(!r.destroyed)Pe(r.findAll((function(t){return"path"!==t.get("type")})),(function(e){e&&(t.offsetX&&e.attr("x",e.attr("x")+t.offsetX),t.offsetY&&e.attr("y",e.attr("y")+t.offsetY))}))}}))},t}();function rg(t){var e=0;return Pe(t,(function(t){e+=t})),e/t.length}var ig=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],r=this.getLabelCfgs(t);return Pe(t,(function(t,i){var o=r[i];if(!o||je(t.x)||je(t.y))n.push(null);else{var a=Ce(o.content)?o.content:[o.content];o.content=a;var s=a.length;Pe(a,(function(r,i){if(je(r)||""===r)n.push(null);else{var a=he(he({},o),e.getLabelPoint(o,t,i));a.textAlign||(a.textAlign=e.getLabelAlign(a,i,s)),a.offset<=0&&(a.labelLine=null),n.push(a)}}))}})),n},t.prototype.render=function(t,e){return void 0===e&&(e=!1),de(this,void 0,void 0,(function(){var n,r,i;return pe(this,(function(o){switch(o.label){case 0:return n=this.getLabelItems(t),r=this.getLabelsRenderer(),i=this.getGeometryShapes(),[4,r.render(n,i,e)];case 1:return o.sent(),[2]}}))}))},t.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},t.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},t.prototype.getCoordinate=function(){return this.geometry.coordinate},t.prototype.getDefaultLabelCfg=function(t,e){var n=this.geometry,r=n.type,i=n.theme;return"polygon"===r||"interval"===r&&"middle"===e||t<0&&!["line","point","path"].includes(r)?Pn(i,"innerLabels",{}):Pn(i,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.type,i=e.theme;return"polygon"===r||t.offset<0&&!["line","point","path"].includes(r)?xn({},n,i.innerLabels,t):xn({},n,i.labels,t)},t.prototype.setLabelPosition=function(t,e,n,r){},t.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},t.prototype.getLabelOffsetPoint=function(t,e,n){var r=t.offset,i=this.getCoordinate().isTransposed,o=i?"x":"y",a=i?1:-1,s={x:0,y:0};return s[o]=e>0||1===n?r*a:r*a*-1,s},t.prototype.getLabelPoint=function(t,e,n){var r=this.getCoordinate(),i=t.content.length;function o(e,n,r){void 0===r&&(r=!1);var i=e;return Ce(i)&&(i=1===t.content.length?r?rg(i):i.length<=2?i[e.length-1]:rg(i):i[n]),i}var a={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},s=Ce(e.shape)?e.shape[0]:e.shape,l="funnel"===s||"pyramid"===s;if("polygon"===this.geometry.type){var u=function(t,e){if(Ke(t)&&Ke(e))return[t,e];if(gf(t)||gf(e))return[vf(t),vf(e)];for(var n,r,i=-1,o=0,a=0,s=t.length-1,l=0;++i<t.length;)n=s,s=i,l+=r=t[n]*e[s]-t[s]*e[n],o+=(t[n]+t[s])*r,a+=(e[n]+e[s])*r;return[o/(l*=3),a/l]}(e.x,e.y);a.x=u[0],a.y=u[1]}else"interval"!==this.geometry.type||l?(a.x=o(e.x,n),a.y=o(e.y,n)):(a.x=o(e.x,n,!0),a.y=o(e.y,n));if(l){var c=Pn(e,"nextPoints"),h=Pn(e,"points");if(c){var f=r.convert(h[1]),d=r.convert(c[1]);a.x=(f.x+d.x)/2,a.y=(f.y+d.y)/2}else if("pyramid"===s){f=r.convert(h[1]),d=r.convert(h[2]);a.x=(f.x+d.x)/2,a.y=(f.y+d.y)/2}}t.position&&this.setLabelPosition(a,e,n,t.position);var p=this.getLabelOffsetPoint(t,n,i);return a.start={x:a.x,y:a.y},a.x+=p.x,a.y+=p.y,a.color=e.color,a},t.prototype.getLabelAlign=function(t,e,n){var r="center";if(this.getCoordinate().isTransposed){var i=t.offset;r=i<0?"right":0===i?"center":"left",n>1&&0===e&&("right"===r?r="left":"left"===r&&(r="right"))}return r},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,r=e.getXScale(),i=e.getYScale(),o=t[tr],a=e.getElementId(t);return"line"===n||"area"===n?a+=" ".concat(o[r.field]):"path"===n&&(a+=" ".concat(o[r.field],"-").concat(o[i.field])),a},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,r=t.canvasRegion,i=t.animateOption,o=this.geometry.coordinate,a=this.labelsRenderer;return a||(a=new ng({container:e,layout:Pn(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=a),a.region=r,a.animate=!!i&&Ap("label",o),a},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,r=n.labelOption,i=n.scales,o=n.coordinate,a=r,s=a.fields,l=a.callback,u=a.cfg,c=s.map((function(t){return i[t]})),h=[];return Pe(t,(function(t,n){var r,i=t[tr],a=e.getLabelText(i,c);if(l){var f=s.map((function(t){return i[t]}));if(r=l.apply(void 0,me([],ve(f),!1)),je(r))return void h.push(null)}var d=he(he({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:i,mappingData:t,coordinate:o},u),r);Se(d.position)&&(d.position=d.position(i,t,n));var p=e.getLabelOffset(d.offset||0),g=e.getDefaultLabelCfg(p,d.position);(d=xn({},g,d)).offset=e.getLabelOffset(d.offset||0);var v=d.content;Se(v)?d.content=v(i,t,n):fn(v)&&(d.content=a[0]),h.push(d)})),h},t.prototype.getLabelText=function(t,e){var n=[];return Pe(e,(function(e){var r=t[e.field];r=Ce(r)?r.map((function(t){return e.getText(t)})):e.getText(r),je(r)||""===r?n.push(null):n.push(r)})),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),n=0;return Ke(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return Pe(t.elementsMap,(function(t,n){e[n]=t.shape})),Pe(t.getOffscreenGroup().getChildren(),(function(n){var r=t.getElementId(n.get("origin").mappingData);e[r]=n})),e},t}();function og(t,e,n){if(!t)return n;var r;if(t.callback&&t.callback.length>1){var i=Array(t.callback.length-1).fill("");r=t.mapping.apply(t,me([e],ve(i),!1)).join("")}else r=t.mapping(e).join("");return r||n}var ag={hexagon:function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},bowtie:function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}},sg=["line","cross","tick","plus","hyphen"];function lg(t){var e=t.symbol;Ne(e)&&ag[e]&&(t.symbol=ag[e])}function ug(t){return t.startsWith(Rn.LEFT)||t.startsWith(Rn.RIGHT)?"vertical":"horizontal"}function cg(t,e,n,r,i){var o=n.getScale(n.type);if(o.isCategory){var a=o.field,s=e.getAttribute("color"),l=e.getAttribute("shape"),u=t.getTheme().defaultColor,c=e.coordinate.isPolar;return o.getTicks().map((function(n,h){var f,d=n.text,p=n.value,g=d,v=o.invert(p),y=0===t.filterFieldData(a,[(f={},f[a]=v,f)]).length;Pe(t.views,(function(t){var e;t.filterFieldData(a,[(e={},e[a]=v,e)]).length||(y=!0)}));var m,_,x=og(s,v,u),b=og(l,v,"point"),w=e.getShapeMarker(b,{color:x,isInPolar:c}),M=i;return Se(M)&&(M=M(g,h,he({name:g,value:v},xn({},r,w)))),function(t,e){var n=t.symbol;if(Ne(n)&&-1!==sg.indexOf(n)){var r=Pn(t,"style",{}),i=Pn(r,"lineWidth",1),o=r.stroke||r.fill||e;t.style=xn({},t.style,{lineWidth:i,stroke:o,fill:null})}}(w=xn({},r,w,Mf(he({},M),["style"])),x),M&&M.style&&(w.style=(m=w.style,_=M.style,Se(_)?_(m):xn({},m,_))),lg(w),{id:v,name:g,value:v,marker:w,unchecked:y}}))}return[]}function hg(t,e){var n=Pn(t,["components","legend"],{});return xn({},Pn(n,["common"],{}),xn({},Pn(n,[e],{})))}function fg(t){return!t&&(null==t||isNaN(t))}function dg(t){if(Ce(t))return fg(t[1].y);var e=t.y;return Ce(e)?fg(e[0]):fg(e)}function pg(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!0),!t.length||1===t.length&&!n)return[];if(e){for(var r=[],i=0,o=t.length;i<o;i++){dg(l=t[i])||r.push(l)}return[r]}var a=[],s=[];for(i=0,o=t.length;i<o;i++){var l;dg(l=t[i])?s.length&&((1!==s.length||n)&&a.push(s),s=[]):s.push(l)}return s.length&&a.push(s),a}function gg(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(r){var i=0===n?"M":"L";e.push([i,r.x,r.y])}}var o=t[0];return o&&(e.push(["L",o.x,o.y]),e.push(["z"])),e}function vg(t){for(var e=t.length/2,n=[],r=[],i=0;i<t.length;i++)i<e?n.push(t[i]):r.push(t[i]);var o=rd(n,!1),a=rd(r,!1);r.length&&o.push(["L",r[0].x,r[0].y]),a.shift();var s=o.concat(a);return n.length&&s.push(["L",n[0].x,n[0].y]),s.push(["z"]),s}function yg(t,e,n,r){void 0===r&&(r="");var i=t.style,o=void 0===i?{}:i,a=t.defaultStyle,s=t.color,l=t.size,u=he(he({},a),o);return s&&(e&&(o.stroke||(u.stroke=s)),n&&(o.fill||(u.fill=s))),r&&je(o[r])&&!je(l)&&(u[r]=l),u}function mg(t){return xn({},{fill:"#CCD6EC",fillOpacity:.3},Pn(t,["background","style"]))}function _g(t){var e=t.x;return(Ce(t.y)?t.y:[t.y]).map((function(t,n){return{x:Ce(e)?e[n]:e,y:t}}))}var xg={line:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dot:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dash:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},smooth:function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},hv:function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},vh:function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},hvh:function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]},vhv:function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}};function bg(t,e){var n=t.color;return{symbol:xg[e],style:{lineWidth:2,r:6,stroke:n}}}function wg(t,e,n,r,i){return 1===t.length?[["M",t[0].x,t[0].y-i.lineWidth/2],["L",t[0].x,t[0].y],["L",t[0].x,t[0].y+i.lineWidth/2]]:(n?(e&&t.length&&t.push({x:t[0].x,y:t[0].y}),o=rd(t,!1,r)):(o=nd(t,!1),e&&o.push(["Z"])),o);var o}function Mg(t,e,n,r,i,o){if(t.length){var a=t[0];return Ce(a.y)?function(t,e,n,r,i,o){var a=[],s=[];Pe(t,(function(t){var e=_g(t);a.push(e[1]),s.push(e[0])}));var l=wg(a,e,r,i,o),u=wg(s,e,r,i,o);return n?l:l.concat(u)}(t,e,n,r,i,o):wg(t,e,r,i,o)}return[]}Gp("line",{defaultShapeType:"line"}),Pe(["line","dot","dash","smooth"],(function(t){Yp("line",t,{draw:function(e,n){var r,i="smooth"===t;if(i){var o=this.coordinate,a=o.start,s=o.end;r=[[a.x,s.y],[s.x,a.y]]}var l=function(t,e,n){for(var r=t.isStack,i=t.connectNulls,o=t.isInCircle,a=t.showSinglePoint,s=yg(t,!0,!1,"lineWidth"),l=pg(t.points,i,a),u=[],c=0,h=l.length;c<h;c++){var f=l[c];u=u.concat(Mg(f,o,r,e,n,s))}return s.path=u,s}(e,i,r);return n.addShape({type:"path",attrs:l,name:"line",capture:!i})},getMarker:function(e){return bg(e,t)}})}));var Sg="#000",jg="#262626",Cg="#BFBFBF",Eg="#F0F0F0",Pg="#FFFFFF",Tg="#A6A6A6",kg="#737373",Ag="#404040",Og="#262626",Ig=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],Bg=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],Lg=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Fg=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?Ig:e,r=t.paletteQualitative20,i=void 0===r?Bg:r,o=t.brandColor,a=void 0===o?n[0]:o;return he(he({},{backgroundColor:"#141414",brandColor:a,subColor:"rgba(255,255,255,0.05)",paletteQualitative10:n,paletteQualitative20:i,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:Lg,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:Ag,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:Tg,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:jg,axisTickLineBorderColor:Ag,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Og,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:kg,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Og,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:kg,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:Ig[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:Tg,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:kg,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:kg,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:Tg,legendPageNavigatorTextFontSize:12,sliderRailFillColor:Og,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:kg,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Eg,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Cg,annotationArcBorderColor:Og,annotationArcBorder:1,annotationLineBorderColor:Ag,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:Tg,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:Pg,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Ag,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:Tg,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:Tg,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:Sg,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:Tg,overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:Sg,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Ag,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:Ig[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:Sg,pointBorderOpacity:1,pointActiveBorderColor:Pg,pointSelectedBorder:2,pointSelectedBorderColor:Pg,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:Ig[0],hollowPointBorderOpacity:.95,hollowPointFillColor:Sg,hollowPointActiveBorder:1,hollowPointActiveBorderColor:Pg,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:Pg,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:Ig[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:Ig[0],areaFillOpacity:.25,areaActiveFillColor:Ig[0],areaActiveFillOpacity:.5,areaSelectedFillColor:Ig[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:Ig[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:Pg,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:Pg,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:Ig[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:Pg,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:Pg,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:Ig[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:Sg,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:Pg,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:Pg,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}),t)}();function Dg(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function Rg(t,e,n,r,i,o){return i>=t&&i<=t+n&&o>=e&&o<=e+r}function Ng(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function zg(t,e){return t[0]===e[0]&&t[1]===e[1]}var Hg=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,Gg=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Yg=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,Vg=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function Xg(t,e){Pe(t.match(Vg),(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function qg(t,e,n){var r=e.getBBox();if(isNaN(r.x)||isNaN(r.y)||isNaN(r.width)||isNaN(r.height))return n;if(Ne(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return function(t,e,n){var r,i,o=Hg.exec(n),a=parseFloat(o[1])%360*(Math.PI/180),s=o[2],l=e.getBBox();a>=0&&a<.5*Math.PI?(r={x:l.minX,y:l.minY},i={x:l.maxX,y:l.maxY}):.5*Math.PI<=a&&a<Math.PI?(r={x:l.maxX,y:l.minY},i={x:l.minX,y:l.maxY}):Math.PI<=a&&a<1.5*Math.PI?(r={x:l.maxX,y:l.maxY},i={x:l.minX,y:l.minY}):(r={x:l.minX,y:l.maxY},i={x:l.maxX,y:l.minY});var u=Math.tan(a),c=u*u,h=(i.x-r.x+u*(i.y-r.y))/(c+1)+r.x,f=u*(i.x-r.x+u*(i.y-r.y))/(c+1)+r.y,d=t.createLinearGradient(r.x,r.y,h,f);return Xg(s,d),d}(t,e,n);if("r"===n[0])return function(t,e,n){var r=Gg.exec(n),i=parseFloat(r[1]),o=parseFloat(r[2]),a=parseFloat(r[3]),s=r[4];if(0===a){var l=s.match(Vg);return l[l.length-1].split(":")[1]}var u=e.getBBox(),c=u.maxX-u.minX,h=u.maxY-u.minY,f=Math.sqrt(c*c+h*h)/2,d=t.createRadialGradient(u.minX+c*i,u.minY+h*o,0,u.minX+c/2,u.minY+h/2,a*f);return Xg(s,d),d}(t,e,n);if("p"===n[0])return function(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var r,i,o=Yg.exec(n),a=o[1],s=o[2];function l(){r=t.createPattern(i,a),e.set("pattern",r),e.set("patternSource",n)}switch(a){case"a":a="repeat";break;case"x":a="repeat-x";break;case"y":a="repeat-y";break;default:a="no-repeat"}return i=new Image,s.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=s,i.complete?l():(i.onload=l,i.src=i.src),r}(t,e,n)}return n}return n instanceof CanvasPattern?n:void 0}function Wg(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ug(t,e){return Wg(t)*Wg(e)?(t[0]*e[0]+t[1]*e[1])/(Wg(t)*Wg(e)):1}function Zg(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Ug(t,e))}function Kg(t,e){var n=e[1],r=e[2],i=$e(tn(e[3]),2*Math.PI),o=e[4],a=e[5],s=t[0],l=t[1],u=e[6],c=e[7],h=Math.cos(i)*(s-u)/2+Math.sin(i)*(l-c)/2,f=-1*Math.sin(i)*(s-u)/2+Math.cos(i)*(l-c)/2,d=h*h/(n*n)+f*f/(r*r);d>1&&(n*=Math.sqrt(d),r*=Math.sqrt(d));var p=n*n*(f*f)+r*r*(h*h),g=p?Math.sqrt((n*n*(r*r)-p)/p):1;o===a&&(g*=-1),isNaN(g)&&(g=0);var v=r?g*n*f/r:0,y=n?g*-r*h/n:0,m=(s+u)/2+Math.cos(i)*v-Math.sin(i)*y,_=(l+c)/2+Math.sin(i)*v+Math.cos(i)*y,x=[(h-v)/n,(f-y)/r],b=[(-1*h-v)/n,(-1*f-y)/r],w=Zg([1,0],x),M=Zg(x,b);return Ug(x,b)<=-1&&(M=Math.PI),Ug(x,b)>=1&&(M=0),0===a&&M>0&&(M-=2*Math.PI),1===a&&M<0&&(M+=2*Math.PI),{cx:m,cy:_,rx:zg(t,[u,c])?0:n,ry:zg(t,[u,c])?0:r,startAngle:w,endAngle:w+M,xRotation:i,arcFlag:o,sweepFlag:a}}var Qg=Math.sin,$g=Math.cos,Jg=Math.atan2,tv=Math.PI;function ev(t,e,n,r,i,o,a){var s=e.stroke,l=e.lineWidth,u=Jg(r-o,n-i),c=new Yv({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*$g(tv/6)+","+10*Qg(tv/6)+" L0,0 L"+10*$g(tv/6)+",-"+10*Qg(tv/6),stroke:s,lineWidth:l}});c.translate(i,o),c.rotateAtPoint(i,o,u),t.set(a?"startArrowShape":"endArrowShape",c)}function nv(t,e,n,r,i,o,a){var s=e.startArrow,l=e.endArrow,u=e.stroke,c=e.lineWidth,h=a?s:l,f=h.d,d=h.fill,p=h.stroke,g=h.lineWidth,v=fe(h,["d","fill","stroke","lineWidth"]),y=Jg(r-o,n-i);f&&(i-=$g(y)*f,o-=Qg(y)*f);var m=new Yv({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:he(he({},v),{stroke:p||u,lineWidth:g||c,fill:d})});m.translate(i,o),m.rotateAtPoint(i,o,y),t.set(a?"startArrowShape":"endArrowShape",m)}function rv(t,e,n,r,i){var o=Jg(r-e,n-t);return{dx:$g(o)*i,dy:Qg(o)*i}}function iv(e,n,r,i,o,a){"object"===t(n.startArrow)?nv(e,n,r,i,o,a,!0):n.startArrow?ev(e,n,r,i,o,a,!0):e.set("startArrowShape",null)}function ov(e,n,r,i,o,a){"object"===t(n.endArrow)?nv(e,n,r,i,o,a,!1):n.endArrow?ev(e,n,r,i,o,a,!1):e.set("startArrowShape",null)}var av={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function sv(t,e){var n=e.attr();for(var r in n){var i=n[r],o=av[r]?av[r]:r;"matrix"===o&&i?t.transform(i[0],i[1],i[3],i[4],i[6],i[7]):"lineDash"===o&&t.setLineDash?Ce(i)&&t.setLineDash(i):("strokeStyle"===o||"fillStyle"===o?i=qg(t,e,i):"globalAlpha"===o&&(i*=t.globalAlpha),t[o]=i)}}function lv(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];i.cfg.visible?i.draw(t,n):i.skipDraw()}}function uv(t,e,n){var r=t.get("refreshElements");Pe(r,(function(e){if(e!==t)for(var n=e.cfg.parent;n&&n!==t&&!n.cfg.refresh;)n.cfg.refresh=!0,n=n.cfg.parent})),r[0]===t?fv(e):cv(e,n)}function cv(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.cfg.visible)if(r.cfg.hasChanged)r.cfg.refresh=!0,r.isGroup()&&fv(r.cfg.children);else if(r.cfg.refresh)r.isGroup()&&cv(r.cfg.children,e);else{var i=dv(r,e);r.cfg.refresh=i,i&&r.isGroup()&&cv(r.cfg.children,e)}}}function hv(t){for(var e=0;e<t.length;e++){var n=t[e];n.cfg.hasChanged=!1,n.isGroup()&&!n.destroyed&&hv(n.cfg.children)}}function fv(t,e){for(var n=0;n<t.length;n++){var r=t[n];r.cfg.refresh=!0,r.isGroup()&&fv(r.get("children"))}}function dv(t,e){var n=t.cfg.cacheCanvasBBox;return t.cfg.isInView&&n&&Ng(n,e)}function pv(t,e,n,r){var i=n.path,o=n.startArrow,a=n.endArrow;if(i){var s=[0,0],l=[0,0],u={dx:0,dy:0};e.beginPath();for(var c=0;c<i.length;c++){var h=i[c],f=h[0];if(0===c&&o&&o.d)u=rv((d=t.getStartTangent())[0][0],d[0][1],d[1][0],d[1][1],o.d);else if(c===i.length-2&&"Z"===i[c+1][0]&&a&&a.d){if("Z"===i[c+1][0])u=rv((d=t.getEndTangent())[0][0],d[0][1],d[1][0],d[1][1],a.d)}else if(c===i.length-1&&a&&a.d){var d;if("Z"!==i[0])u=rv((d=t.getEndTangent())[0][0],d[0][1],d[1][0],d[1][1],a.d)}var p=u.dx,g=u.dy;switch(f){case"M":e.moveTo(h[1]-p,h[2]-g),l=[h[1],h[2]];break;case"L":e.lineTo(h[1]-p,h[2]-g);break;case"Q":e.quadraticCurveTo(h[1],h[2],h[3]-p,h[4]-g);break;case"C":e.bezierCurveTo(h[1],h[2],h[3],h[4],h[5]-p,h[6]-g);break;case"A":var v=void 0;r?(v=r[c])||(v=Kg(s,h),r[c]=v):v=Kg(s,h);var y=v.cx,m=v.cy,_=v.rx,x=v.ry,b=v.startAngle,w=v.endAngle,M=v.xRotation,S=v.sweepFlag;if(e.ellipse)e.ellipse(y,m,_,x,M,b,w,1-S);else{var j=_>x?_:x,C=_>x?1:_/x,E=_>x?x/_:1;e.translate(y,m),e.rotate(M),e.scale(C,E),e.arc(0,0,j,b,w,1-S),e.scale(1/C,1/E),e.rotate(-M),e.translate(-y,-m)}break;case"Z":e.closePath()}if("Z"===f)s=l;else{var P=h.length;s=[h[P-2],h[P-1]]}}}}function gv(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))}function vv(t){var e,n,r;if(t.destroyed)e=t._cacheCanvasBBox;else{var i=t.get("cacheCanvasBBox"),o=i&&!(!i.width||!i.height),a=t.getCanvasBBox(),s=a&&!(!a.width||!a.height);o&&s?(r=a,e=(n=i)&&r?{minX:Math.min(n.minX,r.minX),minY:Math.min(n.minY,r.minY),maxX:Math.max(n.maxX,r.maxX),maxY:Math.max(n.maxY,r.maxY)}:n||r):o?e=i:s&&(e=a)}return e}var yv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.onCanvasChange=function(t){gv(this,t)},e.prototype.getShapeBase=function(){return r},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),sv(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];Pe(t,(function(t){var r=t.cfg.cacheCanvasBBox;r&&t.cfg.isInView&&(e.push(r.minX,r.maxX),n.push(r.minY,r.maxY))}));var r=null;if(e.length){var i=Le(e),o=Be(e),a=Le(n),s=Be(n);r={minX:i,minY:a,x:i,y:a,maxX:o,maxY:s,width:o-i,height:s-a};var l=this.cfg.canvas;if(l){var u=l.getViewRange();this.set("isInView",Ng(r,u))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",r)},e.prototype.draw=function(t,e){var n=this.cfg.children,r=!e||this.cfg.refresh;n.length&&r&&(t.save(),sv(t,this),this._applyClip(t,this.getClip()),lv(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(Ra),mv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return he(he({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return r},e.prototype.getGroupBase=function(){return yv},e.prototype.onCanvasChange=function(t){gv(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=Ga(t)(this),r=e/2,i=n.x-r,o=n.y-r,a=n.x+n.width+r,s=n.y+n.height+r;return{x:i,minX:i,y:o,minY:o,width:n.width+e,height:n.height+e,maxX:a,maxY:s}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,e){e&&(t.save(),sv(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);if(!Ng(e,this.getCanvasBBox()))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),sv(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=Ng(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isFill()&&(je(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&(je(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(Na),_v=mv,xv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return he(he({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=o.x,s=o.y,l=o.r,u=i/2,c=Dg(a,s,t,e);return r&&n?c<=l+u:r?c<=l:!!n&&(c>=l-u&&c<=l+u)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}(_v),bv=xv;function wv(t,e,n,r){return t/(n*n)+e/(r*r)}var Mv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return he(he({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=i/2,s=o.x,l=o.y,u=o.rx,c=o.ry,h=(t-s)*(t-s),f=(e-l)*(e-l);return r&&n?wv(h,f,u+a,c+a)<=1:r?wv(h,f,u,c)<=1:!!n&&(wv(h,f,u-a,c-a)>=1&&wv(h,f,u+a,c+a)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,o,0,0,2*Math.PI,!1);else{var a=i>o?i:o,s=i>o?1:i/o,l=i>o?o/i:1;t.save(),t.translate(n,r),t.scale(s,l),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(_v),Sv=Mv;function jv(t){return t instanceof HTMLElement&&Ne(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var Cv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return he(he({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if(Ne(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):jv(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,a=e.sx,s=e.sy,l=e.swidth,u=e.sheight,c=e.img;(c instanceof Image||jv(c))&&(je(a)||je(s)||je(l)||je(u)?t.drawImage(c,n,r,i,o):t.drawImage(c,a,s,l,u,n,r,i,o))},e}(_v),Ev=Cv;function Pv(t,e,n,r,i,o,a){var s=Math.min(t,n),l=Math.max(t,n),u=Math.min(e,r),c=Math.max(e,r),h=i/2;return o>=s-h&&o<=l+h&&a>=u-h&&a<=c+h&&Za.pointToLine(t,e,n,r,o,a)<=i/2}var Tv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return he(he({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,o=t.startArrow,a=t.endArrow;o&&iv(this,t,r,i,e,n),a&&ov(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var o=this.attr();return Pv(o.x1,o.y1,o.x2,o.y2,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.startArrow,s=e.endArrow,l={dx:0,dy:0},u={dx:0,dy:0};a&&a.d&&(l=rv(n,r,i,o,e.startArrow.d)),s&&s.d&&(u=rv(n,r,i,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+l.dx,r+l.dy),t.lineTo(i-u.dx,o-u.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return Za.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return Za.pointAt(n,r,i,o,t)},e}(_v),kv=Tv,Av={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},Ov=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return je(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,o=r.y,a=r.symbol||"circle",s=this._getR(r);if(Se(a))n=Ps(n=(t=a)(i,o,s));else{if(!(t=e.Symbols[a]))return console.warn(a+" marker is not supported."),null;n=t(i,o,s)}return n},e.prototype.createPath=function(t){pv(this,t,{path:this._getPath()},this.get("paramsCache"))},e.Symbols=Av,e}(_v),Iv=Ov;function Bv(t,e,n){var r=vs();return t.createPath(r),r.isPointInPath(e,n)}function Lv(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function Fv(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function Dv(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o=0;o<i;o++){var a=t[o],s=t[(o+1)%i];if(Fv(a,s,[e,n]))return!0;Lv(a[1]-n)>0!=Lv(s[1]-n)>0&&Lv(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}function Rv(t,e,n,r,i,o,a,s){var l=(Math.atan2(s-e,a-t)+2*Math.PI)%(2*Math.PI);if(l<r||l>i)return!1;var u={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return Dg(u.x,u.y,a,s)<=o/2}var Nv=Ci;var zv=he({hasArc:function(t){for(var e=!1,n=t.length,r=0;r<n;r++){var i=t[r][0];if("C"===i||"A"===i||"Q"===i){e=!0;break}}return e},extractPolygons:function(t){for(var e=t.length,n=[],r=[],i=[],o=0;o<e;o++){var a=t[o],s=a[0];"M"===s?(i.length&&(r.push(i),i=[]),i.push([a[1],a[2]])):"Z"===s?i.length&&(n.push(i),i=[]):i.push([a[1],a[2]])}return i.length>0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var o=!1,a=e/2,s=0;s<t.length;s++){var l=t[s],u=l.currentPoint,c=l.params,h=l.prePoint,f=l.box;if(!f||Rg(f.x-a,f.y-a,f.width+e,f.height+e,n,r)){switch(l.command){case"L":case"Z":o=Pv(h[0],h[1],u[0],u[1],e,n,r);break;case"Q":o=ns.pointDistance(h[0],h[1],c[1],c[2],c[3],c[4],n,r)<=e/2;break;case"C":o=ls.pointDistance(h[0],h[1],c[1],c[2],c[3],c[4],c[5],c[6],n,r,i)<=e/2;break;case"A":var d=l.arcParams,p=d.cx,g=d.cy,v=d.rx,y=d.ry,m=d.startAngle,_=d.endAngle,x=d.xRotation,b=[n,r,1],w=v>y?v:y;hi(b,b,Nv(null,[["t",-p,-g],["r",-x],["s",1/(v>y?1:v/y),1/(v>y?y/v:1)]])),o=Rv(0,0,w,m,_,e,b[0],b[1])}if(o)break}}return o}},Vr);function Hv(t,e,n){for(var r=!1,i=0;i<t.length;i++){if(r=Dv(t[i],e,n))break}return r}var Gv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return he(he({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"path"===e&&this._setPathArr(n),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=Ps(t);var e=zv.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=Ls(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t,e=this.attr(),n=e.startArrow,r=e.endArrow;n&&iv(this,e,(t=this.getStartTangent())[0][0],t[0][1],t[1][0],t[1][1]);r&&ov(this,e,(t=this.getEndTangent())[0][0],t[0][1],t[1][0],t[1][1])},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.getSegments(),a=this.get("hasArc"),s=!1;if(n){var l=this.getTotalLength();s=zv.isPointInStroke(o,i,t,e,l)}if(!s&&r)if(a)s=Bv(this,t,e);else{var u=this.attr("path"),c=zv.extractPolygons(u);s=Hv(c.polygons,t,e)||Hv(c.polylines,t,e)}return s},e.prototype.createPath=function(t){pv(this,t,this.attr(),this.get("paramsCache"))},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return je(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e,n,r=this.get("tCache");r||(this._calculateCurve(),this._setTcache(),r=this.get("tCache"));var i=this.get("curve");if(!r||0===r.length)return i?{x:i[0][1],y:i[0][2]}:null;Pe(r,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var o=i[n];if(je(o)||je(n))return null;var a=o.length,s=i[n+1];return ls.pointAt(o[a-2],o[a-1],s[1],s[2],s[3],s[4],s[5],s[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",zv.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,i=0,o=0,a=[],s=this.get("curve");s&&(Pe(s,(function(t,e){n=s[e+1],r=t.length,n&&(i+=ls.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",i),0!==i?(Pe(s,(function(l,u){n=s[u+1],r=l.length,n&&((t=[])[0]=o/i,e=ls.length(l[r-2],l[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e||0,t[1]=o/i,a.push(t))})),this.set("tCache",a)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var r=e[n-2].currentPoint,i=e[n-1].currentPoint,o=e[n-1].endTangent;t=[],o?(t.push([i[0]-o[0],i[1]-o[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}(_v),Yv=Gv;function Vv(t,e,n,r,i){var o=t.length;if(o<2)return!1;for(var a=0;a<o-1;a++){if(Pv(t[a][0],t[a][1],t[a+1][0],t[a+1][1],e,n,r))return!0}if(i){var s=t[0],l=t[o-1];if(Pv(s[0],s[1],l[0],l[1],e,n,r))return!0}return!1}var Xv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr().points,a=!1;return n&&(a=Vv(o,i,t,e,!0)),!a&&r&&(a=Dv(o,t,e)),a},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var n=0;n<e.length;n++){var r=e[n];0===n?t.moveTo(r[0],r[1]):t.lineTo(r[0],r[1])}t.closePath()}},e}(_v),qv=Xv,Wv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return he(he({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,r=e.startArrow,i=e.endArrow,o=n.length,a=n[0][0],s=n[0][1],l=n[o-1][0],u=n[o-1][1];r&&iv(this,t,n[1][0],n[1][1],a,s),i&&ov(this,t,n[o-2][0],n[o-2][1],l,u)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!(!n||!i)&&Vv(this.attr().points,i,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,r=e.startArrow,i=e.endArrow,o=n.length;if(!(n.length<2)){var a,s=n[0][0],l=n[0][1],u=n[o-1][0],c=n[o-1][1];if(r&&r.d)s+=(a=rv(s,l,n[1][0],n[1][1],r.d)).dx,l+=a.dy;if(i&&i.d)u-=(a=rv(n[o-2][0],n[o-2][1],u,c,i.d)).dx,c-=a.dy;t.beginPath(),t.moveTo(s,l);for(var h=0;h<o-1;h++){var f=n[h];t.lineTo(f[0],f[1])}t.lineTo(u,c)}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return je(e)?(this.set("totalLength",fs(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),Pe(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),Za.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,o=[];Pe(t,(function(a,s){t[s+1]&&((n=[])[0]=i/e,r=Za.length(a[0],a[1],t[s+1][0],t[s+1][1]),i+=r,n[1]=i/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(_v),Uv=Wv;var Zv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return he(he({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=o.x,s=o.y,l=o.width,u=o.height,c=o.radius;if(c){var h=!1;return n&&(h=function(t,e,n,r,i,o,a,s){return Pv(t+i,e,t+n-i,e,o,a,s)||Pv(t+n,e+i,t+n,e+r-i,o,a,s)||Pv(t+n-i,e+r,t+i,e+r,o,a,s)||Pv(t,e+r-i,t,e+i,o,a,s)||Rv(t+n-i,e+i,i,1.5*Math.PI,2*Math.PI,o,a,s)||Rv(t+n-i,e+r-i,i,0,.5*Math.PI,o,a,s)||Rv(t+i,e+r-i,i,.5*Math.PI,Math.PI,o,a,s)||Rv(t+i,e+i,i,Math.PI,1.5*Math.PI,o,a,s)}(a,s,l,u,c,i,t,e)),!h&&r&&(h=Bv(this,t,e)),h}var f=i/2;return r&&n?Rg(a-f,s-f,l+f,u+f,t,e):r?Rg(a,s,l,u,t,e):n?function(t,e,n,r,i,o,a){var s=i/2;return Rg(t-s,e-s,n,i,o,a)||Rg(t+n-s,e-s,i,r,o,a)||Rg(t+s,e+r-s,n,i,o,a)||Rg(t-s,e+s,i,r,o,a)}(a,s,l,u,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,a=e.radius;if(t.beginPath(),0===a)t.rect(n,r,i,o);else{var s=function(t){var e=0,n=0,r=0,i=0;return Ce(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,[e,n,r,i]}(a),l=s[0],u=s[1],c=s[2],h=s[3];t.moveTo(n+l,r),t.lineTo(n+i-u,r),0!==u&&t.arc(n+i-u,r+u,u,-Math.PI/2,0),t.lineTo(n+i,r+o-c),0!==c&&t.arc(n+i-c,r+o-c,c,0,Math.PI/2),t.lineTo(n+h,r+o),0!==h&&t.arc(n+h,r+o-h,h,Math.PI/2,Math.PI),t.lineTo(n,r+l),0!==l&&t.arc(n+l,r+l,l,Math.PI,1.5*Math.PI),t.closePath()}},e}(_v),Kv=Zv,Qv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return he(he({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=ms(t)},e.prototype._setText=function(t){var e=null;Ne(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var r,i=this.attrs,o=i.textBaseline,a=i.x,s=i.y,l=1*i.fontSize,u=this._getSpaceingY(),c=ys(i.text,i.fontSize,i.lineHeight);Pe(e,(function(e,i){r=s+i*(u+l)-c+l,"middle"===o&&(r+=c-l-(c-l)/2),"top"===o&&(r+=c-l),je(e)||(n?t.fillText(e,a,r):t.strokeText(e,a,r))}))},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var a=n.text;je(a)||(e?t.fillText(a,r,i):t.strokeText(a,r,i))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isStroke()&&n>0&&(je(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&(je(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(_v),$v=Qv;function Jv(t,e,n){var r,i,o=t.getTotalMatrix();if(o){var a=(r=[e,n,1],(i=o)?Ti(ki(i),r):r);return[a[0],a[1]]}return[e,n]}function ty(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!Zr(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var r=Jv(t,e,n),i=r[0],o=r[1];if(t.isClipped(i,o))return!1}var a=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=a.minX&&e<=a.maxX&&n>=a.minY&&n<=a.maxY}function ey(t,e,n){if(!ty(t,e,n))return null;for(var r=null,i=t.getChildren(),o=i.length-1;o>=0;o--){var a=i[o];if(a.isGroup())r=ey(a,e,n);else if(ty(a,e,n)){var s=a,l=Jv(a,e,n),u=l[0],c=l[1];s.isInShape(u,c)&&(r=a)}if(r)break}return r}var ny=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.renderer="canvas",e.autoDraw=!0,e.localRefresh=!0,e.refreshElements=[],e.clipView=!0,e.quickHit=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return r},e.prototype.getGroupBase=function(){return yv},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||(window?window.devicePixelRatio:1);return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var r=this.get("context"),i=this.get("el"),o=this.getPixelRatio();i.width=o*e,i.height=o*n,o>1&&r.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?ey(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();e.length&&e[0]===this?t=n:(t=function(t){if(!t.length)return null;var e=[],n=[],r=[],i=[];return Pe(t,(function(t){var o=vv(t);o&&(e.push(o.minX),n.push(o.minY),r.push(o.maxX),i.push(o.maxY))})),{minX:Le(e),minY:Le(n),maxX:Be(r),maxY:Be(i)}}(e),t&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView")&&(t=function(t,e){return t&&e&&Ng(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}(t,n))));return t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t,e=this.get("drawFrame");e&&(t=e,(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),sv(t,this),lv(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),sv(t,this),uv(this,n,r),lv(t,n,r),t.restore()):e.length&&hv(e),Pe(e,(function(t){t.get("hasChanged")&&t.set("hasChanged",!1)})),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t,e=this,n=this.get("drawFrame");n||(t=function(){e.get("localRefresh")?e._drawRegion():e._drawAll(),e.set("drawFrame",null)},n=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t),this.set("drawFrame",n))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(Da),ry=Object.freeze(Object.defineProperty({__proto__:null,Shape:r,version:"0.5.12",Canvas:ny,Group:yv,getArcParams:Kg,Event:Xr,Base:Kr,AbstractCanvas:Da,AbstractGroup:Ra,AbstractShape:Na,getBBoxMethod:Ga,registerBBox:Ha,getTextHeight:ys,assembleFont:ms,isAllowCapture:Zr,multiplyVec2:Ti,invert:ki,getOffScreenContext:vs,registerEasing:Ea,PathUtil:Vr},Symbol.toStringTag,{value:"Module"})),iy={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},oy={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"};function ay(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function sy(t){var e=iy[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=ay(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var i=n.get("el");i||(i=n.createDom(),n.set("el",i)),i.appendChild(r)}return r}function ly(t,e){var n,r=t.get("el"),i=(n=r.children,_e(n)?Array.prototype.slice.call(n):[]).sort(e),o=document.createDocumentFragment();i.forEach((function(t){o.appendChild(t)})),r.appendChild(o)}function uy(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);-1===(r=r.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)}}function cy(t,e){var n=t.getClip(),r=t.get("el");if(n){if(n&&!r.hasAttribute("clip-path")){sy(n),n.createPath(e);var i=e.addClip(n);r.setAttribute("clip-path","url(#"+i+")")}}else r.removeAttribute("clip-path")}function hy(t,e){e.forEach((function(e){e.draw(t)}))}function fy(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context"),i=t.getParent(),o=i?i.getChildren():[n],a=t.get("el");if("remove"===e)if(t.get("isClipShape")){var s=a&&a.parentNode,l=s&&s.parentNode;s&&l&&l.removeChild(s)}else a&&a.parentNode&&a.parentNode.removeChild(a);else if("show"===e)a.setAttribute("visibility","visible");else if("hide"===e)a.setAttribute("visibility","hidden");else if("zIndex"===e)!function(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),i=r[e],o=r.indexOf(t);if(i){if(o>e)n.insertBefore(t,i);else if(o<e){var a=r[e+1];a?n.insertBefore(t,a):n.appendChild(t)}}else n.appendChild(t)}(a,o.indexOf(t));else if("sort"===e){var u=t.get("children");u&&u.length&&ly(t,(function(t,e){return u.indexOf(t)-u.indexOf(e)?1:0}))}else"clear"===e?a&&(a.innerHTML=""):"matrix"===e?uy(t):"clip"===e?cy(t,r):"attr"===e||"add"===e&&t.draw(r)}}var dy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=ay("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n||(n=e.createDom(),e.set("el",n)),n.appendChild(t)}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.createPath(r,e)}},e.prototype.onCanvasChange=function(t){fy(this,t)},e.prototype.getShapeBase=function(){return Y},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),cy(this,t),this.createPath(t),e.length&&hy(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Pe(e||n,(function(t,e){oy[e]&&r.setAttribute(oy[e],t)})),uy(this)},e}(Ra),py=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e}return ce(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return he(he({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.draw(r,e)}},e.prototype.getShapeBase=function(){return Y},e.prototype.getGroupBase=function(){return dy},e.prototype.onCanvasChange=function(t){fy(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=Ga(this.get("type"));n&&(e=n(this))}if(e){var r=e.x,i=e.y,o=e.width,a=e.height,s=this.getHitLineWidth(),l=s/2,u=r-l,c=i-l;return{x:u,y:c,minX:u,minY:c,maxX:r+o+l,maxY:i+a+l,width:o+s,height:a+s}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&this.canStroke},e.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||sy(this),cy(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),r=n.fill,i=n.fillStyle,o=n.stroke,a=n.strokeStyle,s=n.fillOpacity,l=n.strokeOpacity,u=n.lineWidth,c=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",r):"fillStyle"in n&&this._setColor(t,"fill",i):this._setColor(t,"fill",r||i),s&&c.setAttribute(oy.fillOpacity,s)),this.canStroke&&u>0&&(e?"stroke"in n?this._setColor(t,"stroke",o):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),l&&c.setAttribute(oy.strokeOpacity,l),u&&c.setAttribute(oy.lineWidth,u))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(i=t.find("gradient",n))||(i=t.addGradient(n)),r.setAttribute(oy[e],"url(#"+i+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var i;(i=t.find("pattern",n))||(i=t.addPattern(n)),r.setAttribute(oy[e],"url(#"+i+")")}else r.setAttribute(oy[e],n);else r.setAttribute(oy[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,o=r.shadowOffsetY,a=r.shadowBlur,s=r.shadowColor;(i||o||a||s)&&function(t,e){var n=t.cfg.el,r=t.attr(),i={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(i.dx||i.dy||i.blur||i.color){var o=e.find("filter",i);o||(o=e.addShadow(i)),n.setAttribute("filter","url(#"+o+")")}else n.removeAttribute("filter")}(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&uy(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),i=t+r.left,o=e+r.top,a=document.elementFromPoint(i,o);return!(!a||!a.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(Na),gy=py,vy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return ce(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return he(he({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Pe(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):oy[e]&&r.setAttribute(oy[e],t)}))},e}(gy),yy=vy,my=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return ce(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if(Pe(e||n,(function(t,e){oy[e]&&r.setAttribute(oy[e],t)})),"function"==typeof n.html){var i=n.html.call(this,n);if(i instanceof Element||i instanceof HTMLDocument){for(var o=r.childNodes,a=o.length-1;a>=0;a--)r.removeChild(o[a]);r.appendChild(i)}else r.innerHTML=i}else r.innerHTML=n.html},e}(gy),_y=my,xy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return ce(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return he(he({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Pe(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):oy[e]&&r.setAttribute(oy[e],t)}))},e}(gy),by=xy,wy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return ce(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return he(he({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");Pe(e||r,(function(t,e){"img"===e?n._setImage(r.img):oy[e]&&i.setAttribute(oy[e],t)}))},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if(Ne(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&Ne(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",r.toDataURL())}},e}(gy),My=wy,Sy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return ce(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return he(he({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Pe(e||n,(function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var o=Ee(e)?t.addArrow(n,oy[i]):t.getDefaultArrow(n,oy[i]);r.setAttribute(oy[i],"url(#"+o+")")}else r.removeAttribute(oy[i]);else oy[i]&&r.setAttribute(oy[i],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return Za.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return Za.pointAt(n,r,i,o,t)},e}(gy),jy=Sy,Cy={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},Ey={get:function(t){return Cy[t]},register:function(t,e){Cy[t]=e},remove:function(t){delete Cy[t]},getAll:function(){return Cy}},Py=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return ce(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return Ce(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,r=e.y,i=e.r||e.radius,o=e.symbol||"circle";return(t=Se(o)?o:Ey.get(o))?t(n,r,i):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=Ey,e}(gy),Ty=Py,ky=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return ce(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return he(he({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");Pe(e||r,(function(e,o){if("path"===o&&Ce(e))i.setAttribute("d",n._formatPath(e));else if("startArrow"===o||"endArrow"===o)if(e){var a=Ee(e)?t.addArrow(r,oy[o]):t.getDefaultArrow(r,oy[o]);i.setAttribute(oy[o],"url(#"+a+")")}else i.removeAttribute(oy[o]);else oy[o]&&i.setAttribute(oy[o],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null},e}(gy),Ay=ky,Oy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return ce(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Pe(e||n,(function(t,e){"points"===e&&Ce(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):oy[e]&&r.setAttribute(oy[e],t)}))},e}(gy),Iy=Oy,By=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return ce(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return he(he({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Pe(e||n,(function(t,e){"points"===e&&Ce(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):oy[e]&&r.setAttribute(oy[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return je(e)?(this.set("totalLength",fs(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),Pe(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),Za.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,o=[];Pe(t,(function(a,s){t[s+1]&&((n=[])[0]=i/e,r=Za.length(a[0],a[1],t[s+1][0],t[s+1][1]),i+=r,n[1]=i/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(gy),Ly=By;var Fy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return ce(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return he(he({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el"),o=!1,a=["x","y","width","height","radius"];Pe(e||r,(function(t,e){-1===a.indexOf(e)||o?-1===a.indexOf(e)&&oy[e]&&i.setAttribute(oy[e],t):(i.setAttribute("d",n._assembleRect(r)),o=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.radius;if(!o)return"M "+e+","+n+" l "+r+",0 l 0,"+i+" l"+-r+" 0 z";var a=function(t){var e=0,n=0,r=0,i=0;return Ce(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,{r1:e,r2:n,r3:r,r4:i}}(o);return Ce(o)?1===o.length?a.r1=a.r2=a.r3=a.r4=o[0]:2===o.length?(a.r1=a.r3=o[0],a.r2=a.r4=o[1]):3===o.length?(a.r1=o[0],a.r2=a.r4=o[1],a.r3=o[2]):(a.r1=o[0],a.r2=o[1],a.r3=o[2],a.r4=o[3]):a.r1=a.r2=a.r3=a.r4=o,[["M "+(e+a.r1)+","+n],["l "+(r-a.r1-a.r2)+",0"],["a "+a.r2+","+a.r2+",0,0,1,"+a.r2+","+a.r2],["l 0,"+(i-a.r2-a.r3)],["a "+a.r3+","+a.r3+",0,0,1,"+-a.r3+","+a.r3],["l "+(a.r3+a.r4-r)+",0"],["a "+a.r4+","+a.r4+",0,0,1,"+-a.r4+","+-a.r4],["l 0,"+(a.r4+a.r1-i)],["a "+a.r1+","+a.r1+",0,0,1,"+a.r1+","+-a.r1],["z"]].join(" ")},e}(gy),Dy=Fy,Ry={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},Ny={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},zy={left:"left",start:"left",center:"middle",right:"end",end:"end"},Hy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return ce(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return he(he({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");this._setFont(),Pe(e||r,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?uy(n):oy[e]&&i.setAttribute(oy[e],t)})),i.setAttribute("paint-order","stroke"),i.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,r=e.textAlign,i=ai();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",Ny[n]||"alphabetic"):t.setAttribute("alignment-baseline",Ry[n]||"baseline"),t.setAttribute("text-anchor",zy[r]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),r=n.x,i=n.textBaseline,o=void 0===i?"bottom":i;if(t)if(~t.indexOf("\n")){var a=t.split("\n"),s=a.length-1,l="";Pe(a,(function(t,e){0===e?"alphabetic"===o?l+='<tspan x="'+r+'" dy="'+-s+'em">'+t+"</tspan>":"top"===o?l+='<tspan x="'+r+'" dy="0.9em">'+t+"</tspan>":"middle"===o?l+='<tspan x="'+r+'" dy="'+-(s-1)/2+'em">'+t+"</tspan>":"bottom"===o?l+='<tspan x="'+r+'" dy="-'+(s+.3)+'em">'+t+"</tspan>":"hanging"===o&&(l+='<tspan x="'+r+'" dy="'+(-(s-1)-.3)+'em">'+t+"</tspan>"):l+='<tspan x="'+r+'" dy="1em">'+t+"</tspan>"})),e.innerHTML=l}else e.innerHTML=t;else e.innerHTML=""},e}(gy),Gy=Hy,Yy=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,Vy=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Xy=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function qy(t){var e=t.match(Xy);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),Pe(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}var Wy=function(){function t(t){this.cfg={};var e=null,n=Bn("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,r,i=Yy.exec(t),o=$e(tn(parseFloat(i[1])),2*Math.PI),a=i[2];o>=0&&o<.5*Math.PI?(n={x:0,y:0},r={x:1,y:1}):.5*Math.PI<=o&&o<Math.PI?(n={x:1,y:0},r={x:0,y:1}):Math.PI<=o&&o<1.5*Math.PI?(n={x:1,y:1},r={x:0,y:0}):(n={x:0,y:1},r={x:1,y:0});var s=Math.tan(o),l=s*s,u=(r.x-n.x+s*(r.y-n.y))/(l+1)+n.x,c=s*(r.x-n.x+s*(r.y-n.y))/(l+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",u),e.setAttribute("y2",c),e.innerHTML=qy(a)}(t,e=ay("linearGradient")):function(t,e){var n=Vy.exec(t),r=parseFloat(n[1]),i=parseFloat(n[2]),o=parseFloat(n[3]),a=n[4];e.setAttribute("cx",r),e.setAttribute("cy",i),e.setAttribute("r",o),e.innerHTML=qy(a)}(t,e=ay("radialGradient")),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),Uy={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},Zy={x:"-40%",y:"-40%",width:"200%",height:"200%"},Ky=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=ay("filter");return Pe(Zy,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=Bn("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var n=!0,r=this.cfg;return Pe(Object.keys(r),(function(t){if(r[t]!==e[t])return n=!1,!1})),n},t.prototype.update=function(t,e){var n=this.cfg;return n[Uy[t]]=e,this._parseShadow(n,this.el),this},t.prototype._parseShadow=function(t,e){var n='<feDropShadow\n dx="'+(t.dx||0)+'"\n dy="'+(t.dy||0)+'"\n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';e.innerHTML=n},t}(),Qy=function(){function t(t,e){this.cfg={};var n=ay("marker"),r=Bn("marker_");n.setAttribute("id",r);var i=ay("path");i.setAttribute("stroke",t.stroke||"none"),i.setAttribute("fill",t.fill||"none"),n.appendChild(i),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=i,this.id=r;var o=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===o?this._setDefaultPath(e,i):(this.cfg=o,this._setMarker(t.lineWidth,i)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,r=this.cfg.path,i=this.cfg.d;Ce(r)&&(r=r.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",r),n.appendChild(e),i&&n.setAttribute("refX",""+i/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}(),$y=function(){function t(t){this.type="clip",this.cfg={};var e=ay("clipPath");this.el=e,this.id=Bn("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}(),Jy=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,tm=function(){function t(t){this.cfg={};var e=ay("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=ay("image");e.appendChild(n);var r=Bn("pattern_");e.id=r,this.el=e,this.id=r,this.cfg=t;var i=Jy.exec(t)[2];n.setAttribute("href",i);var o=new Image;function a(){e.setAttribute("width",""+o.width),e.setAttribute("height",""+o.height)}return i.match(/^data:/i)||(o.crossOrigin="Anonymous"),o.src=i,o.complete?a():(o.onload=a,o.src=o.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),em=function(){function t(t){var e=ay("defs"),n=Bn("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,r=null,i=0;i<n.length;i++)if(n[i].match(t,e)){r=n[i].id;break}return r},t.prototype.findById=function(t){for(var e=this.children,n=null,r=0;r<e.length;r++)if(e[r].id===t){n=e[r];break}return n},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new Qy(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),this.add(r),r.id},t.prototype.addGradient=function(t){var e=new Wy(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new Qy(t,e);return this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addShadow=function(t){var e=new Ky(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new tm(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new $y(t);return this.el.appendChild(e.el),this.add(e),e.id},t}(),nm=function(t){function e(e){return t.call(this,he(he({},e),{autoDraw:!0,renderer:"svg"}))||this}return ce(e,t),e.prototype.getShapeBase=function(){return Y},e.prototype.getGroupBase=function(){return dy},e.prototype.getShape=function(t,e,n){var r=n.target||n.srcElement;if(!iy[r.tagName]){for(var i=r.parentNode;i&&!iy[i.tagName];)i=i.parentNode;r=i}return this.find((function(t){return t.get("el")===r}))},e.prototype.createDom=function(){var t=ay("svg"),e=new em(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},e.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if("sort"===t){var r=this.get("children");r&&r.length&&ly(this,(function(t,e){return r.indexOf(t)-r.indexOf(e)?1:0}))}else if("clear"===t){if(n){n.innerHTML="";var i=e.el;i.innerHTML="",n.appendChild(i)}}else"matrix"===t?uy(this):"clip"===t?cy(this,e):"changeSize"===t&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();cy(this,t),e.length&&hy(t,e)},e}(Da),rm=Object.freeze(Object.defineProperty({__proto__:null,Shape:Y,version:"0.5.6",Canvas:nm,Group:dy,Event:Xr,Base:Kr,AbstractCanvas:Da,AbstractGroup:Ra,AbstractShape:Na,getBBoxMethod:Ga,registerBBox:Ha,getTextHeight:ys,assembleFont:ms,isAllowCapture:Zr,multiplyVec2:Ti,invert:ki,getOffScreenContext:vs,registerEasing:Ea,PathUtil:Vr},Symbol.toStringTag,{value:"Module"})),im=function(t){function e(e){var n=t.call(this,e)||this;n.type="path",n.shapeType="line";var r=e.connectNulls,i=void 0!==r&&r,o=e.showSinglePoint,a=void 0===o||o;return n.connectNulls=i,n.showSinglePoint=a,n}return ce(e,t),e.prototype.updateElements=function(t,e){var n,r,i,o,a,s;void 0===e&&(e=!1);for(var l=new Map,u=new Map,c=[],h=0,f=0;f<t.length;f++){var d=t[f],p=this.getElementId(d);c.push(p),l.set(p,d),u.set(p,h),h++}this.elements=new Array(h);var g=Wp(this.lastElementsMap,c),v=g.added,y=g.updated,m=g.removed;try{for(var _=ge(v),x=_.next();!x.done;x=_.next()){p=x.value,d=l.get(p);var b=this.getShapeFactory(),w=this.getShapeInfo(d);f=u.get(p);(j=new Bp({shapeFactory:b,container:this.container,offscreenGroup:this.getOffscreenGroup(),elementIndex:f})).geometry=this,j.animate=this.animateOption,j.draw(w,e),this.elementsMap[p]=j,this.elements[f]=j}}catch(T){n={error:T}}finally{try{x&&!x.done&&(r=_.return)&&r.call(_)}finally{if(n)throw n.error}}try{for(var M=ge(y),S=M.next();!S.done;S=M.next()){p=S.value,d=l.get(p);var j=this.lastElementsMap[p],C=(f=u.get(p),w=this.getShapeInfo(d),j.getModel());(this.isCoordinateChanged||Xp(C,w))&&(j.animate=this.animateOption,j.update(w)),this.elementsMap[p]=j,this.elements[f]=j}}catch(k){i={error:k}}finally{try{S&&!S.done&&(o=M.return)&&o.call(M)}finally{if(i)throw i.error}}try{for(var E=ge(m),P=E.next();!P.done;P=E.next()){p=P.value;(j=this.lastElementsMap[p]).animate=this.animateOption,j.destroy()}}catch(A){a={error:A}}finally{try{P&&!P.done&&(s=E.return)&&s.call(E)}finally{if(a)throw a.error}}},e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,i=t.length;r<i;r++){var o=t[r];e.push({x:o.x,y:o.y}),n.push(o[tr])}return{points:e,data:n}},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=this.getPointsAndData(t),r=n.points,i=n.data;return e.mappingData=t,e.data=i,e.isStack=!!this.getAdjust("stack"),e.points=r,e.connectNulls=this.connectNulls,e.showSinglePoint=this.showSinglePoint,e},e}(Up);function om(t,e,n,r,i){var o=[];if(t.length){for(var a=[],s=[],l=0,u=t.length;l<u;l++){var c=t[l];a.push(c[1]),s.push(c[0])}s=s.reverse(),Pe([a,s],(function(t,l){var u=[],c=r.parsePoints(t),h=c[0];1===a.length&&1===s.length?u=0===l?[["M",h.x-.5,h.y],["L",h.x+.5,h.y]]:[["L",h.x+.5,h.y],["L",h.x-.5,h.y]]:(e&&c.push({x:h.x,y:h.y}),u=n?rd(c,!1,i):nd(c,!1),l>0&&(u[0][0]="L")),o=o.concat(u)})),o.push(["Z"])}return o}function am(t,e,n,r,i){for(var o=yg(t,e,!e,"lineWidth"),a=t.connectNulls,s=t.isInCircle,l=pg(t.points,a,t.showSinglePoint),u=[],c=0,h=l.length;c<h;c++){var f=l[c];u=u.concat(om(f,s,n,r,i))}return o.path=u,o}function sm(t){var e=t.start,n=t.end;return[[e.x,n.y],[n.x,e.y]]}Gp("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,n=t.y0;return(Ce(t.y)?t.y:[n,t.y]).map((function(t){return{x:e,y:t}}))}}),Yp("area","area",{draw:function(t,e){var n=am(t,!1,!1,this);return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color,fillOpacity:1}}}});var lm=function(t){function e(e){var n=t.call(this,e)||this;n.type="area",n.shapeType="area",n.generatePoints=!0,n.startOnZero=!0;var r=e.startOnZero,i=void 0===r||r,o=e.sortable,a=void 0!==o&&o,s=e.showSinglePoint,l=void 0!==s&&s;return n.startOnZero=i,n.sortable=a,n.showSinglePoint=l,n}return ce(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,i=t.length;r<i;r++){var o=t[r];e.push(o.points),n.push(o[tr])}return{points:e,data:n}},e.prototype.getYMinValue=function(){return this.startOnZero?t.prototype.getYMinValue.call(this):this.getYScale().min},e}(im);Gp("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return _g(t)}}),Yp("edge","line",{draw:function(t,e){var n=yg(t,!0,!1,"lineWidth"),r=nd(this.parsePoints(t.points),this.coordinate.isPolar);return e.addShape("path",{attrs:he(he({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var um=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e}return ce(e,t),e}(Up),cm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.paletteCache={},e}return ce(e,t),e.prototype.updateElements=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=this.prepareRange(r),o=this.prepareSize(),a=Pn(this.styleOption,["cfg","shadowBlur"]);Ke(a)||(a=o/2),this.prepareGreyScaleBlurredCircle(o,a),this.drawWithRange(r,i,o,a)}},e.prototype.color=function(t,e){return this.createAttrOption("color",t,"function"!=typeof e?e:""),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},e.prototype.prepareRange=function(t){var e=this.getAttribute("color").getFields()[0],n=1/0,r=-1/0;return t.forEach((function(t){var i=t[tr][e];i>r&&(r=i),i<n&&(n=i)})),n===r&&(n=r-1),[n,r]},e.prototype.prepareSize=function(){var t=this.getDefaultValue("size");return Ke(t)||(t=this.getDefaultSize()),t},e.prototype.prepareGreyScaleBlurredCircle=function(t,e){var n=this.getGrayScaleBlurredCanvas(),r=t+e,i=n.getContext("2d");n.width=n.height=2*r,i.clearRect(0,0,n.width,n.height),i.shadowOffsetX=i.shadowOffsetY=2*r,i.shadowBlur=e,i.shadowColor="black",i.beginPath(),i.arc(-r,-r,t,0,2*Math.PI,!0),i.closePath(),i.fill()},e.prototype.drawWithRange=function(t,e,n,r){var i,o,a=this.coordinate,s=a.start,l=a.end,u=this.coordinate.getWidth(),c=this.coordinate.getHeight(),h=this.getAttribute("color").getFields()[0];this.clearShadowCanvasCtx();var f=this.getShadowCanvasCtx();e&&(t=t.filter((function(t){return t[tr][h]<=e[1]&&t[tr][h]>=e[0]})));var d=this.scales[h];try{for(var p=ge(t),g=p.next();!g.done;g=p.next()){var v=g.value,y=this.getDrawCfg(v),m=y.x,_=y.y,x=d.scale(v[tr][h]);this.drawGrayScaleBlurredCircle(m-s.x,_-l.y,n+r,x,f)}}catch(M){i={error:M}}finally{try{g&&!g.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}var b=f.getImageData(0,0,u,c);this.clearShadowCanvasCtx(),this.colorize(b),f.putImageData(b,0,0);var w=this.getImageShape();w.attr("x",s.x),w.attr("y",l.y),w.attr("width",u),w.attr("height",c),w.attr("img",f.canvas),w.set("origin",this.getShapeInfo(t))},e.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),e=this.coordinate;return Math.min(e.getWidth()/(4*t.scales[0].ticks.length),e.getHeight()/(4*t.scales[1].ticks.length))},e.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},e.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},e.prototype.drawGrayScaleBlurredCircle=function(t,e,n,r,i){var o=this.getGrayScaleBlurredCanvas();i.globalAlpha=r,i.drawImage(o,t-n,e-n)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),n=t.data,r=this.paletteCache,i=3;i<n.length;i+=4){var o=n[i];if(Ke(o)){var a=r[o]?r[o]:vl.rgb2arr(e.gradient(o/256));n[i-3]=a[0],n[i-2]=a[1],n[i-1]=a[2],n[i]=o}}},e.prototype.getImageShape=function(){var t=this.imageShape;return t||(t=this.container.addShape({type:"image",attrs:{}}),this.imageShape=t,t)},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=t.map((function(t){return t[tr]}));return he(he({},e),{mappingData:t,data:n})},e}(Up);function hm(t){var e,n,r,i,o,a,s=t.x,l=t.y,u=t.y0,c=t.size;Ce(l)?(r=(e=ve(l,2))[0],i=e[1]):(r=u,i=l),Ce(s)?(o=(n=ve(s,2))[0],a=n[1]):(o=s-c/2,a=s+c/2);var h=[{x:o,y:r},{x:o,y:i}];return h.push({x:a,y:i},{x:a,y:r}),h}function fm(t,e){void 0===e&&(e=!0);var n=[],r=t[0];n.push(["M",r.x,r.y]);for(var i=1,o=t.length;i<o;i++)n.push(["L",t[i].x,t[i].y]);return e&&(n.push(["L",r.x,r.y]),n.push(["z"])),n}function dm(t,e){var n=0,r=0,i=0,o=0;return Ce(t)?1===t.length?n=r=i=o=t[0]:2===t.length?(n=i=t[0],r=o=t[1]):3===t.length?(n=t[0],r=o=t[1],i=t[2]):(n=t[0],r=t[1],i=t[2],o=t[3]):n=r=i=o=t,n+r>e&&(r=e-(n=n?e/(1+r/n):0)),i+o>e&&(o=e-(i=i?e/(1+o/i):0)),[n||0,r||0,i||0,o||0]}function pm(t,e,n){var r=[];if(n.isRect){var i=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},o=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},a=Pn(t,["background","style","radius"]);if(a){var s=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,l=n.isTransposed?n.getWidth():n.getHeight(),u=ve(dm(a,Math.min(s,l)),4),c=u[0],h=u[1],f=u[2],d=u[3],p=n.isTransposed&&n.isReflect("y"),g=p?0:1,v=function(t){return p?-t:t};r.push(["M",i.x,o.y+v(c)]),0!==c&&r.push(["A",c,c,0,0,g,i.x+c,o.y]),r.push(["L",o.x-h,o.y]),0!==h&&r.push(["A",h,h,0,0,g,o.x,o.y+v(h)]),r.push(["L",o.x,i.y-v(f)]),0!==f&&r.push(["A",f,f,0,0,g,o.x-f,i.y]),r.push(["L",i.x+d,i.y]),0!==d&&r.push(["A",d,d,0,0,g,i.x,i.y-v(d)])}else r.push(["M",i.x,i.y]),r.push(["L",o.x,i.y]),r.push(["L",o.x,o.y]),r.push(["L",i.x,o.y]),r.push(["L",i.x,i.y]);r.push(["z"])}if(n.isPolar){var y=n.getCenter(),m=xf(t,n),_=m.startAngle,x=m.endAngle;if("theta"===n.type||n.isTransposed){var b=function(t){return Math.pow(t,2)};c=Math.sqrt(b(y.x-e[0].x)+b(y.y-e[0].y)),h=Math.sqrt(b(y.x-e[2].x)+b(y.y-e[2].y));r=mf(y.x,y.y,c,n.startAngle,n.endAngle,h)}else r=mf(y.x,y.y,n.getRadius(),_,x)}return r}function gm(t,e,n){var r=[];return je(e)?n?r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",(t[2].x+t[3].x)/2,(t[2].y+t[3].y)/2],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[3].x,t[3].y],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),r}function vm(t,e){return[e,t]}function ym(t){var e=t.theme,n=t.coordinate,r=t.getXScale(),i=r.values,o=t.beforeMappingData,a=i.length,s=Cf(t.coordinate),l=t.intervalPadding,u=t.dodgePadding,c=t.maxColumnWidth||e.maxColumnWidth,h=t.minColumnWidth||e.minColumnWidth,f=t.columnWidthRatio||e.columnWidthRatio,d=t.multiplePieWidthRatio||e.multiplePieWidthRatio,p=t.roseWidthRatio||e.roseWidthRatio;if(r.isLinear&&i.length>1){i.sort();var g=function(t,e){var n=t.length,r=t;Ne(r[0])&&(r=t.map((function(t){return e.translate(t)})));for(var i=r[1]-r[0],o=2;o<n;o++){var a=r[o]-r[o-1];i>a&&(i=a)}return i}(i,r);a=(r.max-r.min)/g,i.length>a&&(a=i.length)}var v=r.range,y=1/a,m=1;(n.isPolar?m=n.isTransposed&&a>1?d:p:(r.isLinear&&(y*=v[1]-v[0]),m=f),!je(l)&&l>=0)?y=(1-(a-1)*(l/s))/a:y*=m;if(t.getAdjust("dodge")){var _=function(t,e){if(e){var n=Ie(t);return He(n,e).length}return t.length}(o,t.getAdjust("dodge").dodgeBy);if(!je(u)&&u>=0)y=(y-u/s*(_-1))/_;else!je(l)&&l>=0?(y*=m,y/=_):y/=_;y=y>=0?y:0}if(!je(c)&&c>=0){var x=c/s;y>x&&(y=x)}if(!je(h)&&h>=0){var b=h/s;y<b&&(y=b)}return y}Gp("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return hm(t)}}),Yp("interval","rect",{draw:function(t,e){var n,r=yg(t,!1,!0),i=e,o=null==t?void 0:t.background;if(o){i=e.addGroup({name:"interval-group"});var a=mg(t),s=pm(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:he(he({},a),{path:s}),zIndex:-1,name:Ip})}n=r.radius&&this.coordinate.isRect?function(t,e,n){var r,i,o,a,s,l,u,c=ve(me([],ve(t),!1),4),h=c[0],f=c[1],d=c[2],p=c[3],g=ve("number"==typeof n?Array(4).fill(n):n,4),v=g[0],y=g[1],m=g[2],_=g[3];e.isTransposed&&(f=(r=ve(vm(f,p),2))[0],p=r[1]),e.isReflect("y")&&(h=(i=ve(vm(h,f),2))[0],f=i[1],d=(o=ve(vm(d,p),2))[0],p=o[1]),e.isReflect("x")&&(h=(a=ve(vm(h,p),2))[0],p=a[1],f=(s=ve(vm(f,d),2))[0],d=s[1]);var x=[],b=function(t){return Math.abs(t)};return v=(l=ve(dm([v,y,m,_],Math.min(b(p.x-h.x),b(f.y-h.y))).map((function(t){return b(t)})),4))[0],y=l[1],m=l[2],_=l[3],e.isTransposed&&(v=(u=ve([_,v,y,m],4))[0],y=u[1],m=u[2],_=u[3]),h.y<f.y?(x.push(["M",p.x,p.y+m]),0!==m&&x.push(["A",m,m,0,0,0,p.x-m,p.y]),x.push(["L",h.x+_,h.y]),0!==_&&x.push(["A",_,_,0,0,0,h.x,h.y+_]),x.push(["L",f.x,f.y-v]),0!==v&&x.push(["A",v,v,0,0,0,f.x+v,f.y]),x.push(["L",d.x-y,d.y]),0!==y&&x.push(["A",y,y,0,0,0,d.x,d.y-y]),x.push(["L",p.x,p.y+m]),x.push(["z"])):p.x<h.x?(x.push(["M",d.x+y,d.y]),0!==y&&x.push(["A",y,y,0,0,0,d.x,d.y+y]),x.push(["L",p.x,p.y-m]),0!==m&&x.push(["A",m,m,0,0,0,p.x+m,p.y]),x.push(["L",h.x-_,h.y]),0!==_&&x.push(["A",_,_,0,0,0,h.x,h.y-_]),x.push(["L",f.x,f.y+v]),0!==v&&x.push(["A",v,v,0,0,0,f.x-v,f.y]),x.push(["L",d.x+y,d.y]),x.push(["z"])):(x.push(["M",f.x,f.y+v]),0!==v&&x.push(["A",v,v,0,0,1,f.x+v,f.y]),x.push(["L",d.x-y,d.y]),0!==y&&x.push(["A",y,y,0,0,1,d.x,d.y+y]),x.push(["L",p.x,p.y-m]),0!==m&&x.push(["A",m,m,0,0,1,p.x-m,p.y]),x.push(["L",h.x+_,h.y]),0!==_&&x.push(["A",_,_,0,0,1,h.x,h.y-_]),x.push(["L",f.x,f.y+v]),x.push(["z"])),x}(this.parsePoints(t.points),this.coordinate,r.radius):this.parsePath(function(t,e,n){var r=n.getWidth(),i=n.getHeight(),o="rect"===n.type,a=[],s=(t[2].x-t[1].x)/2,l=n.isTransposed?s*i/r:s*r/i;return"round"===e?(o?(a.push(["M",t[0].x,t[0].y+l]),a.push(["L",t[1].x,t[1].y-l]),a.push(["A",s,s,0,0,1,t[2].x,t[2].y-l]),a.push(["L",t[3].x,t[3].y+l]),a.push(["A",s,s,0,0,1,t[0].x,t[0].y+l])):(a.push(["M",t[0].x,t[0].y]),a.push(["L",t[1].x,t[1].y]),a.push(["A",s,s,0,0,1,t[2].x,t[2].y]),a.push(["L",t[3].x,t[3].y]),a.push(["A",s,s,0,0,1,t[0].x,t[0].y])),a.push(["z"])):a=fm(t),a}(t.points,r.lineCap,this.coordinate));var l=i.addShape("path",{attrs:he(he({},r),{path:n}),name:"interval"});return o?i:l},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}});var mm=function(t){function e(e){var n=t.call(this,e)||this;n.type="interval",n.shapeType="interval",n.generatePoints=!0;var r=e.background;return n.background=r,n}return ce(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=this.getAttribute("size");i?(n=this.getAttributeValues(i,e)[0],n/=Cf(this.coordinate)):(this.defaultSize||(this.defaultSize=ym(this)),n=this.defaultSize);return r.size=n,r},e.prototype.adjustScale=function(){t.prototype.adjustScale.call(this);var e=this.getYScale();if("theta"===this.coordinate.type)e.change({nice:!1,min:0,max:Lf(e)});else{var n=this.scaleDefs,r=e.field,i=e.min,o=e.max;"time"!==e.type&&(i>0&&!Pn(n,[r,"min"])&&e.change({min:0}),o<=0&&!Pn(n,[r,"max"])&&e.change({max:0}))}},e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.background=this.background,n},e}(Up),_m=function(t){function e(e){var n=t.call(this,e)||this;n.type="line";var r=e.sortable,i=void 0!==r&&r;return n.sortable=i,n}return ce(e,t),e}(im),xm=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"];function bm(t,e,n,r,i){var o,a,s=yg(e,i,!i,"r"),l=t.parsePoints(e.points),u=l[0];if(e.isStack)u=l[1];else if(l.length>1){var c=n.addGroup();try{for(var h=ge(l),f=h.next();!f.done;f=h.next()){var d=f.value;c.addShape({type:"marker",attrs:he(he(he({},s),{symbol:ag[r]||r}),d)})}}catch(p){o={error:p}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}return c}return n.addShape({type:"marker",attrs:he(he(he({},s),{symbol:ag[r]||r}),u)})}Gp("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return _g(t)}}),Pe(xm,(function(t){Yp("point","hollow-".concat(t),{draw:function(e,n){return bm(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:ag[t]||t,style:{r:4.5,stroke:n,fill:null}}}})}));var wm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="point",e.shapeType="point",e.generatePoints=!0,e}return ce(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return he(he({},n),{isStack:!!this.getAdjust("stack")})},e}(Up);Gp("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return Pe(t.x,(function(n,r){var i=t.y[r];e.push({x:n,y:i})})),e}}),Yp("polygon","polygon",{draw:function(t,e){if(!Mn(t.points)){var n=yg(t,!0,!0),r=this.parsePath(function(t){for(var e=t[0],n=1,r=[["M",e.x,e.y]];n<t.length;){var i=t[n];i.x===t[n-1].x&&i.y===t[n-1].y||(r.push(["L",i.x,i.y]),i.x===e.x&&i.y===e.y&&n<t.length-1&&(e=t[n+1],r.push(["Z"]),r.push(["M",e.x,e.y]),n++)),n++}return jn(Ye(r),e)||r.push(["L",e.x,e.y]),r.push(["Z"]),r}(t.points));return e.addShape("path",{attrs:he(he({},n),{path:r}),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}});var Mm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e}return ce(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=r.x,o=r.y;if(!Ce(i)||!Ce(o)){var a=this.getXScale(),s=this.getYScale(),l=.5/a.values.length,u=.5/s.values.length;a.isCategory&&s.isCategory?(i=[i-l,i-l,i+l,i+l],o=[o-u,o+u,o+u,o-u]):Ce(i)?(i=[(n=i)[0],n[0],n[1],n[1]],o=[o-u/2,o+u/2,o+u/2,o-u/2]):Ce(o)&&(o=[(n=o)[0],n[1],n[1],n[0]],i=[i-l/2,i-l/2,i+l/2,i+l/2]),r.x=i,r.y=o}return r},e}(Up);Gp("schema",{defaultShapeType:""});var Sm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e}return ce(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=this.getAttribute("size");i?(n=this.getAttributeValues(i,e)[0],n/=Cf(this.coordinate)):(this.defaultSize||(this.defaultSize=ym(this)),n=this.defaultSize);return r.size=n,r},e}(Up);Gp("violin",{defaultShapeType:"violin",getDefaultPoints:function(t){var e=t.size/2,n=[],r=function(t){if(!Ce(t))return[];var e=Be(t);return Cn(t,(function(t){return t/e}))}(t._size);return Pe(t.y,(function(i,o){var a=r[o]*e,s=0===o,l=o===t.y.length-1;n.push({isMin:s,isMax:l,x:t.x-a,y:i}),n.unshift({isMin:s,isMax:l,x:t.x+a,y:i})})),n}}),Yp("violin","violin",{draw:function(t,e){var n=yg(t,!0,!0),r=this.parsePath(gg(t.points));return e.addShape("path",{attrs:he(he({},n),{path:r}),name:"violin"})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:t.color}}}});var jm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e.shapeType="violin",e.generatePoints=!0,e}return ce(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=this.getAttribute("size");i?(n=this.getAttributeValues(i,e)[0],n/=Cf(this.coordinate)):(this.defaultSize||(this.defaultSize=ym(this)),n=this.defaultSize);return r.size=n,r._size=Pn(e[tr],[this._sizeField]),r},e.prototype.initAttributes=function(){var e=this.attributeOption,n=e.size?e.size.fields[0]:this._sizeField?this._sizeField:"size";this._sizeField=n,delete e.size,t.prototype.initAttributes.call(this)},e}(Up);function Cm(t,e){return["C",1*t.x/2+1*e.x/2,t.y,1*t.x/2+1*e.x/2,e.y,e.x,e.y]}function Em(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var r=["Q"];return Pe(n,(function(t){r.push(t.x,t.y)})),r}Yp("area","line",{draw:function(t,e){var n=am(t,!0,!1,this);return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}}),Yp("area","smooth",{draw:function(t,e){var n=am(t,!1,!0,this,sm(this.coordinate));return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color,fillOpacity:1}}}}),Yp("area","smooth-line",{draw:function(t,e){var n=am(t,!0,!0,this,sm(this.coordinate));return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}}),Yp("edge","arc",{draw:function(t,e){var n,r=yg(t,!0,!1,"lineWidth"),i=t.points,o=i.length>2?"weight":"normal";if(t.isInCircle){var a={x:0,y:1};return"normal"===o?n=function(t,e,n){var r=Em(e,n),i=[["M",t.x,t.y]];return i.push(r),i}(i[0],i[1],a):(r.fill=r.stroke,n=function(t,e){var n=Em(t[1],e),r=Em(t[3],e),i=[["M",t[0].x,t[0].y]];return i.push(r),i.push(["L",t[3].x,t[3].y]),i.push(["L",t[2].x,t[2].y]),i.push(n),i.push(["L",t[1].x,t[1].y]),i.push(["L",t[0].x,t[0].y]),i.push(["Z"]),i}(i,a)),n=this.parsePath(n),e.addShape("path",{attrs:he(he({},r),{path:n})})}if("normal"===o)return n=_f(((i=this.parsePoints(i))[1].x+i[0].x)/2,i[0].y,Math.abs(i[1].x-i[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:he(he({},r),{path:n})});var s=Cm(i[1],i[3]),l=Cm(i[2],i[0]);return n=[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],s,["L",i[3].x,i[3].y],["L",i[2].x,i[2].y],l,["Z"]],n=this.parsePath(n),r.fill=r.stroke,e.addShape("path",{attrs:he(he({},r),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Yp("edge","smooth",{draw:function(t,e){var n=yg(t,!0,!1,"lineWidth"),r=t.points,i=this.parsePath(function(t,e){var n=Cm(t,e),r=[["M",t.x,t.y]];return r.push(n),r}(r[0],r[1]));return e.addShape("path",{attrs:he(he({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var Pm=1/3;Yp("edge","vhv",{draw:function(t,e){var n=yg(t,!0,!1,"lineWidth"),r=t.points,i=this.parsePath(function(t,e){var n=[];n.push({x:t.x,y:t.y*(1-Pm)+e.y*Pm}),n.push({x:e.x,y:t.y*(1-Pm)+e.y*Pm}),n.push(e);var r=[["M",t.x,t.y]];return Pe(n,(function(t){r.push(["L",t.x,t.y])})),r}(r[0],r[1]));return e.addShape("path",{attrs:he(he({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Yp("interval","funnel",{getPoints:function(t){return t.size=2*t.size,hm(t)},draw:function(t,e){var n=yg(t,!1,!0),r=this.parsePath(gm(t.points,t.nextPoints,!1));return e.addShape("path",{attrs:he(he({},n),{path:r}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),Yp("interval","hollow-rect",{draw:function(t,e){var n=yg(t,!0,!1),r=e,i=null==t?void 0:t.background;if(i){r=e.addGroup();var o=mg(t),a=pm(t,this.parsePoints(t.points),this.coordinate);r.addShape("path",{attrs:he(he({},o),{path:a}),zIndex:-1,name:Ip})}var s=this.parsePath(fm(t.points)),l=r.addShape("path",{attrs:he(he({},n),{path:s}),name:"interval"});return i?r:l},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}}),Yp("interval","line",{getPoints:function(t){return n=(e=t).x,r=e.y,i=e.y0,Ce(r)?r.map((function(t,e){return{x:Ce(n)?n[e]:n,y:t}})):[{x:n,y:i},{x:n,y:r}];var e,n,r,i},draw:function(t,e){var n=yg(t,!0,!1,"lineWidth"),r=Mf(he({},n),["fill"]),i=this.parsePath(fm(t.points,!1));return e.addShape("path",{attrs:he(he({},r),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]},style:{r:5,stroke:t.color}}}}),Yp("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,hm(t)},draw:function(t,e){var n=yg(t,!1,!0),r=this.parsePath(gm(t.points,t.nextPoints,!0));return e.addShape("path",{attrs:he(he({},n),{path:r}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),Yp("interval","tick",{getPoints:function(t){return function(t){var e,n,r,i=t.x,o=t.y,a=t.y0,s=t.size;Ce(o)?(n=(e=ve(o,2))[0],r=e[1]):(n=a,r=o);var l=i+s/2,u=i-s/2;return[{x:i,y:n},{x:i,y:r},{x:u,y:n},{x:l,y:n},{x:u,y:r},{x:l,y:r}]}(t)},draw:function(t,e){var n,r=yg(t,!0,!1),i=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y]]);return e.addShape("path",{attrs:he(he({},r),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},style:{r:5,stroke:t.color}}}});function Tm(t,e){var n=pg(t.points,t.connectNulls,t.showSinglePoint),r=[];return Pe(n,(function(t){var n=function(t,e){var n=[];return Pe(t,(function(r,i){var o=t[i+1];if(n.push(r),o){var a=function(t,e,n){var r,i=t.x,o=t.y,a=e.x,s=e.y;switch(n){case"hv":r=[{x:a,y:o}];break;case"vh":r=[{x:i,y:s}];break;case"hvh":var l=(a+i)/2;r=[{x:l,y:o},{x:l,y:s}];break;case"vhv":var u=(o+s)/2;r=[{x:i,y:u},{x:a,y:u}]}return r}(r,o,e);n=n.concat(a)}})),n}(t,e);r=r.concat(function(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}(n))})),he(he({},yg(t,!0,!1,"lineWidth")),{path:r})}function km(t){var e=Ce(t)?t:[t],n=e[0],r=e[e.length-1],i=e.length>1?e[1]:n;return{min:n,max:r,min1:i,max1:e.length>3?e[3]:r,median:e.length>2?e[2]:i}}function Am(t,e,n){var r,i=n/2;if(Ce(e)){var o=km(e),a=o.min,s=o.max,l=o.median,u=o.min1,c=t-i,h=t+i;r=[[c,s],[h,s],[t,s],[t,f=o.max1],[c,u],[c,f],[h,f],[h,u],[t,u],[t,a],[c,a],[h,a],[c,l],[h,l]]}else{e=je(e)?.5:e;var f,d=km(t),p=(a=d.min,s=d.max,l=d.median,e-i),g=e+i;r=[[a,p],[a,g],[a,e],[u=d.min1,e],[u,p],[u,g],[f=d.max1,g],[f,p],[f,e],[s,e],[s,p],[s,g],[l,p],[l,g]]}return r.map((function(t){return{x:t[0],y:t[1]}}))}function Om(t){var e=(Ce(t)?t:[t]).sort((function(t,e){return e-t}));return function(t,e,n){if(Ne(t))return t.padEnd(e,n);if(Ce(t)){var r=t.length;if(r<e)for(var i=e-r,o=0;o<i;o++)t.push(n)}return t}(e,4,e[e.length-1])}function Im(t,e,n){var r=Om(e);return[{x:t,y:r[0]},{x:t,y:r[1]},{x:t-n/2,y:r[2]},{x:t-n/2,y:r[1]},{x:t+n/2,y:r[1]},{x:t+n/2,y:r[2]},{x:t,y:r[2]},{x:t,y:r[3]}]}function Bm(t,e){var n=Math.abs(t[0].x-t[2].x),r=Math.abs(t[0].y-t[2].y),i=Math.min(n,r);return e&&(i=Ue(e,0,Math.min(n,r))),i/=2,{x:(t[0].x+t[2].x)/2-i,y:(t[0].y+t[2].y)/2-i,width:2*i,height:2*i}}Pe(["hv","vh","hvh","vhv"],(function(t){Yp("line",t,{draw:function(e,n){var r=Tm(e,t);return n.addShape({type:"path",attrs:r,name:"line"})},getMarker:function(e){return bg(e,t)}})})),Pe(["cross","tick","plus","hyphen","line"],(function(t){Yp("point",t,{draw:function(e,n){return bm(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:ag[t],style:{r:4.5,stroke:n,fill:null}}}})})),Yp("point","image",{draw:function(t,e){var n,r,i=yg(t,!1,!1,"r").r,o=this.parsePoints(t.points),a=o[0];if(t.isStack)a=o[1];else if(o.length>1){var s=e.addGroup();try{for(var l=ge(o),u=l.next();!u.done;u=l.next()){var c=u.value;s.addShape("image",{attrs:{x:c.x-i/2,y:c.y-i,width:i,height:i,img:t.shape[1]}})}}catch(h){n={error:h}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return s}return e.addShape("image",{attrs:{x:a.x-i/2,y:a.y-i,width:i,height:i,img:t.shape[1]}})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Pe(xm,(function(t){Yp("point",t,{draw:function(e,n){return bm(this,e,n,t,!1)},getMarker:function(e){var n=e.color;return{symbol:ag[t]||t,style:{r:4.5,fill:n}}}})})),Yp("schema","box",{getPoints:function(t){return Am(t.x,t.y,t.size)},draw:function(t,e){var n,r=yg(t,!0,!1),i=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y],["L",n[6].x,n[6].y],["L",n[7].x,n[7].y],["L",n[4].x,n[4].y],["Z"],["M",n[8].x,n[8].y],["L",n[9].x,n[9].y],["M",n[10].x,n[10].y],["L",n[11].x,n[11].y],["M",n[12].x,n[12].y],["L",n[13].x,n[13].y]]);return e.addShape("path",{attrs:he(he({},r),{path:i,name:"schema"})})},getMarker:function(t){return{symbol:function(t,e,n){var r=Am(t,[e-6,e-3,e,e+3,e+6],n);return[["M",r[0].x+1,r[0].y],["L",r[1].x-1,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x+1,r[10].y],["L",r[11].x-1,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]},style:{r:6,lineWidth:1,stroke:t.color}}}}),Yp("schema","candle",{getPoints:function(t){return Im(t.x,t.y,t.size)},draw:function(t,e){var n,r=yg(t,!0,!0),i=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["L",n[4].x,n[4].y],["L",n[5].x,n[5].y],["Z"],["M",n[6].x,n[6].y],["L",n[7].x,n[7].y]]);return e.addShape("path",{attrs:he(he({},r),{path:i,name:"schema"})})},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var r=Im(t,[e+7.5,e+3,e-3,e-7.5],n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}}),Yp("polygon","square",{draw:function(t,e){if(!Mn(t.points)){var n=yg(t,!0,!0),r=this.parsePoints(t.points);return e.addShape("rect",{attrs:he(he({},n),Bm(r,t.size)),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),Yp("violin","smooth",{draw:function(t,e){var n=yg(t,!0,!0),r=this.parsePath(vg(t.points));return e.addShape("path",{attrs:he(he({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{stroke:null,r:4,fill:t.color}}}}),Yp("violin","hollow",{draw:function(t,e){var n=yg(t,!0,!1),r=this.parsePath(gg(t.points));return e.addShape("path",{attrs:he(he({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}}),Yp("violin","hollow-smooth",{draw:function(t,e){var n=yg(t,!0,!1),r=this.parsePath(vg(t.points));return e.addShape("path",{attrs:he(he({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}});var Lm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getLabelValueDir=function(t){var e=t.points;return e[0].y<=e[2].y?1:-1},e.prototype.getLabelOffsetPoint=function(e,n,r,i){var o,a=t.prototype.getLabelOffsetPoint.call(this,e,n,r),s=this.getCoordinate(),l=s.isTransposed?"x":"y",u=this.getLabelValueDir(e.mappingData);return a=he(he({},a),((o={})[l]=a[l]*u,o)),s.isReflect("x")&&(a=he(he({},a),{x:-1*a.x})),s.isReflect("y")&&(a=he(he({},a),{y:-1*a.y})),a},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.theme;return xn({},n,r.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,n,r){var i,o,a,s,l=this.getCoordinate(),u=l.isTransposed,c=e.points,h=l.convert(c[0]),f=l.convert(c[2]),d=this.getLabelValueDir(e),p=Ce(e.shape)?e.shape[0]:e.shape;if("funnel"===p||"pyramid"===p){var g=Pn(e,"nextPoints"),v=Pn(e,"points");if(g){var y=l.convert(v[0]),m=l.convert(v[1]),_=l.convert(g[0]),x=l.convert(g[1]);u?(i=Math.min(_.y,y.y),a=Math.max(_.y,y.y),o=(m.x+x.x)/2,s=(y.x+_.x)/2):(i=Math.min((m.y+x.y)/2,(y.y+_.y)/2),a=Math.max((m.y+x.y)/2,(y.y+_.y)/2),o=x.x,s=y.x)}else i=Math.min(f.y,h.y),a=Math.max(f.y,h.y),o=f.x,s=h.x}else i=Math.min(f.y,h.y),a=Math.max(f.y,h.y),o=f.x,s=h.x;switch(r){case"right":t.x=o,t.y=(i+a)/2,t.textAlign=Pn(t,"textAlign",d>0?"left":"right");break;case"left":t.x=s,t.y=(i+a)/2,t.textAlign=Pn(t,"textAlign",d>0?"left":"right");break;case"bottom":u&&(t.x=(o+s)/2),t.y=a,t.textAlign=Pn(t,"textAlign","center"),t.textBaseline=Pn(t,"textBaseline",d>0?"bottom":"top");break;case"middle":u&&(t.x=(o+s)/2),t.y=(i+a)/2,t.textAlign=Pn(t,"textAlign","center"),t.textBaseline=Pn(t,"textBaseline","middle");break;case"top":u&&(t.x=(o+s)/2),t.y=i,t.textAlign=Pn(t,"textAlign","center"),t.textBaseline=Pn(t,"textBaseline",d>0?"bottom":"top")}},e}(ig),Fm=Math.PI/2,Dm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if(Ke(t))n=t;else if(Ne(t)&&-1!==t.indexOf("%")){var r=e.getRadius();e.innerRadius>0&&(r*=1-e.innerRadius),n=.01*parseFloat(t)*r}return n},e.prototype.getLabelItems=function(e){var n=t.prototype.getLabelItems.call(this,e),r=this.geometry.getYScale();return Cn(n,(function(t){if(t&&r){var e=r.scale(Pn(t.data,r.field));return he(he({},t),{percent:e})}return t}))},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var r=n.getCenter(),i=t.offset;e=Math.abs(t.x-r.x)<1?"center":t.angle>Math.PI||t.angle<=0?i>0?"left":"right":i>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,n){var r,i=1,o=t.content[n];this.isToMiddle(e)?r=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(i=-1),r=this.getArcPoint(e,n));var a=t.offset*i,s=this.getPointAngle(r),l=t.labelEmit,u=this.getCirclePoint(s,a,r,l);return 0===u.r?u.content="":(u.content=o,u.angle=s,u.color=e.color),u.rotate=t.autoRotate?this.getLabelRotate(s,a,l):t.rotate,u.start={x:r.x,y:r.y},u},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),Ce(t.x)||Ce(t.y)?{x:Ce(t.x)?t.x[e]:t.x,y:Ce(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return Pf(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,r){var i=this.getCoordinate(),o=i.getCenter(),a=Ef(i,n);if(0===a)return he(he({},o),{r:a});var s=t;i.isTransposed&&a>e&&!r?s=t+2*Math.asin(e/(2*a)):a+=e;return{x:o.x+a*Math.cos(s),y:o.y+a*Math.sin(s),r:a}},e.prototype.getLabelRotate=function(t,e,n){var r=t+Fm;return n&&(r-=Fm),r&&(r>Fm?r-=Math.PI:r<-Fm&&(r+=Math.PI)),r},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,r={x:0,y:0};return Pe(t,(function(t){r.x+=t.x,r.y+=t.y})),r.x/=n,r.y/=n,r=e.convert(r)},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(ig),Rm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return ce(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var r=t.prototype.getDefaultLabelCfg.call(this,e,n);return xn({},r,Pn(this.geometry.theme,"pieLabels",{}))},e.prototype.getLabelOffset=function(e){return t.prototype.getLabelOffset.call(this,e)||0},e.prototype.getLabelRotate=function(t,e,n){var r;return e<0&&((r=t)>Math.PI/2&&(r-=Math.PI),r<-Math.PI/2&&(r+=Math.PI)),r},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate().getCenter();return e=t.angle<=Math.PI/2&&t.x>=n.x?"left":"right",t.offset<=0&&(e="right"===e?"left":"right"),e},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e,n=this.getCoordinate(),r={x:Ce(t.x)?t.x[0]:t.x,y:t.y[0]},i={x:Ce(t.x)?t.x[1]:t.x,y:t.y[1]},o=Pf(n,r);if(t.points&&t.points[0].y===t.points[1].y)e=o;else{var a=Pf(n,i);o>=a&&(a+=2*Math.PI),e=o+(a-o)/2}return e},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),r=n.getCenter(),i=n.getRadius()+e;return he(he({},yf(r.x,r.y,i,t)),{angle:t,r:i})},e}(Dm);function Nm(t,e,n){var r=t.filter((function(t){return!t.invisible}));r.sort((function(t,e){return t.y-e.y}));var i,o=!0,a=n.minY,s=n.maxY,l=Math.abs(a-s),u=0,c=Number.MIN_VALUE,h=r.map((function(t){return t.y>u&&(u=t.y),t.y<c&&(c=t.y),{content:t.content,size:e,targets:[t.y-a],pos:null}}));for(c-=a,u-a>l&&(l=u-a);o;)for(h.forEach((function(t){var e=(Math.min.apply(c,t.targets)+Math.max.apply(c,t.targets))/2;t.pos=Math.min(Math.max(c,e-t.size/2),l-t.size),t.pos=Math.max(0,t.pos)})),o=!1,i=h.length;i--;)if(i>0){var f=h[i-1],d=h[i];f.pos+f.size>d.pos&&(f.size+=d.size,f.targets=f.targets.concat(d.targets),f.pos+f.size>l&&(f.pos=l-f.size),h.splice(i,1),o=!0)}i=0,h.forEach((function(t){var n=a+e/2;t.targets.forEach((function(){r[i].y=t.pos+n,n+=e,i++}))}))}var zm=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,n=void 0===e?1:e,r=t.yGap,i=void 0===r?8:r;this.xGap=n,this.yGap=i}return t.prototype.hasGap=function(t){for(var e=!0,n=this.bitmap,r=Math.round(t.minX),i=Math.round(t.maxX),o=Math.round(t.minY),a=Math.round(t.maxY),s=r;s<=i;s+=1)if(n[s]){if(s===r||s===i){for(var l=o;l<=a;l++)if(n[s][l]){e=!1;break}}else if(n[s][o]||n[s][a]){e=!1;break}}else n[s]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,n=Math.round(t.minX),r=Math.round(t.maxX),i=Math.round(t.minY),o=Math.round(t.maxY),a=n;a<=r;a+=1)e[a]||(e[a]={});for(a=n;a<=r;a+=this.xGap){for(var s=i;s<=o;s+=this.yGap)e[a][s]=!0;e[a][o]=!0}if(1!==this.yGap)for(a=i;a<=o;a+=1)e[n][a]=!0,e[r][a]=!0;if(1!==this.xGap)for(a=n;a<=r;a+=1)e[a][i]=!0,e[a][o]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function Hm(t,e,n,r){var i=t.getCanvasBBox(),o=i.width,a=i.height,s={x:e,y:n,textAlign:"center"};switch(r){case 0:s.y-=a+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=a+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=a+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=a+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*a+2;break;case 6:s.y+=2*a+2;break;case 7:s.x+=o+1,s.textAlign="left";break;case 8:s.x-=o+1,s.textAlign="right"}return t.attr(s),t.getCanvasBBox()}function Gm(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function Ym(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function Vm(t){var e=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],n=t.rotation;return n?[Ym(e[0],n,e[0]),Ym(e[1],n,e[0]),Ym(e[2],n,e[0]),Ym(e[3],n,e[0])]:e}function Xm(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){var r,i;n.push((r=[t.x,t.y],i=e,(r[0]||0)*(i[0]||0)+(r[1]||0)*(i[1]||0)+(r[2]||0)*(i[2]||0)))})),{min:Math.min.apply(Math,me([],ve(n),!1)),max:Math.max.apply(Math,me([],ve(n),!1))}}function qm(t,e){return t.max>e.min&&t.min<e.max}function Wm(t){return["x","y","width","height"].every((function(e){return"number"==typeof(n=t[e])&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0;var n}))}function Um(t,e,n){if(void 0===n&&(n=0),!Wm(t)||!Wm(e))return!1;if(!t.rotation&&!e.rotation)return function(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}(t,e,n);for(var r=Vm(t),i=Vm(e),o=Gm(r).concat(Gm(i)),a=0;a<o.length;a++){var s=o[a];if(!qm(Xm(r,s),Xm(i,s)))return!1}return!0}var Zm=function(){function t(t){var e=this;this.queue=[],this.worker=new Worker(t),this.worker.onmessage=function(t){var n;null===(n=e.queue.shift())||void 0===n||n.resolve(t)},this.worker.onmessageerror=function(t){var n;console.warn("[AntV G2] Web worker is not available"),null===(n=e.queue.shift())||void 0===n||n.reject(t)}}return t.prototype.post=function(t,e){var n=this;return new Promise((function(r,i){n.queue.push({resolve:r,reject:i});try{n.worker.postMessage(t)}catch(o){console.warn("[AntV G2] Web worker is not available"),Se(e)&&e()}}))},t.prototype.destroy=function(){this.worker.terminate()},t}();var Km="\n self.onmessage = ".concat(function(t){var e=function(){function t(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function e(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function n(t){var n=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],r=t.rotation;return r?[e(n[0],r,n[0]),e(n[1],r,n[0]),e(n[2],r,n[0]),e(n[3],r,n[0])]:n}function r(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){var r,i;n.push((r=[t.x,t.y],i=e,(r[0]||0)*(i[0]||0)+(r[1]||0)*(i[1]||0)+(r[2]||0)*(i[2]||0)))})),{min:Math.min.apply(null,n),max:Math.max.apply(null,n)}}function i(t,e){return t.max>e.min&&t.min<e.max}function o(t){return["x","y","width","height"].every((function(e){return"number"==typeof(n=t[e])&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0;var n}))}return{intersect:function(e,a,s){if(void 0===s&&(s=0),!o(e)||!o(a))return!1;if(!e.rotation&&!a.rotation)return function(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}(e,a,s);for(var l=n(e),u=n(a),c=t(l).concat(t(u)),h=0;h<c.length;h++){var f=c[h];if(!i(r(l,f),r(u,f)))return!1}return!0}}}().intersect;var n={"hide-overlap":function(t){for(var n=t.slice(),r=0;r<n.length;r++){var i=n[r];if(i.visible)for(var o=r+1;o<n.length;o++){var a=n[o];i!==a&&a.visible&&e(i,a)&&(a.visible=!1)}}return n}};try{var r=JSON.parse(t.data);if(!r||!r.type||!n[r.type])return;var i=r.type,o=r.items,a=n[i](o);self.postMessage(a)}catch(t){throw t}}.toString(),"\n"),Qm=function(t){for(var e=t.slice(),n=0;n<e.length;n++){var r=e[n];if(r.visible)for(var i=n+1;i<e.length;i++){var o=e[i];r!==o&&o.visible&&Um(r,o)&&(o.visible=!1)}}return e},$m=new Map,Jm=function(t){if("undefined"!=typeof window){var e;try{e=new Blob([t.toString()],{type:"application/javascript"})}catch(n){(e=new window.BlobBuilder).append(t.toString()),e=e.getBlob()}return new Zm(URL.createObjectURL(e))}}(Km);var t_,e_={"#5B8FF9":!0};function n_(t,e,n){return!!t.getAdjust("stack")||e.every((function(e,r){var i=n[r];return function(t,e,n){var r=t.coordinate,i=$p(e),o=jf.fromObject(i.getCanvasBBox()),a=jf.fromObject(n.getBBox());return r.isTransposed?a.height>=o.height:a.width>=o.width}(t,e,i)}))}function r_(t,e,n){return t.some((function(t){return n(t,e)}))}function i_(t,e){return r_(t,e,(function(t,e){var n,r,i,o=$p(t),a=$p(e);return n=o.getCanvasBBox(),r=a.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}function o_(t,e,n){return t.some((function(t){return n(t,e)}))}function a_(t,e){return o_(t,e,(function(t,e){var n,r,i,o=$p(t),a=$p(e);return n=o.getCanvasBBox(),r=a.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}function s_(){return t_||(t_=document.createElement("canvas").getContext("2d")),t_}var l_=mn((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant,s=s_();return s.font=[o,a,i,"".concat(n,"px"),r].join(" "),s.measureText(Ne(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),me([t],ve(nn(e)),!1).join("")}));function u_(t,e,n,r,i){var o,a,s=n.start,l=n.end,u=n.getWidth(),c=n.getHeight();"y"===i?(o=s.x+u/2,a=r.y<s.y?r.y:s.y):"x"===i?(o=r.x>s.x?r.x:s.x,a=s.y+c/2):"xy"===i&&(n.isPolar?(o=n.getCenter().x,a=n.getCenter().y):(o=(s.x+l.x)/2,a=(s.y+l.y)/2));var h=function(t,e,n){var r,i=ve(e,2),o=i[0],a=i[1];return t.applyToMatrix([o,a,1]),"x"===n?(t.setMatrix(Ci(t.getMatrix(),[["t",-o,-a],["s",.01,1],["t",o,a]])),r=Ci(t.getMatrix(),[["t",-o,-a],["s",100,1],["t",o,a]])):"y"===n?(t.setMatrix(Ci(t.getMatrix(),[["t",-o,-a],["s",1,.01],["t",o,a]])),r=Ci(t.getMatrix(),[["t",-o,-a],["s",1,100],["t",o,a]])):"xy"===n&&(t.setMatrix(Ci(t.getMatrix(),[["t",-o,-a],["s",.01,.01],["t",o,a]])),r=Ci(t.getMatrix(),[["t",-o,-a],["s",100,100],["t",o,a]])),r}(t,[o,a],i);t.animate({matrix:h},e)}function c_(t,e){var n,r=Kg(t,e),i=r.startAngle,o=r.endAngle;return!Qe(i,.5*-Math.PI)&&i<.5*-Math.PI&&(i+=2*Math.PI),!Qe(o,.5*-Math.PI)&&o<.5*-Math.PI&&(o+=2*Math.PI),0===e[5]&&(i=(n=ve([o,i],2))[0],o=n[1]),Qe(i,1.5*Math.PI)&&(i=-.5*Math.PI),Qe(o,-.5*Math.PI)&&!Qe(i,o)&&(o=1.5*Math.PI),{startAngle:i,endAngle:o}}function h_(t){var e;return"M"===t[0]||"L"===t[0]?e=[t[1],t[2]]:"a"!==t[0]&&"A"!==t[0]&&"C"!==t[0]||(e=[t[t.length-2],t[t.length-1]]),e}function f_(t){var e,n,r,i=t.filter((function(t){return"A"===t[0]||"a"===t[0]}));if(0===i.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var o=i[0],a=i.length>1?i[1]:i[0],s=t.indexOf(o),l=t.indexOf(a),u=h_(t[s-1]),c=h_(t[l-1]),h=c_(u,o),f=h.startAngle,d=h.endAngle,p=c_(c,a),g=p.startAngle,v=p.endAngle;Qe(f,g)&&Qe(d,v)?(n=f,r=d):(n=Math.min(f,g),r=Math.max(d,v));var y=o[1],m=i[i.length-1][1];return y<m?(y=(e=ve([m,y],2))[0],m=e[1]):y===m&&(m=0),{startAngle:n,endAngle:r,radius:y,innerRadius:m}}function d_(t,e,n){if(t.isGroup())Pe(t.getChildren(),(function(t){d_(t,e,n)}));else{var r=t.getBBox(),i=(r.minX+r.maxX)/2,o=(r.minY+r.maxY)/2;if(t.applyToMatrix([i,o,1]),"zoomIn"===n){var a=Ci(t.getMatrix(),[["t",-i,-o],["s",.01,.01],["t",i,o]]);t.setMatrix(a),t.animate({matrix:Ci(t.getMatrix(),[["t",-i,-o],["s",100,100],["t",i,o]])},e)}else t.animate({matrix:Ci(t.getMatrix(),[["t",-i,-o],["s",.01,.01],["t",i,o]])},he(he({},e),{callback:function(){t.remove(!0)}}))}}function p_(t){return[Rn.TOP,Rn.BOTTOM].includes(t)?{offsetX:0,offsetY:t===Rn.TOP?-8:8,style:{textAlign:"center",textBaseline:t===Rn.TOP?"bottom":"top"}}:[Rn.LEFT,Rn.RIGHT].includes(t)?{offsetX:t===Rn.LEFT?-8:8,offsetY:0,style:{textAlign:t===Rn.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}}function g_(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}var v_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){return xn({},t.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.getRegion=function(t,e){var n=2*Math.PI/t,r=-1*Math.PI/2+n*e,i=.5/(1+1/Math.sin(n/2)),o=g_({x:.5,y:.5},.5-i,r),a=5*Math.PI/4,s=1*Math.PI/4;return{start:g_(o,i,a),end:g_(o,i,s)}},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg,r=n.fields,i=n.type,o=ve(r,1)[0];if(!o)throw new Error("No `fields` specified!");var a=this.getFieldValues(t,o),s=a.length,l=[];return a.forEach((function(n,r){var u=[{field:o,value:n,values:a}],c=be(t,e.getFacetDataFilter(u)),h={type:i,data:c,region:e.getRegion(s,r),columnValue:n,columnField:o,columnIndex:r,columnValuesLength:s,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};l.push(h)})),l},e.prototype.getXAxisOption=function(t,e,n,r){return n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;Pe(this.facets,(function(e){var n=e.columnValue,r=e.view,i=Pn(t.cfg.title,"formatter"),o=xn({position:["50%","0%"],content:i?i(n):n},p_(Rn.TOP),t.cfg.title);r.annotation().text(o)}))},e}(Xf),y_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){return xn({},t.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,r=this.cfg.cols,i=ve(n,1)[0];if(!i)throw new Error("No `fields` specified!");var o=this.getFieldValues(t,i),a=o.length;r=r||a;var s=this.getPageCount(a,r),l=[];return o.forEach((function(n,u){var c=e.getRowCol(u,r),h=c.row,f=c.col,d=[{field:i,value:n,values:o}],p=be(t,e.getFacetDataFilter(d)),g={type:e.cfg.type,data:p,region:e.getRegion(s,r,f,h),columnValue:n,rowValue:n,columnField:i,rowField:null,columnIndex:f,rowIndex:h,columnValuesLength:r,rowValuesLength:s,total:a};l.push(g)})),l},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1&&r.columnValuesLength*r.rowIndex+r.columnIndex+1+r.columnValuesLength<=r.total?he(he({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?he(he({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Pe(this.facets,(function(e){var n=e.columnValue,r=e.view,i=Pn(t.cfg.title,"formatter"),o=xn({position:["50%","0%"],content:i?i(n):n},p_(Rn.TOP),t.cfg.title);r.annotation().text(o)}))},e.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},e.prototype.getRowCol=function(t,e){return{row:Math.floor(t/e),col:t%e}},e}(Xf),m_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){return xn({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:he({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:he({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){for(var e=this.cfg,n=e.fields,r=e.type,i=n.length,o=i,a=[],s=0;s<o;s++)for(var l=n[s],u=0;u<i;u++){var c=n[u],h={type:r,data:t,region:this.getRegion(i,o,s,u),columnValue:l,rowValue:c,columnField:l,rowField:c,columnIndex:s,rowIndex:u,columnValuesLength:o,rowValuesLength:i};a.push(h)}return a},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?he(he({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?he(he({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Pe(this.facets,(function(e,n){var r=e.columnIndex,i=e.rowIndex,o=e.columnValuesLength;e.rowValuesLength;var a=e.columnValue,s=e.rowValue,l=e.view;if(0===i){var u=Pn(t.cfg.columnTitle,"formatter"),c=xn({position:["50%","0%"],content:u?u(a):a},p_(Rn.TOP),t.cfg.columnTitle);l.annotation().text(c)}if(r===o-1){u=Pn(t.cfg.rowTitle,"formatter"),c=xn({position:["100%","50%"],content:u?u(s):s},p_(Rn.RIGHT),t.cfg.rowTitle);l.annotation().text(c)}}))},e}(Xf),__=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getDefaultCfg=function(){return xn({},t.prototype.getDefaultCfg.call(this),{type:"mirror",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this),transpose:!1})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.beforeEachView=function(t,e){this.cfg.transpose?e.columnIndex%2==0?t.coordinate().transpose().reflect("x"):t.coordinate().transpose():e.rowIndex%2!=0&&t.coordinate().reflect("y")},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.generateFacets=function(t){var e,n,r=this,i=ve(this.cfg.fields,1)[0],o=[],a=1,s=1,l=[""],u=[""];return this.cfg.transpose?(e=i,l=this.getFieldValues(t,e).slice(0,2),a=l.length):(n=i,u=this.getFieldValues(t,n).slice(0,2),s=u.length),l.forEach((function(i,c){u.forEach((function(h,f){var d=[{field:e,value:i,values:l},{field:n,value:h,values:u}],p=be(t,r.getFacetDataFilter(d)),g={type:r.cfg.type,data:p,region:r.getRegion(s,a,c,f),columnValue:i,rowValue:h,columnField:e,rowField:n,columnIndex:c,rowIndex:f,columnValuesLength:a,rowValuesLength:s};o.push(g)}))})),o},e.prototype.getXAxisOption=function(t,e,n,r){return 1===r.columnIndex||1===r.rowIndex?he(he({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;Pe(this.facets,(function(e,n){var r=e.columnValue,i=e.rowValue,o=e.view,a=Pn(t.cfg.title,"formatter");if(t.cfg.transpose){var s=xn({position:["50%","0%"],content:a?a(r):r},p_(Rn.TOP),t.cfg.title);o.annotation().text(s)}else{s=xn({position:["100%","50%"],content:a?a(i):i},p_(Rn.RIGHT),t.cfg.title);o.annotation().text(s)}}))},e}(Xf),x_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.getDefaultCfg=function(){return xn({},t.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:he({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:he({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.generateFacets=function(t){var e=this,n=ve(this.cfg.fields,2),r=n[0],i=n[1],o=[],a=1,s=1,l=[""],u=[""];return r&&(l=this.getFieldValues(t,r),a=l.length),i&&(u=this.getFieldValues(t,i),s=u.length),l.forEach((function(n,c){u.forEach((function(h,f){var d=[{field:r,value:n,values:l},{field:i,value:h,values:u}],p=be(t,e.getFacetDataFilter(d)),g={type:e.cfg.type,data:p,region:e.getRegion(s,a,c,f),columnValue:n,rowValue:h,columnField:r,rowField:i,columnIndex:c,rowIndex:f,columnValuesLength:a,rowValuesLength:s};o.push(g)}))})),o},e.prototype.renderTitle=function(){var t=this;Pe(this.facets,(function(e,n){var r=e.columnIndex,i=e.rowIndex,o=e.columnValuesLength,a=e.columnValue,s=e.rowValue,l=e.view;if(0===i){var u=Pn(t.cfg.columnTitle,"formatter"),c=xn({position:["50%","0%"],content:u?u(a):a},p_(Rn.TOP),t.cfg.columnTitle);l.annotation().text(c)}if(r===o-1){u=Pn(t.cfg.rowTitle,"formatter"),c=xn({position:["100%","50%"],content:u?u(s):s},p_(Rn.RIGHT),t.cfg.rowTitle);l.annotation().text(c)}}))},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?he(he({},n),{title:null,label:null}):r.columnIndex!==Math.floor((r.columnValuesLength-1)/2)?he(he({},n),{title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?he(he({},n),{title:null,label:null}):r.rowIndex!==Math.floor((r.rowValuesLength-1)/2)?he(he({},n),{title:null}):n},e}(Xf),b_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.afterChartRender=function(){e.facets&&e.cfg.line&&(e.container.clear(),e.drawLines(e.facets))},e}return ce(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.init=function(){t.prototype.init.call(this),this.view.on(Gn.AFTER_RENDER,this.afterChartRender)},e.prototype.getDefaultCfg=function(){return xn({},t.prototype.getDefaultCfg.call(this),{type:"tree",line:{style:{lineWidth:1,stroke:"#ddd"},smooth:!1},showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.generateFacets=function(t){if(!this.cfg.fields.length)throw new Error("Please specify for the fields for rootFacet!");var e=[],n={type:this.cfg.type,data:t,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return e.push(n),n.children=this.getChildFacets(t,1,e),this.setRegion(e),e},e.prototype.setRegion=function(t){var e=this;this.forceColIndex(t),t.forEach((function(t){t.region=e.getRegion(t.rowValuesLength,t.columnValuesLength,t.columnIndex,t.rowIndex)}))},e.prototype.getRegion=function(t,e,n,r){var i=1/e,o=1/t,a={x:i*n,y:o*r};return{start:a,end:{x:a.x+i,y:a.y+2*o/3}}},e.prototype.forceColIndex=function(t){var e,n,r=this,i=[],o=0;t.forEach((function(t){r.isLeaf(t)&&(i.push(t),t.columnIndex=o,o++)})),i.forEach((function(t){t.columnValuesLength=i.length}));for(var a=this.cfg.fields.length-1;a>=0;a--){var s=this.getFacetsByLevel(t,a);try{for(var l=(e=void 0,ge(s)),u=l.next();!u.done;u=l.next()){var c=u.value;this.isLeaf(c)||(c.originColIndex=c.columnIndex,c.columnIndex=this.getRegionIndex(c.children),c.columnValuesLength=i.length)}}catch(h){e={error:h}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}}},e.prototype.getFacetsByLevel=function(t,e){var n=[];return t.forEach((function(t){t.rowIndex===e&&n.push(t)})),n},e.prototype.getRegionIndex=function(t){var e=t[0];return(t[t.length-1].columnIndex-e.columnIndex)/2+e.columnIndex},e.prototype.isLeaf=function(t){return!t.children||!t.children.length},e.prototype.getRows=function(){return this.cfg.fields.length+1},e.prototype.getChildFacets=function(t,e,n){var r=this,i=this.cfg.fields;if(!(i.length<e)){var o=[],a=i[e-1],s=this.getFieldValues(t,a);return s.forEach((function(i,l){var u=[{field:a,value:i,values:s}],c=t.filter(r.getFacetDataFilter(u));if(c.length){var h={type:r.cfg.type,data:c,region:null,columnValue:i,rowValue:"",columnField:a,rowField:"",columnIndex:l,rowValuesLength:r.getRows(),columnValuesLength:1,rowIndex:e,children:r.getChildFacets(c,e+1,n)};o.push(h),n.push(h)}})),o}},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.renderTitle=function(){var t=this;Pe(this.facets,(function(e){var n=e.columnValue,r=e.view,i=Pn(t.cfg.title,"formatter"),o=xn({position:["50%","0%"],content:i?i(n):n},p_(Rn.TOP),t.cfg.title);r.annotation().text(o)}))},e.prototype.drawLines=function(t){var e=this;t.forEach((function(t){if(!e.isLeaf(t)){var n=t.children;e.addFacetLines(t,n)}}))},e.prototype.addFacetLines=function(t,e){var n=this,r=t.view.coordinateBBox,i={x:r.x+r.width/2,y:r.y+r.height};e.forEach((function(t){var e=t.view.coordinateBBox,r={x:e.bl.x+(e.tr.x-e.bl.x)/2,y:e.tr.y},o={x:i.x,y:i.y+(r.y-i.y)/2},a={x:r.x,y:o.y};n.drawLine([i,o,a,r])}))},e.prototype.getPath=function(t){var e=[];return this.cfg.line.smooth?(e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach((function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e.prototype.drawLine=function(t){var e=this.getPath(t),n=this.cfg.line.style;this.container.addShape("path",{attrs:gn({path:e},n)})},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?he(he({},n),{title:null,label:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.originColIndex&&0!==r.columnIndex?he(he({},n),{title:null,label:null}):n},e}(Xf);function w_(t){var e=me([],ve(t),!1);e.sort((function(t,e){return t-e}));var n=e.length;return 0===n?0:n%2==1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2}function M_(t,e){if(!e)return null;var n,r,i;switch(t){case"start":return 0;case"center":return.5;case"end":return 1;case"median":n=e.isCategory?w_(e.values.map((function(t,e){return e}))):w_(e.values);break;case"mean":n=e.isCategory?(e.values.length-1)/2:(r=e.values,i=De(r,(function(t,e){return t+(isNaN(e)||!Ke(e)?0:e)}),0),0===r.length?0:i/r.length);break;case"min":n=e.isCategory?0:e[t];break;case"max":n=e.isCategory?e.values.length-1:e[t];break;default:n=t}return e.scale(n)}var S_=["regionFilter","shape"],j_=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.foregroundContainer=n.view.getLayer(Dn.FORE).addGroup(),n.backgroundContainer=n.view.getLayer(Dn.BG).addGroup(),n.option=[],n}return ce(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.layout=function(){this.update()},e.prototype.render=function(){},e.prototype.update=function(){var t=this;this.onAfterRender((function(){var e=new Map;Pe(t.option,(function(n){if(xe(S_,n.type)){var r=t.updateOrCreate(n);r&&e.set(t.getCacheKey(n),r)}})),t.cache=t.syncCache(e)}));var e=new Map;Pe(this.option,(function(n){if(!xe(S_,n.type)){var r=t.updateOrCreate(n);r&&e.set(t.getCacheKey(n),r)}})),this.cache=this.syncCache(e)},e.prototype.clear=function(e){void 0===e&&(e=!1),t.prototype.clear.call(this),this.clearComponents(),this.foregroundContainer.clear(),this.backgroundContainer.clear(),e&&(this.option=[])},e.prototype.destroy=function(){this.clear(!0),this.foregroundContainer.remove(!0),this.backgroundContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.clearComponents=function(){this.getComponents().forEach((function(t){t.component.destroy()})),this.cache.clear()},e.prototype.onAfterRender=function(t){var e=!1;this.view.getOptions().animate&&this.view.geometries.forEach((function(n){n.animateOption&&(n.once(Yn.AFTER_DRAW_ANIMATE,(function(){t()})),e=!0)})),e||this.view.getRootView().once(Gn.AFTER_RENDER,(function(){t()}))},e.prototype.createAnnotation=function(t){var e=t.type,n=qc[sn(e)];if(n){var r=this.getAnnotationTheme(e),i=this.getAnnotationCfg(e,t,r);return i?{component:new n(i),layer:this.isTop(i)?Dn.FORE:Dn.BG,direction:Rn.NONE,type:Nn.ANNOTATION,extra:t}:null}},e.prototype.annotation=function(t){this.option.push(t)},e.prototype.arc=function(t){return this.annotation(he({type:"arc"},t)),this},e.prototype.image=function(t){return this.annotation(he({type:"image"},t)),this},e.prototype.line=function(t){return this.annotation(he({type:"line"},t)),this},e.prototype.region=function(t){return this.annotation(he({type:"region"},t)),this},e.prototype.text=function(t){return this.annotation(he({type:"text"},t)),this},e.prototype.dataMarker=function(t){return this.annotation(he({type:"dataMarker"},t)),this},e.prototype.dataRegion=function(t){this.annotation(he({type:"dataRegion"},t))},e.prototype.regionFilter=function(t){this.annotation(he({type:"regionFilter"},t))},e.prototype.shape=function(t){this.annotation(he({type:"shape"},t))},e.prototype.html=function(t){this.annotation(he({type:"html"},t))},e.prototype.parsePosition=function(t){var e,n,r=this.view.getXScale(),i=this.view.getScalesByDim("y"),o=Se(t)?t.call(null,r,i):t,a=0,s=0;if(Ce(o)){var l=ve(o,2),u=l[0],c=l[1];if(Ne(u)&&-1!==u.indexOf("%")&&!isNaN(u.slice(0,-1)))return this.parsePercentPosition(o);a=M_(u,r),s=M_(c,Object.values(i)[0])}else if(!je(o))try{for(var h=ge(Te(o)),f=h.next();!f.done;f=h.next()){var d=f.value,p=o[d];d===r.field&&(a=M_(p,r)),i[d]&&(s=M_(p,i[d]))}}catch(g){e={error:g}}finally{try{f&&!f.done&&(n=h.return)&&n.call(h)}finally{if(e)throw e.error}}return isNaN(a)||isNaN(s)?null:this.view.getCoordinate().convert({x:a,y:s})},e.prototype.getRegionPoints=function(t,e){var n,r=this,i=this.view.getXScale(),o=this.view.getScalesByDim("y"),a=Object.values(o)[0],s=i.field,l=this.view.getData(),u=Ce(t)?t[0]:t[s],c=Ce(e)?e[0]:e[s],h=[];return Pe(l,(function(t,e){if(t[s]===u&&(n=e),e>=n){var i=r.parsePosition([t[s],t[a.field]]);i&&h.push(i)}if(t[s]===c)return!1})),h},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,r=this.view.getCoordinate(),i=r.start,o=r.end,a=Math.min(i.x,o.x),s=Math.min(i.y,o.y);return{x:r.getWidth()*e+a,y:r.getHeight()*n+s}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,r=t.getWidth(),i=t.getHeight(),o={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:o.x,y:o.y,minX:o.x,minY:o.y,maxX:o.x+r,maxY:o.y+i,width:r,height:i}},e.prototype.getAnnotationCfg=function(t,e,n){var r=this,i=this.view.getCoordinate(),o=this.view.getCanvas(),a={};if(je(e))return null;var s=e.start,l=e.end,u=e.position,c=this.parsePosition(s),h=this.parsePosition(l),f=this.parsePosition(u);if(!(!["arc","image","line","region","regionFilter"].includes(t)||c&&h))return null;if(["text","dataMarker","html"].includes(t)&&!f)return null;if("arc"===t){var d=e;d.start,d.end;var p=fe(d,["start","end"]),g=Pf(i,c),v=Pf(i,h);g>v&&(v=2*Math.PI+v),a=he(he({},p),{center:i.getCenter(),radius:Ef(i,c),startAngle:g,endAngle:v})}else if("image"===t){var y=e;y.start,y.end;p=fe(y,["start","end"]);a=he(he({},p),{start:c,end:h,src:e.src})}else if("line"===t){var m=e;m.start,m.end;p=fe(m,["start","end"]);a=he(he({},p),{start:c,end:h,text:Pn(e,"text",null)})}else if("region"===t){var _=e;_.start,_.end;p=fe(_,["start","end"]);a=he(he({},p),{start:c,end:h})}else if("text"===t){var x=this.view.getData(),b=e;b.position;var w=b.content,M=(p=fe(b,["position","content"]),w);Se(w)&&(M=w(x)),a=he(he(he({},f),p),{content:M})}else if("dataMarker"===t){var S=e;S.position;var j=S.point,C=S.line,E=S.text,P=S.autoAdjust,T=S.direction;p=fe(S,["position","point","line","text","autoAdjust","direction"]);a=he(he(he({},p),f),{coordinateBBox:this.getCoordinateBBox(),point:j,line:C,text:E,autoAdjust:P,direction:T})}else if("dataRegion"===t){var k=e,A=k.start,O=k.end,I=k.region,B=(E=k.text,k.lineLength);p=fe(k,["start","end","region","text","lineLength"]);a=he(he({},p),{points:this.getRegionPoints(A,O),region:I,text:E,lineLength:B})}else if("regionFilter"===t){var L=e;L.start,L.end;var F=L.apply,D=L.color,R=(p=fe(L,["start","end","apply","color"]),this.view.geometries),N=[],z=function t(e){e&&(e.isGroup()?e.getChildren().forEach((function(e){return t(e)})):N.push(e))};Pe(R,(function(t){F?xe(F,t.type)&&Pe(t.elements,(function(t){z(t.shape)})):Pe(t.elements,(function(t){z(t.shape)}))})),a=he(he({},p),{color:D,shapes:N,start:c,end:h})}else if("shape"===t){var H=e,G=H.render,Y=fe(H,["render"]);a=he(he({},Y),{render:function(t){if(Se(e.render))return G(t,r.view,{parsePosition:r.parsePosition.bind(r)})}})}else if("html"===t){var V=e,X=V.html;V.position;Y=fe(V,["html","position"]);a=he(he(he({},Y),f),{parent:o.get("el").parentNode,html:function(t){return Se(X)?X(t,r.view):X}})}var q=xn({},n,he(he({},a),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(q.container=this.getComponentContainer(q)),q.animate=this.view.getOptions().animate&&q.animate&&Pn(e,"animate",q.animate),q.animateOption=xn({},Pp,q.animateOption,e.animateOption),q},e.prototype.isTop=function(t){return Pn(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return Pn(this.view.getTheme(),["components","annotation",t],{})},e.prototype.updateOrCreate=function(t){var e=this.cache.get(this.getCacheKey(t));if(e){var n=t.type,r=this.getAnnotationTheme(n),i=this.getAnnotationCfg(n,t,r);i&&Mf(i,["container"]),e.component.update(he(he({},i||{}),{visible:!!i})),xe(S_,t.type)&&e.component.render()}else(e=this.createAnnotation(t))&&(e.component.init(),xe(S_,t.type)&&e.component.render());return e},e.prototype.syncCache=function(t){var e=this,n=new Map(this.cache);return t.forEach((function(t,e){n.set(e,t)})),n.forEach((function(t,r){Oe(e.option,(function(t){return r===e.getCacheKey(t)}))||(t.component.destroy(),n.delete(r))})),n},e.prototype.getCacheKey=function(t){return t},e}(Mp);function C_(t,e){var n=xn({},Pn(t,["components","axis","common"]),Pn(t,["components","axis",e]));return Pn(n,["grid"],{})}function E_(t,e,n,r){var i=[],o=e.getTicks();return t.isPolar&&o.push({value:1,text:"",tickValue:""}),o.reduce((function(e,o,a){var s=o.value;if(r)i.push({points:[t.convert("y"===n?{x:0,y:s}:{x:s,y:0}),t.convert("y"===n?{x:1,y:s}:{x:s,y:1})]});else if(a){var l=(e.value+s)/2;i.push({points:[t.convert("y"===n?{x:0,y:l}:{x:l,y:0}),t.convert("y"===n?{x:1,y:l}:{x:l,y:1})]})}return o}),o[0]),i}function P_(t,e,n,r,i){var o=e.values.length,a=[],s=n.getTicks();return s.reduce((function(e,n){var s=e?e.value:n.value,l=n.value,u=(s+l)/2;return"x"===i?a.push({points:[t.convert({x:r?l:u,y:0}),t.convert({x:r?l:u,y:1})]}):a.push({points:Cn(Array(o+1),(function(e,n){return t.convert({x:n/o,y:r?l:u})}))}),n}),s[0]),a}function T_(t,e){var n=Pn(e,"grid");if(null===n)return!1;var r=Pn(t,"grid");return!(void 0===n&&null===r)}var k_=["container"],A_=he(he({},Pp),{appear:null}),O_=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(Dn.BG).addGroup(),n.gridForeContainer=n.view.getLayer(Dn.FORE).addGroup(),n.axisContainer=n.view.getLayer(Dn.BG).addGroup(),n.axisForeContainer=n.view.getLayer(Dn.FORE).addGroup(),n}return ce(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this,e=this.view.getCoordinate();Pe(this.getComponents(),(function(n){var r,i=n.component,o=n.direction,a=n.type,s=n.extra,l=s.dim,u=s.scale,c=s.alignTick;if(a===Nn.AXIS)e.isPolar?"x"===l?r=e.isTransposed?Ff(e,o):Hf(e):"y"===l&&(r=e.isTransposed?Hf(e):Ff(e,o)):r=Ff(e,o);else if(a===Nn.GRID)if(e.isPolar){r={items:e.isTransposed?"x"===l?P_(e,t.view.getYScales()[0],u,c,l):E_(e,u,l,c):"x"===l?E_(e,u,l,c):P_(e,t.view.getXScale(),u,c,l),center:t.view.getCoordinate().getCenter()}}else r={items:E_(e,u,l,c)};i.update(r)}))},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var e=new Map;this.cache.forEach((function(n,r){t.has(r)?e.set(r,n):n.component.destroy()})),this.cache=e},e.prototype.clear=function(){t.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.updateXAxes=function(t){var e=this.view.getXScale();if(e&&!e.isIdentity){var n=Gf(this.option,e.field);if(!1!==n){var r=Yf(n,Rn.BOTTOM),i=Dn.BG,o="x",a=this.view.getCoordinate(),s=this.getId("axis",e.field),l=this.getId("grid",e.field);if(a.isRect){if(u=this.cache.get(s))Mf(h=this.getLineAxisCfg(e,n,r),k_),u.component.update(h),t.set(s,u);else u=this.createLineAxis(e,n,i,r,o),this.cache.set(s,u),t.set(s,u);if(c=this.cache.get(l))Mf(h=this.getLineGridCfg(e,n,r,o),k_),c.component.update(h),t.set(l,c);else(c=this.createLineGrid(e,n,i,r,o))&&(this.cache.set(l,c),t.set(l,c))}else if(a.isPolar){var u,c;if(u=this.cache.get(s)){Mf(h=a.isTransposed?this.getLineAxisCfg(e,n,Rn.RADIUS):this.getCircleAxisCfg(e,n,r),k_),u.component.update(h),t.set(s,u)}else{if(a.isTransposed){if(fn(n))return;u=this.createLineAxis(e,n,i,Rn.RADIUS,o)}else u=this.createCircleAxis(e,n,i,r,o);this.cache.set(s,u),t.set(s,u)}if(c=this.cache.get(l)){var h;Mf(h=a.isTransposed?this.getCircleGridCfg(e,n,Rn.RADIUS,o):this.getLineGridCfg(e,n,Rn.CIRCLE,o),k_),c.component.update(h),t.set(l,c)}else{if(a.isTransposed){if(fn(n))return;c=this.createCircleGrid(e,n,i,Rn.RADIUS,o)}else c=this.createLineGrid(e,n,i,Rn.CIRCLE,o);c&&(this.cache.set(l,c),t.set(l,c))}}}}},e.prototype.updateYAxes=function(t){var e=this;Pe(this.view.getYScales(),(function(n,r){if(n&&!n.isIdentity){var i=n.field,o=Gf(e.option,i);if(!1!==o){var a=Dn.BG,s="y",l=e.getId("axis",i),u=e.getId("grid",i),c=e.view.getCoordinate();if(c.isRect){var h=Yf(o,0===r?Rn.LEFT:Rn.RIGHT);if(f=e.cache.get(l))Mf(p=e.getLineAxisCfg(n,o,h),k_),f.component.update(p),t.set(l,f);else f=e.createLineAxis(n,o,a,h,s),e.cache.set(l,f),t.set(l,f);if(d=e.cache.get(u))Mf(p=e.getLineGridCfg(n,o,h,s),k_),d.component.update(p),t.set(u,d);else(d=e.createLineGrid(n,o,a,h,s))&&(e.cache.set(u,d),t.set(u,d))}else if(c.isPolar){var f,d;if(f=e.cache.get(l)){Mf(p=c.isTransposed?e.getCircleAxisCfg(n,o,Rn.CIRCLE):e.getLineAxisCfg(n,o,Rn.RADIUS),k_),f.component.update(p),t.set(l,f)}else{if(c.isTransposed){if(fn(o))return;f=e.createCircleAxis(n,o,a,Rn.CIRCLE,s)}else f=e.createLineAxis(n,o,a,Rn.RADIUS,s);e.cache.set(l,f),t.set(l,f)}if(d=e.cache.get(u)){var p;Mf(p=c.isTransposed?e.getLineGridCfg(n,o,Rn.CIRCLE,s):e.getCircleGridCfg(n,o,Rn.RADIUS,s),k_),d.component.update(p),t.set(u,d)}else{if(c.isTransposed){if(fn(o))return;d=e.createLineGrid(n,o,a,Rn.CIRCLE,s)}else d=e.createCircleGrid(n,o,a,Rn.RADIUS,s);d&&(e.cache.set(u,d),t.set(u,d))}}}}}))},e.prototype.createLineAxis=function(t,e,n,r,i){var o={component:new lf(this.getLineAxisCfg(t,e,r)),layer:n,direction:r===Rn.RADIUS?Rn.NONE:r,type:Nn.AXIS,extra:{dim:i,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createLineGrid=function(t,e,n,r,i){var o=this.getLineGridCfg(t,e,r,i);if(o){var a={component:new cf(o),layer:n,direction:Rn.NONE,type:Nn.GRID,extra:{dim:i,scale:t,alignTick:Pn(o,"alignTick",!0)}};return a.component.init(),a}},e.prototype.createCircleAxis=function(t,e,n,r,i){var o={component:new uf(this.getCircleAxisCfg(t,e,r)),layer:n,direction:r,type:Nn.AXIS,extra:{dim:i,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createCircleGrid=function(t,e,n,r,i){var o=this.getCircleGridCfg(t,e,r,i);if(o){var a={component:new hf(o),layer:n,direction:Rn.NONE,type:Nn.GRID,extra:{dim:i,scale:t,alignTick:Pn(o,"alignTick",!0)}};return a.component.init(),a}},e.prototype.getLineAxisCfg=function(t,e,n){var r=Pn(e,["top"])?this.axisForeContainer:this.axisContainer,i=this.view.getCoordinate(),o=Ff(i,n),a=Vf(t,e),s=Nf(this.view.getTheme(),n),l=Pn(e,["title"])?xn({title:{style:{text:a}}},{title:zf(this.view.getTheme(),n,e.title)},e):e,u=xn(he(he({container:r},o),{ticks:t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}})),verticalFactor:i.isPolar?-1*Rf(o,i.getCenter()):Rf(o,i.getCenter()),theme:s}),s,l),c=this.getAnimateCfg(u),h=c.animate,f=c.animateOption;u.animateOption=f,u.animate=h;var d=Df(o),p=Pn(u,"verticalLimitLength",d?1/3:.5);if(p<=1){var g=this.view.getCanvas().get("width"),v=this.view.getCanvas().get("height");u.verticalLimitLength=p*(d?g:v)}return u},e.prototype.getLineGridCfg=function(t,e,n,r){if(T_(Nf(this.view.getTheme(),n),e)){var i=C_(this.view.getTheme(),n),o=xn({container:Pn(e,["top"])?this.gridForeContainer:this.gridContainer},i,Pn(e,"grid"),this.getAnimateCfg(e));return o.items=E_(this.view.getCoordinate(),t,r,Pn(o,"alignTick",!0)),o}},e.prototype.getCircleAxisCfg=function(t,e,n){var r=Pn(e,["top"])?this.axisForeContainer:this.axisContainer,i=this.view.getCoordinate(),o=t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}}));t.isCategory||Math.abs(i.endAngle-i.startAngle)!==2*Math.PI||o.pop();var a=Vf(t,e),s=Nf(this.view.getTheme(),Rn.CIRCLE),l=Pn(e,["title"])?xn({title:{style:{text:a}}},{title:zf(this.view.getTheme(),n,e.title)},e):e,u=xn(he(he({container:r},Hf(this.view.getCoordinate())),{ticks:o,verticalFactor:1,theme:s}),s,l),c=this.getAnimateCfg(u),h=c.animate,f=c.animateOption;return u.animate=h,u.animateOption=f,u},e.prototype.getCircleGridCfg=function(t,e,n,r){if(T_(Nf(this.view.getTheme(),n),e)){var i=C_(this.view.getTheme(),Rn.RADIUS),o=xn({container:Pn(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},i,Pn(e,"grid"),this.getAnimateCfg(e)),a=Pn(o,"alignTick",!0),s="x"===r?this.view.getYScales()[0]:this.view.getXScale();return o.items=P_(this.view.getCoordinate(),s,t,a,r),o}},e.prototype.getId=function(t,e){var n=this.view.getCoordinate();return"".concat(t,"-").concat(e,"-").concat(n.type)},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&Pn(t,"animate"),animateOption:t&&t.animateOption?xn({},A_,t.animateOption):A_}},e}(Mp);function I_(t,e,n){return n===Rn.TOP?[t.minX+t.width/2-e.width/2,t.minY]:n===Rn.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:n===Rn.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:n===Rn.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:n===Rn.TOP_LEFT||n===Rn.LEFT_TOP?[t.tl.x,t.tl.y]:n===Rn.TOP_RIGHT||n===Rn.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:n===Rn.BOTTOM_LEFT||n===Rn.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:n===Rn.BOTTOM_RIGHT||n===Rn.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]}function B_(t,e){return un(t)?!1!==t&&{}:Pn(t,[e],t)}function L_(t){return Pn(t,"position",Rn.BOTTOM)}var F_=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(Dn.FORE).addGroup(),n}return ce(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,Pe(this.components,(function(e){var n=e.component,r=e.direction,i=ug(r),o=n.get("maxWidthRatio"),a=n.get("maxHeightRatio"),s=t.getCategoryLegendSizeCfg(i,o,a),l=n.get("maxWidth"),u=n.get("maxHeight");n.update({maxWidth:Math.min(s.maxWidth,l||0),maxHeight:Math.min(s.maxHeight,u||0)});var c=n.get("padding"),h=n.getLayoutBBox(),f=new jf(h.x,h.y,h.width,h.height).expand(c),d=ve(I_(t.view.viewBBox,f,r),2),p=d[0],g=d[1],v=ve(I_(t.layoutBBox,f,r),2),y=v[0],m=v[1],_=0,x=0;r.startsWith("top")||r.startsWith("bottom")?(_=p,x=m):(_=y,x=g),n.setLocation({x:_+c[3],y:x+c[0]}),t.layoutBBox=t.layoutBBox.cut(f,r)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={};if(Pn(this.option,"custom")){var n="global-custom",r=this.getComponentById(n);if(r){var i=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);Mf(i,["container"]),r.component.update(i),e[n]=!0}else{var o=this.createCustomLegend(void 0,void 0,void 0,this.option);if(o){o.init();var a=Dn.FORE,s=L_(this.option);this.components.push({id:n,component:o,layer:a,direction:s,type:Nn.LEGEND,extra:void 0}),e[n]=!0}}}else this.loopLegends((function(n,r,i){var o=t.getId(i.field),a=t.getComponentById(o);if(a){var s=void 0,l=B_(t.option,i.field);!1!==l&&(Pn(l,"custom")?s=t.getCategoryCfg(n,r,i,l,!0):i.isLinear?s=t.getContinuousCfg(n,r,i,l):i.isCategory&&(s=t.getCategoryCfg(n,r,i,l))),s&&(Mf(s,["container"]),a.direction=L_(l),a.component.update(s),e[o]=!0)}else{var u=t.createFieldLegend(n,r,i);u&&(u.component.init(),t.components.push(u),e[o]=!0)}}));var l=[];Pe(this.getComponents(),(function(t){e[t.id]?l.push(t):t.component.destroy()})),this.components=l},e.prototype.clear=function(){t.prototype.clear.call(this),this.container.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.container.remove(!0)},e.prototype.getGeometries=function(t){var e=this,n=t.geometries;return Pe(t.views,(function(t){n=n.concat(e.getGeometries(t))})),n},e.prototype.loopLegends=function(t){if(this.view.getRootView()===this.view){var e=this.getGeometries(this.view),n={};Pe(e,(function(e){Pe(e.getGroupAttributes(),(function(r){var i=r.getScale(r.type);i&&"identity"!==i.type&&!n[i.field]&&(t(e,r,i),n[i.field]=!0)}))}))}},e.prototype.createFieldLegend=function(t,e,n){var r,i=B_(this.option,n.field),o=Dn.FORE,a=L_(i);if(!1!==i&&(Pn(i,"custom")?r=this.createCustomLegend(t,e,n,i):n.isLinear?r=this.createContinuousLegend(t,e,n,i):n.isCategory&&(r=this.createCategoryLegend(t,e,n,i))),r)return r.set("field",n.field),{id:this.getId(n.field),component:r,layer:o,direction:a,type:Nn.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r,!0);return new ff(i)},e.prototype.createContinuousLegend=function(t,e,n,r){var i=this.getContinuousCfg(t,e,n,Mf(r,["value"]));return new df(i)},e.prototype.createCategoryLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r);return new ff(i)},e.prototype.getContinuousCfg=function(t,e,n,r){var i=n.getTicks(),o=Oe(i,(function(t){return 0===t.value})),a=Oe(i,(function(t){return 1===t.value})),s=i.map((function(t){var r=t.value,i=t.tickValue,o=e.mapping(n.invert(r)).join("");return{value:i,attrValue:o,color:o,scaleValue:r}}));o||s.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),a||s.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),s.sort((function(t,e){return t.value-e.value}));var l={min:Ge(s).value,max:Ye(s).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(l.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(l.colors=s.map((function(t){return t.attrValue})));var u=this.container,c=ug(L_(r)),h=Pn(r,"title");return h&&(h=xn({text:If(n)},h)),l.container=u,l.layout=c,l.title=h,l.animateOption=Pp,this.mergeLegendCfg(l,r,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,r,i){var o=this.container,a=Pn(r,"position",Rn.BOTTOM),s=hg(this.view.getTheme(),a),l=Pn(s,["marker"]),u=Pn(r,"marker"),c=ug(a),h=Pn(s,["pageNavigator"]),f=Pn(r,"pageNavigator"),d=i?function(t,e,n){return n.map((function(n,r){var i=e;Se(i)&&(i=i(n.name,r,xn({},t,n)));var o=Se(n.marker)?n.marker(n.name,r,xn({},t,n)):n.marker,a=xn({},t,i,o);return lg(a),n.marker=a,n}))}(l,u,r.items):cg(this.view,t,e,l,u),p=Pn(r,"title");p&&(p=xn({text:n?If(n):""},p));var g=Pn(r,"maxWidthRatio"),v=Pn(r,"maxHeightRatio"),y=this.getCategoryLegendSizeCfg(c,g,v);y.container=o,y.layout=c,y.items=d,y.title=p,y.animateOption=Pp,y.pageNavigator=xn({},h,f);var m=this.mergeLegendCfg(y,r,a);m.reversed&&m.items.reverse();var _=Pn(m,"maxItemWidth");return _&&_<=1&&(m.maxItemWidth=this.view.viewBBox.width*_),m},e.prototype.mergeLegendCfg=function(t,e,n){var r=n.split("-")[0],i=hg(this.view.getTheme(),r);return xn({},i,t,e)},e.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},e.prototype.getComponentById=function(t){return Oe(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t,e,n){void 0===e&&(e=.25),void 0===n&&(n=.25);var r=this.view.viewBBox,i=r.width,o=r.height;return"vertical"===t?{maxWidth:i*e,maxHeight:o}:{maxWidth:i,maxHeight:o*n}},e}(Mp),D_=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=Ln,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=ve(t,2),r=e[0],i=e[1];n.start=r,n.end=i,n.changeViewData(r,i)},n.container=n.view.getLayer(Dn.FORE).addGroup(),n.onChangeFn=On(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(Gn.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(Gn.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return ce(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(Gn.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(Gn.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),e=t.start,n=t.end;je(this.start)&&(this.start=e,this.end=n);var r=this.view.getOptions().data;this.option&&!Mn(r)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.start,t.end)}),0)),this.slider){var e=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),r=ve(n,4),i=r[0];r[1],r[2];var o=r[3],a=this.slider.component.getLayoutBBox(),s=new jf(a.x,a.y,Math.min(a.width,e),a.height).expand(n),l=this.getMinMaxText(this.start,this.end),u=l.minText,c=l.maxText,h=ve(I_(this.view.viewBBox,s,Rn.BOTTOM),2);h[0];var f=h[1],d=ve(I_(this.view.coordinateBBox,s,Rn.BOTTOM),2),p=d[0];d[1],this.slider.component.update(he(he({},this.getSliderCfg()),{x:p+o,y:f+i,width:this.width,start:this.start,end:this.end,minText:u,maxText:c})),this.view.viewBBox=this.view.viewBBox.cut(s,Rn.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new of(he({container:this.container},t));return e.init(),{component:e,layer:Dn.FORE,direction:Rn.BOTTOM,type:Nn.SLIDER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var e=this.getMinMaxText(this.start,this.end),n=e.minText,r=e.maxText;t=he(he({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:r})}return this.slider.component.update(t),this.slider},e.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},e.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if(Ee(this.option)){var e=he({data:this.getData()},Pn(this.option,"trendCfg",{}));t=xn({},t,this.getThemeOptions(),this.option),t=he(he({},t),{trendCfg:e})}return t.start=Ue(Math.min(je(t.start)?0:t.start,je(t.end)?1:t.end),0,1),t.end=Ue(Math.max(je(t.start)?0:t.start,je(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e=ve(this.view.getYScales(),1)[0],n=this.view.getGroupScales();if(n.length){var r=n[0],i=r.field,o=r.ticks;return t.reduce((function(t,n){return n[i]===o[0]&&t.push(n[e.field]),t}),[])}return t.map((function(t){return t[e.field]||0}))},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Pn(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),i=He(n,r.field);r.isLinear&&(i=i.sort());var o=i,a=Fn(n);if(!r||!a)return{};var s=Fn(o),l=Math.round(t*(s-1)),u=Math.round(e*(s-1)),c=Pn(o,[l]),h=Pn(o,[u]),f=this.getSliderCfg().formatter;return f&&(c=f(c,n[l],l),h=f(h,n[u],u)),{minText:c,maxText:h}},e.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),i=Fn(n);if(r&&i){var o=He(n,r.field),a=this.view.getXScale().isLinear?o.sort((function(t,e){return Number(t)-Number(e)})):o,s=Fn(a),l=Math.round(t*(s-1)),u=Math.round(e*(s-1));this.view.filter(r.field,(function(t,e){var n=a.indexOf(t);return!(n>-1)||wf(n,l,u)})),this.view.render(!0)}},e.prototype.getComponents=function(){return this.slider?[this.slider]:[]},e.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},e}(Mp),R_=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=Ln,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,r=n.getValidScrollbarCfg().animate;n.ratio=Ue(e,0,1);var i=n.view.getOptions().animate;r||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(i)},n.container=n.view.getLayer(Dn.FORE).addGroup(),n.onChangeFn=On(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(Gn.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(Gn.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return ce(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(Gn.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(Gn.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)}))),this.scrollbar){var e=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),r=this.scrollbar.component.getLayoutBBox(),i=new jf(r.x,r.y,Math.min(r.width,e),r.height).expand(n),o=this.getScrollbarComponentCfg(),a=void 0,s=void 0;if(o.isHorizontal){var l=ve(I_(this.view.viewBBox,i,Rn.BOTTOM),2);l[0];var u=l[1],c=ve(I_(this.view.coordinateBBox,i,Rn.BOTTOM),2),h=c[0];c[1],a=h,s=u}else{var f=ve(I_(this.view.viewBBox,i,Rn.RIGHT),2);f[0];u=f[1];var d=ve(I_(this.view.viewBBox,i,Rn.RIGHT),2);h=d[0];d[1],a=h,s=u}a+=n[3],s+=n[0],this.trackLen?this.scrollbar.component.update(he(he({},o),{x:a,y:s,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(he(he({},o),{x:a,y:s})),this.view.viewBBox=this.view.viewBBox.cut(i,o.isHorizontal?Rn.BOTTOM:Rn.RIGHT)}},e.prototype.update=function(){this.render()},e.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},e.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},e.prototype.setValue=function(t){this.onValueChange({ratio:t})},e.prototype.getValue=function(){return this.ratio},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Pn(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=Pn(this.view.getTheme(),["components","scrollbar"]),n=t||{},r=n.thumbHighlightColor,i=fe(n,["thumbHighlightColor"]);return{default:xn({},Pn(e,["default","style"],{}),i),hover:xn({},Pn(e,["hover","style"],{}),{thumbColor:r})}},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),r=n.trackLen,i=n.thumbLen;this.trackLen=r,this.thumbLen=i,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=e},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*Ue(this.ratio,0,1));return[t,Math.min(t+this.step-1,this.cnt-1)]},e.prototype.changeViewData=function(t,e){var n=this,r=ve(t,2),i=r[0],o=r[1],a="vertical"!==this.getValidScrollbarCfg().type,s=He(this.data,this.xScaleCfg.field),l=this.view.getXScale().isLinear?s.sort((function(t,e){return Number(t)-Number(e)})):s,u=a?l:l.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max,tickMethod:t.tickMethod})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=u.indexOf(t);return!(e>-1)||wf(e,i,o)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t="vertical"!==this.getValidScrollbarCfg().type,e=new sf(he(he({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return e.init(),{component:e,layer:Dn.FORE,direction:t?Rn.BOTTOM:Rn.RIGHT,type:Nn.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?he(he({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):he({},t);return this.scrollbar.component.update(e),this.scrollbar},e.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,e=this.getValidScrollbarCfg(),n=e.type,r=e.categorySize,i="vertical"!==n;return Math.floor((i?t.width:t.height)/r)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.getScrollbarData();return Fn(He(e,t.field))},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,r=this.getValidScrollbarCfg(),i=r.type,o=r.padding,a=r.width,s=r.height,l=r.style,u="vertical"!==i,c=ve(o,4),h=c[0],f=c[1],d=c[2],p=c[3],g=u?{x:e.minX+p,y:n.maxY-s-d}:{x:n.maxX-a-f,y:e.minY+h},v=this.getStep(),y=this.getCnt(),m=u?e.width-p-f:e.height-h-d,_=Math.max(m*Ue(v/y,0,1),20);return he(he({},this.getThemeOptions()),{x:g.x,y:g.y,size:u?s:a,isHorizontal:u,trackLen:m,thumbLen:_,thumbOffset:0,theme:this.getScrollbarTheme(l)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return Ee(this.option)&&(t=he(he({},t),this.option)),Ee(this.option)&&this.option.padding||(t.padding=(t.type,[0,0,0,0])),t},e.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),e=this.getValidScrollbarCfg(),n=this.view.getOptions().data||[];return t.isReflect("y")&&"vertical"===e.type&&(n=me([],ve(n),!1).reverse()),n},e}(Mp),N_={fill:"#CCD6EC",opacity:.3};function z_(t,e,n){var r,i,o,a,s,l,u=function(t,e,n){var r,i,o=up(t,e,n);try{for(var a=ge(t.views),s=a.next();!s.done;s=a.next()){var l=s.value;o=o.concat(up(l,e,n))}}catch(u){r={error:u}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}(t,e,n);if(u.length){u=Ie(u);try{for(var c=ge(u),h=c.next();!h.done;h=c.next()){var f=h.value;try{for(var d=(o=void 0,ge(f)),p=d.next();!p.done;p=d.next()){var g=p.value,v=g.mappingData,y=v.x,m=v.y;g.x=Ce(y)?y[y.length-1]:y,g.y=Ce(m)?m[m.length-1]:m}}catch(j){o={error:j}}finally{try{p&&!p.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}}}catch(C){r={error:C}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}if(!1===n.shared&&u.length>1){var _=u[0],x=Math.abs(e.y-_[0].y);try{for(var b=ge(u),w=b.next();!w.done;w=b.next()){var M=w.value,S=Math.abs(e.y-M[0].y);S<=x&&(_=M,x=S)}}catch(E){s={error:E}}finally{try{w&&!w.done&&(l=b.return)&&l.call(b)}finally{if(s)throw s.error}}u=[_]}return ze(Ie(u))}return[]}var H_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.show=function(t){var e=this.context.view,n=this.context.event,r=e.getController("tooltip").getTooltipCfg(),i=z_(e,{x:n.x,y:n.y},r);if(!jn(i,this.items)&&(this.items=i,i.length)){var o=e.getXScale().field,a=i[0].data[o],s=[];if(Pe(e.geometries,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){return t.getData()[o]===a}));s=s.concat(e)}})),s.length){var l=e.getCoordinate(),u=s[0].shape.getCanvasBBox(),c=s[0].shape.getCanvasBBox(),h=u;Pe(s,(function(t){var e=t.shape.getCanvasBBox();l.isTransposed?(e.minY<u.minY&&(u=e),e.maxY>c.maxY&&(c=e)):(e.minX<u.minX&&(u=e),e.maxX>c.maxX&&(c=e)),h.x=Math.min(e.minX,h.minX),h.y=Math.min(e.minY,h.minY),h.width=Math.max(e.maxX,h.maxX)-h.x,h.height=Math.max(e.maxY,h.maxY)-h.y}));var f=e.backgroundGroup,d=e.coordinateBBox,p=void 0;if(l.isRect){var g=e.getXScale(),v=t||{},y=v.appendRatio,m=v.appendWidth;je(m)&&(y=je(y)?g.isLinear?0:.25:y,m=l.isTransposed?y*c.height:y*u.width);var _=void 0,x=void 0,b=void 0,w=void 0;l.isTransposed?(_=d.minX,x=Math.min(c.minY,u.minY)-m,b=d.width,w=h.height+2*m):(_=Math.min(u.minX,c.minX)-m,x=d.minY,b=h.width+2*m,w=d.height),p=[["M",_,x],["L",_+b,x],["L",_+b,x+w],["L",_,x+w],["Z"]]}else{var M=Ge(s),S=Ye(s),j=xf(M.getModel(),l).startAngle,C=xf(S.getModel(),l).endAngle,E=l.getCenter(),P=l.getRadius(),T=l.innerRadius*P;p=mf(E.x,E.y,P,j,C,T)}if(this.regionPath)this.regionPath.attr("path",p),this.regionPath.show();else{var k=Pn(t,"style",N_);this.regionPath=f.addShape({type:"path",name:"active-region",capture:!1,attrs:he(he({},k),{path:p})})}}}},e.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},e.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),t.prototype.destroy.call(this)},e}(Uf),G_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return ce(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view;if(!n.isTooltipLocked()){var r=this.timeStamp,i=+new Date;if(i-r>Pn(t.view.getOptions(),"tooltip.showDelay",16)){var o=this.location,a={x:e.x,y:e.y};o&&jn(o,a)||this.showTooltip(n,a),this.timeStamp=i,this.location=a}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,r=n.clientX,i=n.clientY;e.isCursorEntered({x:r,y:i})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(Uf),Y_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.showTooltip=function(t,e){Pe(wd(t),(function(n){var r=Md(t,n,e);n.showTooltip(r)}))},e.prototype.hideTooltip=function(t){Pe(wd(t),(function(t){t.hideTooltip()}))},e}(G_),V_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return ce(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context.event,e=this.timeStamp,n=+new Date;if(n-e>16){var r=this.location,i={x:t.x,y:t.y};r&&jn(r,i)||this.showTooltip(i),this.timeStamp=n,this.location=i}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context.event.target;if(e&&e.get("tip")){this.tooltip||this.renderTooltip();var n=e.get("tip");this.tooltip.update(he({title:n},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,r={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},i=e.getTheme(),o=Pn(i,["components","tooltip","domStyles"],{}),a=new pf({parent:n.get("el").parentNode,region:r,visible:!1,crosshairs:null,domStyles:he({},xn({},o,(t={},t[Oh]={"max-width":"50%"},t[Ih]={"word-break":"break-all"},t)))});a.init(),a.setCapture(!1),this.tooltip=a},e}(Uf),X_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return ce(e,t),e.prototype.hasState=function(t){return t.hasState(this.stateName)},e.prototype.setElementState=function(t,e){t.setState(this.stateName,e)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},e.prototype.clearViewState=function(t){var e=this;Pe(gd(t,this.stateName),(function(t){e.setElementState(t,!1)}))},e}(Uf);function q_(t){return Pn(t.get("delegateObject"),"item")}var W_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return ce(e,t),e.prototype.isItemIgnore=function(t,e){return!!this.ignoreListItemStates.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByComponent=function(t,e,n){var r=this.context.view,i=t.get("field"),o=pd(r);this.setElementsStateByItem(o,i,e,n)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,n){var r=jd(this.context.view,e),i=vd(t,e);return!je(i)&&n.name===r.getText(i)},e.prototype.setElementsStateByItem=function(t,e,n,r){var i=this;Pe(t,(function(t){i.isMathItem(t,e,n)&&t.setState(i.stateName,r)}))},e.prototype.setStateEnable=function(t){var e=ad(this.context);if(e)ld(this.context)&&this.setStateByElement(e,t);else{var n=sd(this.context);if(ud(n)){var r=n.item,i=n.component;if(r&&i&&!this.isItemIgnore(r,i)){var o=this.context.event.gEvent;if(o&&o.fromShape&&o.toShape&&q_(o.fromShape)===q_(o.toShape))return;this.setStateByComponent(i,r,t)}}}},e.prototype.toggle=function(){var t=ad(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(X_),U_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return ce(e,t),e.prototype.active=function(){this.setState()},e}(W_),Z_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return ce(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color");return n?t.getScaleByField(n.getFields()[0]):null},e.prototype.getLinkPath=function(t,e){var n=this.context.view.getCoordinate().isTransposed,r=t.shape.getCanvasBBox(),i=e.shape.getCanvasBBox();return n?[["M",r.minX,r.minY],["L",i.minX,i.maxY],["L",i.maxX,i.maxY],["L",r.maxX,r.minY],["Z"]]:[["M",r.maxX,r.minY],["L",i.minX,i.minY],["L",i.minX,i.maxY],["L",r.maxX,r.maxY],["Z"]]},e.prototype.addLinkShape=function(t,e,n,r){var i={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:he(he({},xn({},i,Se(r)?r(i,e):r)),{path:this.getLinkPath(e,n)})})},e.prototype.linkByElement=function(t,e){var n=this,r=this.context.view,i=this.getColorScale(r,t);if(i){var o=vd(t,i.field);if(!this.cache[o]){var a=function(t,e,n){return pd(t).filter((function(t){return vd(t,e)===n}))}(r,i.field,o),s=this.linkGroup.addGroup();this.cache[o]=s;var l=a.length;Pe(a,(function(t,r){if(r<l-1){var i=a[r+1];n.addLinkShape(s,t,i,e)}}))}}},e.prototype.removeLink=function(t){var e=this.getColorScale(this.context.view,t);if(e){var n=vd(t,e.field);this.cache[n]&&(this.cache[n].remove(),this.cache[n]=null)}},e.prototype.link=function(t){var e=this.context;this.linkGroup||(this.linkGroup=e.view.foregroundGroup.addGroup({id:"link-by-color-group",capture:!1}));var n=ad(e);n&&this.linkByElement(n,null==t?void 0:t.style)},e.prototype.unlink=function(){var t=ad(this.context);t&&this.removeLink(t)},e.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear(),this.cache={}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},e}(Uf),K_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.endPoint=null,e.isStarted=!1,e.effectSiblings=!1,e.effectByRecord=!1,e}return ce(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},e.prototype.getIntersectElements=function(){var t=null;if(hd(this.context))t=fd(this.context,10);else{var e=this.startPoint,n=this.isStarted?this.getCurrentPoint():this.endPoint;if(!e||!n)return;var r={minX:Math.min(e.x,n.x),minY:Math.min(e.y,n.y),maxX:Math.max(e.x,n.x),maxY:Math.max(e.y,n.y)};t=yd(this.context.view,r)}return t},e.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=pd(this.context.view),n=this.getIntersectElements();n&&n.length?this.effectByRecord?this.setSiblingsStateByRecord(n,t):this.setElementsState(n,t,e):this.clear()}},e.prototype.setSiblingsStateByRecord=function(t,e){var n=this,r=this.context.view,i=wd(r),o=t.map((function(t){return t.getModel().data})),a=r.getXScale().field,s=r.getYScales()[0].field;Pe(i,(function(t){var r=pd(t),i=r.filter((function(t){var e=t.getModel().data;return Sd(o,e,a,s)}));n.setElementsState(i,e,r)}))},e.prototype.setSiblingsState=function(t){var e=this,n=wd(this.context.view);hd(this.context)&&Pe(n,(function(n){var r=pd(n),i=dd(e.context,n,10);i&&i.length?e.setElementsState(i,t,r):e.clearViewState(n)}))},e.prototype.setElementsState=function(t,e,n){var r=this;Pe(n,(function(n){t.includes(n)?r.setElementState(n,e):r.setElementState(n,!1)}))},e.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},e.prototype.clear=function(){var t=this,e=this.context.view;this.effectSiblings?Pe(wd(e),(function(e){t.clearViewState(e)})):this.clearViewState(e)},e}(X_),Q_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return ce(e,t),e.prototype.active=function(){this.setState()},e}(K_),$_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.setStateEnable=function(t){var e=ad(this.context);if(e){if(!ld(this.context))return;t?(this.clear(),this.setElementState(e,!0)):this.hasState(e)&&this.setElementState(e,!1)}},e.prototype.toggle=function(){var t=ad(this.context);if(t){var e=this.hasState(t);e||this.clear(),this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(X_),J_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return ce(e,t),e.prototype.active=function(){this.setState()},e}($_),tx="inactive",ex="active";function nx(t){Pe(pd(t),(function(t){t.hasState(ex)&&t.setState(ex,!1),t.hasState(tx)&&t.setState(tx,!1)}))}function rx(t,e,n){Pe(t,(function(t){e(t)?(t.hasState(tx)&&t.setState(tx,!1),t.setState(ex,n)):(t.hasState(ex)&&t.setState(ex,!1),t.setState(tx,n))}))}var ix,ox=Xn.INACTIVE,ax=Xn.ACTIVE,sx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=ax,e}return ce(e,t),e.prototype.setElementsStateByItem=function(t,e,n,r){var i=this;this.setHighlightBy(t,(function(t){return i.isMathItem(t,e,n)}),r)},e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(ox)&&t.setState(ox,!1),t.setState(ax,!0)):t.hasState(ax)||t.setState(ox,!0)},e.prototype.setHighlightBy=function(t,e,n){var r=this;if(n)Pe(t,(function(t){r.setElementHighlight(t,e)}));else{var i=gd(this.context.view,ax),o=!0;Pe(i,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():Pe(t,(function(t){e(t)&&(t.hasState(ax)&&t.setState(ax,!1),t.setState(ox,!0))}))}},e.prototype.setElementState=function(t,e){var n=pd(this.context.view);this.setHighlightBy(n,(function(e){return t===e}),e)},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){nx(this.context.view)},e}(W_),lx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=t.geometry.getAttribute("color");if(r){var i=n.getScaleByField(r.getFields()[0]),o=vd(t,i.field),a=pd(n),s=a.filter((function(t){return vd(t,i.field)===o}));this.setHighlightBy(a,(function(t){return s.includes(t)}),e)}},e}(sx),ux=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(ox)&&t.setState(ox,!1),t.setState(ax,!0)):(t.setState(ox,!0),t.hasState(ax)&&t.setState(ax,!1))},e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=n.getXScale(),i=vd(t,r.field),o=pd(n),a=o.filter((function(t){return vd(t,r.field)===i}));this.setHighlightBy(o,(function(t){return a.includes(t)}),e)},e.prototype.toggle=function(){var t=ad(this.context);if(t){var e=t.hasState(this.stateName);this.setStateByElement(t,!e)}},e}(sx);!function(t){t.BEFORE_HIGHLIGHT="element-range-highlight:beforehighlight",t.AFTER_HIGHLIGHT="element-range-highlight:afterhighlight",t.BEFORE_CLEAR="element-range-highlight:beforeclear",t.AFTER_CLEAR="element-range-highlight:afterclear"}(ix||(ix={}));var cx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return ce(e,t),e.prototype.clearViewState=function(t){nx(t)},e.prototype.highlight=function(){var t=this.context,e=t.view,n={view:e,event:t.event,highlightElements:this.getIntersectElements()};e.emit(ix.BEFORE_HIGHLIGHT,pp.fromData(e,ix.BEFORE_HIGHLIGHT,n)),this.setState(),e.emit(ix.AFTER_HIGHLIGHT,pp.fromData(e,ix.AFTER_HIGHLIGHT,n))},e.prototype.clear=function(){var e=this.context.view;e.emit(ix.BEFORE_CLEAR,pp.fromData(e,ix.BEFORE_CLEAR,{})),t.prototype.clear.call(this),e.emit(ix.AFTER_CLEAR,pp.fromData(e,ix.AFTER_CLEAR,{}))},e.prototype.setElementsState=function(t,e,n){rx(n,(function(e){return t.indexOf(e)>=0}),e)},e}(K_),hx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return ce(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){rx(pd(this.context.view),(function(e){return t===e}),e)},e.prototype.clear=function(){nx(this.context.view)},e}($_),fx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return ce(e,t),e.prototype.selected=function(){this.setState()},e}(K_),dx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return ce(e,t),e.prototype.selected=function(){this.setState()},e}(W_),px=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return ce(e,t),e.prototype.selected=function(){this.setState()},e}($_),gx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return ce(e,t),e.prototype.getTriggerListInfo=function(){var t=sd(this.context),e=null;return ud(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=_d(this.context.view),n=[];return Pe(e,(function(e){e.isList()&&t.allowSetStateByElement(e)&&n.push(e)})),n},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this;Pe(this.getAllowComponents(),(function(e){e.clearItemsState(t.stateName)}))},e.prototype.allowSetStateByElement=function(t){var e=t.get("field");if(!e)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(-1===this.cfg.componentNames.indexOf(n))return!1}var r=jd(this.context.view,e);return r&&r.isCategory},e.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates;return!n.length||0===n.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByElement=function(t,e,n){var r=t.get("field"),i=jd(this.context.view,r),o=vd(e,r),a=i.getText(o);this.setItemsState(t,a,n)},e.prototype.setStateEnable=function(t){var e=this,n=ad(this.context);if(n){Pe(this.getAllowComponents(),(function(r){e.setStateByElement(r,n,t)}))}else{var r=sd(this.context);if(ud(r)){var i=r.item,o=r.component;this.allowSetStateByElement(o)&&this.allowSetStateByItem(i,o)&&this.setItemState(o,i,t)}}},e.prototype.setItemsState=function(t,e,n){var r=this;Pe(t.getItems(),(function(i){i.name===e&&r.setItemState(t,i,n)}))},e.prototype.setItemState=function(t,e,n){t.setItemState(e,this.stateName,n)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.reset=function(){this.setStateEnable(!1)},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,r=this.hasState(e,n);this.setItemState(e,n,!r)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(Uf),vx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return ce(e,t),e.prototype.active=function(){this.setState()},e}(gx),yx="inactive",mx="active";var _x="inactive",xx="active",bx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=xx,e.ignoreItemStates=["unchecked"],e}return ce(e,t),e.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,(function(t){return t.name===e}),n)},e.prototype.setItemState=function(t,e,n){t.getItems(),this.setHighlightBy(t,(function(t){return t===e}),n)},e.prototype.setHighlightBy=function(t,e,n){var r=t.getItems();if(n)Pe(r,(function(n){e(n)?(t.hasState(n,_x)&&t.setItemState(n,_x,!1),t.setItemState(n,xx,!0)):t.hasState(n,xx)||t.setItemState(n,_x,!0)}));else{var i=t.getItemsByState(xx),o=!0;Pe(i,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():Pe(r,(function(n){e(n)&&(t.hasState(n,xx)&&t.setItemState(n,xx,!1),t.setItemState(n,_x,!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t,e=this.getTriggerListInfo();e?Pe((t=e.list).getItems(),(function(e){t.hasState(e,mx)&&t.setItemState(e,mx,!1),t.hasState(e,yx)&&t.setItemState(e,yx,!1)})):Pe(this.getAllowComponents(),(function(t){t.clearItemsState(xx),t.clearItemsState(_x)}))},e}(gx),wx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return ce(e,t),e.prototype.selected=function(){this.setState()},e}(gx),Mx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return ce(e,t),e.prototype.unchecked=function(){this.setState()},e}(gx),Sx="unchecked",jx="checked",Cx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=jx,e}return ce(e,t),e.prototype.setItemState=function(t,e,n){this.setCheckedBy(t,(function(t){return t===e}),n)},e.prototype.setCheckedBy=function(t,e,n){var r=t.getItems();n&&Pe(r,(function(n){e(n)?(t.hasState(n,Sx)&&t.setItemState(n,Sx,!1),t.setItemState(n,jx,!0)):t.hasState(n,jx)||t.setItemState(n,Sx,!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item;!Ve(e.getItems(),(function(t){return e.hasState(t,Sx)}))||e.hasState(n,Sx)?this.setItemState(e,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){Pe(this.getAllowComponents(),(function(t){t.clearItemsState(jx),t.clearItemsState(Sx)}))},e}(gx),Ex="unchecked",Px=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.toggle=function(){var t,e,n,r,i,o,a,s,l=this.getTriggerListInfo();if(null==l?void 0:l.item){var u=l.list,c=l.item,h=u.getItems(),f=h.filter((function(t){return!u.hasState(t,Ex)})),d=h.filter((function(t){return u.hasState(t,Ex)})),p=f[0];if(h.length===f.length)try{for(var g=ge(h),v=g.next();!v.done;v=g.next()){var y=v.value;u.setItemState(y,Ex,y.id!==c.id)}}catch(S){t={error:S}}finally{try{v&&!v.done&&(e=g.return)&&e.call(g)}finally{if(t)throw t.error}}else if(h.length-d.length==1)if(p.id===c.id)try{for(var m=ge(h),_=m.next();!_.done;_=m.next()){y=_.value;u.setItemState(y,Ex,!1)}}catch(j){n={error:j}}finally{try{_&&!_.done&&(r=m.return)&&r.call(m)}finally{if(n)throw n.error}}else try{for(var x=ge(h),b=x.next();!b.done;b=x.next()){y=b.value;u.setItemState(y,Ex,y.id!==c.id)}}catch(C){i={error:C}}finally{try{b&&!b.done&&(o=x.return)&&o.call(x)}finally{if(i)throw i.error}}else try{for(var w=ge(h),M=w.next();!M.done;M=w.next()){y=M.value;u.setItemState(y,Ex,y.id!==c.id)}}catch(E){a={error:E}}finally{try{M&&!M.done&&(s=w.return)&&s.call(w)}finally{if(a)throw a.error}}}},e}(gx),Tx="showRadio",kx="legend-radio-tip",Ax=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return ce(e,t),e.prototype.show=function(){var t=this.getTriggerListInfo();if(null==t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,Tx,!0)}},e.prototype.hide=function(){var t=this.getTriggerListInfo();if(null==t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,Tx,!1)}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.showTip=function(){var t=this.context.event,e=this.timeStamp,n=+new Date,r=this.context.event.target;if(n-e>16&&"legend-item-radio"===r.get("name")){var i=this.location,o={x:t.x,y:t.y};this.timeStamp=n,this.location=o,i&&jn(i,o)||this.showTooltip(o)}},e.prototype.hideTip=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n=e.event.target;if(n&&n.get("tip")){this.tooltip||this.renderTooltip();var r=e.view.getCanvas().get("el").getBoundingClientRect(),i=r.x,o=r.y;this.tooltip.update(he(he({title:n.get("tip")},t),{x:t.x+i,y:t.y+o})),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=((t={})[Oh]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[Ih]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(kx)&&document.body.removeChild(document.getElementById(kx));var n=new pf({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:e,containerId:kx});n.init(),n.setCapture(!1),this.tooltip=n},e}(gx),Ox=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShape=null,e.points=[],e.starting=!1,e.moving=!1,e.preMovePoint=null,e.shapeType="path",e}return ce(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e="mask:".concat(t),n=this.context.view,r=this.context.event;n.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:r.x,y:r.y})},e.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs();return t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:he({fill:"#C5D4EB",opacity:.3},e)})},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(null==t?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},e.prototype.move=function(){if(this.moving&&this.maskShape){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,r=t.y-e.y;Pe(this.points,(function(t){t.x+=n,t.y+=r})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(t){var e=xn({},this.getMaskAttrs(),t);this.maskShape.attr(e)},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},e.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},e.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},e.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,t.prototype.destroy.call(this)},e}(Uf),Ix=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return ce(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=Ye(this.points),n=0,r=0,i=0;if(t.length){var o=t[0];n=xd(o,e)/2,r=(e.x+o.x)/2,i=(e.y+o.y)/2}return{x:r,y:i,r:n}},e}(Ox),Bx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return ce(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:Ge(t),end:Ye(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end;return{x:Math.min(e.x,n.x),y:Math.min(e.y,n.y),width:Math.abs(n.x-e.x),height:Math.abs(n.y-e.y)}},e}(Ox);function Lx(t){t.x=Ue(t.x,0,1),t.y=Ue(t.y,0,1)}var Fx,Dx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return ce(e,t),e.prototype.getRegion=function(){var t=null,e=null,n=this.points,r=this.dim,i=this.context.view.getCoordinate(),o=i.invert(Ge(n)),a=i.invert(Ye(n));return this.inPlot&&(Lx(o),Lx(a)),"x"===r?(t=i.convert({x:o.x,y:0}),e=i.convert({x:a.x,y:1})):(t=i.convert({x:0,y:o.y}),e=i.convert({x:1,y:a.y})),{start:t,end:e}},e}(Bx),Rx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&(Pe(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e},e.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},e.prototype.addPoint=function(){this.resize()},e}(Ox),Nx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.getMaskPath=function(){return function(t,e){if(t.length<=2)return nd(t,!1);var n=t[0],r=[];Pe(t,(function(t){r.push(t.x),r.push(t.y)}));var i=ed(r,e,null);return i.unshift(["M",n.x,n.y]),i}(this.points,!0)},e}(Rx),zx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.setCursor=function(t){this.context.view.getCanvas().setCursor(t)},e.prototype.default=function(){this.setCursor("default")},e.prototype.pointer=function(){this.setCursor("pointer")},e.prototype.move=function(){this.setCursor("move")},e.prototype.crosshair=function(){this.setCursor("crosshair")},e.prototype.wait=function(){this.setCursor("wait")},e.prototype.help=function(){this.setCursor("help")},e.prototype.text=function(){this.setCursor("text")},e.prototype.eResize=function(){this.setCursor("e-resize")},e.prototype.wResize=function(){this.setCursor("w-resize")},e.prototype.nResize=function(){this.setCursor("n-resize")},e.prototype.sResize=function(){this.setCursor("s-resize")},e.prototype.neResize=function(){this.setCursor("ne-resize")},e.prototype.nwResize=function(){this.setCursor("nw-resize")},e.prototype.seResize=function(){this.setCursor("se-resize")},e.prototype.swResize=function(){this.setCursor("sw-resize")},e.prototype.nsResize=function(){this.setCursor("ns-resize")},e.prototype.ewResize=function(){this.setCursor("ew-resize")},e.prototype.zoomIn=function(){this.setCursor("zoom-in")},e.prototype.zoomOut=function(){this.setCursor("zoom-out")},e}(Uf),Hx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.filterView=function(t,e,n){var r=this;t.getScaleByField(e)&&t.filter(e,n),t.views&&t.views.length&&Pe(t.views,(function(t){r.filterView(t,e,n)}))},e.prototype.filter=function(){var t=sd(this.context);if(t){var e=this.context.view,n=t.component,r=n.get("field");if(ud(t)){if(r){var i=n.getItemsByState("unchecked"),o=jd(e,r),a=i.map((function(t){return t.name}));a.length?this.filterView(e,r,(function(t){var e=o.getText(t);return!a.includes(e)})):this.filterView(e,r,null),e.render(!0)}}else if(cd(t)){var s=ve(n.getValue(),2),l=s[0],u=s[1];this.filterView(e,r,(function(t){return t>=l&&t<=u})),e.render(!0)}}},e}(Uf);function Gx(t,e,n,r){var i=Math.min(n[e],r[e]),o=Math.max(n[e],r[e]),a=ve(t.range,2),s=a[0],l=a[1];if(i<s&&(i=s),o>l&&(o=l),i===l&&o===l)return null;var u=t.invert(i),c=t.invert(o);if(t.isCategory){var h=t.values.indexOf(u),f=t.values.indexOf(c),d=t.values.slice(h,f+1);return function(t){return d.includes(t)}}return function(t){return t>=u&&t<=c}}!function(t){t.FILTER="brush-filter-processing",t.RESET="brush-filter-reset",t.BEFORE_FILTER="brush-filter:beforefilter",t.AFTER_FILTER="brush-filter:afterfilter",t.BEFORE_RESET="brush-filter:beforereset",t.AFTER_RESET="brush-filter:afterreset"}(Fx||(Fx={}));var Yx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.startPoint=null,e.isStarted=!1,e}return ce(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,e;if(hd(this.context)){var n=this.context.event.target.getCanvasBBox();t={x:n.x,y:n.y},e={x:n.maxX,y:n.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(Math.abs(t.x-e.x)<5||Math.abs(t.x-e.y)<5)){var r=this.context,i=r.view,o={view:i,event:r.event,dims:this.dims};i.emit(Fx.BEFORE_FILTER,pp.fromData(i,Fx.BEFORE_FILTER,o));var a=i.getCoordinate(),s=a.invert(e),l=a.invert(t);if(this.hasDim("x")){var u=i.getXScale(),c=Gx(u,"x",s,l);this.filterView(i,u.field,c)}if(this.hasDim("y")){var h=i.getYScales()[0];c=Gx(h,"y",s,l);this.filterView(i,h.field,c)}this.reRender(i,{source:Fx.FILTER}),i.emit(Fx.AFTER_FILTER,pp.fromData(i,Fx.AFTER_FILTER,o))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(Fx.BEFORE_RESET,pp.fromData(t,Fx.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t,{source:Fx.RESET}),t.emit(Fx.AFTER_RESET,pp.fromData(t,Fx.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(Uf),Vx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.filterView=function(t,e,n){Pe(wd(t),(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){Pe(wd(t),(function(t){t.render(!0)}))},e}(Yx),Xx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.filter=function(){var t=sd(this.context),e=this.context.view,n=pd(e);if(hd(this.context)){var r=fd(this.context,10);r&&Pe(n,(function(t){r.includes(t)?t.show():t.hide()}))}else if(t){var i=t.component,o=i.get("field");if(ud(t)){if(o){var a=i.getItemsByState("unchecked"),s=jd(e,o),l=a.map((function(t){return t.name}));Pe(n,(function(t){var e=vd(t,o),n=s.getText(e);l.indexOf(n)>=0?t.hide():t.show()}))}}else if(cd(t)){var u=ve(i.getValue(),2),c=u[0],h=u[1];Pe(n,(function(t){var e=vd(t,o);e>=c&&e<=h?t.show():t.hide()}))}}},e.prototype.clear=function(){Pe(pd(this.context.view),(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(Uf),qx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return ce(e,t),e.prototype.filter=function(){hd(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=fd(this.context,10);if(e){var n=t.getXScale().field,r=t.getYScales()[0].field,i=e.map((function(t){return t.getModel().data}));Pe(wd(t),(function(t){Pe(pd(t),(function(t){var e=t.getModel().data;Sd(i,e,n,r)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this;Pe(wd(this.context.view),(function(e){var n=dd(t.context,e,10),r=pd(e);n&&Pe(r,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){Pe(wd(this.context.view),(function(t){Pe(pd(t),(function(t){t.show()}))}))},e}(Uf),Wx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},e}return ce(e,t),e.prototype.getButtonCfg=function(){return xn(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=e.addShape({type:"text",name:"button-text",attrs:he({text:t.text},t.textStyle)}).getBBox(),r=cp(t.padding),i=e.addShape({type:"rect",name:"button-rect",attrs:he({x:n.x-r[3],y:n.y-r[0],width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},t.style)});i.toBack(),e.on("mouseenter",(function(){i.attr(t.activeStyle)})),e.on("mouseleave",(function(){i.attr(t.style)})),this.buttonGroup=e},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),r=Ci(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(r)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(Uf),Ux=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return ce(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},e.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),e=this.context.view,n=this.context.event;this.dragStart?e.emit("drag",{target:n.target,x:n.x,y:n.y}):xd(t,this.startPoint)>4&&(e.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},e.prototype.end=function(){if(this.dragStart){var t=this.context.view,e=this.context.event;t.emit("dragend",{target:e.target,x:e.x,y:e.y})}this.starting=!1,this.dragStart=!1},e}(Uf),Zx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.isMoving=!1,e.startPoint=null,e.startMatrix=null,e}return ce(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,e=this.context.getCurrentPoint();if(xd(t,e)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var n=this.context.view,r=Ci(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);n.backgroundGroup.setMatrix(r),n.foregroundGroup.setMatrix(r),n.middleGroup.setMatrix(r)}}},e.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},e.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},e}(Uf),Kx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return ce(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},e}(Uf),Qx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return ce(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0,Pe(this.dims,(function(e){var n=t.getScale(e),r=n.min,i=n.max,o=n.values;t.startCache[e]={min:r,max:i,values:o}}))},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,n=this.context.view.getCoordinate(),r=this.context.getCurrentPoint(),i=n.invert(e),o=n.invert(r),a=o.x-i.x,s=o.y-i.y,l=this.context.view;Pe(this.dims,(function(e){t.translateDim(e,{x:-1*a,y:-1*s})})),l.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,e)}},e.prototype.translateLinear=function(t,e,n){var r=this.context.view,i=this.startCache[t],o=i.min,a=i.max,s=a-o,l=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:o,max:a}),r.scale(e.field,{nice:!1,min:o+l,max:a+l})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(Kx),$x=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return ce(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this;Pe(this.dims,(function(n){e.zoomDim(n,t)})),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,e)}},e.prototype.zoomLinear=function(t,e,n){var r=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var i=this.cacheScaleDefs[t],o=i.max-i.min,a=e.min,s=e.max,l=n*o,u=a-l,c=s+l,h=(c-u)/o;c>u&&h<100&&h>.01&&r.scale(e.field,{nice:!1,min:a-l,max:s+l})},e}(Kx);var Jx,tb,eb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.scroll=function(t){var e=this.context,n=e.view,r=e.event;if(n.getOptions().scrollbar){var i=(null==t?void 0:t.wheelDelta)||1,o=n.getController("scrollbar"),a=n.getXScale(),s=n.getOptions().data,l=Fn(He(s,a.field)),u=Fn(a.values),c=o.getValue(),h=Math.floor((l-u)*c)+(function(t){return t.gEvent.originalEvent.deltaY>0}(r)?i:-i),f=Ue(h/(l-u)+i/(l-u)/1e4,0,1);o.setValue(f)}},e}(Uf),nb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),e.prototype.show=function(){var t=this.context,e=sd(t).axis.cfg.title,n=e.description,r=e.text,i=e.descriptionTooltipStyle,o=t.event,a=o.x,s=o.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:r||"",customContent:function(){return'\n <div class="'.concat(Oh,'" style={').concat(i,'}>\n <div class="').concat(Ih,'">\n 字段说明:').concat(n,"\n </div>\n </div>\n ")},x:a,y:s}),this.tooltip.show()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view.canvas,n={start:{x:0,y:0},end:{x:e.get("width"),y:e.get("height")}},r=new pf({parent:e.get("el").parentNode,region:n,visible:!1,containerId:"aixs-description-tooltip",domStyles:he({},xn({},(t={},t[Oh]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[Ih]={"word-break":"break-all","margin-bottom":"3px"},t)))});r.init(),r.setCapture(!1),this.tooltip=r},e}(Uf);function rb(t){return t.isInPlot()}function ib(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}Jx="dark",tb=Nd(Fg),Jd[on(Jx)]=$d(tb),nr("canvas",ry),nr("svg",rm),bp("Polygon",Mm),bp("Interval",mm),bp("Schema",Sm),bp("Path",im),bp("Point",wm),bp("Line",_m),bp("Area",lm),bp("Edge",um),bp("Heatmap",cm),bp("Violin",jm),Dp("base",ig),Dp("interval",Lm),Dp("pie",Rm),Dp("polar",Dm),Rp("overlap",(function(t,e,n,r){var i=new zm;Pe(e,(function(t){for(var e=t.find((function(t){return"text"===t.get("type")})),n=e.attr(),r=n.x,o=n.y,a=!1,s=0;s<=8;s++){var l=Hm(e,r,o,s);if(i.hasGap(l)){i.fillGap(l),a=!0;break}}a||t.remove(!0)})),i.destroy()})),Rp("distribute",(function(t,e,n,r){if(t.length&&e.length){var i=t[0]?t[0].offset:0,o=e[0].get("coordinate"),a=o.getRadius(),s=o.getCenter();if(i>0){var l=2*(a+i)+28,u={start:o.start,end:o.end},c=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?c[0].push(t):c[1].push(t))})),c.forEach((function(t,n){var r=l/14;t.length>r&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(r,t.length-r)),t.sort((function(t,e){return t.y-e.y})),function(t,e,n,r,i,o){var a,s,l,u=!0,c=r.start,h=r.end,f=Math.min(c.y,h.y),d=Math.abs(c.y-h.y),p=0,g=Number.MIN_VALUE,v=e.map((function(t){return t.y>p&&(p=t.y),t.y<g&&(g=t.y),{size:n,targets:[t.y-f]}}));for(g-=f,p-f>d&&(d=p-f);u;)for(v.forEach((function(t){var e=(Math.min.apply(g,t.targets)+Math.max.apply(g,t.targets))/2;t.pos=Math.min(Math.max(g,e-t.size/2),d-t.size)})),u=!1,l=v.length;l--;)if(l>0){var y=v[l-1],m=v[l];y.pos+y.size>m.pos&&(y.size+=m.size,y.targets=y.targets.concat(m.targets),y.pos+y.size>d&&(y.pos=d-y.size),v.splice(l,1),u=!0)}l=0,v.forEach((function(t){var r=f+n/2;t.targets.forEach((function(){e[l].y=t.pos+r,r+=n,l++}))}));var _={};try{for(var x=ge(t),b=x.next();!b.done;b=x.next()){var w=b.value;_[w.get("id")]=w}}catch(M){a={error:M}}finally{try{b&&!b.done&&(s=x.return)&&s.call(x)}finally{if(a)throw a.error}}e.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-i.y),2);if(e<n)t.x=i.x;else{var r=Math.sqrt(e-n);t.x=o?i.x+r:i.x-r}var a=_[t.id];a.attr("x",t.x),a.attr("y",t.y);var s=Oe(a.getChildren(),(function(t){return"text"===t.get("type")}));s&&(s.attr("y",t.y),s.attr("x",t.x))}))}(e,t,14,u,s,n)}))}Pe(t,(function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,r=yf(s.x,s.y,a,n),i=yf(s.x,s.y,a+e/2,n),o=t.x+Pn(t,"offsetX",0),l=t.y+Pn(t,"offsetY",0),u={x:o-4*Math.cos(n),y:l-4*Math.sin(n)};Ee(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M ".concat(r.x),"".concat(r.y," Q").concat(i.x),"".concat(i.y," ").concat(u.x),u.y].join(",")}}))}})),Rp("fixed-overlap",(function(t,e,n,r){var i=new zm;Pe(e,(function(t){(function(t,e,n){void 0===n&&(n=100);var r,i=t.attr(),o=i.x,a=i.y,s=t.getCanvasBBox(),l=Math.sqrt(s.width*s.width+s.height*s.height),u=1,c=0,h=0;if(e.hasGap(s))return e.fillGap(s),!0;for(var f,d,p=!1,g=0,v={};Math.min(Math.abs(c),Math.abs(h))<l&&g<n;)if(f=u+=-1,d=void 0,h=~~(r=[(d=.1*f)*Math.cos(d),d*Math.sin(d)])[1],((c=~~r[0])||h)&&!v["".concat(c,"-").concat(h)]&&(t.attr({x:o+c,y:a+h}),c+h<0&&t.attr("textAlign","right"),g++,e.hasGap(t.getCanvasBBox()))){e.fillGap(t.getCanvasBBox()),p=!0,v["".concat(c,"-").concat(h)]=!0;break}return p})(t.find((function(t){return"text"===t.get("type")})),i)||t.remove(!0)})),i.destroy()})),Rp("hide-overlap",(function(t,e,n,r){return de(this,void 0,void 0,(function(){var n,r,i,o,a,s;return pe(this,(function(l){switch(l.label){case 0:return n=e.map((function(e,n){return he(he({},Jp(e,t[n],Pn(t[n],"background.padding"))),{visible:!0})})),r=JSON.stringify(n),i=function(t){return $m.set(r,t),Pe(t,(function(t,n){var r=t.visible,i=e[n];r?null==i||i.show():null==i||i.hide()})),t},$m.get(r)?(i($m.get(r)),[3,7]):[3,1];case 1:if(!Jm)return[3,6];l.label=2;case 2:return l.trys.push([2,4,,5]),o=JSON.stringify({type:"hide-overlap",items:n}),[4,Jm.post(o,(function(){return i(Qm(n))}))];case 3:return a=l.sent(),i(Array.isArray(a.data)?a.data:[]),[3,5];case 4:return s=l.sent(),console.error(s),i(Qm(n)),[3,5];case 5:return[3,7];case 6:i(Qm(n)),l.label=7;case 7:return[2]}}))}))})),Rp("limit-in-shape",(function(t,e,n,r){Pe(e,(function(t,e){var r=t.getCanvasBBox(),i=n[e].getBBox();(r.minX<i.minX||r.minY<i.minY||r.maxX>i.maxX||r.maxY>i.maxY)&&t.remove(!0)}))})),Rp("limit-in-canvas",(function(t,e,n,r){Pe(e,(function(t){var e=r.minX,n=r.minY,i=r.maxX,o=r.maxY,a=t.getCanvasBBox(),s=a.minX,l=a.minY,u=a.maxX,c=a.maxY,h=a.x,f=a.y,d=a.width,p=a.height,g=h,v=f;(s<e||u<e)&&(g=e),(l<n||c<n)&&(v=n),s>i?g=i-d:u>i&&(g-=u-i),l>o?v=o-p:c>o&&(v-=c-o),g===h&&v===f||Kp(t,g-h,v-f)}))})),Rp("limit-in-plot",(function(t,e,n,r,i){if(!(e.length<=0)){var o=(null==i?void 0:i.direction)||["top","right","bottom","left"],a=(null==i?void 0:i.action)||"translate",s=(null==i?void 0:i.margin)||0,l=e[0].get("coordinate");if(l){var u=function(t,e){void 0===e&&(e=0);var n=t.start,r=t.end,i=t.getWidth(),o=t.getHeight(),a=Math.min(n.x,r.x),s=Math.min(n.y,r.y);return jf.fromRange(a-e,s-e,a+i+e,s+o+e)}(l,s),c=u.minX,h=u.minY,f=u.maxX,d=u.maxY;Pe(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,r=e.minY,i=e.maxX,s=e.maxY,l=e.x,u=e.y,p=e.width,g=e.height,v=l,y=u;if(o.indexOf("left")>=0&&(n<c||i<c)&&(v=c),o.indexOf("top")>=0&&(r<h||s<h)&&(y=h),o.indexOf("right")>=0&&(n>f?v=f-p:i>f&&(v-=i-f)),o.indexOf("bottom")>=0&&(r>d?y=d-g:s>d&&(y-=s-d)),v!==l||y!==u){var m=v-l;if("translate"===a)Kp(t,m,y-u);else if("ellipsis"===a){t.findAll((function(t){return"text"===t.get("type")})).forEach((function(t){var e=An(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),r=function(t,e,n){var r,i=l_("...",n);r=Ne(t)?t:rn(t);var o,a,s=e,l=[];if(l_(t,n)<=e)return t;for(;o=r.substr(0,16),!((a=l_(o,n))+i>s&&a>s);)if(l.push(o),s-=a,!(r=r.substr(16)))return l.join("");for(;o=r.substr(0,1),!((a=l_(o,n))+i>s);)if(l.push(o),s-=a,!(r=r.substr(1)))return l.join("");return"".concat(l.join(""),"...")}(t.attr("text"),n.width-Math.abs(m),e);t.attr("text",r)}))}else t.hide()}}))}}})),Rp("pie-outer",(function(t,e,n,r){var i,o,a=be(t,(function(t){return!je(t)})),s=e[0]&&e[0].get("coordinate");if(s){var l=s.getCenter(),u=s.getRadius(),c={};try{for(var h=ge(e),f=h.next();!f.done;f=h.next()){var d=f.value;c[d.get("id")]=d}}catch(M){i={error:M}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}var p=Pn(a[0],"labelHeight",14),g=Pn(a[0],"offset",0);if(!(g<=0)){var v="right",y=qe(a,(function(t){return t.x<l.x?"left":v})),m=s.start,_=s.end,x=Math.min(2*(u+g+p),s.getHeight()),b=x/2,w={minX:m.x,maxX:_.x,minY:l.y-b,maxY:l.y+b};Pe(y,(function(t,e){var n=Math.floor(x/p);t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Pe(t,(function(t,e){e+1>n&&(c[t.id].set("visible",!1),t.invisible=!0)}))),Nm(t,p,w)})),Pe(y,(function(t,e){Pe(t,(function(t){var n=e===v,r=c[t.id].getChildByIndex(0);if(r){var i=u+g,o=t.y-l.y,a=Math.pow(i,2),h=Math.pow(o,2),f=a-h>0?a-h:0,d=Math.sqrt(f),p=Math.abs(Math.cos(t.angle)*i);t.x=n?l.x+Math.max(d,p):l.x-Math.max(d,p)}r&&(r.attr("y",t.y),r.attr("x",t.x)),function(t,e){var n=e.getCenter(),r=e.getRadius();if(t&&t.labelLine){var i=t.angle,o=t.offset,a=yf(n.x,n.y,r,i),s=t.x+Pn(t,"offsetX",0)*(Math.cos(i)>0?1:-1),l=t.y+Pn(t,"offsetY",0)*(Math.sin(i)>0?1:-1),u={x:s-4*Math.cos(i),y:l-4*Math.sin(i)},c=t.labelLine.smooth,h=[],f=u.x-n.x,d=u.y-n.y,p=Math.atan(d/f);if(f<0&&(p+=Math.PI),!1===c){Ee(t.labelLine)||(t.labelLine={});var g=0;(i<0&&i>-Math.PI/2||i>1.5*Math.PI)&&u.y>a.y&&(g=1),i>=0&&i<Math.PI/2&&u.y>a.y&&(g=1),i>=Math.PI/2&&i<Math.PI&&a.y>u.y&&(g=1),(i<-Math.PI/2||i>=Math.PI&&i<1.5*Math.PI)&&a.y>u.y&&(g=1);var v=o/2>4?4:Math.max(o/2-1,0),y=yf(n.x,n.y,r+v,i),m=yf(n.x,n.y,r+o/2,p);h.push("M ".concat(a.x," ").concat(a.y)),h.push("L ".concat(y.x," ").concat(y.y)),h.push("A ".concat(n.x," ").concat(n.y," 0 ").concat(0," ").concat(g," ").concat(m.x," ").concat(m.y)),h.push("L ".concat(u.x," ").concat(u.y))}else{y=yf(n.x,n.y,r+(o/2>4?4:Math.max(o/2-1,0)),i);var _=a.x<n.x?1:-1;h.push("M ".concat(u.x," ").concat(u.y));var x=(a.y-n.y)/(a.x-n.x),b=(u.y-n.y)/(u.x-n.x);Math.abs(x-b)>Math.pow(Math.E,-16)&&h.push.apply(h,["C",u.x+4*_,u.y,2*y.x-a.x,2*y.y-a.y,a.x,a.y]),h.push("L ".concat(a.x," ").concat(a.y))}t.labelLine.path=h.join(" ")}}(t,s)}))}))}}})),Rp("adjust-color",(function(t,e,n){if(0!==n.length){var r=n[0].get("element").geometry.theme,i=r.labels||{},o=i.fillColorLight,a=i.fillColorDark;n.forEach((function(t,n){var i=e[n].find((function(t){return"text"===t.get("type")})),s=jf.fromObject(t.getBBox()),l=jf.fromObject(i.getCanvasBBox()),u=!s.contains(l),c=function(t){var e=vl.toRGB(t).toUpperCase();if(e_[e])return e_[e];var n=ve(vl.rgb2arr(e),3);return(299*n[0]+587*n[1]+114*n[2])/1e3<128}(t.attr("fill"));u?i.attr(r.overflowLabels.style):c?o&&i.attr("fill",o):a&&i.attr("fill",a)}))}})),Rp("interval-adjust-position",(function(t,e,n){var r;if(0!==n.length){var i=null===(r=n[0])||void 0===r?void 0:r.get("element"),o=null==i?void 0:i.geometry;if(o&&"interval"===o.type)n_(o,e,n)&&n.forEach((function(t,n){var r=e[n];!function(t,e,n){var r=t.coordinate,i=jf.fromObject(n.getBBox()),o=$p(e);r.isTransposed?o.attr({x:i.minX+i.width/2,textAlign:"center"}):o.attr({y:i.minY+i.height/2,textBaseline:"middle"})}(o,r,t)}))}})),Rp("interval-hide-overlap",(function(t,e,n){var r;if(0!==n.length){var i=null===(r=n[0])||void 0===r?void 0:r.get("element"),o=null==i?void 0:i.geometry;if(o&&"interval"===o.type){var a,s=function(t){var e=[],n=Math.max(Math.floor(t.length/500),1);return Pe(t,(function(t,r){r%n==0?e.push(t):t.set("visible",!1)})),e}(e),l=ve(o.getXYFields(),1)[0],u=[],c=[],h=qe(s,(function(t){return t.get("data")[l]})),f=ze(Cn(s,(function(t){return t.get("data")[l]})));s.forEach((function(t){t.set("visible",!0)}));var d=function(t){t&&(t.length&&c.push(t.pop()),c.push.apply(c,me([],ve(t),!1)))};for(Fn(f)>0&&(a=f.shift(),d(h[a])),Fn(f)>0&&(a=f.pop(),d(h[a])),Pe(f.reverse(),(function(t){d(h[t])}));c.length>0;){var p=c.shift();p.get("visible")&&(tg(p,u)?p.set("visible",!1):u.push(p))}}}})),Rp("point-adjust-position",(function(t,e,n,r,i){var o,a;if(0!==n.length){var s=null===(o=n[0])||void 0===o?void 0:o.get("element"),l=null==s?void 0:s.geometry;if(l&&"point"===l.type){var u=ve(l.getXYFields(),2),c=u[0],h=u[1],f=qe(e,(function(t){return t.get("data")[c]})),d=[],p=i&&i.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;Cn(Te(f).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],r=[],i=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,me([],ve(i),!1)),r}(l,f[t]);e.length;){var n=e.shift(),r=$p(n);if(r_(d,n,(function(t,e){return t.get("data")[c]===e.get("data")[c]&&t.get("data")[h]===e.get("data")[h]})))r.set("visible",!1);else{var i=!1;i_(d,n)&&(r.attr("y",r.attr("y")+2*p),i=i_(d,n)),i?r.set("visible",!1):d.push(n)}}}))}}})),Rp("pie-spider",(function(t,e,n,r){var i,o,a=e[0]&&e[0].get("coordinate");if(a){var s=a.getCenter(),l=a.getRadius(),u={};try{for(var c=ge(e),h=c.next();!h.done;h=c.next()){var f=h.value;u[f.get("id")]=f}}catch(M){i={error:M}}finally{try{h&&!h.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}var d=Pn(t[0],"labelHeight",14),p=Math.max(Pn(t[0],"offset",0),4);Pe(t,(function(t){if(t&&Pn(u,[t.id])){var e=t.x>s.x||t.x===s.x&&t.y>s.y,n=je(t.offsetX)?4:t.offsetX,r=yf(s.x,s.y,l+4,t.angle),i=p+n;t.x=s.x+(e?1:-1)*(l+i),t.y=r.y}}));var g=a.start,v=a.end,y="right",m=qe(t,(function(t){return t.x<s.x?"left":y})),_=2*(l+p)+d;Pe(m,(function(t){var e=t.length*d;e>_&&(_=Math.min(e,Math.abs(g.y-v.y)))}));var x={minX:g.x,maxX:v.x,minY:s.y-_/2,maxY:s.y+_/2};Pe(m,(function(t,e){var n=_/d;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Pe(t,(function(t,e){e>n&&(u[t.id].set("visible",!1),t.invisible=!0)}))),Nm(t,d,x)}));var b=x.minY,w=x.maxY;Pe(m,(function(t,e){var n=e===y;Pe(t,(function(t){var e=Pn(u,t&&[t.id]);if(e)if(t.y<b||t.y>w)e.set("visible",!1);else{var r=e.getChildByIndex(0),i=r.getCanvasBBox(),o=n?i.x:i.maxX,s=i.y+i.height/2;Kp(r,t.x-o,t.y-s),t.labelLine&&function(t,e,n){var r,i=e.getCenter(),o=e.getRadius(),a={x:t.x-(n?4:-4),y:t.y},s=yf(i.x,i.y,o+4,t.angle),l={x:a.x,y:a.y},u={x:s.x,y:s.y},c=yf(i.x,i.y,o,t.angle);if(a.y!==s.y){var h=n?4:-4;l.y=a.y,t.angle<0&&t.angle>=-Math.PI/2&&(l.x=Math.max(s.x,a.x-h),a.y<s.y?u.y=l.y:(u.y=s.y,u.x=Math.max(u.x,l.x-h))),t.angle>0&&t.angle<Math.PI/2&&(l.x=Math.max(s.x,a.x-h),a.y>s.y?u.y=l.y:(u.y=s.y,u.x=Math.max(u.x,l.x-h))),t.angle>Math.PI/2&&(l.x=Math.min(s.x,a.x-h),a.y>s.y?u.y=l.y:(u.y=s.y,u.x=Math.min(u.x,l.x-h))),t.angle<-Math.PI/2&&(l.x=Math.min(s.x,a.x-h),a.y<s.y?u.y=l.y:(u.y=s.y,u.x=Math.min(u.x,l.x-h)))}r=["M ".concat(a.x,",").concat(a.y),"L ".concat(l.x,",").concat(l.y),"L ".concat(u.x,",").concat(u.y),"L ".concat(s.x,",").concat(s.y),"L ".concat(c.x,",").concat(c.y)].join(" "),t.labelLine=xn({},t.labelLine,{path:r})}(t,a,n)}}))}))}})),Rp("path-adjust-position",(function(t,e,n,r,i){var o,a;if(0!==n.length){var s=null===(o=n[0])||void 0===o?void 0:o.get("element"),l=null==s?void 0:s.geometry;if(l&&!(["path","line","area"].indexOf(l.type)<0)){var u=ve(l.getXYFields(),2),c=u[0],h=u[1],f=qe(e,(function(t){return t.get("data")[c]})),d=[],p=i&&i.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;Cn(Te(f).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],r=[],i=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,me([],ve(i),!1)),r}(l,f[t]);e.length;){var n=e.shift(),r=$p(n);if(o_(d,n,(function(t,e){return t.get("data")[c]===e.get("data")[c]&&t.get("data")[h]===e.get("data")[h]})))r.set("visible",!1);else{var i=!1;a_(d,n)&&(r.attr("y",r.attr("y")+2*p),i=a_(d,n)),i?r.set("visible",!1):d.push(n)}}}))}}})),Ep("fade-in",(function(t,e,n){var r={fillOpacity:je(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:je(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:je(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(r,e)})),Ep("fade-out",(function(t,e,n){var r=e.easing,i=e.duration,o=e.delay;t.animate({fillOpacity:0,strokeOpacity:0,opacity:0},i,r,(function(){t.remove(!0)}),o)})),Ep("grow-in-x",(function(t,e,n){u_(t,e,n.coordinate,n.minYPoint,"x")})),Ep("grow-in-xy",(function(t,e,n){u_(t,e,n.coordinate,n.minYPoint,"xy")})),Ep("grow-in-y",(function(t,e,n){u_(t,e,n.coordinate,n.minYPoint,"y")})),Ep("scale-in-x",(function(t,e,n){var r=t.getBBox(),i=t.get("origin").mappingData.points,o=i[0].y-i[1].y>0?r.maxX:r.minX,a=(r.minY+r.maxY)/2;t.applyToMatrix([o,a,1]);var s=Ci(t.getMatrix(),[["t",-o,-a],["s",.01,1],["t",o,a]]);t.setMatrix(s),t.animate({matrix:Ci(t.getMatrix(),[["t",-o,-a],["s",100,1],["t",o,a]])},e)})),Ep("scale-in-y",(function(t,e,n){var r=t.getBBox(),i=t.get("origin").mappingData,o=(r.minX+r.maxX)/2,a=i.points,s=a[0].y-a[1].y<=0?r.maxY:r.minY;t.applyToMatrix([o,s,1]);var l=Ci(t.getMatrix(),[["t",-o,-s],["s",1,.01],["t",o,s]]);t.setMatrix(l),t.animate({matrix:Ci(t.getMatrix(),[["t",-o,-s],["s",1,100],["t",o,s]])},e)})),Ep("wave-in",(function(t,e,n){var r=Tf(n.coordinate,20),i=r.type,o=r.startState,a=r.endState,s=t.setClip({type:i,attrs:o});n.toAttrs&&t.attr(n.toAttrs),s.animate(a,he(he({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),s.remove(!0)}}))})),Ep("zoom-in",(function(t,e,n){d_(t,e,"zoomIn")})),Ep("zoom-out",(function(t,e,n){d_(t,e,"zoomOut")})),Ep("position-update",(function(t,e,n){var r=n.toAttrs,i=r.x,o=r.y;delete r.x,delete r.y,t.attr(r),t.animate({x:i,y:o},e)})),Ep("sector-path-update",(function(t,e,n){var r=n.toAttrs,i=n.coordinate,o=r.path||[],a=o.map((function(t){return t[0]}));if(!(o.length<1)){var s=f_(o),l=s.startAngle,u=s.endAngle,c=s.radius,h=s.innerRadius,f=f_(t.attr("path")),d=f.startAngle,p=f.endAngle,g=i.getCenter(),v=l-d,y=u-p;0!==v||0!==y?t.animate((function(t){var e=d+t*v,n=p+t*y;return he(he({},r),{path:jn(a,["M","A","A","Z"])?_f(g.x,g.y,c,e,n):mf(g.x,g.y,c,e,n,h)})}),he(he({},e),{callback:function(){t.attr("path",o)}})):t.attr("path",o)}})),Ep("path-in",(function(t,e,n){var r=t.getTotalLength();t.attr("lineDash",[r]),t.animate((function(t){return{lineDashOffset:(1-t)*r}}),e)})),Wf("rect",x_),Wf("mirror",__),Wf("list",y_),Wf("matrix",m_),Wf("circle",v_),Wf("tree",b_),fp("axis",O_),fp("legend",F_),fp("tooltip",Sp),fp("annotation",j_),fp("slider",D_),fp("scrollbar",R_),Qf("tooltip",G_),Qf("sibling-tooltip",Y_),Qf("ellipsis-text",V_),Qf("element-active",U_),Qf("element-single-active",J_),Qf("element-range-active",Q_),Qf("element-highlight",sx),Qf("element-highlight-by-x",ux),Qf("element-highlight-by-color",lx),Qf("element-single-highlight",hx),Qf("element-range-highlight",cx),Qf("element-sibling-highlight",cx,{effectSiblings:!0,effectByRecord:!0}),Qf("element-selected",dx),Qf("element-single-selected",px),Qf("element-range-selected",fx),Qf("element-link-by-color",Z_),Qf("active-region",H_),Qf("list-active",vx),Qf("list-selected",wx),Qf("list-highlight",bx),Qf("list-unchecked",Mx),Qf("list-checked",Cx),Qf("list-focus",Px),Qf("list-radio",Ax),Qf("legend-item-highlight",bx,{componentNames:["legend"]}),Qf("axis-label-highlight",bx,{componentNames:["axis"]}),Qf("axis-description",nb),Qf("rect-mask",Bx),Qf("x-rect-mask",Dx,{dim:"x"}),Qf("y-rect-mask",Dx,{dim:"y"}),Qf("circle-mask",Ix),Qf("path-mask",Rx),Qf("smooth-path-mask",Nx),Qf("cursor",zx),Qf("data-filter",Hx),Qf("brush",Yx),Qf("brush-x",Yx,{dims:["x"]}),Qf("brush-y",Yx,{dims:["y"]}),Qf("sibling-filter",Vx),Qf("sibling-x-filter",Vx),Qf("sibling-y-filter",Vx),Qf("element-filter",Xx),Qf("element-sibling-filter",qx),Qf("element-sibling-filter-record",qx,{byRecord:!0}),Qf("view-drag",Ux),Qf("view-move",Zx),Qf("scale-translate",Qx),Qf("scale-zoom",$x),Qf("reset-button",Wx,{name:"reset-button",text:"reset"}),Qf("mousewheel-scroll",eb),Dd("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),Dd("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),Dd("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Dd("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Dd("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Dd("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Dd("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),Dd("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),Dd("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),Dd("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),Dd("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),Dd("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),Dd("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:rb,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:rb,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:rb,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),Dd("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),Dd("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:rb,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:rb,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:rb,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),Dd("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:rb,action:"path-mask:start"},{trigger:"mousedown",isEnable:rb,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),Dd("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),Dd("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(t){return!t.isInShape("legend-item-radio")},action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),Dd("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),Dd("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),Dd("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","element-filter:filter"]}]}),Dd("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),Dd("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]}),Dd("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return ib(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!ib(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),Dd("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),Dd("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var ob=i({props:{navigateItem:{type:String},color:{type:String}},setup:function(t,e){var r=Jt(),i=r.airValue,o=r.airStatus,a=s({airStatus:o,achart:null});T(i,(function(t,e){l()})),k((function(){a.achart&&a.achart.destroy()}));var l=function(){a.achart&&(a.achart.destroy(),console.log("allData.achart",a.achart),a.achart=null);var t=i.value||0,e=[{type:"开启",value:t},{type:"关闭",value:100-t}],n=new wp({container:"container",autoFit:!0});n.data(e),n.legend(!1),n.tooltip(!1),n.coordinate("theta",{radius:.9,innerRadius:.8});var r=n.interval().animate({appear:{easing:"easeQuadIn",delay:0,duration:1e3}}).adjust("stack").position("value").color("type",["l(90) 0:#BFA17E 1:#E0D1BB","#3C3F52"]).style({opacity:1,strokeOpacity:0,lineCap:"round"}),o='<div class="airText"><span class="value">'.concat(e[0].value,'</span><span class="unit">%</span></div>');n.annotation().html({position:["50%","50%"],html:o,offsetY:-43}),n.annotation().text({position:["50%","50%"],content:"空调开启率",style:{fontSize:16,fill:"#F8EDDA",fontWeight:400,textAlign:"center"},offsetY:26}),n.render(),a.achart=n,r.elements[0].setState("active",!0)};return u((function(){})),n({},c(a))}}),ab={class:"airSwitch"},sb={class:"airWrap"},lb=function(t){return _("data-v-6f8e2b6b"),t=t(),x(),t}((function(){return g("div",{class:"container",id:"container"},null,-1)})),ub={class:"air-title"};e("c",d(ob,[["render",function(t,e,n,r,i,o){return m(),p("div",ab,[g("div",sb,[lb,g("div",ub,[g("span",null,v(t.airStatus?"空调已开启":"空调已关闭"),1)])])])}],["__scopeId","data-v-6f8e2b6b"]]));var cb=i({props:{screenType:{type:String}},setup:function(t,e){var r=s({}),i=E();return u((function(){A().then((function(t){var e=t.data.data||[],n=[];e.forEach((function(t){var e=t.time||"",r=e.substr(8,2),i=e.substr(10,2);t.time=r+":"+i,t.temp=t&&t.temp?Number(t.temp).toFixed(1):t.temp,t.temp&&n.push(t.temp)}));var r=Math.floor(Math.min.apply(Math,n)),o=Math.ceil(Math.max.apply(Math,n));O((function(){!function(t,e,n){Yp("point","breath-point",{draw:function(e,n){var r=e.data,i={x:e.x,y:e.y},o=n.addGroup();return r.time===t[t.length-1].time&&r.temp===t[t.length-1].temp&&(o.addShape("circle",{attrs:{x:i.x,y:i.y,r:8,fill:"#F2E2CC"}}),o.addShape("circle",{attrs:{x:i.x,y:i.y,r:4,fill:"#ffffff",filter:"blur(2px)",opacity:.5}})),o}}),i.value&&i.value.offsetWidth,i.value&&i.value.offsetHeight;var r=i.value&&new wp({container:"tempChartBox",autoFit:!0,padding:[70,50,46,60]});r.data(t),r.scale("time",{}),r.scale("temp",{type:"linear",minTickInterval:1,min:e,max:n}),r.axis("time",{line:{style:{lineWidth:1,stroke:"rgba(224,194,155,0.2)",lineDash:[3,3]}},label:{style:{fill:"#E0C29B",fontSize:12}},tickLine:null}),r.axis("temp",{tickLine:null,grid:{line:{style:{lineWidth:1,stroke:"rgba(224,194,155,0.2)",lineDash:[3,3]}}},label:{style:{fill:"#E0C29B",fontSize:12}}}),r.legend(!1),r.line().animate({appear:{easing:"easeQuadIn",delay:100,duration:1500}}).position("time*temp").color("#F2E3CD").shape("smooth").tooltip(!1).style({lineWidth:3}),r.area().animate({appear:{easing:"easeQuadIn",delay:100,duration:1500}}).position("time*temp").color("l(90) 0:rgba(237,217,190,0.8) 0.6:rgb(149, 162, 194, 0.01)").tooltip(!1).shape("smooth"),r.point().tooltip(!1).position("time*temp").shape("breath-point");var o=t[t.length-1],a=l().format("YYYY.MM.DD"),s="<div style='line-height:22px;color:#321D0A;background: linear-gradient(105.46deg, #F2E3CD 8.6%, #D9B991 62.71%);padding:16px 17px;border-radius:5px;white-space:nowrap;'>\n <div style='font-size:12px;font-weight:600;'><span style='margin-right:5px;line-height:17px;'>".concat(a,"</span>").concat(o&&o.time,"</div>\n <div style='font-size:16px;font-weight:600;margin-top:4px;'>室内温度:").concat(o&&o.temp&&Number(o.temp).toFixed(1),"℃</div></div>");o&&o.time&&r.annotation().html({position:o,html:s,alignX:"right",alignY:"bottom",offsetX:60,offsetY:-15}),r.annotation().text({position:function(t,e){return["0%","0%"]},content:"温度/℃",style:{fill:"#E0C29B",fontSize:"12"},offsetX:-40,offsetY:-46}),r.render()}(e,r,o)}))})).catch((function(t){}))})),n(n({},c(r)),{},{tempChartRef:i})}}),hb={class:"temChartCont"},fb={class:"subhead-title"},db=[function(t){return _("data-v-a29e2755"),t=t(),x(),t}((function(){return g("span",null,"实时温度",-1)}))],pb={id:"tempChartBox",class:"tempChartBox",ref:"tempChartRef"};e("T",d(cb,[["render",function(t,e,n,r,i,o){return m(),p("div",{class:S(["temChart",["hor"===t.screenType?"horiCompClass":"verCompClass "]])},[g("div",hb,[I(g("div",fb,db,512),[[B,"ver"===t.screenType]]),g("div",pb,null,512)])],2)}],["__scopeId","data-v-a29e2755"]]));var gb=i({props:{screenType:{type:String}},setup:function(t,e){var r=o(),i=s({widthBase:"0%",compareBase:"0%"}),a=L((function(){var t=r.lastAllEnergy,e={energyBase:t.energyBase?t.energyBase.toFixed(1):t.energyBase,energyTotal:t.energyTotal?t.energyTotal.toFixed(1):t.energyTotal,energyCompare:t.energyCompare?(100*t.energyCompare).toFixed(0):t.energyCompare};return i.compareBase=100*(1-t.energyCompare)+"%",i.widthBase="100%",e}));return r.$subscribe((function(t,e){})),u((function(){})),n(n({},c(i)),{},{lastAllComputed:a,projectStore:r})},computed:{}}),vb=function(t){return _("data-v-c2e9d3ad"),t=t(),x(),t},yb=vb((function(){return g("div",{class:"subhead-title"},[g("span",null,"上月总能耗")],-1)})),mb={class:"saveEnergy"},_b={class:"backImage"},xb={class:"value"},bb={class:"energySave"},wb={class:"textDiv"},Mb=vb((function(){return g("span",null,"项目能耗",-1)})),Sb={class:"value"},jb={class:"energyTotal"},Cb={class:"textDiv"},Eb=vb((function(){return g("span",null,"基准能耗",-1)})),Pb={class:"value"};e("b",d(gb,[["render",function(t,e,n,r,i,o){return m(),p("div",{class:S(["lastMonth",["hor"===t.screenType?"horizontalClass ":"verLastClass "]])},[yb,g("div",mb,[g("span",_b,[F("节能"),g("span",xb,v(t.lastAllComputed.energyCompare)+"%",1)])]),g("div",bb,[g("div",wb,[Mb,g("span",Sb,v(t.lastAllComputed.energyTotal)+"kWh",1)]),g("div",{class:"saveBack",style:j({width:t.compareBase})},null,4)]),g("div",jb,[g("div",Cb,[Eb,g("span",Pb,v(t.lastAllComputed.energyBase)+"kWh",1)]),g("div",{class:"totalBack",style:j({width:t.widthBase})},null,4)])],2)}],["__scopeId","data-v-c2e9d3ad"]]));var Tb=i({props:{screenType:{type:String}},setup:function(t,e){var r=E(),i=E(),l=s({videoWidth:0,videoLeft:0,doNum:function(t,e){return t?t.toFixed(e):t}}),h={},f={},d={};function p(t){window.requestAnimationFrame((function(){p(t)})),t.clearRect(0,0,800,300),t.fillStyle="#FFDEB4",t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowColor="#ffffff",t.shadowBlur=10,function(t,e){t.beginPath(),t.arc(h.x,h.y,e,0,2*Math.PI),t.closePath(),t.fill(),t.beginPath(),t.arc(f.x,f.y,e,0,2*Math.PI),t.closePath(),t.fill(),t.beginPath(),t.arc(d.x,d.y,e,0,2*Math.PI),t.closePath(),t.fill()}(t,3),function(t,e,n){h.x>e.x&&h.x<=t.x&&(h.x=h.x-1,h.y=h.y-1*(e.y-t.y)/(e.x-t.x));h.x>n.x&&h.x<=e.x&&(h.x=h.x-1,h.y=h.y-1*(n.y-e.y)/(n.x-e.x));h.x==n.x&&(h=t)}({x:v(173),y:v(173)},{x:v(110),y:v(120)},{x:v(20),y:v(120)}),f=g(f,{x:v(515),y:v(150)},{x:v(590),y:v(150)},{x:v(676),y:v(50)}),d=g(d,{x:v(512),y:v(210)},{x:v(670),y:v(210)},{x:v(756),y:v(250)})}function g(t,e,n,r){return t.x>=e.x&&t.x<n.x&&(t.x=t.x+1,t.y=t.y+1*(n.y-e.y)/(n.x-e.x)),t.x<r.x&&t.x>=n.x&&(t.x=t.x+1,t.y=t.y+1*(r.y-n.y)/(r.x-n.x)),t.x==r.x&&(t=e),t}function v(t){var e=D();return Number((t/192*e).toFixed(0))}u((function(){O((function(){var t=r.value.offsetHeight/692*2116,e=i.value.offsetWidth;l.videoWidth=t,l.videoLeft=(e-t)/2;var n=document.getElementById("co2Canvas");n.setAttribute("width",v(800)+"px"),n.setAttribute("height",v(300)+"px");var o=n.getContext("2d");o.moveTo(v(20),v(120)),o.lineTo(v(110),v(120)),o.lineTo(v(173),v(173)),o.lineWidth=1,o.strokeStyle="rgba(247, 230, 205, 0.4)",o.setLineDash([v(2),v(3)]),o.stroke(),o.beginPath(),o.moveTo(v(676),v(50)),o.lineTo(v(590),v(150)),o.lineTo(v(515),v(150)),o.lineWidth=1,o.strokeStyle="rgba(247, 230, 205, 0.4)",o.setLineDash([v(2),v(3)]),o.stroke(),o.beginPath(),o.moveTo(v(756),v(250)),o.lineTo(v(670),v(210)),o.lineTo(v(512),v(210)),o.lineWidth=1,o.strokeStyle="rgba(247, 230, 205, 0.4)",o.setLineDash([v(2),v(3)]),o.stroke();var a=document.getElementById("circleCanvas1");a.setAttribute("width",v(800)+"px"),a.setAttribute("height",v(300)+"px");var s=a.getContext("2d");h={x:v(173),y:v(173)},f={x:v(515),y:v(150)},d={x:v(512),y:v(210)},p(s)}))}));var y=o(),m=a(y).lastAllEnergy;return y.$subscribe((function(t,e){var n=e.lastAllEnergy||{};l.lastAllEnergyRes={cdmCo2:n.cdmCo2?n.cdmCo2.toFixed(2):n.cdmCo2,cdmTree:n.cdmTree?n.cdmTree.toFixed(0):n.cdmTree,cdmC:n.cdmC?n.cdmC.toFixed(2):n.cdmC,energySaving:n.energySaving?n.energySaving.toFixed(0):n.energySaving}})),u((function(){})),n(n({},c(l)),{},{svideo:r,saveCont:i,lastAllEnergy:m})},computed:{}}),kb="/sgdaping/assets/saveLight.0e63e0e5.png",Ab=function(t){return _("data-v-ba9ae691"),t=t(),x(),t},Ob={class:"lastMonthCont"},Ib=Ab((function(){return g("div",{class:"subhead-title"},[g("span",null,"上月节约能耗")],-1)})),Bb={class:"saveCont",ref:"saveCont"},Lb={class:"saveCenterCont"},Fb={class:"centerOval"},Db=Ab((function(){return g("img",{class:"round1",src:"/sgdaping/assets/round1.3f179f0a.png"},null,-1)})),Rb=Ab((function(){return g("img",{class:"round2",src:"/sgdaping/assets/round2.7a1a2069.png"},null,-1)})),Nb=Ab((function(){return g("img",{class:"round3",src:"/sgdaping/assets/round3.61e0aed3.png"},null,-1)})),zb=Ab((function(){return g("img",{class:"round4",src:"/sgdaping/assets/round4.6fddfd82.png"},null,-1)})),Hb=Ab((function(){return g("img",{class:"round5",src:"/sgdaping/assets/round5.398880f2.png"},null,-1)})),Gb={class:"electWrap"},Yb=Ab((function(){return g("div",null,"节约电",-1)})),Vb={class:"value"},Xb={class:"num"},qb=Ab((function(){return g("canvas",{id:"co2Canvas",class:"co2Canvas"},null,-1)})),Wb=Ab((function(){return g("canvas",{id:"circleCanvas1",class:"circleCanvas1"},null,-1)})),Ub={class:"outOval outOvalCo2"},Zb=Ab((function(){return g("div",{class:"outCircle"},null,-1)})),Kb=Ab((function(){return g("div",{class:"inOval"},null,-1)})),Qb=Ab((function(){return g("img",{class:"saveLight",src:kb},null,-1)})),$b=Ab((function(){return g("img",{class:"saveCo2",src:"/sgdaping/assets/saveCo2.f203e456.png"},null,-1)})),Jb={class:"co2Wrap sco2"},tw={class:"value"},ew={class:"outOval outOvalCarbon"},nw=Ab((function(){return g("div",{class:"outCircle"},null,-1)})),rw=Ab((function(){return g("div",{class:"inOval"},null,-1)})),iw=Ab((function(){return g("img",{class:"saveLight",src:kb},null,-1)})),ow=Ab((function(){return g("img",{class:"saveCo2",src:"/sgdaping/assets/saveCarbon.073b9188.png"},null,-1)})),aw={class:"co2Wrap sco2"},sw={class:"value"},lw={class:"outOval outOvalTree"},uw=Ab((function(){return g("div",{class:"outCircle"},null,-1)})),cw=Ab((function(){return g("div",{class:"inOval"},null,-1)})),hw=Ab((function(){return g("img",{class:"saveLight",src:kb},null,-1)})),fw=Ab((function(){return g("img",{class:"saveCo2",src:"/sgdaping/assets/saveTree.7b54f2da.png"},null,-1)})),dw={class:"co2Wrap sco2"},pw={class:"value"},gw={style:{display:"none"},class:"svideo",autoplay:"",loop:"",muted:"",ref:"svideo"},vw=[Ab((function(){return g("source",{src:"/sgdaping/assets/saveEnergy.bfe3145a.mov"},null,-1)}))];e("d",d(Tb,[["render",function(t,e,n,r,i,o){return m(),p("div",{class:S(["lastMonth",["hor"===t.screenType?"horSaveClass ":"verSaveClass"]])},[g("div",Ob,[Ib,g("div",Bb,[g("div",Lb,[g("div",Fb,[Db,Rb,F(),Nb,zb,Hb,g("div",Gb,[Yb,g("div",Vb,[g("span",Xb,v(t.doNum(t.lastAllEnergy.energySaving,0)),1),F("度 ")])])]),qb,Wb,g("div",Ub,[Zb,Kb,Qb,$b,g("div",Jb,[F(" 减排"),g("span",tw,v(t.doNum(t.lastAllEnergy.cdmCo2,2))+"Kg",1),F("CO₂ ")])]),g("div",ew,[nw,rw,iw,ow,g("div",aw,[F(" 减排"),g("span",sw,v(t.doNum(t.lastAllEnergy.cdmC,2))+"Kg",1),F("碳 ")])]),g("div",lw,[uw,cw,hw,fw,g("div",dw,[F(" 为国家种"),g("span",pw,v(t.doNum(t.lastAllEnergy.cdmTree,0)),1),F("棵树 ")])])]),g("video",gw,vw,512)],512)])],2)}],["__scopeId","data-v-ba9ae691"]]));var yw=i({props:{screenType:{type:String},showPing:{type:Number}},setup:function(t,e){var r=o(),i=s({selectColor:Bt,timeoutsign:null,selIndicator:{},selIndicatorId:"",nowIndicatorIndex:null,allIndicator:[{id:"temp",index:0,code:"Tdb",name:"温度",img:ct,verimg:gt,unit:"℃",fixed:1},{id:"humidity",index:1,code:"RH",name:"湿度",img:ut,verimg:pt,unit:"%",fixed:0},{id:"co2",index:2,code:"CO2",name:"CO₂",img:at,verimg:ht,unit:"ppm",fixed:0},{id:"methanal",index:3,code:"HCHO",name:"甲醛",img:st,verimg:ft,unit:"mg/m³",fixed:2},{id:"pm25",index:4,code:"PM2d5",name:"PM2.5",img:lt,verimg:dt,unit:"ug/m³",fixed:0}],allBuild:[],nowBuildName:"",nowBuildPage:1,allFloor:[],firstPageParams:[],secondPageParams:[],nowPage:1,pageNum:0,showFloors:[],totalAvgValues:null,hqueryBuild:function(){R().then((function(t){var e=(t.data||{}).content||[];if("Pj3301100002"==r.projectId){var n=e.filter((function(t){return"1#楼"==t.localName}));i.allBuild=n}else i.allBuild=e;i.nowBuildPage=1,i.fqueryFs()})).catch((function(t){e.emit("donetowpage")}))},fqueryFs:function(){var t=(i.allBuild[i.nowBuildPage-1]||{}).id;t&&N({criteria:{projectId:r.projectId,buildingId:t},size:14,page:1,orders:[{column:"floorSequenceId",asc:!0}]}).then((function(t){var n=t.data.content||[];if(0==(n=n.filter((function(t){return t.spaceNum>0}))).length)return i.nowBuildPage=i.nowBuildPage+1,i.nowBuildPage>i.allBuild.length?void e.emit("donetowpage"):void i.fqueryFs();i.nowBuildName=i.allBuild[i.nowBuildPage-1].localName,i.allFloor=n;var o,a,s=n.length;s<=7?(o=s,a=0,i.pageNum=1):(o=Math.ceil(s/2),a=Math.floor(s/2),i.pageNum=2);var l=i.floorHandle(o),u=i.floorHandle(a),c=n.slice(0,o),h=n.slice(o);i.firstPageParams=c.map((function(t){var e={};return e.id=t.id,e.projectId=r.projectId,e.spaceNum=l,e})),i.secondPageParams=h.map((function(t){var e={};return e.id=t.id,e.projectId=r.projectId,e.spaceNum=u,e})),i.nowIndicatorIndex=0,i.getTimeFloorParam(3e3)})).catch((function(t){i.nowBuildPage=i.nowBuildPage+1,i.nowBuildPage>i.allBuild.length?e.emit("donetowpage"):i.fqueryFs()}))},toplay:function(){i.getTimeFloorParam(500)},tostop:function(){clearTimeout(i.timeoutsign)},getTimeFloorParam:function(t){var n=1==i.nowPage?i.firstPageParams:i.secondPageParams;i.fqueryParam(n).then((function(){r.stopSign||(i.timeoutsign=setTimeout((function(){if(i.nowIndicatorIndex=i.nowIndicatorIndex+1,5==i.nowIndicatorIndex){if(i.pageNum==i.nowPage)return i.nowPage=1,void(i.nowBuildPage==i.allBuild.length?(e.emit("donetowpage"),clearTimeout(i.timeoutsign)):(i.nowBuildPage=i.nowBuildPage+1,i.fqueryFs()));2==i.pageNum&&1==i.nowPage&&(i.nowPage=2,i.nowIndicatorIndex=0)}i.getTimeFloorParam(3e3)}),t))})).catch((function(){}))},fqueryParam:function(t){var e=l(),n=l().subtract(30,"minutes").format("YYYYMMDDHHmmss"),r=e.format("YYYYMMDDHHmmss"),o=i.nowIndicatorIndex;i.selIndicator=i.allIndicator[o];var a=i.selIndicator.code;return z(r,n,a,t).then((function(t){var e=(t.data.data||{}).floors||[];i.totalAvgValues=t.data.data.avgValues||null,i.totalAvgValues&&(i.totalAvgValues=i.totalAvgValues.toFixed(i.selIndicator.fixed));var n=document.getElementById("floorWrap")&&document.getElementById("floorWrap").offsetHeight;e.forEach((function(t){var r=i.allFloor.filter((function(e){return e.id==t.id}))[0]||{};t.name=r.name,t.localId=r.localId,t.localName=r.localName;var o=(t.dataSpaces||[]).length,a=i.spaceHandle(o);t.spacewidth=100/a.lineNum,t.spaceheight=100/a.floorline,t.floorHeight=n/e.length})),i.showFloors=e,i.selIndicatorId=i.selIndicator.id})).catch((function(t){}))},spaceHandle:function(t){var e=Math.ceil(t/14);return{lineNum:Math.ceil(t/e),floorline:e}},floorHandle:function(t){return 28}});return u((function(){i.nowPage=1,i.hqueryBuild()})),n({},c(i))}}),mw={key:0,class:"leftChange"},_w={class:"allIndicator"},xw={class:"title"},bw={class:"ltextCont"},ww={class:"value"},Mw={class:"name"},Sw={class:"other"},jw=["src"],Cw=["onClick"],Ew={class:"title"},Pw={key:1,class:"topChange"},Tw={class:"allIndicator"},kw=["onClick"],Aw={class:"imageDiv"},Ow=["src"],Iw={class:"textCont"},Bw={class:"value"},Lw={class:"floorWrap",id:"floorWrap"},Fw={class:"floor-num"},Dw={class:"floor-space"};e("H",d(yw,[["render",function(t,e,n,r,i,o){return m(),p("div",{class:S(["floorSpace",["hor"===t.screenType?"horiFloorClass ":"verFloorClass "]])},[I(g("div",{class:"buildName"},v(t.nowBuildName),513),[[B,t.allBuild.length]]),"hor"==t.screenType?(m(),p("div",mw,[g("div",_w,[g("div",{class:"showItem",style:j({top:16*t.selIndicator.index+"%"})},[g("div",xw,v(t.selIndicator.name),1),g("div",bw,[g("div",ww,v(t.totalAvgValues)+v(t.selIndicator.unit),1),g("div",Mw,"平均"+v(t.selIndicator.name),1)]),g("div",Sw,[g("img",{class:"img",src:t.selIndicator.img},null,8,jw)])],4),(m(!0),p(w,null,M(t.allIndicator,(function(e,n){return m(),p("div",{class:S(["eachItem",{select:e.id==t.selIndicator.id}]),onClick:function(e){return t.clickIndicator(n)}},[g("div",Ew,v(e.name),1)],10,Cw)})),256))])])):y("",!0),"ver"==t.screenType?(m(),p("div",Pw,[g("div",Tw,[(m(!0),p(w,null,M(t.allIndicator,(function(e,n){return m(),p("div",{class:S(["eachItem",{select:e.id==t.selIndicator.id}]),onClick:function(e){return t.clickIndicator(n)}},[g("span",null,v(e.name),1)],10,kw)})),256))]),g("div",Aw,[g("img",{src:t.selIndicator.verimg},null,8,Ow)]),g("div",Iw,[F(" 平均"),g("span",null,v(t.selIndicator.name),1),g("span",Bw,v(t.totalAvgValues),1),g("span",null,v(t.selIndicator.unit),1)])])):y("",!0),g("div",Lw,[(m(!0),p(w,null,M(t.showFloors,(function(e,n){return m(),p("div",{class:"floor-item",key:n,style:j({height:e.floorHeight+"px"})},[g("div",Fw,[g("span",null,v(e.localName),1)]),g("div",Dw,[(m(!0),p(w,null,M(e.dataSpaces,(function(n,r){return m(),p("div",{class:"space-box",key:r,style:j({width:e.spacewidth+"%",height:e.spaceheight+"%"})},[g("div",{class:"space-name",style:j({backgroundColor:t.selectColor(n.avgValues,t.selIndicatorId,!0)})},v(n.localName),5)],4)})),128))])],4)})),128))])],2)}],["__scopeId","data-v-b97b7467"]]));var Rw={exports:{}};!function(e,n){var r;window,r=function(){return function(e){var n={};function r(t){if(n[t])return n[t].exports;var i=n[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=n,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,n){if(1&n&&(e=r(e)),8&n)return e;if(4&n&&"object"===t(e)&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)r.d(i,o,function(t){return e[t]}.bind(null,o));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="./src/index.ts")}({"./node_modules/_@antv_hierarchy@0.6.6@@antv/hierarchy/build/hierarchy.js":
- /*!********************************************************************************!*\
- !*** ./node_modules/_@antv_hierarchy@0.6.6@@antv/hierarchy/build/hierarchy.js ***!
- \********************************************************************************/
- /*! no static exports found */function(e,n,r){var i;"undefined"!=typeof self&&self,i=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=31)}([function(t,e,n){var r=n(4);e.a=function(t){return Array.isArray?Array.isArray(t):Object(r.a)(t,"Array")}},function(t,e,n){e.a=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},function(t,e,n){var r=n(0),i=n(13);e.a=function(t,e){if(t)if(Object(r.a)(t))for(var n=0,o=t.length;n<o&&!1!==e(t[n],n);n++);else if(Object(i.a)(t))for(var a in t)if(t.hasOwnProperty(a)&&!1===e(t[a],a))break}},function(t,e,n){var r=n(4);e.a=function(t){return Object(r.a)(t,"Function")}},function(t,e,n){var r={}.toString;e.a=function(t,e){return r.call(t)==="[object "+e+"]"}},function(t,e,n){var r=n(4);e.a=function(t){return Object(r.a)(t,"Number")}},function(t,e,n){e.a=function(t){return null==t}},function(t,e,n){var r=n(33).mix;t.exports={assign:r}},function(t,e,n){var r=n(4);e.a=function(t){return Object(r.a)(t,"String")}},function(t,e,n){var r=n(15),i=n(4);e.a=function(t){if(!Object(r.a)(t)||!Object(i.a)(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}},function(t,e,n){var r=n(6);e.a=function(t){return Object(r.a)(t)?"":t.toString()}},function(t,e,n){var r=n(18),i=function(){function t(t,e){void 0===e&&(e={}),this.options=e,this.rootNode=r(t,e)}return t.prototype.execute=function(){throw new Error("please override this method")},t}();t.exports=i},function(t,e,n){var r=n(1);e.a=function(t,e){return!!Object(r.a)(t)&&t.indexOf(e)>-1}},function(e,n,r){n.a=function(e){var n=t(e);return null!==e&&"object"===n||"function"===n}},function(t,e,n){var r=n(2),i=n(1);e.a=function(t,e){if(!Object(i.a)(t))return t;var n=[];return Object(r.a)(t,(function(t,r){e(t,r)&&n.push(t)})),n}},function(e,n,r){n.a=function(e){return"object"===t(e)&&null!==e}},function(t,e,n){function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}e.a=function(t,e,n,i){return e&&r(t,e),n&&r(t,n),i&&r(t,i),t}},function(t,e,n){var r=n(30),i=["LR","RL","TB","BT","H","V"],o=["LR","RL","H"],a=i[0];t.exports=function(t,e,n){var s=e.direction||a;if(e.isHorizontal=function(t){return o.indexOf(t)>-1}(s),s&&-1===i.indexOf(s))throw new TypeError("Invalid direction: "+s);if(s===i[0])n(t,e);else if(s===i[1])n(t,e),t.right2left();else if(s===i[2])n(t,e);else if(s===i[3])n(t,e),t.bottom2top();else if(s===i[4]||s===i[5]){var l=r(t,e),u=l.left,c=l.right;n(u,e),n(c,e),e.isHorizontal?u.right2left():u.bottom2top(),c.translate(u.x-c.x,u.y-c.y),t.x=u.x,t.y=c.y;var h=t.getBoundingBox();e.isHorizontal?h.top<0&&t.translate(0,-h.top):h.left<0&&t.translate(-h.left,0)}var f=e.fixedRoot;return void 0===f&&(f=!0),f&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),t}},function(t,e,n){var r=n(7),i={getId:function(t){return t.id||t.name},getHGap:function(t){return t.hgap||18},getVGap:function(t){return t.vgap||18},getChildren:function(t){return t.children},getHeight:function(t){return t.height||36},getWidth:function(t){var e=t.label||" ";return t.width||18*e.split("").length}};function o(t,e){var n=this;if(n.vgap=n.hgap=0,t instanceof o)return t;n.data=t;var r=e.getHGap(t),i=e.getVGap(t);return n.width=e.getWidth(t),n.height=e.getHeight(t),n.id=e.getId(t),n.x=n.y=0,n.depth=0,n.children||(n.children=[]),n.addGap(r,i),n}r.assign(o.prototype,{isRoot:function(){return 0===this.depth},isLeaf:function(){return 0===this.children.length},addGap:function(t,e){var n=this;n.hgap+=t,n.vgap+=e,n.width+=2*t,n.height+=2*e},eachNode:function(t){for(var e,n=[this];e=n.shift();)t(e),n=e.children.concat(n)},DFTraverse:function(t){this.eachNode(t)},BFTraverse:function(t){for(var e,n=[this];e=n.shift();)t(e),n=n.concat(e.children)},getBoundingBox:function(){var t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode((function(e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.width=Math.max(t.width,e.x+e.width),t.height=Math.max(t.height,e.y+e.height)})),t},translate:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.eachNode((function(n){n.x+=t,n.y+=e}))},right2left:function(){var t=this,e=t.getBoundingBox();t.eachNode((function(t){t.x=t.x-2*(t.x-e.left)-t.width})),t.translate(e.width,0)},bottom2top:function(){var t=this,e=t.getBoundingBox();t.eachNode((function(t){t.y=t.y-2*(t.y-e.top)-t.height})),t.translate(0,e.height)}}),t.exports=function(t,e,n){void 0===e&&(e={});var a,s=new o(t,e=r.assign({},i,e)),l=[s];if(!n&&!t.collapsed)for(;a=l.shift();)if(!a.data.collapsed){var u=e.getChildren(a.data),c=u?u.length:0;if(a.children=new Array(c),u&&c)for(var h=0;h<c;h++){var f=new o(u[h],e);a.children[h]=f,l.push(f),f.parent=a,f.depth=a.depth+1}}return s}},function(t,e,n){var r=n(6),i=n(20);e.a=function(t,e){var n=Object(i.a)(e),o=n.length;if(Object(r.a)(t))return!o;for(var a=0;a<o;a+=1){var s=n[a];if(e[s]!==t[s]||!(s in t))return!1}return!0}},function(t,e,n){var r=n(2),i=n(3),o=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return Object(r.a)(t,(function(n,r){Object(i.a)(t)&&"prototype"===r||e.push(r)})),e};e.a=o},function(t,e,n){var r=n(1),i=Array.prototype.splice;e.a=function(t,e){if(!Object(r.a)(t))return[];for(var n=t?e.length:0,o=n-1;n--;){var a=void 0,s=e[n];n!==o&&s===a||(a=s,i.call(t,s,1))}return t}},function(t,e,n){var r=n(12),i=n(2);e.a=function(t){var e=[];return Object(i.a)(t,(function(t){Object(r.a)(e,t)||e.push(t)})),e}},function(t,e,n){var r=n(0),i=n(3),o=n(24);e.a=function(t,e){if(!e)return{0:t};if(!Object(i.a)(e)){var n=Object(r.a)(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return Object(o.a)(t,e)}},function(t,e,n){var r=n(2),i=n(0),o=n(3),a=Object.prototype.hasOwnProperty;e.a=function(t,e){if(!e||!Object(i.a)(t))return{};var n,s={},l=Object(o.a)(e)?e:function(t){return t[e]};return Object(r.a)(t,(function(t){n=l(t),a.call(s,n)?s[n].push(t):s[n]=[t]})),s}},function(t,e,n){e.a=function(t,e){return t.hasOwnProperty(e)}},function(t,e,n){var r=n(2),i=n(3),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return Object(r.a)(t,(function(n,r){Object(i.a)(t)&&"prototype"===r||e.push(n)})),e};e.a=o},function(t,e,n){var r={}.toString;e.a=function(t){return r.call(t).replace(/^\[object /,"").replace(/]$/,"")}},function(t,e,n){var r=Object.prototype;e.a=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e,n){var r=n(15),i=n(1),o=n(8);e.a=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(Object(o.a)(e)||Object(o.a)(n))return!1;if(Object(i.a)(e)||Object(i.a)(n)){if(e.length!==n.length)return!1;for(var a=!0,s=0;s<e.length&&(a=t(e[s],n[s]));s++);return a}if(Object(r.a)(e)||Object(r.a)(n)){var l=Object.keys(e),u=Object.keys(n);if(l.length!==u.length)return!1;for(a=!0,s=0;s<l.length&&(a=t(e[l[s]],n[l[s]]));s++);return a}return!1}},function(t,e,n){var r=n(18);t.exports=function(t,e){for(var n=r(t.data,e,!0),i=r(t.data,e,!0),o=t.children.length,a=Math.round(o/2),s=e.getSide||function(t,e){return e<a?"right":"left"},l=0;l<o;l++){var u=t.children[l];"right"===s(u,l)?i.children.push(u):n.children.push(u)}return n.eachNode((function(t){t.isRoot()||(t.side="left")})),i.eachNode((function(t){t.isRoot()||(t.side="right")})),{left:n,right:i}}},function(t,e,n){var r={compactBox:n(32),dendrogram:n(114),indented:n(116),mindmap:n(118)};t.exports=r},function(t,e,n){var r=n(11),i=n(113),o=n(17),a=n(7),s=function(t){var e,n;function r(){return t.apply(this,arguments)||this}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.prototype.execute=function(){return o(this.rootNode,this.options,i)},r}(r),l={};t.exports=function(t,e){return e=a.assign({},l,e),new s(t,e).execute()}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(12);n.d(e,"contains",(function(){return r.a})),n.d(e,"includes",(function(){return r.a}));var i=n(34);n.d(e,"difference",(function(){return i.a}));var o=n(35);n.d(e,"find",(function(){return o.a}));var a=n(36);n.d(e,"findIndex",(function(){return a.a}));var s=n(37);n.d(e,"firstValue",(function(){return s.a}));var l=n(38);n.d(e,"flatten",(function(){return l.a}));var u=n(39);n.d(e,"flattenDeep",(function(){return u.a}));var c=n(40);n.d(e,"getRange",(function(){return c.a}));var h=n(41);n.d(e,"pull",(function(){return h.a}));var f=n(21);n.d(e,"pullAt",(function(){return f.a}));var d=n(42);n.d(e,"reduce",(function(){return d.a}));var p=n(43);n.d(e,"remove",(function(){return p.a}));var g=n(44);n.d(e,"sortBy",(function(){return g.a}));var v=n(45);n.d(e,"union",(function(){return v.a}));var y=n(22);n.d(e,"uniq",(function(){return y.a}));var m=n(46);n.d(e,"valuesOfKey",(function(){return m.a}));var _=n(47);n.d(e,"head",(function(){return _.a}));var x=n(48);n.d(e,"last",(function(){return x.a}));var b=n(49);n.d(e,"startsWith",(function(){return b.a}));var w=n(50);n.d(e,"endsWith",(function(){return w.a}));var M=n(14);n.d(e,"filter",(function(){return M.a}));var S=n(51);n.d(e,"every",(function(){return S.a}));var j=n(52);n.d(e,"some",(function(){return j.a}));var C=n(53);n.d(e,"group",(function(){return C.a}));var E=n(24);n.d(e,"groupBy",(function(){return E.a}));var P=n(23);n.d(e,"groupToMap",(function(){return P.a}));var T=n(54);n.d(e,"getWrapBehavior",(function(){return T.a}));var k=n(55);n.d(e,"wrapBehavior",(function(){return k.a}));var A=n(56);n.d(e,"number2color",(function(){return A.a}));var O=n(57);n.d(e,"parseRadius",(function(){return O.a}));var I=n(58);n.d(e,"clamp",(function(){return I.a}));var B=n(59);n.d(e,"fixedBase",(function(){return B.a}));var L=n(60);n.d(e,"isDecimal",(function(){return L.a}));var F=n(61);n.d(e,"isEven",(function(){return F.a}));var D=n(62);n.d(e,"isInteger",(function(){return D.a}));var R=n(63);n.d(e,"isNegative",(function(){return R.a}));var N=n(64);n.d(e,"isNumberEqual",(function(){return N.a}));var z=n(65);n.d(e,"isOdd",(function(){return z.a}));var H=n(66);n.d(e,"isPositive",(function(){return H.a}));var G=n(67);n.d(e,"maxBy",(function(){return G.a}));var Y=n(68);n.d(e,"minBy",(function(){return Y.a}));var V=n(69);n.d(e,"mod",(function(){return V.a}));var X=n(70);n.d(e,"toDegree",(function(){return X.a}));var q=n(71);n.d(e,"toInteger",(function(){return q.a}));var W=n(72);n.d(e,"toRadian",(function(){return W.a}));var U=n(73);n.d(e,"forIn",(function(){return U.a}));var Z=n(25);n.d(e,"has",(function(){return Z.a}));var K=n(74);n.d(e,"hasKey",(function(){return K.a}));var Q=n(75);n.d(e,"hasValue",(function(){return Q.a}));var $=n(20);n.d(e,"keys",(function(){return $.a}));var J=n(19);n.d(e,"isMatch",(function(){return J.a}));var tt=n(26);n.d(e,"values",(function(){return tt.a}));var et=n(76);n.d(e,"lowerCase",(function(){return et.a}));var nt=n(77);n.d(e,"lowerFirst",(function(){return nt.a}));var rt=n(78);n.d(e,"substitute",(function(){return rt.a}));var it=n(79);n.d(e,"upperCase",(function(){return it.a}));var ot=n(80);n.d(e,"upperFirst",(function(){return ot.a}));var at=n(27);n.d(e,"getType",(function(){return at.a}));var st=n(81);n.d(e,"isArguments",(function(){return st.a}));var lt=n(0);n.d(e,"isArray",(function(){return lt.a}));var ut=n(1);n.d(e,"isArrayLike",(function(){return ut.a}));var ct=n(82);n.d(e,"isBoolean",(function(){return ct.a}));var ht=n(83);n.d(e,"isDate",(function(){return ht.a}));var ft=n(84);n.d(e,"isError",(function(){return ft.a}));var dt=n(3);n.d(e,"isFunction",(function(){return dt.a}));var pt=n(85);n.d(e,"isFinite",(function(){return pt.a}));var gt=n(6);n.d(e,"isNil",(function(){return gt.a}));var vt=n(86);n.d(e,"isNull",(function(){return vt.a}));var yt=n(5);n.d(e,"isNumber",(function(){return yt.a}));var mt=n(13);n.d(e,"isObject",(function(){return mt.a}));var _t=n(15);n.d(e,"isObjectLike",(function(){return _t.a}));var xt=n(9);n.d(e,"isPlainObject",(function(){return xt.a}));var bt=n(28);n.d(e,"isPrototype",(function(){return bt.a}));var wt=n(87);n.d(e,"isRegExp",(function(){return wt.a}));var Mt=n(8);n.d(e,"isString",(function(){return Mt.a}));var St=n(4);n.d(e,"isType",(function(){return St.a}));var jt=n(88);n.d(e,"isUndefined",(function(){return jt.a}));var Ct=n(89);n.d(e,"isElement",(function(){return Ct.a}));var Et=n(90);n.d(e,"requestAnimationFrame",(function(){return Et.a}));var Pt=n(91);n.d(e,"clearAnimationFrame",(function(){return Pt.a}));var Tt=n(92);n.d(e,"augment",(function(){return Tt.a}));var kt=n(93);n.d(e,"clone",(function(){return kt.a}));var At=n(94);n.d(e,"debounce",(function(){return At.a}));var Ot=n(95);n.d(e,"memoize",(function(){return Ot.a}));var It=n(96);n.d(e,"deepMix",(function(){return It.a}));var Bt=n(2);n.d(e,"each",(function(){return Bt.a}));var Lt=n(97);n.d(e,"extend",(function(){return Lt.a}));var Ft=n(98);n.d(e,"indexOf",(function(){return Ft.a}));var Dt=n(99);n.d(e,"isEmpty",(function(){return Dt.a}));var Rt=n(29);n.d(e,"isEqual",(function(){return Rt.a}));var Nt=n(100);n.d(e,"isEqualWith",(function(){return Nt.a}));var zt=n(101);n.d(e,"map",(function(){return zt.a}));var Ht=n(102);n.d(e,"mapValues",(function(){return Ht.a}));var Gt=n(16);n.d(e,"mix",(function(){return Gt.a})),n.d(e,"assign",(function(){return Gt.a}));var Yt=n(103);n.d(e,"get",(function(){return Yt.a}));var Vt=n(104);n.d(e,"set",(function(){return Vt.a}));var Xt=n(105);n.d(e,"pick",(function(){return Xt.a}));var qt=n(106);n.d(e,"throttle",(function(){return qt.a}));var Wt=n(107);n.d(e,"toArray",(function(){return Wt.a}));var Ut=n(10);n.d(e,"toString",(function(){return Ut.a}));var Zt=n(108);n.d(e,"uniqueId",(function(){return Zt.a}));var Kt=n(109);n.d(e,"noop",(function(){return Kt.a}));var Qt=n(110);n.d(e,"identity",(function(){return Qt.a}));var $t=n(111);n.d(e,"size",(function(){return $t.a}));var Jt=n(112);n.d(e,"Cache",(function(){return Jt.a}))},function(t,e,n){var r=n(14),i=n(12);e.a=function(t,e){return void 0===e&&(e=[]),Object(r.a)(t,(function(t){return!Object(i.a)(e,t)}))}},function(t,e,n){var r=n(3),i=n(19),o=n(0),a=n(9);e.a=function(t,e){if(!Object(o.a)(t))return null;var n;if(Object(r.a)(e)&&(n=e),Object(a.a)(e)&&(n=function(t){return Object(i.a)(t,e)}),n)for(var s=0;s<t.length;s+=1)if(n(t[s]))return t[s];return null}},function(t,e,n){e.a=function(t,e,n){void 0===n&&(n=0);for(var r=n;r<t.length;r++)if(e(t[r],r))return r;return-1}},function(t,e,n){var r=n(6),i=n(0);e.a=function(t,e){for(var n=null,o=0;o<t.length;o++){var a=t[o][e];if(!Object(r.a)(a)){n=Object(i.a)(a)?a[0]:a;break}}return n}},function(t,e,n){var r=n(0);e.a=function(t){if(!Object(r.a)(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e}},function(t,e,n){var r=n(0);e.a=function t(e,n){if(void 0===n&&(n=[]),Object(r.a)(e))for(var i=0;i<e.length;i+=1)t(e[i],n);else n.push(e);return n}},function(t,e,n){var r=n(0),i=n(14);e.a=function(t){if(!(t=Object(i.a)(t,(function(t){return!isNaN(t)}))).length)return{min:0,max:0};if(Object(r.a)(t[0])){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);t=e}var o=Math.max.apply(null,t);return{min:Math.min.apply(null,t),max:o}}},function(t,e,n){var r=Array.prototype,i=r.splice,o=r.indexOf;e.a=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++)for(var a=e[r],s=-1;(s=o.call(t,a))>-1;)i.call(t,s,1);return t}},function(t,e,n){var r=n(2),i=n(0),o=n(9);e.a=function(t,e,n){if(!Object(i.a)(t)&&!Object(o.a)(t))return t;var a=n;return Object(r.a)(t,(function(t,n){a=e(a,t,n)})),a}},function(t,e,n){var r=n(1),i=n(21);e.a=function(t,e){var n=[];if(!Object(r.a)(t))return n;for(var o=-1,a=[],s=t.length;++o<s;){var l=t[o];e(l,o,t)&&(n.push(l),a.push(o))}return Object(i.a)(t,a),n}},function(t,e,n){var r=n(0),i=n(8),o=n(3);e.a=function(t,e){var n;if(Object(o.a)(e))n=function(t,n){return e(t)-e(n)};else{var a=[];Object(i.a)(e)?a.push(e):Object(r.a)(e)&&(a=e),n=function(t,e){for(var n=0;n<a.length;n+=1){var r=a[n];if(t[r]>e[r])return 1;if(t[r]<e[r])return-1}return 0}}return t.sort(n),t}},function(t,e,n){var r=n(22);e.a=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Object(r.a)([].concat.apply([],t))}},function(t,e,n){var r=n(2),i=n(0),o=n(6);e.a=function(t,e){var n=[],a={};return t.forEach((function(t){var s=t[e];Object(o.a)(s)||(Object(i.a)(s)||(s=[s]),Object(r.a)(s,(function(t){a[t]||(n.push(t),a[t]=!0)})))})),n}},function(t,e,n){e.a=function(t){if(Object(r.a)(t))return t[0]};var r=n(1)},function(t,e,n){e.a=function(t){if(Object(r.a)(t))return t[t.length-1]};var r=n(1)},function(t,e,n){var r=n(0),i=n(8);e.a=function(t,e){return!(!Object(r.a)(t)&&!Object(i.a)(t))&&t[0]===e}},function(t,e,n){var r=n(0),i=n(8);e.a=function(t,e){return!(!Object(r.a)(t)&&!Object(i.a)(t))&&t[t.length-1]===e}},function(t,e,n){e.a=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0}},function(t,e,n){e.a=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1}},function(t,e,n){var r=n(23);e.a=function(t,e){if(!e)return[t];var n=Object(r.a)(t,e),i=[];for(var o in n)i.push(n[o]);return i}},function(t,e,n){e.a=function(t,e){return t["_wrap_"+e]}},function(t,e,n){e.a=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}},function(t,e,n){var r={};e.a=function(t){var e=r[t];if(!e){for(var n=t.toString(16),i=n.length;i<6;i++)n="0"+n;e="#"+n,r[t]=e}return e}},function(t,e,n){var r=n(0);e.a=function(t){var e=0,n=0,i=0,o=0;return Object(r.a)(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,{r1:e,r2:n,r3:i,r4:o}}},function(t,e,n){e.a=function(t,e,n){return t<e?e:t>n?n:t}},function(t,e,n){e.a=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}},function(t,e,n){var r=n(5);e.a=function(t){return Object(r.a)(t)&&t%1!=0}},function(t,e,n){var r=n(5);e.a=function(t){return Object(r.a)(t)&&t%2==0}},function(t,e,n){var r=n(5),i=Number.isInteger?Number.isInteger:function(t){return Object(r.a)(t)&&t%1==0};e.a=i},function(t,e,n){var r=n(5);e.a=function(t){return Object(r.a)(t)&&t<0}},function(t,e,n){e.a=function(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}},function(t,e,n){var r=n(5);e.a=function(t){return Object(r.a)(t)&&t%2!=0}},function(t,e,n){var r=n(5);e.a=function(t){return Object(r.a)(t)&&t>0}},function(t,e,n){var r=n(2),i=n(0),o=n(3);e.a=function(t,e){if(Object(i.a)(t)){var n,a,s=t[0];return n=Object(o.a)(e)?e(t[0]):t[0][e],Object(r.a)(t,(function(t){(a=Object(o.a)(e)?e(t):t[e])>n&&(s=t,n=a)})),s}}},function(t,e,n){var r=n(2),i=n(0),o=n(3);e.a=function(t,e){if(Object(i.a)(t)){var n,a,s=t[0];return n=Object(o.a)(e)?e(t[0]):t[0][e],Object(r.a)(t,(function(t){(a=Object(o.a)(e)?e(t):t[e])<n&&(s=t,n=a)})),s}}},function(t,e,n){e.a=function(t,e){return(t%e+e)%e}},function(t,e,n){var r=180/Math.PI;e.a=function(t){return r*t}},function(t,e,n){e.a=parseInt},function(t,e,n){var r=Math.PI/180;e.a=function(t){return r*t}},function(t,e,n){var r=n(2);e.a=r.a},function(t,e,n){var r=n(25);e.a=r.a},function(t,e,n){var r=n(12),i=n(26);e.a=function(t,e){return Object(r.a)(Object(i.a)(t),e)}},function(t,e,n){var r=n(10);e.a=function(t){return Object(r.a)(t).toLowerCase()}},function(t,e,n){var r=n(10);e.a=function(t){var e=Object(r.a)(t);return e.charAt(0).toLowerCase()+e.substring(1)}},function(t,e,n){e.a=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}},function(t,e,n){var r=n(10);e.a=function(t){return Object(r.a)(t).toUpperCase()}},function(t,e,n){var r=n(10);e.a=function(t){var e=Object(r.a)(t);return e.charAt(0).toUpperCase()+e.substring(1)}},function(t,e,n){var r=n(4);e.a=function(t){return Object(r.a)(t,"Arguments")}},function(t,e,n){var r=n(4);e.a=function(t){return Object(r.a)(t,"Boolean")}},function(t,e,n){var r=n(4);e.a=function(t){return Object(r.a)(t,"Date")}},function(t,e,n){var r=n(4);e.a=function(t){return Object(r.a)(t,"Error")}},function(t,e,n){var r=n(5);e.a=function(t){return Object(r.a)(t)&&isFinite(t)}},function(t,e,n){e.a=function(t){return null===t}},function(t,e,n){var r=n(4);e.a=function(t){return Object(r.a)(t,"RegExp")}},function(t,e,n){e.a=function(t){return void 0===t}},function(t,e,n){e.a=function(t){return t instanceof Element||t instanceof HTMLDocument}},function(t,e,n){e.a=function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}},function(t,e,n){e.a=function(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}},function(t,e,n){var r=n(16),i=n(3);e.a=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],o=1;o<t.length;o++){var a=t[o];Object(i.a)(a)&&(a=a.prototype),Object(r.a)(n.prototype,a)}}},function(e,n,r){var i=r(0);n.a=function e(n){if("object"!==t(n)||null===n)return n;var r;if(Object(i.a)(n)){r=[];for(var o=0,a=n.length;o<a;o++)"object"===t(n[o])&&null!=n[o]?r[o]=e(n[o]):r[o]=n[o]}else for(var s in r={},n)"object"===t(n[s])&&null!=n[s]?r[s]=e(n[s]):r[s]=n[s];return r}},function(t,e,n){e.a=function(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,e),s&&t.apply(i,o)}}},function(t,e,n){var r=n(3);e.a=function(t,e){if(!Object(r.a)(t))throw new TypeError("Expected a function");var n=function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,r);return a.set(o,s),s};return n.cache=new Map,n}},function(t,e,n){var r=n(0),i=n(9);function o(t,e,n,a){for(var s in n=n||0,a=a||5,e)if(e.hasOwnProperty(s)){var l=e[s];null!==l&&Object(i.a)(l)?(Object(i.a)(t[s])||(t[s]={}),n<a?o(t[s],l,n+1,a):t[s]=e[s]):Object(r.a)(l)?(t[s]=[],t[s]=t[s].concat(l)):void 0!==l&&(t[s]=l)}}e.a=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)o(t,e[r]);return t}},function(t,e,n){var r=n(16),i=n(3);e.a=function(t,e,n,o){Object(i.a)(e)||(n=e,e=t,t=function(){});var a=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},s=a(e.prototype,t);return t.prototype=Object(r.a)(s,t.prototype),t.superclass=a(e.prototype,e),Object(r.a)(s,n),Object(r.a)(t,o),t}},function(t,e,n){var r=n(1);e.a=function(t,e){if(!Object(r.a)(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,o=0;o<t.length;o++)if(t[o]===e){i=o;break}return i}},function(t,e,n){var r=n(6),i=n(1),o=n(27),a=n(28),s=Object.prototype.hasOwnProperty;e.a=function(t){if(Object(r.a)(t))return!0;if(Object(i.a)(t))return!t.length;var e=Object(o.a)(t);if("Map"===e||"Set"===e)return!t.size;if(Object(a.a)(t))return!Object.keys(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}},function(t,e,n){var r=n(3),i=n(29);e.a=function(t,e,n){return Object(r.a)(n)?!!n(t,e):Object(i.a)(t,e)}},function(t,e,n){var r=n(2),i=n(1);e.a=function(t,e){if(!Object(i.a)(t))return t;var n=[];return Object(r.a)(t,(function(t,r){n.push(e(t,r))})),n}},function(t,e,n){var r=n(6),i=n(13),o=function(t){return t};e.a=function(t,e){void 0===e&&(e=o);var n={};return Object(i.a)(t)&&!Object(r.a)(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n}},function(t,e,n){var r=n(8);e.a=function(t,e,n){for(var i=0,o=Object(r.a)(e)?e.split("."):e;t&&i<o.length;)t=t[o[i++]];return void 0===t||i<o.length?n:t}},function(t,e,n){var r=n(13),i=n(8),o=n(5);e.a=function(t,e,n){var a=t,s=Object(i.a)(e)?e.split("."):e;return s.forEach((function(t,e){e<s.length-1?(Object(r.a)(a[t])||(a[t]=Object(o.a)(s[e+1])?[]:{}),a=a[t]):a[t]=n})),t}},function(t,e,n){var r=n(2),i=n(9),o=Object.prototype.hasOwnProperty;e.a=function(t,e){if(null===t||!Object(i.a)(t))return{};var n={};return Object(r.a)(e,(function(e){o.call(t,e)&&(n[e]=t[e])})),n}},function(t,e,n){e.a=function(t,e,n){var r,i,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},u=function(){var u=Date.now();s||!1!==n.leading||(s=u);var c=e-(u-s);return i=this,o=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),s=u,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,c)),a};return u.cancel=function(){clearTimeout(r),s=0,r=i=o=null},u}},function(t,e,n){var r=n(1);e.a=function(t){return Object(r.a)(t)?Array.prototype.slice.call(t):[]}},function(t,e,n){var r={};e.a=function(t){return r[t=t||"g"]?r[t]+=1:r[t]=1,t+r[t]}},function(t,e,n){e.a=function(){}},function(t,e,n){e.a=function(t){return t}},function(t,e,n){e.a=function(t){return Object(r.a)(t)?0:Object(i.a)(t)?t.length:Object.keys(t).length};var r=n(6),i=n(1)},function(t,e,n){var r=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();e.a=r},function(t,e){function n(t,e,n,r){void 0===r&&(r=[]);var i=this;i.w=t||0,i.h=e||0,i.y=n||0,i.x=0,i.c=r||[],i.cs=r.length,i.prelim=0,i.mod=0,i.shift=0,i.change=0,i.tl=null,i.tr=null,i.el=null,i.er=null,i.msel=0,i.mser=0}function r(t,e,n){n?t.y+=e:t.x+=e,t.children.forEach((function(t){r(t,e,n)}))}function i(t,e){var n=e?t.y:t.x;return t.children.forEach((function(t){n=Math.min(i(t,e),n)})),n}function o(t,e){r(t,-i(t,e),e)}function a(t,e,n){n?e.y=t.x:e.x=t.x,t.c.forEach((function(t,r){a(t,e.children[r],n)}))}function s(t,e,n){void 0===n&&(n=0),e?(t.x=n,n+=t.width):(t.y=n,n+=t.height),t.children.forEach((function(t){s(t,e,n)}))}n.fromNode=function(t,e){if(!t)return null;var r=[];return t.children.forEach((function(t){r.push(n.fromNode(t,e))})),e?new n(t.height,t.width,t.x,r):new n(t.width,t.height,t.y,r)},t.exports=function(t,e){void 0===e&&(e={});var r=e.isHorizontal;function i(t){0===t.cs?(t.el=t,t.er=t,t.msel=t.mser=0):(t.el=t.c[0].el,t.msel=t.c[0].msel,t.er=t.c[t.cs-1].er,t.mser=t.c[t.cs-1].mser)}function l(t,e,n){for(var r=t.c[e-1],i=r.mod,o=t.c[e],a=o.mod;null!==r&&null!==o;){f(r)>n.low&&(n=n.nxt);var s=i+r.prelim+r.w-(a+o.prelim);s>0&&(a+=s,u(t,e,n.index,s));var l=f(r),d=f(o);l<=d&&null!==(r=h(r))&&(i+=r.mod),l>=d&&null!==(o=c(o))&&(a+=o.mod)}!r&&o?function(t,e,n,r){var i=t.c[0].el;i.tl=n;var o=r-n.mod-t.c[0].msel;i.mod+=o,i.prelim-=o,t.c[0].el=t.c[e].el,t.c[0].msel=t.c[e].msel}(t,e,o,a):r&&!o&&function(t,e,n,r){var i=t.c[e].er;i.tr=n;var o=r-n.mod-t.c[e].mser;i.mod+=o,i.prelim-=o,t.c[e].er=t.c[e-1].er,t.c[e].mser=t.c[e-1].mser}(t,e,r,i)}function u(t,e,n,r){t.c[e].mod+=r,t.c[e].msel+=r,t.c[e].mser+=r,function(t,e,n,r){if(n!==e-1){var i=e-n;t.c[n+1].shift+=r/i,t.c[e].shift-=r/i,t.c[e].change-=r-r/i}}(t,e,n,r)}function c(t){return 0===t.cs?t.tl:t.c[0]}function h(t){return 0===t.cs?t.tr:t.c[t.cs-1]}function f(t){return t.y+t.h}function d(t,e,n){for(;null!==n&&t>=n.low;)n=n.nxt;return{low:t,index:e,nxt:n}}s(t,r);var p=n.fromNode(t,r);return function t(e){if(0!==e.cs){t(e.c[0]);for(var n=d(f(e.c[0].el),0,null),r=1;r<e.cs;++r){t(e.c[r]);var o=f(e.c[r].er);l(e,r,n),n=d(o,r,n)}!function(t){t.prelim=(t.c[0].prelim+t.c[0].mod+t.c[t.cs-1].mod+t.c[t.cs-1].prelim+t.c[t.cs-1].w)/2-t.w/2}(e),i(e)}else i(e)}(p),function t(e,n){n+=e.mod,e.x=e.prelim+n,function(t){for(var e=0,n=0,r=0;r<t.cs;r++)n+=(e+=t.c[r].shift)+t.c[r].change,t.c[r].mod+=n}(e);for(var r=0;r<e.cs;r++)t(e.c[r],n)}(p,0),a(p,t,r),o(t,r),t}},function(t,e,n){var r=n(11),i=n(115),o=n(17),a=n(7),s=function(t){var e,n;function r(){return t.apply(this,arguments)||this}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.prototype.execute=function(){var t=this;return t.rootNode.width=0,o(t.rootNode,t.options,i)},r}(r),l={};t.exports=function(t,e){return e=a.assign({},l,e),new s(t,e).execute()}},function(t,e,n){var r=n(7);function i(t,e){void 0===e&&(e=[]);var n=this;n.x=n.y=0,n.leftChild=n.rightChild=null,n.height=0,n.children=e}var o={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};function a(t,e,n){n?(e.x=t.x,e.y=t.y):(e.x=t.y,e.y=t.x),t.children.forEach((function(t,r){a(t,e.children[r],n)}))}t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},o,e);var n,s=0,l=function t(e){if(!e)return null;e.width=0,e.depth&&e.depth>s&&(s=e.depth);var n=e.children,r=n.length,o=new i(e.height,[]);return n.forEach((function(e,n){var i=t(e);o.children.push(i),0===n&&(o.leftChild=i),n===r-1&&(o.rightChild=i)})),o.originNode=e,o.isLeaf=e.isLeaf(),o}(t);return function t(e){if(e.isLeaf||0===e.children.length)e.drawingDepth=s;else{var n=e.children.map((function(e){return t(e)})),r=Math.min.apply(null,n);e.drawingDepth=r-1}return e.drawingDepth}(l),function t(r){r.x=r.drawingDepth*e.rankSep,r.isLeaf?(r.y=0,n&&(r.y=n.y+n.height+e.nodeSep,r.originNode.parent!==n.originNode.parent&&(r.y+=e.subTreeSep)),n=r):(r.children.forEach((function(e){t(e)})),r.y=(r.leftChild.y+r.rightChild.y)/2)}(l),a(l,t,e.isHorizontal),t}},function(t,e,n){var r=n(11),i=n(117),o=n(30),a=n(7),s=["LR","RL","H"],l=s[0],u=function(t){var e,n;function r(){return t.apply(this,arguments)||this}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.prototype.execute=function(){var t=this.options,e=this.rootNode;t.isHorizontal=!0;var n=t.indent,r=void 0===n?20:n,a=t.dropCap,u=void 0===a||a,c=t.direction||l;if(c&&-1===s.indexOf(c))throw new TypeError("Invalid direction: "+c);if(c===s[0])i(e,r,u);else if(c===s[1])i(e,r,u),e.right2left();else if(c===s[2]){var h=o(e,t),f=h.left,d=h.right;i(f,r,u),f.right2left(),i(d,r,u);var p=f.getBoundingBox();d.translate(p.width,0),e.x=d.x-e.width/2}return e},r}(r),c={};t.exports=function(t,e){return e=a.assign({},c,e),new u(t,e).execute()}},function(t,e){t.exports=function(t,e,n){var r=null;t.eachNode((function(t){!function(t,e,n,r){if(!r)try{if(t.id===t.parent.children[0].id)return t.x+=n*t.depth,void(t.y=e?e.y:0)}catch(i){}t.x+=n*t.depth,t.y=e?e.y+e.height:0}(t,r,e,n),r=t}))}},function(t,e,n){var r=n(11),i=n(119),o=n(17),a=n(7),s=function(t){var e,n;function r(){return t.apply(this,arguments)||this}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.prototype.execute=function(){return o(this.rootNode,this.options,i)},r}(r),l={};t.exports=function(t,e){return e=a.assign({},l,e),new s(t,e).execute()}},function(t,e,n){var r=n(7);function i(t,e){var n=0;return t.children.length?t.children.forEach((function(t){n+=i(t,e)})):n=t.height,t._subTreeSep=e.getSubTreeSep(t.data),t.totalHeight=Math.max(t.height,n)+2*t._subTreeSep,t.totalHeight}function o(t){var e=t.children,n=e.length;if(n){e.forEach((function(t){o(t)}));var r=e[0],i=e[n-1],a=i.y-r.y+i.height,s=0;if(e.forEach((function(t){s+=t.totalHeight})),a>t.height)t.y=r.y+a/2-t.height/2;else if(1!==e.length||t.height>s){var l=t.y+(t.height-a)/2-r.y;e.forEach((function(t){t.translate(0,l)}))}else t.y=(r.y+r.height/2+i.y+i.height/2)/2-t.height/2}}var a={getSubTreeSep:function(){return 0}};t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},a,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse((function(t){t.x=t.parent.x+t.parent.width})),t.parent=null,i(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode((function(t){var e=t.children,n=e.length;if(n){var r=e[0];if(r.startY=t.startY+t._subTreeSep,1===n)r.y=t.y+t.height/2-r.height/2;else{r.y=r.startY+r.totalHeight/2-r.height/2;for(var i=1;i<n;i++){var o=e[i];o.startY=e[i-1].startY+e[i-1].totalHeight,o.y=o.startY+o.totalHeight/2-o.height/2}}}})),o(t)}}])},e.exports=i()},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/augment.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/augment.js ***!
- \*******************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./mix */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/mix.js"),i=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-function.js");e.default=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],o=1;o<t.length;o++){var a=t[o];i.default(a)&&(a=a.prototype),r.default(n.prototype,a)}}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/cache.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/cache.js ***!
- \*****************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();e.default=r},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/clamp.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/clamp.js ***!
- \*****************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){return t<e?e:t>n?n:t}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/clear-animation-frame.js":
- /*!*********************************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/clear-animation-frame.js ***!
- \*********************************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/clone.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/clone.js ***!
- \*****************************************************************/
- /*! no static exports found */function(e,n,r){Object.defineProperty(n,"__esModule",{value:!0});var i=r(/*! ./is-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js");n.default=function e(n){if("object"!==t(n)||null===n)return n;var r;if(i.default(n)){r=[];for(var o=0,a=n.length;o<a;o++)"object"===t(n[o])&&null!=n[o]?r[o]=e(n[o]):r[o]=n[o]}else for(var s in r={},n)"object"===t(n[s])&&null!=n[s]?r[s]=e(n[s]):r[s]=n[s];return r}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/contains.js":
- /*!********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/contains.js ***!
- \********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array-like.js");e.default=function(t,e){return!!r.default(t)&&t.indexOf(e)>-1}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/debounce.js":
- /*!********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/debounce.js ***!
- \********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,e),s&&t.apply(i,o)}}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/deep-mix.js":
- /*!********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/deep-mix.js ***!
- \********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js"),i=n(/*! ./is-plain-object */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-plain-object.js");function o(t,e,n,a){for(var s in n=n||0,a=a||5,e)if(e.hasOwnProperty(s)){var l=e[s];null!==l&&i.default(l)?(i.default(t[s])||(t[s]={}),n<a?o(t[s],l,n+1,a):t[s]=e[s]):r.default(l)?(t[s]=[],t[s]=t[s].concat(l)):void 0!==l&&(t[s]=l)}}e.default=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)o(t,e[r]);return t}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/difference.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/difference.js ***!
- \**********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./filter */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/filter.js"),i=n(/*! ./contains */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/contains.js");e.default=function(t,e){return void 0===e&&(e=[]),r.default(t,(function(t){return!i.default(e,t)}))}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/each.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/each.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js"),i=n(/*! ./is-object */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-object.js");e.default=function(t,e){if(t)if(r.default(t))for(var n=0,o=t.length;n<o&&!1!==e(t[n],n);n++);else if(i.default(t))for(var a in t)if(t.hasOwnProperty(a)&&!1===e(t[a],a))break}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/ends-with.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/ends-with.js ***!
- \*********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js"),i=n(/*! ./is-string */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-string.js");e.default=function(t,e){return!(!r.default(t)&&!i.default(t))&&t[t.length-1]===e}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/every.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/every.js ***!
- \*****************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/extend.js":
- /*!******************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/extend.js ***!
- \******************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./mix */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/mix.js"),i=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-function.js");e.default=function(t,e,n,o){i.default(e)||(n=e,e=t,t=function(){});var a=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},s=a(e.prototype,t);return t.prototype=r.default(s,t.prototype),t.superclass=a(e.prototype,e),r.default(s,n),r.default(t,o),t}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/filter.js":
- /*!******************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/filter.js ***!
- \******************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array-like.js");e.default=function(t,e){if(!r.default(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];e(o,i)&&n.push(o)}return n}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/find-index.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/find-index.js ***!
- \**********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){void 0===n&&(n=0);for(var r=n;r<t.length;r++)if(e(t[r],r))return r;return-1}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/find.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/find.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-function.js"),i=n(/*! ./is-match */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-match.js"),o=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js"),a=n(/*! ./is-plain-object */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-plain-object.js");e.default=function(t,e){if(!o.default(t))return null;var n;if(r.default(e)&&(n=e),a.default(e)&&(n=function(t){return i.default(t,e)}),n)for(var s=0;s<t.length;s+=1)if(n(t[s]))return t[s];return null}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/first-value.js":
- /*!***********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/first-value.js ***!
- \***********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-nil */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-nil.js"),i=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js");e.default=function(t,e){for(var n=null,o=0;o<t.length;o++){var a=t[o][e];if(!r.default(a)){n=i.default(a)?a[0]:a;break}}return n}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/fixed-base.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/fixed-base.js ***!
- \**********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/flatten-deep.js":
- /*!************************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/flatten-deep.js ***!
- \************************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js");e.default=function t(e,n){if(void 0===n&&(n=[]),r.default(e))for(var i=0;i<e.length;i+=1)t(e[i],n);else n.push(e);return n}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/flatten.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/flatten.js ***!
- \*******************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js");e.default=function(t){if(!r.default(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/for-in.js":
- /*!******************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/for-in.js ***!
- \******************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./each */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/each.js");e.default=r.default},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/get-range.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/get-range.js ***!
- \*********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js");e.default=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(r.default(t[0])){for(var n=[],i=0;i<t.length;i++)n=n.concat(t[i]);e=n}var o=Math.max.apply(null,e);return{min:Math.min.apply(null,e),max:o}}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/get-type.js":
- /*!********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/get-type.js ***!
- \********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r={}.toString;e.default=function(t){return r.call(t).replace(/^\[object /,"").replace(/]$/,"")}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/get-wrap-behavior.js":
- /*!*****************************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/get-wrap-behavior.js ***!
- \*****************************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t["_wrap_"+e]}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/get.js":
- /*!***************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/get.js ***!
- \***************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-string */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-string.js");e.default=function(t,e,n){for(var i=0,o=r.default(e)?e.split("."):e;t&&i<o.length;)t=t[o[i++]];return void 0===t||i<o.length?n:t}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/group-by.js":
- /*!********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/group-by.js ***!
- \********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js"),i=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-function.js"),o=Object.prototype.hasOwnProperty;e.default=function(t,e){if(!e||!r.default(t))return{};for(var n,a={},s=i.default(e)?e:function(t){return t[e]},l=0;l<t.length;l++){var u=t[l];n=s(u),o.call(a,n)?a[n].push(u):a[n]=[u]}return a}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/group-to-map.js":
- /*!************************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/group-to-map.js ***!
- \************************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js"),i=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-function.js"),o=n(/*! ./group-by */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/group-by.js");e.default=function(t,e){if(!e)return{0:t};if(!i.default(e)){var n=r.default(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return o.default(t,e)}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/group.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/group.js ***!
- \*****************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./group-to-map */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/group-to-map.js");e.default=function(t,e){if(!e)return[t];var n=r.default(t,e),i=[];for(var o in n)i.push(n[o]);return i}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/has-key.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/has-key.js ***!
- \*******************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./has */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/has.js");e.default=r.default},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/has-value.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/has-value.js ***!
- \*********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./contains */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/contains.js"),i=n(/*! ./values */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/values.js");e.default=function(t,e){return r.default(i.default(t),e)}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/has.js":
- /*!***************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/has.js ***!
- \***************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t.hasOwnProperty(e)}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/head.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/head.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array-like.js");e.default=function(t){if(r.default(t))return t[0]}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/identity.js":
- /*!********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/identity.js ***!
- \********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index-of.js":
- /*!********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/index-of.js ***!
- \********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array-like.js");e.default=function(t,e){if(!r.default(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,o=0;o<t.length;o++)if(t[o]===e){i=o;break}return i}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js ***!
- \*****************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./contains */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/contains.js");Object.defineProperty(e,"contains",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"includes",{enumerable:!0,get:function(){return r.default}});var i=n(/*! ./difference */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/difference.js");Object.defineProperty(e,"difference",{enumerable:!0,get:function(){return i.default}});var o=n(/*! ./find */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/find.js");Object.defineProperty(e,"find",{enumerable:!0,get:function(){return o.default}});var a=n(/*! ./find-index */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/find-index.js");Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return a.default}});var s=n(/*! ./first-value */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/first-value.js");Object.defineProperty(e,"firstValue",{enumerable:!0,get:function(){return s.default}});var l=n(/*! ./flatten */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/flatten.js");Object.defineProperty(e,"flatten",{enumerable:!0,get:function(){return l.default}});var u=n(/*! ./flatten-deep */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/flatten-deep.js");Object.defineProperty(e,"flattenDeep",{enumerable:!0,get:function(){return u.default}});var c=n(/*! ./get-range */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/get-range.js");Object.defineProperty(e,"getRange",{enumerable:!0,get:function(){return c.default}});var h=n(/*! ./pull */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/pull.js");Object.defineProperty(e,"pull",{enumerable:!0,get:function(){return h.default}});var f=n(/*! ./pull-at */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/pull-at.js");Object.defineProperty(e,"pullAt",{enumerable:!0,get:function(){return f.default}});var d=n(/*! ./reduce */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/reduce.js");Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return d.default}});var p=n(/*! ./remove */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/remove.js");Object.defineProperty(e,"remove",{enumerable:!0,get:function(){return p.default}});var g=n(/*! ./sort-by */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/sort-by.js");Object.defineProperty(e,"sortBy",{enumerable:!0,get:function(){return g.default}});var v=n(/*! ./union */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/union.js");Object.defineProperty(e,"union",{enumerable:!0,get:function(){return v.default}});var y=n(/*! ./uniq */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/uniq.js");Object.defineProperty(e,"uniq",{enumerable:!0,get:function(){return y.default}});var m=n(/*! ./values-of-key */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/values-of-key.js");Object.defineProperty(e,"valuesOfKey",{enumerable:!0,get:function(){return m.default}});var _=n(/*! ./head */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/head.js");Object.defineProperty(e,"head",{enumerable:!0,get:function(){return _.default}});var x=n(/*! ./last */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/last.js");Object.defineProperty(e,"last",{enumerable:!0,get:function(){return x.default}});var b=n(/*! ./starts-with */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/starts-with.js");Object.defineProperty(e,"startsWith",{enumerable:!0,get:function(){return b.default}});var w=n(/*! ./ends-with */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/ends-with.js");Object.defineProperty(e,"endsWith",{enumerable:!0,get:function(){return w.default}});var M=n(/*! ./filter */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/filter.js");Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return M.default}});var S=n(/*! ./every */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/every.js");Object.defineProperty(e,"every",{enumerable:!0,get:function(){return S.default}});var j=n(/*! ./some */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/some.js");Object.defineProperty(e,"some",{enumerable:!0,get:function(){return j.default}});var C=n(/*! ./group */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/group.js");Object.defineProperty(e,"group",{enumerable:!0,get:function(){return C.default}});var E=n(/*! ./group-by */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/group-by.js");Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return E.default}});var P=n(/*! ./group-to-map */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/group-to-map.js");Object.defineProperty(e,"groupToMap",{enumerable:!0,get:function(){return P.default}});var T=n(/*! ./get-wrap-behavior */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/get-wrap-behavior.js");Object.defineProperty(e,"getWrapBehavior",{enumerable:!0,get:function(){return T.default}});var k=n(/*! ./wrap-behavior */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/wrap-behavior.js");Object.defineProperty(e,"wrapBehavior",{enumerable:!0,get:function(){return k.default}});var A=n(/*! ./number2color */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/number2color.js");Object.defineProperty(e,"number2color",{enumerable:!0,get:function(){return A.default}});var O=n(/*! ./parse-radius */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/parse-radius.js");Object.defineProperty(e,"parseRadius",{enumerable:!0,get:function(){return O.default}});var I=n(/*! ./clamp */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/clamp.js");Object.defineProperty(e,"clamp",{enumerable:!0,get:function(){return I.default}});var B=n(/*! ./fixed-base */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/fixed-base.js");Object.defineProperty(e,"fixedBase",{enumerable:!0,get:function(){return B.default}});var L=n(/*! ./is-decimal */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-decimal.js");Object.defineProperty(e,"isDecimal",{enumerable:!0,get:function(){return L.default}});var F=n(/*! ./is-even */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-even.js");Object.defineProperty(e,"isEven",{enumerable:!0,get:function(){return F.default}});var D=n(/*! ./is-integer */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-integer.js");Object.defineProperty(e,"isInteger",{enumerable:!0,get:function(){return D.default}});var R=n(/*! ./is-negative */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-negative.js");Object.defineProperty(e,"isNegative",{enumerable:!0,get:function(){return R.default}});var N=n(/*! ./is-number-equal */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-number-equal.js");Object.defineProperty(e,"isNumberEqual",{enumerable:!0,get:function(){return N.default}});var z=n(/*! ./is-odd */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-odd.js");Object.defineProperty(e,"isOdd",{enumerable:!0,get:function(){return z.default}});var H=n(/*! ./is-positive */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-positive.js");Object.defineProperty(e,"isPositive",{enumerable:!0,get:function(){return H.default}});var G=n(/*! ./max-by */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/max-by.js");Object.defineProperty(e,"maxBy",{enumerable:!0,get:function(){return G.default}});var Y=n(/*! ./min-by */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/min-by.js");Object.defineProperty(e,"minBy",{enumerable:!0,get:function(){return Y.default}});var V=n(/*! ./mod */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/mod.js");Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return V.default}});var X=n(/*! ./to-degree */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-degree.js");Object.defineProperty(e,"toDegree",{enumerable:!0,get:function(){return X.default}});var q=n(/*! ./to-integer */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-integer.js");Object.defineProperty(e,"toInteger",{enumerable:!0,get:function(){return q.default}});var W=n(/*! ./to-radian */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-radian.js");Object.defineProperty(e,"toRadian",{enumerable:!0,get:function(){return W.default}});var U=n(/*! ./for-in */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/for-in.js");Object.defineProperty(e,"forIn",{enumerable:!0,get:function(){return U.default}});var Z=n(/*! ./has */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/has.js");Object.defineProperty(e,"has",{enumerable:!0,get:function(){return Z.default}});var K=n(/*! ./has-key */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/has-key.js");Object.defineProperty(e,"hasKey",{enumerable:!0,get:function(){return K.default}});var Q=n(/*! ./has-value */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/has-value.js");Object.defineProperty(e,"hasValue",{enumerable:!0,get:function(){return Q.default}});var $=n(/*! ./keys */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/keys.js");Object.defineProperty(e,"keys",{enumerable:!0,get:function(){return $.default}});var J=n(/*! ./is-match */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-match.js");Object.defineProperty(e,"isMatch",{enumerable:!0,get:function(){return J.default}});var tt=n(/*! ./values */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/values.js");Object.defineProperty(e,"values",{enumerable:!0,get:function(){return tt.default}});var et=n(/*! ./lower-case */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/lower-case.js");Object.defineProperty(e,"lowerCase",{enumerable:!0,get:function(){return et.default}});var nt=n(/*! ./lower-first */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/lower-first.js");Object.defineProperty(e,"lowerFirst",{enumerable:!0,get:function(){return nt.default}});var rt=n(/*! ./substitute */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/substitute.js");Object.defineProperty(e,"substitute",{enumerable:!0,get:function(){return rt.default}});var it=n(/*! ./upper-case */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/upper-case.js");Object.defineProperty(e,"upperCase",{enumerable:!0,get:function(){return it.default}});var ot=n(/*! ./upper-first */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/upper-first.js");Object.defineProperty(e,"upperFirst",{enumerable:!0,get:function(){return ot.default}});var at=n(/*! ./get-type */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/get-type.js");Object.defineProperty(e,"getType",{enumerable:!0,get:function(){return at.default}});var st=n(/*! ./is-arguments */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-arguments.js");Object.defineProperty(e,"isArguments",{enumerable:!0,get:function(){return st.default}});var lt=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js");Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return lt.default}});var ut=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array-like.js");Object.defineProperty(e,"isArrayLike",{enumerable:!0,get:function(){return ut.default}});var ct=n(/*! ./is-boolean */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-boolean.js");Object.defineProperty(e,"isBoolean",{enumerable:!0,get:function(){return ct.default}});var ht=n(/*! ./is-date */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-date.js");Object.defineProperty(e,"isDate",{enumerable:!0,get:function(){return ht.default}});var ft=n(/*! ./is-error */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-error.js");Object.defineProperty(e,"isError",{enumerable:!0,get:function(){return ft.default}});var dt=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-function.js");Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return dt.default}});var pt=n(/*! ./is-finite */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-finite.js");Object.defineProperty(e,"isFinite",{enumerable:!0,get:function(){return pt.default}});var gt=n(/*! ./is-nil */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-nil.js");Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return gt.default}});var vt=n(/*! ./is-null */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-null.js");Object.defineProperty(e,"isNull",{enumerable:!0,get:function(){return vt.default}});var yt=n(/*! ./is-number */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-number.js");Object.defineProperty(e,"isNumber",{enumerable:!0,get:function(){return yt.default}});var mt=n(/*! ./is-object */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-object.js");Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return mt.default}});var _t=n(/*! ./is-object-like */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-object-like.js");Object.defineProperty(e,"isObjectLike",{enumerable:!0,get:function(){return _t.default}});var xt=n(/*! ./is-plain-object */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-plain-object.js");Object.defineProperty(e,"isPlainObject",{enumerable:!0,get:function(){return xt.default}});var bt=n(/*! ./is-prototype */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-prototype.js");Object.defineProperty(e,"isPrototype",{enumerable:!0,get:function(){return bt.default}});var wt=n(/*! ./is-reg-exp */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-reg-exp.js");Object.defineProperty(e,"isRegExp",{enumerable:!0,get:function(){return wt.default}});var Mt=n(/*! ./is-string */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-string.js");Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return Mt.default}});var St=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-type.js");Object.defineProperty(e,"isType",{enumerable:!0,get:function(){return St.default}});var jt=n(/*! ./is-undefined */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-undefined.js");Object.defineProperty(e,"isUndefined",{enumerable:!0,get:function(){return jt.default}});var Ct=n(/*! ./is-element */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-element.js");Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return Ct.default}});var Et=n(/*! ./request-animation-frame */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/request-animation-frame.js");Object.defineProperty(e,"requestAnimationFrame",{enumerable:!0,get:function(){return Et.default}});var Pt=n(/*! ./clear-animation-frame */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/clear-animation-frame.js");Object.defineProperty(e,"clearAnimationFrame",{enumerable:!0,get:function(){return Pt.default}});var Tt=n(/*! ./augment */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/augment.js");Object.defineProperty(e,"augment",{enumerable:!0,get:function(){return Tt.default}});var kt=n(/*! ./clone */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/clone.js");Object.defineProperty(e,"clone",{enumerable:!0,get:function(){return kt.default}});var At=n(/*! ./debounce */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/debounce.js");Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return At.default}});var Ot=n(/*! ./memoize */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/memoize.js");Object.defineProperty(e,"memoize",{enumerable:!0,get:function(){return Ot.default}});var It=n(/*! ./deep-mix */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/deep-mix.js");Object.defineProperty(e,"deepMix",{enumerable:!0,get:function(){return It.default}});var Bt=n(/*! ./each */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/each.js");Object.defineProperty(e,"each",{enumerable:!0,get:function(){return Bt.default}});var Lt=n(/*! ./extend */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/extend.js");Object.defineProperty(e,"extend",{enumerable:!0,get:function(){return Lt.default}});var Ft=n(/*! ./index-of */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index-of.js");Object.defineProperty(e,"indexOf",{enumerable:!0,get:function(){return Ft.default}});var Dt=n(/*! ./is-empty */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-empty.js");Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return Dt.default}});var Rt=n(/*! ./is-equal */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-equal.js");Object.defineProperty(e,"isEqual",{enumerable:!0,get:function(){return Rt.default}});var Nt=n(/*! ./is-equal-with */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-equal-with.js");Object.defineProperty(e,"isEqualWith",{enumerable:!0,get:function(){return Nt.default}});var zt=n(/*! ./map */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/map.js");Object.defineProperty(e,"map",{enumerable:!0,get:function(){return zt.default}});var Ht=n(/*! ./map-values */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/map-values.js");Object.defineProperty(e,"mapValues",{enumerable:!0,get:function(){return Ht.default}});var Gt=n(/*! ./mix */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/mix.js");Object.defineProperty(e,"mix",{enumerable:!0,get:function(){return Gt.default}}),Object.defineProperty(e,"assign",{enumerable:!0,get:function(){return Gt.default}});var Yt=n(/*! ./get */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/get.js");Object.defineProperty(e,"get",{enumerable:!0,get:function(){return Yt.default}});var Vt=n(/*! ./set */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/set.js");Object.defineProperty(e,"set",{enumerable:!0,get:function(){return Vt.default}});var Xt=n(/*! ./pick */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/pick.js");Object.defineProperty(e,"pick",{enumerable:!0,get:function(){return Xt.default}});var qt=n(/*! ./throttle */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/throttle.js");Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return qt.default}});var Wt=n(/*! ./to-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-array.js");Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return Wt.default}});var Ut=n(/*! ./to-string */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-string.js");Object.defineProperty(e,"toString",{enumerable:!0,get:function(){return Ut.default}});var Zt=n(/*! ./unique-id */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/unique-id.js");Object.defineProperty(e,"uniqueId",{enumerable:!0,get:function(){return Zt.default}});var Kt=n(/*! ./noop */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/noop.js");Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return Kt.default}});var Qt=n(/*! ./identity */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/identity.js");Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return Qt.default}});var $t=n(/*! ./size */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/size.js");Object.defineProperty(e,"size",{enumerable:!0,get:function(){return $t.default}});var Jt=n(/*! ./cache */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/cache.js");Object.defineProperty(e,"Cache",{enumerable:!0,get:function(){return Jt.default}})},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-arguments.js":
- /*!************************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-arguments.js ***!
- \************************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-type.js");e.default=function(t){return r.default(t,"Arguments")}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array-like.js":
- /*!*************************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array-like.js ***!
- \*************************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js":
- /*!********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js ***!
- \********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-type.js");e.default=function(t){return Array.isArray?Array.isArray(t):r.default(t,"Array")}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-boolean.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-boolean.js ***!
- \**********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-type.js");e.default=function(t){return r.default(t,"Boolean")}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-date.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-date.js ***!
- \*******************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-type.js");e.default=function(t){return r.default(t,"Date")}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-decimal.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-decimal.js ***!
- \**********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-number */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-number.js");e.default=function(t){return r.default(t)&&t%1!=0}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-element.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-element.js ***!
- \**********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t instanceof Element||t instanceof HTMLDocument}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-empty.js":
- /*!********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-empty.js ***!
- \********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-nil */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-nil.js"),i=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array-like.js"),o=n(/*! ./get-type */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/get-type.js"),a=n(/*! ./is-prototype */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-prototype.js"),s=Object.prototype.hasOwnProperty;e.default=function(t){if(r.default(t))return!0;if(i.default(t))return!t.length;var e=o.default(t);if("Map"===e||"Set"===e)return!t.size;if(a.default(t))return!Object.keys(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-equal-with.js":
- /*!*************************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-equal-with.js ***!
- \*************************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-function.js"),i=n(/*! ./is-equal */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-equal.js");e.default=function(t,e,n){return r.default(n)?!!n(t,e):i.default(t,e)}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-equal.js":
- /*!********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-equal.js ***!
- \********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-object-like */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-object-like.js"),i=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array-like.js"),o=n(/*! ./is-string */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-string.js");e.default=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(o.default(e)||o.default(n))return!1;if(i.default(e)||i.default(n)){if(e.length!==n.length)return!1;for(var a=!0,s=0;s<e.length&&(a=t(e[s],n[s]));s++);return a}if(r.default(e)||r.default(n)){var l=Object.keys(e),u=Object.keys(n);if(l.length!==u.length)return!1;for(a=!0,s=0;s<l.length&&(a=t(e[l[s]],n[l[s]]));s++);return a}return!1}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-error.js":
- /*!********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-error.js ***!
- \********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-type.js");e.default=function(t){return r.default(t,"Error")}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-even.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-even.js ***!
- \*******************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-number */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-number.js");e.default=function(t){return r.default(t)&&t%2==0}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-finite.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-finite.js ***!
- \*********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-number */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-number.js");e.default=function(t){return r.default(t)&&isFinite(t)}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-function.js":
- /*!***********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-function.js ***!
- \***********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-type.js");e.default=function(t){return r.default(t,"Function")}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-integer.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-integer.js ***!
- \**********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-number */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-number.js"),i=Number.isInteger?Number.isInteger:function(t){return r.default(t)&&t%1==0};e.default=i},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-match.js":
- /*!********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-match.js ***!
- \********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-nil */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-nil.js"),i=n(/*! ./keys */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/keys.js");e.default=function(t,e){var n=i.default(e),o=n.length;if(r.default(t))return!o;for(var a=0;a<o;a+=1){var s=n[a];if(e[s]!==t[s]||!(s in t))return!1}return!0}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-negative.js":
- /*!***********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-negative.js ***!
- \***********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-number */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-number.js");e.default=function(t){return r.default(t)&&t<0}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-nil.js":
- /*!******************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-nil.js ***!
- \******************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return null==t}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-null.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-null.js ***!
- \*******************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return null===t}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-number-equal.js":
- /*!***************************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-number-equal.js ***!
- \***************************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-number.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-number.js ***!
- \*********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-type.js");e.default=function(t){return r.default(t,"Number")}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-object-like.js":
- /*!**************************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-object-like.js ***!
- \**************************************************************************/
- /*! no static exports found */function(e,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return"object"===t(e)&&null!==e}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-object.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-object.js ***!
- \*********************************************************************/
- /*! no static exports found */function(e,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n=t(e);return null!==e&&"object"===n||"function"===n}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-odd.js":
- /*!******************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-odd.js ***!
- \******************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-number */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-number.js");e.default=function(t){return r.default(t)&&t%2!=0}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-plain-object.js":
- /*!***************************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-plain-object.js ***!
- \***************************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-object-like */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-object-like.js"),i=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-type.js");e.default=function(t){if(!r.default(t)||!i.default(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-positive.js":
- /*!***********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-positive.js ***!
- \***********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-number */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-number.js");e.default=function(t){return r.default(t)&&t>0}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-prototype.js":
- /*!************************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-prototype.js ***!
- \************************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=Object.prototype;e.default=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-reg-exp.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-reg-exp.js ***!
- \**********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-type.js");e.default=function(t){return r.default(t,"RegExp")}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-string.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-string.js ***!
- \*********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-type.js");e.default=function(t){return r.default(t,"String")}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-type.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-type.js ***!
- \*******************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r={}.toString;e.default=function(t,e){return r.call(t)==="[object "+e+"]"}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-undefined.js":
- /*!************************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-undefined.js ***!
- \************************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return void 0===t}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/keys.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/keys.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./each */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/each.js"),i=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-function.js"),o=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return r.default(t,(function(n,r){i.default(t)&&"prototype"===r||e.push(r)})),e};e.default=o},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/last.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/last.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array-like.js");e.default=function(t){if(r.default(t))return t[t.length-1]}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/lower-case.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/lower-case.js ***!
- \**********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./to-string */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-string.js");e.default=function(t){return r.default(t).toLowerCase()}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/lower-first.js":
- /*!***********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/lower-first.js ***!
- \***********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./to-string */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-string.js");e.default=function(t){var e=r.default(t);return e.charAt(0).toLowerCase()+e.substring(1)}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/map-values.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/map-values.js ***!
- \**********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-nil */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-nil.js"),i=n(/*! ./is-object */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-object.js"),o=function(t){return t};e.default=function(t,e){void 0===e&&(e=o);var n={};return i.default(t)&&!r.default(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/map.js":
- /*!***************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/map.js ***!
- \***************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array-like.js");e.default=function(t,e){if(!r.default(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];n.push(e(o,i))}return n}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/max-by.js":
- /*!******************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/max-by.js ***!
- \******************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./each */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/each.js"),i=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js"),o=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-function.js");e.default=function(t,e){if(i.default(t)){var n,a,s=t[0];return n=o.default(e)?e(t[0]):t[0][e],r.default(t,(function(t){(a=o.default(e)?e(t):t[e])>n&&(s=t,n=a)})),s}}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/memoize.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/memoize.js ***!
- \*******************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-function.js");e.default=function(t,e){if(!r.default(t))throw new TypeError("Expected a function");var n=function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,r);return a.set(o,s),s};return n.cache=new Map,n}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/min-by.js":
- /*!******************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/min-by.js ***!
- \******************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./each */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/each.js"),i=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js"),o=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-function.js");e.default=function(t,e){if(i.default(t)){var n,a,s=t[0];return n=o.default(e)?e(t[0]):t[0][e],r.default(t,(function(t){(a=o.default(e)?e(t):t[e])<n&&(s=t,n=a)})),s}}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/mix.js":
- /*!***************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/mix.js ***!
- \***************************************************************/
- /*! no static exports found */function(t,e,n){function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,i){return e&&r(t,e),n&&r(t,n),i&&r(t,i),t}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/mod.js":
- /*!***************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/mod.js ***!
- \***************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return(t%e+e)%e}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/noop.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/noop.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/number2color.js":
- /*!************************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/number2color.js ***!
- \************************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r={};e.default=function(t){var e=r[t];if(!e){for(var n=t.toString(16),i=n.length;i<6;i++)n="0"+n;e="#"+n,r[t]=e}return e}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/parse-radius.js":
- /*!************************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/parse-radius.js ***!
- \************************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js");e.default=function(t){var e=0,n=0,i=0,o=0;return r.default(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,{r1:e,r2:n,r3:i,r4:o}}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/pick.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/pick.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./each */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/each.js"),i=n(/*! ./is-plain-object */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-plain-object.js"),o=Object.prototype.hasOwnProperty;e.default=function(t,e){if(null===t||!i.default(t))return{};var n={};return r.default(e,(function(e){o.call(t,e)&&(n[e]=t[e])})),n}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/pull-at.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/pull-at.js ***!
- \*******************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array-like.js"),i=Array.prototype.splice;e.default=function(t,e){if(!r.default(t))return[];for(var n=t?e.length:0,o=n-1;n--;){var a=void 0,s=e[n];n!==o&&s===a||(a=s,i.call(t,s,1))}return t}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/pull.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/pull.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=Array.prototype,i=r.splice,o=r.indexOf;e.default=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++)for(var a=e[r],s=-1;(s=o.call(t,a))>-1;)i.call(t,s,1);return t}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/reduce.js":
- /*!******************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/reduce.js ***!
- \******************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./each */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/each.js"),i=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js"),o=n(/*! ./is-plain-object */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-plain-object.js");e.default=function(t,e,n){if(!i.default(t)&&!o.default(t))return t;var a=n;return r.default(t,(function(t,n){a=e(a,t,n)})),a}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/remove.js":
- /*!******************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/remove.js ***!
- \******************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array-like.js"),i=n(/*! ./pull-at */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/pull-at.js");e.default=function(t,e){var n=[];if(!r.default(t))return n;for(var o=-1,a=[],s=t.length;++o<s;){var l=t[o];e(l,o,t)&&(n.push(l),a.push(o))}return i.default(t,a),n}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/request-animation-frame.js":
- /*!***********************************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/request-animation-frame.js ***!
- \***********************************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/set.js":
- /*!***************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/set.js ***!
- \***************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-object */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-object.js"),i=n(/*! ./is-string */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-string.js"),o=n(/*! ./is-number */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-number.js");e.default=function(t,e,n){var a=t,s=i.default(e)?e.split("."):e;return s.forEach((function(t,e){e<s.length-1?(r.default(a[t])||(a[t]=o.default(s[e+1])?[]:{}),a=a[t]):a[t]=n})),t}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/size.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/size.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-nil */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-nil.js"),i=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array-like.js");e.default=function(t){return r.default(t)?0:i.default(t)?t.length:Object.keys(t).length}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/some.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/some.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/sort-by.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/sort-by.js ***!
- \*******************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js"),i=n(/*! ./is-string */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-string.js"),o=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-function.js");e.default=function(t,e){var n;if(o.default(e))n=function(t,n){return e(t)-e(n)};else{var a=[];i.default(e)?a.push(e):r.default(e)&&(a=e),n=function(t,e){for(var n=0;n<a.length;n+=1){var r=a[n];if(t[r]>e[r])return 1;if(t[r]<e[r])return-1}return 0}}return t.sort(n),t}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/starts-with.js":
- /*!***********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/starts-with.js ***!
- \***********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js"),i=n(/*! ./is-string */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-string.js");e.default=function(t,e){return!(!r.default(t)&&!i.default(t))&&t[0]===e}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/substitute.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/substitute.js ***!
- \**********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/throttle.js":
- /*!********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/throttle.js ***!
- \********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r,i,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},u=function(){var u=Date.now();s||!1!==n.leading||(s=u);var c=e-(u-s);return i=this,o=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),s=u,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,c)),a};return u.cancel=function(){clearTimeout(r),s=0,r=i=o=null},u}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-array.js":
- /*!********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-array.js ***!
- \********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array-like.js");e.default=function(t){return r.default(t)?Array.prototype.slice.call(t):[]}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-degree.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-degree.js ***!
- \*********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=180/Math.PI;e.default=function(t){return r*t}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-integer.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-integer.js ***!
- \**********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=parseInt},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-radian.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-radian.js ***!
- \*********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=Math.PI/180;e.default=function(t){return r*t}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-string.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-string.js ***!
- \*********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-nil */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-nil.js");e.default=function(t){return r.default(t)?"":t.toString()}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/union.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/union.js ***!
- \*****************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./uniq */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/uniq.js");e.default=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.default([].concat.apply([],t))}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/uniq.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/uniq.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./contains */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/contains.js"),i=n(/*! ./each */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/each.js");e.default=function(t){var e=[];return i.default(t,(function(t){r.default(e,t)||e.push(t)})),e}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/unique-id.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/unique-id.js ***!
- \*********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r={};e.default=function(t){return r[t=t||"g"]?r[t]+=1:r[t]=1,t+r[t]}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/upper-case.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/upper-case.js ***!
- \**********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./to-string */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-string.js");e.default=function(t){return r.default(t).toUpperCase()}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/upper-first.js":
- /*!***********************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/upper-first.js ***!
- \***********************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./to-string */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-string.js");e.default=function(t){var e=r.default(t);return e.charAt(0).toUpperCase()+e.substring(1)}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/values-of-key.js":
- /*!*************************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/values-of-key.js ***!
- \*************************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js"),i=n(/*! ./is-nil */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-nil.js");e.default=function(t,e){for(var n=[],o={},a=0;a<t.length;a++){var s=t[a][e];if(!i.default(s)){r.default(s)||(s=[s]);for(var l=0;l<s.length;l++){var u=s[l];o[u]||(n.push(u),o[u]=!0)}}}return n}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/values.js":
- /*!******************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/values.js ***!
- \******************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./each */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/each.js"),i=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-function.js"),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return r.default(t,(function(n,r){i.default(t)&&"prototype"===r||e.push(n)})),e};e.default=o},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/wrap-behavior.js":
- /*!*************************************************************************!*\
- !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/wrap-behavior.js ***!
- \*************************************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}},"./node_modules/_abs-svg-path@0.1.1@abs-svg-path/index.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_abs-svg-path@0.1.1@abs-svg-path/index.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t){var e=0,n=0,r=0,i=0;return t.map((function(t){var o=(t=t.slice())[0],a=o.toUpperCase();if(o!=a)switch(t[0]=a,o){case"a":t[6]+=r,t[7]+=i;break;case"v":t[1]+=i;break;case"h":t[1]+=r;break;default:for(var s=1;s<t.length;)t[s++]+=r,t[s++]+=i}switch(a){case"Z":r=e,i=n;break;case"H":r=t[1];break;case"V":i=t[1];break;case"M":r=e=t[1],i=n=t[2];break;default:r=t[t.length-2],i=t[t.length-1]}return t}))}},"./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e,n){!function(t){function e(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function n(t){return 1===t.length&&(t=r(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}}function r(t){return function(n,r){return e(t(n),r)}}var i=n(e),o=i.right,a=i.left;function s(t,e){null==e&&(e=l);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return o}function l(t,e){return[t,e]}function u(t,e,n){var r,i,o,a,s=t.length,u=e.length,c=new Array(s*u);for(null==n&&(n=l),r=o=0;r<s;++r)for(a=t[r],i=0;i<u;++i,++o)c[o]=n(a,e[i]);return c}function c(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function h(t){return null===t?NaN:+t}function f(t,e){var n,r,i=t.length,o=0,a=-1,s=0,l=0;if(null==e)for(;++a<i;)isNaN(n=h(t[a]))||(l+=(r=n-s)*(n-(s+=r/++o)));else for(;++a<i;)isNaN(n=h(e(t[a],a,t)))||(l+=(r=n-s)*(n-(s+=r/++o)));if(o>1)return l/(o-1)}function d(t,e){var n=f(t,e);return n?Math.sqrt(n):n}function p(t,e){var n,r,i,o=t.length,a=-1;if(null==e){for(;++a<o;)if(null!=(n=t[a])&&n>=n)for(r=i=n;++a<o;)null!=(n=t[a])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++a<o;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=i=n;++a<o;)null!=(n=e(t[a],a,t))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]}var g=Array.prototype,v=g.slice,y=g.map;function m(t){return function(){return t}}function _(t){return t}function x(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}var b=Math.sqrt(50),w=Math.sqrt(10),M=Math.sqrt(2);function S(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(a=j(t,e,n))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(t+s)*a;else for(t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(t-s)/a;return r&&o.reverse(),o}function j(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=b?10:o>=w?5:o>=M?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=b?10:o>=w?5:o>=M?2:1)}function C(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=b?i*=10:o>=w?i*=5:o>=M&&(i*=2),e<t?-i:i}function E(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function P(){var t=_,e=p,n=E;function r(r){var i,a,s=r.length,l=new Array(s);for(i=0;i<s;++i)l[i]=t(r[i],i,r);var u=e(l),c=u[0],h=u[1],f=n(l,c,h);Array.isArray(f)||(f=C(c,h,f),f=x(Math.ceil(c/f)*f,h,f));for(var d=f.length;f[0]<=c;)f.shift(),--d;for(;f[d-1]>h;)f.pop(),--d;var p,g=new Array(d+1);for(i=0;i<=d;++i)(p=g[i]=[]).x0=i>0?f[i-1]:c,p.x1=i<d?f[i]:h;for(i=0;i<s;++i)c<=(a=l[i])&&a<=h&&g[o(f,a,0,d)].push(r[i]);return g}return r.value=function(e){return arguments.length?(t="function"==typeof e?e:m(e),r):t},r.domain=function(t){return arguments.length?(e="function"==typeof t?t:m([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?m(v.call(t)):m(t),r):n},r}function T(t,e,n){if(null==n&&(n=h),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}function k(t,n,r){return t=y.call(t,h).sort(e),Math.ceil((r-n)/(2*(T(t,.75)-T(t,.25))*Math.pow(t.length,-1/3)))}function A(t,e,n){return Math.ceil((n-e)/(3.5*d(t)*Math.pow(t.length,-1/3)))}function O(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o<i;)if(null!=(n=t[o])&&n>=n)for(r=n;++o<i;)null!=(n=t[o])&&n>r&&(r=n)}else for(;++o<i;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=n;++o<i;)null!=(n=e(t[o],o,t))&&n>r&&(r=n);return r}function I(t,e){var n,r=t.length,i=r,o=-1,a=0;if(null==e)for(;++o<r;)isNaN(n=h(t[o]))?--i:a+=n;else for(;++o<r;)isNaN(n=h(e(t[o],o,t)))?--i:a+=n;if(i)return a/i}function B(t,n){var r,i=t.length,o=-1,a=[];if(null==n)for(;++o<i;)isNaN(r=h(t[o]))||a.push(r);else for(;++o<i;)isNaN(r=h(n(t[o],o,t)))||a.push(r);return T(a.sort(e),.5)}function L(t){for(var e,n,r,i=t.length,o=-1,a=0;++o<i;)a+=t[o].length;for(n=new Array(a);--i>=0;)for(e=(r=t[i]).length;--e>=0;)n[--a]=r[e];return n}function F(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o<i;)if(null!=(n=t[o])&&n>=n)for(r=n;++o<i;)null!=(n=t[o])&&r>n&&(r=n)}else for(;++o<i;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=n;++o<i;)null!=(n=e(t[o],o,t))&&r>n&&(r=n);return r}function D(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r}function R(t,n){if(r=t.length){var r,i,o=0,a=0,s=t[a];for(null==n&&(n=e);++o<r;)(n(i=t[o],s)<0||0!==n(s,s))&&(s=i,a=o);return 0===n(s,s)?a:void 0}}function N(t,e,n){for(var r,i,o=(null==n?t.length:n)-(e=null==e?0:+e);o;)i=Math.random()*o--|0,r=t[o+e],t[o+e]=t[i+e],t[i+e]=r;return t}function z(t,e){var n,r=t.length,i=-1,o=0;if(null==e)for(;++i<r;)(n=+t[i])&&(o+=n);else for(;++i<r;)(n=+e(t[i],i,t))&&(o+=n);return o}function H(t){if(!(i=t.length))return[];for(var e=-1,n=F(t,G),r=new Array(n);++e<n;)for(var i,o=-1,a=r[e]=new Array(i);++o<i;)a[o]=t[o][e];return r}function G(t){return t.length}function Y(){return H(arguments)}t.bisect=o,t.bisectRight=o,t.bisectLeft=a,t.ascending=e,t.bisector=n,t.cross=u,t.descending=c,t.deviation=d,t.extent=p,t.histogram=P,t.thresholdFreedmanDiaconis=k,t.thresholdScott=A,t.thresholdSturges=E,t.max=O,t.mean=I,t.median=B,t.merge=L,t.min=F,t.pairs=s,t.permute=D,t.quantile=T,t.range=x,t.scan=R,t.shuffle=N,t.sum=z,t.ticks=S,t.tickIncrement=j,t.tickStep=C,t.transpose=H,t.variance=f,t.zip=Y,Object.defineProperty(t,"__esModule",{value:!0})}(e)},"./node_modules/_d3-array@2.11.0@d3-array/dist/d3-array.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/_d3-array@2.11.0@d3-array/dist/d3-array.js ***!
- \*****************************************************************/
- /*! no static exports found */function(e,n,r){var i=r(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js");!function(e){function n(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function r(t){var e=t,n=t;function r(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;n(t[o],e)<0?r=o+1:i=o}return r}function i(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;n(t[o],e)>0?i=o:r=o+1}return r}function a(t,n,i,o){null==i&&(i=0),null==o&&(o=t.length);var a=r(t,n,i,o-1);return a>i&&e(t[a-1],n)>-e(t[a],n)?a-1:a}return 1===t.length&&(e=function(e,n){return t(e)-n},n=o(t)),{left:r,center:a,right:i}}function o(t){return function(e,r){return n(t(e),r)}}function a(t){return null===t?NaN:+t}function s(t,e){var n,r,o,a,s,l,u,c,h,f,d,p;return i.__generator(this,(function(g){switch(g.label){case 0:if(void 0!==e)return[3,9];g.label=1;case 1:g.trys.push([1,6,7,8]),n=i.__values(t),r=n.next(),g.label=2;case 2:return r.done?[3,5]:null!=(u=r.value)&&(u=+u)>=u?[4,u]:[3,4];case 3:g.sent(),g.label=4;case 4:return r=n.next(),[3,2];case 5:return[3,8];case 6:return o=g.sent(),h={error:o},[3,8];case 7:try{r&&!r.done&&(f=n.return)&&f.call(n)}finally{if(h)throw h.error}return[7];case 8:return[3,17];case 9:a=-1,g.label=10;case 10:g.trys.push([10,15,16,17]),s=i.__values(t),l=s.next(),g.label=11;case 11:return l.done?[3,14]:(u=l.value,null!=(u=e(u,++a,t))&&(u=+u)>=u?[4,u]:[3,13]);case 12:g.sent(),g.label=13;case 13:return l=s.next(),[3,11];case 14:return[3,17];case 15:return c=g.sent(),d={error:c},[3,17];case 16:try{l&&!l.done&&(p=s.return)&&p.call(s)}finally{if(d)throw d.error}return[7];case 17:return[2]}}))}var l=r(n),u=l.right,c=l.left,h=r(a).center;function f(t,e){var n,r,o,a,s=0;if(void 0===e)try{for(var l=i.__values(t),u=l.next();!u.done;u=l.next())null!=(d=u.value)&&(d=+d)>=d&&++s}catch(p){n={error:p}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}else{var c=-1;try{for(var h=i.__values(t),f=h.next();!f.done;f=h.next()){var d;null!=(d=e(d=f.value,++c,t))&&(d=+d)>=d&&++s}}catch(g){o={error:g}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}}return s}function d(t){return 0|t.length}function p(t){return!(t>0)}function g(e){return"object"!==t(e)||"length"in e?e:Array.from(e)}function v(t){return function(e){return t.apply(void 0,i.__spread(e))}}function y(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n="function"==typeof t[t.length-1]&&v(t.pop()),r=(t=t.map(g)).map(d),i=t.length-1,o=new Array(i+1).fill(0),a=[];if(i<0||r.some(p))return a;for(;;){a.push(o.map((function(e,n){return t[n][e]})));for(var s=i;++o[s]===r[s];){if(0===s)return n?a.map(n):a;o[s--]=0}}}function m(t,e){var n=0,r=0;return Float64Array.from(t,void 0===e?function(t){return n+=+t||0}:function(i){return n+=+e(i,r++,t)||0})}function _(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function x(t,e){var n,r,o,a,s,l=0,u=0,c=0;if(void 0===e)try{for(var h=i.__values(t),f=h.next();!f.done;f=h.next())null!=(v=f.value)&&(v=+v)>=v&&(c+=(s=v-u)*(v-(u+=s/++l)))}catch(y){n={error:y}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}else{var d=-1;try{for(var p=i.__values(t),g=p.next();!g.done;g=p.next()){var v;null!=(v=e(v=g.value,++d,t))&&(v=+v)>=v&&(c+=(s=v-u)*(v-(u+=s/++l)))}}catch(m){o={error:m}}finally{try{g&&!g.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}}if(l>1)return c/(l-1)}function b(t,e){var n=x(t,e);return n?Math.sqrt(n):n}function w(t,e){var n,r,o,a,s,l;if(void 0===e)try{for(var u=i.__values(t),c=u.next();!c.done;c=u.next())null!=(p=c.value)&&(void 0===s?p>=p&&(s=l=p):(s>p&&(s=p),l<p&&(l=p)))}catch(g){n={error:g}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}else{var h=-1;try{for(var f=i.__values(t),d=f.next();!d.done;d=f.next()){var p;null!=(p=e(p=d.value,++h,t))&&(void 0===s?p>=p&&(s=l=p):(s>p&&(s=p),l<p&&(l=p)))}}catch(v){o={error:v}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(o)throw o.error}}}return[s,l]}var M=function(){function t(){this._partials=new Float64Array(32),this._n=0}return t.prototype.add=function(t){for(var e=this._partials,n=0,r=0;r<this._n&&r<32;r++){var i=e[r],o=t+i,a=Math.abs(t)<Math.abs(i)?t-(o-i):i-(o-t);a&&(e[n++]=a),t=o}return e[n]=t,this._n=n+1,this},t.prototype.valueOf=function(){var t,e,n,r=this._partials,i=this._n,o=0;if(i>0){for(o=r[--i];i>0&&(t=o,!(n=(e=r[--i])-((o=t+e)-t))););i>0&&(n<0&&r[i-1]<0||n>0&&r[i-1]>0)&&(e=2*n)==(t=o+e)-o&&(o=t)}return o},t}();function S(t,e){var n,r,o,a,s=new M;if(void 0===e)try{for(var l=i.__values(t),u=l.next();!u.done;u=l.next())(d=+(d=u.value))&&s.add(d)}catch(p){n={error:p}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}else{var c=-1;try{for(var h=i.__values(t),f=h.next();!f.done;f=h.next()){var d;(d=+e(d=f.value,++c,t))&&s.add(d)}}catch(g){o={error:g}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}}return+s}var j=function(t){function e(e,n){var r,o;void 0===e&&(e=[]),void 0===n&&(n=k);var a=t.call(this)||this;Object.defineProperties(a,{_intern:{value:new Map},_key:{value:n}});try{for(var s=i.__values(e),l=s.next();!l.done;l=s.next()){var u=i.__read(l.value,2),c=u[0],h=u[1];a.set(c,h)}}catch(f){r={error:f}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return a}return i.__extends(e,t),e.prototype.get=function(e){return t.prototype.get.call(this,E(this,e))},e.prototype.has=function(e){return t.prototype.has.call(this,E(this,e))},e.prototype.set=function(e,n){return t.prototype.set.call(this,P(this,e),n)},e.prototype.delete=function(e){return t.prototype.delete.call(this,T(this,e))},e}(Map),C=function(t){function e(e,n){var r,o;void 0===e&&(e=[]),void 0===n&&(n=k);var a=t.call(this)||this;Object.defineProperties(a,{_intern:{value:new Map},_key:{value:n}});try{for(var s=i.__values(e),l=s.next();!l.done;l=s.next()){var u=l.value;a.add(u)}}catch(c){r={error:c}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return a}return i.__extends(e,t),e.prototype.has=function(e){return t.prototype.has.call(this,E(this,e))},e.prototype.add=function(e){return t.prototype.add.call(this,P(this,e))},e.prototype.delete=function(e){return t.prototype.delete.call(this,T(this,e))},e}(Set);function E(t,e){var n=t._intern,r=(0,t._key)(e);return n.has(r)?n.get(r):e}function P(t,e){var n=t._intern,r=(0,t._key)(e);return n.has(r)?n.get(r):(n.set(r,e),e)}function T(t,e){var n=t._intern,r=(0,t._key)(e);return n.has(r)&&(e=n.get(e),n.delete(r)),e}function k(e){return null!==e&&"object"===t(e)?e.valueOf():e}function A(t){return t}function O(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return N(t,A,A,e)}function I(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return N(t,Array.from,A,e)}function B(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return N(t,A,e,n)}function L(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return N(t,Array.from,e,n)}function F(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return N(t,A,R,e)}function D(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return N(t,Array.from,R,e)}function R(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function N(t,e,n,r){return function t(o,a){var s,l,u,c;if(a>=r.length)return n(o);var h=new j,f=r[a++],d=-1;try{for(var p=i.__values(o),g=p.next();!g.done;g=p.next()){var v=g.value,y=f(v,++d,o),m=h.get(y);m?m.push(v):h.set(y,[v])}}catch(M){s={error:M}}finally{try{g&&!g.done&&(l=p.return)&&l.call(p)}finally{if(s)throw s.error}}try{for(var _=i.__values(h),x=_.next();!x.done;x=_.next()){var b=i.__read(x.value,2),w=(y=b[0],b[1]);h.set(y,t(w,a))}}catch(S){u={error:S}}finally{try{x&&!x.done&&(c=_.return)&&c.call(_)}finally{if(u)throw u.error}}return e(h)}(t,0)}function z(t,e){return Array.from(e,(function(e){return t[e]}))}function H(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);var o=i.__read(e,1)[0],a=void 0===o?n:o;if(1===a.length||e.length>1){var s=Uint32Array.from(t,(function(t,e){return e}));return e.length>1?(e=e.map((function(e){return t.map(e)})),s.sort((function(t,r){var o,a;try{for(var s=i.__values(e),l=s.next();!l.done;l=s.next()){var u=l.value,c=n(u[t],u[r]);if(c)return c}}catch(h){o={error:h}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}}))):(a=t.map(a),s.sort((function(t,e){return n(a[t],a[e])}))),z(t,s)}return t.sort(a)}function G(t,e,r){return(1===e.length?H(B(t,e,r),(function(t,e){var r=i.__read(t,2),o=r[0],a=r[1],s=i.__read(e,2),l=s[0];return n(a,s[1])||n(o,l)})):H(O(t,r),(function(t,r){var o=i.__read(t,2),a=o[0],s=o[1],l=i.__read(r,2),u=l[0],c=l[1];return e(s,c)||n(a,u)}))).map((function(t){return i.__read(t,1)[0]}))}var Y=Array.prototype.slice;function V(t){return function(){return t}}var X=Math.sqrt(50),q=Math.sqrt(10),W=Math.sqrt(2);function U(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(a=Z(t,e,n))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(t+s)*a;else for(a=-a,t=Math.ceil(t*a),e=Math.floor(e*a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(t+s)/a;return r&&o.reverse(),o}function Z(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=X?10:o>=q?5:o>=W?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=X?10:o>=q?5:o>=W?2:1)}function K(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=X?i*=10:o>=q?i*=5:o>=W&&(i*=2),e<t?-i:i}function Q(t,e,n){for(var r;;){var i=Z(t,e,n);if(i===r||0===i||!isFinite(i))return[t,e];i>0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}function $(t){return Math.ceil(Math.log(f(t))/Math.LN2)+1}function J(){var t=A,e=w,n=$;function r(r){var o;Array.isArray(r)||(r=Array.from(r));var a,s,l=r.length,c=new Array(l);for(a=0;a<l;++a)c[a]=t(r[a],a,r);var h=e(c),f=h[0],d=h[1],p=n(c,f,d);if(!Array.isArray(p)){var g=d,v=+p;if(e===w&&(f=(o=i.__read(Q(f,d,v),2))[0],d=o[1]),(p=U(f,d,v))[p.length-1]>=d)if(g>=d&&e===w){var y=Z(f,d,v);isFinite(y)&&(y>0?d=(Math.floor(d/y)+1)*y:y<0&&(d=(Math.ceil(d*-y)+1)/-y))}else p.pop()}for(var m=p.length;p[0]<=f;)p.shift(),--m;for(;p[m-1]>d;)p.pop(),--m;var _,x=new Array(m+1);for(a=0;a<=m;++a)(_=x[a]=[]).x0=a>0?p[a-1]:f,_.x1=a<m?p[a]:d;for(a=0;a<l;++a)f<=(s=c[a])&&s<=d&&x[u(p,s,0,m)].push(r[a]);return x}return r.value=function(e){return arguments.length?(t="function"==typeof e?e:V(e),r):t},r.domain=function(t){return arguments.length?(e="function"==typeof t?t:V([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?V(Y.call(t)):V(t),r):n},r}function tt(t,e){var n,r,o,a,s;if(void 0===e)try{for(var l=i.__values(t),u=l.next();!u.done;u=l.next())null!=(d=u.value)&&(s<d||void 0===s&&d>=d)&&(s=d)}catch(p){n={error:p}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}else{var c=-1;try{for(var h=i.__values(t),f=h.next();!f.done;f=h.next()){var d;null!=(d=e(d=f.value,++c,t))&&(s<d||void 0===s&&d>=d)&&(s=d)}}catch(g){o={error:g}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}}return s}function et(t,e){var n,r,o,a,s;if(void 0===e)try{for(var l=i.__values(t),u=l.next();!u.done;u=l.next())null!=(d=u.value)&&(s>d||void 0===s&&d>=d)&&(s=d)}catch(p){n={error:p}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}else{var c=-1;try{for(var h=i.__values(t),f=h.next();!f.done;f=h.next()){var d;null!=(d=e(d=f.value,++c,t))&&(s>d||void 0===s&&d>=d)&&(s=d)}}catch(g){o={error:g}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}}return s}function nt(t,e,r,i,o){for(void 0===r&&(r=0),void 0===i&&(i=t.length-1),void 0===o&&(o=n);i>r;){if(i-r>600){var a=i-r+1,s=e-r+1,l=Math.log(a),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(a-u)/a)*(s-a/2<0?-1:1);nt(t,e,Math.max(r,Math.floor(e-s*u/a+c)),Math.min(i,Math.floor(e+(a-s)*u/a+c)),o)}var h=t[e],f=r,d=i;for(rt(t,r,e),o(t[i],h)>0&&rt(t,r,i);f<d;){for(rt(t,f,d),++f,--d;o(t[f],h)<0;)++f;for(;o(t[d],h)>0;)--d}0===o(t[r],h)?rt(t,r,d):rt(t,++d,i),d<=e&&(r=d+1),e<=d&&(i=d-1)}return t}function rt(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function it(t,e,n){if(r=(t=Float64Array.from(s(t,n))).length){if((e=+e)<=0||r<2)return et(t);if(e>=1)return tt(t);var r,i=(r-1)*e,o=Math.floor(i),a=tt(nt(t,o).subarray(0,o+1));return a+(et(t.subarray(o+1))-a)*(i-o)}}function ot(t,e,n){if(void 0===n&&(n=a),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),s=+n(t[o],o,t);return s+(+n(t[o+1],o+1,t)-s)*(i-o)}}function at(t,e,n){return Math.ceil((n-e)/(2*(it(t,.75)-it(t,.25))*Math.pow(f(t),-1/3)))}function st(t,e,n){return Math.ceil((n-e)/(3.5*b(t)*Math.pow(f(t),-1/3)))}function lt(t,e){var n,r,o,a,s,l=-1,u=-1;if(void 0===e)try{for(var c=i.__values(t),h=c.next();!h.done;h=c.next()){var f=h.value;++u,null!=f&&(s<f||void 0===s&&f>=f)&&(s=f,l=u)}}catch(g){n={error:g}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}else try{for(var d=i.__values(t),p=d.next();!p.done;p=d.next())null!=(f=e(f=p.value,++u,t))&&(s<f||void 0===s&&f>=f)&&(s=f,l=u)}catch(v){o={error:v}}finally{try{p&&!p.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}return l}function ut(t,e){var n,r,o,a,s=0,l=0;if(void 0===e)try{for(var u=i.__values(t),c=u.next();!c.done;c=u.next())null!=(p=c.value)&&(p=+p)>=p&&(++s,l+=p)}catch(g){n={error:g}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}else{var h=-1;try{for(var f=i.__values(t),d=f.next();!d.done;d=f.next()){var p;null!=(p=e(p=d.value,++h,t))&&(p=+p)>=p&&(++s,l+=p)}}catch(v){o={error:v}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(o)throw o.error}}}if(s)return l/s}function ct(t,e){return it(t,.5,e)}function ht(t){var e,n,r,o,a,s;return i.__generator(this,(function(l){switch(l.label){case 0:l.trys.push([0,5,6,7]),e=i.__values(t),n=e.next(),l.label=1;case 1:return n.done?[3,4]:(r=n.value,[5,i.__values(r)]);case 2:l.sent(),l.label=3;case 3:return n=e.next(),[3,1];case 4:return[3,7];case 5:return o=l.sent(),a={error:o},[3,7];case 6:try{n&&!n.done&&(s=e.return)&&s.call(e)}finally{if(a)throw a.error}return[7];case 7:return[2]}}))}function ft(t){return Array.from(ht(t))}function dt(t,e){var n,r,o,a,s,l=-1,u=-1;if(void 0===e)try{for(var c=i.__values(t),h=c.next();!h.done;h=c.next()){var f=h.value;++u,null!=f&&(s>f||void 0===s&&f>=f)&&(s=f,l=u)}}catch(g){n={error:g}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}else try{for(var d=i.__values(t),p=d.next();!p.done;p=d.next())null!=(f=e(f=p.value,++u,t))&&(s>f||void 0===s&&f>=f)&&(s=f,l=u)}catch(v){o={error:v}}finally{try{p&&!p.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}return l}function pt(t,e){var n,r;void 0===e&&(e=gt);var o,a=[],s=!1;try{for(var l=i.__values(t),u=l.next();!u.done;u=l.next()){var c=u.value;s&&a.push(e(o,c)),o=c,s=!0}}catch(h){n={error:h}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return a}function gt(t,e){return[t,e]}function vt(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}function yt(t,e){var r,o,a,s,l;void 0===e&&(e=n);var u=!1;if(1===e.length){var c=void 0;try{for(var h=i.__values(t),f=h.next();!f.done;f=h.next()){var d=f.value,p=e(d);(u?n(p,c)<0:0===n(p,p))&&(l=d,c=p,u=!0)}}catch(y){r={error:y}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}}else try{for(var g=i.__values(t),v=g.next();!v.done;v=g.next())p=v.value,(u?e(p,l)<0:0===e(p,p))&&(l=p,u=!0)}catch(m){a={error:m}}finally{try{v&&!v.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}return l}function mt(t,e){var r,o,a;if(void 0===e&&(e=n),1===e.length)return dt(t,e);var s=-1,l=-1;try{for(var u=i.__values(t),c=u.next();!c.done;c=u.next()){var h=c.value;++l,(s<0?0===e(h,h):e(h,a)<0)&&(a=h,s=l)}}catch(f){r={error:f}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return s}function _t(t,e){var r,o,a,s,l;void 0===e&&(e=n);var u=!1;if(1===e.length){var c=void 0;try{for(var h=i.__values(t),f=h.next();!f.done;f=h.next()){var d=f.value,p=e(d);(u?n(p,c)>0:0===n(p,p))&&(l=d,c=p,u=!0)}}catch(y){r={error:y}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}}else try{for(var g=i.__values(t),v=g.next();!v.done;v=g.next())p=v.value,(u?e(p,l)>0:0===e(p,p))&&(l=p,u=!0)}catch(m){a={error:m}}finally{try{v&&!v.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}return l}function xt(t,e){var r,o,a;if(void 0===e&&(e=n),1===e.length)return lt(t,e);var s=-1,l=-1;try{for(var u=i.__values(t),c=u.next();!c.done;c=u.next()){var h=c.value;++l,(s<0?0===e(h,h):e(h,a)>0)&&(a=h,s=l)}}catch(f){r={error:f}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return s}function bt(t,e){var n=mt(t,e);return n<0?void 0:n}var wt=Mt(Math.random);function Mt(t){return function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=e.length);for(var i=r-(n=+n);i;){var o=t()*i--|0,a=e[i+n];e[i+n]=e[o+n],e[o+n]=a}return e}}function St(t,e){var n,r,o,a,s=0;if(void 0===e)try{for(var l=i.__values(t),u=l.next();!u.done;u=l.next())(d=+(d=u.value))&&(s+=d)}catch(p){n={error:p}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}else{var c=-1;try{for(var h=i.__values(t),f=h.next();!f.done;f=h.next()){var d;(d=+e(d=f.value,++c,t))&&(s+=d)}}catch(g){o={error:g}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}}return s}function jt(t){if(!(i=t.length))return[];for(var e=-1,n=et(t,Ct),r=new Array(n);++e<n;)for(var i,o=-1,a=r[e]=new Array(i);++o<i;)a[o]=t[o][e];return r}function Ct(t){return t.length}function Et(){return jt(arguments)}function Pt(t,e){var n,r;if("function"!=typeof e)throw new TypeError("test is not a function");var o=-1;try{for(var a=i.__values(t),s=a.next();!s.done;s=a.next())if(!e(s.value,++o,t))return!1}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return!0}function Tt(t,e){var n,r;if("function"!=typeof e)throw new TypeError("test is not a function");var o=-1;try{for(var a=i.__values(t),s=a.next();!s.done;s=a.next())if(e(s.value,++o,t))return!0}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return!1}function kt(t,e){var n,r;if("function"!=typeof e)throw new TypeError("test is not a function");var o=[],a=-1;try{for(var s=i.__values(t),l=s.next();!l.done;l=s.next()){var u=l.value;e(u,++a,t)&&o.push(u)}}catch(c){n={error:c}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return o}function At(t,e){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof e)throw new TypeError("mapper is not a function");return Array.from(t,(function(n,r){return e(n,r,t)}))}function Ot(t,e,n){var r,i;if("function"!=typeof e)throw new TypeError("reducer is not a function");var o,a,s=t[Symbol.iterator](),l=-1;if(arguments.length<3){if(o=(r=s.next()).done,n=r.value,o)return;++l}for(;o=(i=s.next()).done,a=i.value,!o;)n=e(n,a,++l,t);return n}function It(t){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()}function Bt(t){for(var e,n,r,o,a=[],s=1;s<arguments.length;s++)a[s-1]=arguments[s];t=new Set(t);try{for(var l=i.__values(a),u=l.next();!u.done;u=l.next()){var c=u.value;try{for(var h=(r=void 0,i.__values(c)),f=h.next();!f.done;f=h.next()){var d=f.value;t.delete(d)}}catch(p){r={error:p}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}}}catch(g){e={error:g}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}return t}function Lt(t,e){var n,r,o,a=e[Symbol.iterator](),s=new Set;try{for(var l=i.__values(t),u=l.next();!u.done;u=l.next()){var c=u.value;if(s.has(c))return!1;for(var h=void 0,f=void 0;h=(o=a.next()).value,f=o.done,o&&!f;){if(Object.is(c,h))return!1;s.add(h)}}}catch(d){n={error:d}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return!0}function Ft(t){return t instanceof Set?t:new Set(t)}function Dt(t){for(var e,n,r,o,a=[],s=1;s<arguments.length;s++)a[s-1]=arguments[s];t=new Set(t),a=a.map(Ft);try{t:for(var l=i.__values(t),u=l.next();!u.done;u=l.next()){var c=u.value;try{for(var h=(r=void 0,i.__values(a)),f=h.next();!f.done;f=h.next())if(!f.value.has(c)){t.delete(c);continue t}}catch(d){r={error:d}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}}}catch(p){e={error:p}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}return t}function Rt(t,e){var n,r,o,a=t[Symbol.iterator](),s=new Set;try{for(var l=i.__values(e),u=l.next();!u.done;u=l.next()){var c=u.value;if(!s.has(c))for(var h=void 0,f=void 0;h=(o=a.next()).value,f=o.done,o;){if(f)return!1;if(s.add(h),Object.is(c,h))break}}}catch(d){n={error:d}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return!0}function Nt(t,e){return Rt(e,t)}function zt(){for(var t,e,n,r,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=new Set;try{for(var l=i.__values(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{for(var h=(n=void 0,i.__values(c)),f=h.next();!f.done;f=h.next()){var d=f.value;s.add(d)}}catch(p){n={error:p}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}}}catch(g){t={error:g}}finally{try{u&&!u.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}return s}e.Adder=M,e.InternMap=j,e.InternSet=C,e.ascending=n,e.bin=J,e.bisect=u,e.bisectCenter=h,e.bisectLeft=c,e.bisectRight=u,e.bisector=r,e.count=f,e.cross=y,e.cumsum=m,e.descending=_,e.deviation=b,e.difference=Bt,e.disjoint=Lt,e.every=Pt,e.extent=w,e.filter=kt,e.fsum=S,e.greatest=_t,e.greatestIndex=xt,e.group=O,e.groupSort=G,e.groups=I,e.histogram=J,e.index=F,e.indexes=D,e.intersection=Dt,e.least=yt,e.leastIndex=mt,e.map=At,e.max=tt,e.maxIndex=lt,e.mean=ut,e.median=ct,e.merge=ft,e.min=et,e.minIndex=dt,e.nice=Q,e.pairs=pt,e.permute=z,e.quantile=it,e.quantileSorted=ot,e.quickselect=nt,e.range=vt,e.reduce=Ot,e.reverse=It,e.rollup=B,e.rollups=L,e.scan=bt,e.shuffle=wt,e.shuffler=Mt,e.some=Tt,e.sort=H,e.subset=Nt,e.sum=St,e.superset=Rt,e.thresholdFreedmanDiaconis=at,e.thresholdScott=st,e.thresholdSturges=$,e.tickIncrement=Z,e.tickStep=K,e.ticks=U,e.transpose=jt,e.union=zt,e.variance=x,e.zip=Et,Object.defineProperty(e,"__esModule",{value:!0})}(n)},"./node_modules/_d3-collection@1.0.7@d3-collection/dist/d3-collection.js":
- /*!*******************************************************************************!*\
- !*** ./node_modules/_d3-collection@1.0.7@d3-collection/dist/d3-collection.js ***!
- \*******************************************************************************/
- /*! no static exports found */function(t,e,n){!function(t){var e="$";function n(){}function r(t,e){var r=new n;if(t instanceof n)t.each((function(t,e){r.set(e,t)}));else if(Array.isArray(t)){var i,o=-1,a=t.length;if(null==e)for(;++o<a;)r.set(o,t[o]);else for(;++o<a;)r.set(e(i=t[o],o,t),i)}else if(t)for(var s in t)r.set(s,t[s]);return r}function i(){var t,e,n,i=[],u=[];function c(n,o,a,s){if(o>=i.length)return null!=t&&n.sort(t),null!=e?e(n):n;for(var l,u,h,f=-1,d=n.length,p=i[o++],g=r(),v=a();++f<d;)(h=g.get(l=p(u=n[f])+""))?h.push(u):g.set(l,[u]);return g.each((function(t,e){s(v,e,c(t,o,a,s))})),v}function h(t,n){if(++n>i.length)return t;var r,o=u[n-1];return null!=e&&n>=i.length?r=t.entries():(r=[],t.each((function(t,e){r.push({key:e,values:h(t,n)})}))),null!=o?r.sort((function(t,e){return o(t.key,e.key)})):r}return n={object:function(t){return c(t,0,o,a)},map:function(t){return c(t,0,s,l)},entries:function(t){return h(c(t,0,s,l),0)},key:function(t){return i.push(t),n},sortKeys:function(t){return u[i.length-1]=t,n},sortValues:function(e){return t=e,n},rollup:function(t){return e=t,n}}}function o(){return{}}function a(t,e,n){t[e]=n}function s(){return r()}function l(t,e,n){t.set(e,n)}function u(){}n.prototype=r.prototype={constructor:n,has:function(t){return e+t in this},get:function(t){return this[e+t]},set:function(t,n){return this[e+t]=n,this},remove:function(t){var n=e+t;return n in this&&delete this[n]},clear:function(){for(var t in this)t[0]===e&&delete this[t]},keys:function(){var t=[];for(var n in this)n[0]===e&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)n[0]===e&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)n[0]===e&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)n[0]===e&&++t;return t},empty:function(){for(var t in this)if(t[0]===e)return!1;return!0},each:function(t){for(var n in this)n[0]===e&&t(this[n],n.slice(1),this)}};var c=r.prototype;function h(t,e){var n=new u;if(t instanceof u)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++r<i;)n.add(t[r]);else for(;++r<i;)n.add(e(t[r],r,t))}return n}function f(t){var e=[];for(var n in t)e.push(n);return e}function d(t){var e=[];for(var n in t)e.push(t[n]);return e}function p(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e}u.prototype=h.prototype={constructor:u,has:c.has,add:function(t){return this[e+(t+="")]=t,this},remove:c.remove,clear:c.clear,values:c.keys,size:c.size,empty:c.empty,each:c.each},t.nest=i,t.set=h,t.map=r,t.keys=f,t.values=d,t.entries=p,Object.defineProperty(t,"__esModule",{value:!0})}(e)},"./node_modules/_d3-composite-projections@1.4.0@d3-composite-projections/d3-composite-projections.js":
- /*!***********************************************************************************************************!*\
- !*** ./node_modules/_d3-composite-projections@1.4.0@d3-composite-projections/d3-composite-projections.js ***!
- \***********************************************************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js");!function(t,e,n){var i=1e-6;function o(){}var a=1/0,s=a,l=-a,u=l,c={point:h,lineStart:o,lineEnd:o,polygonStart:o,polygonEnd:o,result:function(){var t=[[a,s],[l,u]];return l=u=-(s=a=1/0),t}};function h(t,e){t<a&&(a=t),t>l&&(l=t),e<s&&(s=e),e>u&&(u=e)}function f(t,n,r){var i=n[1][0]-n[0][0],o=n[1][1]-n[0][1],a=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=a&&t.clipExtent(null),e.geoStream(r,t.stream(c));var s=c.result(),l=Math.min(i/(s[1][0]-s[0][0]),o/(s[1][1]-s[0][1])),u=+n[0][0]+(i-l*(s[1][0]+s[0][0]))/2,h=+n[0][1]+(o-l*(s[1][1]+s[0][1]))/2;return null!=a&&t.clipExtent(a),t.scale(150*l).translate([u,h])}function d(t,e,n){return f(t,[[0,0],e],n)}function p(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}function g(){var t,r,o,a,s,l,u=e.geoAlbers(),c=e.geoConicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),h=e.geoConicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),g={point:function(t,e){l=[t,e]}};function v(t){var e=t[0],n=t[1];return l=null,o.point(e,n),l||(a.point(e,n),l)||(s.point(e,n),l)}function y(){return t=r=null,v}return v.invert=function(t){var e=u.scale(),n=u.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?c:i>=.166&&i<.234&&r>=-.214&&r<-.115?h:u).invert(t)},v.stream=function(e){return t&&r===e?t:t=p([u.stream(r=e),c.stream(e),h.stream(e)])},v.precision=function(t){return arguments.length?(u.precision(t),c.precision(t),h.precision(t),y()):u.precision()},v.scale=function(t){return arguments.length?(u.scale(t),c.scale(.35*t),h.scale(t),v.translate(u.translate())):u.scale()},v.translate=function(t){if(!arguments.length)return u.translate();var e=u.scale(),n=+t[0],r=+t[1];return o=u.translate(t).clipExtent([[n-.455*e,r-.238*e],[n+.455*e,r+.238*e]]).stream(g),a=c.translate([n-.307*e,r+.201*e]).clipExtent([[n-.425*e+i,r+.12*e+i],[n-.214*e-i,r+.234*e-i]]).stream(g),s=h.translate([n-.205*e,r+.212*e]).clipExtent([[n-.214*e+i,r+.166*e+i],[n-.115*e-i,r+.234*e-i]]).stream(g),y()},v.fitExtent=function(t,e){return f(v,t,e)},v.fitSize=function(t,e){return d(v,t,e)},v.drawCompositionBorders=function(t){var e=u([-102.91,26.3]),n=u([-104,27.5]),r=u([-108,29.1]),i=u([-110,29.1]),o=u([-110,26.7]),a=u([-112.8,27.6]),s=u([-114.3,30.6]),l=u([-119.3,30.1]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.moveTo(o[0],o[1]),t.lineTo(a[0],a[1]),t.lineTo(s[0],s[1]),t.lineTo(l[0],l[1])},v.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},v.scale(1070)}function v(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}function y(){var t,r,o,a,s,l,u,c,h,p=e.geoAlbers(),g=e.geoConicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),y=e.geoConicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),m=e.geoConicEqualArea().rotate([66,0]).center([0,18]).parallels([8,18]),_=e.geoEquirectangular().rotate([173,14]),x=e.geoEquirectangular().rotate([-145,-16.8]),b={point:function(t,e){h=[t,e]}};function w(t){var e=t[0],n=t[1];return h=null,o.point(e,n),h||(a.point(e,n),h)||(s.point(e,n),h)||(l.point(e,n),h)||(u.point(e,n),h)||(c.point(e,n),h)}function M(){return t=r=null,w}return w.invert=function(t){var e=p.scale(),n=p.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?g:i>=.166&&i<.234&&r>=-.214&&r<-.115?y:i>=.2064&&i<.2413&&r>=.312&&r<.385?m:i>=.09&&i<.1197&&r>=-.4243&&r<-.3232?_:i>=-.0518&&i<.0895&&r>=-.4243&&r<-.3824?x:p).invert(t)},w.stream=function(e){return t&&r===e?t:t=v([p.stream(r=e),g.stream(e),y.stream(e),m.stream(e),_.stream(e),x.stream(e)])},w.precision=function(t){return arguments.length?(p.precision(t),g.precision(t),y.precision(t),m.precision(t),_.precision(t),x.precision(t),M()):p.precision()},w.scale=function(t){return arguments.length?(p.scale(t),g.scale(.35*t),y.scale(t),m.scale(t),_.scale(2*t),x.scale(t),w.translate(p.translate())):p.scale()},w.translate=function(t){if(!arguments.length)return p.translate();var e=p.scale(),n=+t[0],r=+t[1];return o=p.translate(t).clipExtent([[n-.455*e,r-.238*e],[n+.455*e,r+.238*e]]).stream(b),a=g.translate([n-.307*e,r+.201*e]).clipExtent([[n-.425*e+i,r+.12*e+i],[n-.214*e-i,r+.233*e-i]]).stream(b),s=y.translate([n-.205*e,r+.212*e]).clipExtent([[n-.214*e+i,r+.166*e+i],[n-.115*e-i,r+.233*e-i]]).stream(b),l=m.translate([n+.35*e,r+.224*e]).clipExtent([[n+.312*e+i,r+.2064*e+i],[n+.385*e-i,r+.233*e-i]]).stream(b),u=_.translate([n-.492*e,r+.09*e]).clipExtent([[n-.4243*e+i,r+.0903*e+i],[n-.3233*e-i,r+.1197*e-i]]).stream(b),c=x.translate([n-.408*e,r+.018*e]).clipExtent([[n-.4244*e+i,r-.0519*e+i],[n-.3824*e-i,r+.0895*e-i]]).stream(b),M()},w.fitExtent=function(t,e){return f(w,t,e)},w.fitSize=function(t,e){return d(w,t,e)},w.drawCompositionBorders=function(t){var e=p([-110.4641,28.2805]),n=p([-104.0597,28.9528]),r=p([-103.7049,25.1031]),i=p([-109.8337,24.4531]),o=p([-124.4745,28.1407]),a=p([-110.931,30.8844]),s=p([-109.8337,24.4531]),l=p([-122.4628,21.8562]),u=p([-76.8579,25.1544]),c=p([-72.429,24.2097]),h=p([-72.8265,22.7056]),f=p([-77.1852,23.6392]),d=p([-125.0093,29.7791]),g=p([-118.5193,31.3262]),v=p([-118.064,29.6912]),y=p([-124.4369,28.169]),m=p([-128.1314,37.4582]),_=p([-125.2132,38.214]),x=p([-122.3616,30.5115]),b=p([-125.0315,29.8211]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),t.moveTo(o[0],o[1]),t.lineTo(a[0],a[1]),t.lineTo(s[0],s[1]),t.lineTo(s[0],s[1]),t.lineTo(l[0],l[1]),t.closePath(),t.moveTo(u[0],u[1]),t.lineTo(c[0],c[1]),t.lineTo(h[0],h[1]),t.lineTo(h[0],h[1]),t.lineTo(f[0],f[1]),t.closePath(),t.moveTo(d[0],d[1]),t.lineTo(g[0],g[1]),t.lineTo(v[0],v[1]),t.lineTo(v[0],v[1]),t.lineTo(y[0],y[1]),t.closePath(),t.moveTo(m[0],m[1]),t.lineTo(_[0],_[1]),t.lineTo(x[0],x[1]),t.lineTo(x[0],x[1]),t.lineTo(b[0],b[1]),t.closePath()},w.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},w.scale(1070)}function m(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}function _(){var t,r,o,a,s,l=e.geoConicConformal().rotate([5,-38.6]).parallels([0,60]),u=e.geoConicConformal().rotate([5,-38.6]).parallels([0,60]),c={point:function(t,e){s=[t,e]}};function h(t){var e=t[0],n=t[1];return s=null,o.point(e,n),s||(a.point(e,n),s)}function p(){return t=r=null,h}return h.invert=function(t){var e=l.scale(),n=l.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.05346&&i<.0897&&r>=-.13388&&r<-.0322?u:l).invert(t)},h.stream=function(e){return t&&r===e?t:t=m([l.stream(r=e),u.stream(e)])},h.precision=function(t){return arguments.length?(l.precision(t),u.precision(t),p()):l.precision()},h.scale=function(t){return arguments.length?(l.scale(t),u.scale(t),h.translate(l.translate())):l.scale()},h.translate=function(t){if(!arguments.length)return l.translate();var e=l.scale(),n=+t[0],r=+t[1];return o=l.translate(t).clipExtent([[n-.06857*e,r-.1288*e],[n+.13249*e,r+.06*e]]).stream(c),a=u.translate([n+.1*e,r-.094*e]).clipExtent([[n-.1331*e+i,r+.053457*e+i],[n-.0354*e-i,r+.08969*e-i]]).stream(c),p()},h.fitExtent=function(t,e){return f(h,t,e)},h.fitSize=function(t,e){return d(h,t,e)},h.drawCompositionBorders=function(t){var e=l([-14.034675,34.965007]),n=l([-7.4208899,35.536988]),r=l([-7.3148275,33.54359]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1])},h.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},h.scale(2700)}function x(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}function b(){var t,r,o,a,s,l,u=e.geoConicConformal().rotate([10,-39.3]).parallels([0,60]),c=e.geoConicConformal().rotate([17,-32.7]).parallels([0,60]),h=e.geoConicConformal().rotate([27.8,-38.6]).parallels([0,60]),p={point:function(t,e){l=[t,e]}};function g(t){var e=t[0],n=t[1];return l=null,o.point(e,n),l||(a.point(e,n),l)||(s.point(e,n),l)}function v(){return t=r=null,g}return g.invert=function(t){var e=u.scale(),n=u.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.0093&&i<.03678&&r>=-.03875&&r<-.0116?c:i>=-.0412&&i<.0091&&r>=-.07782&&r<-.01166?h:u).invert(t)},g.stream=function(e){return t&&r===e?t:t=x([u.stream(r=e),c.stream(e),h.stream(e)])},g.precision=function(t){return arguments.length?(u.precision(t),c.precision(t),h.precision(t),v()):u.precision()},g.scale=function(t){return arguments.length?(u.scale(t),c.scale(t),h.scale(.6*t),g.translate(u.translate())):u.scale()},g.translate=function(t){if(!arguments.length)return u.translate();var e=u.scale(),n=+t[0],r=+t[1];return o=u.translate(t).clipExtent([[n-.0115*e,r-.1138*e],[n+.2105*e,r+.0673*e]]).stream(p),a=c.translate([n-.0265*e,r+.025*e]).clipExtent([[n-.0388*e+i,r+.0093*e+i],[n-.0116*e-i,r+.0368*e-i]]).stream(p),s=h.translate([n-.045*e,r+-.02*e]).clipExtent([[n-.0778*e+i,r-.0413*e+i],[n-.0117*e-i,r+.0091*e-i]]).stream(p),v()},g.fitExtent=function(t,e){return f(g,t,e)},g.fitSize=function(t,e){return d(g,t,e)},g.drawCompositionBorders=function(t){var e=u([-12.8351,38.7113]),n=u([-10.8482,38.7633]),r=u([-10.8181,37.2072]),i=u([-12.7345,37.1573]),o=u([-16.0753,41.4436]),a=u([-10.9168,41.6861]),s=u([-10.8557,38.7747]),l=u([-15.6728,38.5505]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),t.moveTo(o[0],o[1]),t.lineTo(a[0],a[1]),t.lineTo(s[0],s[1]),t.lineTo(s[0],s[1]),t.lineTo(l[0],l[1]),t.closePath()},g.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},g.scale(4200)}function w(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}function M(){var t,r,o,a,s,l=e.geoMercator().rotate([80,1.5]),u=e.geoMercator().rotate([90.73,1]),c={point:function(t,e){s=[t,e]}};function h(t){var e=t[0],n=t[1];return s=null,o.point(e,n),s||(a.point(e,n),s)}function p(){return t=r=null,h}return h.invert=function(t){var e=l.scale(),n=l.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.0676&&i<-.026&&r>=-.0857&&r<-.0263?u:l).invert(t)},h.stream=function(e){return t&&r===e?t:t=w([l.stream(r=e),u.stream(e)])},h.precision=function(t){return arguments.length?(l.precision(t),u.precision(t),p()):l.precision()},h.scale=function(t){return arguments.length?(l.scale(t),u.scale(t),h.translate(l.translate())):l.scale()},h.translate=function(t){if(!arguments.length)return l.translate();var e=l.scale(),n=+t[0],r=+t[1];return o=l.translate(t).clipExtent([[n-.0262*e,r-.0734*e],[n+.1741*e,r+.079*e]]).stream(c),a=u.translate([n-.06*e,r-.04*e]).clipExtent([[n-.0857*e+i,r-.0676*e+i],[n-.0263*e-i,r-.026*e-i]]).stream(c),p()},h.fitExtent=function(t,e){return f(h,t,e)},h.fitSize=function(t,e){return d(h,t,e)},h.drawCompositionBorders=function(t){var e=l([-84.9032,2.3757]),n=l([-81.5047,2.3708]),r=l([-81.5063,-.01]),i=l([-84.9086,-.005]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath()},h.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},h.scale(3500)}function S(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}function j(){var t,r,o,a,s,l,u,c=e.geoTransverseMercator().rotate([72,37]),h=e.geoStereographic().rotate([72,0]),p=e.geoMercator().rotate([80,33.5]),g=e.geoMercator().rotate([110,25]),v={point:function(t,e){u=[t,e]}};function y(t){var e=t[0],n=t[1];return u=null,o.point(e,n),u||(a.point(e,n),u)||(s.point(e,n),u)||(l.point(e,n),u)}function m(){return t=r=null,y}return y.invert=function(t){var e=c.scale(),n=c.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.2582&&i<.32&&r>=-.1036&&r<-.087?h:i>=-.01298&&i<.0133&&r>=-.11396&&r<-.05944?p:i>=.01539&&i<.03911&&r>=-.089&&r<-.0588?g:c).invert(t)},y.stream=function(e){return t&&r===e?t:t=S([c.stream(r=e),h.stream(e),p.stream(e),g.stream(e)])},y.precision=function(t){return arguments.length?(c.precision(t),h.precision(t),p.precision(t),g.precision(t),m()):c.precision()},y.scale=function(t){return arguments.length?(c.scale(t),h.scale(.15*t),p.scale(1.5*t),g.scale(1.5*t),y.translate(c.translate())):c.scale()},y.translate=function(t){if(!arguments.length)return c.translate();var e=c.scale(),n=+t[0],r=+t[1];return o=c.translate(t).clipExtent([[n-.059*e,r-.3835*e],[n+.4498*e,r+.3375*e]]).stream(v),a=h.translate([n-.087*e,r+.17*e]).clipExtent([[n-.1166*e+i,r+.2582*e+i],[n-.06*e-i,r+.32*e-i]]).stream(v),s=p.translate([n-.092*e,r-0*e]).clipExtent([[n-.114*e+i,r-.013*e+i],[n-.0594*e-i,r+.0133*e-i]]).stream(v),l=g.translate([n-.089*e,r-.0265*e]).clipExtent([[n-.089*e+i,r+.0154*e+i],[n-.0588*e-i,r+.0391*e-i]]).stream(v),m()},y.fitExtent=function(t,e){return f(y,t,e)},y.fitSize=function(t,e){return d(y,t,e)},y.drawCompositionBorders=function(t){var e=c([-82.6999,-51.3043]),n=c([-77.5442,-51.6631]),r=c([-78.0254,-55.186]),i=c([-83.6106,-54.7785]),o=c([-80.0638,-35.984]),a=c([-76.2153,-36.1811]),s=c([-76.2994,-37.6839]),l=c([-80.2231,-37.4757]),u=c([-78.442,-37.706]),h=c([-76.263,-37.8054]),f=c([-76.344,-39.1595]),d=c([-78.5638,-39.0559]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),t.moveTo(o[0],o[1]),t.lineTo(a[0],a[1]),t.lineTo(s[0],s[1]),t.lineTo(s[0],s[1]),t.lineTo(l[0],l[1]),t.closePath(),t.moveTo(u[0],u[1]),t.lineTo(h[0],h[1]),t.lineTo(f[0],f[1]),t.lineTo(f[0],f[1]),t.lineTo(d[0],d[1]),t.closePath()},y.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},y.scale(700)}function C(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}function E(){var t,r,o,a,s,l,u=e.geoConicEquidistant().rotate([-136,-22]).parallels([40,34]),c=e.geoConicEquidistant().rotate([-146,-26]).parallels([40,34]),h=e.geoConicEquidistant().rotate([-126,-19]).parallels([40,34]),p={point:function(t,e){l=[t,e]}};function g(t){var e=t[0],n=t[1];return l=null,o.point(e,n),l||(a.point(e,n),l)||(s.point(e,n),l)}function v(){return t=r=null,g}return g.invert=function(t){var e=u.scale(),n=u.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.10925&&i<-.02701&&r>=-.135&&r<-.0397?c:i>=.04713&&i<.11138&&r>=-.03986&&r<.051?h:u).invert(t)},g.stream=function(e){return t&&r===e?t:t=C([u.stream(r=e),c.stream(e),h.stream(e)])},g.precision=function(t){return arguments.length?(u.precision(t),c.precision(t),h.precision(t),v()):u.precision()},g.scale=function(t){return arguments.length?(u.scale(t),c.scale(t),h.scale(.7*t),g.translate(u.translate())):u.scale()},g.translate=function(t){if(!arguments.length)return u.translate();var e=u.scale(),n=+t[0],r=+t[1];return o=u.translate(t).clipExtent([[n-.1352*e,r-.1091*e],[n+.117*e,r+.098*e]]).stream(p),a=c.translate([n-.0425*e,r-.005*e]).clipExtent([[n-.135*e+i,r-.1093*e+i],[n-.0397*e-i,r-.027*e-i]]).stream(p),s=h.translate(t).clipExtent([[n-.0399*e+i,r+.0471*e+i],[n+.051*e-i,r+.1114*e-i]]).stream(p),v()},g.fitExtent=function(t,e){return f(g,t,e)},g.fitSize=function(t,e){return d(g,t,e)},g.drawCompositionBorders=function(t){var e=u([126.01320483689143,41.621090310215585]),n=u([133.04304387025903,42.15087523707186]),r=u([133.3021766080688,37.43975444725098]),i=u([126.87889168628224,36.95488945159779]),o=u([132.9,29.8]),a=u([134,33]),s=u([139.3,33.2]),l=u([139.16,30.5]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),t.moveTo(o[0],o[1]),t.lineTo(a[0],a[1]),t.lineTo(s[0],s[1]),t.lineTo(l[0],l[1])},g.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},g.scale(2200)}function P(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}function T(){var t,r,o,a,s,l,u,c,h,p,g,v,y,m,_,x=e.geoConicConformal().rotate([-3,-46.2]).parallels([0,60]),b=e.geoMercator().center([-53.2,3.9]),w=e.geoMercator().center([-61.03,14.67]),M=e.geoMercator().center([-61.46,16.14]),S=e.geoMercator().center([-62.85,17.92]),j=e.geoMercator().center([-56.23,46.93]),C=e.geoMercator().center([45.16,-12.8]),E=e.geoMercator().center([55.52,-21.13]),T=e.geoMercator().center([165.8,-21.07]),k=e.geoMercator().center([-178.1,-14.3]),A=e.geoMercator().center([-150.55,-17.11]),O=e.geoMercator().center([-150.55,-17.11]),I={point:function(t,e){_=[t,e]}};function B(t){var e=t[0],n=t[1];return _=null,o.point(e,n),_||(a.point(e,n),_)||(s.point(e,n),_)||(l.point(e,n),_)||(u.point(e,n),_)||(c.point(e,n),_)||(h.point(e,n),_)||(p.point(e,n),_)||(g.point(e,n),_)||(v.point(e,n),_)||(y.point(e,n),_)||(m.point(e,n),_)}function L(){return t=r=null,B}return B.invert=function(t){var e=x.scale(),n=x.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.029&&i<.0864&&r>=-.14&&r<-.0996?b:i>=0&&i<.029&&r>=-.14&&r<-.0996?w:i>=-.032&&i<0&&r>=-.14&&r<-.0996?M:i>=-.052&&i<-.032&&r>=-.14&&r<-.0996?S:i>=-.076&&i<.052&&r>=-.14&&r<-.0996?j:i>=-.076&&i<-.052&&r>=.0967&&r<.1371?C:i>=-.052&&i<-.02&&r>=.0967&&r<.1371?E:i>=-.02&&i<.012&&r>=.0967&&r<.1371?T:i>=.012&&i<.033&&r>=.0967&&r<.1371?k:i>=.033&&i<.0864&&r>=.0967&&r<.1371?A:x).invert(t)},B.stream=function(e){return t&&r===e?t:t=P([x.stream(r=e),b.stream(e),w.stream(e),M.stream(e),S.stream(e),j.stream(e),C.stream(e),E.stream(e),T.stream(e),k.stream(e),A.stream(e),O.stream(e)])},B.precision=function(t){return arguments.length?(x.precision(t),b.precision(t),w.precision(t),M.precision(t),S.precision(t),j.precision(t),C.precision(t),E.precision(t),T.precision(t),k.precision(t),A.precision(t),O.precision(t),L()):x.precision()},B.scale=function(t){return arguments.length?(x.scale(t),b.scale(.6*t),w.scale(1.6*t),M.scale(1.4*t),S.scale(5*t),j.scale(1.3*t),C.scale(1.6*t),E.scale(1.2*t),T.scale(.3*t),k.scale(2.7*t),A.scale(.5*t),O.scale(.06*t),B.translate(x.translate())):x.scale()},B.translate=function(t){if(!arguments.length)return x.translate();var e=x.scale(),n=+t[0],r=+t[1];return o=x.translate(t).clipExtent([[n-.0996*e,r-.0908*e],[n+.0967*e,r+.0864*e]]).stream(I),a=b.translate([n-.12*e,r+.0575*e]).clipExtent([[n-.14*e+i,r+.029*e+i],[n-.0996*e-i,r+.0864*e-i]]).stream(I),s=w.translate([n-.12*e,r+.013*e]).clipExtent([[n-.14*e+i,r+0*e+i],[n-.0996*e-i,r+.029*e-i]]).stream(I),l=M.translate([n-.12*e,r-.014*e]).clipExtent([[n-.14*e+i,r-.032*e+i],[n-.0996*e-i,r+0*e-i]]).stream(I),u=S.translate([n-.12*e,r-.044*e]).clipExtent([[n-.14*e+i,r-.052*e+i],[n-.0996*e-i,r-.032*e-i]]).stream(I),c=j.translate([n-.12*e,r-.065*e]).clipExtent([[n-.14*e+i,r-.076*e+i],[n-.0996*e-i,r-.052*e-i]]).stream(I),h=C.translate([n+.117*e,r-.064*e]).clipExtent([[n+.0967*e+i,r-.076*e+i],[n+.1371*e-i,r-.052*e-i]]).stream(I),p=E.translate([n+.116*e,r-.0355*e]).clipExtent([[n+.0967*e+i,r-.052*e+i],[n+.1371*e-i,r-.02*e-i]]).stream(I),g=T.translate([n+.116*e,r-.0048*e]).clipExtent([[n+.0967*e+i,r-.02*e+i],[n+.1371*e-i,r+.012*e-i]]).stream(I),v=k.translate([n+.116*e,r+.022*e]).clipExtent([[n+.0967*e+i,r+.012*e+i],[n+.1371*e-i,r+.033*e-i]]).stream(I),m=O.translate([n+.11*e,r+.045*e]).clipExtent([[n+.0967*e+i,r+.033*e+i],[n+.1371*e-i,r+.06*e-i]]).stream(I),y=A.translate([n+.115*e,r+.075*e]).clipExtent([[n+.0967*e+i,r+.06*e+i],[n+.1371*e-i,r+.0864*e-i]]).stream(I),L()},B.fitExtent=function(t,e){return f(B,t,e)},B.fitSize=function(t,e){return d(B,t,e)},B.drawCompositionBorders=function(t){var e,n,r,i;e=x([-7.938886725111036,43.7219460918835]),n=x([-4.832080896458295,44.12930268549372]),r=x([-4.205299743793263,40.98096346967365]),i=x([-7.071796453126152,40.610037319181444]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([-8.42751373617692,45.32889452553031]),n=x([-5.18599305777107,45.7566442062976]),r=x([-4.832080905154431,44.129302726751426]),i=x([-7.938886737126192,43.72194613263854]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([-9.012656899657046,47.127733821030176]),n=x([-5.6105244772793155,47.579777861410626]),r=x([-5.185993067168585,45.756644248170346]),i=x([-8.427513749141811,45.32889456686326]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([-9.405747558985553,48.26506375557457]),n=x([-5.896175018439575,48.733352850851624]),r=x([-5.610524487556043,47.57977790393761]),i=x([-9.012656913808351,47.127733862971255]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([-9.908436061346974,49.642448789505856]),n=x([-6.262026716233124,50.131426841787174]),r=x([-5.896175029331232,48.73335289377258]),i=x([-9.40574757396393,48.26506379787767]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([11.996907706504462,50.16039028163579]),n=x([15.649907879773343,49.68279246765253]),r=x([15.156712840526632,48.30371557625831]),i=x([11.64122661754411,48.761078240546816]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([11.641226606955788,48.7610781975889]),n=x([15.156712825832164,48.30371553390465]),r=x([14.549932166241172,46.4866532486199]),i=x([11.204443787952183,46.91899233914248]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([11.204443778297161,46.918992296823646]),n=x([14.549932152815039,46.486653206856396]),r=x([13.994409796764009,44.695833444323256]),i=x([10.805306599253848,45.105133870684924]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([10.805306590412085,45.10513382903308]),n=x([13.99440978444733,44.695833403183606]),r=x([13.654633799024392,43.53552468558152]),i=x([10.561516803980956,43.930671459798624]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([10.561516795617383,43.93067141859757]),n=x([13.654633787361952,43.5355246448671]),r=x([12.867691604239901,40.640701985019405]),i=x([9.997809515987688,41.00288343254471]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([10.8,42.4]),n=x([12.8,42.13]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1])},B.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},B.scale(2700)}function k(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}function A(){var t,r,o,a,s,l,u,c,h,p,g,v,y,m,_,x=e.geoConicConformal().rotate([-10,-53]).parallels([0,60]),b=e.geoMercator().center([-61.46,16.14]),w=e.geoMercator().center([-53.2,3.9]),M=e.geoConicConformal().rotate([27.8,-38.9]).parallels([0,60]),S=e.geoConicConformal().rotate([25.43,-37.398]).parallels([0,60]),j=e.geoConicConformal().rotate([31.17,-39.539]).parallels([0,60]),C=e.geoConicConformal().rotate([17,-32.7]).parallels([0,60]),E=e.geoConicConformal().rotate([16,-28.5]).parallels([0,60]),P=e.geoMercator().center([-61.03,14.67]),T=e.geoMercator().center([45.16,-12.8]),A=e.geoMercator().center([55.52,-21.13]),O=e.geoConicConformal().rotate([-14.4,-35.95]).parallels([0,60]),I={point:function(t,e){_=[t,e]}};function B(t){var e=t[0],n=t[1];return _=null,o.point(e,n),_||(s.point(e,n),_)||(g.point(e,n),_)||(a.point(e,n),_)||(p.point(e,n),_)||(h.point(e,n),_)||(v.point(e,n),_)||(y.point(e,n),_)||(m.point(e,n),_)||(l.point(e,n),_)||(u.point(e,n),_)||(c.point(e,n),_)}function L(){return t=r=null,B}return B.invert=function(t){var e=x.scale(),n=x.translate(),r=(t[0]-(n[0]+.08*e))/e,i=(t[1]-n[1])/e;return(i>=-.31&&i<-.24&&r>=.14&&r<.24?b:i>=-.24&&i<-.17&&r>=.14&&r<.24?w:i>=-.17&&i<-.12&&r>=.21&&r<.24?S:i>=-.17&&i<-.14&&r>=.14&&r<.165?j:i>=-.17&&i<-.1&&r>=.14&&r<.24?M:i>=-.1&&i<-.03&&r>=.14&&r<.24?C:i>=-.03&&i<.04&&r>=.14&&r<.24?E:i>=-.31&&i<-.24&&r>=.24&&r<.34?P:i>=-.24&&i<-.17&&r>=.24&&r<.34?T:i>=-.17&&i<-.1&&r>=.24&&r<.34?A:i>=-.1&&i<-.03&&r>=.24&&r<.34?O:x).invert(t)},B.stream=function(e){return t&&r===e?t:t=k([x.stream(r=e),w.stream(e),P.stream(e),b.stream(e),E.stream(e),C.stream(e),T.stream(e),A.stream(e),O.stream(e),M.stream(e),S.stream(e),j.stream(e)])},B.precision=function(t){return arguments.length?(x.precision(t),w.precision(t),P.precision(t),b.precision(t),E.precision(t),C.precision(t),T.precision(t),A.precision(t),O.precision(t),M.precision(t),S.precision(t),j.precision(t),L()):x.precision()},B.scale=function(t){return arguments.length?(x.scale(t),b.scale(3*t),w.scale(.8*t),P.scale(3.5*t),A.scale(2.7*t),M.scale(2*t),S.scale(2*t),j.scale(2*t),C.scale(3*t),E.scale(t),T.scale(5.5*t),O.scale(6*t),B.translate(x.translate())):x.scale()},B.translate=function(t){if(!arguments.length)return x.translate();var e=x.scale(),n=+t[0],r=+t[1];return o=x.translate([n-.08*e,r]).clipExtent([[n-.51*e,r-.33*e],[n+.5*e,r+.33*e]]).stream(I),a=b.translate([n+.19*e,r-.275*e]).clipExtent([[n+.14*e+i,r-.31*e+i],[n+.24*e-i,r-.24*e-i]]).stream(I),s=w.translate([n+.19*e,r-.205*e]).clipExtent([[n+.14*e+i,r-.24*e+i],[n+.24*e-i,r-.17*e-i]]).stream(I),l=M.translate([n+.19*e,r-.135*e]).clipExtent([[n+.14*e+i,r-.17*e+i],[n+.24*e-i,r-.1*e-i]]).stream(I),u=S.translate([n+.225*e,r-.147*e]).clipExtent([[n+.21*e+i,r-.17*e+i],[n+.24*e-i,r-.12*e-i]]).stream(I),c=j.translate([n+.153*e,r-.15*e]).clipExtent([[n+.14*e+i,r-.17*e+i],[n+.165*e-i,r-.14*e-i]]).stream(I),h=C.translate([n+.19*e,r-.065*e]).clipExtent([[n+.14*e+i,r-.1*e+i],[n+.24*e-i,r-.03*e-i]]).stream(I),p=E.translate([n+.19*e,r+.005*e]).clipExtent([[n+.14*e+i,r-.03*e+i],[n+.24*e-i,r+.04*e-i]]).stream(I),g=P.translate([n+.29*e,r-.275*e]).clipExtent([[n+.24*e+i,r-.31*e+i],[n+.34*e-i,r-.24*e-i]]).stream(I),v=T.translate([n+.29*e,r-.205*e]).clipExtent([[n+.24*e+i,r-.24*e+i],[n+.34*e-i,r-.17*e-i]]).stream(I),y=A.translate([n+.29*e,r-.135*e]).clipExtent([[n+.24*e+i,r-.17*e+i],[n+.34*e-i,r-.1*e-i]]).stream(I),m=O.translate([n+.29*e,r-.065*e]).clipExtent([[n+.24*e+i,r-.1*e+i],[n+.34*e-i,r-.03*e-i]]).stream(I),L()},B.fitExtent=function(t,e){return f(B,t,e)},B.fitSize=function(t,e){return d(B,t,e)},B.drawCompositionBorders=function(t){var e,n,r,i;e=x([42.45755610828648,63.343658547914934]),n=x([52.65837266667029,59.35045080290929]),r=x([47.19754502247785,56.12653496548117]),i=x([37.673034273363044,59.61638268506111]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([59.41110754003403,62.35069727399336]),n=x([66.75050228640794,57.11797303636038]),r=x([60.236065725110436,54.63331433818992]),i=x([52.65837313153311,59.350450804599355]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([48.81091130080243,66.93353402634641]),n=x([59.41110730654679,62.35069740653086]),r=x([52.6583728974441,59.3504509222445]),i=x([42.45755631675751,63.34365868805821]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([31.054198418446475,52.1080673766184]),n=x([39.09869284884117,49.400700047190554]),r=x([36.0580811499175,46.02944174908498]),i=x([28.690508588835726,48.433126979386415]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([33.977877745912025,55.849945501331]),n=x([42.75328432167726,52.78455122462353]),r=x([39.09869297540224,49.400700176148625]),i=x([31.05419851807008,52.10806751810923]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([52.658372900759296,59.35045068526415]),n=x([60.23606549583304,54.63331423800264]),r=x([54.6756370953122,51.892298789399455]),i=x([47.19754524788189,56.126534861222794]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([47.19754506082455,56.126534735591456]),n=x([54.675636900123514,51.892298681337095]),r=x([49.94448648951486,48.98775484983285]),i=x([42.75328468716108,52.78455126060818]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([42.75328453416769,52.78455113209101]),n=x([49.94448632339758,48.98775473706457]),r=x([45.912339990394315,45.99361784987003]),i=x([39.09869317356607,49.40070009378711]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([37.673034114296634,59.61638254183119]),n=x([47.197544835420544,56.126534839849846]),r=x([42.75328447467064,52.78455135314068]),i=x([33.977877870363905,55.849945644671145]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([44.56748486446032,57.26489367845818]),r=x([43.9335791193588,53.746540942601726]),i=x([43,56]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=x([37.673034114296634,59.61638254183119]),n=x([40.25902691953466,58.83002044222639]),r=x([38.458270492742024,57.26232178028002]),i=x([35.97754948030156,58.00266637992386]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath()},B.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},B.scale(750)}function O(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}function I(){var t,o,a,s,l,u,c=e.geoConicConformal().rotate([-5.5,-52.2]).parallels([0,60]),h=e.geoMercator().center([-68.25,12.2]),p=e.geoMercator().center([-63.1,17.5]),g={point:function(t,e){u=[t,e]}};function v(t){var e=r.__read(t,2),n=e[0],i=e[1];return u=null,a.point(n,i),u||(s.point(n,i),u)||(l.point(n,i),u)}function y(){return t=o=null,v}return v.invert=function(t){var e=c.scale(),n=c.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.0067&&i<.0015&&r>=-.0232&&r<-.0154?h:i>=-.022&&i<-.014&&r>=-.023&&r<-.014?p:c).invert(t)},v.stream=function(e){return t&&o===e?t:t=O([c.stream(o=e),h.stream(e),p.stream(e)])},v.precision=function(t){return arguments.length?(c.precision(t),h.precision(t),p.precision(t),y()):c.precision()},v.scale=function(t){return arguments.length?(c.scale(t),h.scale(t),p.scale(t),v.translate(c.translate())):c.scale()},v.translate=function(t){if(!arguments.length)return c.translate();var e=c.scale(),n=+t[0],r=+t[1];return a=c.translate(t).clipExtent([[n-.0245*e,r-.026*e],[n+.023*e,r+.026*e]]).stream(g),s=h.translate([n-.0186*e,r-.00325*e]).clipExtent([[n-.0232*e+i,r-.0067*e+i],[n-.0154*e-i,r+.0015*e-i]]).stream(g),l=p.translate([n-.0185*e,r-.017*e]).clipExtent([[n-.023*e+i,r-.022*e+i],[n-.014*e-i,r-.014*e-i]]).stream(g),y()},v.fitExtent=function(t,e){return f(v,t,e)},v.fitSize=function(t,e){return d(v,t,e)},v.drawCompositionBorders=function(t){var e=c([3.30573,52.5562]),n=c([4.043,52.572]),r=c([4.0646,52.1017]),i=c([3.3382,52.0861]),o=c([3.262,53.439]),a=c([4.1373,53.4571]),s=c([4.1574,52.9946]),l=c([3.2951,52.9768]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),t.moveTo(o[0],o[1]),t.lineTo(a[0],a[1]),t.lineTo(s[0],s[1]),t.lineTo(s[0],s[1]),t.lineTo(l[0],l[1]),t.closePath()},v.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},v.scale(4200)}function B(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}function L(){var t,r,o,a,s,l=e.geoMercator().center([105.25,4]),u=e.geoMercator().center([118.65,2.86]),c={point:function(t,e){s=[t,e]}};function h(t){var e=t[0],n=t[1];return s=null,o.point(e,n),s||(a.point(e,n),s)}function p(){return t=r=null,h}return h.invert=function(t){var e=l.scale(),n=l.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.0521&&i<.0229&&r>=-.0111&&r<.1?u:l).invert(t)},h.stream=function(e){return t&&r===e?t:t=B([l.stream(r=e),u.stream(e)])},h.precision=function(t){return arguments.length?(l.precision(t),u.precision(t),p()):l.precision()},h.scale=function(t){return arguments.length?(l.scale(t),u.scale(.615*t),h.translate(l.translate())):l.scale()},h.translate=function(t){if(!arguments.length)return l.translate();var e=l.scale(),n=+t[0],r=+t[1];return o=l.translate(t).clipExtent([[n-.11*e,r-.0521*e],[n-.0111*e,r+.0521*e]]).stream(c),a=u.translate([n+.09*e,r-0*e]).clipExtent([[n-.0111*e+i,r-.0521*e+i],[n+.1*e-i,r+.024*e-i]]).stream(c),p()},h.fitExtent=function(t,e){return f(h,t,e)},h.fitSize=function(t,e){return d(h,t,e)},h.drawCompositionBorders=function(t){var e=l([106.3214,2.0228]),n=l([105.1843,2.3761]),r=l([104.2151,3.3618]),i=l([104.215,4.5651]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1])},h.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},h.scale(4800)}function F(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}function D(){var t,r,o,a,s,l,u=e.geoMercator().rotate([-9.5,-1.5]),c=e.geoMercator().rotate([-8.6,-3.5]),h=e.geoMercator().rotate([-5.6,1.45]),p={point:function(t,e){l=[t,e]}};function g(t){var e=t[0],n=t[1];return l=null,o.point(e,n),l||(a.point(e,n),l)||(s.point(e,n),l)}function v(){return t=r=null,g}return g.invert=function(t){var e=u.scale(),n=u.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.02&&i<0&&r>=-.038&&r<-.005?c:i>=0&&i<.02&&r>=-.038&&r<-.005?h:u).invert(t)},g.stream=function(e){return t&&r===e?t:t=F([u.stream(r=e),c.stream(e),h.stream(e)])},g.precision=function(t){return arguments.length?(u.precision(t),c.precision(t),h.precision(t),v()):u.precision()},g.scale=function(t){return arguments.length?(u.scale(t),c.scale(1.5*t),h.scale(4*t),g.translate(u.translate())):u.scale()},g.translate=function(t){if(!arguments.length)return u.translate();var e=u.scale(),n=+t[0],r=+t[1];return o=u.translate(t).clipExtent([[n-.005*e,r-.02*e],[n+.038*e,r+.02*e]]).stream(p),a=c.translate([n-.025*e,r-.01*e]).clipExtent([[n-.038*e+i,r-.02*e+i],[n-.005*e-i,r+0*e-i]]).stream(p),s=h.translate([n-.025*e,r+.01*e]).clipExtent([[n-.038*e+i,r-0*e+i],[n-.005*e-i,r+.02*e-i]]).stream(p),v()},g.fitExtent=function(t,e){return f(g,t,e)},g.fitSize=function(t,e){return d(g,t,e)},g.drawCompositionBorders=function(t){var e,n,r,i;e=u([9.21327272751682,2.645820439454123]),n=u([11.679126293239872,2.644755519268689]),r=u([11.676845389029227,.35307824637606433]),i=u([9.213572917774014,.35414205204417754]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=u([7.320873711543669,2.64475551449975]),n=u([9.213272722738658,2.645820434679803]),r=u([9.213422896480349,1.4999812505283054]),i=u([7.322014760520787,1.4989168878985566]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=u([7.3220147605302905,1.4989168783492766]),n=u([9.213422896481598,1.499981240979021]),r=u([9.213572912999604,.354142056817247]),i=u([7.323154615739809,.353078251154504]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath()},g.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},g.scale(12e3)}function R(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}function N(){var t,r,o,a,s,l=e.geoAlbers().rotate([4.4,.8]).center([0,55.4]).parallels([50,60]),u=e.geoAlbers().rotate([4.4,.8]).center([0,55.4]).parallels([50,60]),c={point:function(t,e){s=[t,e]}};function h(t){var e=t[0],n=t[1];return s=null,o.point(e,n),s||(a.point(e,n),s)}function p(){return t=r=null,h}return h.invert=function(t){var e=l.scale(),n=l.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.089&&i<.06&&r>=.029&&r<.046?u:l).invert(t)},h.stream=function(e){return t&&r===e?t:t=R([l.stream(r=e),u.stream(e)])},h.precision=function(t){return arguments.length?(l.precision(t),u.precision(t),p()):l.precision()},h.scale=function(t){return arguments.length?(l.scale(t),u.scale(t),h.translate(l.translate())):l.scale()},h.translate=function(t){if(!arguments.length)return l.translate();var e=l.scale(),n=+t[0],r=+t[1];return o=l.translate(t).clipExtent([[n-.065*e,r-.089*e],[n+.075*e,r+.089*e]]).stream(c),a=u.translate([n+.01*e,r+.025*e]).clipExtent([[n+.029*e+i,r-.089*e+i],[n+.046*e-i,r-.06*e-i]]).stream(c),p()},h.fitExtent=function(t,e){return f(h,t,e)},h.fitSize=function(t,e){return d(h,t,e)},h.drawCompositionBorders=function(t){var e,n,r,i;e=l([-1.113205870242365,59.64920050773357]),n=l([.807899092399606,59.59085836472269]),r=l([.5778611961420386,57.93467822832577]),i=l([-1.25867782078448,57.99029450085142]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath()},h.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},h.scale(2800)}t.geoAlbersUk=N,t.geoAlbersUsa=g,t.geoAlbersUsaTerritories=y,t.geoConicConformalEurope=A,t.geoConicConformalFrance=T,t.geoConicConformalNetherlands=I,t.geoConicConformalPortugal=b,t.geoConicConformalSpain=_,t.geoConicEquidistantJapan=E,t.geoMercatorEcuador=M,t.geoMercatorEquatorialGuinea=D,t.geoMercatorMalaysia=L,t.geoTransverseMercatorChile=j,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(/*! d3-geo */"./node_modules/_d3-geo@2.0.1@d3-geo/dist/d3-geo.js"),n(/*! d3-path */"./node_modules/_d3-path@2.0.0@d3-path/dist/d3-path.js"))},"./node_modules/_d3-dsv@1.2.0@d3-dsv/dist/d3-dsv.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_d3-dsv@1.2.0@d3-dsv/dist/d3-dsv.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e,n){!function(t){var e={},n={},r=34,i=10,o=13;function a(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function s(t,e){var n=a(t);return function(r,i){return e(n(r),i,t)}}function l(t){var e=Object.create(null),n=[];return t.forEach((function(t){for(var r in t)r in e||n.push(e[r]=r)})),n}function u(t,e){var n=t+"",r=n.length;return r<e?new Array(e-r+1).join(0)+n:n}function c(t){return t<0?"-"+u(-t,6):t>9999?"+"+u(t,6):u(t,4)}function h(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":c(t.getUTCFullYear())+"-"+u(t.getUTCMonth()+1,2)+"-"+u(t.getUTCDate(),2)+(i?"T"+u(e,2)+":"+u(n,2)+":"+u(r,2)+"."+u(i,3)+"Z":r?"T"+u(e,2)+":"+u(n,2)+":"+u(r,2)+"Z":n||e?"T"+u(e,2)+":"+u(n,2)+"Z":"")}function f(t){var u=new RegExp('["'+t+"\n\r]"),c=t.charCodeAt(0);function f(t,e){var n,r,i=d(t,(function(t,i){if(n)return n(t,i-1);r=t,n=e?s(t,e):a(t)}));return i.columns=r||[],i}function d(t,a){var s,l=[],u=t.length,h=0,f=0,d=u<=0,p=!1;function g(){if(d)return n;if(p)return p=!1,e;var a,s,l=h;if(t.charCodeAt(l)===r){for(;h++<u&&t.charCodeAt(h)!==r||t.charCodeAt(++h)===r;);return(a=h)>=u?d=!0:(s=t.charCodeAt(h++))===i?p=!0:s===o&&(p=!0,t.charCodeAt(h)===i&&++h),t.slice(l+1,a-1).replace(/""/g,'"')}for(;h<u;){if((s=t.charCodeAt(a=h++))===i)p=!0;else if(s===o)p=!0,t.charCodeAt(h)===i&&++h;else if(s!==c)continue;return t.slice(l,a)}return d=!0,t.slice(l,u)}for(t.charCodeAt(u-1)===i&&--u,t.charCodeAt(u-1)===o&&--u;(s=g())!==n;){for(var v=[];s!==e&&s!==n;)v.push(s),s=g();a&&null==(v=a(v,f++))||l.push(v)}return l}function p(e,n){return e.map((function(e){return n.map((function(t){return _(e[t])})).join(t)}))}function g(e,n){return null==n&&(n=l(e)),[n.map(_).join(t)].concat(p(e,n)).join("\n")}function v(t,e){return null==e&&(e=l(t)),p(t,e).join("\n")}function y(t){return t.map(m).join("\n")}function m(e){return e.map(_).join(t)}function _(t){return null==t?"":t instanceof Date?h(t):u.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:f,parseRows:d,format:g,formatBody:v,formatRows:y,formatRow:m,formatValue:_}}var d=f(","),p=d.parse,g=d.parseRows,v=d.format,y=d.formatBody,m=d.formatRows,_=d.formatRow,x=d.formatValue,b=f("\t"),w=b.parse,M=b.parseRows,S=b.format,j=b.formatBody,C=b.formatRows,E=b.formatRow,P=b.formatValue;function T(t){for(var e in t){var n,r,i=t[e].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(n=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;k&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=n;else i=null;t[e]=i}return t}var k=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();t.autoType=T,t.csvFormat=v,t.csvFormatBody=y,t.csvFormatRow=_,t.csvFormatRows=m,t.csvFormatValue=x,t.csvParse=p,t.csvParseRows=g,t.dsvFormat=f,t.tsvFormat=S,t.tsvFormatBody=j,t.tsvFormatRow=E,t.tsvFormatRows=C,t.tsvFormatValue=P,t.tsvParse=w,t.tsvParseRows=M,Object.defineProperty(t,"__esModule",{value:!0})}(e)},"./node_modules/_d3-geo-projection@2.1.2@d3-geo-projection/build/d3-geo-projection.js":
- /*!********************************************************************************************!*\
- !*** ./node_modules/_d3-geo-projection@2.1.2@d3-geo-projection/build/d3-geo-projection.js ***!
- \********************************************************************************************/
- /*! no static exports found */function(t,e,n){!function(t,e,n){var r=Math.abs,i=Math.atan,o=Math.atan2,a=Math.cos,s=Math.exp,l=Math.floor,u=Math.log,c=Math.max,h=Math.min,f=Math.pow,d=Math.round,p=Math.sign||function(t){return t>0?1:t<0?-1:0},g=Math.sin,v=Math.tan,y=1e-6,m=1e-12,_=Math.PI,x=_/2,b=_/4,w=Math.SQRT1_2,M=A(2),S=A(_),j=2*_,C=180/_,E=_/180;function P(t){return t?t/Math.sin(t):1}function T(t){return t>1?x:t<-1?-x:Math.asin(t)}function k(t){return t>1?0:t<-1?_:Math.acos(t)}function A(t){return t>0?Math.sqrt(t):0}function O(t){return((t=s(2*t))-1)/(t+1)}function I(t){return(s(t)-s(-t))/2}function B(t){return(s(t)+s(-t))/2}function L(t){return u(t+A(t*t+1))}function F(t){return u(t+A(t*t-1))}function D(t){var e=v(t/2),n=2*u(a(t/2))/(e*e);function i(t,e){var r=a(t),i=a(e),o=g(e),s=i*r,l=-((1-s?u((1+s)/2)/(1-s):-.5)+n/(1+s));return[l*i*g(t),l*o]}return i.invert=function(e,i){var s,l=A(e*e+i*i),c=-t/2,h=50;if(!l)return[0,0];do{var f=c/2,d=a(f),p=g(f),m=v(f),_=u(1/d);c-=s=(2/m*_-n*m-l)/(-_/(p*p)+1-n/(2*d*d))}while(r(s)>y&&--h>0);var x=g(c);return[o(e*x,l*a(c)),T(i*x/l)]},i}var R=function(){var t=x,n=e.geoProjectionMutator(D),r=n(t);return r.radius=function(e){return arguments.length?n(t=e*E):t*C},r.scale(179.976).clipAngle(147)};function N(t,e){var n=a(e),r=P(k(n*a(t/=2)));return[2*n*g(t)*r,g(e)*r]}N.invert=function(t,e){if(!(t*t+4*e*e>_*_+y)){var n=t,i=e,o=25;do{var s,l=g(n),u=g(n/2),c=a(n/2),h=g(i),f=a(i),d=g(2*i),p=h*h,v=f*f,m=u*u,x=1-v*c*c,b=x?k(f*c)*A(s=1/x):s=0,w=2*b*f*u-t,M=b*h-e,S=s*(v*m+b*f*c*p),j=s*(.5*l*d-2*b*h*u),C=.25*s*(d*u-b*h*v*l),E=s*(p*c+b*m*f),P=j*C-E*S;if(!P)break;var T=(M*j-w*E)/P,O=(w*C-M*S)/P;n-=T,i-=O}while((r(T)>y||r(O)>y)&&--o>0);return[n,i]}};var z=function(){return e.geoProjection(N).scale(152.63)};function H(t){var e=g(t),n=a(t),i=t>=0?1:-1,s=v(i*t),l=(1+e-n)/2;function u(t,r){var u=a(r),c=a(t/=2);return[(1+u)*g(t),(i*r>-o(c,s)-.001?0:10*-i)+l+g(r)*n-(1+u)*e*c]}return u.invert=function(t,u){var c=0,h=0,f=50;do{var d=a(c),p=g(c),v=a(h),m=g(h),_=1+v,x=_*p-t,b=l+m*n-_*e*d-u,w=_*d/2,M=-p*m,S=e*_*p/2,j=n*v+e*d*m,C=M*S-j*w,E=(b*M-x*j)/C/2,P=(x*S-b*w)/C;c-=E,h-=P}while((r(E)>y||r(P)>y)&&--f>0);return i*h>-o(a(c),s)-.001?[2*c,h]:null},u}var G=function(){var t=20*E,n=t>=0?1:-1,r=v(n*t),i=e.geoProjectionMutator(H),s=i(t),l=s.stream;return s.parallel=function(e){return arguments.length?(r=v((n=(t=e*E)>=0?1:-1)*t),i(t)):t*C},s.stream=function(e){var i=s.rotate(),u=l(e),c=(s.rotate([0,0]),l(e));return s.rotate(i),u.sphere=function(){c.polygonStart(),c.lineStart();for(var e=-180*n;n*e<180;e+=90*n)c.point(e,90*n);for(;n*(e-=t)>=-180;)c.point(e,n*-o(a(e*E/2),r)*C);c.lineEnd(),c.polygonEnd()},u},s.scale(218.695).center([0,28.0974])};function Y(t,e){var n=v(e/2),r=A(1-n*n),i=1+r*a(t/=2),o=g(t)*r/i,s=n/i,l=o*o,u=s*s;return[4/3*o*(3+l-3*u),4/3*s*(3+3*l-u)]}Y.invert=function(t,e){if(e*=3/8,!(t*=3/8)&&r(e)>1)return null;var n=1+t*t+e*e,i=A((n-A(n*n-4*e*e))/2),s=T(i)/3,l=i?F(r(e/i))/3:L(r(t))/3,u=a(s),c=B(l),h=c*c-u*u;return[2*p(t)*o(I(l)*u,.25-h),2*p(e)*o(c*g(s),.25+h)]};var V=function(){return e.geoProjection(Y).scale(66.1603)},X=A(8),q=u(1+M);function W(t,e){var n=r(e);return n<b?[t,u(v(b+e/2))]:[t*a(n)*(2*M-1/g(n)),p(e)*(2*M*(n-b)-u(v(n/2)))]}W.invert=function(t,e){if((o=r(e))<q)return[t,2*i(s(e))-x];var n,o,l=b,c=25;do{var h=a(l/2),f=v(l/2);l-=n=(X*(l-b)-u(f)-o)/(X-h*h/(2*f))}while(r(n)>m&&--c>0);return[t/(a(l)*(X-1/g(l))),p(e)*l]};var U=function(){return e.geoProjection(W).scale(112.314)};function Z(t){var n=2*_/t;function s(t,i){var s=e.geoAzimuthalEquidistantRaw(t,i);if(r(t)>x){var l=o(s[1],s[0]),u=A(s[0]*s[0]+s[1]*s[1]),c=n*d((l-x)/n)+x,h=o(g(l-=c),2-a(l));l=c+T(_/u*g(h))-h,s[0]=u*a(l),s[1]=u*g(l)}return s}return s.invert=function(t,r){var s=A(t*t+r*r);if(s>x){var l=o(r,t),u=n*d((l-x)/n)+x,c=l>u?-1:1,h=s*a(u-l),f=1/v(c*k((h-_)/A(_*(_-2*h)+s*s)));l=u+2*i((f+c*A(f*f-3))/3),t=s*a(l),r=s*g(l)}return e.geoAzimuthalEquidistantRaw.invert(t,r)},s}var K=function(){var t=5,n=e.geoProjectionMutator(Z),r=n(t),i=r.stream,s=.01,l=-a(s*E),u=g(s*E);return r.lobes=function(e){return arguments.length?n(t=+e):t},r.stream=function(e){var n=r.rotate(),c=i(e),h=(r.rotate([0,0]),i(e));return r.rotate(n),c.sphere=function(){h.polygonStart(),h.lineStart();for(var e=0,n=360/t,r=2*_/t,i=90-180/t,c=x;e<t;++e,i-=n,c-=r)h.point(o(u*a(c),l)*C,T(u*g(c))*C),i<-90?(h.point(-90,-180-i-s),h.point(-90,-180-i+s)):(h.point(90,i+s),h.point(90,i-s));h.lineEnd(),h.polygonEnd()},c},r.scale(87.8076).center([0,17.1875]).clipAngle(179.999)};function Q(t,e){var n,i=t*g(e),o=30;do{e-=n=(e+g(e)-i)/(1+a(e))}while(r(n)>y&&--o>0);return e/2}function $(t,e,n){function r(r,i){return[t*r*a(i=Q(n,i)),e*g(i)]}return r.invert=function(r,i){return i=T(i/e),[r/(t*a(i)),T((2*i+g(2*i))/n)]},r}var J=$(M/x,M,_),tt=function(){return e.geoProjection(J).scale(169.529)},et=2.00276,nt=1.11072;function rt(t,e){var n=Q(_,e);return[et*t/(1/a(e)+nt/a(n)),(e+M*g(n))/et]}rt.invert=function(t,e){var n,i,o=et*e,s=e<0?-b:b,l=25;do{i=o-M*g(s),s-=n=(g(2*s)+2*s-_*g(i))/(2*a(2*s)+2+_*a(i)*M*a(s))}while(r(n)>y&&--l>0);return i=o-M*g(s),[t*(1/a(i)+nt/a(s))/et,i]};var it=function(){return e.geoProjection(rt).scale(160.857)},ot=function(t){var n=0,r=e.geoProjectionMutator(t),i=r(n);return i.parallel=function(t){return arguments.length?r(n=t*E):n*C},i};function at(t,e){return[t*a(e),e]}at.invert=function(t,e){return[t/a(e),e]};var st=function(){return e.geoProjection(at).scale(152.63)};function lt(t){if(!t)return at;var e=1/v(t);function n(n,r){var i=e+t-r,o=i?n*a(r)/i:i;return[i*g(o),e-i*a(o)]}return n.invert=function(n,r){var i=A(n*n+(r=e-r)*r),s=e+t-i;return[i/a(s)*o(n,r),s]},n}var ut=function(){return ot(lt).scale(123.082).center([0,26.1441]).parallel(45)};function ct(t){function e(e,n){var r=x-n,i=r?e*t*g(r)/r:r;return[r*g(i)/t,x-r*a(i)]}return e.invert=function(e,n){var r=e*t,i=x-n,a=A(r*r+i*i),s=o(r,i);return[(a?a/g(a):1)*s/t,x-a]},e}var ht=function(){var t=.5,n=e.geoProjectionMutator(ct),r=n(t);return r.fraction=function(e){return arguments.length?n(t=+e):t},r.scale(158.837)},ft=$(1,4/_,_),dt=function(){return e.geoProjection(ft).scale(152.63)};function pt(t,e,n,i,s,l){var u,c=a(l);if(r(t)>1||r(l)>1)u=k(n*s+e*i*c);else{var h=g(t/2),f=g(l/2);u=2*T(A(h*h+e*i*f*f))}return r(u)>y?[u,o(i*g(l),e*s-n*i*c)]:[0,0]}function gt(t,e,n){return k((t*t+e*e-n*n)/(2*t*e))}function vt(t){return t-2*_*l((t+_)/(2*_))}function yt(t,e,n){for(var r,i=[[t[0],t[1],g(t[1]),a(t[1])],[e[0],e[1],g(e[1]),a(e[1])],[n[0],n[1],g(n[1]),a(n[1])]],o=i[2],s=0;s<3;++s,o=r)r=i[s],o.v=pt(r[1]-o[1],o[3],o[2],r[3],r[2],r[0]-o[0]),o.point=[0,0];var l=gt(i[0].v[0],i[2].v[0],i[1].v[0]),u=gt(i[0].v[0],i[1].v[0],i[2].v[0]),c=_-l;i[2].point[1]=0,i[0].point[0]=-(i[1].point[0]=i[0].v[0]/2);var h=[i[2].point[0]=i[0].point[0]+i[2].v[0]*a(l),2*(i[0].point[1]=i[1].point[1]=i[2].v[0]*g(l))];function f(t,e){var n,r=g(e),o=a(e),s=new Array(3);for(n=0;n<3;++n){var l=i[n];if(s[n]=pt(e-l[1],l[3],l[2],o,r,t-l[0]),!s[n][0])return l.point;s[n][1]=vt(s[n][1]-l.v[1])}var f=h.slice();for(n=0;n<3;++n){var d=2==n?0:n+1,p=gt(i[n].v[0],s[n][0],s[d][0]);s[n][1]<0&&(p=-p),n?1==n?(p=u-p,f[0]-=s[n][0]*a(p),f[1]-=s[n][0]*g(p)):(p=c-p,f[0]+=s[n][0]*a(p),f[1]+=s[n][0]*g(p)):(f[0]+=s[n][0]*a(p),f[1]-=s[n][0]*g(p))}return f[0]/=3,f[1]/=3,f}return f}function mt(t){return t[0]*=E,t[1]*=E,t}function _t(){return xt([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function xt(t,n,r){var i=e.geoCentroid({type:"MultiPoint",coordinates:[t,n,r]}),o=[-i[0],-i[1]],a=e.geoRotation(o),s=e.geoProjection(yt(mt(a(t)),mt(a(n)),mt(a(r)))).rotate(o),l=s.center;return delete s.rotate,s.center=function(t){return arguments.length?l(a(t)):a.invert(l())},s.clipAngle(90)}function bt(t,e){var n=A(1-g(e));return[2/S*t*n,S*(1-n)]}bt.invert=function(t,e){var n=(n=e/S-1)*n;return[n>0?t*A(_/n)/2:0,T(1-n)]};var wt=function(){return e.geoProjection(bt).scale(95.6464).center([0,30])};function Mt(t){var e=v(t);function n(t,n){return[t,(t?t/g(t):1)*(g(n)*a(t)-e*a(n))]}return n.invert=e?function(t,n){t&&(n*=g(t)/t);var r=a(t);return[t,2*o(A(r*r+e*e-n*n)-r,e-n)]}:function(t,e){return[t,T(t?e*v(t)/t:e)]},n}var St=function(){return ot(Mt).scale(249.828).clipAngle(90)},jt=A(3);function Ct(t,e){return[jt*t*(2*a(2*e/3)-1)/S,jt*S*g(e/3)]}Ct.invert=function(t,e){var n=3*T(e/(jt*S));return[S*t/(jt*(2*a(2*n/3)-1)),n]};var Et=function(){return e.geoProjection(Ct).scale(156.19)};function Pt(t){var e=a(t);function n(t,n){return[t*e,g(n)/e]}return n.invert=function(t,n){return[t/e,T(n*e)]},n}var Tt=function(){return ot(Pt).parallel(38.58).scale(195.044)};function kt(t){var e=a(t);function n(t,n){return[t*e,(1+e)*v(n/2)]}return n.invert=function(t,n){return[t/e,2*i(n/(1+e))]},n}var At=function(){return ot(kt).scale(124.75)};function Ot(t,e){var n=A(8/(3*_));return[n*t*(1-r(e)/_),n*e]}Ot.invert=function(t,e){var n=A(8/(3*_)),i=e/n;return[t/(n*(1-r(i)/_)),i]};var It=function(){return e.geoProjection(Ot).scale(165.664)};function Bt(t,e){var n=A(4-3*g(r(e)));return[2/A(6*_)*t*n,p(e)*A(2*_/3)*(2-n)]}Bt.invert=function(t,e){var n=2-r(e)/A(2*_/3);return[t*A(6*_)/(2*n),p(e)*T((4-n*n)/3)]};var Lt=function(){return e.geoProjection(Bt).scale(165.664)};function Ft(t,e){var n=A(_*(4+_));return[2/n*t*(1+A(1-4*e*e/(_*_))),4/n*e]}Ft.invert=function(t,e){var n=A(_*(4+_))/2;return[t*n/(1+A(1-e*e*(4+_)/(4*_))),e*n/2]};var Dt=function(){return e.geoProjection(Ft).scale(180.739)};function Rt(t,e){var n=(2+x)*g(e);e/=2;for(var i=0,o=1/0;i<10&&r(o)>y;i++){var s=a(e);e-=o=(e+g(e)*(s+2)-n)/(2*s*(1+s))}return[2/A(_*(4+_))*t*(1+a(e)),2*A(_/(4+_))*g(e)]}Rt.invert=function(t,e){var n=e*A((4+_)/_)/2,r=T(n),i=a(r);return[t/(2/A(_*(4+_))*(1+i)),T((r+n*(i+2))/(2+x))]};var Nt=function(){return e.geoProjection(Rt).scale(180.739)};function zt(t,e){return[t*(1+a(e))/A(2+_),2*e/A(2+_)]}zt.invert=function(t,e){var n=A(2+_),r=e*n/2;return[n*t/(1+a(r)),r]};var Ht=function(){return e.geoProjection(zt).scale(173.044)};function Gt(t,e){for(var n=(1+x)*g(e),i=0,o=1/0;i<10&&r(o)>y;i++)e-=o=(e+g(e)-n)/(1+a(e));return n=A(2+_),[t*(1+a(e))/n,2*e/n]}Gt.invert=function(t,e){var n=1+x,r=A(n/2);return[2*t*r/(1+a(e*=r)),T((e+g(e))/n)]};var Yt=function(){return e.geoProjection(Gt).scale(173.044)},Vt=3+2*M;function Xt(t,e){var n=g(t/=2),r=a(t),o=A(a(e)),s=a(e/=2),l=g(e)/(s+M*r*o),c=A(2/(1+l*l)),h=A((M*s+(r+n)*o)/(M*s+(r-n)*o));return[Vt*(c*(h-1/h)-2*u(h)),Vt*(c*l*(h+1/h)-2*i(l))]}Xt.invert=function(t,e){if(!(n=Y.invert(t/1.2,1.065*e)))return null;var n,o=n[0],s=n[1],l=20;t/=Vt,e/=Vt;do{var f=o/2,d=s/2,p=g(f),v=a(f),m=g(d),_=a(d),b=a(s),S=A(b),j=m/(_+M*v*S),C=j*j,E=A(2/(1+C)),P=(M*_+(v+p)*S)/(M*_+(v-p)*S),T=A(P),k=T-1/T,O=T+1/T,I=E*k-2*u(T)-t,B=E*j*O-2*i(j)-e,L=m&&w*S*p*C/m,F=(M*v*_+S)/(2*(_+M*v*S)*(_+M*v*S)*S),D=-.5*j*E*E*E,R=D*L,N=D*F,z=(z=2*_+M*S*(v-p))*z*T,H=(M*v*_*S+b)/z,G=-M*p*m/(S*z),V=k*R-2*H/T+E*(H+H/P),X=k*N-2*G/T+E*(G+G/P),q=j*O*R-2*L/(1+C)+E*O*L+E*j*(H-H/P),W=j*O*N-2*F/(1+C)+E*O*F+E*j*(G-G/P),U=X*q-W*V;if(!U)break;var Z=(B*X-I*W)/U,K=(I*q-B*V)/U;o-=Z,s=c(-x,h(x,s-K))}while((r(Z)>y||r(K)>y)&&--l>0);return r(r(s)-x)<y?[0,s]:l&&[o,s]};var qt=function(){return e.geoProjection(Xt).scale(62.5271)},Wt=a(35*E);function Ut(t,e){var n=v(e/2);return[t*Wt*A(1-n*n),(1+Wt)*n]}Ut.invert=function(t,e){var n=e/(1+Wt);return[t&&t/(Wt*A(1-n*n)),2*i(n)]};var Zt=function(){return e.geoProjection(Ut).scale(137.152)};function Kt(t,e){var n=e/2,r=a(n);return[2*t/S*a(e)*r*r,S*v(n)]}Kt.invert=function(t,e){var n=i(e/S),r=a(n),o=2*n;return[t*S/2/(a(o)*r*r),o]};var Qt=function(){return e.geoProjection(Kt).scale(135.264)};function $t(t){return[t[0]/2,T(v(t[1]/2*E))*C]}function Jt(t){return[2*t[0],2*i(g(t[1]*E))*C]}var te=function(t){null==t&&(t=e.geoOrthographic);var n=t(),r=e.geoEquirectangular().scale(C).precision(0).clipAngle(null).translate([0,0]);function i(t){return n($t(t))}function o(t){i[t]=function(e){return arguments.length?(n[t](e),i):n[t]()}}return n.invert&&(i.invert=function(t){return Jt(n.invert(t))}),i.stream=function(t){var e=n.stream(t),i=r.stream({point:function(t,n){e.point(t/2,T(v(-n/2*E))*C)},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}});return i.sphere=e.sphere,i},i.rotate=function(t){return arguments.length?(r.rotate(t),i):r.rotate()},i.center=function(t){return arguments.length?(n.center($t(t)),i):Jt(n.center())},o("clipAngle"),o("clipExtent"),o("scale"),o("translate"),o("precision"),i.scale(249.5)};function ee(t,n){var i=2*_/n,s=t*t;function l(n,l){var u=e.geoAzimuthalEquidistantRaw(n,l),c=u[0],h=u[1],f=c*c+h*h;if(f>s){var p=A(f),v=o(h,c),m=i*d(v/i),b=v-m,w=t*a(b),M=(t*g(b)-b*g(w))/(x-w),S=ne(b,M),j=(_-t)/re(S,w,_);c=p;var C,E=50;do{c-=C=(t+re(S,w,c)*j-p)/(S(c)*j)}while(r(C)>y&&--E>0);h=b*g(c),c<x&&(h-=M*(c-x));var P=g(m),T=a(m);u[0]=c*T-h*P,u[1]=c*P+h*T}return u}return l.invert=function(n,l){var u=n*n+l*l;if(u>s){var c=A(u),h=o(l,n),f=i*d(h/i),p=h-f;n=c*a(p),l=c*g(p);for(var v=n-x,y=g(n),b=l/y,w=n<x?1/0:0,M=10;;){var S=t*g(b),j=t*a(b),C=g(j),E=x-j,P=(S-b*C)/E,T=ne(b,P);if(r(w)<m||!--M)break;b-=w=(b*y-P*v-l)/(y-2*v*(E*(j+b*S*a(j)-C)-S*(S-b*C))/(E*E))}n=(c=t+re(T,j,n)*(_-t)/re(T,j,_))*a(h=f+b),l=c*g(h)}return e.geoAzimuthalEquidistantRaw.invert(n,l)},l}function ne(t,e){return function(n){var r=t*a(n);return n<x&&(r-=e),A(1+r*r)}}function re(t,e,n){for(var r=50,i=(n-e)/r,o=t(e)+t(n),a=1,s=e;a<r;++a)o+=2*t(s+=i);return.5*o*i}var ie=function(){var t=6,n=30*E,r=a(n),i=g(n),s=e.geoProjectionMutator(ee),l=s(n,t),u=l.stream,c=.01,h=-a(c*E),f=g(c*E);return l.radius=function(e){return arguments.length?(r=a(n=e*E),i=g(n),s(n,t)):n*C},l.lobes=function(e){return arguments.length?s(n,t=+e):t},l.stream=function(e){var n=l.rotate(),s=u(e),c=(l.rotate([0,0]),u(e));return l.rotate(n),s.sphere=function(){c.polygonStart(),c.lineStart();for(var e=0,n=2*_/t,s=0;e<t;++e,s-=n)c.point(o(f*a(s),h)*C,T(f*g(s))*C),c.point(o(i*a(s-n/2),r)*C,T(i*g(s-n/2))*C);c.lineEnd(),c.polygonEnd()},s},l.rotate([90,-40]).scale(91.7095).clipAngle(179.999)},oe=function(t,e,n,i,o,s,l,u){function c(r,c){if(!c)return[t*r/_,0];var h=c*c,f=t+h*(e+h*(n+h*i)),d=c*(o-1+h*(s-u+h*l)),p=(f*f+d*d)/(2*d),v=r*T(f/p)/_;return[p*g(v),c*(1+h*u)+p*(1-a(v))]}return arguments.length<8&&(u=0),c.invert=function(c,h){var f,d,p=_*c/t,v=h,m=50;do{var x=v*v,b=t+x*(e+x*(n+x*i)),w=v*(o-1+x*(s-u+x*l)),M=b*b+w*w,S=2*w,j=M/S,C=j*j,E=T(b/j)/_,P=p*E,k=b*b,O=(2*e+x*(4*n+6*x*i))*v,I=o+x*(3*s+5*x*l),B=(2*(b*O+w*(I-1))*S-M*(2*(I-1)))/(S*S),L=a(P),F=g(P),D=j*L,R=j*F,N=p/_*(1/A(1-k/C))*(O*j-b*B)/C,z=R-c,H=v*(1+x*u)+j-D-h,G=B*F+D*N,Y=D*E,V=1+B-(B*L-R*N),X=R*E,q=G*X-V*Y;if(!q)break;p-=f=(H*G-z*V)/q,v-=d=(z*X-H*Y)/q}while((r(f)>y||r(d)>y)&&--m>0);return[p,v]},c},ae=oe(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555),se=function(){return e.geoProjection(ae).scale(149.995)},le=oe(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742),ue=function(){return e.geoProjection(le).scale(153.93)},ce=oe(5/6*_,-.62636,-.0344,0,1.3493,-.05524,0,.045),he=function(){return e.geoProjection(ce).scale(130.945)};function fe(t,e){var n=t*t,r=e*e;return[t*(1-.162388*r)*(.87-952426e-9*n*n),e*(1+r/12)]}fe.invert=function(t,e){var n,i=t,o=e,a=50;do{var s=o*o;o-=n=(o*(1+s/12)-e)/(1+s/4)}while(r(n)>y&&--a>0);a=50,t/=1-.162388*s;do{var l=(l=i*i)*l;i-=n=(i*(.87-952426e-9*l)-t)/(.87-.00476213*l)}while(r(n)>y&&--a>0);return[i,o]};var de=function(){return e.geoProjection(fe).scale(131.747)},pe=oe(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762),ge=function(){return e.geoProjection(pe).scale(131.087)},ve=function(t){var e=t(x,0)[0]-t(-x,0)[0];function n(n,r){var i=n>0?-.5:.5,o=t(n+i*_,r);return o[0]-=i*e,o}return t.invert&&(n.invert=function(n,r){var i=n>0?-.5:.5,o=t.invert(n+i*e,r),a=o[0]-i*_;return a<-_?a+=2*_:a>_&&(a-=2*_),o[0]=a,o}),n};function ye(t,e){var n=p(t),i=p(e),s=a(e),l=a(t)*s,u=g(t)*s,c=g(i*e);t=r(o(u,c)),e=T(l),r(t-x)>y&&(t%=x);var h=me(t>_/4?x-t:t,e);return t>_/4&&(c=h[0],h[0]=-h[1],h[1]=-c),h[0]*=n,h[1]*=-i,h}function me(t,e){if(e===x)return[0,0];var n,i,o=g(e),s=o*o,l=s*s,u=1+l,c=1+3*l,h=1-l,f=T(1/A(u)),d=h+s*u*f,p=(1-o)/d,v=A(p),m=p*u,b=A(m),w=v*h;if(0===t)return[0,-(w+s*b)];var M,S=a(e),j=1/S,C=2*o*S,E=(-d*S-(-3*s+f*c)*C*(1-o))/(d*d),P=-j*C,k=-j*(s*u*E+p*c*C),O=-2*j*(h*(.5*E/v)-2*s*v*C),I=4*t/_;if(t>.222*_||e<_/4&&t>.175*_){if(n=(w+s*A(m*(1+l)-w*w))/(1+l),t>_/4)return[n,n];var B=n,L=.5*n;n=.5*(L+B),i=50;do{var F=n*(O+P*A(m-n*n))+k*T(n/b)-I;if(!F)break;F<0?L=n:B=n,n=.5*(L+B)}while(r(B-L)>y&&--i>0)}else{n=y,i=25;do{var D=n*n,R=A(m-D),N=O+P*R,z=n*N+k*T(n/b)-I;n-=M=R?z/(N+(k-P*D)/R):0}while(r(M)>y&&--i>0)}return[n,-w-s*A(m-n*n)]}function _e(t,e){for(var n=0,i=1,o=.5,s=50;;){var l=o*o,u=A(o),c=T(1/A(1+l)),h=1-l+o*(1+l)*c,f=(1-u)/h,d=A(f),p=f*(1+l),g=d*(1-l),v=A(p-t*t),y=e+g+o*v;if(r(i-n)<m||0==--s||0===y)break;y>0?n=o:i=o,o=.5*(n+i)}if(!s)return null;var x=T(u),b=a(x),w=1/b,M=2*u*b,S=(-h*b-(-3*o+c*(1+3*l))*M*(1-u))/(h*h);return[_/4*(t*(-2*w*(.5*S/d*(1-l)-2*o*d*M)+-w*M*v)+-w*(o*(1+l)*S+f*(1+3*l)*M)*T(t/A(p))),x]}ye.invert=function(t,e){r(t)>1&&(t=2*p(t)-t),r(e)>1&&(e=2*p(e)-e);var n=p(t),i=p(e),s=-n*t,l=-i*e,u=l/s<1,c=_e(u?l:s,u?s:l),h=c[0],f=c[1],d=a(f);return u&&(h=-x-h),[n*(o(g(h)*d,-g(f))+_),i*T(a(h)*d)]};var xe=function(){return e.geoProjection(ve(ye)).scale(239.75)};function be(t,e,n){var r,i,o;return t?(r=we(t,n),e?(o=(i=we(e,1-n))[1]*i[1]+n*r[0]*r[0]*i[0]*i[0],[[r[0]*i[2]/o,r[1]*r[2]*i[0]*i[1]/o],[r[1]*i[1]/o,-r[0]*r[2]*i[0]*i[2]/o],[r[2]*i[1]*i[2]/o,-n*r[0]*r[1]*i[0]/o]]):[[r[0],0],[r[1],0],[r[2],0]]):[[0,(i=we(e,1-n))[0]/i[1]],[1/i[1],0],[i[2]/i[1],0]]}function we(t,e){var n,o,l,u,c;if(e<y)return[(u=g(t))-(n=e*(t-u*(o=a(t)))/4)*o,o+n*u,1-e*u*u/2,t-n];if(e>=1-y)return n=(1-e)/4,l=1/(o=B(t)),[(u=O(t))+n*((c=o*I(t))-t)/(o*o),l-n*u*l*(c-t),l+n*u*l*(c+t),2*i(s(t))-x+n*(c-t)/o];var h=[1,0,0,0,0,0,0,0,0],f=[A(e),0,0,0,0,0,0,0,0],d=0;for(o=A(1-e),c=1;r(f[d]/h[d])>y&&d<8;)n=h[d++],f[d]=(n-o)/2,h[d]=(n+o)/2,o=A(n*o),c*=2;l=c*h[d]*t;do{l=(T(u=f[d]*g(o=l)/h[d])+l)/2}while(--d);return[g(l),u=a(l),u/a(l-o),l]}function Me(t,e,n){var o=r(t),a=I(r(e));if(o){var s=1/g(o),l=1/(v(o)*v(o)),u=-(l+n*(a*a*s*s)-1+n),c=(-u+A(u*u-(n-1)*l*4))/2;return[Se(i(1/A(c)),n)*p(t),Se(i(A((c/l-1)/n)),1-n)*p(e)]}return[0,Se(i(a),1-n)*p(e)]}function Se(t,e){if(!e)return t;if(1===e)return u(v(t/2+b));for(var n=1,o=A(1-e),a=A(e),s=0;r(a)>y;s++){if(t%_){var l=i(o*v(t)/n);l<0&&(l+=_),t+=l+~~(t/_)*_}else t+=t;a=(n+o)/2,o=A(n*o),a=((n=a)-o)/2}return t/(f(2,s)*n)}function je(t,e){var n=(M-1)/(M+1),i=A(1-n*n),o=Se(x,i*i),l=-1,c=u(v(_/4+r(e)/2)),h=s(l*c)/A(n),f=Ce(h*a(l*t),h*g(l*t)),d=Me(f[0],f[1],i*i);return[-d[1],(e>=0?1:-1)*(.5*o-d[0])]}function Ce(t,e){var n=t*t,r=e+1,i=1-n-e*e;return[.5*((t>=0?x:-x)-o(i,2*t)),-.25*u(i*i+4*n)+.5*u(r*r+n)]}function Ee(t,e){var n=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/n,(t[1]*e[0]-t[0]*e[1])/n]}je.invert=function(t,e){var n=(M-1)/(M+1),r=A(1-n*n),a=-1,l=be(.5*Se(x,r*r)-e,-t,r*r),c=Ee(l[0],l[1]);return[o(c[1],c[0])/a,2*i(s(.5/a*u(n*c[0]*c[0]+n*c[1]*c[1])))-x]};var Pe=function(){return e.geoProjection(ve(je)).scale(151.496)};function Te(t,n){if(arguments.length<2&&(n=t),1===n)return e.geoAzimuthalEqualAreaRaw;if(n===1/0)return ke;function r(r,i){var o=e.geoAzimuthalEqualAreaRaw(r/n,i);return o[0]*=t,o}return r.invert=function(r,i){var o=e.geoAzimuthalEqualAreaRaw.invert(r/t,i);return o[0]*=n,o},r}function ke(t,e){return[t*a(e)/a(e/=2),2*g(e)]}ke.invert=function(t,e){var n=2*T(e/2);return[t*a(n/2)/a(n),n]};var Ae=function(){var t=2,n=e.geoProjectionMutator(Te),r=n(t);return r.coefficient=function(e){return arguments.length?n(t=+e):t},r.scale(169.529)};function Oe(t){var e=g(t),n=a(t),i=Ie(t);function s(t,o){var s=i(t,o);t=s[0],o=s[1];var l=g(o),u=a(o),c=a(t),h=k(e*l+n*u*c),f=g(h),d=r(f)>y?h/f:1;return[d*n*g(t),(r(t)>x?d:-d)*(e*u-n*l*c)]}return i.invert=Ie(-t),s.invert=function(t,n){var r=A(t*t+n*n),s=-g(r),l=a(r),u=r*l,c=-n*s,h=r*e,f=A(u*u+c*c-h*h),d=o(u*h+c*f,c*h-u*f),p=(r>x?-1:1)*o(t*s,r*a(d)*l+n*g(d)*s);return i.invert(p,d)},s}function Ie(t){var e=g(t),n=a(t);return function(t,r){var i=a(r),s=a(t)*i,l=g(t)*i,u=g(r);return[o(l,s*n-u*e),T(u*n+s*e)]}}var Be=function(){var t=0,n=e.geoProjectionMutator(Oe),r=n(t),i=r.rotate,o=r.stream,a=e.geoCircle();return r.parallel=function(e){if(!arguments.length)return t*C;var i=r.rotate();return n(t=e*E).rotate(i)},r.rotate=function(e){return arguments.length?(i.call(r,[e[0],e[1]-t*C]),a.center([-e[0],-e[1]]),r):((e=i.call(r))[1]+=t*C,e)},r.stream=function(t){return(t=o(t)).sphere=function(){t.polygonStart();var e,n=.01,r=a.radius(90-n)().coordinates[0],i=r.length-1,o=-1;for(t.lineStart();++o<i;)t.point((e=r[o])[0],e[1]);for(t.lineEnd(),i=(r=a.radius(90+n)().coordinates[0]).length-1,t.lineStart();--o>=0;)t.point((e=r[o])[0],e[1]);t.lineEnd(),t.polygonEnd()},t},r.scale(79.4187).parallel(45).clipAngle(179.999)},Le=41+48/36+37/3600,Fe=Pt(0);function De(t){var e=Le*E,n=bt(_,e)[0]-bt(-_,e)[0],i=Fe(0,e)[1],o=bt(0,e)[1],a=S-o,s=j/t,u=4/j,f=i+a*a*4/j;function d(d,p){var g,v=r(p);if(v>e){var y=h(t-1,c(0,l((d+_)/s)));(g=bt(d+=_*(t-1)/t-y*s,v))[0]=g[0]*j/n-j*(t-1)/(2*t)+y*j/t,g[1]=i+4*(g[1]-o)*a/j,p<0&&(g[1]=-g[1])}else g=Fe(d,p);return g[0]*=u,g[1]/=f,g}return d.invert=function(e,d){e/=u;var p=r(d*=f);if(p>i){var g=h(t-1,c(0,l((e+_)/s)));e=(e+_*(t-1)/t-g*s)*n/j;var v=bt.invert(e,.25*(p-i)*j/a+o);return v[0]-=_*(t-1)/t-g*s,d<0&&(v[1]=-v[1]),v}return Fe.invert(e,d)},d}function Re(t){return{type:"Polygon",coordinates:[n.range(-180,180+t/2,t).map((function(t,e){return[t,1&e?89.999999:Le]})).concat(n.range(180,-180-t/2,-t).map((function(t,e){return[t,1&e?-89.999999:-Le]})))]}}var Ne=function(){var t=4,n=e.geoProjectionMutator(De),r=n(t),i=r.stream;return r.lobes=function(e){return arguments.length?n(t=+e):t},r.stream=function(n){var o=r.rotate(),a=i(n),s=(r.rotate([0,0]),i(n));return r.rotate(o),a.sphere=function(){e.geoStream(Re(180/t),s)},a},r.scale(239.75)};function ze(t){var e,n=1+t,i=T(g(1/n)),s=2*A(_/(e=_+4*i*n)),l=.5*s*(n+A(t*(2+t))),u=t*t,c=n*n;function h(h,f){var d,p,v=1-g(f);if(v&&v<2){var y,b=x-f,w=25;do{var M=g(b),S=a(b),j=i+o(M,n-S),C=1+c-2*n*S;b-=y=(b-u*i-n*M+C*j-.5*v*e)/(2*n*M*j)}while(r(y)>m&&--w>0);d=s*A(C),p=h*j/_}else d=s*(t+v),p=h*i/_;return[d*g(p),l-d*a(p)]}return h.invert=function(t,r){var a=t*t+(r-=l)*r,h=(1+c-a/(s*s))/(2*n),f=k(h),d=g(f),p=i+o(d,n-h);return[T(t/A(a))*_/p,T(1-2*(f-u*i-n*d+(1+c-2*n*h)*p)/e)]},h}var He=function(){var t=1,n=e.geoProjectionMutator(ze),r=n(t);return r.ratio=function(e){return arguments.length?n(t=+e):t},r.scale(167.774).center([0,18.67])},Ge=.7109889596207567,Ye=.0528035274542;function Ve(t,e){return e>-Ge?((t=J(t,e))[1]+=Ye,t):at(t,e)}Ve.invert=function(t,e){return e>-Ge?J.invert(t,e-Ye):at.invert(t,e)};var Xe=function(){return e.geoProjection(Ve).rotate([-20,-55]).scale(164.263).center([0,-5.4036])};function qe(t,e){return r(e)>Ge?((t=J(t,e))[1]-=e>0?Ye:-Ye,t):at(t,e)}qe.invert=function(t,e){return r(e)>Ge?J.invert(t,e+(e>0?Ye:-Ye)):at.invert(t,e)};var We=function(){return e.geoProjection(qe).scale(152.63)};function Ue(t,e){return r(t[0]-e[0])<y&&r(t[1]-e[1])<y}function Ze(t,e){for(var n,r,i,o=-1,a=t.length,s=t[0],l=[];++o<a;){r=((n=t[o])[0]-s[0])/e,i=(n[1]-s[1])/e;for(var u=0;u<e;++u)l.push([s[0]+u*r,s[1]+u*i]);s=n}return l.push(n),l}function Ke(t){var e,r,i,o,a,s,l,u=[],c=t[0].length;for(l=0;l<c;++l)r=(e=t[0][l])[0][0],i=e[0][1],o=e[1][1],a=e[2][0],s=e[2][1],u.push(Ze([[r+y,i+y],[r+y,o-y],[a-y,o-y],[a-y,s+y]],30));for(l=t[1].length-1;l>=0;--l)r=(e=t[1][l])[0][0],i=e[0][1],o=e[1][1],a=e[2][0],s=e[2][1],u.push(Ze([[a-y,s-y],[a-y,o+y],[r+y,o+y],[r+y,i-y]],30));return{type:"Polygon",coordinates:[n.merge(u)]}}var Qe=function(t,n){var r=Ke(n),i=(n=n.map((function(t){return t.map((function(t){return[[t[0][0]*E,t[0][1]*E],[t[1][0]*E,t[1][1]*E],[t[2][0]*E,t[2][1]*E]]}))}))).map((function(e){return e.map((function(e){var n,r=t(e[0][0],e[0][1])[0],i=t(e[2][0],e[2][1])[0],o=t(e[1][0],e[0][1])[1],a=t(e[1][0],e[1][1])[1];return o>a&&(n=o,o=a,a=n),[[r,o],[i,a]]}))}));function o(e,r){for(var i=r<0?-1:1,o=n[+(r<0)],a=0,s=o.length-1;a<s&&e>o[a][2][0];++a);var l=t(e-o[a][1][0],r);return l[0]+=t(o[a][1][0],i*r>i*o[a][0][1]?o[a][0][1]:r)[0],l}t.invert&&(o.invert=function(e,r){for(var a=i[+(r<0)],s=n[+(r<0)],l=0,u=a.length;l<u;++l){var c=a[l];if(c[0][0]<=e&&e<c[1][0]&&c[0][1]<=r&&r<c[1][1]){var h=t.invert(e-t(s[l][1][0],0)[0],r);return h[0]+=s[l][1][0],Ue(o(h[0],h[1]),[e,r])?h:null}}});var a=e.geoProjection(o),s=a.stream;return a.stream=function(t){var n=a.rotate(),i=s(t),o=(a.rotate([0,0]),s(t));return a.rotate(n),i.sphere=function(){e.geoStream(r,o)},i},a},$e=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]],Je=function(){return Qe(rt,$e).scale(160.857)},tn=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]],en=function(){return Qe(qe,tn).scale(152.63)},nn=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]],rn=function(){return Qe(J,nn).scale(169.529)},on=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]],an=function(){return Qe(J,on).scale(169.529).rotate([20,0])},sn=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]],ln=function(){return Qe(Ve,sn).rotate([-20,-55]).scale(164.263).center([0,-5.4036])},un=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]],cn=function(){return Qe(at,un).scale(152.63).rotate([-20,0])};function hn(t,e){return[3/j*t*A(_*_/3-e*e),e]}hn.invert=function(t,e){return[j/3*t/A(_*_/3-e*e),e]};var fn=function(){return e.geoProjection(hn).scale(158.837)};function dn(t){function e(e,n){if(r(r(n)-x)<y)return[0,n<0?-2:2];var i=g(n),o=f((1+i)/(1-i),t/2),s=.5*(o+1/o)+a(e*=t);return[2*g(e)/s,(o-1/o)/s]}return e.invert=function(e,n){var i=r(n);if(r(i-2)<y)return e?null:[0,p(n)*x];if(i>2)return null;var a=(e/=2)*e,s=(n/=2)*n,l=2*n/(1+a+s);return l=f((1+l)/(1-l),1/t),[o(2*e,1-a-s)/t,T((l-1)/(l+1))]},e}var pn=function(){var t=.5,n=e.geoProjectionMutator(dn),r=n(t);return r.spacing=function(e){return arguments.length?n(t=+e):t},r.scale(124.75)},gn=_/M;function vn(t,e){return[t*(1+A(a(e)))/2,e/(a(e/2)*a(t/6))]}vn.invert=function(t,e){var n=r(t),i=r(e),o=y,s=x;i<gn?s*=i/gn:o+=6*k(gn/i);for(var l=0;l<25;l++){var u=g(s),c=A(a(s)),h=g(s/2),f=a(s/2),d=g(o/6),p=a(o/6),v=.5*o*(1+c)-n,m=s/(f*p)-i,_=c?-.25*o*u/c:0,b=.5*(1+c),w=(1+.5*s*h/f)/(f*p),M=s/f*(d/6)/(p*p),S=_*M-w*b,j=(v*M-m*b)/S,C=(m*_-v*w)/S;if(s-=j,o-=C,r(j)<y&&r(C)<y)break}return[t<0?-o:o,e<0?-s:s]};var yn=function(){return e.geoProjection(vn).scale(97.2672)};function mn(t,e){var n=t*t,r=e*e;return[t*(.975534+r*(-.0143059*n-.119161+-.0547009*r)),e*(1.00384+n*(.0802894+-.02855*r+199025e-9*n)+r*(.0998909+-.0491032*r))]}mn.invert=function(t,e){var n=p(t)*_,i=e/2,o=50;do{var a=n*n,s=i*i,l=n*i,u=n*(.975534+s*(-.0143059*a-.119161+-.0547009*s))-t,c=i*(1.00384+a*(.0802894+-.02855*s+199025e-9*a)+s*(.0998909+-.0491032*s))-e,h=.975534-s*(.119161+3*a*.0143059+.0547009*s),f=-l*(.238322+.2188036*s+.0286118*a),d=l*(.1605788+7961e-7*a+-.0571*s),g=1.00384+a*(.0802894+199025e-9*a)+s*(3*(.0998909-.02855*a)-.245516*s),v=f*d-g*h,m=(c*f-u*g)/v,x=(u*d-c*h)/v;n-=m,i-=x}while((r(m)>y||r(x)>y)&&--o>0);return o&&[n,i]};var _n=function(){return e.geoProjection(mn).scale(139.98)};function xn(t,e){return[g(t)/a(e),v(e)*a(t)]}xn.invert=function(t,e){var n=t*t,r=e*e,i=r+1,o=t?w*A((i-A(n*n+2*n*(r-1)+i*i))/n+1):1/A(i);return[T(t*o),p(e)*k(o)]};var bn=function(){return e.geoProjection(xn).scale(144.049).clipAngle(89.999)};function wn(t){var e=a(t),n=v(b+t/2);function i(i,o){var a=o-t,s=r(a)<y?i*e:r(s=b+o/2)<y||r(r(s)-x)<y?0:i*a/u(v(s)/n);return[s,a]}return i.invert=function(i,o){var a,s=o+t;return[r(o)<y?i/e:r(a=b+s/2)<y||r(r(a)-x)<y?0:i*u(v(a)/n)/o,s]},i}var Mn=function(){return ot(wn).parallel(40).scale(158.837)};function Sn(t,e){return[t,1.25*u(v(b+.4*e))]}Sn.invert=function(t,e){return[t,2.5*i(s(.8*e))-.625*_]};var jn=function(){return e.geoProjection(Sn).scale(108.318)};function Cn(t){var e=t.length-1;function n(n,r){for(var i,o=a(r),s=2/(1+o*a(n)),l=s*o*g(n),u=s*g(r),c=e,h=t[c],f=h[0],d=h[1];--c>=0;)f=(h=t[c])[0]+l*(i=f)-u*d,d=h[1]+l*d+u*i;return[f=l*(i=f)-u*d,d=l*d+u*i]}return n.invert=function(n,s){var l=20,u=n,c=s;do{for(var h,f=e,d=t[f],p=d[0],v=d[1],m=0,_=0;--f>=0;)m=p+u*(h=m)-c*_,_=v+u*_+c*h,p=(d=t[f])[0]+u*(h=p)-c*v,v=d[1]+u*v+c*h;var x,b,w=(m=p+u*(h=m)-c*_)*m+(_=v+u*_+c*h)*_;u-=x=((p=u*(h=p)-c*v-n)*m+(v=u*v+c*h-s)*_)/w,c-=b=(v*m-p*_)/w}while(r(x)+r(b)>y*y&&--l>0);if(l){var M=A(u*u+c*c),S=2*i(.5*M),j=g(S);return[o(u*j,M*a(S)),M?T(c*j/M):0]}},n}var En=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Pn=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Tn=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],kn=[[.9245,0],[0,0],[.01943,0]],An=[[.721316,0],[0,0],[-.00881625,-.00617325]];function On(){return Dn(En,[152,-64]).scale(1500).center([-160.908,62.4864]).clipAngle(25)}function In(){return Dn(Pn,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Bn(){return Dn(Tn,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Ln(){return Dn(kn,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Fn(){return Dn(An,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Dn(t,n){var r=e.geoProjection(Cn(t)).rotate(n).clipAngle(90),i=e.geoRotation(n),o=r.center;return delete r.rotate,r.center=function(t){return arguments.length?o(i(t)):i.invert(o())},r}var Rn=A(6),Nn=A(7);function zn(t,e){var n=T(7*g(e)/(3*Rn));return[Rn*t*(2*a(2*n/3)-1)/Nn,9*g(n/3)/Nn]}zn.invert=function(t,e){var n=3*T(e*Nn/9);return[t*Nn/(Rn*(2*a(2*n/3)-1)),T(3*g(n)*Rn/7)]};var Hn=function(){return e.geoProjection(zn).scale(164.859)};function Gn(t,e){for(var n,i=(1+w)*g(e),o=e,s=0;s<25&&(o-=n=(g(o/2)+g(o)-i)/(.5*a(o/2)+a(o)),!(r(n)<y));s++);return[t*(1+2*a(o)/a(o/2))/(3*M),2*A(3)*g(o/2)/A(2+M)]}Gn.invert=function(t,e){var n=e*A(2+M)/(2*A(3)),r=2*T(n);return[3*M*t/(1+2*a(r)/a(r/2)),T((n+g(r))/(1+w))]};var Yn=function(){return e.geoProjection(Gn).scale(188.209)};function Vn(t,e){for(var n,i=A(6/(4+_)),o=(1+_/4)*g(e),s=e/2,l=0;l<25&&(s-=n=(s/2+g(s)-o)/(.5+a(s)),!(r(n)<y));l++);return[i*(.5+a(s))*t/1.5,i*s]}Vn.invert=function(t,e){var n=A(6/(4+_)),i=e/n;return r(r(i)-x)<y&&(i=i<0?-x:x),[1.5*t/(n*(.5+a(i))),T((i/2+g(i))/(1+_/4))]};var Xn=function(){return e.geoProjection(Vn).scale(166.518)};function qn(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}qn.invert=function(t,e){var n,i=e,o=25;do{var a=i*i,s=a*a;i-=n=(i*(1.007226+a*(.015085+s*(.028874*a-.044475-.005916*s)))-e)/(1.007226+a*(.045255+s*(.259866*a-.311325-.005916*11*s)))}while(r(n)>y&&--o>0);return[t/(.8707+(a=i*i)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),i]};var Wn=function(){return e.geoProjection(qn).scale(175.295)};function Un(t,e){var n=e*e,r=n*n,i=n*r;return[t*(.84719-.13063*n+i*i*(.05494*n-.04515-.02326*r+.00331*i)),e*(1.01183+r*r*(.01926*n-.02625-.00396*r))]}Un.invert=function(t,e){var n,i,o,a,s=e,l=25;do{s-=n=(s*(1.01183+(o=(i=s*s)*i)*o*(.01926*i-.02625-.00396*o))-e)/(1.01183+o*o*(.21186*i-.23625+-.05148*o))}while(r(n)>m&&--l>0);return[t/(.84719-.13063*(i=s*s)+(a=i*(o=i*i))*a*(.05494*i-.04515-.02326*o+.00331*a)),s]};var Zn=function(){return e.geoProjection(Un).scale(175.295)};function Kn(t,e){return[t*(1+a(e))/2,2*(e-v(e/2))]}Kn.invert=function(t,e){for(var n=e/2,i=0,o=1/0;i<10&&r(o)>y;++i){var s=a(e/2);e-=o=(e-v(e/2)-n)/(1-.5/(s*s))}return[2*t/(1+a(e)),e]};var Qn=function(){return e.geoProjection(Kn).scale(152.63)},$n=1.0148,Jn=.23185,tr=-.14499,er=.02406,nr=$n,rr=5*Jn,ir=7*tr,or=9*er,ar=1.790857183;function sr(t,e){var n=e*e;return[t,e*($n+n*n*(Jn+n*(tr+er*n)))]}sr.invert=function(t,e){e>ar?e=ar:e<-ar&&(e=-ar);var n,i=e;do{var o=i*i;i-=n=(i*($n+o*o*(Jn+o*(tr+er*o)))-e)/(nr+o*o*(rr+o*(ir+or*o)))}while(r(n)>y);return[t,i]};var lr=function(){return e.geoProjection(sr).scale(139.319)};function ur(t,e){if(r(e)<y)return[t,0];var n=v(e),i=t*g(e);return[g(i)/n,e+(1-a(i))/n]}ur.invert=function(t,e){if(r(e)<y)return[t,0];var n,i=t*t+e*e,o=.5*e,s=10;do{var l=v(o),u=1/a(o),c=i-2*e*o+o*o;o-=n=(l*c+2*(o-e))/(2+c*u*u+2*(o-e)*l)}while(r(n)>y&&--s>0);return l=v(o),[(r(e)<r(o+1/l)?T(t*l):p(t)*(k(r(t*l))+x))/g(o),o]};var cr=function(){return e.geoProjection(ur).scale(103.74)},hr=function(t,e){var n=pr(t[1],t[0]),r=pr(e[1],e[0]),i=vr(n,r),o=gr(n)/gr(r);return dr([1,0,t[0][0],0,1,t[0][1]],dr([o,0,0,0,o,0],dr([a(i),g(i),0,-g(i),a(i),0],[1,0,-e[0][0],0,1,-e[0][1]])))};function fr(t){var e=1/(t[0]*t[4]-t[1]*t[3]);return[e*t[4],-e*t[1],e*(t[1]*t[5]-t[2]*t[4]),-e*t[3],e*t[0],e*(t[2]*t[3]-t[0]*t[5])]}function dr(t,e){return[t[0]*e[0]+t[1]*e[3],t[0]*e[1]+t[1]*e[4],t[0]*e[2]+t[1]*e[5]+t[2],t[3]*e[0]+t[4]*e[3],t[3]*e[1]+t[4]*e[4],t[3]*e[2]+t[4]*e[5]+t[5]]}function pr(t,e){return[t[0]-e[0],t[1]-e[1]]}function gr(t){return A(t[0]*t[0]+t[1]*t[1])}function vr(t,e){return o(t[0]*e[1]-t[1]*e[0],t[0]*e[0]+t[1]*e[1])}var yr=function(t,n,r){function i(t,e){if(t.edges=br(t.face),e.face){var n=t.shared=xr(t.face,e.face),r=hr(n.map(e.project),n.map(t.project));t.transform=e.transform?dr(e.transform,r):r;for(var o=e.edges,a=0,s=o.length;a<s;++a)_r(n[0],o[a][1])&&_r(n[1],o[a][0])&&(o[a]=t),_r(n[0],o[a][0])&&_r(n[1],o[a][1])&&(o[a]=t);for(a=0,s=(o=t.edges).length;a<s;++a)_r(n[0],o[a][0])&&_r(n[1],o[a][1])&&(o[a]=e),_r(n[0],o[a][1])&&_r(n[1],o[a][0])&&(o[a]=e)}else t.transform=e.transform;return t.children&&t.children.forEach((function(e){i(e,t)})),t}function o(t,e){var r,i=n(t,e),o=i.project([t*C,e*C]);return(r=i.transform)?[r[0]*o[0]+r[1]*o[1]+r[2],-(r[3]*o[0]+r[4]*o[1]+r[5])]:(o[1]=-o[1],o)}function s(t,e){var n=t.project.invert,r=t.transform,i=e;if(r&&(i=[(r=fr(r))[0]*i[0]+r[1]*i[1]+r[2],r[3]*i[0]+r[4]*i[1]+r[5]]),n&&t===l(o=n(i)))return o;for(var o,a=t.children,u=0,c=a&&a.length;u<c;++u)if(o=s(a[u],e))return o}function l(t){return n(t[0]*E,t[1]*E)}i(t,{transform:[a(r=null==r?-_/6:r),g(r),0,-g(r),a(r),0]}),wr(t)&&(o.invert=function(e,n){var r=s(t,[e,-n]);return r&&(r[0]*=E,r[1]*=E,r)});var u=e.geoProjection(o),c=u.stream;return u.stream=function(e){var n=u.rotate(),r=c(e),i=(u.rotate([0,0]),c(e));return u.rotate(n),r.sphere=function(){i.polygonStart(),i.lineStart(),mr(i,t),i.lineEnd(),i.polygonEnd()},r},u};function mr(t,n,i){var o,a,s=n.edges,l=s.length,u={type:"MultiPoint",coordinates:n.face},c=n.face.filter((function(t){return 90!==r(t[1])})),h=e.geoBounds({type:"MultiPoint",coordinates:c}),f=!1,d=-1,p=h[1][0]-h[0][0],g=180===p||360===p?[(h[0][0]+h[1][0])/2,(h[0][1]+h[1][1])/2]:e.geoCentroid(u);if(i)for(;++d<l&&s[d]!==i;);++d;for(var v=0;v<l;++v)a=s[(v+d)%l],Array.isArray(a)?(f||(t.point((o=e.geoInterpolate(a[0],g)(y))[0],o[1]),f=!0),t.point((o=e.geoInterpolate(a[1],g)(y))[0],o[1])):(f=!1,a!==i&&mr(t,a,n))}function _r(t,e){return t&&e&&t[0]===e[0]&&t[1]===e[1]}function xr(t,e){for(var n,r,i=t.length,o=null,a=0;a<i;++a){n=t[a];for(var s=e.length;--s>=0;)if(r=e[s],n[0]===r[0]&&n[1]===r[1]){if(o)return[o,n];o=n}}}function br(t){for(var e=t.length,n=[],r=t[e-1],i=0;i<e;++i)n.push([r,r=t[i]]);return n}function wr(t){return t.project.invert||t.children&&t.children.some(wr)}var Mr=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]],Sr=[[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map((function(t){return t.map((function(t){return Mr[t]}))})),jr=function(t){t=t||function(t){var n=e.geoCentroid({type:"MultiPoint",coordinates:t});return e.geoGnomonic().scale(1).translate([0,0]).rotate([-n[0],-n[1]])};var n=Sr.map((function(e){return{face:e,project:t(e)}}));return[-1,0,0,1,0,1,4,5].forEach((function(t,e){var r=n[t];r&&(r.children||(r.children=[])).push(n[e])})),yr(n[0],(function(t,e){return n[t<-_/2?e<0?6:4:t<0?e<0?2:0:t<_/2?e<0?3:1:e<0?7:5]})).scale(101.858).center([0,45])},Cr=2/A(3);function Er(t,e){var n=bt(t,e);return[n[0]*Cr,n[1]]}Er.invert=function(t,e){return bt.invert(t/Cr,e)};var Pr=function(t){t=t||function(t){var n=e.geoCentroid({type:"MultiPoint",coordinates:t});return e.geoProjection(Er).translate([0,0]).scale(1).rotate(n[1]>0?[-n[0],0]:[180-n[0],180])};var n=Sr.map((function(e){return{face:e,project:t(e)}}));return[-1,0,0,1,0,1,4,5].forEach((function(t,e){var r=n[t];r&&(r.children||(r.children=[])).push(n[e])})),yr(n[0],(function(t,e){return n[t<-_/2?e<0?6:4:t<0?e<0?2:0:t<_/2?e<0?3:1:e<0?7:5]})).scale(121.906).center([0,48.5904])},Tr=function(t){t=t||function(t){var n=6===t.length?e.geoCentroid({type:"MultiPoint",coordinates:t}):t[0];return e.geoGnomonic().scale(1).translate([0,0]).rotate([-n[0],-n[1]])};var n=Sr.map((function(t){for(var e,n=t.map(Ir),r=n.length,i=n[r-1],o=[],a=0;a<r;++a)e=n[a],o.push(Or([.9486832980505138*i[0]+.31622776601683794*e[0],.9486832980505138*i[1]+.31622776601683794*e[1],.9486832980505138*i[2]+.31622776601683794*e[2]]),Or([.9486832980505138*e[0]+.31622776601683794*i[0],.9486832980505138*e[1]+.31622776601683794*i[1],.9486832980505138*e[2]+.31622776601683794*i[2]])),i=e;return o})),r=[],i=[-1,0,0,1,0,1,4,5];n.forEach((function(t,e){for(var o=Sr[e],a=o.length,s=r[e]=[],l=0;l<a;++l)n.push([o[l],t[(2*l+2)%(2*a)],t[(2*l+1)%(2*a)]]),i.push(e),s.push(Ar(Ir(t[(2*l+2)%(2*a)]),Ir(t[(2*l+1)%(2*a)])))}));var o=n.map((function(e){return{project:t(e),face:e}}));function s(t,e){var n=a(e),i=[n*a(t),n*g(t),g(e)],s=t<-_/2?e<0?6:4:t<0?e<0?2:0:t<_/2?e<0?3:1:e<0?7:5,l=r[s];return o[kr(l[0],i)<0?8+3*s:kr(l[1],i)<0?8+3*s+1:kr(l[2],i)<0?8+3*s+2:s]}return i.forEach((function(t,e){var n=o[t];n&&(n.children||(n.children=[])).push(o[e])})),yr(o[0],s).scale(110.625).center([0,45])};function kr(t,e){for(var n=0,r=t.length,i=0;n<r;++n)i+=t[n]*e[n];return i}function Ar(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Or(t){return[o(t[1],t[0])*C,T(c(-1,h(1,t[2])))*C]}function Ir(t){var e=t[0]*E,n=t[1]*E,r=a(n);return[r*a(e),r*g(e),g(n)]}var Br=function(){},Lr=function(t){if((e=t.length)<4)return!1;for(var e,n=0,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++n<e;)r+=t[n-1][1]*t[n][0]-t[n-1][0]*t[n][1];return r<=0},Fr=function(t,e){for(var n=e[0],r=e[1],i=!1,o=0,a=t.length,s=a-1;o<a;s=o++){var l=t[o],u=l[0],c=l[1],h=t[s],f=h[0],d=h[1];c>r^d>r&&n<(f-u)*(r-c)/(d-c)+u&&(i=!i)}return i},Dr=function(t,e){var n,r=e.stream;if(!r)throw new Error("invalid projection");switch(t&&t.type){case"Feature":n=Nr;break;case"FeatureCollection":n=Rr;break;default:n=Hr}return n(t,r)};function Rr(t,e){return{type:"FeatureCollection",features:t.features.map((function(t){return Nr(t,e)}))}}function Nr(t,e){return{type:"Feature",id:t.id,properties:t.properties,geometry:Hr(t.geometry,e)}}function zr(t,e){return{type:"GeometryCollection",geometries:t.geometries.map((function(t){return Hr(t,e)}))}}function Hr(t,n){if(!t)return null;if("GeometryCollection"===t.type)return zr(t,n);var r;switch(t.type){case"Point":case"MultiPoint":r=Vr;break;case"LineString":case"MultiLineString":r=Xr;break;case"Polygon":case"MultiPolygon":case"Sphere":r=qr;break;default:return null}return e.geoStream(t,n(r)),r.result()}var Gr=[],Yr=[],Vr={point:function(t,e){Gr.push([t,e])},result:function(){var t=Gr.length?Gr.length<2?{type:"Point",coordinates:Gr[0]}:{type:"MultiPoint",coordinates:Gr}:null;return Gr=[],t}},Xr={lineStart:Br,point:function(t,e){Gr.push([t,e])},lineEnd:function(){Gr.length&&(Yr.push(Gr),Gr=[])},result:function(){var t=Yr.length?Yr.length<2?{type:"LineString",coordinates:Yr[0]}:{type:"MultiLineString",coordinates:Yr}:null;return Yr=[],t}},qr={polygonStart:Br,lineStart:Br,point:function(t,e){Gr.push([t,e])},lineEnd:function(){var t=Gr.length;if(t){do{Gr.push(Gr[0].slice())}while(++t<4);Yr.push(Gr),Gr=[]}},polygonEnd:Br,result:function(){if(!Yr.length)return null;var t=[],e=[];return Yr.forEach((function(n){Lr(n)?t.push([n]):e.push(n)})),e.forEach((function(e){var n=e[0];t.some((function(t){if(Fr(t[0],n))return t.push(e),!0}))||t.push([e])})),Yr=[],t.length?t.length>1?{type:"MultiPolygon",coordinates:t}:{type:"Polygon",coordinates:t[0]}:null}},Wr=function(t){var n=t(x,0)[0]-t(-x,0)[0];function i(e,i){var o=r(e)<x,a=t(o?e:e>0?e-_:e+_,i),s=(a[0]-a[1])*w,l=(a[0]+a[1])*w;if(o)return[s,l];var u=n*w,c=s>0^l>0?-1:1;return[c*s-p(l)*u,c*l-p(s)*u]}return t.invert&&(i.invert=function(e,i){var o=(e+i)*w,a=(i-e)*w,s=r(o)<.5*n&&r(a)<.5*n;if(!s){var l=n*w,u=o>0^a>0?-1:1,c=-u*e+(a>0?1:-1)*l,h=-u*i+(o>0?1:-1)*l;o=(-c-h)*w,a=(c-h)*w}var f=t.invert(o,a);return s||(f[0]+=o>0?_:-_),f}),e.geoProjection(i).rotate([-90,-90,45]).clipAngle(179.999)},Ur=function(){return Wr(ye).scale(176.423)},Zr=function(){return Wr(je).scale(111.48)},Kr=function(t,e){if(!(0<=(e=+e)&&e<=20))throw new Error("invalid digits");function n(t){var n=t.length,r=2,i=new Array(n);for(i[0]=+t[0].toFixed(e),i[1]=+t[1].toFixed(e);r<n;)i[r]=t[r],++r;return i}function r(t){return t.map(n)}function i(t){return t.map(r)}function o(t){if(null==t)return t;var e;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(o)};break;case"Point":e={type:"Point",coordinates:n(t.coordinates)};break;case"MultiPoint":case"LineString":e={type:t.type,coordinates:r(t.coordinates)};break;case"MultiLineString":case"Polygon":e={type:t.type,coordinates:i(t.coordinates)};break;case"MultiPolygon":e={type:"MultiPolygon",coordinates:t.coordinates.map(i)};break;default:return t}return null!=t.bbox&&(e.bbox=t.bbox),e}function a(t){var e={type:"Feature",properties:t.properties,geometry:o(t.geometry)};return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),e}if(null!=t)switch(t.type){case"Feature":return a(t);case"FeatureCollection":var s={type:"FeatureCollection",features:t.features.map(a)};return null!=t.bbox&&(s.bbox=t.bbox),s;default:return o(t)}return t};function Qr(t){var e=g(t);function n(n,r){var o=e?v(n*e/2)/e:n/2;if(!r)return[2*o,-t];var s=2*i(o*g(r)),l=1/v(r);return[g(s)*l,r+(1-a(s))*l-t]}return n.invert=function(n,o){if(r(o+=t)<y)return[e?2*i(e*n/2)/e:n,0];var s,l=n*n+o*o,u=0,c=10;do{var h=v(u),f=1/a(u),d=l-2*o*u+u*u;u-=s=(h*d+2*(u-o))/(2+d*f*f+2*(u-o)*h)}while(r(s)>y&&--c>0);var p=n*(h=v(u)),m=v(r(o)<r(u+1/h)?.5*T(p):.5*k(p)+_/4)/g(u);return[e?2*i(e*m)/e:2*m,u]},n}var $r=function(){return ot(Qr).scale(131.215)},Jr=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function ti(t,e){var n,i=h(18,36*r(e)/_),o=l(i),a=i-o,s=(n=Jr[o])[0],u=n[1],c=(n=Jr[++o])[0],f=n[1],d=(n=Jr[h(19,++o)])[0],p=n[1];return[t*(c+a*(d-s)/2+a*a*(d-2*c+s)/2),(e>0?x:-x)*(f+a*(p-u)/2+a*a*(p-2*f+u)/2)]}Jr.forEach((function(t){t[1]*=1.0144})),ti.invert=function(t,e){var n=e/x,i=90*n,o=h(18,r(i/5)),a=c(0,l(o));do{var s=Jr[a][1],u=Jr[a+1][1],f=Jr[h(19,a+2)][1],d=f-s,p=f-2*u+s,g=2*(r(n)-u)/d,v=p/d,y=g*(1-v*g*(1-2*v*g));if(y>=0||1===a){i=(e>=0?5:-5)*(y+o);var _,b=50;do{y=(o=h(18,r(i)/5))-(a=l(o)),s=Jr[a][1],u=Jr[a+1][1],f=Jr[h(19,a+2)][1],i-=(_=(e>=0?x:-x)*(u+y*(f-s)/2+y*y*(f-2*u+s)/2)-e)*C}while(r(_)>m&&--b>0);break}}while(--a>=0);var w=Jr[a][0],M=Jr[a+1][0],S=Jr[h(19,a+2)][0];return[t/(M+y*(S-w)/2+y*y*(S-2*M+w)/2),i*E]};var ei=function(){return e.geoProjection(ti).scale(152.63)};function ni(t){function e(e,n){var r=a(n),i=(t-1)/(t-r*a(e));return[i*r*g(e),i*g(n)]}return e.invert=function(e,n){var r=e*e+n*n,i=A(r),a=(t-A(1-r*(t+1)/(t-1)))/((t-1)/i+i/(t-1));return[o(e*a,i*A(1-a*a)),i?T(n*a/i):0]},e}function ri(t,e){var n=ni(t);if(!e)return n;var r=a(e),i=g(e);function o(e,o){var a=n(e,o),s=a[1],l=s*i/(t-1)+r;return[a[0]*r/l,s/l]}return o.invert=function(e,o){var a=(t-1)/(t-1-o*i);return n.invert(a*e,a*o*r)},o}var ii=function(){var t=2,n=0,r=e.geoProjectionMutator(ri),i=r(t,n);return i.distance=function(e){return arguments.length?r(t=+e,n):t},i.tilt=function(e){return arguments.length?r(t,n=e*E):n*C},i.scale(432.147).clipAngle(k(1/t)*C-1e-6)},oi=1e-4,ai=1e4,si=-180,li=si+oi,ui=180,ci=ui-oi,hi=-90,fi=hi+oi,di=90,pi=di-oi;function gi(t){return t.length>0}function vi(t){return Math.floor(t*ai)/ai}function yi(t){return t===hi||t===di?[0,t]:[si,vi(t)]}function mi(t){var e=t[0],n=t[1],r=!1;return e<=li?(e=si,r=!0):e>=ci&&(e=ui,r=!0),n<=fi?(n=hi,r=!0):n>=pi&&(n=di,r=!0),r?[e,n]:t}function _i(t){return t.map(mi)}function xi(t,e,n){for(var r=0,i=t.length;r<i;++r){var o=t[r].slice();n.push({index:-1,polygon:e,ring:o});for(var a=0,s=o.length;a<s;++a){var l=o[a],u=l[0],c=l[1];if(u<=li||u>=ci||c<=fi||c>=pi){o[a]=mi(l);for(var h=a+1;h<s;++h){var f=o[h],d=f[0],p=f[1];if(d>li&&d<ci&&p>fi&&p<pi)break}if(h===a+1)continue;if(a){var g={index:-1,polygon:e,ring:o.slice(0,a+1)};g.ring[g.ring.length-1]=yi(c),n[n.length-1]=g}else n.pop();if(h>=s)break;n.push({index:-1,polygon:e,ring:o=o.slice(h-1)}),o[0]=yi(o[0][1]),a=-1,s=o.length}}}}function bi(t){var e,n,r,i,o,a,s=t.length,l={},u={};for(e=0;e<s;++e)r=(n=t[e]).ring[0],o=n.ring[n.ring.length-1],r[0]!==o[0]||r[1]!==o[1]?(n.index=e,l[r]=u[o]=n):(n.polygon.push(n.ring),t[e]=null);for(e=0;e<s;++e)if(n=t[e]){if(r=n.ring[0],o=n.ring[n.ring.length-1],i=u[r],a=l[o],delete l[r],delete u[o],r[0]===o[0]&&r[1]===o[1]){n.polygon.push(n.ring);continue}i?(delete u[r],delete l[i.ring[0]],i.ring.pop(),t[i.index]=null,n={index:-1,polygon:i.polygon,ring:i.ring.concat(n.ring)},i===a?n.polygon.push(n.ring):(n.index=s++,t.push(l[n.ring[0]]=u[n.ring[n.ring.length-1]]=n))):a?(delete l[o],delete u[a.ring[a.ring.length-1]],n.ring.pop(),n={index:s++,polygon:a.polygon,ring:n.ring.concat(a.ring)},t[a.index]=null,t.push(l[n.ring[0]]=u[n.ring[n.ring.length-1]]=n)):(n.ring.push(n.ring[0]),n.polygon.push(n.ring))}}function wi(t){var e={type:"Feature",geometry:Mi(t.geometry)};return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),null!=t.properties&&(e.properties=t.properties),e}function Mi(t){if(null==t)return t;var e,n,r,i;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(Mi)};break;case"Point":e={type:"Point",coordinates:mi(t.coordinates)};break;case"MultiPoint":case"LineString":e={type:t.type,coordinates:_i(t.coordinates)};break;case"MultiLineString":e={type:"MultiLineString",coordinates:t.coordinates.map(_i)};break;case"Polygon":var o=[];xi(t.coordinates,o,n=[]),bi(n),e={type:"Polygon",coordinates:o};break;case"MultiPolygon":n=[],r=-1,i=t.coordinates.length;for(var a=new Array(i);++r<i;)xi(t.coordinates[r],a[r]=[],n);bi(n),e={type:"MultiPolygon",coordinates:a.filter(gi)};break;default:return t}return null!=t.bbox&&(e.bbox=t.bbox),e}var Si=function(t){if(null==t)return t;switch(t.type){case"Feature":return wi(t);case"FeatureCollection":var e={type:"FeatureCollection",features:t.features.map(wi)};return null!=t.bbox&&(e.bbox=t.bbox),e;default:return Mi(t)}};function ji(t,e){var n=v(e/2),r=g(b*n);return[t*(.74482-.34588*r*r),1.70711*n]}ji.invert=function(t,e){var n=e/1.70711,r=g(b*n);return[t/(.74482-.34588*r*r),2*i(n)]};var Ci=function(){return e.geoProjection(ji).scale(146.153)},Ei=function(t,n,r){var i=e.geoInterpolate(n,r),o=i(.5),a=e.geoRotation([-o[0],-o[1]])(n),s=i.distance/2,l=-T(g(a[1]*E)/g(s)),u=[-o[0],-o[1],-(a[0]>0?_-l:l)*C],c=e.geoProjection(t(s)).rotate(u),h=e.geoRotation(u),f=c.center;return delete c.rotate,c.center=function(t){return arguments.length?f(h(t)):h.invert(f())},c.clipAngle(90)};function Pi(t){var n=a(t);function r(t,r){var i=e.geoGnomonicRaw(t,r);return i[0]*=n,i}return r.invert=function(t,r){return e.geoGnomonicRaw.invert(t/n,r)},r}function Ti(){return ki([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function ki(t,e){return Ei(Pi,t,e)}function Ai(t){if(!(t*=2))return e.geoAzimuthalEquidistantRaw;var n=-t/2,r=-n,i=t*t,s=v(r),l=.5/g(r);function u(e,o){var s=k(a(o)*a(e-n)),l=k(a(o)*a(e-r));return[((s*=s)-(l*=l))/(2*t),(o<0?-1:1)*A(4*i*l-(i-s+l)*(i-s+l))/(2*t)]}return u.invert=function(t,e){var i,u,c=e*e,h=a(A(c+(i=t+n)*i)),f=a(A(c+(i=t+r)*i));return[o(u=h-f,i=(h+f)*s),(e<0?-1:1)*k(A(i*i+u*u)*l)]},u}function Oi(){return Ii([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Ii(t,e){return Ei(Ai,t,e)}function Bi(t,e){if(r(e)<y)return[t,0];var n=r(e/x),i=T(n);if(r(t)<y||r(r(e)-x)<y)return[0,p(e)*_*v(i/2)];var o=a(i),s=r(_/t-t/_)/2,l=s*s,u=o/(n+o-1),c=u*(2/n-1),h=c*c,f=h+l,d=u-h,g=l+u;return[p(t)*_*(s*d+A(l*d*d-f*(u*u-h)))/f,p(e)*_*(c*g-s*A((l+1)*f-g*g))/f]}Bi.invert=function(t,e){if(r(e)<y)return[t,0];if(r(t)<y)return[0,x*g(2*i(e/_))];var n=(t/=_)*t,o=(e/=_)*e,s=n+o,l=s*s,u=-r(e)*(1+s),c=u-2*o+n,h=-2*u+1+2*o+l,f=o/h+(2*c*c*c/(h*h*h)-9*u*c/(h*h))/27,d=(u-c*c/(3*h))/h,v=2*A(-d/3),m=k(3*f/(d*v))/3;return[_*(s-1+A(1+2*(n-o)+l))/(2*t),p(e)*_*(-v*a(m+_/3)-c/(3*h))]};var Li=function(){return e.geoProjection(Bi).scale(79.4183)};function Fi(t,e){if(r(e)<y)return[t,0];var n=r(e/x),i=T(n);if(r(t)<y||r(r(e)-x)<y)return[0,p(e)*_*v(i/2)];var o=a(i),s=r(_/t-t/_)/2,l=s*s,u=o*(A(1+l)-s*o)/(1+l*n*n);return[p(t)*_*u,p(e)*_*A(1-u*(2*s+u))]}Fi.invert=function(t,e){if(!t)return[0,x*g(2*i(e/_))];var n=r(t/_),a=(1-n*n-(e/=_)*e)/(2*n),s=A(a*a+1);return[p(t)*_*(s-a),p(e)*x*g(2*o(A((1-2*a*n)*(a+s)-n),A(s+a+n)))]};var Di=function(){return e.geoProjection(Fi).scale(79.4183)};function Ri(t,e){if(r(e)<y)return[t,0];var n=e/x,i=T(n);if(r(t)<y||r(r(e)-x)<y)return[0,_*v(i/2)];var o=(_/t-t/_)/2,s=n/(1+a(i));return[_*(p(t)*A(o*o+1-s*s)-o),_*s]}Ri.invert=function(t,e){if(!e)return[t,0];var n=e/_,r=(_*_*(1-n*n)-t*t)/(2*_*t);return[t?_*(p(t)*A(r*r+1)-r):0,x*g(2*i(n))]};var Ni=function(){return e.geoProjection(Ri).scale(79.4183)};function zi(t,e){if(!e)return[t,0];var n=r(e);if(!t||n===x)return[0,e];var i=n/x,o=i*i,a=(8*i-o*(o+2)-5)/(2*o*(i-1)),s=a*a,l=i*a,u=o+s+2*l,c=i+3*a,h=t/x,f=h+1/h,d=p(r(t)-x)*A(f*f-4),g=d*d,v=(d*(u+s-1)+2*A(u*(o+s*g-1)+(1-o)*(o*(c*c+4*s)+12*l*s+4*s*s)))/(4*u+g);return[p(t)*x*v,p(e)*x*A(1+d*r(v)-v*v)]}zi.invert=function(t,e){var n;if(!t||!e)return[t,e];e/=_;var i=p(t)*t/x,o=(i*i-1+4*e*e)/r(i),a=o*o,s=2*e,l=50;do{var u=s*s,c=(8*s-u*(u+2)-5)/(2*u*(s-1)),h=(3*s-u*s-10)/(2*u*s),f=c*c,d=s*c,g=s+c,v=g*g,m=s+3*c,b=-2*g*(4*d*f+(1-4*u+3*u*u)*(1+h)+f*(14*u-6-a+(8*u-8-2*a)*h)+d*(12*u-8+(10*u-10-a)*h)),w=A(v*(u+f*a-1)+(1-u)*(u*(m*m+4*f)+f*(12*d+4*f)));s-=n=(o*(v+f-1)+2*w-i*(4*v+a))/(o*(2*c*h+2*g*(1+h))+b/w-8*g*(o*(-1+f+v)+2*w)*(1+h)/(a+4*v))}while(n>y&&--l>0);return[p(t)*(A(o*o+4)+o)*_/4,x*s]};var Hi=function(){return e.geoProjection(zi).scale(127.16)},Gi=4*_+3*A(3),Yi=2*A(2*_*A(3)/Gi),Vi=$(Yi*A(3)/_,Yi,Gi/6),Xi=function(){return e.geoProjection(Vi).scale(176.84)};function qi(t,e){return[t*A(1-3*e*e/(_*_)),e]}qi.invert=function(t,e){return[t/A(1-3*e*e/(_*_)),e]};var Wi=function(){return e.geoProjection(qi).scale(152.63)};function Ui(t,e){var n=.90631*g(e),r=A(1-n*n),i=A(2/(1+r*a(t/=3)));return[2.66723*r*i*g(t),1.24104*n*i]}Ui.invert=function(t,e){var n=t/2.66723,r=e/1.24104,i=A(n*n+r*r),a=2*T(i/2);return[3*o(t*v(a),2.66723*i),i&&T(e*g(a)/(1.24104*.90631*i))]};var Zi=function(){return e.geoProjection(Ui).scale(172.632)};function Ki(t,e){var n=a(e),r=a(t)*n,i=1-r,s=a(t=o(g(t)*n,-g(e))),l=g(t);return[l*(n=A(1-r*r))-s*i,-s*n-l*i]}Ki.invert=function(t,e){var n=(t*t+e*e)/-2,r=A(-n*(2+n)),i=e*n+t*r,a=t*n-e*r,s=A(a*a+i*i);return[o(r*i,s*(1+n)),s?-T(r*a/s):0]};var Qi=function(){return e.geoProjection(Ki).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)};function $i(t,e){var n=N(t,e);return[(n[0]+t/x)/2,(n[1]+e)/2]}$i.invert=function(t,e){var n=t,i=e,o=25;do{var s,l=a(i),u=g(i),c=g(2*i),h=u*u,f=l*l,d=g(n),p=a(n/2),v=g(n/2),m=v*v,_=1-f*p*p,b=_?k(l*p)*A(s=1/_):s=0,w=.5*(2*b*l*v+n/x)-t,M=.5*(b*u+i)-e,S=.5*s*(f*m+b*l*p*h)+.5/x,j=s*(d*c/4-b*u*v),C=.125*s*(c*v-b*u*f*d),E=.5*s*(h*p+b*m*l)+.5,P=j*C-E*S,T=(M*j-w*E)/P,O=(w*C-M*S)/P;n-=T,i-=O}while((r(T)>y||r(O)>y)&&--o>0);return[n,i]};var Ji=function(){return e.geoProjection($i).scale(158.837)};t.geoAiry=R,t.geoAiryRaw=D,t.geoAitoff=z,t.geoAitoffRaw=N,t.geoArmadillo=G,t.geoArmadilloRaw=H,t.geoAugust=V,t.geoAugustRaw=Y,t.geoBaker=U,t.geoBakerRaw=W,t.geoBerghaus=K,t.geoBerghausRaw=Z,t.geoBoggs=it,t.geoBoggsRaw=rt,t.geoBonne=ut,t.geoBonneRaw=lt,t.geoBottomley=ht,t.geoBottomleyRaw=ct,t.geoBromley=dt,t.geoBromleyRaw=ft,t.geoChamberlin=xt,t.geoChamberlinRaw=yt,t.geoChamberlinAfrica=_t,t.geoCollignon=wt,t.geoCollignonRaw=bt,t.geoCraig=St,t.geoCraigRaw=Mt,t.geoCraster=Et,t.geoCrasterRaw=Ct,t.geoCylindricalEqualArea=Tt,t.geoCylindricalEqualAreaRaw=Pt,t.geoCylindricalStereographic=At,t.geoCylindricalStereographicRaw=kt,t.geoEckert1=It,t.geoEckert1Raw=Ot,t.geoEckert2=Lt,t.geoEckert2Raw=Bt,t.geoEckert3=Dt,t.geoEckert3Raw=Ft,t.geoEckert4=Nt,t.geoEckert4Raw=Rt,t.geoEckert5=Ht,t.geoEckert5Raw=zt,t.geoEckert6=Yt,t.geoEckert6Raw=Gt,t.geoEisenlohr=qt,t.geoEisenlohrRaw=Xt,t.geoFahey=Zt,t.geoFaheyRaw=Ut,t.geoFoucaut=Qt,t.geoFoucautRaw=Kt,t.geoGilbert=te,t.geoGingery=ie,t.geoGingeryRaw=ee,t.geoGinzburg4=se,t.geoGinzburg4Raw=ae,t.geoGinzburg5=ue,t.geoGinzburg5Raw=le,t.geoGinzburg6=he,t.geoGinzburg6Raw=ce,t.geoGinzburg8=de,t.geoGinzburg8Raw=fe,t.geoGinzburg9=ge,t.geoGinzburg9Raw=pe,t.geoGringorten=xe,t.geoGringortenRaw=ye,t.geoGuyou=Pe,t.geoGuyouRaw=je,t.geoHammer=Ae,t.geoHammerRaw=Te,t.geoHammerRetroazimuthal=Be,t.geoHammerRetroazimuthalRaw=Oe,t.geoHealpix=Ne,t.geoHealpixRaw=De,t.geoHill=He,t.geoHillRaw=ze,t.geoHomolosine=We,t.geoHomolosineRaw=qe,t.geoInterrupt=Qe,t.geoInterruptedBoggs=Je,t.geoInterruptedHomolosine=en,t.geoInterruptedMollweide=rn,t.geoInterruptedMollweideHemispheres=an,t.geoInterruptedSinuMollweide=ln,t.geoInterruptedSinusoidal=cn,t.geoKavrayskiy7=fn,t.geoKavrayskiy7Raw=hn,t.geoLagrange=pn,t.geoLagrangeRaw=dn,t.geoLarrivee=yn,t.geoLarriveeRaw=vn,t.geoLaskowski=_n,t.geoLaskowskiRaw=mn,t.geoLittrow=bn,t.geoLittrowRaw=xn,t.geoLoximuthal=Mn,t.geoLoximuthalRaw=wn,t.geoMiller=jn,t.geoMillerRaw=Sn,t.geoModifiedStereographic=Dn,t.geoModifiedStereographicRaw=Cn,t.geoModifiedStereographicAlaska=On,t.geoModifiedStereographicGs48=In,t.geoModifiedStereographicGs50=Bn,t.geoModifiedStereographicMiller=Ln,t.geoModifiedStereographicLee=Fn,t.geoMollweide=tt,t.geoMollweideRaw=J,t.geoMtFlatPolarParabolic=Hn,t.geoMtFlatPolarParabolicRaw=zn,t.geoMtFlatPolarQuartic=Yn,t.geoMtFlatPolarQuarticRaw=Gn,t.geoMtFlatPolarSinusoidal=Xn,t.geoMtFlatPolarSinusoidalRaw=Vn,t.geoNaturalEarth=Wn,t.geoNaturalEarthRaw=qn,t.geoNaturalEarth2=Zn,t.geoNaturalEarth2Raw=Un,t.geoNellHammer=Qn,t.geoNellHammerRaw=Kn,t.geoPatterson=lr,t.geoPattersonRaw=sr,t.geoPolyconic=cr,t.geoPolyconicRaw=ur,t.geoPolyhedral=yr,t.geoPolyhedralButterfly=jr,t.geoPolyhedralCollignon=Pr,t.geoPolyhedralWaterman=Tr,t.geoProject=Dr,t.geoGringortenQuincuncial=Ur,t.geoPeirceQuincuncial=Zr,t.geoPierceQuincuncial=Zr,t.geoQuantize=Kr,t.geoQuincuncial=Wr,t.geoRectangularPolyconic=$r,t.geoRectangularPolyconicRaw=Qr,t.geoRobinson=ei,t.geoRobinsonRaw=ti,t.geoSatellite=ii,t.geoSatelliteRaw=ri,t.geoSinuMollweide=Xe,t.geoSinuMollweideRaw=Ve,t.geoSinusoidal=st,t.geoSinusoidalRaw=at,t.geoStitch=Si,t.geoTimes=Ci,t.geoTimesRaw=ji,t.geoTwoPointAzimuthal=ki,t.geoTwoPointAzimuthalRaw=Pi,t.geoTwoPointAzimuthalUsa=Ti,t.geoTwoPointEquidistant=Ii,t.geoTwoPointEquidistantRaw=Ai,t.geoTwoPointEquidistantUsa=Oi,t.geoVanDerGrinten=Li,t.geoVanDerGrintenRaw=Bi,t.geoVanDerGrinten2=Di,t.geoVanDerGrinten2Raw=Fi,t.geoVanDerGrinten3=Ni,t.geoVanDerGrinten3Raw=Ri,t.geoVanDerGrinten4=Hi,t.geoVanDerGrinten4Raw=zi,t.geoWagner4=Xi,t.geoWagner4Raw=Vi,t.geoWagner6=Wi,t.geoWagner6Raw=qi,t.geoWagner7=Zi,t.geoWagner7Raw=Ui,t.geoWiechel=Qi,t.geoWiechelRaw=Ki,t.geoWinkel3=Ji,t.geoWinkel3Raw=$i,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(/*! d3-geo */"./node_modules/_d3-geo@1.12.1@d3-geo/dist/d3-geo.js"),n(/*! d3-array */"./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js"))},"./node_modules/_d3-geo@1.12.1@d3-geo/dist/d3-geo.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_d3-geo@1.12.1@d3-geo/dist/d3-geo.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e,n){!function(t,e){function n(){return new r}function r(){this.reset()}r.prototype={constructor:r,reset:function(){this.s=this.t=0},add:function(t){o(i,t,this.t),o(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new r;function o(t,e,n){var r=t.s=e+n,i=r-e,o=r-i;t.t=e-o+(n-i)}var a=1e-6,s=1e-12,l=Math.PI,u=l/2,c=l/4,h=2*l,f=180/l,d=l/180,p=Math.abs,g=Math.atan,v=Math.atan2,y=Math.cos,m=Math.ceil,_=Math.exp,x=Math.log,b=Math.pow,w=Math.sin,M=Math.sign||function(t){return t>0?1:t<0?-1:0},S=Math.sqrt,j=Math.tan;function C(t){return t>1?0:t<-1?l:Math.acos(t)}function E(t){return t>1?u:t<-1?-u:Math.asin(t)}function P(t){return(t=w(t/2))*t}function T(){}function k(t,e){t&&O.hasOwnProperty(t.type)&&O[t.type](t,e)}var A={Feature:function(t,e){k(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)k(n[r].geometry,e)}},O={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){I(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)I(n[r],e,0)},Polygon:function(t,e){B(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)B(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)k(n[r],e)}};function I(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function B(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)I(t[n],e,1);e.polygonEnd()}function L(t,e){t&&A.hasOwnProperty(t.type)?A[t.type](t,e):k(t,e)}var F,D,R,N,z,H=n(),G=n(),Y={point:T,lineStart:T,lineEnd:T,polygonStart:function(){H.reset(),Y.lineStart=V,Y.lineEnd=X},polygonEnd:function(){var t=+H;G.add(t<0?h+t:t),this.lineStart=this.lineEnd=this.point=T},sphere:function(){G.add(h)}};function V(){Y.point=q}function X(){W(F,D)}function q(t,e){Y.point=W,F=t,D=e,R=t*=d,N=y(e=(e*=d)/2+c),z=w(e)}function W(t,e){var n=(t*=d)-R,r=n>=0?1:-1,i=r*n,o=y(e=(e*=d)/2+c),a=w(e),s=z*a,l=N*o+s*y(i),u=s*r*w(i);H.add(v(u,l)),R=t,N=o,z=a}function U(t){return G.reset(),L(t,Y),2*G}function Z(t){return[v(t[1],t[0]),E(t[2])]}function K(t){var e=t[0],n=t[1],r=y(n);return[r*y(e),r*w(e),w(n)]}function Q(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function $(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function J(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function tt(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function et(t){var e=S(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var nt,rt,it,ot,at,st,lt,ut,ct,ht,ft,dt,pt,gt,vt,yt,mt,_t,xt,bt,wt,Mt,St,jt,Ct,Et,Pt=n(),Tt={point:kt,lineStart:Ot,lineEnd:It,polygonStart:function(){Tt.point=Bt,Tt.lineStart=Lt,Tt.lineEnd=Ft,Pt.reset(),Y.polygonStart()},polygonEnd:function(){Y.polygonEnd(),Tt.point=kt,Tt.lineStart=Ot,Tt.lineEnd=It,H<0?(nt=-(it=180),rt=-(ot=90)):Pt>a?ot=90:Pt<-a&&(rt=-90),ht[0]=nt,ht[1]=it},sphere:function(){nt=-(it=180),rt=-(ot=90)}};function kt(t,e){ct.push(ht=[nt=t,it=t]),e<rt&&(rt=e),e>ot&&(ot=e)}function At(t,e){var n=K([t*d,e*d]);if(ut){var r=$(ut,n),i=$([r[1],-r[0],0],r);et(i),i=Z(i);var o,a=t-at,s=a>0?1:-1,l=i[0]*f*s,u=p(a)>180;u^(s*at<l&&l<s*t)?(o=i[1]*f)>ot&&(ot=o):u^(s*at<(l=(l+360)%360-180)&&l<s*t)?(o=-i[1]*f)<rt&&(rt=o):(e<rt&&(rt=e),e>ot&&(ot=e)),u?t<at?Dt(nt,t)>Dt(nt,it)&&(it=t):Dt(t,it)>Dt(nt,it)&&(nt=t):it>=nt?(t<nt&&(nt=t),t>it&&(it=t)):t>at?Dt(nt,t)>Dt(nt,it)&&(it=t):Dt(t,it)>Dt(nt,it)&&(nt=t)}else ct.push(ht=[nt=t,it=t]);e<rt&&(rt=e),e>ot&&(ot=e),ut=n,at=t}function Ot(){Tt.point=At}function It(){ht[0]=nt,ht[1]=it,Tt.point=kt,ut=null}function Bt(t,e){if(ut){var n=t-at;Pt.add(p(n)>180?n+(n>0?360:-360):n)}else st=t,lt=e;Y.point(t,e),At(t,e)}function Lt(){Y.lineStart()}function Ft(){Bt(st,lt),Y.lineEnd(),p(Pt)>a&&(nt=-(it=180)),ht[0]=nt,ht[1]=it,ut=null}function Dt(t,e){return(e-=t)<0?e+360:e}function Rt(t,e){return t[0]-e[0]}function Nt(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function zt(t){var e,n,r,i,o,a,s;if(ot=it=-(nt=rt=1/0),ct=[],L(t,Tt),n=ct.length){for(ct.sort(Rt),e=1,o=[r=ct[0]];e<n;++e)Nt(r,(i=ct[e])[0])||Nt(r,i[1])?(Dt(r[0],i[1])>Dt(r[0],r[1])&&(r[1]=i[1]),Dt(i[0],r[1])>Dt(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,e=0,r=o[n=o.length-1];e<=n;r=i,++e)i=o[e],(s=Dt(r[1],i[0]))>a&&(a=s,nt=i[0],it=r[1])}return ct=ht=null,nt===1/0||rt===1/0?[[NaN,NaN],[NaN,NaN]]:[[nt,rt],[it,ot]]}var Ht={sphere:T,point:Gt,lineStart:Vt,lineEnd:Wt,polygonStart:function(){Ht.lineStart=Ut,Ht.lineEnd=Zt},polygonEnd:function(){Ht.lineStart=Vt,Ht.lineEnd=Wt}};function Gt(t,e){t*=d;var n=y(e*=d);Yt(n*y(t),n*w(t),w(e))}function Yt(t,e,n){++ft,pt+=(t-pt)/ft,gt+=(e-gt)/ft,vt+=(n-vt)/ft}function Vt(){Ht.point=Xt}function Xt(t,e){t*=d;var n=y(e*=d);jt=n*y(t),Ct=n*w(t),Et=w(e),Ht.point=qt,Yt(jt,Ct,Et)}function qt(t,e){t*=d;var n=y(e*=d),r=n*y(t),i=n*w(t),o=w(e),a=v(S((a=Ct*o-Et*i)*a+(a=Et*r-jt*o)*a+(a=jt*i-Ct*r)*a),jt*r+Ct*i+Et*o);dt+=a,yt+=a*(jt+(jt=r)),mt+=a*(Ct+(Ct=i)),_t+=a*(Et+(Et=o)),Yt(jt,Ct,Et)}function Wt(){Ht.point=Gt}function Ut(){Ht.point=Kt}function Zt(){Qt(Mt,St),Ht.point=Gt}function Kt(t,e){Mt=t,St=e,t*=d,e*=d,Ht.point=Qt;var n=y(e);jt=n*y(t),Ct=n*w(t),Et=w(e),Yt(jt,Ct,Et)}function Qt(t,e){t*=d;var n=y(e*=d),r=n*y(t),i=n*w(t),o=w(e),a=Ct*o-Et*i,s=Et*r-jt*o,l=jt*i-Ct*r,u=S(a*a+s*s+l*l),c=E(u),h=u&&-c/u;xt+=h*a,bt+=h*s,wt+=h*l,dt+=c,yt+=c*(jt+(jt=r)),mt+=c*(Ct+(Ct=i)),_t+=c*(Et+(Et=o)),Yt(jt,Ct,Et)}function $t(t){ft=dt=pt=gt=vt=yt=mt=_t=xt=bt=wt=0,L(t,Ht);var e=xt,n=bt,r=wt,i=e*e+n*n+r*r;return i<s&&(e=yt,n=mt,r=_t,dt<a&&(e=pt,n=gt,r=vt),(i=e*e+n*n+r*r)<s)?[NaN,NaN]:[v(n,e)*f,E(r/S(i))*f]}function Jt(t){return function(){return t}}function te(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}function ee(t,e){return[p(t)>l?t+Math.round(-t/h)*h:t,e]}function ne(t,e,n){return(t%=h)?e||n?te(ie(t),oe(e,n)):ie(t):e||n?oe(e,n):ee}function re(t){return function(e,n){return[(e+=t)>l?e-h:e<-l?e+h:e,n]}}function ie(t){var e=re(t);return e.invert=re(-t),e}function oe(t,e){var n=y(t),r=w(t),i=y(e),o=w(e);function a(t,e){var a=y(e),s=y(t)*a,l=w(t)*a,u=w(e),c=u*n+s*r;return[v(l*i-c*o,s*n-u*r),E(c*i+l*o)]}return a.invert=function(t,e){var a=y(e),s=y(t)*a,l=w(t)*a,u=w(e),c=u*i-l*o;return[v(l*i+u*o,s*n+c*r),E(c*n-s*r)]},a}function ae(t){function e(e){return(e=t(e[0]*d,e[1]*d))[0]*=f,e[1]*=f,e}return t=ne(t[0]*d,t[1]*d,t.length>2?t[2]*d:0),e.invert=function(e){return(e=t.invert(e[0]*d,e[1]*d))[0]*=f,e[1]*=f,e},e}function se(t,e,n,r,i,o){if(n){var a=y(e),s=w(e),l=r*n;null==i?(i=e+r*h,o=e-l/2):(i=le(a,i),o=le(a,o),(r>0?i<o:i>o)&&(i+=r*h));for(var u,c=i;r>0?c>o:c<o;c-=l)u=Z([a,-s*y(c),-s*w(c)]),t.point(u[0],u[1])}}function le(t,e){(e=K(e))[0]-=t,et(e);var n=C(-e[1]);return((-e[2]<0?-n:n)+h-a)%h}function ue(){var t,e,n=Jt([0,0]),r=Jt(90),i=Jt(6),o={point:a};function a(n,r){t.push(n=e(n,r)),n[0]*=f,n[1]*=f}function s(){var a=n.apply(this,arguments),s=r.apply(this,arguments)*d,l=i.apply(this,arguments)*d;return t=[],e=ne(-a[0]*d,-a[1]*d,0).invert,se(o,s,l,1),a={type:"Polygon",coordinates:[t]},t=e=null,a}return s.center=function(t){return arguments.length?(n="function"==typeof t?t:Jt([+t[0],+t[1]]),s):n},s.radius=function(t){return arguments.length?(r="function"==typeof t?t:Jt(+t),s):r},s.precision=function(t){return arguments.length?(i="function"==typeof t?t:Jt(+t),s):i},s}function ce(){var t,e=[];return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:T,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function he(t,e){return p(t[0]-e[0])<a&&p(t[1]-e[1])<a}function fe(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function de(t,e,n,r,i){var o,s,l=[],u=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],s=t[e];if(he(r,s)){if(!r[2]&&!s[2]){for(i.lineStart(),o=0;o<e;++o)i.point((r=t[o])[0],r[1]);return void i.lineEnd()}s[0]+=2*a}l.push(n=new fe(r,t,null,!0)),u.push(n.o=new fe(r,null,n,!1)),l.push(n=new fe(s,t,null,!1)),u.push(n.o=new fe(s,null,n,!0))}})),l.length){for(u.sort(e),pe(l),pe(u),o=0,s=u.length;o<s;++o)u[o].e=n=!n;for(var c,h,f=l[0];;){for(var d=f,p=!0;d.v;)if((d=d.n)===f)return;c=d.z,i.lineStart();do{if(d.v=d.o.v=!0,d.e){if(p)for(o=0,s=c.length;o<s;++o)i.point((h=c[o])[0],h[1]);else r(d.x,d.n.x,1,i);d=d.n}else{if(p)for(c=d.p.z,o=c.length-1;o>=0;--o)i.point((h=c[o])[0],h[1]);else r(d.x,d.p.x,-1,i);d=d.p}c=(d=d.o).z,p=!p}while(!d.v);i.lineEnd()}}}function pe(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}ee.invert=ee;var ge=n();function ve(t){return p(t[0])<=l?t[0]:M(t[0])*((p(t[0])+l)%h-l)}function ye(t,e){var n=ve(e),r=e[1],i=w(r),o=[w(n),-y(n),0],s=0,f=0;ge.reset(),1===i?r=u+a:-1===i&&(r=-u-a);for(var d=0,p=t.length;d<p;++d)if(m=(g=t[d]).length)for(var g,m,_=g[m-1],x=ve(_),b=_[1]/2+c,M=w(b),S=y(b),j=0;j<m;++j,x=P,M=k,S=A,_=C){var C=g[j],P=ve(C),T=C[1]/2+c,k=w(T),A=y(T),O=P-x,I=O>=0?1:-1,B=I*O,L=B>l,F=M*k;if(ge.add(v(F*I*w(B),S*A+F*y(B))),s+=L?O+I*h:O,L^x>=n^P>=n){var D=$(K(_),K(C));et(D);var R=$(o,D);et(R);var N=(L^O>=0?-1:1)*E(R[2]);(r>N||r===N&&(D[0]||D[1]))&&(f+=L^O>=0?1:-1)}}return(s<-a||s<a&&ge<-a)^1&f}function me(t,n,r,i){return function(o){var a,s,l,u=n(o),c=ce(),h=n(c),f=!1,d={point:p,lineStart:v,lineEnd:y,polygonStart:function(){d.point=m,d.lineStart=_,d.lineEnd=x,s=[],a=[]},polygonEnd:function(){d.point=p,d.lineStart=v,d.lineEnd=y,s=e.merge(s);var t=ye(a,i);s.length?(f||(o.polygonStart(),f=!0),de(s,xe,t,r,o)):t&&(f||(o.polygonStart(),f=!0),o.lineStart(),r(null,null,1,o),o.lineEnd()),f&&(o.polygonEnd(),f=!1),s=a=null},sphere:function(){o.polygonStart(),o.lineStart(),r(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function p(e,n){t(e,n)&&o.point(e,n)}function g(t,e){u.point(t,e)}function v(){d.point=g,u.lineStart()}function y(){d.point=p,u.lineEnd()}function m(t,e){l.push([t,e]),h.point(t,e)}function _(){h.lineStart(),l=[]}function x(){m(l[0][0],l[0][1]),h.lineEnd();var t,e,n,r,i=h.clean(),u=c.result(),d=u.length;if(l.pop(),a.push(l),l=null,d)if(1&i){if((e=(n=u[0]).length-1)>0){for(f||(o.polygonStart(),f=!0),o.lineStart(),t=0;t<e;++t)o.point((r=n[t])[0],r[1]);o.lineEnd()}}else d>1&&2&i&&u.push(u.pop().concat(u.shift())),s.push(u.filter(_e))}return d}}function _e(t){return t.length>1}function xe(t,e){return((t=t.x)[0]<0?t[1]-u-a:u-t[1])-((e=e.x)[0]<0?e[1]-u-a:u-e[1])}var be=me((function(){return!0}),we,Se,[-l,-u]);function we(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,s){var c=o>0?l:-l,h=p(o-n);p(h-l)<a?(t.point(n,r=(r+s)/2>0?u:-u),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(c,r),t.point(o,r),e=0):i!==c&&h>=l&&(p(n-i)<a&&(n-=i*a),p(o-c)<a&&(o-=c*a),r=Me(n,r,o,s),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(c,r),e=0),t.point(n=o,r=s),i=c},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}function Me(t,e,n,r){var i,o,s=w(t-n);return p(s)>a?g((w(e)*(o=y(r))*w(n)-w(r)*(i=y(e))*w(t))/(i*o*s)):(e+r)/2}function Se(t,e,n,r){var i;if(null==t)i=n*u,r.point(-l,i),r.point(0,i),r.point(l,i),r.point(l,0),r.point(l,-i),r.point(0,-i),r.point(-l,-i),r.point(-l,0),r.point(-l,i);else if(p(t[0]-e[0])>a){var o=t[0]<e[0]?l:-l;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])}function je(t){var e=y(t),n=6*d,r=e>0,i=p(e)>a;function o(e,r,i,o){se(o,t,n,i,e,r)}function s(t,n){return y(t)*y(n)>e}function u(t){var e,n,o,a,u;return{lineStart:function(){a=o=!1,u=1},point:function(f,d){var p,g=[f,d],v=s(f,d),y=r?v?0:h(f,d):v?h(f+(f<0?l:-l),d):0;if(!e&&(a=o=v)&&t.lineStart(),v!==o&&(!(p=c(e,g))||he(e,p)||he(g,p))&&(g[2]=1),v!==o)u=0,v?(t.lineStart(),p=c(g,e),t.point(p[0],p[1])):(p=c(e,g),t.point(p[0],p[1],2),t.lineEnd()),e=p;else if(i&&e&&r^v){var m;y&n||!(m=c(g,e,!0))||(u=0,r?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1],3)))}!v||e&&he(e,g)||t.point(g[0],g[1]),e=g,o=v,n=y},lineEnd:function(){o&&t.lineEnd(),e=null},clean:function(){return u|(a&&o)<<1}}}function c(t,n,r){var i=[1,0,0],o=$(K(t),K(n)),s=Q(o,o),u=o[0],c=s-u*u;if(!c)return!r&&t;var h=e*s/c,f=-e*u/c,d=$(i,o),g=tt(i,h);J(g,tt(o,f));var v=d,y=Q(g,v),m=Q(v,v),_=y*y-m*(Q(g,g)-1);if(!(_<0)){var x=S(_),b=tt(v,(-y-x)/m);if(J(b,g),b=Z(b),!r)return b;var w,M=t[0],j=n[0],C=t[1],E=n[1];j<M&&(w=M,M=j,j=w);var P=j-M,T=p(P-l)<a;if(!T&&E<C&&(w=C,C=E,E=w),T||P<a?T?C+E>0^b[1]<(p(b[0]-M)<a?C:E):C<=b[1]&&b[1]<=E:P>l^(M<=b[0]&&b[0]<=j)){var k=tt(v,(-y+x)/m);return J(k,g),[b,Z(k)]}}}function h(e,n){var i=r?t:l-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return me(s,u,o,r?[0,-t]:[-l,t-l])}function Ce(t,e,n,r,i,o){var a,s=t[0],l=t[1],u=0,c=1,h=e[0]-s,f=e[1]-l;if(a=n-s,h||!(a>0)){if(a/=h,h<0){if(a<u)return;a<c&&(c=a)}else if(h>0){if(a>c)return;a>u&&(u=a)}if(a=i-s,h||!(a<0)){if(a/=h,h<0){if(a>c)return;a>u&&(u=a)}else if(h>0){if(a<u)return;a<c&&(c=a)}if(a=r-l,f||!(a>0)){if(a/=f,f<0){if(a<u)return;a<c&&(c=a)}else if(f>0){if(a>c)return;a>u&&(u=a)}if(a=o-l,f||!(a<0)){if(a/=f,f<0){if(a>c)return;a>u&&(u=a)}else if(f>0){if(a<u)return;a<c&&(c=a)}return u>0&&(t[0]=s+u*h,t[1]=l+u*f),c<1&&(e[0]=s+c*h,e[1]=l+c*f),!0}}}}}var Ee=1e9,Pe=-Ee;function Te(t,n,r,i){function o(e,o){return t<=e&&e<=r&&n<=o&&o<=i}function s(e,o,a,s){var u=0,h=0;if(null==e||(u=l(e,a))!==(h=l(o,a))||c(e,o)<0^a>0)do{s.point(0===u||3===u?t:r,u>1?i:n)}while((u=(u+a+4)%4)!==h);else s.point(o[0],o[1])}function l(e,i){return p(e[0]-t)<a?i>0?0:3:p(e[0]-r)<a?i>0?2:1:p(e[1]-n)<a?i>0?1:0:i>0?3:2}function u(t,e){return c(t.x,e.x)}function c(t,e){var n=l(t,1),r=l(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(a){var l,c,h,f,d,p,g,v,y,m,_,x=a,b=ce(),w={point:M,lineStart:E,lineEnd:P,polygonStart:j,polygonEnd:C};function M(t,e){o(t,e)&&x.point(t,e)}function S(){for(var e=0,n=0,r=c.length;n<r;++n)for(var o,a,s=c[n],l=1,u=s.length,h=s[0],f=h[0],d=h[1];l<u;++l)o=f,a=d,f=(h=s[l])[0],d=h[1],a<=i?d>i&&(f-o)*(i-a)>(d-a)*(t-o)&&++e:d<=i&&(f-o)*(i-a)<(d-a)*(t-o)&&--e;return e}function j(){x=b,l=[],c=[],_=!0}function C(){var t=S(),n=_&&t,r=(l=e.merge(l)).length;(n||r)&&(a.polygonStart(),n&&(a.lineStart(),s(null,null,1,a),a.lineEnd()),r&&de(l,u,t,s,a),a.polygonEnd()),x=a,l=c=h=null}function E(){w.point=T,c&&c.push(h=[]),m=!0,y=!1,g=v=NaN}function P(){l&&(T(f,d),p&&y&&b.rejoin(),l.push(b.result())),w.point=M,y&&x.lineEnd()}function T(e,a){var s=o(e,a);if(c&&h.push([e,a]),m)f=e,d=a,p=s,m=!1,s&&(x.lineStart(),x.point(e,a));else if(s&&y)x.point(e,a);else{var l=[g=Math.max(Pe,Math.min(Ee,g)),v=Math.max(Pe,Math.min(Ee,v))],u=[e=Math.max(Pe,Math.min(Ee,e)),a=Math.max(Pe,Math.min(Ee,a))];Ce(l,u,t,n,r,i)?(y||(x.lineStart(),x.point(l[0],l[1])),x.point(u[0],u[1]),s||x.lineEnd(),_=!1):s&&(x.lineStart(),x.point(e,a),_=!1)}g=e,v=a,y=s}return w}}function ke(){var t,e,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return t&&e===n?t:t=Te(r,i,o,a)(e=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],o=+s[1][0],a=+s[1][1],t=e=null,n):[[r,i],[o,a]]}}}var Ae,Oe,Ie,Be=n(),Le={sphere:T,point:T,lineStart:Fe,lineEnd:T,polygonStart:T,polygonEnd:T};function Fe(){Le.point=Re,Le.lineEnd=De}function De(){Le.point=Le.lineEnd=T}function Re(t,e){Ae=t*=d,Oe=w(e*=d),Ie=y(e),Le.point=Ne}function Ne(t,e){t*=d;var n=w(e*=d),r=y(e),i=p(t-Ae),o=y(i),a=r*w(i),s=Ie*n-Oe*r*o,l=Oe*n+Ie*r*o;Be.add(v(S(a*a+s*s),l)),Ae=t,Oe=n,Ie=r}function ze(t){return Be.reset(),L(t,Le),+Be}var He=[null,null],Ge={type:"LineString",coordinates:He};function Ye(t,e){return He[0]=t,He[1]=e,ze(Ge)}var Ve={Feature:function(t,e){return qe(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)if(qe(n[r].geometry,e))return!0;return!1}},Xe={Sphere:function(){return!0},Point:function(t,e){return We(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(We(n[r],e))return!0;return!1},LineString:function(t,e){return Ue(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Ue(n[r],e))return!0;return!1},Polygon:function(t,e){return Ze(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Ze(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)if(qe(n[r],e))return!0;return!1}};function qe(t,e){return!(!t||!Xe.hasOwnProperty(t.type))&&Xe[t.type](t,e)}function We(t,e){return 0===Ye(t,e)}function Ue(t,e){for(var n,r,i,o=0,a=t.length;o<a;o++){if(0===(r=Ye(t[o],e)))return!0;if(o>0&&(i=Ye(t[o],t[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<s*i)return!0;n=r}return!1}function Ze(t,e){return!!ye(t.map(Ke),Qe(e))}function Ke(t){return(t=t.map(Qe)).pop(),t}function Qe(t){return[t[0]*d,t[1]*d]}function $e(t,e){return(t&&Ve.hasOwnProperty(t.type)?Ve[t.type]:qe)(t,e)}function Je(t,n,r){var i=e.range(t,n-a,r).concat(n);return function(t){return i.map((function(e){return[t,e]}))}}function tn(t,n,r){var i=e.range(t,n-a,r).concat(n);return function(t){return i.map((function(e){return[e,t]}))}}function en(){var t,n,r,i,o,s,l,u,c,h,f,d,g=10,v=g,y=90,_=360,x=2.5;function b(){return{type:"MultiLineString",coordinates:w()}}function w(){return e.range(m(i/y)*y,r,y).map(f).concat(e.range(m(u/_)*_,l,_).map(d)).concat(e.range(m(n/g)*g,t,g).filter((function(t){return p(t%y)>a})).map(c)).concat(e.range(m(s/v)*v,o,v).filter((function(t){return p(t%_)>a})).map(h))}return b.lines=function(){return w().map((function(t){return{type:"LineString",coordinates:t}}))},b.outline=function(){return{type:"Polygon",coordinates:[f(i).concat(d(l).slice(1),f(r).reverse().slice(1),d(u).reverse().slice(1))]}},b.extent=function(t){return arguments.length?b.extentMajor(t).extentMinor(t):b.extentMinor()},b.extentMajor=function(t){return arguments.length?(i=+t[0][0],r=+t[1][0],u=+t[0][1],l=+t[1][1],i>r&&(t=i,i=r,r=t),u>l&&(t=u,u=l,l=t),b.precision(x)):[[i,u],[r,l]]},b.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],s=+e[0][1],o=+e[1][1],n>t&&(e=n,n=t,t=e),s>o&&(e=s,s=o,o=e),b.precision(x)):[[n,s],[t,o]]},b.step=function(t){return arguments.length?b.stepMajor(t).stepMinor(t):b.stepMinor()},b.stepMajor=function(t){return arguments.length?(y=+t[0],_=+t[1],b):[y,_]},b.stepMinor=function(t){return arguments.length?(g=+t[0],v=+t[1],b):[g,v]},b.precision=function(e){return arguments.length?(x=+e,c=Je(s,o,90),h=tn(n,t,x),f=Je(u,l,90),d=tn(i,r,x),b):x},b.extentMajor([[-180,-90+a],[180,90-a]]).extentMinor([[-180,-80-a],[180,80+a]])}function nn(){return en()()}function rn(t,e){var n=t[0]*d,r=t[1]*d,i=e[0]*d,o=e[1]*d,a=y(r),s=w(r),l=y(o),u=w(o),c=a*y(n),h=a*w(n),p=l*y(i),g=l*w(i),m=2*E(S(P(o-r)+a*l*P(i-n))),_=w(m),x=m?function(t){var e=w(t*=m)/_,n=w(m-t)/_,r=n*c+e*p,i=n*h+e*g,o=n*s+e*u;return[v(i,r)*f,v(o,S(r*r+i*i))*f]}:function(){return[n*f,r*f]};return x.distance=m,x}function on(t){return t}var an,sn,ln,un,cn=n(),hn=n(),fn={point:T,lineStart:T,lineEnd:T,polygonStart:function(){fn.lineStart=dn,fn.lineEnd=vn},polygonEnd:function(){fn.lineStart=fn.lineEnd=fn.point=T,cn.add(p(hn)),hn.reset()},result:function(){var t=cn/2;return cn.reset(),t}};function dn(){fn.point=pn}function pn(t,e){fn.point=gn,an=ln=t,sn=un=e}function gn(t,e){hn.add(un*t-ln*e),ln=t,un=e}function vn(){gn(an,sn)}var yn=1/0,mn=yn,_n=-yn,xn=_n,bn={point:wn,lineStart:T,lineEnd:T,polygonStart:T,polygonEnd:T,result:function(){var t=[[yn,mn],[_n,xn]];return _n=xn=-(mn=yn=1/0),t}};function wn(t,e){t<yn&&(yn=t),t>_n&&(_n=t),e<mn&&(mn=e),e>xn&&(xn=e)}var Mn,Sn,jn,Cn,En=0,Pn=0,Tn=0,kn=0,An=0,On=0,In=0,Bn=0,Ln=0,Fn={point:Dn,lineStart:Rn,lineEnd:Hn,polygonStart:function(){Fn.lineStart=Gn,Fn.lineEnd=Yn},polygonEnd:function(){Fn.point=Dn,Fn.lineStart=Rn,Fn.lineEnd=Hn},result:function(){var t=Ln?[In/Ln,Bn/Ln]:On?[kn/On,An/On]:Tn?[En/Tn,Pn/Tn]:[NaN,NaN];return En=Pn=Tn=kn=An=On=In=Bn=Ln=0,t}};function Dn(t,e){En+=t,Pn+=e,++Tn}function Rn(){Fn.point=Nn}function Nn(t,e){Fn.point=zn,Dn(jn=t,Cn=e)}function zn(t,e){var n=t-jn,r=e-Cn,i=S(n*n+r*r);kn+=i*(jn+t)/2,An+=i*(Cn+e)/2,On+=i,Dn(jn=t,Cn=e)}function Hn(){Fn.point=Dn}function Gn(){Fn.point=Vn}function Yn(){Xn(Mn,Sn)}function Vn(t,e){Fn.point=Xn,Dn(Mn=jn=t,Sn=Cn=e)}function Xn(t,e){var n=t-jn,r=e-Cn,i=S(n*n+r*r);kn+=i*(jn+t)/2,An+=i*(Cn+e)/2,On+=i,In+=(i=Cn*t-jn*e)*(jn+t),Bn+=i*(Cn+e),Ln+=3*i,Dn(jn=t,Cn=e)}function qn(t){this._context=t}qn.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,h)}},result:T};var Wn,Un,Zn,Kn,Qn,$n=n(),Jn={point:T,lineStart:function(){Jn.point=tr},lineEnd:function(){Wn&&er(Un,Zn),Jn.point=T},polygonStart:function(){Wn=!0},polygonEnd:function(){Wn=null},result:function(){var t=+$n;return $n.reset(),t}};function tr(t,e){Jn.point=er,Un=Kn=t,Zn=Qn=e}function er(t,e){Kn-=t,Qn-=e,$n.add(S(Kn*Kn+Qn*Qn)),Kn=t,Qn=e}function nr(){this._string=[]}function rr(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function ir(t,e){var n,r,i=4.5;function o(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),L(t,n(r))),r.result()}return o.area=function(t){return L(t,n(fn)),fn.result()},o.measure=function(t){return L(t,n(Jn)),Jn.result()},o.bounds=function(t){return L(t,n(bn)),bn.result()},o.centroid=function(t){return L(t,n(Fn)),Fn.result()},o.projection=function(e){return arguments.length?(n=null==e?(t=null,on):(t=e).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(e=null,new nr):new qn(e=t),"function"!=typeof i&&r.pointRadius(i),o):e},o.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(e)}function or(t){return{stream:ar(t)}}function ar(t){return function(e){var n=new sr;for(var r in t)n[r]=t[r];return n.stream=e,n}}function sr(){}function lr(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),L(n,t.stream(bn)),e(bn.result()),null!=r&&t.clipExtent(r),t}function ur(t,e,n){return lr(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+e[0][0]+(r-o*(n[1][0]+n[0][0]))/2,s=+e[0][1]+(i-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,s])}),n)}function cr(t,e,n){return ur(t,[[0,0],e],n)}function hr(t,e,n){return lr(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];t.scale(150*i).translate([o,a])}),n)}function fr(t,e,n){return lr(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([o,a])}),n)}nr.prototype={_radius:4.5,_circle:rr(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=rr(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},sr.prototype={constructor:sr,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var dr=16,pr=y(30*d);function gr(t,e){return+e?yr(t,e):vr(t)}function vr(t){return ar({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}function yr(t,e){function n(r,i,o,s,l,u,c,h,f,d,g,y,m,_){var x=c-r,b=h-i,w=x*x+b*b;if(w>4*e&&m--){var M=s+d,j=l+g,C=u+y,P=S(M*M+j*j+C*C),T=E(C/=P),k=p(p(C)-1)<a||p(o-f)<a?(o+f)/2:v(j,M),A=t(k,T),O=A[0],I=A[1],B=O-r,L=I-i,F=b*B-x*L;(F*F/w>e||p((x*B+b*L)/w-.5)>.3||s*d+l*g+u*y<pr)&&(n(r,i,o,s,l,u,O,I,k,M/=P,j/=P,C,m,_),_.point(O,I),n(O,I,k,M,j,C,c,h,f,d,g,y,m,_))}}return function(e){var r,i,o,a,s,l,u,c,h,f,d,p,g={point:v,lineStart:y,lineEnd:_,polygonStart:function(){e.polygonStart(),g.lineStart=x},polygonEnd:function(){e.polygonEnd(),g.lineStart=y}};function v(n,r){n=t(n,r),e.point(n[0],n[1])}function y(){c=NaN,g.point=m,e.lineStart()}function m(r,i){var o=K([r,i]),a=t(r,i);n(c,h,u,f,d,p,c=a[0],h=a[1],u=r,f=o[0],d=o[1],p=o[2],dr,e),e.point(c,h)}function _(){g.point=v,e.lineEnd()}function x(){y(),g.point=b,g.lineEnd=w}function b(t,e){m(r=t,e),i=c,o=h,a=f,s=d,l=p,g.point=m}function w(){n(c,h,u,f,d,p,i,o,r,a,s,l,dr,e),g.lineEnd=_,_()}return g}}var mr=ar({point:function(t,e){this.stream.point(t*d,e*d)}});function _r(t){return ar({point:function(e,n){var r=t(e,n);return this.stream.point(r[0],r[1])}})}function xr(t,e,n,r,i){function o(o,a){return[e+t*(o*=r),n-t*(a*=i)]}return o.invert=function(o,a){return[(o-e)/t*r,(n-a)/t*i]},o}function br(t,e,n,r,i,o){var a=y(o),s=w(o),l=a*t,u=s*t,c=a/t,h=s/t,f=(s*n-a*e)/t,d=(s*e+a*n)/t;function p(t,o){return[l*(t*=r)-u*(o*=i)+e,n-u*t-l*o]}return p.invert=function(t,e){return[r*(c*t-h*e+f),i*(d-h*t-c*e)]},p}function wr(t){return Mr((function(){return t}))()}function Mr(t){var e,n,r,i,o,a,s,l,u,c,h=150,p=480,g=250,v=0,y=0,m=0,_=0,x=0,b=0,w=1,M=1,j=null,C=be,E=null,P=on,T=.5;function k(t){return l(t[0]*d,t[1]*d)}function A(t){return(t=l.invert(t[0],t[1]))&&[t[0]*f,t[1]*f]}function O(){var t=br(h,0,0,w,M,b).apply(null,e(v,y)),r=(b?br:xr)(h,p-t[0],g-t[1],w,M,b);return n=ne(m,_,x),s=te(e,r),l=te(n,s),a=gr(s,T),I()}function I(){return u=c=null,k}return k.stream=function(t){return u&&c===t?u:u=mr(_r(n)(C(a(P(c=t)))))},k.preclip=function(t){return arguments.length?(C=t,j=void 0,I()):C},k.postclip=function(t){return arguments.length?(P=t,E=r=i=o=null,I()):P},k.clipAngle=function(t){return arguments.length?(C=+t?je(j=t*d):(j=null,be),I()):j*f},k.clipExtent=function(t){return arguments.length?(P=null==t?(E=r=i=o=null,on):Te(E=+t[0][0],r=+t[0][1],i=+t[1][0],o=+t[1][1]),I()):null==E?null:[[E,r],[i,o]]},k.scale=function(t){return arguments.length?(h=+t,O()):h},k.translate=function(t){return arguments.length?(p=+t[0],g=+t[1],O()):[p,g]},k.center=function(t){return arguments.length?(v=t[0]%360*d,y=t[1]%360*d,O()):[v*f,y*f]},k.rotate=function(t){return arguments.length?(m=t[0]%360*d,_=t[1]%360*d,x=t.length>2?t[2]%360*d:0,O()):[m*f,_*f,x*f]},k.angle=function(t){return arguments.length?(b=t%360*d,O()):b*f},k.reflectX=function(t){return arguments.length?(w=t?-1:1,O()):w<0},k.reflectY=function(t){return arguments.length?(M=t?-1:1,O()):M<0},k.precision=function(t){return arguments.length?(a=gr(s,T=t*t),I()):S(T)},k.fitExtent=function(t,e){return ur(k,t,e)},k.fitSize=function(t,e){return cr(k,t,e)},k.fitWidth=function(t,e){return hr(k,t,e)},k.fitHeight=function(t,e){return fr(k,t,e)},function(){return e=t.apply(this,arguments),k.invert=e.invert&&A,O()}}function Sr(t){var e=0,n=l/3,r=Mr(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*d,n=t[1]*d):[e*f,n*f]},i}function jr(t){var e=y(t);function n(t,n){return[t*e,w(n)/e]}return n.invert=function(t,n){return[t/e,E(n*e)]},n}function Cr(t,e){var n=w(t),r=(n+w(e))/2;if(p(r)<a)return jr(t);var i=1+n*(2*r-n),o=S(i)/r;function s(t,e){var n=S(i-2*r*w(e))/r;return[n*w(t*=r),o-n*y(t)]}return s.invert=function(t,e){var n=o-e,a=v(t,p(n))*M(n);return n*r<0&&(a-=l*M(t)*M(n)),[a/r,E((i-(t*t+n*n)*r*r)/(2*r))]},s}function Er(){return Sr(Cr).scale(155.424).center([0,33.6442])}function Pr(){return Er().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Tr(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}function kr(){var t,e,n,r,i,o,s=Pr(),l=Er().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=Er().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(t,e){o=[t,e]}};function h(t){var e=t[0],a=t[1];return o=null,n.point(e,a),o||(r.point(e,a),o)||(i.point(e,a),o)}function f(){return t=e=null,h}return h.invert=function(t){var e=s.scale(),n=s.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?l:i>=.166&&i<.234&&r>=-.214&&r<-.115?u:s).invert(t)},h.stream=function(n){return t&&e===n?t:t=Tr([s.stream(e=n),l.stream(n),u.stream(n)])},h.precision=function(t){return arguments.length?(s.precision(t),l.precision(t),u.precision(t),f()):s.precision()},h.scale=function(t){return arguments.length?(s.scale(t),l.scale(.35*t),u.scale(t),h.translate(s.translate())):s.scale()},h.translate=function(t){if(!arguments.length)return s.translate();var e=s.scale(),o=+t[0],h=+t[1];return n=s.translate(t).clipExtent([[o-.455*e,h-.238*e],[o+.455*e,h+.238*e]]).stream(c),r=l.translate([o-.307*e,h+.201*e]).clipExtent([[o-.425*e+a,h+.12*e+a],[o-.214*e-a,h+.234*e-a]]).stream(c),i=u.translate([o-.205*e,h+.212*e]).clipExtent([[o-.214*e+a,h+.166*e+a],[o-.115*e-a,h+.234*e-a]]).stream(c),f()},h.fitExtent=function(t,e){return ur(h,t,e)},h.fitSize=function(t,e){return cr(h,t,e)},h.fitWidth=function(t,e){return hr(h,t,e)},h.fitHeight=function(t,e){return fr(h,t,e)},h.scale(1070)}function Ar(t){return function(e,n){var r=y(e),i=y(n),o=t(r*i);return[o*i*w(e),o*w(n)]}}function Or(t){return function(e,n){var r=S(e*e+n*n),i=t(r),o=w(i),a=y(i);return[v(e*o,r*a),E(r&&n*o/r)]}}var Ir=Ar((function(t){return S(2/(1+t))}));function Br(){return wr(Ir).scale(124.75).clipAngle(179.999)}Ir.invert=Or((function(t){return 2*E(t/2)}));var Lr=Ar((function(t){return(t=C(t))&&t/w(t)}));function Fr(){return wr(Lr).scale(79.4188).clipAngle(179.999)}function Dr(t,e){return[t,x(j((u+e)/2))]}function Rr(){return Nr(Dr).scale(961/h)}function Nr(t){var e,n,r,i=wr(t),o=i.center,a=i.scale,s=i.translate,u=i.clipExtent,c=null;function h(){var o=l*a(),s=i(ae(i.rotate()).invert([0,0]));return u(null==c?[[s[0]-o,s[1]-o],[s[0]+o,s[1]+o]]:t===Dr?[[Math.max(s[0]-o,c),e],[Math.min(s[0]+o,n),r]]:[[c,Math.max(s[1]-o,e)],[n,Math.min(s[1]+o,r)]])}return i.scale=function(t){return arguments.length?(a(t),h()):a()},i.translate=function(t){return arguments.length?(s(t),h()):s()},i.center=function(t){return arguments.length?(o(t),h()):o()},i.clipExtent=function(t){return arguments.length?(null==t?c=e=n=r=null:(c=+t[0][0],e=+t[0][1],n=+t[1][0],r=+t[1][1]),h()):null==c?null:[[c,e],[n,r]]},h()}function zr(t){return j((u+t)/2)}function Hr(t,e){var n=y(t),r=t===e?w(t):x(n/y(e))/x(zr(e)/zr(t)),i=n*b(zr(t),r)/r;if(!r)return Dr;function o(t,e){i>0?e<-u+a&&(e=-u+a):e>u-a&&(e=u-a);var n=i/b(zr(e),r);return[n*w(r*t),i-n*y(r*t)]}return o.invert=function(t,e){var n=i-e,o=M(r)*S(t*t+n*n),a=v(t,p(n))*M(n);return n*r<0&&(a-=l*M(t)*M(n)),[a/r,2*g(b(i/o,1/r))-u]},o}function Gr(){return Sr(Hr).scale(109.5).parallels([30,30])}function Yr(t,e){return[t,e]}function Vr(){return wr(Yr).scale(152.63)}function Xr(t,e){var n=y(t),r=t===e?w(t):(n-y(e))/(e-t),i=n/r+t;if(p(r)<a)return Yr;function o(t,e){var n=i-e,o=r*t;return[n*w(o),i-n*y(o)]}return o.invert=function(t,e){var n=i-e,o=v(t,p(n))*M(n);return n*r<0&&(o-=l*M(t)*M(n)),[o/r,i-M(r)*S(t*t+n*n)]},o}function qr(){return Sr(Xr).scale(131.154).center([0,13.9389])}Lr.invert=Or((function(t){return t})),Dr.invert=function(t,e){return[t,2*g(_(e))-u]},Yr.invert=Yr;var Wr=1.340264,Ur=-.081106,Zr=893e-6,Kr=.003796,Qr=S(3)/2,$r=12;function Jr(t,e){var n=E(Qr*w(e)),r=n*n,i=r*r*r;return[t*y(n)/(Qr*(Wr+3*Ur*r+i*(7*Zr+9*Kr*r))),n*(Wr+Ur*r+i*(Zr+Kr*r))]}function ti(){return wr(Jr).scale(177.158)}function ei(t,e){var n=y(e),r=y(t)*n;return[n*w(t)/r,w(e)/r]}function ni(){return wr(ei).scale(144.049).clipAngle(60)}function ri(){var t,e,n,r,i,o,a,s=1,l=0,u=0,c=1,h=1,p=0,g=null,v=1,m=1,_=ar({point:function(t,e){var n=M([t,e]);this.stream.point(n[0],n[1])}}),x=on;function b(){return v=s*c,m=s*h,o=a=null,M}function M(n){var r=n[0]*v,i=n[1]*m;if(p){var o=i*t-r*e;r=r*t+i*e,i=o}return[r+l,i+u]}return M.invert=function(n){var r=n[0]-l,i=n[1]-u;if(p){var o=i*t+r*e;r=r*t-i*e,i=o}return[r/v,i/m]},M.stream=function(t){return o&&a===t?o:o=_(x(a=t))},M.postclip=function(t){return arguments.length?(x=t,g=n=r=i=null,b()):x},M.clipExtent=function(t){return arguments.length?(x=null==t?(g=n=r=i=null,on):Te(g=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),b()):null==g?null:[[g,n],[r,i]]},M.scale=function(t){return arguments.length?(s=+t,b()):s},M.translate=function(t){return arguments.length?(l=+t[0],u=+t[1],b()):[l,u]},M.angle=function(n){return arguments.length?(e=w(p=n%360*d),t=y(p),b()):p*f},M.reflectX=function(t){return arguments.length?(c=t?-1:1,b()):c<0},M.reflectY=function(t){return arguments.length?(h=t?-1:1,b()):h<0},M.fitExtent=function(t,e){return ur(M,t,e)},M.fitSize=function(t,e){return cr(M,t,e)},M.fitWidth=function(t,e){return hr(M,t,e)},M.fitHeight=function(t,e){return fr(M,t,e)},M}function ii(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}function oi(){return wr(ii).scale(175.295)}function ai(t,e){return[y(e)*w(t),w(e)]}function si(){return wr(ai).scale(249.5).clipAngle(90+a)}function li(t,e){var n=y(e),r=1+y(t)*n;return[n*w(t)/r,w(e)/r]}function ui(){return wr(li).scale(250).clipAngle(142)}function ci(t,e){return[x(j((u+e)/2)),-t]}function hi(){var t=Nr(ci),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}Jr.invert=function(t,e){for(var n,r=e,i=r*r,o=i*i*i,a=0;a<$r&&(o=(i=(r-=n=(r*(Wr+Ur*i+o*(Zr+Kr*i))-e)/(Wr+3*Ur*i+o*(7*Zr+9*Kr*i)))*r)*i*i,!(p(n)<s));++a);return[Qr*t*(Wr+3*Ur*i+o*(7*Zr+9*Kr*i))/y(r),E(w(r)/Qr)]},ei.invert=Or(g),ii.invert=function(t,e){var n,r=e,i=25;do{var o=r*r,s=o*o;r-=n=(r*(1.007226+o*(.015085+s*(.028874*o-.044475-.005916*s)))-e)/(1.007226+o*(.045255+s*(.259866*o-.311325-.005916*11*s)))}while(p(n)>a&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},ai.invert=Or(E),li.invert=Or((function(t){return 2*g(t)})),ci.invert=function(t,e){return[-e,2*g(_(t))-u]},t.geoAlbers=Pr,t.geoAlbersUsa=kr,t.geoArea=U,t.geoAzimuthalEqualArea=Br,t.geoAzimuthalEqualAreaRaw=Ir,t.geoAzimuthalEquidistant=Fr,t.geoAzimuthalEquidistantRaw=Lr,t.geoBounds=zt,t.geoCentroid=$t,t.geoCircle=ue,t.geoClipAntimeridian=be,t.geoClipCircle=je,t.geoClipExtent=ke,t.geoClipRectangle=Te,t.geoConicConformal=Gr,t.geoConicConformalRaw=Hr,t.geoConicEqualArea=Er,t.geoConicEqualAreaRaw=Cr,t.geoConicEquidistant=qr,t.geoConicEquidistantRaw=Xr,t.geoContains=$e,t.geoDistance=Ye,t.geoEqualEarth=ti,t.geoEqualEarthRaw=Jr,t.geoEquirectangular=Vr,t.geoEquirectangularRaw=Yr,t.geoGnomonic=ni,t.geoGnomonicRaw=ei,t.geoGraticule=en,t.geoGraticule10=nn,t.geoIdentity=ri,t.geoInterpolate=rn,t.geoLength=ze,t.geoMercator=Rr,t.geoMercatorRaw=Dr,t.geoNaturalEarth1=oi,t.geoNaturalEarth1Raw=ii,t.geoOrthographic=si,t.geoOrthographicRaw=ai,t.geoPath=ir,t.geoProjection=wr,t.geoProjectionMutator=Mr,t.geoRotation=ae,t.geoStereographic=ui,t.geoStereographicRaw=li,t.geoStream=L,t.geoTransform=or,t.geoTransverseMercator=hi,t.geoTransverseMercatorRaw=ci,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(/*! d3-array */"./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js"))},"./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e,n){!function(t,e){var n=function(){return new r};function r(){this.reset()}r.prototype={constructor:r,reset:function(){this.s=this.t=0},add:function(t){o(i,t,this.t),o(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new r;function o(t,e,n){var r=t.s=e+n,i=r-e,o=r-i;t.t=e-o+(n-i)}var a=1e-6,s=1e-12,l=Math.PI,u=l/2,c=l/4,h=2*l,f=180/l,d=l/180,p=Math.abs,g=Math.atan,v=Math.atan2,y=Math.cos,m=Math.ceil,_=Math.exp,x=Math.log,b=Math.pow,w=Math.sin,M=Math.sign||function(t){return t>0?1:t<0?-1:0},S=Math.sqrt,j=Math.tan;function C(t){return t>1?0:t<-1?l:Math.acos(t)}function E(t){return t>1?u:t<-1?-u:Math.asin(t)}function P(t){return(t=w(t/2))*t}function T(){}function k(t,e){t&&O.hasOwnProperty(t.type)&&O[t.type](t,e)}var A={Feature:function(t,e){k(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)k(n[r].geometry,e)}},O={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){I(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)I(n[r],e,0)},Polygon:function(t,e){B(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)B(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)k(n[r],e)}};function I(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function B(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)I(t[n],e,1);e.polygonEnd()}var L,F,D,R,N,z=function(t,e){t&&A.hasOwnProperty(t.type)?A[t.type](t,e):k(t,e)},H=n(),G=n(),Y={point:T,lineStart:T,lineEnd:T,polygonStart:function(){H.reset(),Y.lineStart=V,Y.lineEnd=X},polygonEnd:function(){var t=+H;G.add(t<0?h+t:t),this.lineStart=this.lineEnd=this.point=T},sphere:function(){G.add(h)}};function V(){Y.point=q}function X(){W(L,F)}function q(t,e){Y.point=W,L=t,F=e,D=t*=d,R=y(e=(e*=d)/2+c),N=w(e)}function W(t,e){var n=(t*=d)-D,r=n>=0?1:-1,i=r*n,o=y(e=(e*=d)/2+c),a=w(e),s=N*a,l=R*o+s*y(i),u=s*r*w(i);H.add(v(u,l)),D=t,R=o,N=a}var U,Z,K,Q,$,J,tt,et,nt=function(t){return G.reset(),z(t,Y),2*G};function rt(t){return[v(t[1],t[0]),E(t[2])]}function it(t){var e=t[0],n=t[1],r=y(n);return[r*y(e),r*w(e),w(n)]}function ot(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function at(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function st(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function lt(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function ut(t){var e=S(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var ct,ht,ft=n(),dt={point:pt,lineStart:vt,lineEnd:yt,polygonStart:function(){dt.point=mt,dt.lineStart=_t,dt.lineEnd=xt,ft.reset(),Y.polygonStart()},polygonEnd:function(){Y.polygonEnd(),dt.point=pt,dt.lineStart=vt,dt.lineEnd=yt,H<0?(U=-(K=180),Z=-(Q=90)):ft>a?Q=90:ft<-a&&(Z=-90),ht[0]=U,ht[1]=K}};function pt(t,e){ct.push(ht=[U=t,K=t]),e<Z&&(Z=e),e>Q&&(Q=e)}function gt(t,e){var n=it([t*d,e*d]);if(et){var r=at(et,n),i=at([r[1],-r[0],0],r);ut(i),i=rt(i);var o,a=t-$,s=a>0?1:-1,l=i[0]*f*s,u=p(a)>180;u^(s*$<l&&l<s*t)?(o=i[1]*f)>Q&&(Q=o):u^(s*$<(l=(l+360)%360-180)&&l<s*t)?(o=-i[1]*f)<Z&&(Z=o):(e<Z&&(Z=e),e>Q&&(Q=e)),u?t<$?bt(U,t)>bt(U,K)&&(K=t):bt(t,K)>bt(U,K)&&(U=t):K>=U?(t<U&&(U=t),t>K&&(K=t)):t>$?bt(U,t)>bt(U,K)&&(K=t):bt(t,K)>bt(U,K)&&(U=t)}else ct.push(ht=[U=t,K=t]);e<Z&&(Z=e),e>Q&&(Q=e),et=n,$=t}function vt(){dt.point=gt}function yt(){ht[0]=U,ht[1]=K,dt.point=pt,et=null}function mt(t,e){if(et){var n=t-$;ft.add(p(n)>180?n+(n>0?360:-360):n)}else J=t,tt=e;Y.point(t,e),gt(t,e)}function _t(){Y.lineStart()}function xt(){mt(J,tt),Y.lineEnd(),p(ft)>a&&(U=-(K=180)),ht[0]=U,ht[1]=K,et=null}function bt(t,e){return(e-=t)<0?e+360:e}function wt(t,e){return t[0]-e[0]}function Mt(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var St,jt,Ct,Et,Pt,Tt,kt,At,Ot,It,Bt,Lt,Ft,Dt,Rt,Nt,zt=function(t){var e,n,r,i,o,a,s;if(Q=K=-(U=Z=1/0),ct=[],z(t,dt),n=ct.length){for(ct.sort(wt),e=1,o=[r=ct[0]];e<n;++e)Mt(r,(i=ct[e])[0])||Mt(r,i[1])?(bt(r[0],i[1])>bt(r[0],r[1])&&(r[1]=i[1]),bt(i[0],r[1])>bt(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,e=0,r=o[n=o.length-1];e<=n;r=i,++e)i=o[e],(s=bt(r[1],i[0]))>a&&(a=s,U=i[0],K=r[1])}return ct=ht=null,U===1/0||Z===1/0?[[NaN,NaN],[NaN,NaN]]:[[U,Z],[K,Q]]},Ht={sphere:T,point:Gt,lineStart:Vt,lineEnd:Wt,polygonStart:function(){Ht.lineStart=Ut,Ht.lineEnd=Zt},polygonEnd:function(){Ht.lineStart=Vt,Ht.lineEnd=Wt}};function Gt(t,e){t*=d;var n=y(e*=d);Yt(n*y(t),n*w(t),w(e))}function Yt(t,e,n){++St,Ct+=(t-Ct)/St,Et+=(e-Et)/St,Pt+=(n-Pt)/St}function Vt(){Ht.point=Xt}function Xt(t,e){t*=d;var n=y(e*=d);Dt=n*y(t),Rt=n*w(t),Nt=w(e),Ht.point=qt,Yt(Dt,Rt,Nt)}function qt(t,e){t*=d;var n=y(e*=d),r=n*y(t),i=n*w(t),o=w(e),a=v(S((a=Rt*o-Nt*i)*a+(a=Nt*r-Dt*o)*a+(a=Dt*i-Rt*r)*a),Dt*r+Rt*i+Nt*o);jt+=a,Tt+=a*(Dt+(Dt=r)),kt+=a*(Rt+(Rt=i)),At+=a*(Nt+(Nt=o)),Yt(Dt,Rt,Nt)}function Wt(){Ht.point=Gt}function Ut(){Ht.point=Kt}function Zt(){Qt(Lt,Ft),Ht.point=Gt}function Kt(t,e){Lt=t,Ft=e,t*=d,e*=d,Ht.point=Qt;var n=y(e);Dt=n*y(t),Rt=n*w(t),Nt=w(e),Yt(Dt,Rt,Nt)}function Qt(t,e){t*=d;var n=y(e*=d),r=n*y(t),i=n*w(t),o=w(e),a=Rt*o-Nt*i,s=Nt*r-Dt*o,l=Dt*i-Rt*r,u=S(a*a+s*s+l*l),c=E(u),h=u&&-c/u;Ot+=h*a,It+=h*s,Bt+=h*l,jt+=c,Tt+=c*(Dt+(Dt=r)),kt+=c*(Rt+(Rt=i)),At+=c*(Nt+(Nt=o)),Yt(Dt,Rt,Nt)}var $t=function(t){St=jt=Ct=Et=Pt=Tt=kt=At=Ot=It=Bt=0,z(t,Ht);var e=Ot,n=It,r=Bt,i=e*e+n*n+r*r;return i<s&&(e=Tt,n=kt,r=At,jt<a&&(e=Ct,n=Et,r=Pt),(i=e*e+n*n+r*r)<s)?[NaN,NaN]:[v(n,e)*f,E(r/S(i))*f]},Jt=function(t){return function(){return t}},te=function(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n};function ee(t,e){return[t>l?t-h:t<-l?t+h:t,e]}function ne(t,e,n){return(t%=h)?e||n?te(ie(t),oe(e,n)):ie(t):e||n?oe(e,n):ee}function re(t){return function(e,n){return[(e+=t)>l?e-h:e<-l?e+h:e,n]}}function ie(t){var e=re(t);return e.invert=re(-t),e}function oe(t,e){var n=y(t),r=w(t),i=y(e),o=w(e);function a(t,e){var a=y(e),s=y(t)*a,l=w(t)*a,u=w(e),c=u*n+s*r;return[v(l*i-c*o,s*n-u*r),E(c*i+l*o)]}return a.invert=function(t,e){var a=y(e),s=y(t)*a,l=w(t)*a,u=w(e),c=u*i-l*o;return[v(l*i+u*o,s*n+c*r),E(c*n-s*r)]},a}ee.invert=ee;var ae=function(t){function e(e){return(e=t(e[0]*d,e[1]*d))[0]*=f,e[1]*=f,e}return t=ne(t[0]*d,t[1]*d,t.length>2?t[2]*d:0),e.invert=function(e){return(e=t.invert(e[0]*d,e[1]*d))[0]*=f,e[1]*=f,e},e};function se(t,e,n,r,i,o){if(n){var a=y(e),s=w(e),l=r*n;null==i?(i=e+r*h,o=e-l/2):(i=le(a,i),o=le(a,o),(r>0?i<o:i>o)&&(i+=r*h));for(var u,c=i;r>0?c>o:c<o;c-=l)u=rt([a,-s*y(c),-s*w(c)]),t.point(u[0],u[1])}}function le(t,e){(e=it(e))[0]-=t,ut(e);var n=C(-e[1]);return((-e[2]<0?-n:n)+h-a)%h}var ue=function(){var t,e,n=Jt([0,0]),r=Jt(90),i=Jt(6),o={point:a};function a(n,r){t.push(n=e(n,r)),n[0]*=f,n[1]*=f}function s(){var a=n.apply(this,arguments),s=r.apply(this,arguments)*d,l=i.apply(this,arguments)*d;return t=[],e=ne(-a[0]*d,-a[1]*d,0).invert,se(o,s,l,1),a={type:"Polygon",coordinates:[t]},t=e=null,a}return s.center=function(t){return arguments.length?(n="function"==typeof t?t:Jt([+t[0],+t[1]]),s):n},s.radius=function(t){return arguments.length?(r="function"==typeof t?t:Jt(+t),s):r},s.precision=function(t){return arguments.length?(i="function"==typeof t?t:Jt(+t),s):i},s},ce=function(){var t,e=[];return{point:function(e,n){t.push([e,n])},lineStart:function(){e.push(t=[])},lineEnd:T,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}},he=function(t,e,n,r,i,o){var a,s=t[0],l=t[1],u=0,c=1,h=e[0]-s,f=e[1]-l;if(a=n-s,h||!(a>0)){if(a/=h,h<0){if(a<u)return;a<c&&(c=a)}else if(h>0){if(a>c)return;a>u&&(u=a)}if(a=i-s,h||!(a<0)){if(a/=h,h<0){if(a>c)return;a>u&&(u=a)}else if(h>0){if(a<u)return;a<c&&(c=a)}if(a=r-l,f||!(a>0)){if(a/=f,f<0){if(a<u)return;a<c&&(c=a)}else if(f>0){if(a>c)return;a>u&&(u=a)}if(a=o-l,f||!(a<0)){if(a/=f,f<0){if(a>c)return;a>u&&(u=a)}else if(f>0){if(a<u)return;a<c&&(c=a)}return u>0&&(t[0]=s+u*h,t[1]=l+u*f),c<1&&(e[0]=s+c*h,e[1]=l+c*f),!0}}}}},fe=function(t,e){return p(t[0]-e[0])<a&&p(t[1]-e[1])<a};function de(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}var pe=function(t,e,n,r,i){var o,a,s=[],l=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],a=t[e];if(fe(r,a)){for(i.lineStart(),o=0;o<e;++o)i.point((r=t[o])[0],r[1]);i.lineEnd()}else s.push(n=new de(r,t,null,!0)),l.push(n.o=new de(r,null,n,!1)),s.push(n=new de(a,t,null,!1)),l.push(n.o=new de(a,null,n,!0))}})),s.length){for(l.sort(e),ge(s),ge(l),o=0,a=l.length;o<a;++o)l[o].e=n=!n;for(var u,c,h=s[0];;){for(var f=h,d=!0;f.v;)if((f=f.n)===h)return;u=f.z,i.lineStart();do{if(f.v=f.o.v=!0,f.e){if(d)for(o=0,a=u.length;o<a;++o)i.point((c=u[o])[0],c[1]);else r(f.x,f.n.x,1,i);f=f.n}else{if(d)for(u=f.p.z,o=u.length-1;o>=0;--o)i.point((c=u[o])[0],c[1]);else r(f.x,f.p.x,-1,i);f=f.p}u=(f=f.o).z,d=!d}while(!f.v);i.lineEnd()}}};function ge(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}var ve=1e9,ye=-ve;function me(t,n,r,i){function o(e,o){return t<=e&&e<=r&&n<=o&&o<=i}function s(e,o,a,s){var u=0,h=0;if(null==e||(u=l(e,a))!==(h=l(o,a))||c(e,o)<0^a>0)do{s.point(0===u||3===u?t:r,u>1?i:n)}while((u=(u+a+4)%4)!==h);else s.point(o[0],o[1])}function l(e,i){return p(e[0]-t)<a?i>0?0:3:p(e[0]-r)<a?i>0?2:1:p(e[1]-n)<a?i>0?1:0:i>0?3:2}function u(t,e){return c(t.x,e.x)}function c(t,e){var n=l(t,1),r=l(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(a){var l,c,h,f,d,p,g,v,y,m,_,x=a,b=ce(),w={point:M,lineStart:E,lineEnd:P,polygonStart:j,polygonEnd:C};function M(t,e){o(t,e)&&x.point(t,e)}function S(){for(var e=0,n=0,r=c.length;n<r;++n)for(var o,a,s=c[n],l=1,u=s.length,h=s[0],f=h[0],d=h[1];l<u;++l)o=f,a=d,f=(h=s[l])[0],d=h[1],a<=i?d>i&&(f-o)*(i-a)>(d-a)*(t-o)&&++e:d<=i&&(f-o)*(i-a)<(d-a)*(t-o)&&--e;return e}function j(){x=b,l=[],c=[],_=!0}function C(){var t=S(),n=_&&t,r=(l=e.merge(l)).length;(n||r)&&(a.polygonStart(),n&&(a.lineStart(),s(null,null,1,a),a.lineEnd()),r&&pe(l,u,t,s,a),a.polygonEnd()),x=a,l=c=h=null}function E(){w.point=T,c&&c.push(h=[]),m=!0,y=!1,g=v=NaN}function P(){l&&(T(f,d),p&&y&&b.rejoin(),l.push(b.result())),w.point=M,y&&x.lineEnd()}function T(e,a){var s=o(e,a);if(c&&h.push([e,a]),m)f=e,d=a,p=s,m=!1,s&&(x.lineStart(),x.point(e,a));else if(s&&y)x.point(e,a);else{var l=[g=Math.max(ye,Math.min(ve,g)),v=Math.max(ye,Math.min(ve,v))],u=[e=Math.max(ye,Math.min(ve,e)),a=Math.max(ye,Math.min(ve,a))];he(l,u,t,n,r,i)?(y||(x.lineStart(),x.point(l[0],l[1])),x.point(u[0],u[1]),s||x.lineEnd(),_=!1):s&&(x.lineStart(),x.point(e,a),_=!1)}g=e,v=a,y=s}return w}}var _e,xe,be,we=function(){var t,e,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return t&&e===n?t:t=me(r,i,o,a)(e=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],o=+s[1][0],a=+s[1][1],t=e=null,n):[[r,i],[o,a]]}}},Me=n(),Se=function(t,e){var n=e[0],r=e[1],i=[w(n),-y(n),0],o=0,s=0;Me.reset();for(var u=0,f=t.length;u<f;++u)if(p=(d=t[u]).length)for(var d,p,g=d[p-1],m=g[0],_=g[1]/2+c,x=w(_),b=y(_),M=0;M<p;++M,m=j,x=P,b=T,g=S){var S=d[M],j=S[0],C=S[1]/2+c,P=w(C),T=y(C),k=j-m,A=k>=0?1:-1,O=A*k,I=O>l,B=x*P;if(Me.add(v(B*A*w(O),b*T+B*y(O))),o+=I?k+A*h:k,I^m>=n^j>=n){var L=at(it(g),it(S));ut(L);var F=at(i,L);ut(F);var D=(I^k>=0?-1:1)*E(F[2]);(r>D||r===D&&(L[0]||L[1]))&&(s+=I^k>=0?1:-1)}}return(o<-a||o<a&&Me<-a)^1&s},je=n(),Ce={sphere:T,point:T,lineStart:Ee,lineEnd:T,polygonStart:T,polygonEnd:T};function Ee(){Ce.point=Te,Ce.lineEnd=Pe}function Pe(){Ce.point=Ce.lineEnd=T}function Te(t,e){_e=t*=d,xe=w(e*=d),be=y(e),Ce.point=ke}function ke(t,e){t*=d;var n=w(e*=d),r=y(e),i=p(t-_e),o=y(i),a=r*w(i),s=be*n-xe*r*o,l=xe*n+be*r*o;je.add(v(S(a*a+s*s),l)),_e=t,xe=n,be=r}var Ae=function(t){return je.reset(),z(t,Ce),+je},Oe=[null,null],Ie={type:"LineString",coordinates:Oe},Be=function(t,e){return Oe[0]=t,Oe[1]=e,Ae(Ie)},Le={Feature:function(t,e){return De(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)if(De(n[r].geometry,e))return!0;return!1}},Fe={Sphere:function(){return!0},Point:function(t,e){return Re(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Re(n[r],e))return!0;return!1},LineString:function(t,e){return Ne(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Ne(n[r],e))return!0;return!1},Polygon:function(t,e){return ze(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(ze(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)if(De(n[r],e))return!0;return!1}};function De(t,e){return!(!t||!Fe.hasOwnProperty(t.type))&&Fe[t.type](t,e)}function Re(t,e){return 0===Be(t,e)}function Ne(t,e){var n=Be(t[0],t[1]);return Be(t[0],e)+Be(e,t[1])<=n+a}function ze(t,e){return!!Se(t.map(He),Ge(e))}function He(t){return(t=t.map(Ge)).pop(),t}function Ge(t){return[t[0]*d,t[1]*d]}var Ye=function(t,e){return(t&&Le.hasOwnProperty(t.type)?Le[t.type]:De)(t,e)};function Ve(t,n,r){var i=e.range(t,n-a,r).concat(n);return function(t){return i.map((function(e){return[t,e]}))}}function Xe(t,n,r){var i=e.range(t,n-a,r).concat(n);return function(t){return i.map((function(e){return[e,t]}))}}function qe(){var t,n,r,i,o,s,l,u,c,h,f,d,g=10,v=g,y=90,_=360,x=2.5;function b(){return{type:"MultiLineString",coordinates:w()}}function w(){return e.range(m(i/y)*y,r,y).map(f).concat(e.range(m(u/_)*_,l,_).map(d)).concat(e.range(m(n/g)*g,t,g).filter((function(t){return p(t%y)>a})).map(c)).concat(e.range(m(s/v)*v,o,v).filter((function(t){return p(t%_)>a})).map(h))}return b.lines=function(){return w().map((function(t){return{type:"LineString",coordinates:t}}))},b.outline=function(){return{type:"Polygon",coordinates:[f(i).concat(d(l).slice(1),f(r).reverse().slice(1),d(u).reverse().slice(1))]}},b.extent=function(t){return arguments.length?b.extentMajor(t).extentMinor(t):b.extentMinor()},b.extentMajor=function(t){return arguments.length?(i=+t[0][0],r=+t[1][0],u=+t[0][1],l=+t[1][1],i>r&&(t=i,i=r,r=t),u>l&&(t=u,u=l,l=t),b.precision(x)):[[i,u],[r,l]]},b.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],s=+e[0][1],o=+e[1][1],n>t&&(e=n,n=t,t=e),s>o&&(e=s,s=o,o=e),b.precision(x)):[[n,s],[t,o]]},b.step=function(t){return arguments.length?b.stepMajor(t).stepMinor(t):b.stepMinor()},b.stepMajor=function(t){return arguments.length?(y=+t[0],_=+t[1],b):[y,_]},b.stepMinor=function(t){return arguments.length?(g=+t[0],v=+t[1],b):[g,v]},b.precision=function(e){return arguments.length?(x=+e,c=Ve(s,o,90),h=Xe(n,t,x),f=Ve(u,l,90),d=Xe(i,r,x),b):x},b.extentMajor([[-180,-90+a],[180,90-a]]).extentMinor([[-180,-80-a],[180,80+a]])}function We(){return qe()()}var Ue,Ze,Ke,Qe,$e=function(t,e){var n=t[0]*d,r=t[1]*d,i=e[0]*d,o=e[1]*d,a=y(r),s=w(r),l=y(o),u=w(o),c=a*y(n),h=a*w(n),p=l*y(i),g=l*w(i),m=2*E(S(P(o-r)+a*l*P(i-n))),_=w(m),x=m?function(t){var e=w(t*=m)/_,n=w(m-t)/_,r=n*c+e*p,i=n*h+e*g,o=n*s+e*u;return[v(i,r)*f,v(o,S(r*r+i*i))*f]}:function(){return[n*f,r*f]};return x.distance=m,x},Je=function(t){return t},tn=n(),en=n(),nn={point:T,lineStart:T,lineEnd:T,polygonStart:function(){nn.lineStart=rn,nn.lineEnd=sn},polygonEnd:function(){nn.lineStart=nn.lineEnd=nn.point=T,tn.add(p(en)),en.reset()},result:function(){var t=tn/2;return tn.reset(),t}};function rn(){nn.point=on}function on(t,e){nn.point=an,Ue=Ke=t,Ze=Qe=e}function an(t,e){en.add(Qe*t-Ke*e),Ke=t,Qe=e}function sn(){an(Ue,Ze)}var ln=1/0,un=ln,cn=-ln,hn=cn,fn={point:dn,lineStart:T,lineEnd:T,polygonStart:T,polygonEnd:T,result:function(){var t=[[ln,un],[cn,hn]];return cn=hn=-(un=ln=1/0),t}};function dn(t,e){t<ln&&(ln=t),t>cn&&(cn=t),e<un&&(un=e),e>hn&&(hn=e)}var pn,gn,vn,yn,mn=0,_n=0,xn=0,bn=0,wn=0,Mn=0,Sn=0,jn=0,Cn=0,En={point:Pn,lineStart:Tn,lineEnd:On,polygonStart:function(){En.lineStart=In,En.lineEnd=Bn},polygonEnd:function(){En.point=Pn,En.lineStart=Tn,En.lineEnd=On},result:function(){var t=Cn?[Sn/Cn,jn/Cn]:Mn?[bn/Mn,wn/Mn]:xn?[mn/xn,_n/xn]:[NaN,NaN];return mn=_n=xn=bn=wn=Mn=Sn=jn=Cn=0,t}};function Pn(t,e){mn+=t,_n+=e,++xn}function Tn(){En.point=kn}function kn(t,e){En.point=An,Pn(vn=t,yn=e)}function An(t,e){var n=t-vn,r=e-yn,i=S(n*n+r*r);bn+=i*(vn+t)/2,wn+=i*(yn+e)/2,Mn+=i,Pn(vn=t,yn=e)}function On(){En.point=Pn}function In(){En.point=Ln}function Bn(){Fn(pn,gn)}function Ln(t,e){En.point=Fn,Pn(pn=vn=t,gn=yn=e)}function Fn(t,e){var n=t-vn,r=e-yn,i=S(n*n+r*r);bn+=i*(vn+t)/2,wn+=i*(yn+e)/2,Mn+=i,Sn+=(i=yn*t-vn*e)*(vn+t),jn+=i*(yn+e),Cn+=3*i,Pn(vn=t,yn=e)}function Dn(t){this._context=t}Dn.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,h)}},result:T};var Rn,Nn,zn,Hn,Gn,Yn=n(),Vn={point:T,lineStart:function(){Vn.point=Xn},lineEnd:function(){Rn&&qn(Nn,zn),Vn.point=T},polygonStart:function(){Rn=!0},polygonEnd:function(){Rn=null},result:function(){var t=+Yn;return Yn.reset(),t}};function Xn(t,e){Vn.point=qn,Nn=Hn=t,zn=Gn=e}function qn(t,e){Hn-=t,Gn-=e,Yn.add(S(Hn*Hn+Gn*Gn)),Hn=t,Gn=e}function Wn(){this._string=[]}function Un(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}Wn.prototype={_radius:4.5,_circle:Un(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=Un(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var Zn=function(t,e){var n,r,i=4.5;function o(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),z(t,n(r))),r.result()}return o.area=function(t){return z(t,n(nn)),nn.result()},o.measure=function(t){return z(t,n(Vn)),Vn.result()},o.bounds=function(t){return z(t,n(fn)),fn.result()},o.centroid=function(t){return z(t,n(En)),En.result()},o.projection=function(e){return arguments.length?(n=null==e?(t=null,Je):(t=e).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(e=null,new Wn):new Dn(e=t),"function"!=typeof i&&r.pointRadius(i),o):e},o.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(e)},Kn=function(t,n,r,i){return function(o,a){var s,l,u,c=n(a),h=o.invert(i[0],i[1]),f=ce(),d=n(f),p=!1,g={point:v,lineStart:m,lineEnd:_,polygonStart:function(){g.point=x,g.lineStart=b,g.lineEnd=w,l=[],s=[]},polygonEnd:function(){g.point=v,g.lineStart=m,g.lineEnd=_,l=e.merge(l);var t=Se(s,h);l.length?(p||(a.polygonStart(),p=!0),pe(l,$n,t,r,a)):t&&(p||(a.polygonStart(),p=!0),a.lineStart(),r(null,null,1,a),a.lineEnd()),p&&(a.polygonEnd(),p=!1),l=s=null},sphere:function(){a.polygonStart(),a.lineStart(),r(null,null,1,a),a.lineEnd(),a.polygonEnd()}};function v(e,n){var r=o(e,n);t(e=r[0],n=r[1])&&a.point(e,n)}function y(t,e){var n=o(t,e);c.point(n[0],n[1])}function m(){g.point=y,c.lineStart()}function _(){g.point=v,c.lineEnd()}function x(t,e){u.push([t,e]);var n=o(t,e);d.point(n[0],n[1])}function b(){d.lineStart(),u=[]}function w(){x(u[0][0],u[0][1]),d.lineEnd();var t,e,n,r,i=d.clean(),o=f.result(),c=o.length;if(u.pop(),s.push(u),u=null,c)if(1&i){if((e=(n=o[0]).length-1)>0){for(p||(a.polygonStart(),p=!0),a.lineStart(),t=0;t<e;++t)a.point((r=n[t])[0],r[1]);a.lineEnd()}}else c>1&&2&i&&o.push(o.pop().concat(o.shift())),l.push(o.filter(Qn))}return g}};function Qn(t){return t.length>1}function $n(t,e){return((t=t.x)[0]<0?t[1]-u-a:u-t[1])-((e=e.x)[0]<0?e[1]-u-a:u-e[1])}var Jn=Kn((function(){return!0}),tr,nr,[-l,-u]);function tr(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,s){var c=o>0?l:-l,h=p(o-n);p(h-l)<a?(t.point(n,r=(r+s)/2>0?u:-u),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(c,r),t.point(o,r),e=0):i!==c&&h>=l&&(p(n-i)<a&&(n-=i*a),p(o-c)<a&&(o-=c*a),r=er(n,r,o,s),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(c,r),e=0),t.point(n=o,r=s),i=c},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}function er(t,e,n,r){var i,o,s=w(t-n);return p(s)>a?g((w(e)*(o=y(r))*w(n)-w(r)*(i=y(e))*w(t))/(i*o*s)):(e+r)/2}function nr(t,e,n,r){var i;if(null==t)i=n*u,r.point(-l,i),r.point(0,i),r.point(l,i),r.point(l,0),r.point(l,-i),r.point(0,-i),r.point(-l,-i),r.point(-l,0),r.point(-l,i);else if(p(t[0]-e[0])>a){var o=t[0]<e[0]?l:-l;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])}var rr=function(t,e){var n=y(t),r=n>0,i=p(n)>a;function o(n,r,i,o){se(o,t,e,i,n,r)}function s(t,e){return y(t)*y(e)>n}function u(t){var e,n,o,u,f;return{lineStart:function(){u=o=!1,f=1},point:function(d,p){var g,v=[d,p],y=s(d,p),m=r?y?0:h(d,p):y?h(d+(d<0?l:-l),p):0;if(!e&&(u=o=y)&&t.lineStart(),y!==o&&(!(g=c(e,v))||fe(e,g)||fe(v,g))&&(v[0]+=a,v[1]+=a,y=s(v[0],v[1])),y!==o)f=0,y?(t.lineStart(),g=c(v,e),t.point(g[0],g[1])):(g=c(e,v),t.point(g[0],g[1]),t.lineEnd()),e=g;else if(i&&e&&r^y){var _;m&n||!(_=c(v,e,!0))||(f=0,r?(t.lineStart(),t.point(_[0][0],_[0][1]),t.point(_[1][0],_[1][1]),t.lineEnd()):(t.point(_[1][0],_[1][1]),t.lineEnd(),t.lineStart(),t.point(_[0][0],_[0][1])))}!y||e&&fe(e,v)||t.point(v[0],v[1]),e=v,o=y,n=m},lineEnd:function(){o&&t.lineEnd(),e=null},clean:function(){return f|(u&&o)<<1}}}function c(t,e,r){var i=[1,0,0],o=at(it(t),it(e)),s=ot(o,o),u=o[0],c=s-u*u;if(!c)return!r&&t;var h=n*s/c,f=-n*u/c,d=at(i,o),g=lt(i,h);st(g,lt(o,f));var v=d,y=ot(g,v),m=ot(v,v),_=y*y-m*(ot(g,g)-1);if(!(_<0)){var x=S(_),b=lt(v,(-y-x)/m);if(st(b,g),b=rt(b),!r)return b;var w,M=t[0],j=e[0],C=t[1],E=e[1];j<M&&(w=M,M=j,j=w);var P=j-M,T=p(P-l)<a;if(!T&&E<C&&(w=C,C=E,E=w),T||P<a?T?C+E>0^b[1]<(p(b[0]-M)<a?C:E):C<=b[1]&&b[1]<=E:P>l^(M<=b[0]&&b[0]<=j)){var k=lt(v,(-y+x)/m);return st(k,g),[b,rt(k)]}}}function h(e,n){var i=r?t:l-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return Kn(s,u,o,r?[0,-t]:[-l,t-l])},ir=function(t){return{stream:or(t)}};function or(t){return function(e){var n=new ar;for(var r in t)n[r]=t[r];return n.stream=e,n}}function ar(){}function sr(t,e,n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=o&&t.clipExtent(null),z(n,t.stream(fn));var a=fn.result(),s=Math.min(r/(a[1][0]-a[0][0]),i/(a[1][1]-a[0][1])),l=+e[0][0]+(r-s*(a[1][0]+a[0][0]))/2,u=+e[0][1]+(i-s*(a[1][1]+a[0][1]))/2;return null!=o&&t.clipExtent(o),t.scale(150*s).translate([l,u])}function lr(t,e,n){return sr(t,[[0,0],e],n)}ar.prototype={constructor:ar,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var ur=16,cr=y(30*d),hr=function(t,e){return+e?dr(t,e):fr(t)};function fr(t){return or({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}function dr(t,e){function n(r,i,o,s,l,u,c,h,f,d,g,y,m,_){var x=c-r,b=h-i,w=x*x+b*b;if(w>4*e&&m--){var M=s+d,j=l+g,C=u+y,P=S(M*M+j*j+C*C),T=E(C/=P),k=p(p(C)-1)<a||p(o-f)<a?(o+f)/2:v(j,M),A=t(k,T),O=A[0],I=A[1],B=O-r,L=I-i,F=b*B-x*L;(F*F/w>e||p((x*B+b*L)/w-.5)>.3||s*d+l*g+u*y<cr)&&(n(r,i,o,s,l,u,O,I,k,M/=P,j/=P,C,m,_),_.point(O,I),n(O,I,k,M,j,C,c,h,f,d,g,y,m,_))}}return function(e){var r,i,o,a,s,l,u,c,h,f,d,p,g={point:v,lineStart:y,lineEnd:_,polygonStart:function(){e.polygonStart(),g.lineStart=x},polygonEnd:function(){e.polygonEnd(),g.lineStart=y}};function v(n,r){n=t(n,r),e.point(n[0],n[1])}function y(){c=NaN,g.point=m,e.lineStart()}function m(r,i){var o=it([r,i]),a=t(r,i);n(c,h,u,f,d,p,c=a[0],h=a[1],u=r,f=o[0],d=o[1],p=o[2],ur,e),e.point(c,h)}function _(){g.point=v,e.lineEnd()}function x(){y(),g.point=b,g.lineEnd=w}function b(t,e){m(r=t,e),i=c,o=h,a=f,s=d,l=p,g.point=m}function w(){n(c,h,u,f,d,p,i,o,r,a,s,l,ur,e),g.lineEnd=_,_()}return g}}var pr=or({point:function(t,e){this.stream.point(t*d,e*d)}});function gr(t){return vr((function(){return t}))()}function vr(t){var e,n,r,i,o,a,s,l,u,c,h=150,p=480,g=250,v=0,y=0,m=0,_=0,x=0,b=null,w=Jn,M=null,j=Je,C=.5,E=hr(k,C);function P(t){return[(t=o(t[0]*d,t[1]*d))[0]*h+n,r-t[1]*h]}function T(t){return(t=o.invert((t[0]-n)/h,(r-t[1])/h))&&[t[0]*f,t[1]*f]}function k(t,i){return[(t=e(t,i))[0]*h+n,r-t[1]*h]}function A(){o=te(i=ne(m,_,x),e);var t=e(v,y);return n=p-t[0]*h,r=g+t[1]*h,O()}function O(){return u=c=null,P}return P.stream=function(t){return u&&c===t?u:u=pr(w(i,E(j(c=t))))},P.clipAngle=function(t){return arguments.length?(w=+t?rr(b=t*d,6*d):(b=null,Jn),O()):b*f},P.clipExtent=function(t){return arguments.length?(j=null==t?(M=a=s=l=null,Je):me(M=+t[0][0],a=+t[0][1],s=+t[1][0],l=+t[1][1]),O()):null==M?null:[[M,a],[s,l]]},P.scale=function(t){return arguments.length?(h=+t,A()):h},P.translate=function(t){return arguments.length?(p=+t[0],g=+t[1],A()):[p,g]},P.center=function(t){return arguments.length?(v=t[0]%360*d,y=t[1]%360*d,A()):[v*f,y*f]},P.rotate=function(t){return arguments.length?(m=t[0]%360*d,_=t[1]%360*d,x=t.length>2?t[2]%360*d:0,A()):[m*f,_*f,x*f]},P.precision=function(t){return arguments.length?(E=hr(k,C=t*t),O()):S(C)},P.fitExtent=function(t,e){return sr(P,t,e)},P.fitSize=function(t,e){return lr(P,t,e)},function(){return e=t.apply(this,arguments),P.invert=e.invert&&T,A()}}function yr(t){var e=0,n=l/3,r=vr(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*d,n=t[1]*d):[e*f,n*f]},i}function mr(t){var e=y(t);function n(t,n){return[t*e,w(n)/e]}return n.invert=function(t,n){return[t/e,E(n*e)]},n}function _r(t,e){var n=w(t),r=(n+w(e))/2;if(p(r)<a)return mr(t);var i=1+n*(2*r-n),o=S(i)/r;function s(t,e){var n=S(i-2*r*w(e))/r;return[n*w(t*=r),o-n*y(t)]}return s.invert=function(t,e){var n=o-e;return[v(t,p(n))/r*M(n),E((i-(t*t+n*n)*r*r)/(2*r))]},s}var xr=function(){return yr(_r).scale(155.424).center([0,33.6442])},br=function(){return xr().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};function wr(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}var Mr=function(){var t,e,n,r,i,o,s=br(),l=xr().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=xr().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(t,e){o=[t,e]}};function h(t){var e=t[0],a=t[1];return o=null,n.point(e,a),o||(r.point(e,a),o)||(i.point(e,a),o)}function f(){return t=e=null,h}return h.invert=function(t){var e=s.scale(),n=s.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?l:i>=.166&&i<.234&&r>=-.214&&r<-.115?u:s).invert(t)},h.stream=function(n){return t&&e===n?t:t=wr([s.stream(e=n),l.stream(n),u.stream(n)])},h.precision=function(t){return arguments.length?(s.precision(t),l.precision(t),u.precision(t),f()):s.precision()},h.scale=function(t){return arguments.length?(s.scale(t),l.scale(.35*t),u.scale(t),h.translate(s.translate())):s.scale()},h.translate=function(t){if(!arguments.length)return s.translate();var e=s.scale(),o=+t[0],h=+t[1];return n=s.translate(t).clipExtent([[o-.455*e,h-.238*e],[o+.455*e,h+.238*e]]).stream(c),r=l.translate([o-.307*e,h+.201*e]).clipExtent([[o-.425*e+a,h+.12*e+a],[o-.214*e-a,h+.234*e-a]]).stream(c),i=u.translate([o-.205*e,h+.212*e]).clipExtent([[o-.214*e+a,h+.166*e+a],[o-.115*e-a,h+.234*e-a]]).stream(c),f()},h.fitExtent=function(t,e){return sr(h,t,e)},h.fitSize=function(t,e){return lr(h,t,e)},h.scale(1070)};function Sr(t){return function(e,n){var r=y(e),i=y(n),o=t(r*i);return[o*i*w(e),o*w(n)]}}function jr(t){return function(e,n){var r=S(e*e+n*n),i=t(r),o=w(i),a=y(i);return[v(e*o,r*a),E(r&&n*o/r)]}}var Cr=Sr((function(t){return S(2/(1+t))}));Cr.invert=jr((function(t){return 2*E(t/2)}));var Er=function(){return gr(Cr).scale(124.75).clipAngle(179.999)},Pr=Sr((function(t){return(t=C(t))&&t/w(t)}));Pr.invert=jr((function(t){return t}));var Tr=function(){return gr(Pr).scale(79.4188).clipAngle(179.999)};function kr(t,e){return[t,x(j((u+e)/2))]}kr.invert=function(t,e){return[t,2*g(_(e))-u]};var Ar=function(){return Or(kr).scale(961/h)};function Or(t){var e,n,r,i=gr(t),o=i.center,a=i.scale,s=i.translate,u=i.clipExtent,c=null;function h(){var o=l*a(),s=i(ae(i.rotate()).invert([0,0]));return u(null==c?[[s[0]-o,s[1]-o],[s[0]+o,s[1]+o]]:t===kr?[[Math.max(s[0]-o,c),e],[Math.min(s[0]+o,n),r]]:[[c,Math.max(s[1]-o,e)],[n,Math.min(s[1]+o,r)]])}return i.scale=function(t){return arguments.length?(a(t),h()):a()},i.translate=function(t){return arguments.length?(s(t),h()):s()},i.center=function(t){return arguments.length?(o(t),h()):o()},i.clipExtent=function(t){return arguments.length?(null==t?c=e=n=r=null:(c=+t[0][0],e=+t[0][1],n=+t[1][0],r=+t[1][1]),h()):null==c?null:[[c,e],[n,r]]},h()}function Ir(t){return j((u+t)/2)}function Br(t,e){var n=y(t),r=t===e?w(t):x(n/y(e))/x(Ir(e)/Ir(t)),i=n*b(Ir(t),r)/r;if(!r)return kr;function o(t,e){i>0?e<-u+a&&(e=-u+a):e>u-a&&(e=u-a);var n=i/b(Ir(e),r);return[n*w(r*t),i-n*y(r*t)]}return o.invert=function(t,e){var n=i-e,o=M(r)*S(t*t+n*n);return[v(t,p(n))/r*M(n),2*g(b(i/o,1/r))-u]},o}var Lr=function(){return yr(Br).scale(109.5).parallels([30,30])};function Fr(t,e){return[t,e]}Fr.invert=Fr;var Dr=function(){return gr(Fr).scale(152.63)};function Rr(t,e){var n=y(t),r=t===e?w(t):(n-y(e))/(e-t),i=n/r+t;if(p(r)<a)return Fr;function o(t,e){var n=i-e,o=r*t;return[n*w(o),i-n*y(o)]}return o.invert=function(t,e){var n=i-e;return[v(t,p(n))/r*M(n),i-M(r)*S(t*t+n*n)]},o}var Nr=function(){return yr(Rr).scale(131.154).center([0,13.9389])};function zr(t,e){var n=y(e),r=y(t)*n;return[n*w(t)/r,w(e)/r]}zr.invert=jr(g);var Hr=function(){return gr(zr).scale(144.049).clipAngle(60)};function Gr(t,e,n,r){return 1===t&&1===e&&0===n&&0===r?Je:or({point:function(i,o){this.stream.point(i*t+n,o*e+r)}})}var Yr=function(){var t,e,n,r,i,o,a=1,s=0,l=0,u=1,c=1,h=Je,f=null,d=Je;function p(){return r=i=null,o}return o={stream:function(t){return r&&i===t?r:r=h(d(i=t))},clipExtent:function(r){return arguments.length?(d=null==r?(f=t=e=n=null,Je):me(f=+r[0][0],t=+r[0][1],e=+r[1][0],n=+r[1][1]),p()):null==f?null:[[f,t],[e,n]]},scale:function(t){return arguments.length?(h=Gr((a=+t)*u,a*c,s,l),p()):a},translate:function(t){return arguments.length?(h=Gr(a*u,a*c,s=+t[0],l=+t[1]),p()):[s,l]},reflectX:function(t){return arguments.length?(h=Gr(a*(u=t?-1:1),a*c,s,l),p()):u<0},reflectY:function(t){return arguments.length?(h=Gr(a*u,a*(c=t?-1:1),s,l),p()):c<0},fitExtent:function(t,e){return sr(o,t,e)},fitSize:function(t,e){return lr(o,t,e)}}};function Vr(t,e){return[y(e)*w(t),w(e)]}Vr.invert=jr(E);var Xr=function(){return gr(Vr).scale(249.5).clipAngle(90+a)};function qr(t,e){var n=y(e),r=1+y(t)*n;return[n*w(t)/r,w(e)/r]}qr.invert=jr((function(t){return 2*g(t)}));var Wr=function(){return gr(qr).scale(250).clipAngle(142)};function Ur(t,e){return[x(j((u+e)/2)),-t]}Ur.invert=function(t,e){return[-e,2*g(_(t))-u]};var Zr=function(){var t=Or(Ur),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)};t.geoArea=nt,t.geoBounds=zt,t.geoCentroid=$t,t.geoCircle=ue,t.geoClipExtent=we,t.geoContains=Ye,t.geoDistance=Be,t.geoGraticule=qe,t.geoGraticule10=We,t.geoInterpolate=$e,t.geoLength=Ae,t.geoPath=Zn,t.geoAlbers=br,t.geoAlbersUsa=Mr,t.geoAzimuthalEqualArea=Er,t.geoAzimuthalEqualAreaRaw=Cr,t.geoAzimuthalEquidistant=Tr,t.geoAzimuthalEquidistantRaw=Pr,t.geoConicConformal=Lr,t.geoConicConformalRaw=Br,t.geoConicEqualArea=xr,t.geoConicEqualAreaRaw=_r,t.geoConicEquidistant=Nr,t.geoConicEquidistantRaw=Rr,t.geoEquirectangular=Dr,t.geoEquirectangularRaw=Fr,t.geoGnomonic=Hr,t.geoGnomonicRaw=zr,t.geoIdentity=Yr,t.geoProjection=gr,t.geoProjectionMutator=vr,t.geoMercator=Ar,t.geoMercatorRaw=kr,t.geoOrthographic=Xr,t.geoOrthographicRaw=Vr,t.geoStereographic=Wr,t.geoStereographicRaw=qr,t.geoTransverseMercator=Zr,t.geoTransverseMercatorRaw=Ur,t.geoRotation=ae,t.geoStream=z,t.geoTransform=ir,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(/*! d3-array */"./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js"))},"./node_modules/_d3-geo@2.0.1@d3-geo/dist/d3-geo.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_d3-geo@2.0.1@d3-geo/dist/d3-geo.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e,n){!function(t,e){var n=1e-6,r=1e-12,i=Math.PI,o=i/2,a=i/4,s=2*i,l=180/i,u=i/180,c=Math.abs,h=Math.atan,f=Math.atan2,d=Math.cos,p=Math.ceil,g=Math.exp,v=Math.hypot,y=Math.log,m=Math.pow,_=Math.sin,x=Math.sign||function(t){return t>0?1:t<0?-1:0},b=Math.sqrt,w=Math.tan;function M(t){return t>1?0:t<-1?i:Math.acos(t)}function S(t){return t>1?o:t<-1?-o:Math.asin(t)}function j(t){return(t=_(t/2))*t}function C(){}function E(t,e){t&&T.hasOwnProperty(t.type)&&T[t.type](t,e)}var P={Feature:function(t,e){E(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)E(n[r].geometry,e)}},T={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){k(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)k(n[r],e,0)},Polygon:function(t,e){A(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)A(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)E(n[r],e)}};function k(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function A(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)k(t[n],e,1);e.polygonEnd()}function O(t,e){t&&P.hasOwnProperty(t.type)?P[t.type](t,e):E(t,e)}var I,B,L,F,D,R,N,z,H,G,Y,V,X,q,W,U,Z=new e.Adder,K=new e.Adder,Q={point:C,lineStart:C,lineEnd:C,polygonStart:function(){Z=new e.Adder,Q.lineStart=$,Q.lineEnd=J},polygonEnd:function(){var t=+Z;K.add(t<0?s+t:t),this.lineStart=this.lineEnd=this.point=C},sphere:function(){K.add(s)}};function $(){Q.point=tt}function J(){et(I,B)}function tt(t,e){Q.point=et,I=t,B=e,L=t*=u,F=d(e=(e*=u)/2+a),D=_(e)}function et(t,e){var n=(t*=u)-L,r=n>=0?1:-1,i=r*n,o=d(e=(e*=u)/2+a),s=_(e),l=D*s,c=F*o+l*d(i),h=l*r*_(i);Z.add(f(h,c)),L=t,F=o,D=s}function nt(t){return K=new e.Adder,O(t,Q),2*K}function rt(t){return[f(t[1],t[0]),S(t[2])]}function it(t){var e=t[0],n=t[1],r=d(n);return[r*d(e),r*_(e),_(n)]}function ot(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function at(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function st(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function lt(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function ut(t){var e=b(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var ct,ht,ft,dt,pt,gt,vt,yt,mt,_t,xt,bt,wt,Mt,St,jt,Ct={point:Et,lineStart:Tt,lineEnd:kt,polygonStart:function(){Ct.point=At,Ct.lineStart=Ot,Ct.lineEnd=It,q=new e.Adder,Q.polygonStart()},polygonEnd:function(){Q.polygonEnd(),Ct.point=Et,Ct.lineStart=Tt,Ct.lineEnd=kt,Z<0?(R=-(z=180),N=-(H=90)):q>n?H=90:q<-n&&(N=-90),U[0]=R,U[1]=z},sphere:function(){R=-(z=180),N=-(H=90)}};function Et(t,e){W.push(U=[R=t,z=t]),e<N&&(N=e),e>H&&(H=e)}function Pt(t,e){var n=it([t*u,e*u]);if(X){var r=at(X,n),i=at([r[1],-r[0],0],r);ut(i),i=rt(i);var o,a=t-G,s=a>0?1:-1,h=i[0]*l*s,f=c(a)>180;f^(s*G<h&&h<s*t)?(o=i[1]*l)>H&&(H=o):f^(s*G<(h=(h+360)%360-180)&&h<s*t)?(o=-i[1]*l)<N&&(N=o):(e<N&&(N=e),e>H&&(H=e)),f?t<G?Bt(R,t)>Bt(R,z)&&(z=t):Bt(t,z)>Bt(R,z)&&(R=t):z>=R?(t<R&&(R=t),t>z&&(z=t)):t>G?Bt(R,t)>Bt(R,z)&&(z=t):Bt(t,z)>Bt(R,z)&&(R=t)}else W.push(U=[R=t,z=t]);e<N&&(N=e),e>H&&(H=e),X=n,G=t}function Tt(){Ct.point=Pt}function kt(){U[0]=R,U[1]=z,Ct.point=Et,X=null}function At(t,e){if(X){var n=t-G;q.add(c(n)>180?n+(n>0?360:-360):n)}else Y=t,V=e;Q.point(t,e),Pt(t,e)}function Ot(){Q.lineStart()}function It(){At(Y,V),Q.lineEnd(),c(q)>n&&(R=-(z=180)),U[0]=R,U[1]=z,X=null}function Bt(t,e){return(e-=t)<0?e+360:e}function Lt(t,e){return t[0]-e[0]}function Ft(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function Dt(t){var e,n,r,i,o,a,s;if(H=z=-(R=N=1/0),W=[],O(t,Ct),n=W.length){for(W.sort(Lt),e=1,o=[r=W[0]];e<n;++e)Ft(r,(i=W[e])[0])||Ft(r,i[1])?(Bt(r[0],i[1])>Bt(r[0],r[1])&&(r[1]=i[1]),Bt(i[0],r[1])>Bt(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,e=0,r=o[n=o.length-1];e<=n;r=i,++e)i=o[e],(s=Bt(r[1],i[0]))>a&&(a=s,R=i[0],z=r[1])}return W=U=null,R===1/0||N===1/0?[[NaN,NaN],[NaN,NaN]]:[[R,N],[z,H]]}var Rt={sphere:C,point:Nt,lineStart:Ht,lineEnd:Vt,polygonStart:function(){Rt.lineStart=Xt,Rt.lineEnd=qt},polygonEnd:function(){Rt.lineStart=Ht,Rt.lineEnd=Vt}};function Nt(t,e){t*=u;var n=d(e*=u);zt(n*d(t),n*_(t),_(e))}function zt(t,e,n){++ct,ft+=(t-ft)/ct,dt+=(e-dt)/ct,pt+=(n-pt)/ct}function Ht(){Rt.point=Gt}function Gt(t,e){t*=u;var n=d(e*=u);Mt=n*d(t),St=n*_(t),jt=_(e),Rt.point=Yt,zt(Mt,St,jt)}function Yt(t,e){t*=u;var n=d(e*=u),r=n*d(t),i=n*_(t),o=_(e),a=f(b((a=St*o-jt*i)*a+(a=jt*r-Mt*o)*a+(a=Mt*i-St*r)*a),Mt*r+St*i+jt*o);ht+=a,gt+=a*(Mt+(Mt=r)),vt+=a*(St+(St=i)),yt+=a*(jt+(jt=o)),zt(Mt,St,jt)}function Vt(){Rt.point=Nt}function Xt(){Rt.point=Wt}function qt(){Ut(bt,wt),Rt.point=Nt}function Wt(t,e){bt=t,wt=e,t*=u,e*=u,Rt.point=Ut;var n=d(e);Mt=n*d(t),St=n*_(t),jt=_(e),zt(Mt,St,jt)}function Ut(t,e){t*=u;var n=d(e*=u),r=n*d(t),i=n*_(t),o=_(e),a=St*o-jt*i,s=jt*r-Mt*o,l=Mt*i-St*r,c=v(a,s,l),h=S(c),f=c&&-h/c;mt.add(f*a),_t.add(f*s),xt.add(f*l),ht+=h,gt+=h*(Mt+(Mt=r)),vt+=h*(St+(St=i)),yt+=h*(jt+(jt=o)),zt(Mt,St,jt)}function Zt(t){ct=ht=ft=dt=pt=gt=vt=yt=0,mt=new e.Adder,_t=new e.Adder,xt=new e.Adder,O(t,Rt);var i=+mt,o=+_t,a=+xt,s=v(i,o,a);return s<r&&(i=gt,o=vt,a=yt,ht<n&&(i=ft,o=dt,a=pt),(s=v(i,o,a))<r)?[NaN,NaN]:[f(o,i)*l,S(a/s)*l]}function Kt(t){return function(){return t}}function Qt(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}function $t(t,e){return[c(t)>i?t+Math.round(-t/s)*s:t,e]}function Jt(t,e,n){return(t%=s)?e||n?Qt(ee(t),ne(e,n)):ee(t):e||n?ne(e,n):$t}function te(t){return function(e,n){return[(e+=t)>i?e-s:e<-i?e+s:e,n]}}function ee(t){var e=te(t);return e.invert=te(-t),e}function ne(t,e){var n=d(t),r=_(t),i=d(e),o=_(e);function a(t,e){var a=d(e),s=d(t)*a,l=_(t)*a,u=_(e),c=u*n+s*r;return[f(l*i-c*o,s*n-u*r),S(c*i+l*o)]}return a.invert=function(t,e){var a=d(e),s=d(t)*a,l=_(t)*a,u=_(e),c=u*i-l*o;return[f(l*i+u*o,s*n+c*r),S(c*n-s*r)]},a}function re(t){function e(e){return(e=t(e[0]*u,e[1]*u))[0]*=l,e[1]*=l,e}return t=Jt(t[0]*u,t[1]*u,t.length>2?t[2]*u:0),e.invert=function(e){return(e=t.invert(e[0]*u,e[1]*u))[0]*=l,e[1]*=l,e},e}function ie(t,e,n,r,i,o){if(n){var a=d(e),l=_(e),u=r*n;null==i?(i=e+r*s,o=e-u/2):(i=oe(a,i),o=oe(a,o),(r>0?i<o:i>o)&&(i+=r*s));for(var c,h=i;r>0?h>o:h<o;h-=u)c=rt([a,-l*d(h),-l*_(h)]),t.point(c[0],c[1])}}function oe(t,e){(e=it(e))[0]-=t,ut(e);var r=M(-e[1]);return((-e[2]<0?-r:r)+s-n)%s}function ae(){var t,e,n=Kt([0,0]),r=Kt(90),i=Kt(6),o={point:a};function a(n,r){t.push(n=e(n,r)),n[0]*=l,n[1]*=l}function s(){var a=n.apply(this,arguments),s=r.apply(this,arguments)*u,l=i.apply(this,arguments)*u;return t=[],e=Jt(-a[0]*u,-a[1]*u,0).invert,ie(o,s,l,1),a={type:"Polygon",coordinates:[t]},t=e=null,a}return s.center=function(t){return arguments.length?(n="function"==typeof t?t:Kt([+t[0],+t[1]]),s):n},s.radius=function(t){return arguments.length?(r="function"==typeof t?t:Kt(+t),s):r},s.precision=function(t){return arguments.length?(i="function"==typeof t?t:Kt(+t),s):i},s}function se(){var t,e=[];return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:C,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function le(t,e){return c(t[0]-e[0])<n&&c(t[1]-e[1])<n}function ue(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function ce(t,e,r,i,o){var a,s,l=[],u=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,r,i=t[0],s=t[e];if(le(i,s)){if(!i[2]&&!s[2]){for(o.lineStart(),a=0;a<e;++a)o.point((i=t[a])[0],i[1]);return void o.lineEnd()}s[0]+=2*n}l.push(r=new ue(i,t,null,!0)),u.push(r.o=new ue(i,null,r,!1)),l.push(r=new ue(s,t,null,!1)),u.push(r.o=new ue(s,null,r,!0))}})),l.length){for(u.sort(e),he(l),he(u),a=0,s=u.length;a<s;++a)u[a].e=r=!r;for(var c,h,f=l[0];;){for(var d=f,p=!0;d.v;)if((d=d.n)===f)return;c=d.z,o.lineStart();do{if(d.v=d.o.v=!0,d.e){if(p)for(a=0,s=c.length;a<s;++a)o.point((h=c[a])[0],h[1]);else i(d.x,d.n.x,1,o);d=d.n}else{if(p)for(c=d.p.z,a=c.length-1;a>=0;--a)o.point((h=c[a])[0],h[1]);else i(d.x,d.p.x,-1,o);d=d.p}c=(d=d.o).z,p=!p}while(!d.v);o.lineEnd()}}}function he(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}function fe(t){return c(t[0])<=i?t[0]:x(t[0])*((c(t[0])+i)%s-i)}function de(t,l){var u=fe(l),c=l[1],h=_(c),p=[_(u),-d(u),0],g=0,v=0,y=new e.Adder;1===h?c=o+n:-1===h&&(c=-o-n);for(var m=0,x=t.length;m<x;++m)if(w=(b=t[m]).length)for(var b,w,M=b[w-1],j=fe(M),C=M[1]/2+a,E=_(C),P=d(C),T=0;T<w;++T,j=A,E=I,P=B,M=k){var k=b[T],A=fe(k),O=k[1]/2+a,I=_(O),B=d(O),L=A-j,F=L>=0?1:-1,D=F*L,R=D>i,N=E*I;if(y.add(f(N*F*_(D),P*B+N*d(D))),g+=R?L+F*s:L,R^j>=u^A>=u){var z=at(it(M),it(k));ut(z);var H=at(p,z);ut(H);var G=(R^L>=0?-1:1)*S(H[2]);(c>G||c===G&&(z[0]||z[1]))&&(v+=R^L>=0?1:-1)}}return(g<-n||g<n&&y<-r)^1&v}function pe(t,n,r,i){return function(o){var a,s,l,u=n(o),c=se(),h=n(c),f=!1,d={point:p,lineStart:v,lineEnd:y,polygonStart:function(){d.point=m,d.lineStart=_,d.lineEnd=x,s=[],a=[]},polygonEnd:function(){d.point=p,d.lineStart=v,d.lineEnd=y,s=e.merge(s);var t=de(a,i);s.length?(f||(o.polygonStart(),f=!0),ce(s,ve,t,r,o)):t&&(f||(o.polygonStart(),f=!0),o.lineStart(),r(null,null,1,o),o.lineEnd()),f&&(o.polygonEnd(),f=!1),s=a=null},sphere:function(){o.polygonStart(),o.lineStart(),r(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function p(e,n){t(e,n)&&o.point(e,n)}function g(t,e){u.point(t,e)}function v(){d.point=g,u.lineStart()}function y(){d.point=p,u.lineEnd()}function m(t,e){l.push([t,e]),h.point(t,e)}function _(){h.lineStart(),l=[]}function x(){m(l[0][0],l[0][1]),h.lineEnd();var t,e,n,r,i=h.clean(),u=c.result(),d=u.length;if(l.pop(),a.push(l),l=null,d)if(1&i){if((e=(n=u[0]).length-1)>0){for(f||(o.polygonStart(),f=!0),o.lineStart(),t=0;t<e;++t)o.point((r=n[t])[0],r[1]);o.lineEnd()}}else d>1&&2&i&&u.push(u.pop().concat(u.shift())),s.push(u.filter(ge))}return d}}function ge(t){return t.length>1}function ve(t,e){return((t=t.x)[0]<0?t[1]-o-n:o-t[1])-((e=e.x)[0]<0?e[1]-o-n:o-e[1])}$t.invert=$t;var ye=pe((function(){return!0}),me,xe,[-i,-o]);function me(t){var e,r=NaN,a=NaN,s=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(l,u){var h=l>0?i:-i,f=c(l-r);c(f-i)<n?(t.point(r,a=(a+u)/2>0?o:-o),t.point(s,a),t.lineEnd(),t.lineStart(),t.point(h,a),t.point(l,a),e=0):s!==h&&f>=i&&(c(r-s)<n&&(r-=s*n),c(l-h)<n&&(l-=h*n),a=_e(r,a,l,u),t.point(s,a),t.lineEnd(),t.lineStart(),t.point(h,a),e=0),t.point(r=l,a=u),s=h},lineEnd:function(){t.lineEnd(),r=a=NaN},clean:function(){return 2-e}}}function _e(t,e,r,i){var o,a,s=_(t-r);return c(s)>n?h((_(e)*(a=d(i))*_(r)-_(i)*(o=d(e))*_(t))/(o*a*s)):(e+i)/2}function xe(t,e,r,a){var s;if(null==t)s=r*o,a.point(-i,s),a.point(0,s),a.point(i,s),a.point(i,0),a.point(i,-s),a.point(0,-s),a.point(-i,-s),a.point(-i,0),a.point(-i,s);else if(c(t[0]-e[0])>n){var l=t[0]<e[0]?i:-i;s=r*l/2,a.point(-l,s),a.point(0,s),a.point(l,s)}else a.point(e[0],e[1])}function be(t){var e=d(t),r=6*u,o=e>0,a=c(e)>n;function s(e,n,i,o){ie(o,t,r,i,e,n)}function l(t,n){return d(t)*d(n)>e}function h(t){var e,n,r,s,u;return{lineStart:function(){s=r=!1,u=1},point:function(c,h){var d,g=[c,h],v=l(c,h),y=o?v?0:p(c,h):v?p(c+(c<0?i:-i),h):0;if(!e&&(s=r=v)&&t.lineStart(),v!==r&&(!(d=f(e,g))||le(e,d)||le(g,d))&&(g[2]=1),v!==r)u=0,v?(t.lineStart(),d=f(g,e),t.point(d[0],d[1])):(d=f(e,g),t.point(d[0],d[1],2),t.lineEnd()),e=d;else if(a&&e&&o^v){var m;y&n||!(m=f(g,e,!0))||(u=0,o?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1],3)))}!v||e&&le(e,g)||t.point(g[0],g[1]),e=g,r=v,n=y},lineEnd:function(){r&&t.lineEnd(),e=null},clean:function(){return u|(s&&r)<<1}}}function f(t,r,o){var a=[1,0,0],s=at(it(t),it(r)),l=ot(s,s),u=s[0],h=l-u*u;if(!h)return!o&&t;var f=e*l/h,d=-e*u/h,p=at(a,s),g=lt(a,f);st(g,lt(s,d));var v=p,y=ot(g,v),m=ot(v,v),_=y*y-m*(ot(g,g)-1);if(!(_<0)){var x=b(_),w=lt(v,(-y-x)/m);if(st(w,g),w=rt(w),!o)return w;var M,S=t[0],j=r[0],C=t[1],E=r[1];j<S&&(M=S,S=j,j=M);var P=j-S,T=c(P-i)<n;if(!T&&E<C&&(M=C,C=E,E=M),T||P<n?T?C+E>0^w[1]<(c(w[0]-S)<n?C:E):C<=w[1]&&w[1]<=E:P>i^(S<=w[0]&&w[0]<=j)){var k=lt(v,(-y+x)/m);return st(k,g),[w,rt(k)]}}}function p(e,n){var r=o?t:i-t,a=0;return e<-r?a|=1:e>r&&(a|=2),n<-r?a|=4:n>r&&(a|=8),a}return pe(l,h,s,o?[0,-t]:[-i,t-i])}function we(t,e,n,r,i,o){var a,s=t[0],l=t[1],u=0,c=1,h=e[0]-s,f=e[1]-l;if(a=n-s,h||!(a>0)){if(a/=h,h<0){if(a<u)return;a<c&&(c=a)}else if(h>0){if(a>c)return;a>u&&(u=a)}if(a=i-s,h||!(a<0)){if(a/=h,h<0){if(a>c)return;a>u&&(u=a)}else if(h>0){if(a<u)return;a<c&&(c=a)}if(a=r-l,f||!(a>0)){if(a/=f,f<0){if(a<u)return;a<c&&(c=a)}else if(f>0){if(a>c)return;a>u&&(u=a)}if(a=o-l,f||!(a<0)){if(a/=f,f<0){if(a>c)return;a>u&&(u=a)}else if(f>0){if(a<u)return;a<c&&(c=a)}return u>0&&(t[0]=s+u*h,t[1]=l+u*f),c<1&&(e[0]=s+c*h,e[1]=l+c*f),!0}}}}}var Me,Se,je,Ce,Ee=1e9,Pe=-Ee;function Te(t,r,i,o){function a(e,n){return t<=e&&e<=i&&r<=n&&n<=o}function s(e,n,a,s){var u=0,c=0;if(null==e||(u=l(e,a))!==(c=l(n,a))||h(e,n)<0^a>0)do{s.point(0===u||3===u?t:i,u>1?o:r)}while((u=(u+a+4)%4)!==c);else s.point(n[0],n[1])}function l(e,o){return c(e[0]-t)<n?o>0?0:3:c(e[0]-i)<n?o>0?2:1:c(e[1]-r)<n?o>0?1:0:o>0?3:2}function u(t,e){return h(t.x,e.x)}function h(t,e){var n=l(t,1),r=l(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(n){var l,c,h,f,d,p,g,v,y,m,_,x=n,b=se(),w={point:M,lineStart:E,lineEnd:P,polygonStart:j,polygonEnd:C};function M(t,e){a(t,e)&&x.point(t,e)}function S(){for(var e=0,n=0,r=c.length;n<r;++n)for(var i,a,s=c[n],l=1,u=s.length,h=s[0],f=h[0],d=h[1];l<u;++l)i=f,a=d,f=(h=s[l])[0],d=h[1],a<=o?d>o&&(f-i)*(o-a)>(d-a)*(t-i)&&++e:d<=o&&(f-i)*(o-a)<(d-a)*(t-i)&&--e;return e}function j(){x=b,l=[],c=[],_=!0}function C(){var t=S(),r=_&&t,i=(l=e.merge(l)).length;(r||i)&&(n.polygonStart(),r&&(n.lineStart(),s(null,null,1,n),n.lineEnd()),i&&ce(l,u,t,s,n),n.polygonEnd()),x=n,l=c=h=null}function E(){w.point=T,c&&c.push(h=[]),m=!0,y=!1,g=v=NaN}function P(){l&&(T(f,d),p&&y&&b.rejoin(),l.push(b.result())),w.point=M,y&&x.lineEnd()}function T(e,n){var s=a(e,n);if(c&&h.push([e,n]),m)f=e,d=n,p=s,m=!1,s&&(x.lineStart(),x.point(e,n));else if(s&&y)x.point(e,n);else{var l=[g=Math.max(Pe,Math.min(Ee,g)),v=Math.max(Pe,Math.min(Ee,v))],u=[e=Math.max(Pe,Math.min(Ee,e)),n=Math.max(Pe,Math.min(Ee,n))];we(l,u,t,r,i,o)?(y||(x.lineStart(),x.point(l[0],l[1])),x.point(u[0],u[1]),s||x.lineEnd(),_=!1):s&&(x.lineStart(),x.point(e,n),_=!1)}g=e,v=n,y=s}return w}}function ke(){var t,e,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return t&&e===n?t:t=Te(r,i,o,a)(e=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],o=+s[1][0],a=+s[1][1],t=e=null,n):[[r,i],[o,a]]}}}var Ae={sphere:C,point:C,lineStart:Oe,lineEnd:C,polygonStart:C,polygonEnd:C};function Oe(){Ae.point=Be,Ae.lineEnd=Ie}function Ie(){Ae.point=Ae.lineEnd=C}function Be(t,e){Se=t*=u,je=_(e*=u),Ce=d(e),Ae.point=Le}function Le(t,e){t*=u;var n=_(e*=u),r=d(e),i=c(t-Se),o=d(i),a=r*_(i),s=Ce*n-je*r*o,l=je*n+Ce*r*o;Me.add(f(b(a*a+s*s),l)),Se=t,je=n,Ce=r}function Fe(t){return Me=new e.Adder,O(t,Ae),+Me}var De=[null,null],Re={type:"LineString",coordinates:De};function Ne(t,e){return De[0]=t,De[1]=e,Fe(Re)}var ze={Feature:function(t,e){return Ge(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)if(Ge(n[r].geometry,e))return!0;return!1}},He={Sphere:function(){return!0},Point:function(t,e){return Ye(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Ye(n[r],e))return!0;return!1},LineString:function(t,e){return Ve(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Ve(n[r],e))return!0;return!1},Polygon:function(t,e){return Xe(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Xe(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)if(Ge(n[r],e))return!0;return!1}};function Ge(t,e){return!(!t||!He.hasOwnProperty(t.type))&&He[t.type](t,e)}function Ye(t,e){return 0===Ne(t,e)}function Ve(t,e){for(var n,i,o,a=0,s=t.length;a<s;a++){if(0===(i=Ne(t[a],e)))return!0;if(a>0&&(o=Ne(t[a],t[a-1]))>0&&n<=o&&i<=o&&(n+i-o)*(1-Math.pow((n-i)/o,2))<r*o)return!0;n=i}return!1}function Xe(t,e){return!!de(t.map(qe),We(e))}function qe(t){return(t=t.map(We)).pop(),t}function We(t){return[t[0]*u,t[1]*u]}function Ue(t,e){return(t&&ze.hasOwnProperty(t.type)?ze[t.type]:Ge)(t,e)}function Ze(t,r,i){var o=e.range(t,r-n,i).concat(r);return function(t){return o.map((function(e){return[t,e]}))}}function Ke(t,r,i){var o=e.range(t,r-n,i).concat(r);return function(t){return o.map((function(e){return[e,t]}))}}function Qe(){var t,r,i,o,a,s,l,u,h,f,d,g,v=10,y=v,m=90,_=360,x=2.5;function b(){return{type:"MultiLineString",coordinates:w()}}function w(){return e.range(p(o/m)*m,i,m).map(d).concat(e.range(p(u/_)*_,l,_).map(g)).concat(e.range(p(r/v)*v,t,v).filter((function(t){return c(t%m)>n})).map(h)).concat(e.range(p(s/y)*y,a,y).filter((function(t){return c(t%_)>n})).map(f))}return b.lines=function(){return w().map((function(t){return{type:"LineString",coordinates:t}}))},b.outline=function(){return{type:"Polygon",coordinates:[d(o).concat(g(l).slice(1),d(i).reverse().slice(1),g(u).reverse().slice(1))]}},b.extent=function(t){return arguments.length?b.extentMajor(t).extentMinor(t):b.extentMinor()},b.extentMajor=function(t){return arguments.length?(o=+t[0][0],i=+t[1][0],u=+t[0][1],l=+t[1][1],o>i&&(t=o,o=i,i=t),u>l&&(t=u,u=l,l=t),b.precision(x)):[[o,u],[i,l]]},b.extentMinor=function(e){return arguments.length?(r=+e[0][0],t=+e[1][0],s=+e[0][1],a=+e[1][1],r>t&&(e=r,r=t,t=e),s>a&&(e=s,s=a,a=e),b.precision(x)):[[r,s],[t,a]]},b.step=function(t){return arguments.length?b.stepMajor(t).stepMinor(t):b.stepMinor()},b.stepMajor=function(t){return arguments.length?(m=+t[0],_=+t[1],b):[m,_]},b.stepMinor=function(t){return arguments.length?(v=+t[0],y=+t[1],b):[v,y]},b.precision=function(e){return arguments.length?(x=+e,h=Ze(s,a,90),f=Ke(r,t,x),d=Ze(u,l,90),g=Ke(o,i,x),b):x},b.extentMajor([[-180,-90+n],[180,90-n]]).extentMinor([[-180,-80-n],[180,80+n]])}function $e(){return Qe()()}function Je(t,e){var n=t[0]*u,r=t[1]*u,i=e[0]*u,o=e[1]*u,a=d(r),s=_(r),c=d(o),h=_(o),p=a*d(n),g=a*_(n),v=c*d(i),y=c*_(i),m=2*S(b(j(o-r)+a*c*j(i-n))),x=_(m),w=m?function(t){var e=_(t*=m)/x,n=_(m-t)/x,r=n*p+e*v,i=n*g+e*y,o=n*s+e*h;return[f(i,r)*l,f(o,b(r*r+i*i))*l]}:function(){return[n*l,r*l]};return w.distance=m,w}var tn,en,nn,rn,on=function(t){return t},an=new e.Adder,sn=new e.Adder,ln={point:C,lineStart:C,lineEnd:C,polygonStart:function(){ln.lineStart=un,ln.lineEnd=fn},polygonEnd:function(){ln.lineStart=ln.lineEnd=ln.point=C,an.add(c(sn)),sn=new e.Adder},result:function(){var t=an/2;return an=new e.Adder,t}};function un(){ln.point=cn}function cn(t,e){ln.point=hn,tn=nn=t,en=rn=e}function hn(t,e){sn.add(rn*t-nn*e),nn=t,rn=e}function fn(){hn(tn,en)}var dn=1/0,pn=dn,gn=-dn,vn=gn,yn={point:mn,lineStart:C,lineEnd:C,polygonStart:C,polygonEnd:C,result:function(){var t=[[dn,pn],[gn,vn]];return gn=vn=-(pn=dn=1/0),t}};function mn(t,e){t<dn&&(dn=t),t>gn&&(gn=t),e<pn&&(pn=e),e>vn&&(vn=e)}var _n,xn,bn,wn,Mn=0,Sn=0,jn=0,Cn=0,En=0,Pn=0,Tn=0,kn=0,An=0,On={point:In,lineStart:Bn,lineEnd:Dn,polygonStart:function(){On.lineStart=Rn,On.lineEnd=Nn},polygonEnd:function(){On.point=In,On.lineStart=Bn,On.lineEnd=Dn},result:function(){var t=An?[Tn/An,kn/An]:Pn?[Cn/Pn,En/Pn]:jn?[Mn/jn,Sn/jn]:[NaN,NaN];return Mn=Sn=jn=Cn=En=Pn=Tn=kn=An=0,t}};function In(t,e){Mn+=t,Sn+=e,++jn}function Bn(){On.point=Ln}function Ln(t,e){On.point=Fn,In(bn=t,wn=e)}function Fn(t,e){var n=t-bn,r=e-wn,i=b(n*n+r*r);Cn+=i*(bn+t)/2,En+=i*(wn+e)/2,Pn+=i,In(bn=t,wn=e)}function Dn(){On.point=In}function Rn(){On.point=zn}function Nn(){Hn(_n,xn)}function zn(t,e){On.point=Hn,In(_n=bn=t,xn=wn=e)}function Hn(t,e){var n=t-bn,r=e-wn,i=b(n*n+r*r);Cn+=i*(bn+t)/2,En+=i*(wn+e)/2,Pn+=i,Tn+=(i=wn*t-bn*e)*(bn+t),kn+=i*(wn+e),An+=3*i,In(bn=t,wn=e)}function Gn(t){this._context=t}Gn.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,s)}},result:C};var Yn,Vn,Xn,qn,Wn,Un=new e.Adder,Zn={point:C,lineStart:function(){Zn.point=Kn},lineEnd:function(){Yn&&Qn(Vn,Xn),Zn.point=C},polygonStart:function(){Yn=!0},polygonEnd:function(){Yn=null},result:function(){var t=+Un;return Un=new e.Adder,t}};function Kn(t,e){Zn.point=Qn,Vn=qn=t,Xn=Wn=e}function Qn(t,e){qn-=t,Wn-=e,Un.add(b(qn*qn+Wn*Wn)),qn=t,Wn=e}function $n(){this._string=[]}function Jn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function tr(t,e){var n,r,i=4.5;function o(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),O(t,n(r))),r.result()}return o.area=function(t){return O(t,n(ln)),ln.result()},o.measure=function(t){return O(t,n(Zn)),Zn.result()},o.bounds=function(t){return O(t,n(yn)),yn.result()},o.centroid=function(t){return O(t,n(On)),On.result()},o.projection=function(e){return arguments.length?(n=null==e?(t=null,on):(t=e).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(e=null,new $n):new Gn(e=t),"function"!=typeof i&&r.pointRadius(i),o):e},o.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(e)}function er(t){return{stream:nr(t)}}function nr(t){return function(e){var n=new rr;for(var r in t)n[r]=t[r];return n.stream=e,n}}function rr(){}function ir(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),O(n,t.stream(yn)),e(yn.result()),null!=r&&t.clipExtent(r),t}function or(t,e,n){return ir(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+e[0][0]+(r-o*(n[1][0]+n[0][0]))/2,s=+e[0][1]+(i-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,s])}),n)}function ar(t,e,n){return or(t,[[0,0],e],n)}function sr(t,e,n){return ir(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];t.scale(150*i).translate([o,a])}),n)}function lr(t,e,n){return ir(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([o,a])}),n)}$n.prototype={_radius:4.5,_circle:Jn(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=Jn(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},rr.prototype={constructor:rr,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var ur=16,cr=d(30*u);function hr(t,e){return+e?dr(t,e):fr(t)}function fr(t){return nr({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}function dr(t,e){function r(i,o,a,s,l,u,h,d,p,g,v,y,m,_){var x=h-i,w=d-o,M=x*x+w*w;if(M>4*e&&m--){var j=s+g,C=l+v,E=u+y,P=b(j*j+C*C+E*E),T=S(E/=P),k=c(c(E)-1)<n||c(a-p)<n?(a+p)/2:f(C,j),A=t(k,T),O=A[0],I=A[1],B=O-i,L=I-o,F=w*B-x*L;(F*F/M>e||c((x*B+w*L)/M-.5)>.3||s*g+l*v+u*y<cr)&&(r(i,o,a,s,l,u,O,I,k,j/=P,C/=P,E,m,_),_.point(O,I),r(O,I,k,j,C,E,h,d,p,g,v,y,m,_))}}return function(e){var n,i,o,a,s,l,u,c,h,f,d,p,g={point:v,lineStart:y,lineEnd:_,polygonStart:function(){e.polygonStart(),g.lineStart=x},polygonEnd:function(){e.polygonEnd(),g.lineStart=y}};function v(n,r){n=t(n,r),e.point(n[0],n[1])}function y(){c=NaN,g.point=m,e.lineStart()}function m(n,i){var o=it([n,i]),a=t(n,i);r(c,h,u,f,d,p,c=a[0],h=a[1],u=n,f=o[0],d=o[1],p=o[2],ur,e),e.point(c,h)}function _(){g.point=v,e.lineEnd()}function x(){y(),g.point=b,g.lineEnd=w}function b(t,e){m(n=t,e),i=c,o=h,a=f,s=d,l=p,g.point=m}function w(){r(c,h,u,f,d,p,i,o,n,a,s,l,ur,e),g.lineEnd=_,_()}return g}}var pr=nr({point:function(t,e){this.stream.point(t*u,e*u)}});function gr(t){return nr({point:function(e,n){var r=t(e,n);return this.stream.point(r[0],r[1])}})}function vr(t,e,n,r,i){function o(o,a){return[e+t*(o*=r),n-t*(a*=i)]}return o.invert=function(o,a){return[(o-e)/t*r,(n-a)/t*i]},o}function yr(t,e,n,r,i,o){if(!o)return vr(t,e,n,r,i);var a=d(o),s=_(o),l=a*t,u=s*t,c=a/t,h=s/t,f=(s*n-a*e)/t,p=(s*e+a*n)/t;function g(t,o){return[l*(t*=r)-u*(o*=i)+e,n-u*t-l*o]}return g.invert=function(t,e){return[r*(c*t-h*e+f),i*(p-h*t-c*e)]},g}function mr(t){return _r((function(){return t}))()}function _r(t){var e,n,r,i,o,a,s,c,h,f,d=150,p=480,g=250,v=0,y=0,m=0,_=0,x=0,w=0,M=1,S=1,j=null,C=ye,E=null,P=on,T=.5;function k(t){return c(t[0]*u,t[1]*u)}function A(t){return(t=c.invert(t[0],t[1]))&&[t[0]*l,t[1]*l]}function O(){var t=yr(d,0,0,M,S,w).apply(null,e(v,y)),r=yr(d,p-t[0],g-t[1],M,S,w);return n=Jt(m,_,x),s=Qt(e,r),c=Qt(n,s),a=hr(s,T),I()}function I(){return h=f=null,k}return k.stream=function(t){return h&&f===t?h:h=pr(gr(n)(C(a(P(f=t)))))},k.preclip=function(t){return arguments.length?(C=t,j=void 0,I()):C},k.postclip=function(t){return arguments.length?(P=t,E=r=i=o=null,I()):P},k.clipAngle=function(t){return arguments.length?(C=+t?be(j=t*u):(j=null,ye),I()):j*l},k.clipExtent=function(t){return arguments.length?(P=null==t?(E=r=i=o=null,on):Te(E=+t[0][0],r=+t[0][1],i=+t[1][0],o=+t[1][1]),I()):null==E?null:[[E,r],[i,o]]},k.scale=function(t){return arguments.length?(d=+t,O()):d},k.translate=function(t){return arguments.length?(p=+t[0],g=+t[1],O()):[p,g]},k.center=function(t){return arguments.length?(v=t[0]%360*u,y=t[1]%360*u,O()):[v*l,y*l]},k.rotate=function(t){return arguments.length?(m=t[0]%360*u,_=t[1]%360*u,x=t.length>2?t[2]%360*u:0,O()):[m*l,_*l,x*l]},k.angle=function(t){return arguments.length?(w=t%360*u,O()):w*l},k.reflectX=function(t){return arguments.length?(M=t?-1:1,O()):M<0},k.reflectY=function(t){return arguments.length?(S=t?-1:1,O()):S<0},k.precision=function(t){return arguments.length?(a=hr(s,T=t*t),I()):b(T)},k.fitExtent=function(t,e){return or(k,t,e)},k.fitSize=function(t,e){return ar(k,t,e)},k.fitWidth=function(t,e){return sr(k,t,e)},k.fitHeight=function(t,e){return lr(k,t,e)},function(){return e=t.apply(this,arguments),k.invert=e.invert&&A,O()}}function xr(t){var e=0,n=i/3,r=_r(t),o=r(e,n);return o.parallels=function(t){return arguments.length?r(e=t[0]*u,n=t[1]*u):[e*l,n*l]},o}function br(t){var e=d(t);function n(t,n){return[t*e,_(n)/e]}return n.invert=function(t,n){return[t/e,S(n*e)]},n}function wr(t,e){var r=_(t),o=(r+_(e))/2;if(c(o)<n)return br(t);var a=1+r*(2*o-r),s=b(a)/o;function l(t,e){var n=b(a-2*o*_(e))/o;return[n*_(t*=o),s-n*d(t)]}return l.invert=function(t,e){var n=s-e,r=f(t,c(n))*x(n);return n*o<0&&(r-=i*x(t)*x(n)),[r/o,S((a-(t*t+n*n)*o*o)/(2*o))]},l}function Mr(){return xr(wr).scale(155.424).center([0,33.6442])}function Sr(){return Mr().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function jr(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}function Cr(){var t,e,r,i,o,a,s=Sr(),l=Mr().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=Mr().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(t,e){a=[t,e]}};function h(t){var e=t[0],n=t[1];return a=null,r.point(e,n),a||(i.point(e,n),a)||(o.point(e,n),a)}function f(){return t=e=null,h}return h.invert=function(t){var e=s.scale(),n=s.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?l:i>=.166&&i<.234&&r>=-.214&&r<-.115?u:s).invert(t)},h.stream=function(n){return t&&e===n?t:t=jr([s.stream(e=n),l.stream(n),u.stream(n)])},h.precision=function(t){return arguments.length?(s.precision(t),l.precision(t),u.precision(t),f()):s.precision()},h.scale=function(t){return arguments.length?(s.scale(t),l.scale(.35*t),u.scale(t),h.translate(s.translate())):s.scale()},h.translate=function(t){if(!arguments.length)return s.translate();var e=s.scale(),a=+t[0],h=+t[1];return r=s.translate(t).clipExtent([[a-.455*e,h-.238*e],[a+.455*e,h+.238*e]]).stream(c),i=l.translate([a-.307*e,h+.201*e]).clipExtent([[a-.425*e+n,h+.12*e+n],[a-.214*e-n,h+.234*e-n]]).stream(c),o=u.translate([a-.205*e,h+.212*e]).clipExtent([[a-.214*e+n,h+.166*e+n],[a-.115*e-n,h+.234*e-n]]).stream(c),f()},h.fitExtent=function(t,e){return or(h,t,e)},h.fitSize=function(t,e){return ar(h,t,e)},h.fitWidth=function(t,e){return sr(h,t,e)},h.fitHeight=function(t,e){return lr(h,t,e)},h.scale(1070)}function Er(t){return function(e,n){var r=d(e),i=d(n),o=t(r*i);return o===1/0?[2,0]:[o*i*_(e),o*_(n)]}}function Pr(t){return function(e,n){var r=b(e*e+n*n),i=t(r),o=_(i),a=d(i);return[f(e*o,r*a),S(r&&n*o/r)]}}var Tr=Er((function(t){return b(2/(1+t))}));function kr(){return mr(Tr).scale(124.75).clipAngle(179.999)}Tr.invert=Pr((function(t){return 2*S(t/2)}));var Ar=Er((function(t){return(t=M(t))&&t/_(t)}));function Or(){return mr(Ar).scale(79.4188).clipAngle(179.999)}function Ir(t,e){return[t,y(w((o+e)/2))]}function Br(){return Lr(Ir).scale(961/s)}function Lr(t){var e,n,r,o=mr(t),a=o.center,s=o.scale,l=o.translate,u=o.clipExtent,c=null;function h(){var a=i*s(),l=o(re(o.rotate()).invert([0,0]));return u(null==c?[[l[0]-a,l[1]-a],[l[0]+a,l[1]+a]]:t===Ir?[[Math.max(l[0]-a,c),e],[Math.min(l[0]+a,n),r]]:[[c,Math.max(l[1]-a,e)],[n,Math.min(l[1]+a,r)]])}return o.scale=function(t){return arguments.length?(s(t),h()):s()},o.translate=function(t){return arguments.length?(l(t),h()):l()},o.center=function(t){return arguments.length?(a(t),h()):a()},o.clipExtent=function(t){return arguments.length?(null==t?c=e=n=r=null:(c=+t[0][0],e=+t[0][1],n=+t[1][0],r=+t[1][1]),h()):null==c?null:[[c,e],[n,r]]},h()}function Fr(t){return w((o+t)/2)}function Dr(t,e){var r=d(t),a=t===e?_(t):y(r/d(e))/y(Fr(e)/Fr(t)),s=r*m(Fr(t),a)/a;if(!a)return Ir;function l(t,e){s>0?e<-o+n&&(e=-o+n):e>o-n&&(e=o-n);var r=s/m(Fr(e),a);return[r*_(a*t),s-r*d(a*t)]}return l.invert=function(t,e){var n=s-e,r=x(a)*b(t*t+n*n),l=f(t,c(n))*x(n);return n*a<0&&(l-=i*x(t)*x(n)),[l/a,2*h(m(s/r,1/a))-o]},l}function Rr(){return xr(Dr).scale(109.5).parallels([30,30])}function Nr(t,e){return[t,e]}function zr(){return mr(Nr).scale(152.63)}function Hr(t,e){var r=d(t),o=t===e?_(t):(r-d(e))/(e-t),a=r/o+t;if(c(o)<n)return Nr;function s(t,e){var n=a-e,r=o*t;return[n*_(r),a-n*d(r)]}return s.invert=function(t,e){var n=a-e,r=f(t,c(n))*x(n);return n*o<0&&(r-=i*x(t)*x(n)),[r/o,a-x(o)*b(t*t+n*n)]},s}function Gr(){return xr(Hr).scale(131.154).center([0,13.9389])}Ar.invert=Pr((function(t){return t})),Ir.invert=function(t,e){return[t,2*h(g(e))-o]},Nr.invert=Nr;var Yr=1.340264,Vr=-.081106,Xr=893e-6,qr=.003796,Wr=b(3)/2,Ur=12;function Zr(t,e){var n=S(Wr*_(e)),r=n*n,i=r*r*r;return[t*d(n)/(Wr*(Yr+3*Vr*r+i*(7*Xr+9*qr*r))),n*(Yr+Vr*r+i*(Xr+qr*r))]}function Kr(){return mr(Zr).scale(177.158)}function Qr(t,e){var n=d(e),r=d(t)*n;return[n*_(t)/r,_(e)/r]}function $r(){return mr(Qr).scale(144.049).clipAngle(60)}function Jr(){var t,e,n,r,i,o,a,s=1,c=0,h=0,f=1,p=1,g=0,v=null,y=1,m=1,x=nr({point:function(t,e){var n=M([t,e]);this.stream.point(n[0],n[1])}}),b=on;function w(){return y=s*f,m=s*p,o=a=null,M}function M(n){var r=n[0]*y,i=n[1]*m;if(g){var o=i*t-r*e;r=r*t+i*e,i=o}return[r+c,i+h]}return M.invert=function(n){var r=n[0]-c,i=n[1]-h;if(g){var o=i*t+r*e;r=r*t-i*e,i=o}return[r/y,i/m]},M.stream=function(t){return o&&a===t?o:o=x(b(a=t))},M.postclip=function(t){return arguments.length?(b=t,v=n=r=i=null,w()):b},M.clipExtent=function(t){return arguments.length?(b=null==t?(v=n=r=i=null,on):Te(v=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),w()):null==v?null:[[v,n],[r,i]]},M.scale=function(t){return arguments.length?(s=+t,w()):s},M.translate=function(t){return arguments.length?(c=+t[0],h=+t[1],w()):[c,h]},M.angle=function(n){return arguments.length?(e=_(g=n%360*u),t=d(g),w()):g*l},M.reflectX=function(t){return arguments.length?(f=t?-1:1,w()):f<0},M.reflectY=function(t){return arguments.length?(p=t?-1:1,w()):p<0},M.fitExtent=function(t,e){return or(M,t,e)},M.fitSize=function(t,e){return ar(M,t,e)},M.fitWidth=function(t,e){return sr(M,t,e)},M.fitHeight=function(t,e){return lr(M,t,e)},M}function ti(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}function ei(){return mr(ti).scale(175.295)}function ni(t,e){return[d(e)*_(t),_(e)]}function ri(){return mr(ni).scale(249.5).clipAngle(90+n)}function ii(t,e){var n=d(e),r=1+d(t)*n;return[n*_(t)/r,_(e)/r]}function oi(){return mr(ii).scale(250).clipAngle(142)}function ai(t,e){return[y(w((o+e)/2)),-t]}function si(){var t=Lr(ai),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}Zr.invert=function(t,e){for(var n,i=e,o=i*i,a=o*o*o,s=0;s<Ur&&(a=(o=(i-=n=(i*(Yr+Vr*o+a*(Xr+qr*o))-e)/(Yr+3*Vr*o+a*(7*Xr+9*qr*o)))*i)*o*o,!(c(n)<r));++s);return[Wr*t*(Yr+3*Vr*o+a*(7*Xr+9*qr*o))/d(i),S(_(i)/Wr)]},Qr.invert=Pr(h),ti.invert=function(t,e){var r,i=e,o=25;do{var a=i*i,s=a*a;i-=r=(i*(1.007226+a*(.015085+s*(.028874*a-.044475-.005916*s)))-e)/(1.007226+a*(.045255+s*(.259866*a-.311325-.005916*11*s)))}while(c(r)>n&&--o>0);return[t/(.8707+(a=i*i)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),i]},ni.invert=Pr(S),ii.invert=Pr((function(t){return 2*h(t)})),ai.invert=function(t,e){return[-e,2*h(g(t))-o]},t.geoAlbers=Sr,t.geoAlbersUsa=Cr,t.geoArea=nt,t.geoAzimuthalEqualArea=kr,t.geoAzimuthalEqualAreaRaw=Tr,t.geoAzimuthalEquidistant=Or,t.geoAzimuthalEquidistantRaw=Ar,t.geoBounds=Dt,t.geoCentroid=Zt,t.geoCircle=ae,t.geoClipAntimeridian=ye,t.geoClipCircle=be,t.geoClipExtent=ke,t.geoClipRectangle=Te,t.geoConicConformal=Rr,t.geoConicConformalRaw=Dr,t.geoConicEqualArea=Mr,t.geoConicEqualAreaRaw=wr,t.geoConicEquidistant=Gr,t.geoConicEquidistantRaw=Hr,t.geoContains=Ue,t.geoDistance=Ne,t.geoEqualEarth=Kr,t.geoEqualEarthRaw=Zr,t.geoEquirectangular=zr,t.geoEquirectangularRaw=Nr,t.geoGnomonic=$r,t.geoGnomonicRaw=Qr,t.geoGraticule=Qe,t.geoGraticule10=$e,t.geoIdentity=Jr,t.geoInterpolate=Je,t.geoLength=Fe,t.geoMercator=Br,t.geoMercatorRaw=Ir,t.geoNaturalEarth1=ei,t.geoNaturalEarth1Raw=ti,t.geoOrthographic=ri,t.geoOrthographicRaw=ni,t.geoPath=tr,t.geoProjection=mr,t.geoProjectionMutator=_r,t.geoRotation=re,t.geoStereographic=oi,t.geoStereographicRaw=ii,t.geoStream=O,t.geoTransform=er,t.geoTransverseMercator=si,t.geoTransverseMercatorRaw=ai,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(/*! d3-array */"./node_modules/_d3-array@2.11.0@d3-array/dist/d3-array.js"))},"./node_modules/_d3-hexjson@1.1.1@d3-hexjson/build/d3-hexjson.js":
- /*!***********************************************************************!*\
- !*** ./node_modules/_d3-hexjson@1.1.1@d3-hexjson/build/d3-hexjson.js ***!
- \***********************************************************************/
- /*! no static exports found */function(t,e,n){!function(t,e){function n(t,n,s){var l=t.layout,u=[],c=0;Object.keys(t.hexes).forEach((function(e){t.hexes[e].key=e,u.push(t.hexes[e])}));var h=e.max(u,(function(t){return+t.q})),f=e.min(u,(function(t){return+t.q})),d=e.max(u,(function(t){return+t.r})),p=e.min(u,(function(t){return+t.r})),g=h-f+1,v=d-p+1,y=(c="odd-r"===l||"even-r"===l?e.min([n/((g+.5)*Math.sqrt(3)),s/(1.5*(v+1/3))]):e.min([s/((v+.5)*Math.sqrt(3)),n/(1.5*(g+1/3))]))*Math.sqrt(3),m=o(l,y,c),_=a(m);return u.forEach((function(t){t.qc=t.q-f,t.rc=d-t.r,t.x=r(t,l,y,c),t.y=i(t,l,y,c),t.vertices=m,t.points=_})),u}function r(t,e,n,r){var i=0,o=0;switch(e){case"odd-r":o=t.rc%2==1?n:n/2,i=t.qc*n+o;break;case"even-r":o=t.rc%2==0?n:n/2,i=t.qc*n+o;break;case"odd-q":case"even-q":i=t.qc*r*1.5+r}return i}function i(t,e,n,r){var i=0,o=0;switch(e){case"odd-r":case"even-r":i=t.rc*r*1.5+r;break;case"odd-q":o=t.qc%2==1?n:n/2,i=t.rc*n+o;break;case"even-q":o=t.qc%2==0?n:n/2,i=t.rc*n+o}return i}function o(t,e,n){var r=[];switch(t){case"odd-r":case"even-r":r.push({x:0,y:0-n}),r.push({x:0+.5*e,y:0-.5*n}),r.push({x:0+.5*e,y:0+.5*n}),r.push({x:0,y:0+n}),r.push({x:0-.5*e,y:0+.5*n}),r.push({x:0-.5*e,y:0-.5*n});break;case"odd-q":case"even-q":r.push({x:0-n,y:0}),r.push({x:0-.5*n,y:0-.5*e}),r.push({x:0+.5*n,y:0-.5*e}),r.push({x:0+n,y:0}),r.push({x:0+.5*n,y:0+.5*e}),r.push({x:0-.5*n,y:0+.5*e})}return r}function a(t){var e="";return t.forEach((function(t){e+=t.x+","+t.y+" "})),e.substring(0,e.length-1)}function s(t){var n={};n.layout=t.layout,n.hexes={};var r=[];Object.keys(t.hexes).forEach((function(e){r.push(t.hexes[e])}));var i,o,a,s=e.max(r,(function(t){return+t.q})),l=e.min(r,(function(t){return+t.q})),u=e.max(r,(function(t){return+t.r})),c=e.min(r,(function(t){return+t.r}));for(i=l;i<=s;i++)for(o=c;o<=u;o++)a="Q"+i+"R"+o,n.hexes[a]={q:i,r:o};return n}function l(t,n,o,a){var s=[],l=t.layout;Object.keys(t.hexes).forEach((function(e){s.push(t.hexes[e])}));var u,c=e.max(s,(function(t){return+t.q})),h=e.min(s,(function(t){return+t.q})),f=e.max(s,(function(t){return+t.r})),d=e.min(s,(function(t){return+t.r})),p=c-h+1,g=f-d+1,v=(u="odd-r"===l||"even-r"===l?e.min([n/((p+.5)*Math.sqrt(3)),o/(1.5*(g+1/3))]):e.min([o/((g+.5)*Math.sqrt(3)),n/(1.5*(p+1/3))]))*Math.sqrt(3),y=[],m=u*u*4,_=s.length;if(_>1){s.forEach((function(t){t.qc=t.q-h,t.rc=f-t.r,t.x=r(t,l,v,u),t.y=i(t,l,v,u)}));for(var x=0;x<_-1;x++)for(var b=x+1;b<_;b++){var w=s[x],M=s[b];if(w[a]!==M[a]&&Math.abs(w.q-M.q)<=1&&Math.abs(w.r-M.r)<=1&&(w.x-M.x)*(w.x-M.x)+(w.y-M.y)*(w.y-M.y)<m){var S={};S.x=M.x+(w.x-M.x)/2,S.y=M.y+(w.y-M.y)/2;var j={},C=4*Math.sqrt(3);j.dx=(w.y-M.y)/C,j.dy=-(w.x-M.x)/C,y.push({x:S.x-2*j.dx,y:S.y-2*j.dy}),y.push({x:S.x-j.dx,y:S.y-j.dy}),y.push({x:S.x,y:S.y}),y.push({x:S.x+j.dx,y:S.y+j.dy}),y.push({x:S.x+2*j.dx,y:S.y+2*j.dy})}}}return y}function u(t,n,o,a){var s=[],l=t.layout;Object.keys(t.hexes).forEach((function(e){s.push(t.hexes[e])}));var u,c=e.max(s,(function(t){return+t.q})),h=e.min(s,(function(t){return+t.q})),f=e.max(s,(function(t){return+t.r})),d=e.min(s,(function(t){return+t.r})),p=c-h+1,g=f-d+1,v=(u="odd-r"===l||"even-r"===l?e.min([n/((p+.5)*Math.sqrt(3)),o/(1.5*(g+1/3))]):e.min([o/((g+.5)*Math.sqrt(3)),n/(1.5*(p+1/3))]))*Math.sqrt(3),y=[],m=u*u*4,_=s.length;if(_>1){s.forEach((function(t){t.qc=t.q-h,t.rc=f-t.r,t.x=r(t,l,v,u),t.y=i(t,l,v,u)}));for(var x=0;x<_-1;x++)for(var b=x+1;b<_;b++){var w=s[x],M=s[b];if(w[a]!==M[a]&&Math.abs(w.q-M.q)<=1&&Math.abs(w.r-M.r)<=1&&(w.x-M.x)*(w.x-M.x)+(w.y-M.y)*(w.y-M.y)<m){var S={};S.x=M.x+(w.x-M.x)/2,S.y=M.y+(w.y-M.y)/2;var j={},C=1;w[a]<M[a]&&(C=-1);var E=2*Math.sqrt(3)*C;j.dx=(w.y-M.y)/E,j.dy=-(w.x-M.x)/E,y.push({x1:S.x-j.dx,y1:S.y-j.dy,x2:S.x+j.dx,y2:S.y+j.dy})}}}return y}t.renderHexJSON=n,t.getGridForHexJSON=s,t.getBoundaryDotsForHexJSON=l,t.getBoundarySegmentsForHexJSON=u,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(/*! d3-array */"./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js"))},"./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js":
- /*!****************************************************************************!*\
- !*** ./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js ***!
- \****************************************************************************/
- /*! no static exports found */function(t,e,n){!function(t){function e(t,e){return t.parent===e.parent?1:2}function n(t){return t.reduce(r,0)/t.length}function r(t,e){return t+e.x}function i(t){return 1+t.reduce(o,0)}function o(t,e){return Math.max(t,e.y)}function a(t){for(var e;e=t.children;)t=e[0];return t}function s(t){for(var e;e=t.children;)t=e[e.length-1];return t}function l(){var t=e,r=1,o=1,l=!1;function u(e){var u,c=0;e.eachAfter((function(e){var r=e.children;r?(e.x=n(r),e.y=i(r)):(e.x=u?c+=t(e,u):0,e.y=0,u=e)}));var h=a(e),f=s(e),d=h.x-t(h,f)/2,p=f.x+t(f,h)/2;return e.eachAfter(l?function(t){t.x=(t.x-e.x)*r,t.y=(e.y-t.y)*o}:function(t){t.x=(t.x-d)/(p-d)*r,t.y=(1-(e.y?t.y/e.y:1))*o})}return u.separation=function(e){return arguments.length?(t=e,u):t},u.size=function(t){return arguments.length?(l=!1,r=+t[0],o=+t[1],u):l?null:[r,o]},u.nodeSize=function(t){return arguments.length?(l=!0,r=+t[0],o=+t[1],u):l?[r,o]:null},u}function u(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function c(){return this.eachAfter(u)}function h(t){var e,n,r,i,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(t(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r])}while(a.length);return this}function f(t){for(var e,n,r=this,i=[r];r=i.pop();)if(t(r),e=r.children)for(n=e.length-1;n>=0;--n)i.push(e[n]);return this}function d(t){for(var e,n,r,i=this,o=[i],a=[];i=o.pop();)if(a.push(i),e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n]);for(;i=a.pop();)t(i);return this}function p(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))}function g(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))}function v(t){for(var e=this,n=y(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function y(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}function m(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function _(){var t=[];return this.each((function(e){t.push(e)})),t}function x(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t}function b(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e}function w(t,e){var n,r,i,o,a,s=new E(t),l=+t.value&&(s.value=t.value),u=[s];for(null==e&&(e=S);n=u.pop();)if(l&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)u.push(r=n.children[o]=new E(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(C)}function M(){return w(this).eachBefore(j)}function S(t){return t.children}function j(t){t.data=t.data.data}function C(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function E(t){this.data=t,this.depth=this.height=0,this.parent=null}E.prototype=w.prototype={constructor:E,count:c,each:h,eachAfter:d,eachBefore:f,sum:p,sort:g,path:v,ancestors:m,descendants:_,leaves:x,links:b,copy:M};var P=Array.prototype.slice;function T(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}function k(t){for(var e,n,r=0,i=(t=T(P.call(t))).length,o=[];r<i;)e=t[r],n&&I(n,e)?++r:(n=L(o=A(o,e)),r=0);return n}function A(t,e){var n,r;if(B(e,t))return[e];for(n=0;n<t.length;++n)if(O(e,t[n])&&B(D(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(O(D(t[n],t[r]),e)&&O(D(t[n],e),t[r])&&O(D(t[r],e),t[n])&&B(R(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function O(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function I(t,e){var n=t.r-e.r+1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function B(t,e){for(var n=0;n<e.length;++n)if(!I(t,e[n]))return!1;return!0}function L(t){switch(t.length){case 1:return F(t[0]);case 2:return D(t[0],t[1]);case 3:return R(t[0],t[1],t[2])}}function F(t){return{x:t.x,y:t.y,r:t.r}}function D(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,s=e.r,l=o-n,u=a-r,c=s-i,h=Math.sqrt(l*l+u*u);return{x:(n+o+l/h*c)/2,y:(r+a+u/h*c)/2,r:(h+i+s)/2}}function R(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,s=e.y,l=e.r,u=n.x,c=n.y,h=n.r,f=r-a,d=r-u,p=i-s,g=i-c,v=l-o,y=h-o,m=r*r+i*i-o*o,_=m-a*a-s*s+l*l,x=m-u*u-c*c+h*h,b=d*p-f*g,w=(p*x-g*_)/(2*b)-r,M=(g*v-p*y)/b,S=(d*_-f*x)/(2*b)-i,j=(f*y-d*v)/b,C=M*M+j*j-1,E=2*(o+w*M+S*j),P=w*w+S*S-o*o,T=-(C?(E+Math.sqrt(E*E-4*C*P))/(2*C):P/E);return{x:r+w+M*T,y:i+S+j*T,r:T}}function N(t,e,n){var r,i,o,a,s=t.x-e.x,l=t.y-e.y,u=s*s+l*l;u?(i=e.r+n.r,i*=i,a=t.r+n.r,i>(a*=a)?(r=(u+a-i)/(2*u),o=Math.sqrt(Math.max(0,a/u-r*r)),n.x=t.x-r*s-o*l,n.y=t.y-r*l+o*s):(r=(u+i-a)/(2*u),o=Math.sqrt(Math.max(0,i/u-r*r)),n.x=e.x+r*s-o*l,n.y=e.y+r*l+o*s)):(n.x=e.x+n.r,n.y=e.y)}function z(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function H(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function G(t){this._=t,this.next=null,this.previous=null}function Y(t){if(!(i=t.length))return 0;var e,n,r,i,o,a,s,l,u,c,h;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;N(n,e,r=t[2]),e=new G(e),n=new G(n),r=new G(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;s<i;++s){N(e._,n._,r=t[s]),r=new G(r),l=n.next,u=e.previous,c=n._.r,h=e._.r;do{if(c<=h){if(z(l._,r._)){n=l,e.next=n,n.previous=e,--s;continue t}c+=l._.r,l=l.next}else{if(z(u._,r._)){(e=u).next=n,n.previous=e,--s;continue t}h+=u._.r,u=u.previous}}while(l!==u.next);for(r.previous=e,r.next=n,e.next=n.previous=n=r,o=H(e);(r=r.next)!==n;)(a=H(r))<o&&(e=r,o=a);n=e.next}for(e=[n._],r=n;(r=r.next)!==n;)e.push(r._);for(r=k(e),s=0;s<i;++s)(e=t[s]).x-=r.x,e.y-=r.y;return r.r}function V(t){return Y(t),t}function X(t){return null==t?null:q(t)}function q(t){if("function"!=typeof t)throw new Error;return t}function W(){return 0}function U(t){return function(){return t}}function Z(t){return Math.sqrt(t.value)}function K(){var t=null,e=1,n=1,r=W;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(Q(t)).eachAfter($(r,.5)).eachBefore(J(1)):i.eachBefore(Q(Z)).eachAfter($(W,1)).eachAfter($(r,i.r/Math.min(e,n))).eachBefore(J(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=X(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:U(+t),i):r},i}function Q(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function $(t,e){return function(n){if(r=n.children){var r,i,o,a=r.length,s=t(n)*e||0;if(s)for(i=0;i<a;++i)r[i].r+=s;if(o=Y(r),s)for(i=0;i<a;++i)r[i].r-=s;n.r=o+s}}}function J(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}function tt(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function et(t,e,n,r,i){for(var o,a=t.children,s=-1,l=a.length,u=t.value&&(r-e)/t.value;++s<l;)(o=a[s]).y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*u}function nt(){var t=1,e=1,n=0,r=!1;function i(i){var a=i.height+1;return i.x0=i.y0=n,i.x1=t,i.y1=e/a,i.eachBefore(o(e,a)),r&&i.eachBefore(tt),i}function o(t,e){return function(r){r.children&&et(r,r.x0,t*(r.depth+1)/e,r.x1,t*(r.depth+2)/e);var i=r.x0,o=r.y0,a=r.x1-n,s=r.y1-n;a<i&&(i=a=(i+a)/2),s<o&&(o=s=(o+s)/2),r.x0=i,r.y0=o,r.x1=a,r.y1=s}}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(n){return arguments.length?(t=+n[0],e=+n[1],i):[t,e]},i.padding=function(t){return arguments.length?(n=+t,i):n},i}var rt="$",it={depth:-1},ot={};function at(t){return t.id}function st(t){return t.parentId}function lt(){var t=at,e=st;function n(n){var r,i,o,a,s,l,u,c=n.length,h=new Array(c),f={};for(i=0;i<c;++i)r=n[i],s=h[i]=new E(r),null!=(l=t(r,i,n))&&(l+="")&&(f[u=rt+(s.id=l)]=u in f?ot:s);for(i=0;i<c;++i)if(s=h[i],null!=(l=e(n[i],i,n))&&(l+="")){if(!(a=f[rt+l]))throw new Error("missing: "+l);if(a===ot)throw new Error("ambiguous: "+l);a.children?a.children.push(s):a.children=[s],s.parent=a}else{if(o)throw new Error("multiple roots");o=s}if(!o)throw new Error("no root");if(o.parent=it,o.eachBefore((function(t){t.depth=t.parent.depth+1,--c})).eachBefore(C),o.parent=null,c>0)throw new Error("cycle");return o}return n.id=function(e){return arguments.length?(t=q(e),n):t},n.parentId=function(t){return arguments.length?(e=q(t),n):e},n}function ut(t,e){return t.parent===e.parent?1:2}function ct(t){var e=t.children;return e?e[0]:t.t}function ht(t){var e=t.children;return e?e[e.length-1]:t.t}function ft(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function dt(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}function pt(t,e,n){return t.a.parent===e.parent?t.a:n}function gt(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function vt(t){for(var e,n,r,i,o,a=new gt(t,0),s=[a];e=s.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=e.children[i]=new gt(r[i],i)),n.parent=e;return(a.parent=new gt(null,0)).children=[a],a}function yt(){var t=ut,e=1,n=1,r=null;function i(i){var s=vt(i);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(a),r)i.eachBefore(l);else{var u=i,c=i,h=i;i.eachBefore((function(t){t.x<u.x&&(u=t),t.x>c.x&&(c=t),t.depth>h.depth&&(h=t)}));var f=u===c?1:t(u,c)/2,d=f-u.x,p=e/(c.x+f+d),g=n/(h.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*g}))}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){dt(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=s(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(e,n,r){if(n){for(var i,o=e,a=e,s=n,l=o.parent.children[0],u=o.m,c=a.m,h=s.m,f=l.m;s=ht(s),o=ct(o),s&&o;)l=ct(l),(a=ht(a)).a=e,(i=s.z+h-o.z-u+t(s._,o._))>0&&(ft(pt(s,e,r),e,i),u+=i,c+=i),h+=s.m,u+=o.m,f+=l.m,c+=a.m;s&&!ht(a)&&(a.t=s,a.m+=h-c),o&&!ct(l)&&(l.t=o,l.m+=u-f,r=e)}return r}function l(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function mt(t,e,n,r,i){for(var o,a=t.children,s=-1,l=a.length,u=t.value&&(i-n)/t.value;++s<l;)(o=a[s]).x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*u}gt.prototype=Object.create(E.prototype);var _t=(1+Math.sqrt(5))/2;function xt(t,e,n,r,i,o){for(var a,s,l,u,c,h,f,d,p,g,v,y=[],m=e.children,_=0,x=0,b=m.length,w=e.value;_<b;){l=i-n,u=o-r;do{c=m[x++].value}while(!c&&x<b);for(h=f=c,v=c*c*(g=Math.max(u/l,l/u)/(w*t)),p=Math.max(f/v,v/h);x<b;++x){if(c+=s=m[x].value,s<h&&(h=s),s>f&&(f=s),v=c*c*g,(d=Math.max(f/v,v/h))>p){c-=s;break}p=d}y.push(a={value:c,dice:l<u,children:m.slice(_,x)}),a.dice?et(a,n,r,i,w?r+=u*c/w:o):mt(a,n,r,w?n+=l*c/w:i,o),w-=c,_=x}return y}var bt=function t(e){function n(t,n,r,i,o){xt(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(_t);function wt(){var t=bt,e=!1,n=1,r=1,i=[0],o=W,a=W,s=W,l=W,u=W;function c(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(tt),t}function h(e){var n=i[e.depth],r=e.x0+n,c=e.y0+n,h=e.x1-n,f=e.y1-n;h<r&&(r=h=(r+h)/2),f<c&&(c=f=(c+f)/2),e.x0=r,e.y0=c,e.x1=h,e.y1=f,e.children&&(n=i[e.depth+1]=o(e)/2,r+=u(e)-n,c+=a(e)-n,(h-=s(e)-n)<r&&(r=h=(r+h)/2),(f-=l(e)-n)<c&&(c=f=(c+f)/2),t(e,r,c,h,f))}return c.round=function(t){return arguments.length?(e=!!t,c):e},c.size=function(t){return arguments.length?(n=+t[0],r=+t[1],c):[n,r]},c.tile=function(e){return arguments.length?(t=q(e),c):t},c.padding=function(t){return arguments.length?c.paddingInner(t).paddingOuter(t):c.paddingInner()},c.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:U(+t),c):o},c.paddingOuter=function(t){return arguments.length?c.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):c.paddingTop()},c.paddingTop=function(t){return arguments.length?(a="function"==typeof t?t:U(+t),c):a},c.paddingRight=function(t){return arguments.length?(s="function"==typeof t?t:U(+t),c):s},c.paddingBottom=function(t){return arguments.length?(l="function"==typeof t?t:U(+t),c):l},c.paddingLeft=function(t){return arguments.length?(u="function"==typeof t?t:U(+t),c):u},c}function Mt(t,e,n,r,i){var o,a,s=t.children,l=s.length,u=new Array(l+1);for(u[0]=a=o=0;o<l;++o)u[o+1]=a+=s[o].value;function c(t,e,n,r,i,o,a){if(t>=e-1){var l=s[t];return l.x0=r,l.y0=i,l.x1=o,void(l.y1=a)}for(var h=u[t],f=n/2+h,d=t+1,p=e-1;d<p;){var g=d+p>>>1;u[g]<f?d=g+1:p=g}f-u[d-1]<u[d]-f&&t+1<d&&--d;var v=u[d]-h,y=n-v;if(o-r>a-i){var m=(r*y+o*v)/n;c(t,d,v,r,i,m,a),c(d,e,y,m,i,o,a)}else{var _=(i*y+a*v)/n;c(t,d,v,r,i,o,_),c(d,e,y,r,_,o,a)}}c(0,l,t.value,e,n,r,i)}function St(t,e,n,r,i){(1&t.depth?mt:et)(t,e,n,r,i)}var jt=function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e)for(var a,s,l,u,c,h=-1,f=a.length,d=t.value;++h<f;){for(l=(s=a[h]).children,u=s.value=0,c=l.length;u<c;++u)s.value+=l[u].value;s.dice?et(s,n,r,i,r+=(o-r)*s.value/d):mt(s,n,r,n+=(i-n)*s.value/d,o),d-=s.value}else t._squarify=a=xt(e,t,n,r,i,o),a.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(_t);t.cluster=l,t.hierarchy=w,t.pack=K,t.packEnclose=k,t.packSiblings=V,t.partition=nt,t.stratify=lt,t.tree=yt,t.treemap=wt,t.treemapBinary=Mt,t.treemapDice=et,t.treemapResquarify=jt,t.treemapSlice=mt,t.treemapSliceDice=St,t.treemapSquarify=bt,Object.defineProperty(t,"__esModule",{value:!0})}(e)},"./node_modules/_d3-path@1.0.9@d3-path/dist/d3-path.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_d3-path@1.0.9@d3-path/dist/d3-path.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e,n){!function(t){var e=Math.PI,n=2*e,r=1e-6,i=n-r;function o(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function a(){return new o}o.prototype=a.prototype={constructor:o,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,i,o,a){t=+t,n=+n,i=+i,o=+o,a=+a;var s=this._x1,l=this._y1,u=i-t,c=o-n,h=s-t,f=l-n,d=h*h+f*f;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(d>r)if(Math.abs(f*u-c*h)>r&&a){var p=i-s,g=o-l,v=u*u+c*c,y=p*p+g*g,m=Math.sqrt(v),_=Math.sqrt(d),x=a*Math.tan((e-Math.acos((v+d-y)/(2*m*_)))/2),b=x/_,w=x/m;Math.abs(b-1)>r&&(this._+="L"+(t+b*h)+","+(n+b*f)),this._+="A"+a+","+a+",0,0,"+ +(f*p>h*g)+","+(this._x1=t+w*u)+","+(this._y1=n+w*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,o,a,s,l,u){t=+t,o=+o,u=!!u;var c=(a=+a)*Math.cos(s),h=a*Math.sin(s),f=t+c,d=o+h,p=1^u,g=u?s-l:l-s;if(a<0)throw new Error("negative radius: "+a);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>r||Math.abs(this._y1-d)>r)&&(this._+="L"+f+","+d),a&&(g<0&&(g=g%n+n),g>i?this._+="A"+a+","+a+",0,1,"+p+","+(t-c)+","+(o-h)+"A"+a+","+a+",0,1,"+p+","+(this._x1=f)+","+(this._y1=d):g>r&&(this._+="A"+a+","+a+",0,"+ +(g>=e)+","+p+","+(this._x1=t+a*Math.cos(l))+","+(this._y1=o+a*Math.sin(l))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t.path=a,Object.defineProperty(t,"__esModule",{value:!0})}(e)},"./node_modules/_d3-path@2.0.0@d3-path/dist/d3-path.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_d3-path@2.0.0@d3-path/dist/d3-path.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e,n){!function(t){var e=Math.PI,n=2*e,r=1e-6,i=n-r;function o(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function a(){return new o}o.prototype=a.prototype={constructor:o,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,i,o,a){t=+t,n=+n,i=+i,o=+o,a=+a;var s=this._x1,l=this._y1,u=i-t,c=o-n,h=s-t,f=l-n,d=h*h+f*f;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(d>r)if(Math.abs(f*u-c*h)>r&&a){var p=i-s,g=o-l,v=u*u+c*c,y=p*p+g*g,m=Math.sqrt(v),_=Math.sqrt(d),x=a*Math.tan((e-Math.acos((v+d-y)/(2*m*_)))/2),b=x/_,w=x/m;Math.abs(b-1)>r&&(this._+="L"+(t+b*h)+","+(n+b*f)),this._+="A"+a+","+a+",0,0,"+ +(f*p>h*g)+","+(this._x1=t+w*u)+","+(this._y1=n+w*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,o,a,s,l,u){t=+t,o=+o,u=!!u;var c=(a=+a)*Math.cos(s),h=a*Math.sin(s),f=t+c,d=o+h,p=1^u,g=u?s-l:l-s;if(a<0)throw new Error("negative radius: "+a);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>r||Math.abs(this._y1-d)>r)&&(this._+="L"+f+","+d),a&&(g<0&&(g=g%n+n),g>i?this._+="A"+a+","+a+",0,1,"+p+","+(t-c)+","+(o-h)+"A"+a+","+a+",0,1,"+p+","+(this._x1=f)+","+(this._y1=d):g>r&&(this._+="A"+a+","+a+",0,"+ +(g>=e)+","+p+","+(this._x1=t+a*Math.cos(l))+","+(this._y1=o+a*Math.sin(l))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t.path=a,Object.defineProperty(t,"__esModule",{value:!0})}(e)},"./node_modules/_d3-sankey@0.9.1@d3-sankey/dist/d3-sankey.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/_d3-sankey@0.9.1@d3-sankey/dist/d3-sankey.js ***!
- \*******************************************************************/
- /*! no static exports found */function(e,n,r){var i=r(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js");!function(e,n,r,o){function a(t){return t.target.depth}function s(t){return t.depth}function l(t,e){return e-1-t.height}function u(t,e){return t.sourceLinks.length?t.depth:e-1}function c(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?n.min(t.sourceLinks,a)-1:0}function h(t){return function(){return t}}function f(t,e){return p(t.source,e.source)||t.index-e.index}function d(t,e){return p(t.target,e.target)||t.index-e.index}function p(t,e){return t.y0-e.y0}function g(t){return t.value}function v(t){return t.index}function y(t){return t.nodes}function m(t){return t.links}function _(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function x(){var e,o=0,a=0,s=1,l=1,c=24,x=8,b=v,w=u,M=y,S=m,j=6;function C(){var t={nodes:M.apply(null,arguments),links:S.apply(null,arguments)};return E(t),P(t),T(t),k(t),A(t),t}function E(e){e.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var n=r.map(e.nodes,b);e.links.forEach((function(e,r){e.index=r;var i=e.source,o=e.target;"object"!==t(i)&&(i=e.source=_(n,i)),"object"!==t(o)&&(o=e.target=_(n,o)),i.sourceLinks.push(e),o.targetLinks.push(e)}))}function P(t){t.nodes.forEach((function(t){t.value=Math.max(n.sum(t.sourceLinks,g),n.sum(t.targetLinks,g))}))}function T(t){var e,n,r,i=t.nodes.length;for(e=t.nodes,n=[],r=0;e.length;++r,e=n,n=[]){if(r>i)throw new Error("circular link");e.forEach((function(t){t.depth=r,t.sourceLinks.forEach((function(t){n.indexOf(t.target)<0&&n.push(t.target)}))}))}for(e=t.nodes,n=[],r=0;e.length;++r,e=n,n=[]){if(r>i)throw new Error("circular link");e.forEach((function(t){t.height=r,t.targetLinks.forEach((function(t){n.indexOf(t.source)<0&&n.push(t.source)}))}))}var a=(s-o-c)/(r-1);t.nodes.forEach((function(t){t.x1=(t.x0=o+Math.max(0,Math.min(r-1,Math.floor(w.call(null,t,r))))*a)+c}))}function k(t){var o=r.nest().key((function(t){return t.x0})).sortKeys(n.ascending).entries(t.nodes).map((function(t){return t.values}));c(),y();for(var s=.9,u=j;u>0;--u,s*=.9)v(s),y(),h(s),y();function c(){var r=n.min(o,(function(t){return(l-a-(t.length-1)*x)/n.sum(t,g)}));o.forEach((function(t){null!=e&&t.sort(e),t.forEach((function(t,e){t.y1=(t.y0=e)+t.value*r}))})),t.links.forEach((function(t){t.width=t.value*r}))}function h(t){o.forEach((function(e){e.forEach((function(e){var n,r,o,a,s=e.y0;try{for(var l=i.__values(e.sourceLinks.sort(d)),u=l.next();!u.done;u=l.next()){var c=u.value,h=c.target,f=c.width,p=c.value;if(p>0){var g=0;try{for(var v=(o=void 0,i.__values(h.targetLinks)),y=v.next();!y.done;y=v.next()){var m=y.value,_=m.source,b=m.width;if(_===e)break;g+=b+x/2}}catch(w){o={error:w}}finally{try{y&&!y.done&&(a=v.return)&&a.call(v)}finally{if(o)throw o.error}}g=(s-g-h.y0)*t*(p/Math.min(e.value,h.value)),h.y0+=g,h.y1+=g}s+=f+x/2}}catch(M){n={error:M}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}))}))}function v(t){o.slice().reverse().forEach((function(e){e.forEach((function(e){var n,r,o,a,s=e.y0;try{for(var l=i.__values(e.targetLinks.sort(f)),u=l.next();!u.done;u=l.next()){var c=u.value,h=c.source,d=c.width,p=c.value;if(p>0){var g=0;try{for(var v=(o=void 0,i.__values(h.sourceLinks)),y=v.next();!y.done;y=v.next()){var m=y.value,_=m.target,b=m.width;if(_===e)break;g+=b+x/2}}catch(w){o={error:w}}finally{try{y&&!y.done&&(a=v.return)&&a.call(v)}finally{if(o)throw o.error}}g=(s-g-h.y0)*t*(p/Math.min(e.value,h.value)),h.y0+=g,h.y1+=g}s+=d+x/2}}catch(M){n={error:M}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}))}))}function y(){o.forEach((function(t){var n,r,i,o=a,s=t.length;for(void 0===e&&t.sort(p),i=0;i<s;++i)(r=o-(n=t[i]).y0)>0&&(n.y0+=r,n.y1+=r),o=n.y1+x;if((r=o-x-l)>0)for(o=n.y0-=r,n.y1-=r,i=s-2;i>=0;--i)(r=(n=t[i]).y1+x-o)>0&&(n.y0-=r,n.y1-=r),o=n.y0}))}}function A(t){t.nodes.forEach((function(t){t.sourceLinks.sort(d),t.targetLinks.sort(f)})),t.nodes.forEach((function(t){var e=t.y0,n=e;t.sourceLinks.forEach((function(t){t.y0=e+t.width/2,e+=t.width})),t.targetLinks.forEach((function(t){t.y1=n+t.width/2,n+=t.width}))}))}return C.update=function(t){return A(t),t},C.nodeId=function(t){return arguments.length?(b="function"==typeof t?t:h(t),C):b},C.nodeAlign=function(t){return arguments.length?(w="function"==typeof t?t:h(t),C):w},C.nodeSort=function(t){return arguments.length?(e=t,C):e},C.nodeWidth=function(t){return arguments.length?(c=+t,C):c},C.nodePadding=function(t){return arguments.length?(x=+t,C):x},C.nodes=function(t){return arguments.length?(M="function"==typeof t?t:h(t),C):M},C.links=function(t){return arguments.length?(S="function"==typeof t?t:h(t),C):S},C.size=function(t){return arguments.length?(o=a=0,s=+t[0],l=+t[1],C):[s-o,l-a]},C.extent=function(t){return arguments.length?(o=+t[0][0],s=+t[1][0],a=+t[0][1],l=+t[1][1],C):[[o,a],[s,l]]},C.iterations=function(t){return arguments.length?(j=+t,C):j},C}function b(t){return[t.source.x1,t.y0]}function w(t){return[t.target.x0,t.y1]}function M(){return o.linkHorizontal().source(b).target(w)}e.sankey=x,e.sankeyCenter=c,e.sankeyLeft=s,e.sankeyRight=l,e.sankeyJustify=u,e.sankeyLinkHorizontal=M,Object.defineProperty(e,"__esModule",{value:!0})}(n,r(/*! d3-array */"./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js"),r(/*! d3-collection */"./node_modules/_d3-collection@1.0.7@d3-collection/dist/d3-collection.js"),r(/*! d3-shape */"./node_modules/_d3-shape@1.3.7@d3-shape/dist/d3-shape.js"))},"./node_modules/_d3-shape@1.3.7@d3-shape/dist/d3-shape.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_d3-shape@1.3.7@d3-shape/dist/d3-shape.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e,n){!function(t,e){function n(t){return function(){return t}}var r=Math.abs,i=Math.atan2,o=Math.cos,a=Math.max,s=Math.min,l=Math.sin,u=Math.sqrt,c=1e-12,h=Math.PI,f=h/2,d=2*h;function p(t){return t>1?0:t<-1?h:Math.acos(t)}function g(t){return t>=1?f:t<=-1?-f:Math.asin(t)}function v(t){return t.innerRadius}function y(t){return t.outerRadius}function m(t){return t.startAngle}function _(t){return t.endAngle}function x(t){return t&&t.padAngle}function b(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,h=a-i,f=s-o,d=f*l-h*u;if(!(d*d<c))return[t+(d=(h*(e-o)-f*(t-i))/d)*l,e+d*u]}function w(t,e,n,r,i,o,s){var l=t-n,c=e-r,h=(s?o:-o)/u(l*l+c*c),f=h*c,d=-h*l,p=t+f,g=e+d,v=n+f,y=r+d,m=(p+v)/2,_=(g+y)/2,x=v-p,b=y-g,w=x*x+b*b,M=i-o,S=p*y-v*g,j=(b<0?-1:1)*u(a(0,M*M*w-S*S)),C=(S*b-x*j)/w,E=(-S*x-b*j)/w,P=(S*b+x*j)/w,T=(-S*x+b*j)/w,k=C-m,A=E-_,O=P-m,I=T-_;return k*k+A*A>O*O+I*I&&(C=P,E=T),{cx:C,cy:E,x01:-f,y01:-d,x11:C*(i/M-1),y11:E*(i/M-1)}}function M(){var t=v,a=y,M=n(0),S=null,j=m,C=_,E=x,P=null;function T(){var n,v,y=+t.apply(this,arguments),m=+a.apply(this,arguments),_=j.apply(this,arguments)-f,x=C.apply(this,arguments)-f,T=r(x-_),k=x>_;if(P||(P=n=e.path()),m<y&&(v=m,m=y,y=v),m>c)if(T>d-c)P.moveTo(m*o(_),m*l(_)),P.arc(0,0,m,_,x,!k),y>c&&(P.moveTo(y*o(x),y*l(x)),P.arc(0,0,y,x,_,k));else{var A,O,I=_,B=x,L=_,F=x,D=T,R=T,N=E.apply(this,arguments)/2,z=N>c&&(S?+S.apply(this,arguments):u(y*y+m*m)),H=s(r(m-y)/2,+M.apply(this,arguments)),G=H,Y=H;if(z>c){var V=g(z/y*l(N)),X=g(z/m*l(N));(D-=2*V)>c?(L+=V*=k?1:-1,F-=V):(D=0,L=F=(_+x)/2),(R-=2*X)>c?(I+=X*=k?1:-1,B-=X):(R=0,I=B=(_+x)/2)}var q=m*o(I),W=m*l(I),U=y*o(F),Z=y*l(F);if(H>c){var K,Q=m*o(B),$=m*l(B),J=y*o(L),tt=y*l(L);if(T<h&&(K=b(q,W,J,tt,Q,$,U,Z))){var et=q-K[0],nt=W-K[1],rt=Q-K[0],it=$-K[1],ot=1/l(p((et*rt+nt*it)/(u(et*et+nt*nt)*u(rt*rt+it*it)))/2),at=u(K[0]*K[0]+K[1]*K[1]);G=s(H,(y-at)/(ot-1)),Y=s(H,(m-at)/(ot+1))}}R>c?Y>c?(A=w(J,tt,q,W,m,Y,k),O=w(Q,$,U,Z,m,Y,k),P.moveTo(A.cx+A.x01,A.cy+A.y01),Y<H?P.arc(A.cx,A.cy,Y,i(A.y01,A.x01),i(O.y01,O.x01),!k):(P.arc(A.cx,A.cy,Y,i(A.y01,A.x01),i(A.y11,A.x11),!k),P.arc(0,0,m,i(A.cy+A.y11,A.cx+A.x11),i(O.cy+O.y11,O.cx+O.x11),!k),P.arc(O.cx,O.cy,Y,i(O.y11,O.x11),i(O.y01,O.x01),!k))):(P.moveTo(q,W),P.arc(0,0,m,I,B,!k)):P.moveTo(q,W),y>c&&D>c?G>c?(A=w(U,Z,Q,$,y,-G,k),O=w(q,W,J,tt,y,-G,k),P.lineTo(A.cx+A.x01,A.cy+A.y01),G<H?P.arc(A.cx,A.cy,G,i(A.y01,A.x01),i(O.y01,O.x01),!k):(P.arc(A.cx,A.cy,G,i(A.y01,A.x01),i(A.y11,A.x11),!k),P.arc(0,0,y,i(A.cy+A.y11,A.cx+A.x11),i(O.cy+O.y11,O.cx+O.x11),k),P.arc(O.cx,O.cy,G,i(O.y11,O.x11),i(O.y01,O.x01),!k))):P.arc(0,0,y,F,L,k):P.lineTo(U,Z)}else P.moveTo(0,0);if(P.closePath(),n)return P=null,n+""||null}return T.centroid=function(){var e=(+t.apply(this,arguments)+ +a.apply(this,arguments))/2,n=(+j.apply(this,arguments)+ +C.apply(this,arguments))/2-h/2;return[o(n)*e,l(n)*e]},T.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:n(+e),T):t},T.outerRadius=function(t){return arguments.length?(a="function"==typeof t?t:n(+t),T):a},T.cornerRadius=function(t){return arguments.length?(M="function"==typeof t?t:n(+t),T):M},T.padRadius=function(t){return arguments.length?(S=null==t?null:"function"==typeof t?t:n(+t),T):S},T.startAngle=function(t){return arguments.length?(j="function"==typeof t?t:n(+t),T):j},T.endAngle=function(t){return arguments.length?(C="function"==typeof t?t:n(+t),T):C},T.padAngle=function(t){return arguments.length?(E="function"==typeof t?t:n(+t),T):E},T.context=function(t){return arguments.length?(P=null==t?null:t,T):P},T}function S(t){this._context=t}function j(t){return new S(t)}function C(t){return t[0]}function E(t){return t[1]}function P(){var t=C,r=E,i=n(!0),o=null,a=j,s=null;function l(n){var l,u,c,h=n.length,f=!1;for(null==o&&(s=a(c=e.path())),l=0;l<=h;++l)!(l<h&&i(u=n[l],l,n))===f&&((f=!f)?s.lineStart():s.lineEnd()),f&&s.point(+t(u,l,n),+r(u,l,n));if(c)return s=null,c+""||null}return l.x=function(e){return arguments.length?(t="function"==typeof e?e:n(+e),l):t},l.y=function(t){return arguments.length?(r="function"==typeof t?t:n(+t),l):r},l.defined=function(t){return arguments.length?(i="function"==typeof t?t:n(!!t),l):i},l.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),l):o},l}function T(){var t=C,r=null,i=n(0),o=E,a=n(!0),s=null,l=j,u=null;function c(n){var c,h,f,d,p,g=n.length,v=!1,y=new Array(g),m=new Array(g);for(null==s&&(u=l(p=e.path())),c=0;c<=g;++c){if(!(c<g&&a(d=n[c],c,n))===v)if(v=!v)h=c,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),f=c-1;f>=h;--f)u.point(y[f],m[f]);u.lineEnd(),u.areaEnd()}v&&(y[c]=+t(d,c,n),m[c]=+i(d,c,n),u.point(r?+r(d,c,n):y[c],o?+o(d,c,n):m[c]))}if(p)return u=null,p+""||null}function h(){return P().defined(a).curve(l).context(s)}return c.x=function(e){return arguments.length?(t="function"==typeof e?e:n(+e),r=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:n(+e),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:n(+t),c):r},c.y=function(t){return arguments.length?(i="function"==typeof t?t:n(+t),o=null,c):i},c.y0=function(t){return arguments.length?(i="function"==typeof t?t:n(+t),c):i},c.y1=function(t){return arguments.length?(o=null==t?null:"function"==typeof t?t:n(+t),c):o},c.lineX0=c.lineY0=function(){return h().x(t).y(i)},c.lineY1=function(){return h().x(t).y(o)},c.lineX1=function(){return h().x(r).y(i)},c.defined=function(t){return arguments.length?(a="function"==typeof t?t:n(!!t),c):a},c.curve=function(t){return arguments.length?(l=t,null!=s&&(u=l(s)),c):l},c.context=function(t){return arguments.length?(null==t?s=u=null:u=l(s=t),c):s},c}function k(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function A(t){return t}function O(){var t=A,e=k,r=null,i=n(0),o=n(d),a=n(0);function s(n){var s,l,u,c,h,f=n.length,p=0,g=new Array(f),v=new Array(f),y=+i.apply(this,arguments),m=Math.min(d,Math.max(-d,o.apply(this,arguments)-y)),_=Math.min(Math.abs(m)/f,a.apply(this,arguments)),x=_*(m<0?-1:1);for(s=0;s<f;++s)(h=v[g[s]=s]=+t(n[s],s,n))>0&&(p+=h);for(null!=e?g.sort((function(t,n){return e(v[t],v[n])})):null!=r&&g.sort((function(t,e){return r(n[t],n[e])})),s=0,u=p?(m-f*x)/p:0;s<f;++s,y=c)l=g[s],c=y+((h=v[l])>0?h*u:0)+x,v[l]={data:n[l],index:s,value:h,startAngle:y,endAngle:c,padAngle:_};return v}return s.value=function(e){return arguments.length?(t="function"==typeof e?e:n(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,r=null,s):e},s.sort=function(t){return arguments.length?(r=t,e=null,s):r},s.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:n(+t),s):i},s.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:n(+t),s):o},s.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:n(+t),s):a},s}S.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var I=L(j);function B(t){this._curve=t}function L(t){function e(e){return new B(t(e))}return e._curve=t,e}function F(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(L(t)):e()._curve},t}function D(){return F(P().curve(I))}function R(){var t=T().curve(I),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return F(n())},delete t.lineX0,t.lineEndAngle=function(){return F(r())},delete t.lineX1,t.lineInnerRadius=function(){return F(i())},delete t.lineY0,t.lineOuterRadius=function(){return F(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(L(t)):e()._curve},t}function N(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}B.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var z=Array.prototype.slice;function H(t){return t.source}function G(t){return t.target}function Y(t){var r=H,i=G,o=C,a=E,s=null;function l(){var n,l=z.call(arguments),u=r.apply(this,l),c=i.apply(this,l);if(s||(s=n=e.path()),t(s,+o.apply(this,(l[0]=u,l)),+a.apply(this,l),+o.apply(this,(l[0]=c,l)),+a.apply(this,l)),n)return s=null,n+""||null}return l.source=function(t){return arguments.length?(r=t,l):r},l.target=function(t){return arguments.length?(i=t,l):i},l.x=function(t){return arguments.length?(o="function"==typeof t?t:n(+t),l):o},l.y=function(t){return arguments.length?(a="function"==typeof t?t:n(+t),l):a},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}function V(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function X(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function q(t,e,n,r,i){var o=N(e,n),a=N(e,n=(n+i)/2),s=N(r,n),l=N(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],s[0],s[1],l[0],l[1])}function W(){return Y(V)}function U(){return Y(X)}function Z(){var t=Y(q);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var K={draw:function(t,e){var n=Math.sqrt(e/h);t.moveTo(n,0),t.arc(0,0,n,0,d)}},Q={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},$=Math.sqrt(1/3),J=2*$,tt={draw:function(t,e){var n=Math.sqrt(e/J),r=n*$;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},et=.8908130915292852,nt=Math.sin(h/10)/Math.sin(7*h/10),rt=Math.sin(d/10)*nt,it=-Math.cos(d/10)*nt,ot={draw:function(t,e){var n=Math.sqrt(e*et),r=rt*n,i=it*n;t.moveTo(0,-n),t.lineTo(r,i);for(var o=1;o<5;++o){var a=d*o/5,s=Math.cos(a),l=Math.sin(a);t.lineTo(l*n,-s*n),t.lineTo(s*r-l*i,l*r+s*i)}t.closePath()}},at={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},st=Math.sqrt(3),lt={draw:function(t,e){var n=-Math.sqrt(e/(3*st));t.moveTo(0,2*n),t.lineTo(-st*n,-n),t.lineTo(st*n,-n),t.closePath()}},ut=-.5,ct=Math.sqrt(3)/2,ht=1/Math.sqrt(12),ft=3*(ht/2+1),dt={draw:function(t,e){var n=Math.sqrt(e/ft),r=n/2,i=n*ht,o=r,a=n*ht+n,s=-o,l=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(s,l),t.lineTo(ut*r-ct*i,ct*r+ut*i),t.lineTo(ut*o-ct*a,ct*o+ut*a),t.lineTo(ut*s-ct*l,ct*s+ut*l),t.lineTo(ut*r+ct*i,ut*i-ct*r),t.lineTo(ut*o+ct*a,ut*a-ct*o),t.lineTo(ut*s+ct*l,ut*l-ct*s),t.closePath()}},pt=[K,Q,tt,at,ot,lt,dt];function gt(){var t=n(K),r=n(64),i=null;function o(){var n;if(i||(i=n=e.path()),t.apply(this,arguments).draw(i,+r.apply(this,arguments)),n)return i=null,n+""||null}return o.type=function(e){return arguments.length?(t="function"==typeof e?e:n(e),o):t},o.size=function(t){return arguments.length?(r="function"==typeof t?t:n(+t),o):r},o.context=function(t){return arguments.length?(i=null==t?null:t,o):i},o}function vt(){}function yt(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function mt(t){this._context=t}function _t(t){return new mt(t)}function xt(t){this._context=t}function bt(t){return new xt(t)}function wt(t){this._context=t}function Mt(t){return new wt(t)}function St(t,e){this._basis=new mt(t),this._beta=e}mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:yt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:yt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},xt.prototype={areaStart:vt,areaEnd:vt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:yt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:yt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},St.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+r*a),this._beta*e[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var jt=function t(e){function n(t){return 1===e?new mt(t):new St(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function Ct(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Et(t,e){this._context=t,this._k=(1-e)/6}Et.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ct(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Ct(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Pt=function t(e){function n(t){return new Et(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Tt(t,e){this._context=t,this._k=(1-e)/6}Tt.prototype={areaStart:vt,areaEnd:vt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ct(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var kt=function t(e){function n(t){return new Tt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function At(t,e){this._context=t,this._k=(1-e)/6}At.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ct(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ot=function t(e){function n(t){return new At(t,e)}return n.tension=function(e){return t(+e)},n}(0);function It(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>c){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>c){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*u+t._x1*t._l23_2a-e*t._l12_2a)/h,a=(a*u+t._y1*t._l23_2a-n*t._l12_2a)/h}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function Bt(t,e){this._context=t,this._alpha=e}Bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:It(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Lt=function t(e){function n(t){return e?new Bt(t,e):new Et(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Ft(t,e){this._context=t,this._alpha=e}Ft.prototype={areaStart:vt,areaEnd:vt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:It(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Dt=function t(e){function n(t){return e?new Ft(t,e):new Tt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Rt(t,e){this._context=t,this._alpha=e}Rt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:It(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Nt=function t(e){function n(t){return e?new Rt(t,e):new At(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function zt(t){this._context=t}function Ht(t){return new zt(t)}function Gt(t){return t<0?-1:1}function Yt(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Gt(o)+Gt(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Vt(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Xt(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function qt(t){this._context=t}function Wt(t){this._context=new Ut(t)}function Ut(t){this._context=t}function Zt(t){return new qt(t)}function Kt(t){return new Wt(t)}function Qt(t){this._context=t}function $t(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function Jt(t){return new Qt(t)}function te(t,e){this._context=t,this._t=e}function ee(t){return new te(t,.5)}function ne(t){return new te(t,0)}function re(t){return new te(t,1)}function ie(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function oe(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function ae(t,e){return t[e]}function se(){var t=n([]),e=oe,r=ie,i=ae;function o(n){var o,a,s=t.apply(this,arguments),l=n.length,u=s.length,c=new Array(u);for(o=0;o<u;++o){for(var h,f=s[o],d=c[o]=new Array(l),p=0;p<l;++p)d[p]=h=[0,+i(n[p],f,p,n)],h.data=n[p];d.key=f}for(o=0,a=e(c);o<u;++o)c[a[o]].index=o;return r(c,a),c}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:n(z.call(e)),o):t},o.value=function(t){return arguments.length?(i="function"==typeof t?t:n(+t),o):i},o.order=function(t){return arguments.length?(e=null==t?oe:"function"==typeof t?t:n(z.call(t)),o):e},o.offset=function(t){return arguments.length?(r=null==t?ie:t,o):r},o}function le(t,e){if((r=t.length)>0){for(var n,r,i,o=0,a=t[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=t[n][o][1]||0;if(i)for(n=0;n<r;++n)t[n][o][1]/=i}ie(t,e)}}function ue(t,e){if((s=t.length)>0)for(var n,r,i,o,a,s,l=0,u=t[e[0]].length;l<u;++l)for(o=a=0,n=0;n<s;++n)(i=(r=t[e[n]][l])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function ce(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<n;++a)s+=t[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}ie(t,e)}}function he(t,e){if((i=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var s=0,l=0,u=0;s<i;++s){for(var c=t[e[s]],h=c[a][1]||0,f=(h-(c[a-1][1]||0))/2,d=0;d<s;++d){var p=t[e[d]];f+=(p[a][1]||0)-(p[a-1][1]||0)}l+=h,u+=f*h}n[a-1][1]+=n[a-1][0]=o,l&&(o-=u/l)}n[a-1][1]+=n[a-1][0]=o,ie(t,e)}}function fe(t){var e=t.map(de);return oe(t).sort((function(t,n){return e[t]-e[n]}))}function de(t){for(var e,n=-1,r=0,i=t.length,o=-1/0;++n<i;)(e=+t[n][1])>o&&(o=e,r=n);return r}function pe(t){var e=t.map(ge);return oe(t).sort((function(t,n){return e[t]-e[n]}))}function ge(t){for(var e,n=0,r=-1,i=t.length;++r<i;)(e=+t[r][1])&&(n+=e);return n}function ve(t){return pe(t).reverse()}function ye(t){var e,n,r=t.length,i=t.map(ge),o=fe(t),a=0,s=0,l=[],u=[];for(e=0;e<r;++e)n=o[e],a<s?(a+=i[n],l.push(n)):(s+=i[n],u.push(n));return u.reverse().concat(l)}function me(t){return oe(t).reverse()}zt.prototype={areaStart:vt,areaEnd:vt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},qt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Xt(this,this._t0,Vt(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Xt(this,Vt(this,n=Yt(this,t,e)),n);break;default:Xt(this,this._t0,n=Yt(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Wt.prototype=Object.create(qt.prototype)).point=function(t,e){qt.prototype.point.call(this,e,t)},Ut.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},Qt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=$t(t),i=$t(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},te.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},t.arc=M,t.area=T,t.areaRadial=R,t.curveBasis=_t,t.curveBasisClosed=bt,t.curveBasisOpen=Mt,t.curveBundle=jt,t.curveCardinal=Pt,t.curveCardinalClosed=kt,t.curveCardinalOpen=Ot,t.curveCatmullRom=Lt,t.curveCatmullRomClosed=Dt,t.curveCatmullRomOpen=Nt,t.curveLinear=j,t.curveLinearClosed=Ht,t.curveMonotoneX=Zt,t.curveMonotoneY=Kt,t.curveNatural=Jt,t.curveStep=ee,t.curveStepAfter=re,t.curveStepBefore=ne,t.line=P,t.lineRadial=D,t.linkHorizontal=W,t.linkRadial=Z,t.linkVertical=U,t.pie=O,t.pointRadial=N,t.radialArea=R,t.radialLine=D,t.stack=se,t.stackOffsetDiverging=ue,t.stackOffsetExpand=le,t.stackOffsetNone=ie,t.stackOffsetSilhouette=ce,t.stackOffsetWiggle=he,t.stackOrderAppearance=fe,t.stackOrderAscending=pe,t.stackOrderDescending=ve,t.stackOrderInsideOut=ye,t.stackOrderNone=oe,t.stackOrderReverse=me,t.symbol=gt,t.symbolCircle=K,t.symbolCross=Q,t.symbolDiamond=tt,t.symbolSquare=at,t.symbolStar=ot,t.symbolTriangle=lt,t.symbolWye=dt,t.symbols=pt,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(/*! d3-path */"./node_modules/_d3-path@1.0.9@d3-path/dist/d3-path.js"))},"./node_modules/_d3-voronoi@1.1.4@d3-voronoi/dist/d3-voronoi.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/_d3-voronoi@1.1.4@d3-voronoi/dist/d3-voronoi.js ***!
- \**********************************************************************/
- /*! no static exports found */function(t,e,n){!function(t){function e(t){return function(){return t}}function n(t){return t[0]}function r(t){return t[1]}function i(){this._=null}function o(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function a(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function s(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function l(t){for(;t.L;)t=t.L;return t}function u(t,e,n,r){var i=[null,null],o=D.push(i)-1;return i.left=t,i.right=e,n&&h(i,t,e,n),r&&h(i,e,t,r),L[t.index].halfedges.push(o),L[e.index].halfedges.push(o),i}function c(t,e,n){var r=[e,n];return r.left=t,r}function h(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function f(t,e,n,r,i){var o,a=t[0],s=t[1],l=a[0],u=a[1],c=0,h=1,f=s[0]-l,d=s[1]-u;if(o=e-l,f||!(o>0)){if(o/=f,f<0){if(o<c)return;o<h&&(h=o)}else if(f>0){if(o>h)return;o>c&&(c=o)}if(o=r-l,f||!(o<0)){if(o/=f,f<0){if(o>h)return;o>c&&(c=o)}else if(f>0){if(o<c)return;o<h&&(h=o)}if(o=n-u,d||!(o>0)){if(o/=d,d<0){if(o<c)return;o<h&&(h=o)}else if(d>0){if(o>h)return;o>c&&(c=o)}if(o=i-u,d||!(o<0)){if(o/=d,d<0){if(o>h)return;o>c&&(c=o)}else if(d>0){if(o<c)return;o<h&&(h=o)}return!(c>0||h<1)||(c>0&&(t[0]=[l+c*f,u+c*d]),h<1&&(t[1]=[l+h*f,u+h*d]),!0)}}}}}function d(t,e,n,r,i){var o=t[1];if(o)return!0;var a,s,l=t[0],u=t.left,c=t.right,h=u[0],f=u[1],d=c[0],p=c[1],g=(h+d)/2,v=(f+p)/2;if(p===f){if(g<e||g>=r)return;if(h>d){if(l){if(l[1]>=i)return}else l=[g,n];o=[g,i]}else{if(l){if(l[1]<n)return}else l=[g,i];o=[g,n]}}else if(s=v-(a=(h-d)/(p-f))*g,a<-1||a>1)if(h>d){if(l){if(l[1]>=i)return}else l=[(n-s)/a,n];o=[(i-s)/a,i]}else{if(l){if(l[1]<n)return}else l=[(i-s)/a,i];o=[(n-s)/a,n]}else if(f<p){if(l){if(l[0]>=r)return}else l=[e,a*e+s];o=[r,a*r+s]}else{if(l){if(l[0]<e)return}else l=[r,a*r+s];o=[e,a*e+s]}return t[0]=l,t[1]=o,!0}function p(t,e,n,r){for(var i,o=D.length;o--;)d(i=D[o],t,e,n,r)&&f(i,t,e,n,r)&&(Math.abs(i[0][0]-i[1][0])>R||Math.abs(i[0][1]-i[1][1])>R)||delete D[o]}function g(t){return L[t.index]={site:t,halfedges:[]}}function v(t,e){var n=t.site,r=e.left,i=e.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=e[1],i=e[0]):(r=e[0],i=e[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function y(t,e){return e[+(e.left!==t.site)]}function m(t,e){return e[+(e.left===t.site)]}function _(){for(var t,e,n,r,i=0,o=L.length;i<o;++i)if((t=L[i])&&(r=(e=t.halfedges).length)){var a=new Array(r),s=new Array(r);for(n=0;n<r;++n)a[n]=n,s[n]=v(t,D[e[n]]);for(a.sort((function(t,e){return s[e]-s[t]})),n=0;n<r;++n)s[n]=e[a[n]];for(n=0;n<r;++n)e[n]=s[n]}}function x(t,e,n,r){var i,o,a,s,l,u,h,f,d,p,g,v,_=L.length,x=!0;for(i=0;i<_;++i)if(o=L[i]){for(a=o.site,s=(l=o.halfedges).length;s--;)D[l[s]]||l.splice(s,1);for(s=0,u=l.length;s<u;)g=(p=m(o,D[l[s]]))[0],v=p[1],f=(h=y(o,D[l[++s%u]]))[0],d=h[1],(Math.abs(g-f)>R||Math.abs(v-d)>R)&&(l.splice(s,0,D.push(c(a,p,Math.abs(g-t)<R&&r-v>R?[t,Math.abs(f-t)<R?d:r]:Math.abs(v-r)<R&&n-g>R?[Math.abs(d-r)<R?f:n,r]:Math.abs(g-n)<R&&v-e>R?[n,Math.abs(f-n)<R?d:e]:Math.abs(v-e)<R&&g-t>R?[Math.abs(d-e)<R?f:t,e]:null))-1),++u);u&&(x=!1)}if(x){var b,w,M,S=1/0;for(i=0,x=null;i<_;++i)(o=L[i])&&(M=(b=(a=o.site)[0]-t)*b+(w=a[1]-e)*w)<S&&(S=M,x=o);if(x){var j=[t,e],C=[t,r],E=[n,r],P=[n,e];x.halfedges.push(D.push(c(a=x.site,j,C))-1,D.push(c(a,C,E))-1,D.push(c(a,E,P))-1,D.push(c(a,P,j))-1)}}for(i=0;i<_;++i)(o=L[i])&&(o.halfedges.length||delete L[i])}i.prototype={constructor:i,insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=l(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(a(this,n),n=(t=n).U),n.C=!1,r.C=!0,s(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(s(this,n),n=(t=n).U),n.C=!1,r.C=!0,a(this,r)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,o=t.L,u=t.R;if(n=o?u?l(u):o:u,i?i.L===t?i.L=n:i.R=n:this._=n,o&&u?(r=n.C,n.C=t.C,n.L=o,o.U=n,n!==u?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=u,u.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,a(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,s(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,a(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,s(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,a(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,s(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var b,w=[];function M(){o(this),this.x=this.y=this.arc=this.site=this.cy=null}function S(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,i=t.site,o=n.site;if(r!==o){var a=i[0],s=i[1],l=r[0]-a,u=r[1]-s,c=o[0]-a,h=o[1]-s,f=2*(l*h-u*c);if(!(f>=-N)){var d=l*l+u*u,p=c*c+h*h,g=(h*d-u*p)/f,v=(l*p-c*d)/f,y=w.pop()||new M;y.arc=t,y.site=i,y.x=g+a,y.y=(y.cy=v+s)+Math.sqrt(g*g+v*v),t.circle=y;for(var m=null,_=F._;_;)if(y.y<_.y||y.y===_.y&&y.x<=_.x){if(!_.L){m=_.P;break}_=_.L}else{if(!_.R){m=_;break}_=_.R}F.insert(m,y),m||(b=y)}}}}function j(t){var e=t.circle;e&&(e.P||(b=e.N),F.remove(e),w.push(e),o(e),t.circle=null)}var C=[];function E(){o(this),this.edge=this.site=this.circle=null}function P(t){var e=C.pop()||new E;return e.site=t,e}function T(t){j(t),B.remove(t),C.push(t),o(t)}function k(t){var e=t.circle,n=e.x,r=e.cy,i=[n,r],o=t.P,a=t.N,s=[t];T(t);for(var l=o;l.circle&&Math.abs(n-l.circle.x)<R&&Math.abs(r-l.circle.cy)<R;)o=l.P,s.unshift(l),T(l),l=o;s.unshift(l),j(l);for(var c=a;c.circle&&Math.abs(n-c.circle.x)<R&&Math.abs(r-c.circle.cy)<R;)a=c.N,s.push(c),T(c),c=a;s.push(c),j(c);var f,d=s.length;for(f=1;f<d;++f)c=s[f],l=s[f-1],h(c.edge,l.site,c.site,i);l=s[0],(c=s[d-1]).edge=u(l.site,c.site,null,i),S(l),S(c)}function A(t){for(var e,n,r,i,o=t[0],a=t[1],s=B._;s;)if((r=O(s,a)-o)>R)s=s.L;else{if(!((i=o-I(s,a))>R)){r>-R?(e=s.P,n=s):i>-R?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}g(t);var l=P(t);if(B.insert(e,l),e||n){if(e===n)return j(e),n=P(e.site),B.insert(l,n),l.edge=n.edge=u(e.site,l.site),S(e),void S(n);if(n){j(e),j(n);var c=e.site,f=c[0],d=c[1],p=t[0]-f,v=t[1]-d,y=n.site,m=y[0]-f,_=y[1]-d,x=2*(p*_-v*m),b=p*p+v*v,w=m*m+_*_,M=[(_*b-v*w)/x+f,(p*w-m*b)/x+d];h(n.edge,c,y,M),l.edge=u(c,t,null,M),n.edge=u(t,y,null,M),S(e),S(n)}else l.edge=u(e.site,l.site)}}function O(t,e){var n=t.site,r=n[0],i=n[1],o=i-e;if(!o)return r;var a=t.P;if(!a)return-1/0;var s=(n=a.site)[0],l=n[1],u=l-e;if(!u)return s;var c=s-r,h=1/o-1/u,f=c/u;return h?(-f+Math.sqrt(f*f-2*h*(c*c/(-2*u)-l+u/2+i-o/2)))/h+r:(r+s)/2}function I(t,e){var n=t.N;if(n)return O(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var B,L,F,D,R=1e-6,N=1e-12;function z(t,e,n){return(t[0]-n[0])*(e[1]-t[1])-(t[0]-e[0])*(n[1]-t[1])}function H(t,e){return e[1]-t[1]||e[0]-t[0]}function G(t,e){var n,r,o,a=t.sort(H).pop();for(D=[],L=new Array(t.length),B=new i,F=new i;;)if(o=b,a&&(!o||a[1]<o.y||a[1]===o.y&&a[0]<o.x))a[0]===n&&a[1]===r||(A(a),n=a[0],r=a[1]),a=t.pop();else{if(!o)break;k(o.arc)}if(_(),e){var s=+e[0][0],l=+e[0][1],u=+e[1][0],c=+e[1][1];p(s,l,u,c),x(s,l,u,c)}this.edges=D,this.cells=L,B=F=D=L=null}function Y(){var t=n,i=r,o=null;function a(e){return new G(e.map((function(n,r){var o=[Math.round(t(n,r,e)/R)*R,Math.round(i(n,r,e)/R)*R];return o.index=r,o.data=n,o})),o)}return a.polygons=function(t){return a(t).polygons()},a.links=function(t){return a(t).links()},a.triangles=function(t){return a(t).triangles()},a.x=function(n){return arguments.length?(t="function"==typeof n?n:e(+n),a):t},a.y=function(t){return arguments.length?(i="function"==typeof t?t:e(+t),a):i},a.extent=function(t){return arguments.length?(o=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],a):o&&[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},a.size=function(t){return arguments.length?(o=null==t?null:[[0,0],[+t[0],+t[1]]],a):o&&[o[1][0]-o[0][0],o[1][1]-o[0][1]]},a}G.prototype={constructor:G,polygons:function(){var t=this.edges;return this.cells.map((function(e){var n=e.halfedges.map((function(n){return y(e,t[n])}));return n.data=e.site.data,n}))},triangles:function(){var t=[],e=this.edges;return this.cells.forEach((function(n,r){if(o=(i=n.halfedges).length)for(var i,o,a,s=n.site,l=-1,u=e[i[o-1]],c=u.left===s?u.right:u.left;++l<o;)a=c,c=(u=e[i[l]]).left===s?u.right:u.left,a&&c&&r<a.index&&r<c.index&&z(s,a,c)<0&&t.push([s.data,a.data,c.data])})),t},links:function(){return this.edges.filter((function(t){return t.right})).map((function(t){return{source:t.left.data,target:t.right.data}}))},find:function(t,e,n){for(var r,i,o=this,a=o._found||0,s=o.cells.length;!(i=o.cells[a]);)if(++a>=s)return null;var l=t-i.site[0],u=e-i.site[1],c=l*l+u*u;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(n){var r=o.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var l=t-s[0],u=e-s[1],h=l*l+u*u;h<c&&(c=h,a=s.index)}}))}while(null!==a);return o._found=r,null==n||c<=n*n?i.site:null}},t.voronoi=Y,Object.defineProperty(t,"__esModule",{value:!0})}(e)},"./node_modules/_dagre@0.8.5@dagre/index.js":
- /*!**************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/index.js ***!
- \**************************************************/
- /*! no static exports found */function(t,e,n){t.exports={graphlib:n(/*! ./lib/graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js"),layout:n(/*! ./lib/layout */"./node_modules/_dagre@0.8.5@dagre/lib/layout.js"),debug:n(/*! ./lib/debug */"./node_modules/_dagre@0.8.5@dagre/lib/debug.js"),util:{time:n(/*! ./lib/util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js").time,notime:n(/*! ./lib/util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js").notime},version:n(/*! ./lib/version */"./node_modules/_dagre@0.8.5@dagre/lib/version.js")}},"./node_modules/_dagre@0.8.5@dagre/lib/acyclic.js":
- /*!********************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/acyclic.js ***!
- \********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n(/*! ./greedy-fas */"./node_modules/_dagre@0.8.5@dagre/lib/greedy-fas.js");t.exports={run:function(t){var e="greedy"===t.graph().acyclicer?i(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},i={};function o(a){r.has(i,a)||(i[a]=!0,n[a]=!0,r.forEach(t.outEdges(a),(function(t){r.has(n,t.w)?e.push(t):o(t.w)})),delete n[a])}return r.forEach(t.nodes(),o),e}(t);r.forEach(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))}))},undo:function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}}},"./node_modules/_dagre@0.8.5@dagre/lib/add-border-segments.js":
- /*!********************************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/add-border-segments.js ***!
- \********************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js");function o(t,e,n,r,o,a){var s={width:0,height:0,rank:a,borderType:e},l=o[e][a-1],u=i.addDummyNode(t,"border",s,n);o[e][a]=u,t.setParent(u,r),l&&t.setEdge(l,u,{weight:1})}t.exports=function(t){r.forEach(t.children(),(function e(n){var i=t.children(n),a=t.node(n);if(i.length&&r.forEach(i,e),r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var s=a.minRank,l=a.maxRank+1;s<l;++s)o(t,"borderLeft","_bl",n,a,s),o(t,"borderRight","_br",n,a,s)}}))}},"./node_modules/_dagre@0.8.5@dagre/lib/coordinate-system.js":
- /*!******************************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/coordinate-system.js ***!
- \******************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");function i(t){r.forEach(t.nodes(),(function(e){o(t.node(e))})),r.forEach(t.edges(),(function(e){o(t.edge(e))}))}function o(t){var e=t.width;t.width=t.height,t.height=e}function a(t){t.y=-t.y}function s(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||i(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){r.forEach(t.nodes(),(function(e){a(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,a),r.has(n,"y")&&a(n)}))}(t),"lr"!==e&&"rl"!==e||(function(t){r.forEach(t.nodes(),(function(e){s(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,s),r.has(n,"x")&&s(n)}))}(t),i(t))}}},"./node_modules/_dagre@0.8.5@dagre/lib/data/list.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/data/list.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e){function n(){var t={};t._next=t._prev=t,this._sentinel=t}function r(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function i(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=n,n.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return r(e),e},n.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&r(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},n.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,i)),n=n._prev;return"["+t.join(", ")+"]"}},"./node_modules/_dagre@0.8.5@dagre/lib/debug.js":
- /*!******************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/debug.js ***!
- \******************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js"),o=n(/*! ./graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph;t.exports={debugOrdering:function(t){var e=i.buildLayerMatrix(t),n=new o({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)})),r.forEach(t.edges(),(function(t){n.setEdge(t.v,t.w,{},t.name)})),r.forEach(e,(function(t,e){var i="layer"+e;n.setNode(i,{rank:"same"}),r.reduce(t,(function(t,e){return n.setEdge(t,e,{style:"invis"}),e}))})),n}}},"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e,n){var r;try{r=n(/*! graphlib */"./node_modules/_graphlib@2.1.8@graphlib/index.js")}catch(i){}r||(r=window.graphlib),t.exports=r},"./node_modules/_dagre@0.8.5@dagre/lib/greedy-fas.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/greedy-fas.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n(/*! ./graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph,o=n(/*! ./data/list */"./node_modules/_dagre@0.8.5@dagre/lib/data/list.js");t.exports=function(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new i,a=0,s=0;r.forEach(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=n.edge(t.v,t.w)||0,i=e(t),o=r+i;n.setEdge(t.v,t.w,o),s=Math.max(s,n.node(t.v).out+=i),a=Math.max(a,n.node(t.w).in+=i)}));var u=r.range(s+a+3).map((function(){return new o})),c=a+1;return r.forEach(n.nodes(),(function(t){l(u,c,n.node(t))})),{graph:n,buckets:u,zeroIdx:c}}(t,e||a),u=function(t,e,n){for(var r,i=[],o=e[e.length-1],a=e[0];t.nodeCount();){for(;r=a.dequeue();)s(t,e,n,r);for(;r=o.dequeue();)s(t,e,n,r);if(t.nodeCount())for(var l=e.length-2;l>0;--l)if(r=e[l].dequeue()){i=i.concat(s(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(u,(function(e){return t.outEdges(e.v,e.w)})),!0)};var a=r.constant(1);function s(t,e,n,i,o){var a=o?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),s=t.node(r.v);o&&a.push({v:r.v,w:r.w}),s.out-=i,l(e,n,s)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),o=r.w,a=t.node(o);a.in-=i,l(e,n,a)})),t.removeNode(i.v),a}function l(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},"./node_modules/_dagre@0.8.5@dagre/lib/layout.js":
- /*!*******************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/layout.js ***!
- \*******************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n(/*! ./acyclic */"./node_modules/_dagre@0.8.5@dagre/lib/acyclic.js"),o=n(/*! ./normalize */"./node_modules/_dagre@0.8.5@dagre/lib/normalize.js"),a=n(/*! ./rank */"./node_modules/_dagre@0.8.5@dagre/lib/rank/index.js"),s=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js").normalizeRanks,l=n(/*! ./parent-dummy-chains */"./node_modules/_dagre@0.8.5@dagre/lib/parent-dummy-chains.js"),u=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js").removeEmptyRanks,c=n(/*! ./nesting-graph */"./node_modules/_dagre@0.8.5@dagre/lib/nesting-graph.js"),h=n(/*! ./add-border-segments */"./node_modules/_dagre@0.8.5@dagre/lib/add-border-segments.js"),f=n(/*! ./coordinate-system */"./node_modules/_dagre@0.8.5@dagre/lib/coordinate-system.js"),d=n(/*! ./order */"./node_modules/_dagre@0.8.5@dagre/lib/order/index.js"),p=n(/*! ./position */"./node_modules/_dagre@0.8.5@dagre/lib/position/index.js"),g=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js"),v=n(/*! ./graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph;t.exports=function(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",(function(){var e=n(" buildLayoutGraph",(function(){return function(t){var e=new v({multigraph:!0,compound:!0}),n=C(t.graph());return e.setGraph(r.merge({},m,j(n,y),r.pick(n,_))),r.forEach(t.nodes(),(function(n){var i=C(t.node(n));e.setNode(n,r.defaults(j(i,x),b)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=C(t.edge(n));e.setEdge(n,r.merge({},M,j(i,w),r.pick(i,S)))})),e}(t)}));n(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),(function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){i.run(t)})),e(" nestingGraph.run",(function(){c.run(t)})),e(" rank",(function(){a(g.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e:e};g.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){u(t)})),e(" nestingGraph.cleanup",(function(){c.cleanup(t)})),e(" normalizeRanks",(function(){s(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;r.forEach(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){o.run(t)})),e(" parentDummyChains",(function(){l(t)})),e(" addBorderSegments",(function(){h(t)})),e(" order",(function(){d(t)})),e(" insertSelfEdges",(function(){!function(t){var e=g.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,(function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete o.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){f.adjust(t)})),e(" position",(function(){p(t)})),e(" positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){o.undo(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){f.undo(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,a=t.graph(),s=a.marginx||0,l=a.marginy||0;function u(t){var r=t.x,a=t.y,s=t.width,l=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,a-l/2),o=Math.max(o,a+l/2)}r.forEach(t.nodes(),(function(e){u(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&u(n)})),e-=s,i-=l,r.forEach(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=i})),r.forEach(t.edges(),(function(n){var o=t.edge(n);r.forEach(o.points,(function(t){t.x-=e,t.y-=i})),r.has(o,"x")&&(o.x-=e),r.has(o,"y")&&(o.y-=i)})),a.width=n-e+s,a.height=o-i+l}(t)})),e(" assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(a,r))}))}(t)})),e(" reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){i.undo(t)}))}(e,n)})),n(" updateInputGraph",(function(){!function(t,e){r.forEach(t.nodes(),(function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(t.edges(),(function(n){var i=t.edge(n),o=e.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var y=["nodesep","edgesep","ranksep","marginx","marginy"],m={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],x=["width","height"],b={width:0,height:0},w=["minlen","weight","width","height","labeloffset"],M={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},S=["labelpos"];function j(t,e){return r.mapValues(r.pick(t,e),Number)}function C(t){var e={};return r.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js":
- /*!*******************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/lodash.js ***!
- \*******************************************************/
- /*! no static exports found */function(t,e,n){var r;try{r={cloneDeep:n(/*! lodash/cloneDeep */"./node_modules/_lodash@4.17.20@lodash/cloneDeep.js"),constant:n(/*! lodash/constant */"./node_modules/_lodash@4.17.20@lodash/constant.js"),defaults:n(/*! lodash/defaults */"./node_modules/_lodash@4.17.20@lodash/defaults.js"),each:n(/*! lodash/each */"./node_modules/_lodash@4.17.20@lodash/each.js"),filter:n(/*! lodash/filter */"./node_modules/_lodash@4.17.20@lodash/filter.js"),find:n(/*! lodash/find */"./node_modules/_lodash@4.17.20@lodash/find.js"),flatten:n(/*! lodash/flatten */"./node_modules/_lodash@4.17.20@lodash/flatten.js"),forEach:n(/*! lodash/forEach */"./node_modules/_lodash@4.17.20@lodash/forEach.js"),forIn:n(/*! lodash/forIn */"./node_modules/_lodash@4.17.20@lodash/forIn.js"),has:n(/*! lodash/has */"./node_modules/_lodash@4.17.20@lodash/has.js"),isUndefined:n(/*! lodash/isUndefined */"./node_modules/_lodash@4.17.20@lodash/isUndefined.js"),last:n(/*! lodash/last */"./node_modules/_lodash@4.17.20@lodash/last.js"),map:n(/*! lodash/map */"./node_modules/_lodash@4.17.20@lodash/map.js"),mapValues:n(/*! lodash/mapValues */"./node_modules/_lodash@4.17.20@lodash/mapValues.js"),max:n(/*! lodash/max */"./node_modules/_lodash@4.17.20@lodash/max.js"),merge:n(/*! lodash/merge */"./node_modules/_lodash@4.17.20@lodash/merge.js"),min:n(/*! lodash/min */"./node_modules/_lodash@4.17.20@lodash/min.js"),minBy:n(/*! lodash/minBy */"./node_modules/_lodash@4.17.20@lodash/minBy.js"),now:n(/*! lodash/now */"./node_modules/_lodash@4.17.20@lodash/now.js"),pick:n(/*! lodash/pick */"./node_modules/_lodash@4.17.20@lodash/pick.js"),range:n(/*! lodash/range */"./node_modules/_lodash@4.17.20@lodash/range.js"),reduce:n(/*! lodash/reduce */"./node_modules/_lodash@4.17.20@lodash/reduce.js"),sortBy:n(/*! lodash/sortBy */"./node_modules/_lodash@4.17.20@lodash/sortBy.js"),uniqueId:n(/*! lodash/uniqueId */"./node_modules/_lodash@4.17.20@lodash/uniqueId.js"),values:n(/*! lodash/values */"./node_modules/_lodash@4.17.20@lodash/values.js"),zipObject:n(/*! lodash/zipObject */"./node_modules/_lodash@4.17.20@lodash/zipObject.js")}}catch(i){}r||(r=window._),t.exports=r},"./node_modules/_dagre@0.8.5@dagre/lib/nesting-graph.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/nesting-graph.js ***!
- \**************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js");function o(t,e,n,a,s,l,u){var c=t.children(u);if(c.length){var h=i.addBorderNode(t,"_bt"),f=i.addBorderNode(t,"_bb"),d=t.node(u);t.setParent(h,u),d.borderTop=h,t.setParent(f,u),d.borderBottom=f,r.forEach(c,(function(r){o(t,e,n,a,s,l,r);var i=t.node(r),c=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,g=c!==d?1:s-l[u]+1;t.setEdge(h,c,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,f,{weight:p,minlen:g,nestingEdge:!0})})),t.parent(u)||t.setEdge(e,h,{weight:0,minlen:s+l[u]})}else u!==e&&t.setEdge(e,u,{weight:0,minlen:n})}t.exports={run:function(t){var e=i.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};function n(i,o){var a=t.children(i);a&&a.length&&r.forEach(a,(function(t){n(t,o+1)})),e[i]=o}return r.forEach(t.children(),(function(t){n(t,1)})),e}(t),a=r.max(r.values(n))-1,s=2*a+1;t.graph().nestingRoot=e,r.forEach(t.edges(),(function(e){t.edge(e).minlen*=s}));var l=function(t){return r.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}(t)+1;r.forEach(t.children(),(function(r){o(t,e,s,l,a,n,r)})),t.graph().nodeRankFactor=s},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}}},"./node_modules/_dagre@0.8.5@dagre/lib/normalize.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/normalize.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js");t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){!function(t,e){var n,r,o,a=e.v,s=t.node(a).rank,l=e.w,u=t.node(l).rank,c=e.name,h=t.edge(e),f=h.labelRank;if(u!==s+1){for(t.removeEdge(e),o=0,++s;s<u;++o,++s)h.points=[],r={width:0,height:0,edgeLabel:h,edgeObj:e,rank:s},n=i.addDummyNode(t,"edge",r,"_d"),s===f&&(r.width=h.width,r.height=h.height,r.dummy="edge-label",r.labelpos=h.labelpos),t.setEdge(a,n,{weight:h.weight},c),0===o&&t.graph().dummyChains.push(n),a=n;t.setEdge(a,l,{weight:h.weight},c)}}(t,e)}))},undo:function(t){r.forEach(t.graph().dummyChains,(function(e){var n,r=t.node(e),i=r.edgeLabel;for(t.setEdge(r.edgeObj,i);r.dummy;)n=t.successors(e)[0],t.removeNode(e),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),e=n,r=t.node(e)}))}}},"./node_modules/_dagre@0.8.5@dagre/lib/order/add-subgraph-constraints.js":
- /*!*******************************************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/order/add-subgraph-constraints.js ***!
- \*******************************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");t.exports=function(t,e,n){var i,o={};r.forEach(n,(function(n){for(var r,a,s=t.parent(n);s;){if((r=t.parent(s))?(a=o[r],o[r]=s):(a=i,i=s),a&&a!==s)return void e.setEdge(a,s);s=r}}))}},"./node_modules/_dagre@0.8.5@dagre/lib/order/barycenter.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/order/barycenter.js ***!
- \*****************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");t.exports=function(t,e){return r.map(e,(function(e){var n=t.inEdges(e);if(n.length){var i=r.reduce(n,(function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}}),{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}}))}},"./node_modules/_dagre@0.8.5@dagre/lib/order/build-layer-graph.js":
- /*!************************************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/order/build-layer-graph.js ***!
- \************************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n(/*! ../graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph;t.exports=function(t,e,n){var o=function(t){for(var e;t.hasNode(e=r.uniqueId("_root")););return e}(t),a=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(i){var s=t.node(i),l=t.parent(i);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(a.setNode(i),a.setParent(i,l||o),r.forEach(t[n](i),(function(e){var n=e.v===i?e.w:e.v,o=a.edge(n,i),s=r.isUndefined(o)?0:o.weight;a.setEdge(n,i,{weight:t.edge(e).weight+s})})),r.has(s,"minRank")&&a.setNode(i,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))})),a}},"./node_modules/_dagre@0.8.5@dagre/lib/order/cross-count.js":
- /*!******************************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/order/cross-count.js ***!
- \******************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");function i(t,e,n){for(var i=r.zipObject(n,r.map(n,(function(t,e){return e}))),o=r.flatten(r.map(e,(function(e){return r.sortBy(r.map(t.outEdges(e),(function(e){return{pos:i[e.w],weight:t.edge(e).weight}})),"pos")})),!0),a=1;a<n.length;)a<<=1;var s=2*a-1;a-=1;var l=r.map(new Array(s),(function(){return 0})),u=0;return r.forEach(o.forEach((function(t){var e=t.pos+a;l[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=l[e+1]),l[e=e-1>>1]+=t.weight;u+=t.weight*n}))),u}t.exports=function(t,e){for(var n=0,r=1;r<e.length;++r)n+=i(t,e[r-1],e[r]);return n}},"./node_modules/_dagre@0.8.5@dagre/lib/order/index.js":
- /*!************************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/order/index.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n(/*! ./init-order */"./node_modules/_dagre@0.8.5@dagre/lib/order/init-order.js"),o=n(/*! ./cross-count */"./node_modules/_dagre@0.8.5@dagre/lib/order/cross-count.js"),a=n(/*! ./sort-subgraph */"./node_modules/_dagre@0.8.5@dagre/lib/order/sort-subgraph.js"),s=n(/*! ./build-layer-graph */"./node_modules/_dagre@0.8.5@dagre/lib/order/build-layer-graph.js"),l=n(/*! ./add-subgraph-constraints */"./node_modules/_dagre@0.8.5@dagre/lib/order/add-subgraph-constraints.js"),u=n(/*! ../graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph,c=n(/*! ../util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js");function h(t,e,n){return r.map(e,(function(e){return s(t,e,n)}))}function f(t,e){var n=new u;r.forEach(t,(function(t){var i=t.graph().root,o=a(t,i,n,e);r.forEach(o.vs,(function(e,n){t.node(e).order=n})),l(t,n,o.vs)}))}function d(t,e){r.forEach(e,(function(e){r.forEach(e,(function(e,n){t.node(e).order=n}))}))}t.exports=function(t){var e=c.maxRank(t),n=h(t,r.range(1,e+1),"inEdges"),a=h(t,r.range(e-1,-1,-1),"outEdges"),s=i(t);d(t,s);for(var l,u=Number.POSITIVE_INFINITY,p=0,g=0;g<4;++p,++g){f(p%2?n:a,p%4>=2),s=c.buildLayerMatrix(t);var v=o(t,s);v<u&&(g=0,l=r.cloneDeep(s),u=v)}d(t,l)}},"./node_modules/_dagre@0.8.5@dagre/lib/order/init-order.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/order/init-order.js ***!
- \*****************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");t.exports=function(t){var e={},n=r.filter(t.nodes(),(function(e){return!t.children(e).length})),i=r.max(r.map(n,(function(e){return t.node(e).rank}))),o=r.map(r.range(i+1),(function(){return[]})),a=r.sortBy(n,(function(e){return t.node(e).rank}));return r.forEach(a,(function n(i){if(!r.has(e,i)){e[i]=!0;var a=t.node(i);o[a.rank].push(i),r.forEach(t.successors(i),n)}})),o}},"./node_modules/_dagre@0.8.5@dagre/lib/order/resolve-conflicts.js":
- /*!************************************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/order/resolve-conflicts.js ***!
- \************************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");t.exports=function(t,e){var n={};return r.forEach(t,(function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),r.forEach(e.edges(),(function(t){var e=n[t.v],i=n[t.w];r.isUndefined(e)||r.isUndefined(i)||(i.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){var n,i,o,a;e.merged||(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&(i=e,o=0,a=0,(n=t).weight&&(o+=n.barycenter*n.weight,a+=n.weight),i.weight&&(o+=i.barycenter*i.weight,a+=i.weight),n.vs=i.vs.concat(n.vs),n.barycenter=o/a,n.weight=a,n.i=Math.min(i.i,n.i),i.merged=!0)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var o=t.pop();e.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(e,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(t){return!t.indegree})))}},"./node_modules/_dagre@0.8.5@dagre/lib/order/sort-subgraph.js":
- /*!********************************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/order/sort-subgraph.js ***!
- \********************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n(/*! ./barycenter */"./node_modules/_dagre@0.8.5@dagre/lib/order/barycenter.js"),o=n(/*! ./resolve-conflicts */"./node_modules/_dagre@0.8.5@dagre/lib/order/resolve-conflicts.js"),a=n(/*! ./sort */"./node_modules/_dagre@0.8.5@dagre/lib/order/sort.js");t.exports=function t(e,n,s,l){var u=e.children(n),c=e.node(n),h=c?c.borderLeft:void 0,f=c?c.borderRight:void 0,d={};h&&(u=r.filter(u,(function(t){return t!==h&&t!==f})));var p=i(e,u);r.forEach(p,(function(n){if(e.children(n.v).length){var i=t(e,n.v,s,l);d[n.v]=i,r.has(i,"barycenter")&&(o=n,a=i,r.isUndefined(o.barycenter)?(o.barycenter=a.barycenter,o.weight=a.weight):(o.barycenter=(o.barycenter*o.weight+a.barycenter*a.weight)/(o.weight+a.weight),o.weight+=a.weight))}var o,a}));var g=o(p,s);!function(t,e){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(g,d);var v=a(g,l);if(h&&(v.vs=r.flatten([h,v.vs,f],!0),e.predecessors(h).length)){var y=e.node(e.predecessors(h)[0]),m=e.node(e.predecessors(f)[0]);r.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+y.order+m.order)/(v.weight+2),v.weight+=2}return v}},"./node_modules/_dagre@0.8.5@dagre/lib/order/sort.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/order/sort.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n(/*! ../util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js");function o(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n,a=i.partition(t,(function(t){return r.has(t,"barycenter")})),s=a.lhs,l=r.sortBy(a.rhs,(function(t){return-t.i})),u=[],c=0,h=0,f=0;s.sort((n=!!e,function(t,e){return t.barycenter<e.barycenter?-1:t.barycenter>e.barycenter?1:n?e.i-t.i:t.i-e.i})),f=o(u,l,f),r.forEach(s,(function(t){f+=t.vs.length,u.push(t.vs),c+=t.barycenter*t.weight,h+=t.weight,f=o(u,l,f)}));var d={vs:r.flatten(u,!0)};return h&&(d.barycenter=c/h,d.weight=h),d}},"./node_modules/_dagre@0.8.5@dagre/lib/parent-dummy-chains.js":
- /*!********************************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/parent-dummy-chains.js ***!
- \********************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");t.exports=function(t){var e=function(t){var e={},n=0;function i(o){var a=n;r.forEach(t.children(o),i),e[o]={low:a,lim:n++}}return r.forEach(t.children(),i),e}(t);r.forEach(t.graph().dummyChains,(function(n){for(var r=t.node(n),i=r.edgeObj,o=function(t,e,n,r){var i,o,a=[],s=[],l=Math.min(e[n].low,e[r].low),u=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>l||u>e[i].lim));for(o=i,i=r;(i=t.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o}}(t,e,i.v,i.w),a=o.path,s=o.lca,l=0,u=a[l],c=!0;n!==i.w;){if(r=t.node(n),c){for(;(u=a[l])!==s&&t.node(u).maxRank<r.rank;)l++;u===s&&(c=!1)}if(!c){for(;l<a.length-1&&t.node(u=a[l+1]).minRank<=r.rank;)l++;u=a[l]}t.setParent(n,u),n=t.successors(n)[0]}}))}},"./node_modules/_dagre@0.8.5@dagre/lib/position/bk.js":
- /*!************************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/position/bk.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n(/*! ../graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph,o=n(/*! ../util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js");function a(t,e){var n={};return r.reduce(e,(function(e,i){var o=0,a=0,s=e.length,u=r.last(i);return r.forEach(i,(function(e,c){var h=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),f=h?t.node(h).order:s;(h||e===u)&&(r.forEach(i.slice(a,c+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),a=i.order;!(a<o||f<a)||i.dummy&&t.node(e).dummy||l(n,r,e)}))})),a=c+1,o=f)})),i})),n}function s(t,e){var n={};function i(e,i,o,a,s){var u;r.forEach(r.range(i,o),(function(i){u=e[i],t.node(u).dummy&&r.forEach(t.predecessors(u),(function(e){var r=t.node(e);r.dummy&&(r.order<a||r.order>s)&&l(n,e,u)}))}))}return r.reduce(e,(function(e,n){var o,a=-1,s=0;return r.forEach(n,(function(r,l){if("border"===t.node(r).dummy){var u=t.predecessors(r);u.length&&(o=t.node(u[0]).order,i(n,s,l,a,o),s=l,a=o)}i(n,s,n.length,o,e.length)})),n})),n}function l(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function u(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function c(t,e,n,i){var o={},a={},s={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){o[t]=t,a[t]=t,s[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var l=i(t);if(l.length){l=r.sortBy(l,(function(t){return s[t]}));for(var c=(l.length-1)/2,h=Math.floor(c),f=Math.ceil(c);h<=f;++h){var d=l[h];a[t]===t&&e<s[d]&&!u(n,t,d)&&(a[d]=t,a[t]=o[t]=o[d],e=s[d])}}}))})),{root:o,align:a}}function h(t,e,n,o,a){var s={},l=function(t,e,n,o){var a=new i,s=t.graph(),l=function(t,e,n){return function(i,o,a){var s,l=i.node(o),u=i.node(a),c=0;if(c+=l.width/2,r.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":s=-l.width/2;break;case"r":s=l.width/2}if(s&&(c+=n?s:-s),s=0,c+=(l.dummy?e:t)/2,c+=(u.dummy?e:t)/2,c+=u.width/2,r.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":s=u.width/2;break;case"r":s=-u.width/2}return s&&(c+=n?s:-s),s=0,c}}(s.nodesep,s.edgesep,o);return r.forEach(e,(function(e){var i;r.forEach(e,(function(e){var r=n[e];if(a.setNode(r),i){var o=n[i],s=a.edge(o,r);a.setEdge(o,r,Math.max(l(t,e,i),s||0))}i=e}))})),a}(t,e,n,a),u=a?"borderLeft":"borderRight";function c(t,e){for(var n=l.nodes(),r=n.pop(),i={};r;)i[r]?t(r):(i[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop()}return c((function(t){s[t]=l.inEdges(t).reduce((function(t,e){return Math.max(t,s[e.v]+l.edge(e))}),0)}),l.predecessors.bind(l)),c((function(e){var n=l.outEdges(e).reduce((function(t,e){return Math.min(t,s[e.w]-l.edge(e))}),Number.POSITIVE_INFINITY),r=t.node(e);n!==Number.POSITIVE_INFINITY&&r.borderType!==u&&(s[e]=Math.max(s[e],n))}),l.successors.bind(l)),r.forEach(o,(function(t){s[t]=s[n[t]]})),s}function f(t,e){return r.minBy(r.values(e),(function(e){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return r.forIn(e,(function(e,r){var o=function(t,e){return t.node(e).width}(t,r)/2;n=Math.max(e+o,n),i=Math.min(e-o,i)})),n-i}))}function d(t,e){var n=r.values(e),i=r.min(n),o=r.max(n);r.forEach(["u","d"],(function(n){r.forEach(["l","r"],(function(a){var s,l=n+a,u=t[l];if(u!==e){var c=r.values(u);(s="l"===a?i-r.min(c):o-r.max(c))&&(t[l]=r.mapValues(u,(function(t){return t+s})))}}))}))}function p(t,e){return r.mapValues(t.ul,(function(n,i){if(e)return t[e.toLowerCase()][i];var o=r.sortBy(r.map(t,i));return(o[1]+o[2])/2}))}t.exports={positionX:function(t){var e,n=o.buildLayerMatrix(t),i=r.merge(a(t,n),s(t,n)),l={};r.forEach(["u","d"],(function(o){e="u"===o?n:r.values(n).reverse(),r.forEach(["l","r"],(function(n){"r"===n&&(e=r.map(e,(function(t){return r.values(t).reverse()})));var a=("u"===o?t.predecessors:t.successors).bind(t),s=c(0,e,i,a),u=h(t,e,s.root,s.align,"r"===n);"r"===n&&(u=r.mapValues(u,(function(t){return-t}))),l[o+n]=u}))}));var u=f(t,l);return d(l,u),p(l,t.graph().align)},findType1Conflicts:a,findType2Conflicts:s,addConflict:l,hasConflict:u,verticalAlignment:c,horizontalCompaction:h,alignCoordinates:d,findSmallestWidthAlignment:f,balance:p}},"./node_modules/_dagre@0.8.5@dagre/lib/position/index.js":
- /*!***************************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/position/index.js ***!
- \***************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n(/*! ../util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js"),o=n(/*! ./bk */"./node_modules/_dagre@0.8.5@dagre/lib/position/bk.js").positionX;t.exports=function(t){(function(t){var e=i.buildLayerMatrix(t),n=t.graph().ranksep,o=0;r.forEach(e,(function(e){var i=r.max(r.map(e,(function(e){return t.node(e).height})));r.forEach(e,(function(e){t.node(e).y=o+i/2})),o+=i+n}))})(t=i.asNonCompoundGraph(t)),r.forEach(o(t),(function(e,n){t.node(n).x=e}))}},"./node_modules/_dagre@0.8.5@dagre/lib/rank/feasible-tree.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/rank/feasible-tree.js ***!
- \*******************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n(/*! ../graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph,o=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/rank/util.js").slack;function a(t,e){return r.forEach(t.nodes(),(function n(i){r.forEach(e.nodeEdges(i),(function(r){var a=r.v,s=i===a?r.w:a;t.hasNode(s)||o(e,r)||(t.setNode(s,{}),t.setEdge(i,s,{}),n(s))}))})),t.nodeCount()}function s(t,e){return r.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return o(e,n)}))}function l(t,e,n){r.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}t.exports=function(t){var e,n,r=new i({directed:!1}),u=t.nodes()[0],c=t.nodeCount();for(r.setNode(u,{});a(r,t)<c;)e=s(r,t),n=r.hasNode(e.v)?o(t,e):-o(t,e),l(r,t,n);return r}},"./node_modules/_dagre@0.8.5@dagre/lib/rank/index.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/rank/index.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/rank/util.js").longestPath,i=n(/*! ./feasible-tree */"./node_modules/_dagre@0.8.5@dagre/lib/rank/feasible-tree.js"),o=n(/*! ./network-simplex */"./node_modules/_dagre@0.8.5@dagre/lib/rank/network-simplex.js");t.exports=function(t){switch(t.graph().ranker){case"network-simplex":default:s(t);break;case"tight-tree":!function(t){r(t),i(t)}(t);break;case"longest-path":a(t)}};var a=r;function s(t){o(t)}},"./node_modules/_dagre@0.8.5@dagre/lib/rank/network-simplex.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/rank/network-simplex.js ***!
- \*********************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n(/*! ./feasible-tree */"./node_modules/_dagre@0.8.5@dagre/lib/rank/feasible-tree.js"),o=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/rank/util.js").slack,a=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/rank/util.js").longestPath,s=n(/*! ../graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").alg.preorder,l=n(/*! ../graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").alg.postorder,u=n(/*! ../util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js").simplify;function c(t){t=u(t),a(t);var e,n=i(t);for(d(n),h(n,t);e=g(n);)y(n,t,e,v(n,t,e))}function h(t,e){var n=l(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){!function(t,e,n){var r=t.node(n),i=r.parent;t.edge(n,i).cutvalue=f(t,e,n)}(t,e,n)}))}function f(t,e,n){var i=t.node(n).parent,o=!0,a=e.edge(n,i),s=0;return a||(o=!1,a=e.edge(i,n)),s=a.weight,r.forEach(e.nodeEdges(n),(function(r){var a,l,u=r.v===n,c=u?r.w:r.v;if(c!==i){var h=u===o,f=e.edge(r).weight;if(s+=h?f:-f,a=n,l=c,t.hasEdge(a,l)){var d=t.edge(n,c).cutvalue;s+=h?-d:d}}})),s}function d(t,e){arguments.length<2&&(e=t.nodes()[0]),p(t,{},1,e)}function p(t,e,n,i,o){var a=n,s=t.node(i);return e[i]=!0,r.forEach(t.neighbors(i),(function(o){r.has(e,o)||(n=p(t,e,n,o,i))})),s.low=a,s.lim=n++,o?s.parent=o:delete s.parent,n}function g(t){return r.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function v(t,e,n){var i=n.v,a=n.w;e.hasEdge(i,a)||(i=n.w,a=n.v);var s=t.node(i),l=t.node(a),u=s,c=!1;s.lim>l.lim&&(u=l,c=!0);var h=r.filter(e.edges(),(function(e){return c===m(0,t.node(e.v),u)&&c!==m(0,t.node(e.w),u)}));return r.minBy(h,(function(t){return o(e,t)}))}function y(t,e,n,i){var o=n.v,a=n.w;t.removeEdge(o,a),t.setEdge(i.v,i.w,{}),d(t),h(t,e),function(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),i=s(t,n);i=i.slice(1),r.forEach(i,(function(n){var r=t.node(n).parent,i=e.edge(n,r),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)}))}(t,e)}function m(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=c,c.initLowLimValues=d,c.initCutValues=h,c.calcCutValue=f,c.leaveEdge=g,c.enterEdge=v,c.exchangeEdges=y},"./node_modules/_dagre@0.8.5@dagre/lib/rank/util.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/rank/util.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),(function n(i){var o=t.node(i);if(r.has(e,i))return o.rank;e[i]=!0;var a=r.min(r.map(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),o.rank=a}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},"./node_modules/_dagre@0.8.5@dagre/lib/util.js":
- /*!*****************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/util.js ***!
- \*****************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n(/*! ./graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph;function o(t,e,n,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return n.dummy=e,t.setNode(o,n),o}function a(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}t.exports={addDummyNode:o,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e},successorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,o=t.y,a=e.x-i,s=e.y-o,l=t.width/2,u=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*l>Math.abs(a)*u?(s<0&&(u=-u),n=u*a/s,r=u):(a<0&&(l=-l),n=l,r=l*s/a),{x:i+n,y:o+r}},buildLayerMatrix:function(t){var e=r.map(r.range(a(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),o=i.rank;r.isUndefined(o)||(e[o][i.order]=n)})),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)}))},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,o=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%o!=0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))},addBorderNode:function(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),o(t,"border",i,e)},maxRank:a,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},"./node_modules/_dagre@0.8.5@dagre/lib/version.js":
- /*!********************************************************!*\
- !*** ./node_modules/_dagre@0.8.5@dagre/lib/version.js ***!
- \********************************************************/
- /*! no static exports found */function(t,e){t.exports="0.8.5"},"./node_modules/_graphlib@2.1.8@graphlib/index.js":
- /*!********************************************************!*\
- !*** ./node_modules/_graphlib@2.1.8@graphlib/index.js ***!
- \********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./lib */"./node_modules/_graphlib@2.1.8@graphlib/lib/index.js");t.exports={Graph:r.Graph,json:n(/*! ./lib/json */"./node_modules/_graphlib@2.1.8@graphlib/lib/json.js"),alg:n(/*! ./lib/alg */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/index.js"),version:r.version}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/components.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/components.js ***!
- \*********************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");t.exports=function(t){var e,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),(function(t){e=[],o(t),e.length&&i.push(e)})),i}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dfs.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dfs.js ***!
- \**************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");function i(t,e,n,o,a,s){r.has(o,e)||(o[e]=!0,n||s.push(e),r.each(a(e),(function(e){i(t,e,n,o,a,s)})),n&&s.push(e))}t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),a=[],s={};return r.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);i(t,e,"post"===n,s,o,a)})),a}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra-all.js":
- /*!***********************************************************************!*\
- !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra-all.js ***!
- \***********************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./dijkstra */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra.js"),i=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");t.exports=function(t,e,n){return i.transform(t.nodes(),(function(i,o){i[o]=r(t,o,e,n)}),{})}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra.js ***!
- \*******************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js"),i=n(/*! ../data/priority-queue */"./node_modules/_graphlib@2.1.8@graphlib/lib/data/priority-queue.js");t.exports=function(t,e,n,r){return function(t,e,n,r){var o,a,s={},l=new i,u=function(t){var e=t.v!==o?t.v:t.w,r=s[e],i=n(t),u=a.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);u<r.distance&&(r.distance=u,r.predecessor=o,l.decrease(e,u))};for(t.nodes().forEach((function(t){var n=t===e?0:Number.POSITIVE_INFINITY;s[t]={distance:n},l.add(t,n)}));l.size()>0&&(o=l.removeMin(),(a=s[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(u);return s}(t,String(e),n||o,r||function(e){return t.outEdges(e)})};var o=r.constant(1)},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/find-cycles.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/find-cycles.js ***!
- \**********************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js"),i=n(/*! ./tarjan */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/tarjan.js");t.exports=function(t){return r.filter(i(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/floyd-warshall.js":
- /*!*************************************************************************!*\
- !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/floyd-warshall.js ***!
- \*************************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach((function(t){r[t]={},r[t][t]={distance:0},i.forEach((function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})})),n(t).forEach((function(n){var i=n.v===t?n.w:n.v,o=e(n);r[t][i]={distance:o,predecessor:t}}))})),i.forEach((function(t){var e=r[t];i.forEach((function(n){var o=r[n];i.forEach((function(n){var r=o[t],i=e[n],a=o[n],s=r.distance+i.distance;s<a.distance&&(a.distance=s,a.predecessor=i.predecessor)}))}))})),r}(t,e||i,n||function(e){return t.outEdges(e)})};var i=r.constant(1)},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/index.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/index.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e,n){t.exports={components:n(/*! ./components */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/components.js"),dijkstra:n(/*! ./dijkstra */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra.js"),dijkstraAll:n(/*! ./dijkstra-all */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra-all.js"),findCycles:n(/*! ./find-cycles */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/find-cycles.js"),floydWarshall:n(/*! ./floyd-warshall */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/floyd-warshall.js"),isAcyclic:n(/*! ./is-acyclic */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/is-acyclic.js"),postorder:n(/*! ./postorder */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/postorder.js"),preorder:n(/*! ./preorder */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/preorder.js"),prim:n(/*! ./prim */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/prim.js"),tarjan:n(/*! ./tarjan */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/tarjan.js"),topsort:n(/*! ./topsort */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/topsort.js")}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/is-acyclic.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/is-acyclic.js ***!
- \*********************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./topsort */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/topsort.js");t.exports=function(t){try{r(t)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/postorder.js":
- /*!********************************************************************!*\
- !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/postorder.js ***!
- \********************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./dfs */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dfs.js");t.exports=function(t,e){return r(t,e,"post")}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/preorder.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/preorder.js ***!
- \*******************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./dfs */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dfs.js");t.exports=function(t,e){return r(t,e,"pre")}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/prim.js":
- /*!***************************************************************!*\
- !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/prim.js ***!
- \***************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js"),i=n(/*! ../graph */"./node_modules/_graphlib@2.1.8@graphlib/lib/graph.js"),o=n(/*! ../data/priority-queue */"./node_modules/_graphlib@2.1.8@graphlib/lib/data/priority-queue.js");t.exports=function(t,e){var n,a=new i,s={},l=new o;function u(t){var r=t.v===n?t.w:t.v,i=l.priority(r);if(void 0!==i){var o=e(t);o<i&&(s[r]=n,l.decrease(r,o))}}if(0===t.nodeCount())return a;r.each(t.nodes(),(function(t){l.add(t,Number.POSITIVE_INFINITY),a.setNode(t)})),l.decrease(t.nodes()[0],0);for(var c=!1;l.size()>0;){if(n=l.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(c)throw new Error("Input graph is not connected: "+t);c=!0}t.nodeEdges(n).forEach(u)}return a}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/tarjan.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/tarjan.js ***!
- \*****************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");t.exports=function(t){var e=0,n=[],i={},o=[];function a(s){var l=i[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach((function(t){r.has(i,t)?i[t].onStack&&(l.lowlink=Math.min(l.lowlink,i[t].index)):(a(t),l.lowlink=Math.min(l.lowlink,i[t].lowlink))})),l.lowlink===l.index){var u,c=[];do{u=n.pop(),i[u].onStack=!1,c.push(u)}while(s!==u);o.push(c)}}return t.nodes().forEach((function(t){r.has(i,t)||a(t)})),o}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/topsort.js":
- /*!******************************************************************!*\
- !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/topsort.js ***!
- \******************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");function i(t){var e={},n={},i=[];if(r.each(t.sinks(),(function a(s){if(r.has(n,s))throw new o;r.has(e,s)||(n[s]=!0,e[s]=!0,r.each(t.predecessors(s),a),delete n[s],i.push(s))})),r.size(e)!==t.nodeCount())throw new o;return i}function o(){}t.exports=i,i.CycleException=o,o.prototype=new Error},"./node_modules/_graphlib@2.1.8@graphlib/lib/data/priority-queue.js":
- /*!**************************************************************************!*\
- !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/data/priority-queue.js ***!
- \**************************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n<e.length&&(i=e[n].priority<e[i].priority?n:i,r<e.length&&(i=e[r].priority<e[i].priority?r:i),i!==t&&(this._swap(t,i),this._heapify(i)))},i.prototype._decrease=function(t){for(var e,n=this._arr,r=n[t].priority;0!==t&&!(n[e=t>>1].priority<r);)this._swap(t,e),t=e},i.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,i=n[t],o=n[e];n[t]=o,n[e]=i,r[o.key]=t,r[i.key]=e}},"./node_modules/_graphlib@2.1.8@graphlib/lib/graph.js":
- /*!************************************************************!*\
- !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/graph.js ***!
- \************************************************************/
- /*! no static exports found */function(e,n,r){var i=r(/*! ./lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");e.exports=a;var o="\0";function a(t){this._isDirected=!i.has(t,"directed")||t.directed,this._isMultigraph=!!i.has(t,"multigraph")&&t.multigraph,this._isCompound=!!i.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=i.constant(void 0),this._defaultEdgeLabelFn=i.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[o]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function s(t,e){t[e]?t[e]++:t[e]=1}function l(t,e){--t[e]||delete t[e]}function u(t,e,n,r){var o=""+e,a=""+n;if(!t&&o>a){var s=o;o=a,a=s}return o+""+a+""+(i.isUndefined(r)?"\0":r)}function c(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return r&&(s.name=r),s}function h(t,e){return u(t,e.v,e.w,e.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(t){return this._label=t,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(t){return i.isFunction(t)||(t=i.constant(t)),this._defaultNodeLabelFn=t,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return i.keys(this._nodes)},a.prototype.sources=function(){var t=this;return i.filter(this.nodes(),(function(e){return i.isEmpty(t._in[e])}))},a.prototype.sinks=function(){var t=this;return i.filter(this.nodes(),(function(e){return i.isEmpty(t._out[e])}))},a.prototype.setNodes=function(t,e){var n=arguments,r=this;return i.each(t,(function(t){n.length>1?r.setNode(t,e):r.setNode(t)})),this},a.prototype.setNode=function(t,e){return i.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=o,this._children[t]={},this._children[o][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},a.prototype.node=function(t){return this._nodes[t]},a.prototype.hasNode=function(t){return i.has(this._nodes,t)},a.prototype.removeNode=function(t){var e=this;if(i.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],i.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),i.each(i.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],i.each(i.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},a.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(i.isUndefined(e))e=o;else{for(var n=e+="";!i.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},a.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},a.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==o)return e}},a.prototype.children=function(t){if(i.isUndefined(t)&&(t=o),this._isCompound){var e=this._children[t];if(e)return i.keys(e)}else{if(t===o)return this.nodes();if(this.hasNode(t))return[]}},a.prototype.predecessors=function(t){var e=this._preds[t];if(e)return i.keys(e)},a.prototype.successors=function(t){var e=this._sucs[t];if(e)return i.keys(e)},a.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return i.union(e,this.successors(t))},a.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},a.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;i.each(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),i.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var r={};function o(t){var i=n.parent(t);return void 0===i||e.hasNode(i)?(r[t]=i,i):i in r?r[i]:o(i)}return this._isCompound&&i.each(e.nodes(),(function(t){e.setParent(t,o(t))})),e},a.prototype.setDefaultEdgeLabel=function(t){return i.isFunction(t)||(t=i.constant(t)),this._defaultEdgeLabelFn=t,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return i.values(this._edgeObjs)},a.prototype.setPath=function(t,e){var n=this,r=arguments;return i.reduce(t,(function(t,i){return r.length>1?n.setEdge(t,i,e):n.setEdge(t,i),i})),this},a.prototype.setEdge=function(){var e,n,r,o,a=!1,l=arguments[0];"object"===t(l)&&null!==l&&"v"in l?(e=l.v,n=l.w,r=l.name,2===arguments.length&&(o=arguments[1],a=!0)):(e=l,n=arguments[1],r=arguments[3],arguments.length>2&&(o=arguments[2],a=!0)),e=""+e,n=""+n,i.isUndefined(r)||(r=""+r);var h=u(this._isDirected,e,n,r);if(i.has(this._edgeLabels,h))return a&&(this._edgeLabels[h]=o),this;if(!i.isUndefined(r)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(n),this._edgeLabels[h]=a?o:this._defaultEdgeLabelFn(e,n,r);var f=c(this._isDirected,e,n,r);return e=f.v,n=f.w,Object.freeze(f),this._edgeObjs[h]=f,s(this._preds[n],e),s(this._sucs[e],n),this._in[n][h]=f,this._out[e][h]=f,this._edgeCount++,this},a.prototype.edge=function(t,e,n){var r=1===arguments.length?h(this._isDirected,arguments[0]):u(this._isDirected,t,e,n);return this._edgeLabels[r]},a.prototype.hasEdge=function(t,e,n){var r=1===arguments.length?h(this._isDirected,arguments[0]):u(this._isDirected,t,e,n);return i.has(this._edgeLabels,r)},a.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?h(this._isDirected,arguments[0]):u(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],l(this._preds[e],t),l(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},a.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var r=i.values(n);return e?i.filter(r,(function(t){return t.v===e})):r}},a.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var r=i.values(n);return e?i.filter(r,(function(t){return t.w===e})):r}},a.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},"./node_modules/_graphlib@2.1.8@graphlib/lib/index.js":
- /*!************************************************************!*\
- !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/index.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){t.exports={Graph:n(/*! ./graph */"./node_modules/_graphlib@2.1.8@graphlib/lib/graph.js"),version:n(/*! ./version */"./node_modules/_graphlib@2.1.8@graphlib/lib/version.js")}},"./node_modules/_graphlib@2.1.8@graphlib/lib/json.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/json.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js"),i=n(/*! ./graph */"./node_modules/_graphlib@2.1.8@graphlib/lib/graph.js");function o(t){return r.map(t.nodes(),(function(e){var n=t.node(e),i=t.parent(e),o={v:e};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o}))}function a(t){return r.map(t.edges(),(function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i}))}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:o(t),edges:a(t)};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e},read:function(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),r.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}}},"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e,n){var r;try{r={clone:n(/*! lodash/clone */"./node_modules/_lodash@4.17.20@lodash/clone.js"),constant:n(/*! lodash/constant */"./node_modules/_lodash@4.17.20@lodash/constant.js"),each:n(/*! lodash/each */"./node_modules/_lodash@4.17.20@lodash/each.js"),filter:n(/*! lodash/filter */"./node_modules/_lodash@4.17.20@lodash/filter.js"),has:n(/*! lodash/has */"./node_modules/_lodash@4.17.20@lodash/has.js"),isArray:n(/*! lodash/isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js"),isEmpty:n(/*! lodash/isEmpty */"./node_modules/_lodash@4.17.20@lodash/isEmpty.js"),isFunction:n(/*! lodash/isFunction */"./node_modules/_lodash@4.17.20@lodash/isFunction.js"),isUndefined:n(/*! lodash/isUndefined */"./node_modules/_lodash@4.17.20@lodash/isUndefined.js"),keys:n(/*! lodash/keys */"./node_modules/_lodash@4.17.20@lodash/keys.js"),map:n(/*! lodash/map */"./node_modules/_lodash@4.17.20@lodash/map.js"),reduce:n(/*! lodash/reduce */"./node_modules/_lodash@4.17.20@lodash/reduce.js"),size:n(/*! lodash/size */"./node_modules/_lodash@4.17.20@lodash/size.js"),transform:n(/*! lodash/transform */"./node_modules/_lodash@4.17.20@lodash/transform.js"),union:n(/*! lodash/union */"./node_modules/_lodash@4.17.20@lodash/union.js"),values:n(/*! lodash/values */"./node_modules/_lodash@4.17.20@lodash/values.js")}}catch(i){}r||(r=window._),t.exports=r},"./node_modules/_graphlib@2.1.8@graphlib/lib/version.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/version.js ***!
- \**************************************************************/
- /*! no static exports found */function(t,e){t.exports="2.1.8"},"./node_modules/_isarray@0.0.1@isarray/index.js":
- /*!******************************************************!*\
- !*** ./node_modules/_isarray@0.0.1@isarray/index.js ***!
- \******************************************************/
- /*! no static exports found */function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},"./node_modules/_lodash@4.17.20@lodash/_DataView.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_DataView.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_getNative */"./node_modules/_lodash@4.17.20@lodash/_getNative.js")(n(/*! ./_root */"./node_modules/_lodash@4.17.20@lodash/_root.js"),"DataView");t.exports=r},"./node_modules/_lodash@4.17.20@lodash/_Hash.js":
- /*!******************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_Hash.js ***!
- \******************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_hashClear */"./node_modules/_lodash@4.17.20@lodash/_hashClear.js"),i=n(/*! ./_hashDelete */"./node_modules/_lodash@4.17.20@lodash/_hashDelete.js"),o=n(/*! ./_hashGet */"./node_modules/_lodash@4.17.20@lodash/_hashGet.js"),a=n(/*! ./_hashHas */"./node_modules/_lodash@4.17.20@lodash/_hashHas.js"),s=n(/*! ./_hashSet */"./node_modules/_lodash@4.17.20@lodash/_hashSet.js");function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},"./node_modules/_lodash@4.17.20@lodash/_ListCache.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_ListCache.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_listCacheClear */"./node_modules/_lodash@4.17.20@lodash/_listCacheClear.js"),i=n(/*! ./_listCacheDelete */"./node_modules/_lodash@4.17.20@lodash/_listCacheDelete.js"),o=n(/*! ./_listCacheGet */"./node_modules/_lodash@4.17.20@lodash/_listCacheGet.js"),a=n(/*! ./_listCacheHas */"./node_modules/_lodash@4.17.20@lodash/_listCacheHas.js"),s=n(/*! ./_listCacheSet */"./node_modules/_lodash@4.17.20@lodash/_listCacheSet.js");function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},"./node_modules/_lodash@4.17.20@lodash/_Map.js":
- /*!*****************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_Map.js ***!
- \*****************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_getNative */"./node_modules/_lodash@4.17.20@lodash/_getNative.js")(n(/*! ./_root */"./node_modules/_lodash@4.17.20@lodash/_root.js"),"Map");t.exports=r},"./node_modules/_lodash@4.17.20@lodash/_MapCache.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_MapCache.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_mapCacheClear */"./node_modules/_lodash@4.17.20@lodash/_mapCacheClear.js"),i=n(/*! ./_mapCacheDelete */"./node_modules/_lodash@4.17.20@lodash/_mapCacheDelete.js"),o=n(/*! ./_mapCacheGet */"./node_modules/_lodash@4.17.20@lodash/_mapCacheGet.js"),a=n(/*! ./_mapCacheHas */"./node_modules/_lodash@4.17.20@lodash/_mapCacheHas.js"),s=n(/*! ./_mapCacheSet */"./node_modules/_lodash@4.17.20@lodash/_mapCacheSet.js");function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},"./node_modules/_lodash@4.17.20@lodash/_Promise.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_Promise.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_getNative */"./node_modules/_lodash@4.17.20@lodash/_getNative.js")(n(/*! ./_root */"./node_modules/_lodash@4.17.20@lodash/_root.js"),"Promise");t.exports=r},"./node_modules/_lodash@4.17.20@lodash/_Set.js":
- /*!*****************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_Set.js ***!
- \*****************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_getNative */"./node_modules/_lodash@4.17.20@lodash/_getNative.js")(n(/*! ./_root */"./node_modules/_lodash@4.17.20@lodash/_root.js"),"Set");t.exports=r},"./node_modules/_lodash@4.17.20@lodash/_SetCache.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_SetCache.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_MapCache */"./node_modules/_lodash@4.17.20@lodash/_MapCache.js"),i=n(/*! ./_setCacheAdd */"./node_modules/_lodash@4.17.20@lodash/_setCacheAdd.js"),o=n(/*! ./_setCacheHas */"./node_modules/_lodash@4.17.20@lodash/_setCacheHas.js");function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,t.exports=a},"./node_modules/_lodash@4.17.20@lodash/_Stack.js":
- /*!*******************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_Stack.js ***!
- \*******************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_ListCache */"./node_modules/_lodash@4.17.20@lodash/_ListCache.js"),i=n(/*! ./_stackClear */"./node_modules/_lodash@4.17.20@lodash/_stackClear.js"),o=n(/*! ./_stackDelete */"./node_modules/_lodash@4.17.20@lodash/_stackDelete.js"),a=n(/*! ./_stackGet */"./node_modules/_lodash@4.17.20@lodash/_stackGet.js"),s=n(/*! ./_stackHas */"./node_modules/_lodash@4.17.20@lodash/_stackHas.js"),l=n(/*! ./_stackSet */"./node_modules/_lodash@4.17.20@lodash/_stackSet.js");function u(t){var e=this.__data__=new r(t);this.size=e.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,t.exports=u},"./node_modules/_lodash@4.17.20@lodash/_Symbol.js":
- /*!********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_Symbol.js ***!
- \********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_root */"./node_modules/_lodash@4.17.20@lodash/_root.js").Symbol;t.exports=r},"./node_modules/_lodash@4.17.20@lodash/_Uint8Array.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_Uint8Array.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_root */"./node_modules/_lodash@4.17.20@lodash/_root.js").Uint8Array;t.exports=r},"./node_modules/_lodash@4.17.20@lodash/_WeakMap.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_WeakMap.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_getNative */"./node_modules/_lodash@4.17.20@lodash/_getNative.js")(n(/*! ./_root */"./node_modules/_lodash@4.17.20@lodash/_root.js"),"WeakMap");t.exports=r},"./node_modules/_lodash@4.17.20@lodash/_apply.js":
- /*!*******************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_apply.js ***!
- \*******************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},"./node_modules/_lodash@4.17.20@lodash/_arrayEach.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_arrayEach.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},"./node_modules/_lodash@4.17.20@lodash/_arrayFilter.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_arrayFilter.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}},"./node_modules/_lodash@4.17.20@lodash/_arrayIncludes.js":
- /*!***************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_arrayIncludes.js ***!
- \***************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseIndexOf */"./node_modules/_lodash@4.17.20@lodash/_baseIndexOf.js");t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},"./node_modules/_lodash@4.17.20@lodash/_arrayIncludesWith.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_arrayIncludesWith.js ***!
- \*******************************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},"./node_modules/_lodash@4.17.20@lodash/_arrayLikeKeys.js":
- /*!***************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_arrayLikeKeys.js ***!
- \***************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseTimes */"./node_modules/_lodash@4.17.20@lodash/_baseTimes.js"),i=n(/*! ./isArguments */"./node_modules/_lodash@4.17.20@lodash/isArguments.js"),o=n(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js"),a=n(/*! ./isBuffer */"./node_modules/_lodash@4.17.20@lodash/isBuffer.js"),s=n(/*! ./_isIndex */"./node_modules/_lodash@4.17.20@lodash/_isIndex.js"),l=n(/*! ./isTypedArray */"./node_modules/_lodash@4.17.20@lodash/isTypedArray.js"),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),c=!n&&i(t),h=!n&&!c&&a(t),f=!n&&!c&&!h&&l(t),d=n||c||h||f,p=d?r(t.length,String):[],g=p.length;for(var v in t)!e&&!u.call(t,v)||d&&("length"==v||h&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,g))||p.push(v);return p}},"./node_modules/_lodash@4.17.20@lodash/_arrayMap.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_arrayMap.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},"./node_modules/_lodash@4.17.20@lodash/_arrayPush.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_arrayPush.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},"./node_modules/_lodash@4.17.20@lodash/_arrayReduce.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_arrayReduce.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}},"./node_modules/_lodash@4.17.20@lodash/_arraySome.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_arraySome.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},"./node_modules/_lodash@4.17.20@lodash/_asciiSize.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_asciiSize.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseProperty */"./node_modules/_lodash@4.17.20@lodash/_baseProperty.js")("length");t.exports=r},"./node_modules/_lodash@4.17.20@lodash/_assignMergeValue.js":
- /*!******************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_assignMergeValue.js ***!
- \******************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseAssignValue */"./node_modules/_lodash@4.17.20@lodash/_baseAssignValue.js"),i=n(/*! ./eq */"./node_modules/_lodash@4.17.20@lodash/eq.js");t.exports=function(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},"./node_modules/_lodash@4.17.20@lodash/_assignValue.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_assignValue.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseAssignValue */"./node_modules/_lodash@4.17.20@lodash/_baseAssignValue.js"),i=n(/*! ./eq */"./node_modules/_lodash@4.17.20@lodash/eq.js"),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},"./node_modules/_lodash@4.17.20@lodash/_assocIndexOf.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_assocIndexOf.js ***!
- \**************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./eq */"./node_modules/_lodash@4.17.20@lodash/eq.js");t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},"./node_modules/_lodash@4.17.20@lodash/_baseAssign.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseAssign.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_copyObject */"./node_modules/_lodash@4.17.20@lodash/_copyObject.js"),i=n(/*! ./keys */"./node_modules/_lodash@4.17.20@lodash/keys.js");t.exports=function(t,e){return t&&r(e,i(e),t)}},"./node_modules/_lodash@4.17.20@lodash/_baseAssignIn.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseAssignIn.js ***!
- \**************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_copyObject */"./node_modules/_lodash@4.17.20@lodash/_copyObject.js"),i=n(/*! ./keysIn */"./node_modules/_lodash@4.17.20@lodash/keysIn.js");t.exports=function(t,e){return t&&r(e,i(e),t)}},"./node_modules/_lodash@4.17.20@lodash/_baseAssignValue.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseAssignValue.js ***!
- \*****************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_defineProperty */"./node_modules/_lodash@4.17.20@lodash/_defineProperty.js");t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},"./node_modules/_lodash@4.17.20@lodash/_baseClone.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseClone.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_Stack */"./node_modules/_lodash@4.17.20@lodash/_Stack.js"),i=n(/*! ./_arrayEach */"./node_modules/_lodash@4.17.20@lodash/_arrayEach.js"),o=n(/*! ./_assignValue */"./node_modules/_lodash@4.17.20@lodash/_assignValue.js"),a=n(/*! ./_baseAssign */"./node_modules/_lodash@4.17.20@lodash/_baseAssign.js"),s=n(/*! ./_baseAssignIn */"./node_modules/_lodash@4.17.20@lodash/_baseAssignIn.js"),l=n(/*! ./_cloneBuffer */"./node_modules/_lodash@4.17.20@lodash/_cloneBuffer.js"),u=n(/*! ./_copyArray */"./node_modules/_lodash@4.17.20@lodash/_copyArray.js"),c=n(/*! ./_copySymbols */"./node_modules/_lodash@4.17.20@lodash/_copySymbols.js"),h=n(/*! ./_copySymbolsIn */"./node_modules/_lodash@4.17.20@lodash/_copySymbolsIn.js"),f=n(/*! ./_getAllKeys */"./node_modules/_lodash@4.17.20@lodash/_getAllKeys.js"),d=n(/*! ./_getAllKeysIn */"./node_modules/_lodash@4.17.20@lodash/_getAllKeysIn.js"),p=n(/*! ./_getTag */"./node_modules/_lodash@4.17.20@lodash/_getTag.js"),g=n(/*! ./_initCloneArray */"./node_modules/_lodash@4.17.20@lodash/_initCloneArray.js"),v=n(/*! ./_initCloneByTag */"./node_modules/_lodash@4.17.20@lodash/_initCloneByTag.js"),y=n(/*! ./_initCloneObject */"./node_modules/_lodash@4.17.20@lodash/_initCloneObject.js"),m=n(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js"),_=n(/*! ./isBuffer */"./node_modules/_lodash@4.17.20@lodash/isBuffer.js"),x=n(/*! ./isMap */"./node_modules/_lodash@4.17.20@lodash/isMap.js"),b=n(/*! ./isObject */"./node_modules/_lodash@4.17.20@lodash/isObject.js"),w=n(/*! ./isSet */"./node_modules/_lodash@4.17.20@lodash/isSet.js"),M=n(/*! ./keys */"./node_modules/_lodash@4.17.20@lodash/keys.js"),S=n(/*! ./keysIn */"./node_modules/_lodash@4.17.20@lodash/keysIn.js"),j="[object Arguments]",C="[object Function]",E="[object Object]",P={};P[j]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[E]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[C]=P["[object WeakMap]"]=!1,t.exports=function t(e,n,T,k,A,O){var I,B=1&n,L=2&n,F=4&n;if(T&&(I=A?T(e,k,A,O):T(e)),void 0!==I)return I;if(!b(e))return e;var D=m(e);if(D){if(I=g(e),!B)return u(e,I)}else{var R=p(e),N=R==C||"[object GeneratorFunction]"==R;if(_(e))return l(e,B);if(R==E||R==j||N&&!A){if(I=L||N?{}:y(e),!B)return L?h(e,s(I,e)):c(e,a(I,e))}else{if(!P[R])return A?e:{};I=v(e,R,B)}}O||(O=new r);var z=O.get(e);if(z)return z;O.set(e,I),w(e)?e.forEach((function(r){I.add(t(r,n,T,r,e,O))})):x(e)&&e.forEach((function(r,i){I.set(i,t(r,n,T,i,e,O))}));var H=D?void 0:(F?L?d:f:L?S:M)(e);return i(H||e,(function(r,i){H&&(r=e[i=r]),o(I,i,t(r,n,T,i,e,O))})),I}},"./node_modules/_lodash@4.17.20@lodash/_baseCreate.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseCreate.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./isObject */"./node_modules/_lodash@4.17.20@lodash/isObject.js"),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},"./node_modules/_lodash@4.17.20@lodash/_baseEach.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseEach.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseForOwn */"./node_modules/_lodash@4.17.20@lodash/_baseForOwn.js"),i=n(/*! ./_createBaseEach */"./node_modules/_lodash@4.17.20@lodash/_createBaseEach.js")(r);t.exports=i},"./node_modules/_lodash@4.17.20@lodash/_baseExtremum.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseExtremum.js ***!
- \**************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./isSymbol */"./node_modules/_lodash@4.17.20@lodash/isSymbol.js");t.exports=function(t,e,n){for(var i=-1,o=t.length;++i<o;){var a=t[i],s=e(a);if(null!=s&&(void 0===l?s==s&&!r(s):n(s,l)))var l=s,u=a}return u}},"./node_modules/_lodash@4.17.20@lodash/_baseFilter.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseFilter.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseEach */"./node_modules/_lodash@4.17.20@lodash/_baseEach.js");t.exports=function(t,e){var n=[];return r(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}},"./node_modules/_lodash@4.17.20@lodash/_baseFindIndex.js":
- /*!***************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseFindIndex.js ***!
- \***************************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},"./node_modules/_lodash@4.17.20@lodash/_baseFlatten.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseFlatten.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_arrayPush */"./node_modules/_lodash@4.17.20@lodash/_arrayPush.js"),i=n(/*! ./_isFlattenable */"./node_modules/_lodash@4.17.20@lodash/_isFlattenable.js");t.exports=function t(e,n,o,a,s){var l=-1,u=e.length;for(o||(o=i),s||(s=[]);++l<u;){var c=e[l];n>0&&o(c)?n>1?t(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},"./node_modules/_lodash@4.17.20@lodash/_baseFor.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseFor.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_createBaseFor */"./node_modules/_lodash@4.17.20@lodash/_createBaseFor.js")();t.exports=r},"./node_modules/_lodash@4.17.20@lodash/_baseForOwn.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseForOwn.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseFor */"./node_modules/_lodash@4.17.20@lodash/_baseFor.js"),i=n(/*! ./keys */"./node_modules/_lodash@4.17.20@lodash/keys.js");t.exports=function(t,e){return t&&r(t,e,i)}},"./node_modules/_lodash@4.17.20@lodash/_baseGet.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseGet.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_castPath */"./node_modules/_lodash@4.17.20@lodash/_castPath.js"),i=n(/*! ./_toKey */"./node_modules/_lodash@4.17.20@lodash/_toKey.js");t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},"./node_modules/_lodash@4.17.20@lodash/_baseGetAllKeys.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseGetAllKeys.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_arrayPush */"./node_modules/_lodash@4.17.20@lodash/_arrayPush.js"),i=n(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js");t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},"./node_modules/_lodash@4.17.20@lodash/_baseGetTag.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseGetTag.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_Symbol */"./node_modules/_lodash@4.17.20@lodash/_Symbol.js"),i=n(/*! ./_getRawTag */"./node_modules/_lodash@4.17.20@lodash/_getRawTag.js"),o=n(/*! ./_objectToString */"./node_modules/_lodash@4.17.20@lodash/_objectToString.js"),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},"./node_modules/_lodash@4.17.20@lodash/_baseGt.js":
- /*!********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseGt.js ***!
- \********************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e){return t>e}},"./node_modules/_lodash@4.17.20@lodash/_baseHas.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseHas.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&n.call(t,e)}},"./node_modules/_lodash@4.17.20@lodash/_baseHasIn.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseHasIn.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},"./node_modules/_lodash@4.17.20@lodash/_baseIndexOf.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseIndexOf.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseFindIndex */"./node_modules/_lodash@4.17.20@lodash/_baseFindIndex.js"),i=n(/*! ./_baseIsNaN */"./node_modules/_lodash@4.17.20@lodash/_baseIsNaN.js"),o=n(/*! ./_strictIndexOf */"./node_modules/_lodash@4.17.20@lodash/_strictIndexOf.js");t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},"./node_modules/_lodash@4.17.20@lodash/_baseIsArguments.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseIsArguments.js ***!
- \*****************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseGetTag */"./node_modules/_lodash@4.17.20@lodash/_baseGetTag.js"),i=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.20@lodash/isObjectLike.js");t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},"./node_modules/_lodash@4.17.20@lodash/_baseIsEqual.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseIsEqual.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseIsEqualDeep */"./node_modules/_lodash@4.17.20@lodash/_baseIsEqualDeep.js"),i=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.20@lodash/isObjectLike.js");t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,s))}},"./node_modules/_lodash@4.17.20@lodash/_baseIsEqualDeep.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseIsEqualDeep.js ***!
- \*****************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_Stack */"./node_modules/_lodash@4.17.20@lodash/_Stack.js"),i=n(/*! ./_equalArrays */"./node_modules/_lodash@4.17.20@lodash/_equalArrays.js"),o=n(/*! ./_equalByTag */"./node_modules/_lodash@4.17.20@lodash/_equalByTag.js"),a=n(/*! ./_equalObjects */"./node_modules/_lodash@4.17.20@lodash/_equalObjects.js"),s=n(/*! ./_getTag */"./node_modules/_lodash@4.17.20@lodash/_getTag.js"),l=n(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js"),u=n(/*! ./isBuffer */"./node_modules/_lodash@4.17.20@lodash/isBuffer.js"),c=n(/*! ./isTypedArray */"./node_modules/_lodash@4.17.20@lodash/isTypedArray.js"),h="[object Arguments]",f="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,g,v,y){var m=l(t),_=l(e),x=m?f:s(t),b=_?f:s(e),w=(x=x==h?d:x)==d,M=(b=b==h?d:b)==d,S=x==b;if(S&&u(t)){if(!u(e))return!1;m=!0,w=!1}if(S&&!w)return y||(y=new r),m||c(t)?i(t,e,n,g,v,y):o(t,e,x,n,g,v,y);if(!(1&n)){var j=w&&p.call(t,"__wrapped__"),C=M&&p.call(e,"__wrapped__");if(j||C){var E=j?t.value():t,P=C?e.value():e;return y||(y=new r),v(E,P,n,g,y)}}return!!S&&(y||(y=new r),a(t,e,n,g,v,y))}},"./node_modules/_lodash@4.17.20@lodash/_baseIsMap.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseIsMap.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_getTag */"./node_modules/_lodash@4.17.20@lodash/_getTag.js"),i=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.20@lodash/isObjectLike.js");t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},"./node_modules/_lodash@4.17.20@lodash/_baseIsMatch.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseIsMatch.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_Stack */"./node_modules/_lodash@4.17.20@lodash/_Stack.js"),i=n(/*! ./_baseIsEqual */"./node_modules/_lodash@4.17.20@lodash/_baseIsEqual.js");t.exports=function(t,e,n,o){var a=n.length,s=a,l=!o;if(null==t)return!s;for(t=Object(t);a--;){var u=n[a];if(l&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++a<s;){var c=(u=n[a])[0],h=t[c],f=u[1];if(l&&u[2]){if(void 0===h&&!(c in t))return!1}else{var d=new r;if(o)var p=o(h,f,c,t,e,d);if(!(void 0===p?i(f,h,3,o,d):p))return!1}}return!0}},"./node_modules/_lodash@4.17.20@lodash/_baseIsNaN.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseIsNaN.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t){return t!=t}},"./node_modules/_lodash@4.17.20@lodash/_baseIsNative.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseIsNative.js ***!
- \**************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./isFunction */"./node_modules/_lodash@4.17.20@lodash/isFunction.js"),i=n(/*! ./_isMasked */"./node_modules/_lodash@4.17.20@lodash/_isMasked.js"),o=n(/*! ./isObject */"./node_modules/_lodash@4.17.20@lodash/isObject.js"),a=n(/*! ./_toSource */"./node_modules/_lodash@4.17.20@lodash/_toSource.js"),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,h=u.hasOwnProperty,f=RegExp("^"+c.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?f:s).test(a(t))}},"./node_modules/_lodash@4.17.20@lodash/_baseIsSet.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseIsSet.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_getTag */"./node_modules/_lodash@4.17.20@lodash/_getTag.js"),i=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.20@lodash/isObjectLike.js");t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},"./node_modules/_lodash@4.17.20@lodash/_baseIsTypedArray.js":
- /*!******************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseIsTypedArray.js ***!
- \******************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseGetTag */"./node_modules/_lodash@4.17.20@lodash/_baseGetTag.js"),i=n(/*! ./isLength */"./node_modules/_lodash@4.17.20@lodash/isLength.js"),o=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.20@lodash/isObjectLike.js"),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},"./node_modules/_lodash@4.17.20@lodash/_baseIteratee.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseIteratee.js ***!
- \**************************************************************/
- /*! no static exports found */function(e,n,r){var i=r(/*! ./_baseMatches */"./node_modules/_lodash@4.17.20@lodash/_baseMatches.js"),o=r(/*! ./_baseMatchesProperty */"./node_modules/_lodash@4.17.20@lodash/_baseMatchesProperty.js"),a=r(/*! ./identity */"./node_modules/_lodash@4.17.20@lodash/identity.js"),s=r(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js"),l=r(/*! ./property */"./node_modules/_lodash@4.17.20@lodash/property.js");e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==t(e)?s(e)?o(e[0],e[1]):i(e):l(e)}},"./node_modules/_lodash@4.17.20@lodash/_baseKeys.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseKeys.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_isPrototype */"./node_modules/_lodash@4.17.20@lodash/_isPrototype.js"),i=n(/*! ./_nativeKeys */"./node_modules/_lodash@4.17.20@lodash/_nativeKeys.js"),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},"./node_modules/_lodash@4.17.20@lodash/_baseKeysIn.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseKeysIn.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./isObject */"./node_modules/_lodash@4.17.20@lodash/isObject.js"),i=n(/*! ./_isPrototype */"./node_modules/_lodash@4.17.20@lodash/_isPrototype.js"),o=n(/*! ./_nativeKeysIn */"./node_modules/_lodash@4.17.20@lodash/_nativeKeysIn.js"),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=i(t),n=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&n.push(s);return n}},"./node_modules/_lodash@4.17.20@lodash/_baseLt.js":
- /*!********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseLt.js ***!
- \********************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e){return t<e}},"./node_modules/_lodash@4.17.20@lodash/_baseMap.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseMap.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseEach */"./node_modules/_lodash@4.17.20@lodash/_baseEach.js"),i=n(/*! ./isArrayLike */"./node_modules/_lodash@4.17.20@lodash/isArrayLike.js");t.exports=function(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},"./node_modules/_lodash@4.17.20@lodash/_baseMatches.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseMatches.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseIsMatch */"./node_modules/_lodash@4.17.20@lodash/_baseIsMatch.js"),i=n(/*! ./_getMatchData */"./node_modules/_lodash@4.17.20@lodash/_getMatchData.js"),o=n(/*! ./_matchesStrictComparable */"./node_modules/_lodash@4.17.20@lodash/_matchesStrictComparable.js");t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},"./node_modules/_lodash@4.17.20@lodash/_baseMatchesProperty.js":
- /*!*********************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseMatchesProperty.js ***!
- \*********************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseIsEqual */"./node_modules/_lodash@4.17.20@lodash/_baseIsEqual.js"),i=n(/*! ./get */"./node_modules/_lodash@4.17.20@lodash/get.js"),o=n(/*! ./hasIn */"./node_modules/_lodash@4.17.20@lodash/hasIn.js"),a=n(/*! ./_isKey */"./node_modules/_lodash@4.17.20@lodash/_isKey.js"),s=n(/*! ./_isStrictComparable */"./node_modules/_lodash@4.17.20@lodash/_isStrictComparable.js"),l=n(/*! ./_matchesStrictComparable */"./node_modules/_lodash@4.17.20@lodash/_matchesStrictComparable.js"),u=n(/*! ./_toKey */"./node_modules/_lodash@4.17.20@lodash/_toKey.js");t.exports=function(t,e){return a(t)&&s(e)?l(u(t),e):function(n){var a=i(n,t);return void 0===a&&a===e?o(n,t):r(e,a,3)}}},"./node_modules/_lodash@4.17.20@lodash/_baseMerge.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseMerge.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_Stack */"./node_modules/_lodash@4.17.20@lodash/_Stack.js"),i=n(/*! ./_assignMergeValue */"./node_modules/_lodash@4.17.20@lodash/_assignMergeValue.js"),o=n(/*! ./_baseFor */"./node_modules/_lodash@4.17.20@lodash/_baseFor.js"),a=n(/*! ./_baseMergeDeep */"./node_modules/_lodash@4.17.20@lodash/_baseMergeDeep.js"),s=n(/*! ./isObject */"./node_modules/_lodash@4.17.20@lodash/isObject.js"),l=n(/*! ./keysIn */"./node_modules/_lodash@4.17.20@lodash/keysIn.js"),u=n(/*! ./_safeGet */"./node_modules/_lodash@4.17.20@lodash/_safeGet.js");t.exports=function t(e,n,c,h,f){e!==n&&o(n,(function(o,l){if(f||(f=new r),s(o))a(e,n,l,c,t,h,f);else{var d=h?h(u(e,l),o,l+"",e,n,f):void 0;void 0===d&&(d=o),i(e,l,d)}}),l)}},"./node_modules/_lodash@4.17.20@lodash/_baseMergeDeep.js":
- /*!***************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseMergeDeep.js ***!
- \***************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_assignMergeValue */"./node_modules/_lodash@4.17.20@lodash/_assignMergeValue.js"),i=n(/*! ./_cloneBuffer */"./node_modules/_lodash@4.17.20@lodash/_cloneBuffer.js"),o=n(/*! ./_cloneTypedArray */"./node_modules/_lodash@4.17.20@lodash/_cloneTypedArray.js"),a=n(/*! ./_copyArray */"./node_modules/_lodash@4.17.20@lodash/_copyArray.js"),s=n(/*! ./_initCloneObject */"./node_modules/_lodash@4.17.20@lodash/_initCloneObject.js"),l=n(/*! ./isArguments */"./node_modules/_lodash@4.17.20@lodash/isArguments.js"),u=n(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js"),c=n(/*! ./isArrayLikeObject */"./node_modules/_lodash@4.17.20@lodash/isArrayLikeObject.js"),h=n(/*! ./isBuffer */"./node_modules/_lodash@4.17.20@lodash/isBuffer.js"),f=n(/*! ./isFunction */"./node_modules/_lodash@4.17.20@lodash/isFunction.js"),d=n(/*! ./isObject */"./node_modules/_lodash@4.17.20@lodash/isObject.js"),p=n(/*! ./isPlainObject */"./node_modules/_lodash@4.17.20@lodash/isPlainObject.js"),g=n(/*! ./isTypedArray */"./node_modules/_lodash@4.17.20@lodash/isTypedArray.js"),v=n(/*! ./_safeGet */"./node_modules/_lodash@4.17.20@lodash/_safeGet.js"),y=n(/*! ./toPlainObject */"./node_modules/_lodash@4.17.20@lodash/toPlainObject.js");t.exports=function(t,e,n,m,_,x,b){var w=v(t,n),M=v(e,n),S=b.get(M);if(S)r(t,n,S);else{var j=x?x(w,M,n+"",t,e,b):void 0,C=void 0===j;if(C){var E=u(M),P=!E&&h(M),T=!E&&!P&&g(M);j=M,E||P||T?u(w)?j=w:c(w)?j=a(w):P?(C=!1,j=i(M,!0)):T?(C=!1,j=o(M,!0)):j=[]:p(M)||l(M)?(j=w,l(w)?j=y(w):d(w)&&!f(w)||(j=s(M))):C=!1}C&&(b.set(M,j),_(j,M,m,x,b),b.delete(M)),r(t,n,j)}}},"./node_modules/_lodash@4.17.20@lodash/_baseOrderBy.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseOrderBy.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_arrayMap */"./node_modules/_lodash@4.17.20@lodash/_arrayMap.js"),i=n(/*! ./_baseGet */"./node_modules/_lodash@4.17.20@lodash/_baseGet.js"),o=n(/*! ./_baseIteratee */"./node_modules/_lodash@4.17.20@lodash/_baseIteratee.js"),a=n(/*! ./_baseMap */"./node_modules/_lodash@4.17.20@lodash/_baseMap.js"),s=n(/*! ./_baseSortBy */"./node_modules/_lodash@4.17.20@lodash/_baseSortBy.js"),l=n(/*! ./_baseUnary */"./node_modules/_lodash@4.17.20@lodash/_baseUnary.js"),u=n(/*! ./_compareMultiple */"./node_modules/_lodash@4.17.20@lodash/_compareMultiple.js"),c=n(/*! ./identity */"./node_modules/_lodash@4.17.20@lodash/identity.js"),h=n(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js");t.exports=function(t,e,n){e=e.length?r(e,(function(t){return h(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[c];var f=-1;e=r(e,l(o));var d=a(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++f,value:t}}));return s(d,(function(t,e){return u(t,e,n)}))}},"./node_modules/_lodash@4.17.20@lodash/_basePick.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_basePick.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_basePickBy */"./node_modules/_lodash@4.17.20@lodash/_basePickBy.js"),i=n(/*! ./hasIn */"./node_modules/_lodash@4.17.20@lodash/hasIn.js");t.exports=function(t,e){return r(t,e,(function(e,n){return i(t,n)}))}},"./node_modules/_lodash@4.17.20@lodash/_basePickBy.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_basePickBy.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseGet */"./node_modules/_lodash@4.17.20@lodash/_baseGet.js"),i=n(/*! ./_baseSet */"./node_modules/_lodash@4.17.20@lodash/_baseSet.js"),o=n(/*! ./_castPath */"./node_modules/_lodash@4.17.20@lodash/_castPath.js");t.exports=function(t,e,n){for(var a=-1,s=e.length,l={};++a<s;){var u=e[a],c=r(t,u);n(c,u)&&i(l,o(u,t),c)}return l}},"./node_modules/_lodash@4.17.20@lodash/_baseProperty.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseProperty.js ***!
- \**************************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},"./node_modules/_lodash@4.17.20@lodash/_basePropertyDeep.js":
- /*!******************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_basePropertyDeep.js ***!
- \******************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseGet */"./node_modules/_lodash@4.17.20@lodash/_baseGet.js");t.exports=function(t){return function(e){return r(e,t)}}},"./node_modules/_lodash@4.17.20@lodash/_baseRange.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseRange.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e){var n=Math.ceil,r=Math.max;t.exports=function(t,e,i,o){for(var a=-1,s=r(n((e-t)/(i||1)),0),l=Array(s);s--;)l[o?s:++a]=t,t+=i;return l}},"./node_modules/_lodash@4.17.20@lodash/_baseReduce.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseReduce.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}},"./node_modules/_lodash@4.17.20@lodash/_baseRest.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseRest.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./identity */"./node_modules/_lodash@4.17.20@lodash/identity.js"),i=n(/*! ./_overRest */"./node_modules/_lodash@4.17.20@lodash/_overRest.js"),o=n(/*! ./_setToString */"./node_modules/_lodash@4.17.20@lodash/_setToString.js");t.exports=function(t,e){return o(i(t,e,r),t+"")}},"./node_modules/_lodash@4.17.20@lodash/_baseSet.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseSet.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_assignValue */"./node_modules/_lodash@4.17.20@lodash/_assignValue.js"),i=n(/*! ./_castPath */"./node_modules/_lodash@4.17.20@lodash/_castPath.js"),o=n(/*! ./_isIndex */"./node_modules/_lodash@4.17.20@lodash/_isIndex.js"),a=n(/*! ./isObject */"./node_modules/_lodash@4.17.20@lodash/isObject.js"),s=n(/*! ./_toKey */"./node_modules/_lodash@4.17.20@lodash/_toKey.js");t.exports=function(t,e,n,l){if(!a(t))return t;for(var u=-1,c=(e=i(e,t)).length,h=c-1,f=t;null!=f&&++u<c;){var d=s(e[u]),p=n;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(u!=h){var g=f[d];void 0===(p=l?l(g,d,f):void 0)&&(p=a(g)?g:o(e[u+1])?[]:{})}r(f,d,p),f=f[d]}return t}},"./node_modules/_lodash@4.17.20@lodash/_baseSetToString.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseSetToString.js ***!
- \*****************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./constant */"./node_modules/_lodash@4.17.20@lodash/constant.js"),i=n(/*! ./_defineProperty */"./node_modules/_lodash@4.17.20@lodash/_defineProperty.js"),o=n(/*! ./identity */"./node_modules/_lodash@4.17.20@lodash/identity.js"),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},"./node_modules/_lodash@4.17.20@lodash/_baseSortBy.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseSortBy.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},"./node_modules/_lodash@4.17.20@lodash/_baseTimes.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseTimes.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},"./node_modules/_lodash@4.17.20@lodash/_baseToString.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseToString.js ***!
- \**************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_Symbol */"./node_modules/_lodash@4.17.20@lodash/_Symbol.js"),i=n(/*! ./_arrayMap */"./node_modules/_lodash@4.17.20@lodash/_arrayMap.js"),o=n(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js"),a=n(/*! ./isSymbol */"./node_modules/_lodash@4.17.20@lodash/isSymbol.js"),s=r?r.prototype:void 0,l=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return l?l.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},"./node_modules/_lodash@4.17.20@lodash/_baseUnary.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseUnary.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t){return function(e){return t(e)}}},"./node_modules/_lodash@4.17.20@lodash/_baseUniq.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseUniq.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_SetCache */"./node_modules/_lodash@4.17.20@lodash/_SetCache.js"),i=n(/*! ./_arrayIncludes */"./node_modules/_lodash@4.17.20@lodash/_arrayIncludes.js"),o=n(/*! ./_arrayIncludesWith */"./node_modules/_lodash@4.17.20@lodash/_arrayIncludesWith.js"),a=n(/*! ./_cacheHas */"./node_modules/_lodash@4.17.20@lodash/_cacheHas.js"),s=n(/*! ./_createSet */"./node_modules/_lodash@4.17.20@lodash/_createSet.js"),l=n(/*! ./_setToArray */"./node_modules/_lodash@4.17.20@lodash/_setToArray.js");t.exports=function(t,e,n){var u=-1,c=i,h=t.length,f=!0,d=[],p=d;if(n)f=!1,c=o;else if(h>=200){var g=e?null:s(t);if(g)return l(g);f=!1,c=a,p=new r}else p=e?[]:d;t:for(;++u<h;){var v=t[u],y=e?e(v):v;if(v=n||0!==v?v:0,f&&y==y){for(var m=p.length;m--;)if(p[m]===y)continue t;e&&p.push(y),d.push(v)}else c(p,y,n)||(p!==d&&p.push(y),d.push(v))}return d}},"./node_modules/_lodash@4.17.20@lodash/_baseValues.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseValues.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_arrayMap */"./node_modules/_lodash@4.17.20@lodash/_arrayMap.js");t.exports=function(t,e){return r(e,(function(e){return t[e]}))}},"./node_modules/_lodash@4.17.20@lodash/_baseZipObject.js":
- /*!***************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_baseZipObject.js ***!
- \***************************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r<i;){var s=r<o?e[r]:void 0;n(a,t[r],s)}return a}},"./node_modules/_lodash@4.17.20@lodash/_cacheHas.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_cacheHas.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e){return t.has(e)}},"./node_modules/_lodash@4.17.20@lodash/_castFunction.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_castFunction.js ***!
- \**************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./identity */"./node_modules/_lodash@4.17.20@lodash/identity.js");t.exports=function(t){return"function"==typeof t?t:r}},"./node_modules/_lodash@4.17.20@lodash/_castPath.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_castPath.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js"),i=n(/*! ./_isKey */"./node_modules/_lodash@4.17.20@lodash/_isKey.js"),o=n(/*! ./_stringToPath */"./node_modules/_lodash@4.17.20@lodash/_stringToPath.js"),a=n(/*! ./toString */"./node_modules/_lodash@4.17.20@lodash/toString.js");t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}},"./node_modules/_lodash@4.17.20@lodash/_cloneArrayBuffer.js":
- /*!******************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_cloneArrayBuffer.js ***!
- \******************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_Uint8Array */"./node_modules/_lodash@4.17.20@lodash/_Uint8Array.js");t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},"./node_modules/_lodash@4.17.20@lodash/_cloneBuffer.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_cloneBuffer.js ***!
- \*************************************************************/
- /*! no static exports found */function(e,n,r){(function(e){var i=r(/*! ./_root */"./node_modules/_lodash@4.17.20@lodash/_root.js"),o=n&&!n.nodeType&&n,a=o&&"object"==t(e)&&e&&!e.nodeType&&e,s=a&&a.exports===o?i.Buffer:void 0,l=s?s.allocUnsafe:void 0;e.exports=function(t,e){if(e)return t.slice();var n=t.length,r=l?l(n):new t.constructor(n);return t.copy(r),r}}).call(this,r(/*! ./../_webpack@4.46.0@webpack/buildin/module.js */"./node_modules/_webpack@4.46.0@webpack/buildin/module.js")(e))},"./node_modules/_lodash@4.17.20@lodash/_cloneDataView.js":
- /*!***************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_cloneDataView.js ***!
- \***************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_cloneArrayBuffer */"./node_modules/_lodash@4.17.20@lodash/_cloneArrayBuffer.js");t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},"./node_modules/_lodash@4.17.20@lodash/_cloneRegExp.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_cloneRegExp.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},"./node_modules/_lodash@4.17.20@lodash/_cloneSymbol.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_cloneSymbol.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_Symbol */"./node_modules/_lodash@4.17.20@lodash/_Symbol.js"),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},"./node_modules/_lodash@4.17.20@lodash/_cloneTypedArray.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_cloneTypedArray.js ***!
- \*****************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_cloneArrayBuffer */"./node_modules/_lodash@4.17.20@lodash/_cloneArrayBuffer.js");t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},"./node_modules/_lodash@4.17.20@lodash/_compareAscending.js":
- /*!******************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_compareAscending.js ***!
- \******************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./isSymbol */"./node_modules/_lodash@4.17.20@lodash/isSymbol.js");t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,a=r(t),s=void 0!==e,l=null===e,u=e==e,c=r(e);if(!l&&!c&&!a&&t>e||a&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!c&&t<e||c&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!u)return-1}return 0}},"./node_modules/_lodash@4.17.20@lodash/_compareMultiple.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_compareMultiple.js ***!
- \*****************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_compareAscending */"./node_modules/_lodash@4.17.20@lodash/_compareAscending.js");t.exports=function(t,e,n){for(var i=-1,o=t.criteria,a=e.criteria,s=o.length,l=n.length;++i<s;){var u=r(o[i],a[i]);if(u)return i>=l?u:u*("desc"==n[i]?-1:1)}return t.index-e.index}},"./node_modules/_lodash@4.17.20@lodash/_copyArray.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_copyArray.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},"./node_modules/_lodash@4.17.20@lodash/_copyObject.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_copyObject.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_assignValue */"./node_modules/_lodash@4.17.20@lodash/_assignValue.js"),i=n(/*! ./_baseAssignValue */"./node_modules/_lodash@4.17.20@lodash/_baseAssignValue.js");t.exports=function(t,e,n,o){var a=!n;n||(n={});for(var s=-1,l=e.length;++s<l;){var u=e[s],c=o?o(n[u],t[u],u,n,t):void 0;void 0===c&&(c=t[u]),a?i(n,u,c):r(n,u,c)}return n}},"./node_modules/_lodash@4.17.20@lodash/_copySymbols.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_copySymbols.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_copyObject */"./node_modules/_lodash@4.17.20@lodash/_copyObject.js"),i=n(/*! ./_getSymbols */"./node_modules/_lodash@4.17.20@lodash/_getSymbols.js");t.exports=function(t,e){return r(t,i(t),e)}},"./node_modules/_lodash@4.17.20@lodash/_copySymbolsIn.js":
- /*!***************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_copySymbolsIn.js ***!
- \***************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_copyObject */"./node_modules/_lodash@4.17.20@lodash/_copyObject.js"),i=n(/*! ./_getSymbolsIn */"./node_modules/_lodash@4.17.20@lodash/_getSymbolsIn.js");t.exports=function(t,e){return r(t,i(t),e)}},"./node_modules/_lodash@4.17.20@lodash/_coreJsData.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_coreJsData.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_root */"./node_modules/_lodash@4.17.20@lodash/_root.js")["__core-js_shared__"];t.exports=r},"./node_modules/_lodash@4.17.20@lodash/_createAssigner.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_createAssigner.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseRest */"./node_modules/_lodash@4.17.20@lodash/_baseRest.js"),i=n(/*! ./_isIterateeCall */"./node_modules/_lodash@4.17.20@lodash/_isIterateeCall.js");t.exports=function(t){return r((function(e,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r<o;){var l=n[r];l&&t(e,l,r,a)}return e}))}},"./node_modules/_lodash@4.17.20@lodash/_createBaseEach.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_createBaseEach.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./isArrayLike */"./node_modules/_lodash@4.17.20@lodash/isArrayLike.js");t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,a=e?o:-1,s=Object(n);(e?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},"./node_modules/_lodash@4.17.20@lodash/_createBaseFor.js":
- /*!***************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_createBaseFor.js ***!
- \***************************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var l=a[t?s:++i];if(!1===n(o[l],l,o))break}return e}}},"./node_modules/_lodash@4.17.20@lodash/_createFind.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_createFind.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseIteratee */"./node_modules/_lodash@4.17.20@lodash/_baseIteratee.js"),i=n(/*! ./isArrayLike */"./node_modules/_lodash@4.17.20@lodash/isArrayLike.js"),o=n(/*! ./keys */"./node_modules/_lodash@4.17.20@lodash/keys.js");t.exports=function(t){return function(e,n,a){var s=Object(e);if(!i(e)){var l=r(n,3);e=o(e),n=function(t){return l(s[t],t,s)}}var u=t(e,n,a);return u>-1?s[l?e[u]:u]:void 0}}},"./node_modules/_lodash@4.17.20@lodash/_createRange.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_createRange.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseRange */"./node_modules/_lodash@4.17.20@lodash/_baseRange.js"),i=n(/*! ./_isIterateeCall */"./node_modules/_lodash@4.17.20@lodash/_isIterateeCall.js"),o=n(/*! ./toFinite */"./node_modules/_lodash@4.17.20@lodash/toFinite.js");t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?e<n?1:-1:o(a),r(e,n,a,t)}}},"./node_modules/_lodash@4.17.20@lodash/_createSet.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_createSet.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_Set */"./node_modules/_lodash@4.17.20@lodash/_Set.js"),i=n(/*! ./noop */"./node_modules/_lodash@4.17.20@lodash/noop.js"),o=n(/*! ./_setToArray */"./node_modules/_lodash@4.17.20@lodash/_setToArray.js"),a=r&&1/o(new r([,-0]))[1]==1/0?function(t){return new r(t)}:i;t.exports=a},"./node_modules/_lodash@4.17.20@lodash/_defineProperty.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_defineProperty.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_getNative */"./node_modules/_lodash@4.17.20@lodash/_getNative.js"),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=i},"./node_modules/_lodash@4.17.20@lodash/_equalArrays.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_equalArrays.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_SetCache */"./node_modules/_lodash@4.17.20@lodash/_SetCache.js"),i=n(/*! ./_arraySome */"./node_modules/_lodash@4.17.20@lodash/_arraySome.js"),o=n(/*! ./_cacheHas */"./node_modules/_lodash@4.17.20@lodash/_cacheHas.js");t.exports=function(t,e,n,a,s,l){var u=1&n,c=t.length,h=e.length;if(c!=h&&!(u&&h>c))return!1;var f=l.get(t),d=l.get(e);if(f&&d)return f==e&&d==t;var p=-1,g=!0,v=2&n?new r:void 0;for(l.set(t,e),l.set(e,t);++p<c;){var y=t[p],m=e[p];if(a)var _=u?a(m,y,p,e,t,l):a(y,m,p,t,e,l);if(void 0!==_){if(_)continue;g=!1;break}if(v){if(!i(e,(function(t,e){if(!o(v,e)&&(y===t||s(y,t,n,a,l)))return v.push(e)}))){g=!1;break}}else if(y!==m&&!s(y,m,n,a,l)){g=!1;break}}return l.delete(t),l.delete(e),g}},"./node_modules/_lodash@4.17.20@lodash/_equalByTag.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_equalByTag.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_Symbol */"./node_modules/_lodash@4.17.20@lodash/_Symbol.js"),i=n(/*! ./_Uint8Array */"./node_modules/_lodash@4.17.20@lodash/_Uint8Array.js"),o=n(/*! ./eq */"./node_modules/_lodash@4.17.20@lodash/eq.js"),a=n(/*! ./_equalArrays */"./node_modules/_lodash@4.17.20@lodash/_equalArrays.js"),s=n(/*! ./_mapToArray */"./node_modules/_lodash@4.17.20@lodash/_mapToArray.js"),l=n(/*! ./_setToArray */"./node_modules/_lodash@4.17.20@lodash/_setToArray.js"),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;t.exports=function(t,e,n,r,u,h,f){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!h(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=s;case"[object Set]":var p=1&r;if(d||(d=l),t.size!=e.size&&!p)return!1;var g=f.get(t);if(g)return g==e;r|=2,f.set(t,e);var v=a(d(t),d(e),r,u,h,f);return f.delete(t),v;case"[object Symbol]":if(c)return c.call(t)==c.call(e)}return!1}},"./node_modules/_lodash@4.17.20@lodash/_equalObjects.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_equalObjects.js ***!
- \**************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_getAllKeys */"./node_modules/_lodash@4.17.20@lodash/_getAllKeys.js"),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,a,s){var l=1&n,u=r(t),c=u.length;if(c!=r(e).length&&!l)return!1;for(var h=c;h--;){var f=u[h];if(!(l?f in e:i.call(e,f)))return!1}var d=s.get(t),p=s.get(e);if(d&&p)return d==e&&p==t;var g=!0;s.set(t,e),s.set(e,t);for(var v=l;++h<c;){var y=t[f=u[h]],m=e[f];if(o)var _=l?o(m,y,f,e,t,s):o(y,m,f,t,e,s);if(!(void 0===_?y===m||a(y,m,n,o,s):_)){g=!1;break}v||(v="constructor"==f)}if(g&&!v){var x=t.constructor,b=e.constructor;x==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof b&&b instanceof b||(g=!1)}return s.delete(t),s.delete(e),g}},"./node_modules/_lodash@4.17.20@lodash/_flatRest.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_flatRest.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./flatten */"./node_modules/_lodash@4.17.20@lodash/flatten.js"),i=n(/*! ./_overRest */"./node_modules/_lodash@4.17.20@lodash/_overRest.js"),o=n(/*! ./_setToString */"./node_modules/_lodash@4.17.20@lodash/_setToString.js");t.exports=function(t){return o(i(t,void 0,r),t+"")}},"./node_modules/_lodash@4.17.20@lodash/_freeGlobal.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_freeGlobal.js ***!
- \************************************************************/
- /*! no static exports found */function(e,n,r){(function(n){var r="object"==t(n)&&n&&n.Object===Object&&n;e.exports=r}).call(this,r(/*! ./../_webpack@4.46.0@webpack/buildin/global.js */"./node_modules/_webpack@4.46.0@webpack/buildin/global.js"))},"./node_modules/_lodash@4.17.20@lodash/_getAllKeys.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_getAllKeys.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseGetAllKeys */"./node_modules/_lodash@4.17.20@lodash/_baseGetAllKeys.js"),i=n(/*! ./_getSymbols */"./node_modules/_lodash@4.17.20@lodash/_getSymbols.js"),o=n(/*! ./keys */"./node_modules/_lodash@4.17.20@lodash/keys.js");t.exports=function(t){return r(t,o,i)}},"./node_modules/_lodash@4.17.20@lodash/_getAllKeysIn.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_getAllKeysIn.js ***!
- \**************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseGetAllKeys */"./node_modules/_lodash@4.17.20@lodash/_baseGetAllKeys.js"),i=n(/*! ./_getSymbolsIn */"./node_modules/_lodash@4.17.20@lodash/_getSymbolsIn.js"),o=n(/*! ./keysIn */"./node_modules/_lodash@4.17.20@lodash/keysIn.js");t.exports=function(t){return r(t,o,i)}},"./node_modules/_lodash@4.17.20@lodash/_getMapData.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_getMapData.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_isKeyable */"./node_modules/_lodash@4.17.20@lodash/_isKeyable.js");t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},"./node_modules/_lodash@4.17.20@lodash/_getMatchData.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_getMatchData.js ***!
- \**************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_isStrictComparable */"./node_modules/_lodash@4.17.20@lodash/_isStrictComparable.js"),i=n(/*! ./keys */"./node_modules/_lodash@4.17.20@lodash/keys.js");t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],a=t[o];e[n]=[o,a,r(a)]}return e}},"./node_modules/_lodash@4.17.20@lodash/_getNative.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_getNative.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseIsNative */"./node_modules/_lodash@4.17.20@lodash/_baseIsNative.js"),i=n(/*! ./_getValue */"./node_modules/_lodash@4.17.20@lodash/_getValue.js");t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},"./node_modules/_lodash@4.17.20@lodash/_getPrototype.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_getPrototype.js ***!
- \**************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_overArg */"./node_modules/_lodash@4.17.20@lodash/_overArg.js")(Object.getPrototypeOf,Object);t.exports=r},"./node_modules/_lodash@4.17.20@lodash/_getRawTag.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_getRawTag.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_Symbol */"./node_modules/_lodash@4.17.20@lodash/_Symbol.js"),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(l){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},"./node_modules/_lodash@4.17.20@lodash/_getSymbols.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_getSymbols.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_arrayFilter */"./node_modules/_lodash@4.17.20@lodash/_arrayFilter.js"),i=n(/*! ./stubArray */"./node_modules/_lodash@4.17.20@lodash/stubArray.js"),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return o.call(t,e)})))}:i;t.exports=s},"./node_modules/_lodash@4.17.20@lodash/_getSymbolsIn.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_getSymbolsIn.js ***!
- \**************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_arrayPush */"./node_modules/_lodash@4.17.20@lodash/_arrayPush.js"),i=n(/*! ./_getPrototype */"./node_modules/_lodash@4.17.20@lodash/_getPrototype.js"),o=n(/*! ./_getSymbols */"./node_modules/_lodash@4.17.20@lodash/_getSymbols.js"),a=n(/*! ./stubArray */"./node_modules/_lodash@4.17.20@lodash/stubArray.js"),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:a;t.exports=s},"./node_modules/_lodash@4.17.20@lodash/_getTag.js":
- /*!********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_getTag.js ***!
- \********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_DataView */"./node_modules/_lodash@4.17.20@lodash/_DataView.js"),i=n(/*! ./_Map */"./node_modules/_lodash@4.17.20@lodash/_Map.js"),o=n(/*! ./_Promise */"./node_modules/_lodash@4.17.20@lodash/_Promise.js"),a=n(/*! ./_Set */"./node_modules/_lodash@4.17.20@lodash/_Set.js"),s=n(/*! ./_WeakMap */"./node_modules/_lodash@4.17.20@lodash/_WeakMap.js"),l=n(/*! ./_baseGetTag */"./node_modules/_lodash@4.17.20@lodash/_baseGetTag.js"),u=n(/*! ./_toSource */"./node_modules/_lodash@4.17.20@lodash/_toSource.js"),c="[object Map]",h="[object Promise]",f="[object Set]",d="[object WeakMap]",p="[object DataView]",g=u(r),v=u(i),y=u(o),m=u(a),_=u(s),x=l;(r&&x(new r(new ArrayBuffer(1)))!=p||i&&x(new i)!=c||o&&x(o.resolve())!=h||a&&x(new a)!=f||s&&x(new s)!=d)&&(x=function(t){var e=l(t),n="[object Object]"==e?t.constructor:void 0,r=n?u(n):"";if(r)switch(r){case g:return p;case v:return c;case y:return h;case m:return f;case _:return d}return e}),t.exports=x},"./node_modules/_lodash@4.17.20@lodash/_getValue.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_getValue.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},"./node_modules/_lodash@4.17.20@lodash/_hasPath.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_hasPath.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_castPath */"./node_modules/_lodash@4.17.20@lodash/_castPath.js"),i=n(/*! ./isArguments */"./node_modules/_lodash@4.17.20@lodash/isArguments.js"),o=n(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js"),a=n(/*! ./_isIndex */"./node_modules/_lodash@4.17.20@lodash/_isIndex.js"),s=n(/*! ./isLength */"./node_modules/_lodash@4.17.20@lodash/isLength.js"),l=n(/*! ./_toKey */"./node_modules/_lodash@4.17.20@lodash/_toKey.js");t.exports=function(t,e,n){for(var u=-1,c=(e=r(e,t)).length,h=!1;++u<c;){var f=l(e[u]);if(!(h=null!=t&&n(t,f)))break;t=t[f]}return h||++u!=c?h:!!(c=null==t?0:t.length)&&s(c)&&a(f,c)&&(o(t)||i(t))}},"./node_modules/_lodash@4.17.20@lodash/_hasUnicode.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_hasUnicode.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},"./node_modules/_lodash@4.17.20@lodash/_hashClear.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_hashClear.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_nativeCreate */"./node_modules/_lodash@4.17.20@lodash/_nativeCreate.js");t.exports=function(){this.__data__=r?r(null):{},this.size=0}},"./node_modules/_lodash@4.17.20@lodash/_hashDelete.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_hashDelete.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},"./node_modules/_lodash@4.17.20@lodash/_hashGet.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_hashGet.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_nativeCreate */"./node_modules/_lodash@4.17.20@lodash/_nativeCreate.js"),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},"./node_modules/_lodash@4.17.20@lodash/_hashHas.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_hashHas.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_nativeCreate */"./node_modules/_lodash@4.17.20@lodash/_nativeCreate.js"),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},"./node_modules/_lodash@4.17.20@lodash/_hashSet.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_hashSet.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_nativeCreate */"./node_modules/_lodash@4.17.20@lodash/_nativeCreate.js");t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},"./node_modules/_lodash@4.17.20@lodash/_initCloneArray.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_initCloneArray.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},"./node_modules/_lodash@4.17.20@lodash/_initCloneByTag.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_initCloneByTag.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_cloneArrayBuffer */"./node_modules/_lodash@4.17.20@lodash/_cloneArrayBuffer.js"),i=n(/*! ./_cloneDataView */"./node_modules/_lodash@4.17.20@lodash/_cloneDataView.js"),o=n(/*! ./_cloneRegExp */"./node_modules/_lodash@4.17.20@lodash/_cloneRegExp.js"),a=n(/*! ./_cloneSymbol */"./node_modules/_lodash@4.17.20@lodash/_cloneSymbol.js"),s=n(/*! ./_cloneTypedArray */"./node_modules/_lodash@4.17.20@lodash/_cloneTypedArray.js");t.exports=function(t,e,n){var l=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new l(+t);case"[object DataView]":return i(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(t);case"[object RegExp]":return o(t);case"[object Symbol]":return a(t)}}},"./node_modules/_lodash@4.17.20@lodash/_initCloneObject.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_initCloneObject.js ***!
- \*****************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseCreate */"./node_modules/_lodash@4.17.20@lodash/_baseCreate.js"),i=n(/*! ./_getPrototype */"./node_modules/_lodash@4.17.20@lodash/_getPrototype.js"),o=n(/*! ./_isPrototype */"./node_modules/_lodash@4.17.20@lodash/_isPrototype.js");t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},"./node_modules/_lodash@4.17.20@lodash/_isFlattenable.js":
- /*!***************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_isFlattenable.js ***!
- \***************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_Symbol */"./node_modules/_lodash@4.17.20@lodash/_Symbol.js"),i=n(/*! ./isArguments */"./node_modules/_lodash@4.17.20@lodash/isArguments.js"),o=n(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js"),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},"./node_modules/_lodash@4.17.20@lodash/_isIndex.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_isIndex.js ***!
- \*********************************************************/
- /*! no static exports found */function(e,n){var r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var i=t(e);return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&r.test(e))&&e>-1&&e%1==0&&e<n}},"./node_modules/_lodash@4.17.20@lodash/_isIterateeCall.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_isIterateeCall.js ***!
- \****************************************************************/
- /*! no static exports found */function(e,n,r){var i=r(/*! ./eq */"./node_modules/_lodash@4.17.20@lodash/eq.js"),o=r(/*! ./isArrayLike */"./node_modules/_lodash@4.17.20@lodash/isArrayLike.js"),a=r(/*! ./_isIndex */"./node_modules/_lodash@4.17.20@lodash/_isIndex.js"),s=r(/*! ./isObject */"./node_modules/_lodash@4.17.20@lodash/isObject.js");e.exports=function(e,n,r){if(!s(r))return!1;var l=t(n);return!!("number"==l?o(r)&&a(n,r.length):"string"==l&&n in r)&&i(r[n],e)}},"./node_modules/_lodash@4.17.20@lodash/_isKey.js":
- /*!*******************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_isKey.js ***!
- \*******************************************************/
- /*! no static exports found */function(e,n,r){var i=r(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js"),o=r(/*! ./isSymbol */"./node_modules/_lodash@4.17.20@lodash/isSymbol.js"),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,n){if(i(e))return!1;var r=t(e);return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||s.test(e)||!a.test(e)||null!=n&&e in Object(n)}},"./node_modules/_lodash@4.17.20@lodash/_isKeyable.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_isKeyable.js ***!
- \***********************************************************/
- /*! no static exports found */function(e,n){e.exports=function(e){var n=t(e);return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e}},"./node_modules/_lodash@4.17.20@lodash/_isMasked.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_isMasked.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e,n){var r,i=n(/*! ./_coreJsData */"./node_modules/_lodash@4.17.20@lodash/_coreJsData.js"),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},"./node_modules/_lodash@4.17.20@lodash/_isPrototype.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_isPrototype.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},"./node_modules/_lodash@4.17.20@lodash/_isStrictComparable.js":
- /*!********************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_isStrictComparable.js ***!
- \********************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./isObject */"./node_modules/_lodash@4.17.20@lodash/isObject.js");t.exports=function(t){return t==t&&!r(t)}},"./node_modules/_lodash@4.17.20@lodash/_listCacheClear.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_listCacheClear.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e){t.exports=function(){this.__data__=[],this.size=0}},"./node_modules/_lodash@4.17.20@lodash/_listCacheDelete.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_listCacheDelete.js ***!
- \*****************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_assocIndexOf */"./node_modules/_lodash@4.17.20@lodash/_assocIndexOf.js"),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},"./node_modules/_lodash@4.17.20@lodash/_listCacheGet.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_listCacheGet.js ***!
- \**************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_assocIndexOf */"./node_modules/_lodash@4.17.20@lodash/_assocIndexOf.js");t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},"./node_modules/_lodash@4.17.20@lodash/_listCacheHas.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_listCacheHas.js ***!
- \**************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_assocIndexOf */"./node_modules/_lodash@4.17.20@lodash/_assocIndexOf.js");t.exports=function(t){return r(this.__data__,t)>-1}},"./node_modules/_lodash@4.17.20@lodash/_listCacheSet.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_listCacheSet.js ***!
- \**************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_assocIndexOf */"./node_modules/_lodash@4.17.20@lodash/_assocIndexOf.js");t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},"./node_modules/_lodash@4.17.20@lodash/_mapCacheClear.js":
- /*!***************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_mapCacheClear.js ***!
- \***************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_Hash */"./node_modules/_lodash@4.17.20@lodash/_Hash.js"),i=n(/*! ./_ListCache */"./node_modules/_lodash@4.17.20@lodash/_ListCache.js"),o=n(/*! ./_Map */"./node_modules/_lodash@4.17.20@lodash/_Map.js");t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},"./node_modules/_lodash@4.17.20@lodash/_mapCacheDelete.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_mapCacheDelete.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_getMapData */"./node_modules/_lodash@4.17.20@lodash/_getMapData.js");t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},"./node_modules/_lodash@4.17.20@lodash/_mapCacheGet.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_mapCacheGet.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_getMapData */"./node_modules/_lodash@4.17.20@lodash/_getMapData.js");t.exports=function(t){return r(this,t).get(t)}},"./node_modules/_lodash@4.17.20@lodash/_mapCacheHas.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_mapCacheHas.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_getMapData */"./node_modules/_lodash@4.17.20@lodash/_getMapData.js");t.exports=function(t){return r(this,t).has(t)}},"./node_modules/_lodash@4.17.20@lodash/_mapCacheSet.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_mapCacheSet.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_getMapData */"./node_modules/_lodash@4.17.20@lodash/_getMapData.js");t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},"./node_modules/_lodash@4.17.20@lodash/_mapToArray.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_mapToArray.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},"./node_modules/_lodash@4.17.20@lodash/_matchesStrictComparable.js":
- /*!*************************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_matchesStrictComparable.js ***!
- \*************************************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},"./node_modules/_lodash@4.17.20@lodash/_memoizeCapped.js":
- /*!***************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_memoizeCapped.js ***!
- \***************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./memoize */"./node_modules/_lodash@4.17.20@lodash/memoize.js");t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},"./node_modules/_lodash@4.17.20@lodash/_nativeCreate.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_nativeCreate.js ***!
- \**************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_getNative */"./node_modules/_lodash@4.17.20@lodash/_getNative.js")(Object,"create");t.exports=r},"./node_modules/_lodash@4.17.20@lodash/_nativeKeys.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_nativeKeys.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_overArg */"./node_modules/_lodash@4.17.20@lodash/_overArg.js")(Object.keys,Object);t.exports=r},"./node_modules/_lodash@4.17.20@lodash/_nativeKeysIn.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_nativeKeysIn.js ***!
- \**************************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},"./node_modules/_lodash@4.17.20@lodash/_nodeUtil.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_nodeUtil.js ***!
- \**********************************************************/
- /*! no static exports found */function(e,n,r){(function(e){var i=r(/*! ./_freeGlobal */"./node_modules/_lodash@4.17.20@lodash/_freeGlobal.js"),o=n&&!n.nodeType&&n,a=o&&"object"==t(e)&&e&&!e.nodeType&&e,s=a&&a.exports===o&&i.process,l=function(){try{var t=a&&a.require&&a.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=l}).call(this,r(/*! ./../_webpack@4.46.0@webpack/buildin/module.js */"./node_modules/_webpack@4.46.0@webpack/buildin/module.js")(e))},"./node_modules/_lodash@4.17.20@lodash/_objectToString.js":
- /*!****************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_objectToString.js ***!
- \****************************************************************/
- /*! no static exports found */function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},"./node_modules/_lodash@4.17.20@lodash/_overArg.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_overArg.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},"./node_modules/_lodash@4.17.20@lodash/_overRest.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_overRest.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_apply */"./node_modules/_lodash@4.17.20@lodash/_apply.js"),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),l=Array(s);++a<s;)l[a]=o[e+a];a=-1;for(var u=Array(e+1);++a<e;)u[a]=o[a];return u[e]=n(l),r(t,this,u)}}},"./node_modules/_lodash@4.17.20@lodash/_root.js":
- /*!******************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_root.js ***!
- \******************************************************/
- /*! no static exports found */function(e,n,r){var i=r(/*! ./_freeGlobal */"./node_modules/_lodash@4.17.20@lodash/_freeGlobal.js"),o="object"==("undefined"==typeof self?"undefined":t(self))&&self&&self.Object===Object&&self,a=i||o||Function("return this")();e.exports=a},"./node_modules/_lodash@4.17.20@lodash/_safeGet.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_safeGet.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},"./node_modules/_lodash@4.17.20@lodash/_setCacheAdd.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_setCacheAdd.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},"./node_modules/_lodash@4.17.20@lodash/_setCacheHas.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_setCacheHas.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t){return this.__data__.has(t)}},"./node_modules/_lodash@4.17.20@lodash/_setToArray.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_setToArray.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},"./node_modules/_lodash@4.17.20@lodash/_setToString.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_setToString.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseSetToString */"./node_modules/_lodash@4.17.20@lodash/_baseSetToString.js"),i=n(/*! ./_shortOut */"./node_modules/_lodash@4.17.20@lodash/_shortOut.js")(r);t.exports=i},"./node_modules/_lodash@4.17.20@lodash/_shortOut.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_shortOut.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e){var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},"./node_modules/_lodash@4.17.20@lodash/_stackClear.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_stackClear.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_ListCache */"./node_modules/_lodash@4.17.20@lodash/_ListCache.js");t.exports=function(){this.__data__=new r,this.size=0}},"./node_modules/_lodash@4.17.20@lodash/_stackDelete.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_stackDelete.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},"./node_modules/_lodash@4.17.20@lodash/_stackGet.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_stackGet.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t){return this.__data__.get(t)}},"./node_modules/_lodash@4.17.20@lodash/_stackHas.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_stackHas.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t){return this.__data__.has(t)}},"./node_modules/_lodash@4.17.20@lodash/_stackSet.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_stackSet.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_ListCache */"./node_modules/_lodash@4.17.20@lodash/_ListCache.js"),i=n(/*! ./_Map */"./node_modules/_lodash@4.17.20@lodash/_Map.js"),o=n(/*! ./_MapCache */"./node_modules/_lodash@4.17.20@lodash/_MapCache.js");t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},"./node_modules/_lodash@4.17.20@lodash/_strictIndexOf.js":
- /*!***************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_strictIndexOf.js ***!
- \***************************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},"./node_modules/_lodash@4.17.20@lodash/_stringSize.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_stringSize.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_asciiSize */"./node_modules/_lodash@4.17.20@lodash/_asciiSize.js"),i=n(/*! ./_hasUnicode */"./node_modules/_lodash@4.17.20@lodash/_hasUnicode.js"),o=n(/*! ./_unicodeSize */"./node_modules/_lodash@4.17.20@lodash/_unicodeSize.js");t.exports=function(t){return i(t)?o(t):r(t)}},"./node_modules/_lodash@4.17.20@lodash/_stringToPath.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_stringToPath.js ***!
- \**************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_memoizeCapped */"./node_modules/_lodash@4.17.20@lodash/_memoizeCapped.js"),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=a},"./node_modules/_lodash@4.17.20@lodash/_toKey.js":
- /*!*******************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_toKey.js ***!
- \*******************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./isSymbol */"./node_modules/_lodash@4.17.20@lodash/isSymbol.js");t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},"./node_modules/_lodash@4.17.20@lodash/_toSource.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_toSource.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(e){}try{return t+""}catch(e){}}return""}},"./node_modules/_lodash@4.17.20@lodash/_unicodeSize.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/_unicodeSize.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e){var n="\\ud800-\\udfff",r="["+n+"]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",a="[^"+n+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+i+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",h=c+u+"(?:\\u200d(?:"+[a,s,l].join("|")+")"+c+u+")*",f="(?:"+[a+i+"?",i,s,l,r].join("|")+")",d=RegExp(o+"(?="+o+")|"+f+h,"g");t.exports=function(t){for(var e=d.lastIndex=0;d.test(t);)++e;return e}},"./node_modules/_lodash@4.17.20@lodash/clone.js":
- /*!******************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/clone.js ***!
- \******************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseClone */"./node_modules/_lodash@4.17.20@lodash/_baseClone.js");t.exports=function(t){return r(t,4)}},"./node_modules/_lodash@4.17.20@lodash/cloneDeep.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/cloneDeep.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseClone */"./node_modules/_lodash@4.17.20@lodash/_baseClone.js");t.exports=function(t){return r(t,5)}},"./node_modules/_lodash@4.17.20@lodash/constant.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/constant.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t){return function(){return t}}},"./node_modules/_lodash@4.17.20@lodash/defaults.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/defaults.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseRest */"./node_modules/_lodash@4.17.20@lodash/_baseRest.js"),i=n(/*! ./eq */"./node_modules/_lodash@4.17.20@lodash/eq.js"),o=n(/*! ./_isIterateeCall */"./node_modules/_lodash@4.17.20@lodash/_isIterateeCall.js"),a=n(/*! ./keysIn */"./node_modules/_lodash@4.17.20@lodash/keysIn.js"),s=Object.prototype,l=s.hasOwnProperty,u=r((function(t,e){t=Object(t);var n=-1,r=e.length,u=r>2?e[2]:void 0;for(u&&o(e[0],e[1],u)&&(r=1);++n<r;)for(var c=e[n],h=a(c),f=-1,d=h.length;++f<d;){var p=h[f],g=t[p];(void 0===g||i(g,s[p])&&!l.call(t,p))&&(t[p]=c[p])}return t}));t.exports=u},"./node_modules/_lodash@4.17.20@lodash/each.js":
- /*!*****************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/each.js ***!
- \*****************************************************/
- /*! no static exports found */function(t,e,n){t.exports=n(/*! ./forEach */"./node_modules/_lodash@4.17.20@lodash/forEach.js")},"./node_modules/_lodash@4.17.20@lodash/eq.js":
- /*!***************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/eq.js ***!
- \***************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},"./node_modules/_lodash@4.17.20@lodash/filter.js":
- /*!*******************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/filter.js ***!
- \*******************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_arrayFilter */"./node_modules/_lodash@4.17.20@lodash/_arrayFilter.js"),i=n(/*! ./_baseFilter */"./node_modules/_lodash@4.17.20@lodash/_baseFilter.js"),o=n(/*! ./_baseIteratee */"./node_modules/_lodash@4.17.20@lodash/_baseIteratee.js"),a=n(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js");t.exports=function(t,e){return(a(t)?r:i)(t,o(e,3))}},"./node_modules/_lodash@4.17.20@lodash/find.js":
- /*!*****************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/find.js ***!
- \*****************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_createFind */"./node_modules/_lodash@4.17.20@lodash/_createFind.js")(n(/*! ./findIndex */"./node_modules/_lodash@4.17.20@lodash/findIndex.js"));t.exports=r},"./node_modules/_lodash@4.17.20@lodash/findIndex.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/findIndex.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseFindIndex */"./node_modules/_lodash@4.17.20@lodash/_baseFindIndex.js"),i=n(/*! ./_baseIteratee */"./node_modules/_lodash@4.17.20@lodash/_baseIteratee.js"),o=n(/*! ./toInteger */"./node_modules/_lodash@4.17.20@lodash/toInteger.js"),a=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var l=null==n?0:o(n);return l<0&&(l=a(s+l,0)),r(t,i(e,3),l)}},"./node_modules/_lodash@4.17.20@lodash/flatten.js":
- /*!********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/flatten.js ***!
- \********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseFlatten */"./node_modules/_lodash@4.17.20@lodash/_baseFlatten.js");t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},"./node_modules/_lodash@4.17.20@lodash/forEach.js":
- /*!********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/forEach.js ***!
- \********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_arrayEach */"./node_modules/_lodash@4.17.20@lodash/_arrayEach.js"),i=n(/*! ./_baseEach */"./node_modules/_lodash@4.17.20@lodash/_baseEach.js"),o=n(/*! ./_castFunction */"./node_modules/_lodash@4.17.20@lodash/_castFunction.js"),a=n(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js");t.exports=function(t,e){return(a(t)?r:i)(t,o(e))}},"./node_modules/_lodash@4.17.20@lodash/forIn.js":
- /*!******************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/forIn.js ***!
- \******************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseFor */"./node_modules/_lodash@4.17.20@lodash/_baseFor.js"),i=n(/*! ./_castFunction */"./node_modules/_lodash@4.17.20@lodash/_castFunction.js"),o=n(/*! ./keysIn */"./node_modules/_lodash@4.17.20@lodash/keysIn.js");t.exports=function(t,e){return null==t?t:r(t,i(e),o)}},"./node_modules/_lodash@4.17.20@lodash/get.js":
- /*!****************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/get.js ***!
- \****************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseGet */"./node_modules/_lodash@4.17.20@lodash/_baseGet.js");t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},"./node_modules/_lodash@4.17.20@lodash/has.js":
- /*!****************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/has.js ***!
- \****************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseHas */"./node_modules/_lodash@4.17.20@lodash/_baseHas.js"),i=n(/*! ./_hasPath */"./node_modules/_lodash@4.17.20@lodash/_hasPath.js");t.exports=function(t,e){return null!=t&&i(t,e,r)}},"./node_modules/_lodash@4.17.20@lodash/hasIn.js":
- /*!******************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/hasIn.js ***!
- \******************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseHasIn */"./node_modules/_lodash@4.17.20@lodash/_baseHasIn.js"),i=n(/*! ./_hasPath */"./node_modules/_lodash@4.17.20@lodash/_hasPath.js");t.exports=function(t,e){return null!=t&&i(t,e,r)}},"./node_modules/_lodash@4.17.20@lodash/identity.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/identity.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t){return t}},"./node_modules/_lodash@4.17.20@lodash/isArguments.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/isArguments.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseIsArguments */"./node_modules/_lodash@4.17.20@lodash/_baseIsArguments.js"),i=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.20@lodash/isObjectLike.js"),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=l},"./node_modules/_lodash@4.17.20@lodash/isArray.js":
- /*!********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/isArray.js ***!
- \********************************************************/
- /*! no static exports found */function(t,e){var n=Array.isArray;t.exports=n},"./node_modules/_lodash@4.17.20@lodash/isArrayLike.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/isArrayLike.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./isFunction */"./node_modules/_lodash@4.17.20@lodash/isFunction.js"),i=n(/*! ./isLength */"./node_modules/_lodash@4.17.20@lodash/isLength.js");t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},"./node_modules/_lodash@4.17.20@lodash/isArrayLikeObject.js":
- /*!******************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/isArrayLikeObject.js ***!
- \******************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./isArrayLike */"./node_modules/_lodash@4.17.20@lodash/isArrayLike.js"),i=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.20@lodash/isObjectLike.js");t.exports=function(t){return i(t)&&r(t)}},"./node_modules/_lodash@4.17.20@lodash/isBuffer.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/isBuffer.js ***!
- \*********************************************************/
- /*! no static exports found */function(e,n,r){(function(e){var i=r(/*! ./_root */"./node_modules/_lodash@4.17.20@lodash/_root.js"),o=r(/*! ./stubFalse */"./node_modules/_lodash@4.17.20@lodash/stubFalse.js"),a=n&&!n.nodeType&&n,s=a&&"object"==t(e)&&e&&!e.nodeType&&e,l=s&&s.exports===a?i.Buffer:void 0,u=(l?l.isBuffer:void 0)||o;e.exports=u}).call(this,r(/*! ./../_webpack@4.46.0@webpack/buildin/module.js */"./node_modules/_webpack@4.46.0@webpack/buildin/module.js")(e))},"./node_modules/_lodash@4.17.20@lodash/isEmpty.js":
- /*!********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/isEmpty.js ***!
- \********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseKeys */"./node_modules/_lodash@4.17.20@lodash/_baseKeys.js"),i=n(/*! ./_getTag */"./node_modules/_lodash@4.17.20@lodash/_getTag.js"),o=n(/*! ./isArguments */"./node_modules/_lodash@4.17.20@lodash/isArguments.js"),a=n(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js"),s=n(/*! ./isArrayLike */"./node_modules/_lodash@4.17.20@lodash/isArrayLike.js"),l=n(/*! ./isBuffer */"./node_modules/_lodash@4.17.20@lodash/isBuffer.js"),u=n(/*! ./_isPrototype */"./node_modules/_lodash@4.17.20@lodash/_isPrototype.js"),c=n(/*! ./isTypedArray */"./node_modules/_lodash@4.17.20@lodash/isTypedArray.js"),h=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||l(t)||c(t)||o(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(u(t))return!r(t).length;for(var n in t)if(h.call(t,n))return!1;return!0}},"./node_modules/_lodash@4.17.20@lodash/isFunction.js":
- /*!***********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/isFunction.js ***!
- \***********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseGetTag */"./node_modules/_lodash@4.17.20@lodash/_baseGetTag.js"),i=n(/*! ./isObject */"./node_modules/_lodash@4.17.20@lodash/isObject.js");t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},"./node_modules/_lodash@4.17.20@lodash/isLength.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/isLength.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},"./node_modules/_lodash@4.17.20@lodash/isMap.js":
- /*!******************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/isMap.js ***!
- \******************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseIsMap */"./node_modules/_lodash@4.17.20@lodash/_baseIsMap.js"),i=n(/*! ./_baseUnary */"./node_modules/_lodash@4.17.20@lodash/_baseUnary.js"),o=n(/*! ./_nodeUtil */"./node_modules/_lodash@4.17.20@lodash/_nodeUtil.js"),a=o&&o.isMap,s=a?i(a):r;t.exports=s},"./node_modules/_lodash@4.17.20@lodash/isObject.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/isObject.js ***!
- \*********************************************************/
- /*! no static exports found */function(e,n){e.exports=function(e){var n=t(e);return null!=e&&("object"==n||"function"==n)}},"./node_modules/_lodash@4.17.20@lodash/isObjectLike.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/isObjectLike.js ***!
- \*************************************************************/
- /*! no static exports found */function(e,n){e.exports=function(e){return null!=e&&"object"==t(e)}},"./node_modules/_lodash@4.17.20@lodash/isPlainObject.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/isPlainObject.js ***!
- \**************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseGetTag */"./node_modules/_lodash@4.17.20@lodash/_baseGetTag.js"),i=n(/*! ./_getPrototype */"./node_modules/_lodash@4.17.20@lodash/_getPrototype.js"),o=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.20@lodash/isObjectLike.js"),a=Function.prototype,s=Object.prototype,l=a.toString,u=s.hasOwnProperty,c=l.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=u.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},"./node_modules/_lodash@4.17.20@lodash/isSet.js":
- /*!******************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/isSet.js ***!
- \******************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseIsSet */"./node_modules/_lodash@4.17.20@lodash/_baseIsSet.js"),i=n(/*! ./_baseUnary */"./node_modules/_lodash@4.17.20@lodash/_baseUnary.js"),o=n(/*! ./_nodeUtil */"./node_modules/_lodash@4.17.20@lodash/_nodeUtil.js"),a=o&&o.isSet,s=a?i(a):r;t.exports=s},"./node_modules/_lodash@4.17.20@lodash/isString.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/isString.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseGetTag */"./node_modules/_lodash@4.17.20@lodash/_baseGetTag.js"),i=n(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js"),o=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.20@lodash/isObjectLike.js");t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},"./node_modules/_lodash@4.17.20@lodash/isSymbol.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/isSymbol.js ***!
- \*********************************************************/
- /*! no static exports found */function(e,n,r){var i=r(/*! ./_baseGetTag */"./node_modules/_lodash@4.17.20@lodash/_baseGetTag.js"),o=r(/*! ./isObjectLike */"./node_modules/_lodash@4.17.20@lodash/isObjectLike.js");e.exports=function(e){return"symbol"==t(e)||o(e)&&"[object Symbol]"==i(e)}},"./node_modules/_lodash@4.17.20@lodash/isTypedArray.js":
- /*!*************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/isTypedArray.js ***!
- \*************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseIsTypedArray */"./node_modules/_lodash@4.17.20@lodash/_baseIsTypedArray.js"),i=n(/*! ./_baseUnary */"./node_modules/_lodash@4.17.20@lodash/_baseUnary.js"),o=n(/*! ./_nodeUtil */"./node_modules/_lodash@4.17.20@lodash/_nodeUtil.js"),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},"./node_modules/_lodash@4.17.20@lodash/isUndefined.js":
- /*!************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/isUndefined.js ***!
- \************************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t){return void 0===t}},"./node_modules/_lodash@4.17.20@lodash/keys.js":
- /*!*****************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/keys.js ***!
- \*****************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_arrayLikeKeys */"./node_modules/_lodash@4.17.20@lodash/_arrayLikeKeys.js"),i=n(/*! ./_baseKeys */"./node_modules/_lodash@4.17.20@lodash/_baseKeys.js"),o=n(/*! ./isArrayLike */"./node_modules/_lodash@4.17.20@lodash/isArrayLike.js");t.exports=function(t){return o(t)?r(t):i(t)}},"./node_modules/_lodash@4.17.20@lodash/keysIn.js":
- /*!*******************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/keysIn.js ***!
- \*******************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_arrayLikeKeys */"./node_modules/_lodash@4.17.20@lodash/_arrayLikeKeys.js"),i=n(/*! ./_baseKeysIn */"./node_modules/_lodash@4.17.20@lodash/_baseKeysIn.js"),o=n(/*! ./isArrayLike */"./node_modules/_lodash@4.17.20@lodash/isArrayLike.js");t.exports=function(t){return o(t)?r(t,!0):i(t)}},"./node_modules/_lodash@4.17.20@lodash/last.js":
- /*!*****************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/last.js ***!
- \*****************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},"./node_modules/_lodash@4.17.20@lodash/map.js":
- /*!****************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/map.js ***!
- \****************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_arrayMap */"./node_modules/_lodash@4.17.20@lodash/_arrayMap.js"),i=n(/*! ./_baseIteratee */"./node_modules/_lodash@4.17.20@lodash/_baseIteratee.js"),o=n(/*! ./_baseMap */"./node_modules/_lodash@4.17.20@lodash/_baseMap.js"),a=n(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js");t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},"./node_modules/_lodash@4.17.20@lodash/mapValues.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/mapValues.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseAssignValue */"./node_modules/_lodash@4.17.20@lodash/_baseAssignValue.js"),i=n(/*! ./_baseForOwn */"./node_modules/_lodash@4.17.20@lodash/_baseForOwn.js"),o=n(/*! ./_baseIteratee */"./node_modules/_lodash@4.17.20@lodash/_baseIteratee.js");t.exports=function(t,e){var n={};return e=o(e,3),i(t,(function(t,i,o){r(n,i,e(t,i,o))})),n}},"./node_modules/_lodash@4.17.20@lodash/max.js":
- /*!****************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/max.js ***!
- \****************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseExtremum */"./node_modules/_lodash@4.17.20@lodash/_baseExtremum.js"),i=n(/*! ./_baseGt */"./node_modules/_lodash@4.17.20@lodash/_baseGt.js"),o=n(/*! ./identity */"./node_modules/_lodash@4.17.20@lodash/identity.js");t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},"./node_modules/_lodash@4.17.20@lodash/memoize.js":
- /*!********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/memoize.js ***!
- \********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_MapCache */"./node_modules/_lodash@4.17.20@lodash/_MapCache.js");function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},"./node_modules/_lodash@4.17.20@lodash/merge.js":
- /*!******************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/merge.js ***!
- \******************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseMerge */"./node_modules/_lodash@4.17.20@lodash/_baseMerge.js"),i=n(/*! ./_createAssigner */"./node_modules/_lodash@4.17.20@lodash/_createAssigner.js")((function(t,e,n){r(t,e,n)}));t.exports=i},"./node_modules/_lodash@4.17.20@lodash/min.js":
- /*!****************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/min.js ***!
- \****************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseExtremum */"./node_modules/_lodash@4.17.20@lodash/_baseExtremum.js"),i=n(/*! ./_baseLt */"./node_modules/_lodash@4.17.20@lodash/_baseLt.js"),o=n(/*! ./identity */"./node_modules/_lodash@4.17.20@lodash/identity.js");t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},"./node_modules/_lodash@4.17.20@lodash/minBy.js":
- /*!******************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/minBy.js ***!
- \******************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseExtremum */"./node_modules/_lodash@4.17.20@lodash/_baseExtremum.js"),i=n(/*! ./_baseIteratee */"./node_modules/_lodash@4.17.20@lodash/_baseIteratee.js"),o=n(/*! ./_baseLt */"./node_modules/_lodash@4.17.20@lodash/_baseLt.js");t.exports=function(t,e){return t&&t.length?r(t,i(e,2),o):void 0}},"./node_modules/_lodash@4.17.20@lodash/noop.js":
- /*!*****************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/noop.js ***!
- \*****************************************************/
- /*! no static exports found */function(t,e){t.exports=function(){}},"./node_modules/_lodash@4.17.20@lodash/now.js":
- /*!****************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/now.js ***!
- \****************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_root */"./node_modules/_lodash@4.17.20@lodash/_root.js");t.exports=function(){return r.Date.now()}},"./node_modules/_lodash@4.17.20@lodash/pick.js":
- /*!*****************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/pick.js ***!
- \*****************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_basePick */"./node_modules/_lodash@4.17.20@lodash/_basePick.js"),i=n(/*! ./_flatRest */"./node_modules/_lodash@4.17.20@lodash/_flatRest.js")((function(t,e){return null==t?{}:r(t,e)}));t.exports=i},"./node_modules/_lodash@4.17.20@lodash/property.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/property.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseProperty */"./node_modules/_lodash@4.17.20@lodash/_baseProperty.js"),i=n(/*! ./_basePropertyDeep */"./node_modules/_lodash@4.17.20@lodash/_basePropertyDeep.js"),o=n(/*! ./_isKey */"./node_modules/_lodash@4.17.20@lodash/_isKey.js"),a=n(/*! ./_toKey */"./node_modules/_lodash@4.17.20@lodash/_toKey.js");t.exports=function(t){return o(t)?r(a(t)):i(t)}},"./node_modules/_lodash@4.17.20@lodash/range.js":
- /*!******************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/range.js ***!
- \******************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_createRange */"./node_modules/_lodash@4.17.20@lodash/_createRange.js")();t.exports=r},"./node_modules/_lodash@4.17.20@lodash/reduce.js":
- /*!*******************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/reduce.js ***!
- \*******************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_arrayReduce */"./node_modules/_lodash@4.17.20@lodash/_arrayReduce.js"),i=n(/*! ./_baseEach */"./node_modules/_lodash@4.17.20@lodash/_baseEach.js"),o=n(/*! ./_baseIteratee */"./node_modules/_lodash@4.17.20@lodash/_baseIteratee.js"),a=n(/*! ./_baseReduce */"./node_modules/_lodash@4.17.20@lodash/_baseReduce.js"),s=n(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js");t.exports=function(t,e,n){var l=s(t)?r:a,u=arguments.length<3;return l(t,o(e,4),n,u,i)}},"./node_modules/_lodash@4.17.20@lodash/size.js":
- /*!*****************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/size.js ***!
- \*****************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseKeys */"./node_modules/_lodash@4.17.20@lodash/_baseKeys.js"),i=n(/*! ./_getTag */"./node_modules/_lodash@4.17.20@lodash/_getTag.js"),o=n(/*! ./isArrayLike */"./node_modules/_lodash@4.17.20@lodash/isArrayLike.js"),a=n(/*! ./isString */"./node_modules/_lodash@4.17.20@lodash/isString.js"),s=n(/*! ./_stringSize */"./node_modules/_lodash@4.17.20@lodash/_stringSize.js");t.exports=function(t){if(null==t)return 0;if(o(t))return a(t)?s(t):t.length;var e=i(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}},"./node_modules/_lodash@4.17.20@lodash/sortBy.js":
- /*!*******************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/sortBy.js ***!
- \*******************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseFlatten */"./node_modules/_lodash@4.17.20@lodash/_baseFlatten.js"),i=n(/*! ./_baseOrderBy */"./node_modules/_lodash@4.17.20@lodash/_baseOrderBy.js"),o=n(/*! ./_baseRest */"./node_modules/_lodash@4.17.20@lodash/_baseRest.js"),a=n(/*! ./_isIterateeCall */"./node_modules/_lodash@4.17.20@lodash/_isIterateeCall.js"),s=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=s},"./node_modules/_lodash@4.17.20@lodash/stubArray.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/stubArray.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e){t.exports=function(){return[]}},"./node_modules/_lodash@4.17.20@lodash/stubFalse.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/stubFalse.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e){t.exports=function(){return!1}},"./node_modules/_lodash@4.17.20@lodash/toFinite.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/toFinite.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./toNumber */"./node_modules/_lodash@4.17.20@lodash/toNumber.js"),i=1/0;t.exports=function(t){return t?(t=r(t))===i||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},"./node_modules/_lodash@4.17.20@lodash/toInteger.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/toInteger.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./toFinite */"./node_modules/_lodash@4.17.20@lodash/toFinite.js");t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},"./node_modules/_lodash@4.17.20@lodash/toNumber.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/toNumber.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./isObject */"./node_modules/_lodash@4.17.20@lodash/isObject.js"),i=n(/*! ./isSymbol */"./node_modules/_lodash@4.17.20@lodash/isSymbol.js"),o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=s.test(t);return n||l.test(t)?u(t.slice(2),n?2:8):a.test(t)?NaN:+t}},"./node_modules/_lodash@4.17.20@lodash/toPlainObject.js":
- /*!**************************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/toPlainObject.js ***!
- \**************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_copyObject */"./node_modules/_lodash@4.17.20@lodash/_copyObject.js"),i=n(/*! ./keysIn */"./node_modules/_lodash@4.17.20@lodash/keysIn.js");t.exports=function(t){return r(t,i(t))}},"./node_modules/_lodash@4.17.20@lodash/toString.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/toString.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseToString */"./node_modules/_lodash@4.17.20@lodash/_baseToString.js");t.exports=function(t){return null==t?"":r(t)}},"./node_modules/_lodash@4.17.20@lodash/transform.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/transform.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_arrayEach */"./node_modules/_lodash@4.17.20@lodash/_arrayEach.js"),i=n(/*! ./_baseCreate */"./node_modules/_lodash@4.17.20@lodash/_baseCreate.js"),o=n(/*! ./_baseForOwn */"./node_modules/_lodash@4.17.20@lodash/_baseForOwn.js"),a=n(/*! ./_baseIteratee */"./node_modules/_lodash@4.17.20@lodash/_baseIteratee.js"),s=n(/*! ./_getPrototype */"./node_modules/_lodash@4.17.20@lodash/_getPrototype.js"),l=n(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js"),u=n(/*! ./isBuffer */"./node_modules/_lodash@4.17.20@lodash/isBuffer.js"),c=n(/*! ./isFunction */"./node_modules/_lodash@4.17.20@lodash/isFunction.js"),h=n(/*! ./isObject */"./node_modules/_lodash@4.17.20@lodash/isObject.js"),f=n(/*! ./isTypedArray */"./node_modules/_lodash@4.17.20@lodash/isTypedArray.js");t.exports=function(t,e,n){var d=l(t),p=d||u(t)||f(t);if(e=a(e,4),null==n){var g=t&&t.constructor;n=p?d?new g:[]:h(t)&&c(g)?i(s(t)):{}}return(p?r:o)(t,(function(t,r,i){return e(n,t,r,i)})),n}},"./node_modules/_lodash@4.17.20@lodash/union.js":
- /*!******************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/union.js ***!
- \******************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseFlatten */"./node_modules/_lodash@4.17.20@lodash/_baseFlatten.js"),i=n(/*! ./_baseRest */"./node_modules/_lodash@4.17.20@lodash/_baseRest.js"),o=n(/*! ./_baseUniq */"./node_modules/_lodash@4.17.20@lodash/_baseUniq.js"),a=n(/*! ./isArrayLikeObject */"./node_modules/_lodash@4.17.20@lodash/isArrayLikeObject.js"),s=i((function(t){return o(r(t,1,a,!0))}));t.exports=s},"./node_modules/_lodash@4.17.20@lodash/uniqueId.js":
- /*!*********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/uniqueId.js ***!
- \*********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./toString */"./node_modules/_lodash@4.17.20@lodash/toString.js"),i=0;t.exports=function(t){var e=++i;return r(t)+e}},"./node_modules/_lodash@4.17.20@lodash/values.js":
- /*!*******************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/values.js ***!
- \*******************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseValues */"./node_modules/_lodash@4.17.20@lodash/_baseValues.js"),i=n(/*! ./keys */"./node_modules/_lodash@4.17.20@lodash/keys.js");t.exports=function(t){return null==t?[]:r(t,i(t))}},"./node_modules/_lodash@4.17.20@lodash/zipObject.js":
- /*!**********************************************************!*\
- !*** ./node_modules/_lodash@4.17.20@lodash/zipObject.js ***!
- \**********************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! ./_assignValue */"./node_modules/_lodash@4.17.20@lodash/_assignValue.js"),i=n(/*! ./_baseZipObject */"./node_modules/_lodash@4.17.20@lodash/_baseZipObject.js");t.exports=function(t,e){return i(t||[],e||[],r)}},"./node_modules/_parse-svg-path@0.1.2@parse-svg-path/index.js":
- /*!********************************************************************!*\
- !*** ./node_modules/_parse-svg-path@0.1.2@parse-svg-path/index.js ***!
- \********************************************************************/
- /*! no static exports found */function(t,e){t.exports=function(t){var e=[];return t.replace(r,(function(t,r,o){var a=r.toLowerCase();for(o=function(t){var e=t.match(i);return e?e.map(Number):[]}(o),"m"==a&&o.length>2&&(e.push([r].concat(o.splice(0,2))),a="l",r="m"==r?"l":"L");;){if(o.length==n[a])return o.unshift(r),e.push(o);if(o.length<n[a])throw new Error("malformed path data");e.push([r].concat(o.splice(0,n[a])))}})),e};var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},r=/([astvzqmhlc])([^astvzqmhlc]*)/gi,i=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},"./node_modules/_point-at-length@1.1.0@point-at-length/index.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/_point-at-length@1.1.0@point-at-length/index.js ***!
- \**********************************************************************/
- /*! no static exports found */function(t,e,n){var r=n(/*! parse-svg-path */"./node_modules/_parse-svg-path@0.1.2@parse-svg-path/index.js"),i=n(/*! isarray */"./node_modules/_isarray@0.0.1@isarray/index.js"),o=n(/*! abs-svg-path */"./node_modules/_abs-svg-path@0.1.1@abs-svg-path/index.js");function a(t){if(!(this instanceof a))return new a(t);this._path=i(t)?t:r(t),this._path=o(this._path),this._path=function(t){for(var e,n=[],r=["L",0,0],i=0,o=t.length;i<o;i++){var a=t[i];switch(a[0]){case"M":r=["L",a[1],a[2]],n.push(a);break;case"Z":n.push(r);break;case"H":e=n[n.length-1]||["L",0,0],n.push(["L",a[1],e[e.length-1]]);break;case"V":e=n[n.length-1]||["L",0,0],n.push(["L",e[e.length-2],a[1]]);break;default:n.push(a)}}return n}(this._path),this._path=function(t){for(var e,n=0,r=0,i={S:{to:"C",x:3},T:{to:"Q",x:1}},o=0,a=t.length;o<a;o++){var s=t[o],l=i[s[0]];l&&(s[0]=l.to,e&&(e[0]===l.to?(n=2*e[l.x+2]-e[l.x],r=2*e[l.x+3]-e[l.x+1]):(n=e[e.length-2],r=e[e.length-1])),s.splice(1,0,n,r)),e=s}return t}(this._path)}function s(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}t.exports=a,a.prototype.at=function(t,e){return this._walk(t,e).pos},a.prototype.length=function(){return this._walk(null).length},a.prototype._walk=function(t,e){for(var n=[0,0],r=[0,0,0],i=[0,0],o=0,a=0;a<this._path.length;a++){var l=this._path[a];if("M"===l[0]){if(n[0]=l[1],n[1]=l[2],0===t)return{length:o,pos:n}}else if("C"===l[0]){r[0]=i[0]=n[0],r[1]=i[1]=n[1],r[2]=o;for(var u=100,c=0;c<=u;c++){var h=g(l,p=c/u),f=v(l,p);if(o+=s(n[0],n[1],h,f),n[0]=h,n[1]=f,"number"==typeof t&&o>=t){var d=(o-t)/(o-r[2]);return{length:o,pos:[n[0]*(1-d)+r[0]*d,n[1]*(1-d)+r[1]*d]}}r[0]=n[0],r[1]=n[1],r[2]=o}}else if("Q"===l[0])for(r[0]=i[0]=n[0],r[1]=i[1]=n[1],r[2]=o,u=100,c=0;c<=u;c++){var p;if(h=y(l,p=c/u),f=m(l,p),o+=s(n[0],n[1],h,f),n[0]=h,n[1]=f,"number"==typeof t&&o>=t)return d=(o-t)/(o-r[2]),{length:o,pos:[n[0]*(1-d)+r[0]*d,n[1]*(1-d)+r[1]*d]};r[0]=n[0],r[1]=n[1],r[2]=o}else if("L"===l[0]){if(r[0]=n[0],r[1]=n[1],r[2]=o,o+=s(n[0],n[1],l[1],l[2]),n[0]=l[1],n[1]=l[2],"number"==typeof t&&o>=t)return d=(o-t)/(o-r[2]),{length:o,pos:[n[0]*(1-d)+r[0]*d,n[1]*(1-d)+r[1]*d]};r[0]=n[0],r[1]=n[1],r[2]=o}}return{length:o,pos:n};function g(t,e){return Math.pow(1-e,3)*i[0]+3*Math.pow(1-e,2)*e*t[1]+3*(1-e)*Math.pow(e,2)*t[3]+Math.pow(e,3)*t[5]}function v(t,e){return Math.pow(1-e,3)*i[1]+3*Math.pow(1-e,2)*e*t[2]+3*(1-e)*Math.pow(e,2)*t[4]+Math.pow(e,3)*t[6]}function y(t,e){return Math.pow(1-e,2)*i[0]+2*(1-e)*e*t[1]+Math.pow(e,2)*t[3]}function m(t,e){return Math.pow(1-e,2)*i[1]+2*(1-e)*e*t[2]+Math.pow(e,2)*t[4]}}},"./node_modules/_regression@2.0.1@regression/dist/regression.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/_regression@2.0.1@regression/dist/regression.js ***!
- \**********************************************************************/
- /*! no static exports found */function(t,e,n){var r,i,o;i=[t],r=function(t){function e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var i={order:2,precision:2,period:null};function o(t,e){var n=[],r=[];t.forEach((function(t,i){null!==t[1]&&(r.push(t),n.push(e[i]))}));var i=r.reduce((function(t,e){return t+e[1]}),0)/r.length,o=r.reduce((function(t,e){var n=e[1]-i;return t+n*n}),0);return 1-r.reduce((function(t,e,r){var i=n[r],o=e[1]-i[1];return t+o*o}),0)/o}function a(t,e){for(var n=t,r=t.length-1,i=[e],o=0;o<r;o++){for(var a=o,s=o+1;s<r;s++)Math.abs(n[o][s])>Math.abs(n[o][a])&&(a=s);for(var l=o;l<r+1;l++){var u=n[l][o];n[l][o]=n[l][a],n[l][a]=u}for(var c=o+1;c<r;c++)for(var h=r;h>=o;h--)n[h][c]-=n[h][o]*n[o][c]/n[o][o]}for(var f=r-1;f>=0;f--){for(var d=0,p=f+1;p<r;p++)d+=n[p][f]*i[p];i[f]=(n[r][f]-d)/n[f][f]}return i}function s(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n}var l={linear:function(t,e){for(var n=[0,0,0,0,0],r=0,i=0;i<t.length;i++)null!==t[i][1]&&(r++,n[0]+=t[i][0],n[1]+=t[i][1],n[2]+=t[i][0]*t[i][0],n[3]+=t[i][0]*t[i][1],n[4]+=t[i][1]*t[i][1]);var a=r*n[2]-n[0]*n[0],l=r*n[3]-n[0]*n[1],u=0===a?0:s(l/a,e.precision),c=s(n[1]/r-u*n[0]/r,e.precision),h=function(t){return[s(t,e.precision),s(u*t+c,e.precision)]},f=t.map((function(t){return h(t[0])}));return{points:f,predict:h,equation:[u,c],r2:s(o(t,f),e.precision),string:0===c?"y = "+u+"x":"y = "+u+"x + "+c}},exponential:function(t,e){for(var n=[0,0,0,0,0,0],r=0;r<t.length;r++)null!==t[r][1]&&(n[0]+=t[r][0],n[1]+=t[r][1],n[2]+=t[r][0]*t[r][0]*t[r][1],n[3]+=t[r][1]*Math.log(t[r][1]),n[4]+=t[r][0]*t[r][1]*Math.log(t[r][1]),n[5]+=t[r][0]*t[r][1]);var i=n[1]*n[2]-n[5]*n[5],a=Math.exp((n[2]*n[3]-n[5]*n[4])/i),l=(n[1]*n[4]-n[5]*n[3])/i,u=s(a,e.precision),c=s(l,e.precision),h=function(t){return[s(t,e.precision),s(u*Math.exp(c*t),e.precision)]},f=t.map((function(t){return h(t[0])}));return{points:f,predict:h,equation:[u,c],string:"y = "+u+"e^("+c+"x)",r2:s(o(t,f),e.precision)}},logarithmic:function(t,e){for(var n=[0,0,0,0],r=t.length,i=0;i<r;i++)null!==t[i][1]&&(n[0]+=Math.log(t[i][0]),n[1]+=t[i][1]*Math.log(t[i][0]),n[2]+=t[i][1],n[3]+=Math.pow(Math.log(t[i][0]),2));var a=s((r*n[1]-n[2]*n[0])/(r*n[3]-n[0]*n[0]),e.precision),l=s((n[2]-a*n[0])/r,e.precision),u=function(t){return[s(t,e.precision),s(s(l+a*Math.log(t),e.precision),e.precision)]},c=t.map((function(t){return u(t[0])}));return{points:c,predict:u,equation:[l,a],string:"y = "+l+" + "+a+" ln(x)",r2:s(o(t,c),e.precision)}},power:function(t,e){for(var n=[0,0,0,0,0],r=t.length,i=0;i<r;i++)null!==t[i][1]&&(n[0]+=Math.log(t[i][0]),n[1]+=Math.log(t[i][1])*Math.log(t[i][0]),n[2]+=Math.log(t[i][1]),n[3]+=Math.pow(Math.log(t[i][0]),2));var a=(r*n[1]-n[0]*n[2])/(r*n[3]-Math.pow(n[0],2)),l=(n[2]-a*n[0])/r,u=s(Math.exp(l),e.precision),c=s(a,e.precision),h=function(t){return[s(t,e.precision),s(s(u*Math.pow(t,c),e.precision),e.precision)]},f=t.map((function(t){return h(t[0])}));return{points:f,predict:h,equation:[u,c],string:"y = "+u+"x^"+c,r2:s(o(t,f),e.precision)}},polynomial:function(t,e){for(var n=[],i=[],l=0,u=0,c=t.length,h=e.order+1,f=0;f<h;f++){for(var d=0;d<c;d++)null!==t[d][1]&&(l+=Math.pow(t[d][0],f)*t[d][1]);n.push(l),l=0;for(var p=[],g=0;g<h;g++){for(var v=0;v<c;v++)null!==t[v][1]&&(u+=Math.pow(t[v][0],f+g));p.push(u),u=0}i.push(p)}i.push(n);for(var y=a(i,h).map((function(t){return s(t,e.precision)})),m=function(t){return[s(t,e.precision),s(y.reduce((function(e,n,r){return e+n*Math.pow(t,r)}),0),e.precision)]},_=t.map((function(t){return m(t[0])})),x="y = ",b=y.length-1;b>=0;b--)x+=b>1?y[b]+"x^"+b+" + ":1===b?y[b]+"x + ":y[b];return{string:x,points:_,predict:m,equation:[].concat(r(y)).reverse(),r2:s(o(t,_),e.precision)}}};function u(){var t=function(t,r){return n({_round:s},t,e({},r,(function(t,e){return l[r](t,n({},i,e))})))};return Object.keys(l).reduce(t,{})}t.exports=u()},void 0===(o="function"==typeof r?r.apply(e,i):r)||(t.exports=o)},"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js":
- /*!***********************************************************************************************!*\
- !*** ./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js ***!
- \***********************************************************************************************/
- /*! no static exports found */function(t,e,n){!function(t){function e(t){if(0===t.length)return 0;for(var e,n=t[0],r=0,i=1;i<t.length;i++)e=n+t[i],Math.abs(n)>=Math.abs(t[i])?r+=n-e+t[i]:r+=t[i]-e+n,n=e;return n+r}function n(t){if(0===t.length)throw new Error("mean requires at least one data point");return e(t)/t.length}function r(t,e){var r,i,o=n(t),a=0;if(2===e)for(i=0;i<t.length;i++)a+=(r=t[i]-o)*r;else for(i=0;i<t.length;i++)a+=Math.pow(t[i]-o,e);return a}function i(t){if(0===t.length)throw new Error("variance requires at least one data point");return r(t,2)/t.length}function o(t){if(1===t.length)return 0;var e=i(t);return Math.sqrt(e)}function a(t){if(0===t.length)throw new Error("mode requires at least one data point");if(1===t.length)return t[0];for(var e=t[0],n=NaN,r=0,i=1,o=1;o<t.length+1;o++)t[o]!==e?(r<i&&(r=i,n=e),i=1,e=t[o]):i++;return n}function s(t){return t.slice().sort((function(t,e){return t-e}))}function l(t){if(0===t.length)throw new Error("min requires at least one data point");for(var e=t[0],n=1;n<t.length;n++)t[n]<e&&(e=t[n]);return e}function u(t){if(0===t.length)throw new Error("max requires at least one data point");for(var e=t[0],n=1;n<t.length;n++)t[n]>e&&(e=t[n]);return e}function c(t,e){var n=t.length*e;if(0===t.length)throw new Error("quantile requires at least one data point.");if(e<0||1<e)throw new Error("quantiles must be between 0 and 1");return 1===e?t[t.length-1]:0===e?t[0]:n%1!=0?t[Math.ceil(n)-1]:t.length%2==0?(t[n-1]+t[n])/2:t[n]}function h(t,e,n,r){for(n=n||0,r=r||t.length-1;n<r;){if(600<r-n){var i=r-n+1,o=e-n+1,a=Math.log(i),s=.5*Math.exp(2*a/3),l=.5*Math.sqrt(a*s*(i-s)/i);o-i/2<0&&(l*=-1),h(t,e,Math.max(n,Math.floor(e-o*s/i+l)),Math.min(r,Math.floor(e+(i-o)*s/i+l)))}var u=t[e],c=n,d=r;for(f(t,n,e),t[r]>u&&f(t,n,r);c<d;){for(f(t,c,d),c++,d--;t[c]<u;)c++;for(;t[d]>u;)d--}t[n]===u?f(t,n,d):f(t,++d,r),d<=e&&(n=d+1),e<=d&&(r=d-1)}}function f(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function d(t,e){var n=t.slice();if(Array.isArray(e)){!function(t,e){for(var n=[0],r=0;r<e.length;r++)n.push(v(t.length,e[r]));n.push(t.length-1),n.sort(g);for(var i=[0,n.length-1];i.length;){var o=Math.ceil(i.pop()),a=Math.floor(i.pop());if(!(o-a<=1)){var s=Math.floor((a+o)/2);p(t,n[s],n[a],n[o]),i.push(a,s,s,o)}}}(n,e);for(var r=[],i=0;i<e.length;i++)r[i]=c(n,e[i]);return r}return p(n,v(n.length,e),0,n.length-1),c(n,e)}function p(t,e,n,r){e%1==0?h(t,e,n,r):(h(t,e=Math.floor(e),n,r),h(t,e+1,e+1,r))}function g(t,e){return t-e}function v(t,e){var n=t*e;return 1===e?t-1:0===e?0:n%1!=0?Math.ceil(n)-1:t%2==0?n-.5:n}function y(t,e){if(e<t[0])return 0;if(e>t[t.length-1])return 1;var n=function(t,e){for(var n=0,r=0,i=t.length;r<i;)e<=t[n=r+i>>>1]?i=n:r=-~n;return r}(t,e);if(t[n]!==e)return n/t.length;n++;var r=function(t,e){for(var n=0,r=0,i=t.length;r<i;)e>=t[n=r+i>>>1]?r=-~n:i=n;return r}(t,e);if(r===n)return n/t.length;var i=r-n+1;return i*(r+n)/2/i/t.length}function m(t){var e=d(t,.75),n=d(t,.25);if("number"==typeof e&&"number"==typeof n)return e-n}function _(t){return+d(t,.5)}function x(t){for(var e=_(t),n=[],r=0;r<t.length;r++)n.push(Math.abs(t[r]-e));return _(n)}function b(t,e){e=e||Math.random;for(var n,r,i=t.length;0<i;)r=Math.floor(e()*i--),n=t[i],t[i]=t[r],t[r]=n;return t}function w(t,e){return b(t.slice().slice(),e)}function M(t){for(var e,n=0,r=0;r<t.length;r++)0!==r&&t[r]===e||(e=t[r],n++);return n}function S(t,e){for(var n=[],r=0;r<t;r++){for(var i=[],o=0;o<e;o++)i.push(0);n.push(i)}return n}function j(t,e,n,r){var i;if(0<t){var o=(n[e]-n[t-1])/(e-t+1);i=r[e]-r[t-1]-(e-t+1)*o*o}else i=r[e]-n[e]*n[e]/(e+1);return i<0?0:i}function C(t,e,n,r,i,o,a){if(!(e<t)){var s=Math.floor((t+e)/2);r[n][s]=r[n-1][s-1],i[n][s]=s;var l=n;n<t&&(l=Math.max(l,i[n][t-1]||0)),l=Math.max(l,i[n-1][s]||0);var u,c,h,f=s-1;e<r.length-1&&(f=Math.min(f,i[n][e+1]||0));for(var d=f;l<=d&&!((u=j(d,s,o,a))+r[n-1][l-1]>=r[n][s]);--d)(c=j(l,s,o,a)+r[n-1][l-1])<r[n][s]&&(r[n][s]=c,i[n][s]=l),l++,(h=u+r[n-1][d-1])<r[n][s]&&(r[n][s]=h,i[n][s]=d);C(t,s-1,n,r,i,o,a),C(s+1,e,n,r,i,o,a)}}function E(t,e){if(t.length!==e.length)throw new Error("sampleCovariance requires samples with equal lengths");if(t.length<2)throw new Error("sampleCovariance requires at least two data points in each sample");for(var r=n(t),i=n(e),o=0,a=0;a<t.length;a++)o+=(t[a]-r)*(e[a]-i);return o/(t.length-1)}function P(t){if(t.length<2)throw new Error("sampleVariance requires at least two data points");return r(t,2)/(t.length-1)}function T(t){var e=P(t);return Math.sqrt(e)}function k(t,e,n,r){return(t*e+n*r)/(e+r)}function A(t){if(0===t.length)throw new Error("rootMeanSquare requires at least one data point");for(var e=0,n=0;n<t.length;n++)e+=Math.pow(t[n],2);return Math.sqrt(e/t.length)}function O(){this.totalCount=0,this.data={}}function I(){this.weights=[],this.bias=0}O.prototype.train=function(t,e){for(var n in this.data[e]||(this.data[e]={}),t){var r=t[n];void 0===this.data[e][n]&&(this.data[e][n]={}),void 0===this.data[e][n][r]&&(this.data[e][n][r]=0),this.data[e][n][r]++}this.totalCount++},O.prototype.score=function(t){var e,n={};for(var r in t){var i=t[r];for(e in this.data)n[e]={},this.data[e][r]?n[e][r+"_"+i]=(this.data[e][r][i]||0)/this.totalCount:n[e][r+"_"+i]=0}var o={};for(e in n)for(var a in o[e]=0,n[e])o[e]+=n[e][a];return o},I.prototype.predict=function(t){if(t.length!==this.weights.length)return null;for(var e=0,n=0;n<this.weights.length;n++)e+=this.weights[n]*t[n];return 0<(e+=this.bias)?1:0},I.prototype.train=function(t,e){if(0!==e&&1!==e)return null;t.length!==this.weights.length&&(this.weights=t,this.bias=1);var n=this.predict(t);if(n!==e){for(var r=e-n,i=0;i<this.weights.length;i++)this.weights[i]+=r*t[i];this.bias+=r}return this};var B=1e-4;function L(t){if(t<0)throw new Error("factorial requires a non-negative value");if(Math.floor(t)!==t)throw new Error("factorial requires an integer input");for(var e=1,n=2;n<=t;n++)e*=n;return e}var F=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22],D=Math.log(Math.sqrt(2*Math.PI)),R={1:{.995:0,.99:0,.975:0,.95:0,.9:.02,.5:.45,.1:2.71,.05:3.84,.025:5.02,.01:6.63,.005:7.88},2:{.995:.01,.99:.02,.975:.05,.95:.1,.9:.21,.5:1.39,.1:4.61,.05:5.99,.025:7.38,.01:9.21,.005:10.6},3:{.995:.07,.99:.11,.975:.22,.95:.35,.9:.58,.5:2.37,.1:6.25,.05:7.81,.025:9.35,.01:11.34,.005:12.84},4:{.995:.21,.99:.3,.975:.48,.95:.71,.9:1.06,.5:3.36,.1:7.78,.05:9.49,.025:11.14,.01:13.28,.005:14.86},5:{.995:.41,.99:.55,.975:.83,.95:1.15,.9:1.61,.5:4.35,.1:9.24,.05:11.07,.025:12.83,.01:15.09,.005:16.75},6:{.995:.68,.99:.87,.975:1.24,.95:1.64,.9:2.2,.5:5.35,.1:10.65,.05:12.59,.025:14.45,.01:16.81,.005:18.55},7:{.995:.99,.99:1.25,.975:1.69,.95:2.17,.9:2.83,.5:6.35,.1:12.02,.05:14.07,.025:16.01,.01:18.48,.005:20.28},8:{.995:1.34,.99:1.65,.975:2.18,.95:2.73,.9:3.49,.5:7.34,.1:13.36,.05:15.51,.025:17.53,.01:20.09,.005:21.96},9:{.995:1.73,.99:2.09,.975:2.7,.95:3.33,.9:4.17,.5:8.34,.1:14.68,.05:16.92,.025:19.02,.01:21.67,.005:23.59},10:{.995:2.16,.99:2.56,.975:3.25,.95:3.94,.9:4.87,.5:9.34,.1:15.99,.05:18.31,.025:20.48,.01:23.21,.005:25.19},11:{.995:2.6,.99:3.05,.975:3.82,.95:4.57,.9:5.58,.5:10.34,.1:17.28,.05:19.68,.025:21.92,.01:24.72,.005:26.76},12:{.995:3.07,.99:3.57,.975:4.4,.95:5.23,.9:6.3,.5:11.34,.1:18.55,.05:21.03,.025:23.34,.01:26.22,.005:28.3},13:{.995:3.57,.99:4.11,.975:5.01,.95:5.89,.9:7.04,.5:12.34,.1:19.81,.05:22.36,.025:24.74,.01:27.69,.005:29.82},14:{.995:4.07,.99:4.66,.975:5.63,.95:6.57,.9:7.79,.5:13.34,.1:21.06,.05:23.68,.025:26.12,.01:29.14,.005:31.32},15:{.995:4.6,.99:5.23,.975:6.27,.95:7.26,.9:8.55,.5:14.34,.1:22.31,.05:25,.025:27.49,.01:30.58,.005:32.8},16:{.995:5.14,.99:5.81,.975:6.91,.95:7.96,.9:9.31,.5:15.34,.1:23.54,.05:26.3,.025:28.85,.01:32,.005:34.27},17:{.995:5.7,.99:6.41,.975:7.56,.95:8.67,.9:10.09,.5:16.34,.1:24.77,.05:27.59,.025:30.19,.01:33.41,.005:35.72},18:{.995:6.26,.99:7.01,.975:8.23,.95:9.39,.9:10.87,.5:17.34,.1:25.99,.05:28.87,.025:31.53,.01:34.81,.005:37.16},19:{.995:6.84,.99:7.63,.975:8.91,.95:10.12,.9:11.65,.5:18.34,.1:27.2,.05:30.14,.025:32.85,.01:36.19,.005:38.58},20:{.995:7.43,.99:8.26,.975:9.59,.95:10.85,.9:12.44,.5:19.34,.1:28.41,.05:31.41,.025:34.17,.01:37.57,.005:40},21:{.995:8.03,.99:8.9,.975:10.28,.95:11.59,.9:13.24,.5:20.34,.1:29.62,.05:32.67,.025:35.48,.01:38.93,.005:41.4},22:{.995:8.64,.99:9.54,.975:10.98,.95:12.34,.9:14.04,.5:21.34,.1:30.81,.05:33.92,.025:36.78,.01:40.29,.005:42.8},23:{.995:9.26,.99:10.2,.975:11.69,.95:13.09,.9:14.85,.5:22.34,.1:32.01,.05:35.17,.025:38.08,.01:41.64,.005:44.18},24:{.995:9.89,.99:10.86,.975:12.4,.95:13.85,.9:15.66,.5:23.34,.1:33.2,.05:36.42,.025:39.36,.01:42.98,.005:45.56},25:{.995:10.52,.99:11.52,.975:13.12,.95:14.61,.9:16.47,.5:24.34,.1:34.28,.05:37.65,.025:40.65,.01:44.31,.005:46.93},26:{.995:11.16,.99:12.2,.975:13.84,.95:15.38,.9:17.29,.5:25.34,.1:35.56,.05:38.89,.025:41.92,.01:45.64,.005:48.29},27:{.995:11.81,.99:12.88,.975:14.57,.95:16.15,.9:18.11,.5:26.34,.1:36.74,.05:40.11,.025:43.19,.01:46.96,.005:49.65},28:{.995:12.46,.99:13.57,.975:15.31,.95:16.93,.9:18.94,.5:27.34,.1:37.92,.05:41.34,.025:44.46,.01:48.28,.005:50.99},29:{.995:13.12,.99:14.26,.975:16.05,.95:17.71,.9:19.77,.5:28.34,.1:39.09,.05:42.56,.025:45.72,.01:49.59,.005:52.34},30:{.995:13.79,.99:14.95,.975:16.79,.95:18.49,.9:20.6,.5:29.34,.1:40.26,.05:43.77,.025:46.98,.01:50.89,.005:53.67},40:{.995:20.71,.99:22.16,.975:24.43,.95:26.51,.9:29.05,.5:39.34,.1:51.81,.05:55.76,.025:59.34,.01:63.69,.005:66.77},50:{.995:27.99,.99:29.71,.975:32.36,.95:34.76,.9:37.69,.5:49.33,.1:63.17,.05:67.5,.025:71.42,.01:76.15,.005:79.49},60:{.995:35.53,.99:37.48,.975:40.48,.95:43.19,.9:46.46,.5:59.33,.1:74.4,.05:79.08,.025:83.3,.01:88.38,.005:91.95},70:{.995:43.28,.99:45.44,.975:48.76,.95:51.74,.9:55.33,.5:69.33,.1:85.53,.05:90.53,.025:95.02,.01:100.42,.005:104.22},80:{.995:51.17,.99:53.54,.975:57.15,.95:60.39,.9:64.28,.5:79.33,.1:96.58,.05:101.88,.025:106.63,.01:112.33,.005:116.32},90:{.995:59.2,.99:61.75,.975:65.65,.95:69.13,.9:73.29,.5:89.33,.1:107.57,.05:113.14,.025:118.14,.01:124.12,.005:128.3},100:{.995:67.33,.99:70.06,.975:74.22,.95:77.93,.9:82.36,.5:99.33,.1:118.5,.05:124.34,.025:129.56,.01:135.81,.005:140.17}},N=Math.sqrt(2*Math.PI),z={gaussian:function(t){return Math.exp(-.5*t*t)/N}},H={nrd:function(t){var e=T(t),n=m(t);return"number"==typeof n&&(e=Math.min(e,n/1.34)),1.06*e*Math.pow(t.length,-.2)}};function G(t,e,n){var r,i;if(void 0===e)r=z.gaussian;else if("string"==typeof e){if(!z[e])throw new Error('Unknown kernel "'+e+'"');r=z[e]}else r=e;if(void 0===n)i=H.nrd(t);else if("string"==typeof n){if(!H[n])throw new Error('Unknown bandwidth method "'+n+'"');i=H[n](t)}else i=n;return function(e){var n=0,o=0;for(n=0;n<t.length;n++)o+=r((e-t[n])/i);return o/i/t.length}}var Y=Math.sqrt(2*Math.PI);function V(t){for(var e=t,n=t,r=1;r<15;r++)e+=n*=t*t/(2*r+1);return Math.round(1e4*(.5+e/Y*Math.exp(-t*t/2)))/1e4}for(var X=[],q=0;q<=3.09;q+=.01)X.push(V(q));function W(t){var e=1/(1+.5*Math.abs(t)),n=e*Math.exp(-Math.pow(t,2)-1.26551223+1.00002368*e+.37409196*Math.pow(e,2)+.09678418*Math.pow(e,3)-.18628806*Math.pow(e,4)+.27886807*Math.pow(e,5)-1.13520398*Math.pow(e,6)+1.48851587*Math.pow(e,7)-.82215223*Math.pow(e,8)+.17087277*Math.pow(e,9));return 0<=t?1-n:n-1}function U(t){var e=8*(Math.PI-3)/(3*Math.PI*(4-Math.PI)),n=Math.sqrt(Math.sqrt(Math.pow(2/(Math.PI*e)+Math.log(1-t*t)/2,2)-Math.log(1-t*t)/e)-(2/(Math.PI*e)+Math.log(1-t*t)/2));return 0<=t?n:-n}function Z(t){if("number"==typeof t)return t<0?-1:0===t?0:1;throw new TypeError("not a number")}t.linearRegression=function(t){var e,n,r=t.length;if(1===r)n=t[e=0][1];else{for(var i,o,a,s=0,l=0,u=0,c=0,h=0;h<r;h++)s+=o=(i=t[h])[0],l+=a=i[1],u+=o*o,c+=o*a;n=l/r-(e=(r*c-s*l)/(r*u-s*s))*s/r}return{m:e,b:n}},t.linearRegressionLine=function(t){return function(e){return t.b+t.m*e}},t.standardDeviation=o,t.rSquared=function(t,e){if(t.length<2)return 1;for(var n,r=0,i=0;i<t.length;i++)r+=t[i][1];n=r/t.length;for(var o=0,a=0;a<t.length;a++)o+=Math.pow(n-t[a][1],2);for(var s=0,l=0;l<t.length;l++)s+=Math.pow(t[l][1]-e(t[l][0]),2);return 1-s/o},t.mode=function(t){return a(s(t))},t.modeFast=function(t){for(var e,n=new Map,r=0,i=0;i<t.length;i++){var o=n.get(t[i]);void 0===o?o=1:o++,r<o&&(e=t[i],r=o),n.set(t[i],o)}if(0===r)throw new Error("mode requires at last one data point");return e},t.modeSorted=a,t.min=l,t.max=u,t.extent=function(t){if(0===t.length)throw new Error("extent requires at least one data point");for(var e=t[0],n=t[0],r=1;r<t.length;r++)t[r]>n&&(n=t[r]),t[r]<e&&(e=t[r]);return[e,n]},t.minSorted=function(t){return t[0]},t.maxSorted=function(t){return t[t.length-1]},t.extentSorted=function(t){return[t[0],t[t.length-1]]},t.sum=e,t.sumSimple=function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n];return e},t.product=function(t){for(var e=1,n=0;n<t.length;n++)e*=t[n];return e},t.quantile=d,t.quantileSorted=c,t.quantileRank=function(t,e){return y(s(t),e)},t.quantileRankSorted=y,t.interquartileRange=m,t.iqr=m,t.medianAbsoluteDeviation=x,t.mad=x,t.chunk=function(t,e){var n=[];if(e<1)throw new Error("chunk size must be a positive number");if(Math.floor(e)!==e)throw new Error("chunk size must be an integer");for(var r=0;r<t.length;r+=e)n.push(t.slice(r,r+e));return n},t.sampleWithReplacement=function(t,e,n){if(0===t.length)return[];n=n||Math.random;for(var r=t.length,i=[],o=0;o<e;o++){var a=Math.floor(n()*r);i.push(t[a])}return i},t.shuffle=w,t.shuffleInPlace=b,t.sample=function(t,e,n){return w(t,n).slice(0,e)},t.ckmeans=function(t,e){if(e>t.length)throw new Error("cannot generate more classes than there are data values");var n=s(t);if(1===M(n))return[n];var r=S(e,n.length),i=S(e,n.length);!function(t,e,n){for(var r,i=e[0].length,o=t[Math.floor(i/2)],a=[],s=[],l=0;l<i;++l)r=t[l]-o,0===l?(a.push(r),s.push(r*r)):(a.push(a[l-1]+r),s.push(s[l-1]+r*r)),e[0][l]=j(0,l,a,s),n[0][l]=0;for(var u=1;u<e.length;++u)C(u<e.length-1?u:i-1,i-1,u,e,n,a,s)}(n,r,i);for(var o=[],a=i[0].length-1,l=i.length-1;0<=l;l--){var u=i[l][a];o[l]=n.slice(u,a+1),0<l&&(a=u-1)}return o},t.uniqueCountSorted=M,t.sumNthPowerDeviations=r,t.equalIntervalBreaks=function(t,e){if(t.length<2)return t;for(var n=l(t),r=u(t),i=[n],o=(r-n)/e,a=1;a<e;a++)i.push(i[0]+o*a);return i.push(r),i},t.sampleCovariance=E,t.sampleCorrelation=function(t,e){return E(t,e)/T(t)/T(e)},t.sampleVariance=P,t.sampleStandardDeviation=T,t.sampleSkewness=function(t){if(t.length<3)throw new Error("sampleSkewness requires at least three data points");for(var e,r=n(t),i=0,o=0,a=0;a<t.length;a++)i+=(e=t[a]-r)*e,o+=e*e*e;var s=t.length-1,l=Math.sqrt(i/s),u=t.length;return u*o/((u-1)*(u-2)*Math.pow(l,3))},t.sampleKurtosis=function(t){var e=t.length;if(e<4)throw new Error("sampleKurtosis requires at least four data points");for(var r,i=n(t),o=0,a=0,s=0;s<e;s++)o+=(r=t[s]-i)*r,a+=r*r*r*r;return(e-1)/((e-2)*(e-3))*(e*(e+1)*a/(o*o)-3*(e-1))},t.permutationsHeap=function(t){for(var e=new Array(t.length),n=[t.slice()],r=0;r<t.length;r++)e[r]=0;for(r=0;r<t.length;)if(e[r]<r){var i=0;r%2!=0&&(i=e[r]);var o=t[i];t[i]=t[r],t[r]=o,n.push(t.slice()),e[r]++,r=0}else e[r]=0,r++;return n},t.combinations=function t(e,n){var r,i,o,a,s=[];for(r=0;r<e.length;r++)if(1===n)s.push([e[r]]);else for(o=t(e.slice(r+1,e.length),n-1),i=0;i<o.length;i++)(a=o[i]).unshift(e[r]),s.push(a);return s},t.combinationsReplacement=function t(e,n){for(var r=[],i=0;i<e.length;i++)if(1===n)r.push([e[i]]);else for(var o=t(e.slice(i,e.length),n-1),a=0;a<o.length;a++)r.push([e[i]].concat(o[a]));return r},t.addToMean=function(t,e,n){return t+(n-t)/(e+1)},t.combineMeans=k,t.combineVariances=function(t,e,n,r,i,o){var a=k(e,n,i,o);return(n*(t+Math.pow(e-a,2))+o*(r+Math.pow(i-a,2)))/(n+o)},t.geometricMean=function(t){if(0===t.length)throw new Error("geometricMean requires at least one data point");for(var e=1,n=0;n<t.length;n++){if(t[n]<=0)throw new Error("geometricMean requires only positive numbers as input");e*=t[n]}return Math.pow(e,1/t.length)},t.harmonicMean=function(t){if(0===t.length)throw new Error("harmonicMean requires at least one data point");for(var e=0,n=0;n<t.length;n++){if(t[n]<=0)throw new Error("harmonicMean requires only positive numbers as input");e+=1/t[n]}return t.length/e},t.average=n,t.mean=n,t.median=_,t.medianSorted=function(t){return c(t,.5)},t.subtractFromMean=function(t,e,n){return(t*e-n)/(e-1)},t.rootMeanSquare=A,t.rms=A,t.variance=i,t.tTest=function(t,e){return(n(t)-e)/(o(t)/Math.sqrt(t.length))},t.tTestTwoSample=function(t,e,r){var i=t.length,o=e.length;if(!i||!o)return null;r||(r=0);var a=n(t),s=n(e),l=P(t),u=P(e);if("number"==typeof a&&"number"==typeof s&&"number"==typeof l&&"number"==typeof u){var c=((i-1)*l+(o-1)*u)/(i+o-2);return(a-s-r)/Math.sqrt(c*(1/i+1/o))}},t.BayesianClassifier=O,t.bayesian=O,t.PerceptronModel=I,t.perceptron=I,t.epsilon=B,t.factorial=L,t.gamma=function t(e){if("number"==typeof(n=e)&&isFinite(n)&&Math.floor(n)===n)return e<=0?NaN:L(e-1);var n;if(--e<0)return Math.PI/(Math.sin(Math.PI*-e)*t(-e));var r=e+.25;return Math.pow(e/Math.E,e)*Math.sqrt(2*Math.PI*(e+1/6))*(1+1/144/Math.pow(r,2)-1/12960/Math.pow(r,3)-257/207360/Math.pow(r,4)-52/2612736/Math.pow(r,5)+5741173/9405849600/Math.pow(r,6)+37529/18811699200/Math.pow(r,7))},t.gammaln=function(t){if(t<=0)return 1/0;t--;for(var e=F[0],n=1;n<15;n++)e+=F[n]/(t+n);var r=5.2421875+t;return D+Math.log(e)-r+(t+.5)*Math.log(r)},t.bernoulliDistribution=function(t){if(t<0||1<t)throw new Error("bernoulliDistribution requires probability to be between 0 and 1 inclusive");return[1-t,t]},t.binomialDistribution=function(t,e){if(!(e<0||1<e||t<=0||t%1!=0)){for(var n=0,r=0,i=[],o=1;i[n]=o*Math.pow(e,n)*Math.pow(1-e,t-n),r+=i[n],o=o*(t-++n+1)/n,r<1-B;);return i}},t.poissonDistribution=function(t){if(!(t<=0)){for(var e=0,n=0,r=[],i=1;r[e]=Math.exp(-t)*Math.pow(t,e)/i,n+=r[e],i*=++e,n<1-B;);return r}},t.chiSquaredDistributionTable=R,t.chiSquaredGoodnessOfFit=function(t,e,r){for(var i,o,a=0,s=e(n(t)),l=[],u=[],c=0;c<t.length;c++)void 0===l[t[c]]&&(l[t[c]]=0),l[t[c]]++;for(c=0;c<l.length;c++)void 0===l[c]&&(l[c]=0);for(o in s)o in l&&(u[+o]=s[o]*t.length);for(o=u.length-1;0<=o;o--)u[o]<3&&(u[o-1]+=u[o],u.pop(),l[o-1]+=l[o],l.pop());for(o=0;o<l.length;o++)a+=Math.pow(l[o]-u[o],2)/u[o];return i=l.length-1-1,R[i][r]<a},t.kernelDensityEstimation=G,t.kde=G,t.zScore=function(t,e,n){return(t-e)/n},t.cumulativeStdNormalProbability=function(t){var e=Math.abs(t),n=Math.min(Math.round(100*e),X.length-1);return 0<=t?X[n]:+(1-X[n]).toFixed(4)},t.standardNormalTable=X,t.errorFunction=W,t.erf=W,t.inverseErrorFunction=U,t.probit=function(t){return 0===t?t=B:1<=t&&(t=1-B),Math.sqrt(2)*U(2*t-1)},t.permutationTest=function(t,e,r,i){if(void 0===i&&(i=1e4),void 0===r&&(r="two_side"),"two_side"!==r&&"greater"!==r&&"less"!==r)throw new Error("`alternative` must be either 'two_side', 'greater', or 'less'");for(var o=n(t)-n(e),a=new Array(i),s=t.concat(e),l=Math.floor(s.length/2),u=0;u<i;u++){b(s);var c=s.slice(0,l),h=s.slice(l,s.length),f=n(c)-n(h);a[u]=f}var d=0;if("two_side"===r)for(u=0;u<=i;u++)Math.abs(a[u])>=Math.abs(o)&&(d+=1);else if("greater"===r)for(u=0;u<=i;u++)a[u]>=o&&(d+=1);else for(u=0;u<=i;u++)a[u]<=o&&(d+=1);return d/i},t.bisect=function(t,e,n,r,i){if("function"!=typeof t)throw new TypeError("func must be a function");for(var o=0;o<r;o++){var a=(e+n)/2;if(0===t(a)||Math.abs((n-e)/2)<i)return a;Z(t(a))===Z(t(e))?e=a:n=a}throw new Error("maximum number of iterations exceeded")},t.quickselect=h,t.sign=Z,t.numericSort=s,Object.defineProperty(t,"__esModule",{value:!0})}(e)},"./node_modules/_topojson-client@3.1.0@topojson-client/dist/topojson-client.js":
- /*!*************************************************************************************!*\
- !*** ./node_modules/_topojson-client@3.1.0@topojson-client/dist/topojson-client.js ***!
- \*************************************************************************************/
- /*! no static exports found */function(t,e,n){!function(t){function e(t){return t}function n(t){if(null==t)return e;var n,r,i=t.scale[0],o=t.scale[1],a=t.translate[0],s=t.translate[1];return function(t,e){e||(n=r=0);var l=2,u=t.length,c=new Array(u);for(c[0]=(n+=t[0])*i+a,c[1]=(r+=t[1])*o+s;l<u;)c[l]=t[l],++l;return c}}function r(t){var e,r=n(t.transform),i=1/0,o=i,a=-i,s=-i;function l(t){(t=r(t))[0]<i&&(i=t[0]),t[0]>a&&(a=t[0]),t[1]<o&&(o=t[1]),t[1]>s&&(s=t[1])}function u(t){switch(t.type){case"GeometryCollection":t.geometries.forEach(u);break;case"Point":l(t.coordinates);break;case"MultiPoint":t.coordinates.forEach(l)}}for(e in t.arcs.forEach((function(t){for(var e,n=-1,l=t.length;++n<l;)(e=r(t[n],n))[0]<i&&(i=e[0]),e[0]>a&&(a=e[0]),e[1]<o&&(o=e[1]),e[1]>s&&(s=e[1])})),t.objects)u(t.objects[e]);return[i,o,a,s]}function i(t,e){for(var n,r=t.length,i=r-e;i<--r;)n=t[i],t[i++]=t[r],t[r]=n}function o(t,e){return"string"==typeof e&&(e=t.objects[e]),"GeometryCollection"===e.type?{type:"FeatureCollection",features:e.geometries.map((function(e){return a(t,e)}))}:a(t,e)}function a(t,e){var n=e.id,r=e.bbox,i=null==e.properties?{}:e.properties,o=s(t,e);return null==n&&null==r?{type:"Feature",properties:i,geometry:o}:null==r?{type:"Feature",id:n,properties:i,geometry:o}:{type:"Feature",id:n,bbox:r,properties:i,geometry:o}}function s(t,e){var r=n(t.transform),o=t.arcs;function a(t,e){e.length&&e.pop();for(var n=o[t<0?~t:t],a=0,s=n.length;a<s;++a)e.push(r(n[a],a));t<0&&i(e,s)}function s(t){return r(t)}function l(t){for(var e=[],n=0,r=t.length;n<r;++n)a(t[n],e);return e.length<2&&e.push(e[0]),e}function u(t){for(var e=l(t);e.length<4;)e.push(e[0]);return e}function c(t){return t.map(u)}function h(t){var e,n=t.type;switch(n){case"GeometryCollection":return{type:n,geometries:t.geometries.map(h)};case"Point":e=s(t.coordinates);break;case"MultiPoint":e=t.coordinates.map(s);break;case"LineString":e=l(t.arcs);break;case"MultiLineString":e=t.arcs.map(l);break;case"Polygon":e=c(t.arcs);break;case"MultiPolygon":e=t.arcs.map(c);break;default:return null}return{type:n,coordinates:e}}return h(e)}function l(t,e){var n={},r={},i={},o=[],a=-1;function s(e){var n,r=t.arcs[e<0?~e:e],i=r[0];return t.transform?(n=[0,0],r.forEach((function(t){n[0]+=t[0],n[1]+=t[1]}))):n=r[r.length-1],e<0?[n,i]:[i,n]}function l(t,e){for(var r in t){var i=t[r];delete e[i.start],delete i.start,delete i.end,i.forEach((function(t){n[t<0?~t:t]=1})),o.push(i)}}return e.forEach((function(n,r){var i,o=t.arcs[n<0?~n:n];o.length<3&&!o[1][0]&&!o[1][1]&&(i=e[++a],e[a]=n,e[r]=i)})),e.forEach((function(t){var e,n,o=s(t),a=o[0],l=o[1];if(e=i[a])if(delete i[e.end],e.push(t),e.end=l,n=r[l]){delete r[n.start];var u=n===e?e:e.concat(n);r[u.start=e.start]=i[u.end=n.end]=u}else r[e.start]=i[e.end]=e;else if(e=r[l])if(delete r[e.start],e.unshift(t),e.start=a,n=i[a]){delete i[n.end];var c=n===e?e:n.concat(e);r[c.start=n.start]=i[c.end=e.end]=c}else r[e.start]=i[e.end]=e;else r[(e=[t]).start=a]=i[e.end=l]=e})),l(i,r),l(r,i),e.forEach((function(t){n[t<0?~t:t]||o.push([t])})),o}function u(t){return s(t,c.apply(this,arguments))}function c(t,e,n){var r,i,o;if(arguments.length>1)r=h(t,e,n);else for(i=0,r=new Array(o=t.arcs.length);i<o;++i)r[i]=i;return{type:"MultiLineString",arcs:l(t,r)}}function h(t,e,n){var r,i=[],o=[];function a(t){var e=t<0?~t:t;(o[e]||(o[e]=[])).push({i:t,g:r})}function s(t){t.forEach(a)}function l(t){t.forEach(s)}function u(t){t.forEach(l)}function c(t){switch(r=t,t.type){case"GeometryCollection":t.geometries.forEach(c);break;case"LineString":s(t.arcs);break;case"MultiLineString":case"Polygon":l(t.arcs);break;case"MultiPolygon":u(t.arcs)}}return c(e),o.forEach(null==n?function(t){i.push(t[0].i)}:function(t){n(t[0].g,t[t.length-1].g)&&i.push(t[0].i)}),i}function f(t){for(var e,n=-1,r=t.length,i=t[r-1],o=0;++n<r;)e=i,i=t[n],o+=e[0]*i[1]-e[1]*i[0];return Math.abs(o)}function d(t){return s(t,p.apply(this,arguments))}function p(t,e){var n={},r=[],i=[];function o(t){switch(t.type){case"GeometryCollection":t.geometries.forEach(o);break;case"Polygon":a(t.arcs);break;case"MultiPolygon":t.arcs.forEach(a)}}function a(t){t.forEach((function(e){e.forEach((function(e){(n[e=e<0?~e:e]||(n[e]=[])).push(t)}))})),r.push(t)}function u(e){return f(s(t,{type:"Polygon",arcs:[e]}).coordinates[0])}return e.forEach(o),r.forEach((function(t){if(!t._){var e=[],r=[t];for(t._=1,i.push(e);t=r.pop();)e.push(t),t.forEach((function(t){t.forEach((function(t){n[t<0?~t:t].forEach((function(t){t._||(t._=1,r.push(t))}))}))}))}})),r.forEach((function(t){delete t._})),{type:"MultiPolygon",arcs:i.map((function(e){var r,i=[];if(e.forEach((function(t){t.forEach((function(t){t.forEach((function(t){n[t<0?~t:t].length<2&&i.push(t)}))}))})),(r=(i=l(t,i)).length)>1)for(var o,a,s=1,c=u(i[0]);s<r;++s)(o=u(i[s]))>c&&(a=i[0],i[0]=i[s],i[s]=a,c=o);return i})).filter((function(t){return t.length>0}))}}function g(t,e){for(var n=0,r=t.length;n<r;){var i=n+r>>>1;t[i]<e?n=i+1:r=i}return n}function v(t){var e={},n=t.map((function(){return[]}));function r(t,n){t.forEach((function(t){t<0&&(t=~t);var r=e[t];r?r.push(n):e[t]=[n]}))}function i(t,e){t.forEach((function(t){r(t,e)}))}function o(t,e){"GeometryCollection"===t.type?t.geometries.forEach((function(t){o(t,e)})):t.type in a&&a[t.type](t.arcs,e)}var a={LineString:r,MultiLineString:i,Polygon:i,MultiPolygon:function(t,e){t.forEach((function(t){i(t,e)}))}};for(var s in t.forEach(o),e)for(var l=e[s],u=l.length,c=0;c<u;++c)for(var h=c+1;h<u;++h){var f,d=l[c],p=l[h];(f=n[d])[s=g(f,p)]!==p&&f.splice(s,0,p),(f=n[p])[s=g(f,d)]!==d&&f.splice(s,0,d)}return n}function y(t){if(null==t)return e;var n,r,i=t.scale[0],o=t.scale[1],a=t.translate[0],s=t.translate[1];return function(t,e){e||(n=r=0);var l=2,u=t.length,c=new Array(u),h=Math.round((t[0]-a)/i),f=Math.round((t[1]-s)/o);for(c[0]=h-n,n=h,c[1]=f-r,r=f;l<u;)c[l]=t[l],++l;return c}}function m(t,e){if(t.transform)throw new Error("already quantized");if(e&&e.scale)l=t.bbox;else{if(!((n=Math.floor(e))>=2))throw new Error("n must be ≥2");var n,i=(l=t.bbox||r(t))[0],o=l[1],a=l[2],s=l[3];e={scale:[a-i?(a-i)/(n-1):1,s-o?(s-o)/(n-1):1],translate:[i,o]}}var l,u,c=y(e),h=t.objects,f={};function d(t){return c(t)}function p(t){var e;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(p)};break;case"Point":e={type:"Point",coordinates:d(t.coordinates)};break;case"MultiPoint":e={type:"MultiPoint",coordinates:t.coordinates.map(d)};break;default:return t}return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),null!=t.properties&&(e.properties=t.properties),e}function g(t){var e,n=0,r=1,i=t.length,o=new Array(i);for(o[0]=c(t[0],0);++n<i;)((e=c(t[n],n))[0]||e[1])&&(o[r++]=e);return 1===r&&(o[r++]=[0,0]),o.length=r,o}for(u in h)f[u]=p(h[u]);return{type:"Topology",bbox:l,transform:e,objects:f,arcs:t.arcs.map(g)}}t.bbox=r,t.feature=o,t.merge=d,t.mergeArcs=p,t.mesh=u,t.meshArcs=c,t.neighbors=v,t.quantize=m,t.transform=n,t.untransform=y,Object.defineProperty(t,"__esModule",{value:!0})}(e)},"./node_modules/_tslib@2.1.0@tslib/tslib.js":
- /*!**************************************************!*\
- !*** ./node_modules/_tslib@2.1.0@tslib/tslib.js ***!
- \**************************************************/
- /*! no static exports found */function(e,n,r){(function(r){var i,o,a,s,l,u,c,h,f,d,p,g,v,y,m,_,x,b,w,M,S,j,C,E,P;
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */!function(T){var k="object"===t(r)?r:"object"===("undefined"==typeof self?"undefined":t(self))?self:"object"===t(this)?this:{};function A(t,e){return t!==k&&("function"==typeof Object.create?Object.defineProperty(t,"__esModule",{value:!0}):t.__esModule=!0),function(n,r){return t[n]=e?e(n,r):r}}i=function(e){!function(e){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])};o=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},s=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},l=function(e,n,r,i){var o,a=arguments.length,s=a<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"===("undefined"==typeof Reflect?"undefined":t(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,n,r,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(s=(a<3?o(s):a>3?o(n,r,s):o(n,r))||s);return a>3&&s&&Object.defineProperty(n,r,s),s},u=function(t,e){return function(n,r){e(n,r,t)}},c=function(e,n){if("object"===("undefined"==typeof Reflect?"undefined":t(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)},h=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{l(r.next(t))}catch(e){o(e)}}function s(t){try{l(r.throw(t))}catch(e){o(e)}}function l(t){t.done?n(t.value):i(t.value).then(a,s)}l((r=r.apply(t,e||[])).next())}))},f=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return l([t,e])}}function l(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},d=function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||P(e,t,n)},P=Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]},p=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},g=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},v=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(g(arguments[e]));return t},y=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},m=function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t},_=function(t){return this instanceof _?(this.v=t,this):new _(t)},x=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{l(i[t](e))}catch(n){h(o[0][3],n)}}function l(t){t.value instanceof _?Promise.resolve(t.value.v).then(u,c):h(o[0][2],t)}function u(t){s("next",t)}function c(t){s("throw",t)}function h(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}},b=function(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:_(t[r](e)),done:"return"===r}:i?i(e):e}:i}},w=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){i(r,o,(e=t[n](e)).done,e.value)}))}}function i(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}},M=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t};var r=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};S=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&P(e,t,n);return r(e,t),e},j=function(t){return t&&t.__esModule?t:{default:t}},C=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},E=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n},e("__extends",o),e("__assign",a),e("__rest",s),e("__decorate",l),e("__param",u),e("__metadata",c),e("__awaiter",h),e("__generator",f),e("__exportStar",d),e("__createBinding",P),e("__values",p),e("__read",g),e("__spread",v),e("__spreadArrays",y),e("__spreadArray",m),e("__await",_),e("__asyncGenerator",x),e("__asyncDelegator",b),e("__asyncValues",w),e("__makeTemplateObject",M),e("__importStar",S),e("__importDefault",j),e("__classPrivateFieldGet",C),e("__classPrivateFieldSet",E)}(A(k,A(e)))}.apply(n,[n]),void 0===i||(e.exports=i)}()}).call(this,r(/*! ./../_webpack@4.46.0@webpack/buildin/global.js */"./node_modules/_webpack@4.46.0@webpack/buildin/global.js"))},"./node_modules/_webpack@4.46.0@webpack/buildin/global.js":
- /*!***********************************!*\
- !*** (webpack)/buildin/global.js ***!
- \***********************************/
- /*! no static exports found */function(e,n){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(i){"object"===("undefined"==typeof window?"undefined":t(window))&&(r=window)}e.exports=r},"./node_modules/_webpack@4.46.0@webpack/buildin/module.js":
- /*!***********************************!*\
- !*** (webpack)/buildin/module.js ***!
- \***********************************/
- /*! no static exports found */function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"./node_modules/_wolfy87-eventemitter@5.2.9@wolfy87-eventemitter/EventEmitter.js":
- /*!***************************************************************************************!*\
- !*** ./node_modules/_wolfy87-eventemitter@5.2.9@wolfy87-eventemitter/EventEmitter.js ***!
- \***************************************************************************************/
- /*! no static exports found */function(e,n,r){var i;
- /*!
- * EventEmitter v5.2.9 - git.io/ee
- * Unlicense - http://unlicense.org/
- * Oliver Caldwell - https://oli.me.uk/
- * @preserve
- */!function(n){function o(){}var a=o.prototype,s=n.EventEmitter;function l(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function u(t){return function(){return this[t].apply(this,arguments)}}function c(e){return"function"==typeof e||e instanceof RegExp||!(!e||"object"!==t(e))&&c(e.listener)}a.getListeners=function(t){var e,n,r=this._getEvents();if(t instanceof RegExp)for(n in e={},r)r.hasOwnProperty(n)&&t.test(n)&&(e[n]=r[n]);else e=r[t]||(r[t]=[]);return e},a.flattenListeners=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push(t[e].listener);return n},a.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&((e={})[t]=n),e||n},a.addListener=function(e,n){if(!c(n))throw new TypeError("listener must be a function");var r,i=this.getListenersAsObject(e),o="object"===t(n);for(r in i)i.hasOwnProperty(r)&&-1===l(i[r],n)&&i[r].push(o?n:{listener:n,once:!1});return this},a.on=u("addListener"),a.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},a.once=u("addOnceListener"),a.defineEvent=function(t){return this.getListeners(t),this},a.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},a.removeListener=function(t,e){var n,r,i=this.getListenersAsObject(t);for(r in i)i.hasOwnProperty(r)&&-1!==(n=l(i[r],e))&&i[r].splice(n,1);return this},a.off=u("removeListener"),a.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},a.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},a.manipulateListeners=function(e,n,r){var i,o,a=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if("object"!==t(n)||n instanceof RegExp)for(i=r.length;i--;)a.call(this,n,r[i]);else for(i in n)n.hasOwnProperty(i)&&(o=n[i])&&("function"==typeof o?a.call(this,i,o):s.call(this,i,o));return this},a.removeEvent=function(e){var n,r=t(e),i=this._getEvents();if("string"===r)delete i[e];else if(e instanceof RegExp)for(n in i)i.hasOwnProperty(n)&&e.test(n)&&delete i[n];else delete this._events;return this},a.removeAllListeners=u("removeEvent"),a.emitEvent=function(t,e){var n,r,i,o,a=this.getListenersAsObject(t);for(o in a)if(a.hasOwnProperty(o))for(n=a[o].slice(0),i=0;i<n.length;i++)!0===(r=n[i]).once&&this.removeListener(t,r.listener),r.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,r.listener);return this},a.trigger=u("emitEvent"),a.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},a.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},a._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},a._getEvents=function(){return this._events||(this._events={})},o.noConflict=function(){return n.EventEmitter=s,o},void 0===(i=function(){return o}.call(n,r,n,e))||(e.exports=i)}("undefined"!=typeof window?window:this||{})},"./src/api/geo.ts":
- /*!************************!*\
- !*** ./src/api/geo.ts ***!
- \************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=n(/*! d3-geo */"./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js"),a=n(/*! d3-geo-projection */"./node_modules/_d3-geo-projection@2.1.2@d3-geo-projection/build/d3-geo-projection.js"),s=n(/*! ../view */"./src/view.ts"),l=r.__importDefault(n(/*! ../util/get-geo-projection */"./src/util/get-geo-projection.ts")),u={geoArea:function(t){return o.geoArea(t)},geoAreaByName:function(t){return o.geoArea(this.geoFeatureByName(t))},geoCentroid:function(t){return o.geoCentroid(t)},geoCentroidByName:function(t){return o.geoCentroid(this.geoFeatureByName(t))},geoDistance:function(t,e){return o.geoDistance(t,e)},geoLength:function(t){return o.geoLength(t)},geoLengthByName:function(t){return o.geoLength(this.geoFeatureByName(t))},geoContains:function(t,e){return o.geoContains(t,e)},geoFeatureByName:function(t){var e;return this.rows.some((function(n){return n.name===t&&(e=n,!0)})),e},geoFeatureByPosition:function(t){var e;return this.rows.some((function(n){return!!o.geoContains(n,t)&&(e=n,!0)})),e},geoNameByPosition:function(t){var e=this.geoFeatureByPosition(t);if(e)return e.name},getGeoProjection:l.default,geoProject:function(t,e,n){return e=l.default(e,n),a.geoProject(t,e)},geoProjectByName:function(t,e,n){return e=l.default(e,n),a.geoProject(this.geoFeatureByName(t),e)},geoProjectPosition:function(t,e,n){return l.default(e,n)(t)},geoProjectInvert:function(t,e,n){return l.default(e,n).invert(t)}};i.assign(s.View.prototype,u)},"./src/api/hierarchy.ts":
- /*!******************************!*\
- !*** ./src/api/hierarchy.ts ***!
- \******************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),i=n(/*! ../view */"./src/view.ts");r.assign(i.View.prototype,{getAllNodes:function(){var t=[],e=this.root;return e&&e.each?e.each((function(e){t.push(e)})):e&&e.eachNode&&e.eachNode((function(e){t.push(e)})),t},getAllLinks:function(){for(var t,e=[],n=[this.root];t=n.pop();){var r=t.children;r&&r.forEach((function(r){e.push({source:t,target:r}),n.push(r)}))}return e}}),r.assign(i.View.prototype,{getAllEdges:i.View.prototype.getAllLinks})},"./src/api/partition.ts":
- /*!******************************!*\
- !*** ./src/api/partition.ts ***!
- \******************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=r.__importDefault(n(/*! ../util/partition */"./src/util/partition.ts")),a=n(/*! ../view */"./src/view.ts");i.assign(a.View.prototype,{partition:function(t,e){return void 0===e&&(e=[]),o.default(this.rows,t,e)},group:function(t,e){void 0===e&&(e=[]);var n=this.partition(t,e);return i.values(n)},groups:function(t,e){return void 0===e&&(e=[]),this.group(t,e)}})},"./src/api/statistics.ts":
- /*!*******************************!*\
- !*** ./src/api/statistics.ts ***!
- \*******************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=r.__importStar(n(/*! simple-statistics */"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js")),o=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),a=n(/*! ../view */"./src/view.ts"),s=r.__importDefault(n(/*! ../util/p-by-fraction */"./src/util/p-by-fraction.ts"));function l(t,e){var n=t.getColumn(e);return o.isArray(n)&&o.isArray(n[0])&&(n=o.flattenDeep(n)),n}r.__importDefault(n(/*! ../constants */"./src/constants.ts")).default.STATISTICS_METHODS.forEach((function(t){a.View.prototype[t]=function(e){return i[t](l(this,e))}}));var u=i.quantile;o.assign(a.View.prototype,{average:a.View.prototype.mean,quantile:function(t,e){return u(l(this,t),e)},quantiles:function(t,e){var n=l(this,t);return e.map((function(t){return u(n,t)}))},quantilesByFraction:function(t,e){return this.quantiles(t,s.default(e))},range:function(t){return[this.min(t),this.max(t)]},extent:function(t){return this.range(t)}})},"./src/connector/default.ts":
- /*!**********************************!*\
- !*** ./src/connector/default.ts ***!
- \**********************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js");n(/*! ../data-set */"./src/data-set.ts").DataSet.registerConnector("default",(function(t,e){var n;if(!(n=r.isString(t)?e.getView(t):t))throw new TypeError("Invalid dataView");return r.deepMix([],n.rows)}))},"./src/connector/dsv.ts":
- /*!******************************!*\
- !*** ./src/connector/dsv.ts ***!
- \******************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),i=n(/*! d3-dsv */"./node_modules/_d3-dsv@1.2.0@d3-dsv/dist/d3-dsv.js"),o=n(/*! ../data-set */"./src/data-set.ts");o.DataSet.registerConnector("dsv",(function(t,e){void 0===e&&(e={});var n=e.delimiter||",";if(!r.isString(n))throw new TypeError("Invalid delimiter: must be a string!");return i.dsvFormat(n).parse(t)})),o.DataSet.registerConnector("csv",(function(t){return i.csvParse(t)})),o.DataSet.registerConnector("tsv",(function(t){return i.tsvParse(t)}))},"./src/connector/geo-graticule.ts":
- /*!****************************************!*\
- !*** ./src/connector/geo-graticule.ts ***!
- \****************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! d3-geo */"./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js"),i=n(/*! ../data-set */"./src/data-set.ts");function o(t,e){e.dataType="geo-graticule";var n=r.geoGraticule().lines();return n.map((function(t,e){return t.index=""+e,t})),e.rows=n,n}e.default=o,i.DataSet.registerConnector("geo-graticule",o)},"./src/connector/geojson.ts":
- /*!**********************************!*\
- !*** ./src/connector/geojson.ts ***!
- \**********************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js").__importDefault(n(/*! point-at-length */"./node_modules/_point-at-length@1.1.0@point-at-length/index.js")),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=n(/*! d3-geo */"./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js"),a=n(/*! ../data-set */"./src/data-set.ts"),s=o.geoPath();function l(t,e,n){n.dataType=a.DataSet.CONSTANTS.GEO;var o=i.deepMix([],t.features);return o.forEach((function(t){t.name=t.properties.name,t.longitude=[],t.latitude=[];var e=t.pathData=s(t);r.default(e)._path.forEach((function(e){t.longitude.push(e[1]),t.latitude.push(e[2])}));var n=s.centroid(t);t.centroidX=n[0],t.centroidY=n[1]})),o}a.DataSet.registerConnector("geo",l),a.DataSet.registerConnector("geojson",l),a.DataSet.registerConnector("GeoJSON",l),e.default=l},"./src/connector/graph.ts":
- /*!********************************!*\
- !*** ./src/connector/graph.ts ***!
- \********************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),i=n(/*! ../data-set */"./src/data-set.ts"),o={nodes:function(t){return t.nodes},edges:function(t){return t.edges}};function a(t,e,n){e=r.assign({},o,e),n.dataType=i.DataSet.CONSTANTS.GRAPH;var a=e.nodes,s=e.edges;if(a&&!r.isFunction(a))throw new TypeError("Invalid nodes: must be a function!");if(s&&!r.isFunction(s))throw new TypeError("Invalid edges: must be a function!");return n.rows=n.graph={nodes:a(t),edges:s(t)},r.assign(n,n.graph),n.rows}i.DataSet.registerConnector("graph",a),i.DataSet.registerConnector("diagram",a)},"./src/connector/hexjson.ts":
- /*!**********************************!*\
- !*** ./src/connector/hexjson.ts ***!
- \**********************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),i=n(/*! d3-hexjson */"./node_modules/_d3-hexjson@1.1.1@d3-hexjson/build/d3-hexjson.js"),o=n(/*! ../data-set */"./src/data-set.ts"),a={width:1,height:1};function s(t){return t.cx=t.x,t.cy=t.y,t.x=[],t.y=[],t.vertices.forEach((function(e){t.x.push(e.x+t.cx),t.y.push(e.y+t.cy)})),t}function l(t,e,n){n.dataType=o.DataSet.CONSTANTS.HEX;var l=(e=r.assign({},a,e)).width,u=e.height,c=r.deepMix([],t);n._HexJSON=c;var h=n._GridHexJSON=i.getGridForHexJSON(c),f=n.rows=i.renderHexJSON(c,l,u).map(s);return n._gridRows=i.renderHexJSON(h,l,u).map(s),f}o.DataSet.registerConnector("hex",l),o.DataSet.registerConnector("hexjson",l),o.DataSet.registerConnector("hex-json",l),o.DataSet.registerConnector("HexJSON",l),e.default=l},"./src/connector/hierarchy.ts":
- /*!************************************!*\
- !*** ./src/connector/hierarchy.ts ***!
- \************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),i=n(/*! d3-hierarchy */"./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js"),o=n(/*! ../data-set */"./src/data-set.ts");function a(t,e,n){n.dataType=o.DataSet.CONSTANTS.HIERARCHY;var a=e&&e.children?e.children:null;if(a&&!r.isFunction(a))throw new TypeError("Invalid children: must be a function!");return e.pureData?n.rows=n.root=t:n.rows=n.root=i.hierarchy(t,a),t}o.DataSet.registerConnector("hierarchy",a),o.DataSet.registerConnector("tree",a)},"./src/connector/topojson.ts":
- /*!***********************************!*\
- !*** ./src/connector/topojson.ts ***!
- \***********************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=n(/*! topojson-client */"./node_modules/_topojson-client@3.1.0@topojson-client/dist/topojson-client.js"),a=r.__importDefault(n(/*! ./geojson */"./src/connector/geojson.ts")),s=n(/*! ../data-set */"./src/data-set.ts");function l(t,e,n){var r=e.object;if(!i.isString(r))throw new TypeError("Invalid object: must be a string!");var s=o.feature(t,t.objects[r]);return a.default(s,void 0,n)}s.DataSet.registerConnector("topojson",l),s.DataSet.registerConnector("TopoJSON",l)},"./src/constants.ts":
- /*!**************************!*\
- !*** ./src/constants.ts ***!
- \**************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default={HIERARCHY:"hierarchy",GEO:"geo",HEX:"hex",GRAPH:"graph",TABLE:"table",GEO_GRATICULE:"geo-graticule",STATISTICS_METHODS:["max","mean","median","min","mode","product","standardDeviation","sum","sumSimple","variance"]}},"./src/data-set.ts":
- /*!*************************!*\
- !*** ./src/data-set.ts ***!
- \*************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.DataSet=void 0;var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=r.__importDefault(n(/*! wolfy87-eventemitter */"./node_modules/_wolfy87-eventemitter@5.2.9@wolfy87-eventemitter/EventEmitter.js")),a=n(/*! ./view */"./src/view.ts"),s=r.__importDefault(n(/*! ./constants */"./src/constants.ts")),l=function(t){function e(e){void 0===e&&(e={state:{}});var n=t.call(this)||this;return n.isDataSet=!0,n._onChangeTimer=null,n.views={},n.state={},n.state=e.state,n}return r.__extends(e,t),e.registerConnector=function(t,n){e.connectors[t]=n},e.getConnector=function(t){return e.connectors[t]||e.connectors.default},e.registerTransform=function(t,n){e.transforms[t]=n},e.getTransform=function(t){return e.transforms[t]||e.transforms.default},e.prototype._getUniqueViewName=function(){for(var t=i.uniqueId("view_");this.views[t];)t=i.uniqueId("view_");return t},e.prototype.createView=function(t,e){if(i.isNil(t)&&(t=this._getUniqueViewName()),i.isObject(t)&&(e=t,t=this._getUniqueViewName()),this.views[t])throw new Error("data view exists: "+t);var n=new a.View(this,e);return this.views[t]=n,n},e.prototype.getView=function(t){return this.views[t]},e.prototype.setView=function(t,e){this.views[t]=e},e.prototype.setState=function(t,e){var n=this;this.state[t]=e,this._onChangeTimer&&(window.clearTimeout(this._onChangeTimer),this._onChangeTimer=null),this._onChangeTimer=window.setTimeout((function(){n.emit("statechange",t,e)}),16)},e.CONSTANTS=s.default,e.connectors={},e.transforms={},e.DataSet=e,e.DataView=a.View,e.View=a.View,e.version="____DATASET_VERSION____",e}(o.default);e.DataSet=l,i.assign(l,s.default),i.assign(l.prototype,{view:l.prototype.createView}),a.View.DataSet=l},"./src/index.ts":
- /*!**********************!*\
- !*** ./src/index.ts ***!
- \**********************/
- /*! no static exports found */function(t,e,n){n(/*! ./api/geo */"./src/api/geo.ts"),n(/*! ./api/hierarchy */"./src/api/hierarchy.ts"),n(/*! ./api/partition */"./src/api/partition.ts"),n(/*! ./api/statistics */"./src/api/statistics.ts"),n(/*! ./connector/default */"./src/connector/default.ts"),n(/*! ./connector/dsv */"./src/connector/dsv.ts"),n(/*! ./connector/geo-graticule */"./src/connector/geo-graticule.ts"),n(/*! ./connector/geojson */"./src/connector/geojson.ts"),n(/*! ./connector/graph */"./src/connector/graph.ts"),n(/*! ./connector/hexjson */"./src/connector/hexjson.ts"),n(/*! ./connector/hierarchy */"./src/connector/hierarchy.ts"),n(/*! ./connector/topojson */"./src/connector/topojson.ts"),n(/*! ./transform/default */"./src/transform/default.ts"),n(/*! ./transform/filter */"./src/transform/filter.ts"),n(/*! ./transform/fold */"./src/transform/fold.ts"),n(/*! ./transform/map */"./src/transform/map.ts"),n(/*! ./transform/partition */"./src/transform/partition.ts"),n(/*! ./transform/percent */"./src/transform/percent.ts"),n(/*! ./transform/pick */"./src/transform/pick.ts"),n(/*! ./transform/proportion */"./src/transform/proportion.ts"),n(/*! ./transform/rename */"./src/transform/rename.ts"),n(/*! ./transform/reverse */"./src/transform/reverse.ts"),n(/*! ./transform/sort */"./src/transform/sort.ts"),n(/*! ./transform/sort-by */"./src/transform/sort-by.ts"),n(/*! ./transform/subset */"./src/transform/subset.ts"),n(/*! ./transform/fill-rows */"./src/transform/fill-rows.ts"),n(/*! ./transform/impute */"./src/transform/impute.ts"),n(/*! ./transform/aggregate */"./src/transform/aggregate.ts"),n(/*! ./transform/regression */"./src/transform/regression.ts"),n(/*! ./transform/kde */"./src/transform/kde.ts"),n(/*! ./transform/bin/hexagon */"./src/transform/bin/hexagon.ts"),n(/*! ./transform/bin/histogram */"./src/transform/bin/histogram.ts"),n(/*! ./transform/bin/quantile */"./src/transform/bin/quantile.ts"),n(/*! ./transform/bin/rectangle */"./src/transform/bin/rectangle.ts"),n(/*! ./transform/geo/centroid */"./src/transform/geo/centroid.ts"),n(/*! ./transform/geo/projection */"./src/transform/geo/projection.ts"),n(/*! ./transform/geo/region */"./src/transform/geo/region.ts"),n(/*! ./transform/diagram/arc */"./src/transform/diagram/arc.ts"),n(/*! ./transform/diagram/dagre */"./src/transform/diagram/dagre.ts"),n(/*! ./transform/diagram/sankey */"./src/transform/diagram/sankey.ts"),n(/*! ./transform/diagram/voronoi */"./src/transform/diagram/voronoi.ts"),n(/*! ./transform/hierarchy/cluster */"./src/transform/hierarchy/cluster.ts"),n(/*! ./transform/hierarchy/compact-box */"./src/transform/hierarchy/compact-box.ts"),n(/*! ./transform/hierarchy/dendrogram */"./src/transform/hierarchy/dendrogram.ts"),n(/*! ./transform/hierarchy/indented */"./src/transform/hierarchy/indented.ts"),n(/*! ./transform/hierarchy/pack */"./src/transform/hierarchy/pack.ts"),n(/*! ./transform/hierarchy/partition */"./src/transform/hierarchy/partition.ts"),n(/*! ./transform/hierarchy/tree */"./src/transform/hierarchy/tree.ts"),n(/*! ./transform/hierarchy/treemap */"./src/transform/hierarchy/treemap.ts"),n(/*! ./transform/tag-cloud */"./src/transform/tag-cloud.ts"),n(/*! ./transform/waffle */"./src/transform/waffle.ts"),n(/*! ./transform/kernel-smooth/density */"./src/transform/kernel-smooth/density.ts"),n(/*! ./transform/kernel-smooth/regression */"./src/transform/kernel-smooth/regression.ts");var r=n(/*! ./data-set */"./src/data-set.ts");t.exports=r.DataSet},"./src/transform/aggregate.ts":
- /*!************************************!*\
- !*** ./src/transform/aggregate.ts ***!
- \************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=r.__importStar(n(/*! simple-statistics */"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js")),a=r.__importDefault(n(/*! ../util/partition */"./src/util/partition.ts")),s=n(/*! ../data-set */"./src/data-set.ts"),l=s.DataSet.registerTransform,u=n(/*! ../util/option-parser */"./src/util/option-parser.ts"),c={as:[],fields:[],groupBy:[],operations:[]},h="count",f={count:function(t){return t.length},distinct:function(t,e){return i.uniq(t.map((function(t){return t[e]}))).length}};function d(t,e){e=i.assign({},c,e);var n=u.getFields(e);if(!i.isArray(n))throw new TypeError("Invalid fields: it must be an array with one or more strings!");var r=e.as||[];i.isString(r)&&(r=[r]);var o=e.operations;i.isString(o)&&(o=[o]);var s=[h];if(i.isArray(o)&&o.length||(console.warn('operations is not defined, will use [ "count" ] directly.'),r=o=s),1!==o.length||o[0]!==h){if(o.length!==n.length)throw new TypeError("Invalid operations: it's length must be the same as fields!");if(r.length!==n.length)throw new TypeError("Invalid as: it's length must be the same as fields!")}var l=a.default(t.rows,e.groupBy),d=[];i.forIn(l,(function(t){var e=t[0];o.forEach((function(i,o){var a=r[o],s=n[o];e[a]=f[i](t,s)})),d.push(e)})),t.rows=d}s.DataSet.CONSTANTS.STATISTICS_METHODS.forEach((function(t){f[t]=function(e,n){var r=e.map((function(t){return t[n]}));return i.isArray(r)&&i.isArray(r[0])&&(r=i.flattenDeep(r)),o[t](r)}})),f.average=f.mean,l("aggregate",d),l("summary",d),e.default={VALID_AGGREGATES:i.keys(f)}},"./src/transform/bin/hexagon.ts":
- /*!**************************************!*\
- !*** ./src/transform/bin/hexagon.ts ***!
- \**************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=n(/*! ../../data-set */"./src/data-set.ts"),a=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),s={as:["x","y","count"],bins:[30,30],offset:[0,0],sizeByCount:!1},l=Math.sqrt(3),u=Math.PI/3,c=[0,u,2*u,3*u,4*u,5*u];function h(t,e,n,r){return Math.sqrt((t-n)*(t-n)+(e-r)*(e-r))}function f(t,e,n){var r=t-n;e/=2;var i=Math.floor(r/e);return[e*(i+(1===Math.abs(i%2)?1:0))+n,e*(i+(1===Math.abs(i%2)?0:1))+n]}function d(t,e){e=i.assign({},s,e);var n=a.getFields(e);if(!i.isArray(n)||2!==n.length)throw new TypeError("Invalid fields: it must be an array with 2 strings!");var o=r.__read(n,2),u=o[0],d=o[1],p=t.range(u),g=t.range(d),v=p[1]-p[0],y=g[1]-g[0],m=e.binWidth||[];if(2!==m.length){var _=r.__read(e.bins,2),x=_[0],b=_[1];if(x<=0||b<=0)throw new TypeError("Invalid bins: must be an array with two positive numbers (e.g. [ 30, 30 ])!");m=[v/x,y/b]}var w=r.__read(e.offset,2),M=w[0],S=w[1],j=3*m[0]/(l*m[1]),C=function(t,e,n){void 0===e&&(e=[1,1]),void 0===n&&(n=[0,0]);var i={},o=r.__read(e,2),a=o[0],s=o[1],l=r.__read(n,2),u=l[0],c=l[1];return t.forEach((function(t){var e,n,o,l,d,p=r.__read(t,2),g=p[0],v=p[1],y=r.__read(f(g,a,u),2),m=y[0],_=y[1],x=r.__read(f(v,s,c),2),b=x[0],w=x[1];h(g,v,m,b)<h(g,v,_,w)?(o="x"+m+"y"+b,l=(e=r.__read([m,b],2))[0],d=e[1]):(o="x"+_+"y"+w,l=(n=r.__read([_,w],2))[0],d=n[1]),i[o]=i[o]||{x:l,y:d,count:0},i[o].count++})),i}(t.rows.map((function(t){return[t[u],j*t[d]]})),[m[0],j*m[1]],[M,j*S]),E=r.__read(e.as,3),P=E[0],T=E[1],k=E[2];if(!P||!T||!k)throw new TypeError('Invalid as: it must be an array with three elements (e.g. [ "x", "y", "count" ])!');var A=m[0]/l,O=c.map((function(t){return[Math.sin(t)*A,-Math.cos(t)*A]})),I=[],B=0;e.sizeByCount&&i.forIn(C,(function(t){t.count>B&&(B=t.count)})),i.forIn(C,(function(t){var n=t.x,r=t.y,i=t.count,o={};o[k]=i,e.sizeByCount?(o[P]=O.map((function(e){return n+t.count/B*e[0]})),o[T]=O.map((function(e){return(r+t.count/B*e[1])/j}))):(o[P]=O.map((function(t){return n+t[0]})),o[T]=O.map((function(t){return(r+t[1])/j}))),I.push(o)})),t.rows=I}o.DataSet.registerTransform("bin.hexagon",d),o.DataSet.registerTransform("bin.hex",d),o.DataSet.registerTransform("hexbin",d)},"./src/transform/bin/histogram.ts":
- /*!****************************************!*\
- !*** ./src/transform/bin/histogram.ts ***!
- \****************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=r.__importDefault(n(/*! ../../util/partition */"./src/util/partition.ts")),a=n(/*! ../../data-set */"./src/data-set.ts"),s=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),l={as:["x","count"],bins:void 0,offset:0,groupBy:[]};function u(t,e){e=i.assign({},l,e);var n=s.getField(e);if(0!==t.rows.length){var a,u=t.range(n),c=u[1]-u[0],h=e.binWidth,f=e.bins;if(!h&&f){if(f<=0)throw new TypeError("Invalid bins: it must be a positive number!");h=c/f}if(!h&&!f){var d=(a=t.rows.length,Math.ceil(Math.log(a)/Math.LN2)+1);h=c/d}var p=e.offset%h,g=[],v=e.groupBy,y=o.default(t.rows,v);i.forIn(y,(function(t){var o={};t.map((function(t){return t[n]})).forEach((function(t){var e=r.__read(function(t,e,n){var r=t-n,i=Math.floor(r/e);return[i*e+n,(i+1)*e+n]}(t,h,p),2),n=e[0],i=e[1],a=n+"-"+i;o[a]=o[a]||{x0:n,x1:i,count:0},o[a].count++}));var a=r.__read(e.as,2),s=a[0],l=a[1];if(!s||!l)throw new TypeError('Invalid as: it must be an array with 2 elements (e.g. [ "x", "count" ])!');var u=i.pick(t[0],v);i.forIn(o,(function(t){var e=i.assign({},u);e[s]=[t.x0,t.x1],e[l]=t.count,g.push(e)}))})),t.rows=g}}a.DataSet.registerTransform("bin.histogram",u),a.DataSet.registerTransform("bin.dot",u)},"./src/transform/bin/quantile.ts":
- /*!***************************************!*\
- !*** ./src/transform/bin/quantile.ts ***!
- \***************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=n(/*! simple-statistics */"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js"),a=r.__importDefault(n(/*! ../../util/partition */"./src/util/partition.ts")),s=r.__importDefault(n(/*! ../../util/p-by-fraction */"./src/util/p-by-fraction.ts")),l=n(/*! ../../data-set */"./src/data-set.ts").DataSet.registerTransform,u=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),c={as:"_bin",groupBy:[],fraction:4};l("bin.quantile",(function(t,e){e=i.assign({},c,e);var n=u.getField(e),r=e.as;if(!i.isString(r))throw new TypeError('Invalid as: it must be a string (e.g. "_bin")!');var l=e.p,h=e.fraction;i.isArray(l)&&0!==l.length||(l=s.default(h));var f=t.rows,d=e.groupBy,p=a.default(f,d),g=[];i.forIn(p,(function(t){var e=t[0],i=t.map((function(t){return t[n]})),a=l.map((function(t){return o.quantile(i,t)}));e[r]=a,g.push(e)})),t.rows=g}))},"./src/transform/bin/rectangle.ts":
- /*!****************************************!*\
- !*** ./src/transform/bin/rectangle.ts ***!
- \****************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=n(/*! ../../data-set */"./src/data-set.ts").DataSet.registerTransform,a=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),s={as:["x","y","count"],bins:[30,30],offset:[0,0],sizeByCount:!1};function l(t,e,n){var r=t-n,i=Math.floor(r/e);return[i*e+n,(i+1)*e+n]}function u(t,e){e=i.assign({},s,e);var n=r.__read(a.getFields(e),2),o=n[0],u=n[1];if(!o||!u)throw new TypeError("Invalid fields: must be an array with 2 strings!");var c=t.range(o),h=t.range(u),f=c[1]-c[0],d=h[1]-h[0],p=e.binWidth||[];if(2!==p.length){var g=r.__read(e.bins,2),v=g[0],y=g[1];if(v<=0||y<=0)throw new TypeError("Invalid bins: must be an array with 2 positive numbers (e.g. [ 30, 30 ])!");p=[f/v,d/y]}var m=t.rows.map((function(t){return[t[o],t[u]]})),_={},x=r.__read(e.offset,2),b=x[0],w=x[1];m.forEach((function(t){var e=r.__read(l(t[0],p[0],b),2),n=e[0],i=e[1],o=r.__read(l(t[1],p[1],w),2),a=o[0],s=o[1],u=n+"-"+i+"-"+a+"-"+s;_[u]=_[u]||{x0:n,x1:i,y0:a,y1:s,count:0},_[u].count++}));var M=[],S=r.__read(e.as,3),j=S[0],C=S[1],E=S[2];if(!j||!C||!E)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "count" ])!');if(e.sizeByCount){var P=0;i.forIn(_,(function(t){t.count>P&&(P=t.count)})),i.forIn(_,(function(t){var e=t.x0,n=t.x1,i=t.y0,o=t.y1,a=t.count,s=a/P,l=r.__read([(e+n)/2,(i+o)/2],2),u=l[0],c=l[1],h=(n-e)*s/2,f=(o-i)*s/2,d=u-h,p=u+h,g=c-f,v=c+f,y={};y[j]=[d,p,p,d],y[C]=[g,g,v,v],y[E]=a,M.push(y)}))}else i.forIn(_,(function(t){var e={};e[j]=[t.x0,t.x1,t.x1,t.x0],e[C]=[t.y0,t.y0,t.y1,t.y1],e[E]=t.count,M.push(e)}));t.rows=M}o("bin.rectangle",u),o("bin.rect",u)},"./src/transform/default.ts":
- /*!**********************************!*\
- !*** ./src/transform/default.ts ***!
- \**********************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n(/*! ../data-set */"./src/data-set.ts").DataSet.registerTransform("default",(function(t){return t}))},"./src/transform/diagram/arc.ts":
- /*!**************************************!*\
- !*** ./src/transform/diagram/arc.ts ***!
- \**************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),i=n(/*! ../../data-set */"./src/data-set.ts"),o={y:0,thickness:.05,weight:!1,marginRatio:.1,id:function(t){return t.id},source:function(t){return t.source},target:function(t){return t.target},sourceWeight:function(t){return t.value||1},targetWeight:function(t){return t.value||1},sortBy:null};function a(t,e){e=r.assign({},o,e);var n={},i=t.nodes,a=t.edges;r.isArray(i)&&0!==i.length||(i=function(t,e,n){return void 0===n&&(n={}),t.forEach((function(t){var r=e.edgeSource(t),i=e.edgeTarget(t);n[r]||(n[r]={id:r}),n[i]||(n[i]={id:i})})),r.values(n)}(a,e,n)),i.forEach((function(t){var r=e.id(t);n[r]=t})),function(t,e,n){r.forIn(t,(function(t,r){t.inEdges=e.filter((function(t){return""+n.target(t)==""+r})),t.outEdges=e.filter((function(t){return""+n.source(t)==""+r})),t.edges=t.outEdges.concat(t.inEdges),t.frequency=t.edges.length,t.value=0,t.inEdges.forEach((function(e){t.value+=n.targetWeight(e)})),t.outEdges.forEach((function(e){t.value+=n.sourceWeight(e)}))}))}(n,a,e),function(t,e){var n={weight:function(t,e){return e.value-t.value},frequency:function(t,e){return e.frequency-t.frequency},id:function(t,n){return(""+e.id(t)).localeCompare(""+e.id(n))}}[e.sortBy];!n&&r.isFunction(e.sortBy)&&(n=e.sortBy),n&&t.sort(n)}(i,e),function(t,e){var n=t.length;if(!n)throw new TypeError("Invalid nodes: it's empty!");if(e.weight){var r=e.marginRatio;if(r<0||r>=1)throw new TypeError("Invalid marginRatio: it must be in range [0, 1)!");var i=r/(2*n),o=e.thickness;if(o<=0||o>=1)throw new TypeError("Invalid thickness: it must be in range (0, 1)!");var a=0;t.forEach((function(t){a+=t.value})),t.forEach((function(t){t.weight=t.value/a,t.width=t.weight*(1-r),t.height=o})),t.forEach((function(n,r){for(var a=0,s=r-1;s>=0;s--)a+=t[s].width+2*i;var l=n.minX=i+a,u=n.maxX=n.minX+n.width,c=n.minY=e.y-o/2,h=n.maxY=c+o;n.x=[l,u,u,l],n.y=[c,c,h,h]}))}else{var s=1/n;t.forEach((function(t,n){t.x=(n+.5)*s,t.y=e.y}))}}(i,e),function(t,e,n){if(n.weight){var i={};r.forIn(t,(function(t,e){i[e]=t.value})),e.forEach((function(e){var r=n.source(e),o=n.target(e),a=t[r],s=t[o];if(a&&s){var l=i[r],u=n.sourceWeight(e),c=a.minX+(a.value-l)/a.value*a.width,h=c+u/a.value*a.width;i[r]-=u;var f=i[o],d=n.targetWeight(e),p=s.minX+(s.value-f)/s.value*s.width,g=p+d/s.value*s.width;i[o]-=d;var v=n.y;e.x=[c,h,p,g],e.y=[v,v,v,v]}}))}else e.forEach((function(e){var r=t[n.source(e)],i=t[n.target(e)];r&&i&&(e.x=[r.x,i.x],e.y=[r.y,i.y])}))}(n,a,e),t.nodes=i,t.edges=a}i.DataSet.registerTransform("diagram.arc",a),i.DataSet.registerTransform("arc",a)},"./src/transform/diagram/dagre.ts":
- /*!****************************************!*\
- !*** ./src/transform/diagram/dagre.ts ***!
- \****************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=r.__importDefault(n(/*! dagre */"./node_modules/_dagre@0.8.5@dagre/index.js")),a=n(/*! ../../data-set */"./src/data-set.ts"),s={rankdir:"TB",align:"TB",nodesep:50,edgesep:10,ranksep:50,source:function(t){return t.source},target:function(t){return t.target}};function l(t,e){e=i.assign({},s,e);var n=new o.default.graphlib.Graph;n.setGraph({}),n.setDefaultEdgeLabel((function(){return{}})),t.nodes.forEach((function(t){var r=e.nodeId?e.nodeId(t):t.id;t.height||t.width||(t.height=t.width=e.edgesep),n.setNode(r,t)})),t.edges.forEach((function(t){n.setEdge(e.source(t),e.target(t))})),o.default.layout(n);var r=[],a=[];n.nodes().forEach((function(t){var e=n.node(t),i=e.x,o=e.y,a=e.height,s=e.width;e.x=[i-s/2,i+s/2,i+s/2,i-s/2],e.y=[o+a/2,o+a/2,o-a/2,o-a/2],r.push(e)})),n.edges().forEach((function(t){var e=n.edge(t).points,r={};r.x=e.map((function(t){return t.x})),r.y=e.map((function(t){return t.y})),a.push(r)})),t.nodes=r,t.edges=a}a.DataSet.registerTransform("diagram.dagre",l),a.DataSet.registerTransform("dagre",l)},"./src/transform/diagram/sankey.ts":
- /*!*****************************************!*\
- !*** ./src/transform/diagram/sankey.ts ***!
- \*****************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),i=n(/*! d3-sankey */"./node_modules/_d3-sankey@0.9.1@d3-sankey/dist/d3-sankey.js"),o=n(/*! ../../data-set */"./src/data-set.ts"),a={sankeyLeft:i.sankeyLeft,sankeyRight:i.sankeyRight,sankeyCenter:i.sankeyCenter,sankeyJustify:i.sankeyJustify},s={value:function(t){return t.value},source:function(t){return t.source},target:function(t){return t.target},nodeAlign:"sankeyJustify",nodeWidth:.02,nodePadding:.02,sort:void 0};function l(t,e){e=r.assign({},s,e);var n=null;r.isString(e.nodeAlign)?n=a[e.nodeAlign]:r.isFunction(e.nodeAlign)&&(n=e.nodeAlign);var o=i.sankey().nodeSort(e.sort).links((function(t){return t.edges})).nodeWidth(e.nodeWidth).nodePadding(e.nodePadding).extent([[0,0],[1,1]]);r.isFunction(e.nodeId)&&o.nodeId(e.nodeId),n&&o.nodeAlign(n),o(t),t.nodes.forEach((function(t){var e=t.x0,n=t.x1,r=t.y0,i=t.y1;t.x=[e,n,n,e],t.y=[r,r,i,i]})),t.edges.forEach((function(t){var e=t.source,n=t.target,r=e.x1,i=n.x0;t.x=[r,r,i,i];var o=t.width/2;t.y=[t.y0+o,t.y0-o,t.y1+o,t.y1-o]}))}o.DataSet.registerTransform("diagram.sankey",l),o.DataSet.registerTransform("sankey",l)},"./src/transform/diagram/voronoi.ts":
- /*!******************************************!*\
- !*** ./src/transform/diagram/voronoi.ts ***!
- \******************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js").__importStar(n(/*! d3-voronoi */"./node_modules/_d3-voronoi@1.1.4@d3-voronoi/dist/d3-voronoi.js")),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=n(/*! ../../data-set */"./src/data-set.ts").DataSet.registerTransform,a=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),s={as:["_x","_y"]};function l(t,e){var n=(e=i.assign({},s,e)).as;if(!i.isArray(n)||2!==n.length)throw new TypeError("Invalid as: must be an array with two strings!");var o=n[0],l=n[1],u=a.getFields(e);if(!i.isArray(u)||2!==u.length)throw new TypeError("Invalid fields: must be an array with two strings!");var c=u[0],h=u[1],f=t.rows,d=f.map((function(t){return[t[c],t[h]]})),p=r.voronoi();e.extend&&p.extent(e.extend),e.size&&p.size(e.size);var g=p(d).polygons();f.forEach((function(t,e){var n=g[e].filter((function(t){return!!t}));t[o]=n.map((function(t){return t[0]})),t[l]=n.map((function(t){return t[1]}))}))}o("diagram.voronoi",l),o("voronoi",l)},"./src/transform/fill-rows.ts":
- /*!************************************!*\
- !*** ./src/transform/fill-rows.ts ***!
- \************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=r.__importDefault(n(/*! ../util/partition */"./src/util/partition.ts")),a=n(/*! ../data-set */"./src/data-set.ts"),s={fillBy:"group",groupBy:[],orderBy:[]};function l(t,e){var n=t.map((function(t){return t}));return e.forEach((function(t){var e=n.indexOf(t);e>-1&&n.splice(e,1)})),n}function u(t,e){e=i.assign({},s,e);var n=t.rows,r=e.groupBy,a=e.orderBy,u=o.default(n,r,a),c=0,h=[];i.forIn(u,(function(t){t.length>c&&(c=t.length,h=t)}));var f=[],d={};if(h.forEach((function(t){var e=a.map((function(e){return t[e]})).join("-");f.push(e),d[e]=t})),"order"===e.fillBy){var p=h[0],g=[],v={};n.forEach((function(t){var e=a.map((function(e){return t[e]})).join("-");-1===g.indexOf(e)&&(g.push(e),v[e]=t)})),l(g,f).forEach((function(t){var e={};r.forEach((function(t){e[t]=p[t]})),a.forEach((function(n){e[n]=v[t][n]})),n.push(e),h.push(e),f.push(t),d[t]=e})),c=h.length}i.forIn(u,(function(t){if(t!==h&&t.length<c){var e=t[0],i=[];t.forEach((function(t){i.push(a.map((function(e){return t[e]})).join("-"))})),l(f,i).some((function(i,o){if(o>=c-t.length)return!0;var s=d[i],l={};return r.forEach((function(t){l[t]=e[t]})),a.forEach((function(t){l[t]=s[t]})),n.push(l),!1}))}}))}a.DataSet.registerTransform("fill-rows",u),a.DataSet.registerTransform("fillRows",u)},"./src/transform/filter.ts":
- /*!*********************************!*\
- !*** ./src/transform/filter.ts ***!
- \*********************************/
- /*! no static exports found */function(t,e,n){function r(t){return!!t}Object.defineProperty(e,"__esModule",{value:!0}),n(/*! ../data-set */"./src/data-set.ts").DataSet.registerTransform("filter",(function(t,e){t.rows=t.rows.filter(e.callback||r)}))},"./src/transform/fold.ts":
- /*!*******************************!*\
- !*** ./src/transform/fold.ts ***!
- \*******************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),i=n(/*! ../data-set */"./src/data-set.ts"),o=n(/*! ../util/option-parser */"./src/util/option-parser.ts"),a={fields:[],key:"key",retains:[],value:"value"};i.DataSet.registerTransform("fold",(function(t,e){var n=t.getColumnNames();e=r.assign({},a,e);var i=o.getFields(e);0===i.length&&(console.warn("warning: option fields is not specified, will fold all columns."),i=n);var s=e.key,l=e.value,u=e.retains;u&&0!==u.length||(u=r.difference(n,i));var c=[];t.rows.forEach((function(t){i.forEach((function(e){var n=r.pick(t,u);n[s]=e,n[l]=t[e],c.push(n)}))})),t.rows=c}))},"./src/transform/geo/centroid.ts":
- /*!***************************************!*\
- !*** ./src/transform/geo/centroid.ts ***!
- \***************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),i=n(/*! ../../data-set */"./src/data-set.ts").DataSet.registerTransform,o=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),a={as:["_centroid_x","_centroid_y"]};i("geo.centroid",(function(t,e){e=r.assign({},a,e);var n=o.getField(e),i=e.geoView||e.geoDataView;if(r.isString(i)&&t.dataSet&&(i=t.dataSet.getView(i)),!i||"geo"!==i.dataType)throw new TypeError("Invalid geoView: must be a DataView of GEO dataType!");var s=e.as;if(!r.isArray(s)||2!==s.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "cX", "cY" ])!');var l=s[0],u=s[1];t.rows.forEach((function(t){var e=i.geoFeatureByName(t[n]);e&&(i._projectedAs?(t[l]=e[i._projectedAs[2]],t[u]=e[i._projectedAs[3]]):(t[l]=e.centroidX,t[u]=e.centroidY))}))}))},"./src/transform/geo/projection.ts":
- /*!*****************************************!*\
- !*** ./src/transform/geo/projection.ts ***!
- \*****************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=n(/*! d3-geo */"./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js"),a=r.__importDefault(n(/*! point-at-length */"./node_modules/_point-at-length@1.1.0@point-at-length/index.js")),s=n(/*! ../../data-set */"./src/data-set.ts").DataSet.registerTransform,l=r.__importDefault(n(/*! ../../util/get-geo-projection */"./src/util/get-geo-projection.ts")),u={as:["_x","_y","_centroid_x","_centroid_y"]};s("geo.projection",(function(t,e){if("geo"!==t.dataType&&"geo-graticule"!==t.dataType)throw new TypeError("Invalid dataView: this transform is for Geo data only!");var n=(e=i.assign({},u,e)).projection;if(!n)throw new TypeError("Invalid projection!");n=l.default(n);var s=o.geoPath(n),c=e.as;if(!i.isArray(c)||4!==c.length)throw new TypeError('Invalid as: it must be an array with 4 strings (e.g. [ "x", "y", "cX", "cY" ])!');t._projectedAs=c;var h=r.__read(c,4),f=h[0],d=h[1],p=h[2],g=h[3];t.rows.forEach((function(t){t[f]=[],t[d]=[];var e=s(t);if(e){a.default(e)._path.forEach((function(e){t[f].push(e[1]),t[d].push(e[2])}));var n=s.centroid(t);t[p]=n[0],t[g]=n[1]}})),t.rows=t.rows.filter((function(t){return 0!==t[f].length}))}))},"./src/transform/geo/region.ts":
- /*!*************************************!*\
- !*** ./src/transform/geo/region.ts ***!
- \*************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),i=n(/*! ../../data-set */"./src/data-set.ts").DataSet.registerTransform,o=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),a={as:["_x","_y"]};i("geo.region",(function(t,e){e=r.assign({},a,e);var n=o.getField(e),i=e.geoView||e.geoDataView;if(r.isString(i)&&(i=t.dataSet.getView(i)),!i||"geo"!==i.dataType)throw new TypeError("Invalid geoView: must be a DataView of GEO dataType!");var s=e.as;if(!r.isArray(s)||2!==s.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var l=s[0],u=s[1];t.rows.forEach((function(t){var e=i.geoFeatureByName(t[n]);e&&(i._projectedAs?(t[l]=e[i._projectedAs[0]],t[u]=e[i._projectedAs[1]]):(t[l]=e.longitude,t[u]=e.latitude))}))}))},"./src/transform/hierarchy/cluster.ts":
- /*!********************************************!*\
- !*** ./src/transform/hierarchy/cluster.ts ***!
- \********************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js").__importStar(n(/*! d3-hierarchy */"./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=n(/*! ../../data-set */"./src/data-set.ts"),a=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),s={field:"value",size:[1,1],nodeSize:null,separation:null,as:["x","y"]};function l(t,e){if(t.dataType!==o.DataSet.CONSTANTS.HIERARCHY||!t.root)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root,l=(e=i.assign({},s,e)).as;if(!i.isArray(l)||2!==l.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var u=void 0;try{u=a.getField(e)}catch(d){console.warn(d)}u&&n.sum((function(t){return t[u]}));var c=r.cluster();c.size(e.size),e.nodeSize&&c.nodeSize(e.nodeSize),e.separation&&c.separation(e.separation),c(n);var h=l[0],f=l[1];n.each((function(t){t[h]=t.x,t[f]=t.y}))}o.DataSet.registerTransform("hierarchy.cluster",l),o.DataSet.registerTransform("dendrogram",l)},"./src/transform/hierarchy/compact-box.ts":
- /*!************************************************!*\
- !*** ./src/transform/hierarchy/compact-box.ts ***!
- \************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js").__importDefault(n(/*! @antv/hierarchy */"./node_modules/_@antv_hierarchy@0.6.6@@antv/hierarchy/build/hierarchy.js")),i=n(/*! ../../data-set */"./src/data-set.ts"),o={};function a(t,e){var n=t.root;if(e=Object.assign({},o,e),t.dataType!==i.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");t.root=r.default.compactBox(n,e)}i.DataSet.registerTransform("hierarchy.compact-box",a),i.DataSet.registerTransform("compact-box-tree",a),i.DataSet.registerTransform("non-layered-tidy-tree",a),i.DataSet.registerTransform("mindmap-logical",a)},"./src/transform/hierarchy/dendrogram.ts":
- /*!***********************************************!*\
- !*** ./src/transform/hierarchy/dendrogram.ts ***!
- \***********************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js").__importDefault(n(/*! @antv/hierarchy */"./node_modules/_@antv_hierarchy@0.6.6@@antv/hierarchy/build/hierarchy.js")),i=n(/*! ../../data-set */"./src/data-set.ts"),o={};function a(t,e){var n=t.root;if(e=Object.assign({},o,e),t.dataType!==i.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");t.root=r.default.dendrogram(n,e)}i.DataSet.registerTransform("hierarchy.dendrogram",a),i.DataSet.registerTransform("dendrogram",a)},"./src/transform/hierarchy/indented.ts":
- /*!*********************************************!*\
- !*** ./src/transform/hierarchy/indented.ts ***!
- \*********************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js").__importDefault(n(/*! @antv/hierarchy */"./node_modules/_@antv_hierarchy@0.6.6@@antv/hierarchy/build/hierarchy.js")),i=n(/*! ../../data-set */"./src/data-set.ts"),o={};function a(t,e){var n=t.root;if(e=Object.assign({},o,e),t.dataType!==i.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");t.root=r.default.indented(n,e)}i.DataSet.registerTransform("hierarchy.indented",a),i.DataSet.registerTransform("indented-tree",a)},"./src/transform/hierarchy/pack.ts":
- /*!*****************************************!*\
- !*** ./src/transform/hierarchy/pack.ts ***!
- \*****************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=r.__importStar(n(/*! d3-hierarchy */"./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),a=n(/*! ../../data-set */"./src/data-set.ts"),s=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),l={field:"value",size:[1,1],padding:0,as:["x","y","r"]};function u(t,e){if(t.dataType!==a.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n,r=t.root,u=(e=i.assign({},l,e)).as;if(!i.isArray(u)||3!==u.length)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');try{n=s.getField(e)}catch(p){console.warn(p)}n&&r.sum((function(t){return t[n]})).sort((function(t,e){return e[n]-t[n]}));var c=o.pack();c.size(e.size),e.padding&&c.padding(e.padding),c(r);var h=u[0],f=u[1],d=u[2];r.each((function(t){t[h]=t.x,t[f]=t.y,t[d]=t.r}))}a.DataSet.registerTransform("hierarchy.pack",u),a.DataSet.registerTransform("hierarchy.circle-packing",u),a.DataSet.registerTransform("circle-packing",u)},"./src/transform/hierarchy/partition.ts":
- /*!**********************************************!*\
- !*** ./src/transform/hierarchy/partition.ts ***!
- \**********************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js").__importStar(n(/*! d3-hierarchy */"./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=n(/*! ../../data-set */"./src/data-set.ts"),a=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),s={field:"value",size:[1,1],round:!1,padding:0,sort:!0,as:["x","y"]};function l(t,e){if(t.dataType!==o.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n,l=t.root,u=(e=i.assign({},s,e)).as;if(!i.isArray(u)||2!==u.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=a.getField(e)}catch(d){console.warn(d)}n&&l.sum((function(t){return t[n]}));var c=r.partition();c.size(e.size).round(e.round).padding(e.padding),c(l);var h=u[0],f=u[1];l.each((function(t){t[h]=[t.x0,t.x1,t.x1,t.x0],t[f]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach((function(e){-1===u.indexOf(e)&&delete t[e]}))}))}o.DataSet.registerTransform("hierarchy.partition",l),o.DataSet.registerTransform("adjacency",l)},"./src/transform/hierarchy/tree.ts":
- /*!*****************************************!*\
- !*** ./src/transform/hierarchy/tree.ts ***!
- \*****************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js").__importStar(n(/*! d3-hierarchy */"./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=n(/*! ../../data-set */"./src/data-set.ts"),a=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),s={field:"value",size:[1,1],nodeSize:null,separation:null,as:["x","y"]};function l(t,e){if(t.dataType!==o.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n,l=t.root,u=(e=i.assign({},s,e)).as;if(!i.isArray(u)||2!==u.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=a.getField(e)}catch(d){console.warn(d)}n&&l.sum((function(t){return t[n]}));var c=r.tree();c.size(e.size),e.nodeSize&&c.nodeSize(e.nodeSize),e.separation&&c.separation(e.separation),c(l);var h=u[0],f=u[1];l.each((function(t){t[h]=t.x,t[f]=t.y}))}o.DataSet.registerTransform("hierarchy.tree",l),o.DataSet.registerTransform("tree",l)},"./src/transform/hierarchy/treemap.ts":
- /*!********************************************!*\
- !*** ./src/transform/hierarchy/treemap.ts ***!
- \********************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js").__importStar(n(/*! d3-hierarchy */"./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=n(/*! ../../data-set */"./src/data-set.ts"),a=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),s={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"]};function l(t,e){if(t.dataType!==o.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n,l=t.root,u=(e=i.assign({},s,e)).as;if(!i.isArray(u)||2!==u.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=a.getField(e)}catch(d){console.warn(d)}n&&l.sum((function(t){return t[n]}));var c=r.treemap();c.tile(r[e.tile]).size(e.size).round(e.round).padding(e.padding).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft),c(l);var h=u[0],f=u[1];l.each((function(t){t[h]=[t.x0,t.x1,t.x1,t.x0],t[f]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach((function(e){-1===u.indexOf(e)&&delete t[e]}))}))}o.DataSet.registerTransform("hierarchy.treemap",l),o.DataSet.registerTransform("treemap",l)},"./src/transform/impute.ts":
- /*!*********************************!*\
- !*** ./src/transform/impute.ts ***!
- \*********************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=r.__importStar(n(/*! simple-statistics */"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js")),a=r.__importDefault(n(/*! ../util/partition */"./src/util/partition.ts")),s=n(/*! ../data-set */"./src/data-set.ts"),l=n(/*! ../util/option-parser */"./src/util/option-parser.ts"),u={groupBy:[]};function c(t){return t.filter((function(t){return!i.isUndefined(t)}))}var h=["mean","median","max","min"],f={};h.forEach((function(t){f[t]=function(e,n){return o[t](n)}})),f.value=function(t,e,n){return n},s.DataSet.registerTransform("impute",(function(t,e){e=i.assign({},u,e);var n=l.getField(e),r=e.method;if(!r)throw new TypeError("Invalid method!");if("value"===r&&!i.has(e,"value"))throw new TypeError("Invalid value: it is nil.");var o=c(t.getColumn(n)),s=a.default(t.rows,e.groupBy);i.forIn(s,(function(t){var a=c(t.map((function(t){return t[n]})));0===a.length&&(a=o),t.forEach((function(o){if(i.isUndefined(o[n]))if(i.isFunction(r))o[n]=r(o,a,e.value,t);else{if(!i.isString(r))throw new TypeError("Invalid method: must be a function or one of "+h.join(", "));o[n]=f[r](o,a,e.value)}}))}))}))},"./src/transform/kde.ts":
- /*!******************************!*\
- !*** ./src/transform/kde.ts ***!
- \******************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=r.__importDefault(n(/*! ../util/get-series-values */"./src/util/get-series-values.ts")),a=r.__importDefault(n(/*! ../util/kernel */"./src/util/kernel.ts")),s=r.__importStar(n(/*! ../util/bandwidth */"./src/util/bandwidth.ts")),l=r.__importDefault(n(/*! ../util/partition */"./src/util/partition.ts")),u=n(/*! ../data-set */"./src/data-set.ts"),c=n(/*! ../util/option-parser */"./src/util/option-parser.ts"),h=n(/*! simple-statistics */"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js"),f={minSize:.01,as:["key","y","size"],extent:[],method:"gaussian",bandwidth:"nrd",step:0,groupBy:[]},d=i.keys(a.default),p=i.keys(s);function g(t,e){e=i.assign({},f,e);var n=c.getFields(e);if(!i.isArray(n)||n.length<1)throw new TypeError("invalid fields: must be an array of at least 1 strings!");var u=e.as;if(!i.isArray(u)||3!==u.length)throw new TypeError("invalid as: must be an array of 3 strings!");var p=e.method;if(i.isString(p)){if(-1===d.indexOf(p))throw new TypeError("invalid method: "+p+". Must be one of "+d.join(", "));p=a.default[p]}if(!i.isFunction(p))throw new TypeError("invalid method: kernel method must be a function!");var g=e.extent;if(!i.isArray(g)||0===g.length){var v=[];i.each(n,(function(e){var n=t.range(e);v=v.concat(n)})),g=[Math.min.apply(Math,r.__spread(v)),Math.max.apply(Math,r.__spread(v))]}var y=e.bandwidth;i.isString(y)&&s[y]?y=s[y](t.getColumn(n[0])):i.isFunction(y)?y=y(t.getColumn(n[0])):(!i.isNumber(y)||y<=0)&&(y=s.nrd(t.getColumn(n[0])));var m=o.default(g,e.step?e.step:y),_=[],x=e.groupBy,b=l.default(t.rows,x);i.forIn(b,(function(t){var o={};i.each(n,(function(n){var a=i.pick(t[0],x);o[n]=h.kernelDensityEstimation(t.map((function(t){return t[n]})),p,y);var s=r.__read(u,3),l=s[0],c=s[1],f=s[2];a[l]=n,a[c]=[],a[f]=[],i.each(m,(function(t){var r=o[n](t);r>=e.minSize&&(a[c].push(t),a[f].push(r))})),_.push(a)}))})),t.rows=_}u.DataSet.registerTransform("kernel-density-estimation",g),u.DataSet.registerTransform("kde",g),u.DataSet.registerTransform("KDE",g),e.default={KERNEL_METHODS:d,BANDWIDTH_METHODS:p}},"./src/transform/kernel-smooth/density.ts":
- /*!************************************************!*\
- !*** ./src/transform/kernel-smooth/density.ts ***!
- \************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=r.__importDefault(n(/*! ../../util/get-series-values */"./src/util/get-series-values.ts")),a=r.__importDefault(n(/*! ../../util/kernel */"./src/util/kernel.ts")),s=n(/*! ../../data-set */"./src/data-set.ts"),l=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),u=n(/*! ../../util/bandwidth */"./src/util/bandwidth.ts"),c={as:["x","y","z"],method:"gaussian"},h=i.keys(a.default);function f(t,e){var n,s;e=i.assign({},c,e);var f=l.getFields(e);if(!i.isArray(f)||2!==f.length)throw new TypeError("invalid fields: must be an array of 2 strings!");var d,p=r.__read(e.as,3),g=p[0],v=p[1],y=p[2];if(!i.isString(g)||!i.isString(v)||!i.isString(y))throw new TypeError("invalid as: must be an array of 3 strings!");if(i.isString(e.method)){if(-1===h.indexOf(e.method))throw new TypeError("invalid method: "+e.method+". Must be one of "+h.join(", "));d=a.default[e.method]}var m,_,x,b,w=r.__read(f,2),M=w[0],S=w[1],j=e.extent,C=e.bandwidth;j&&Array.isArray(j)&&Array.isArray(j[0])&&Array.isArray(j[1])?(m=(n=r.__read(j,2))[0],_=n[1]):(m=t.range(M),_=t.range(S)),C&&Array.isArray(C)&&C.slice(0,2).every(i.isNumber)&&C.slice(0,2).every((function(t){return t>0}))?(x=(s=r.__read(C,2))[0],b=s[1]):(x=u.silverman(t.getColumn(M)),b=u.silverman(t.getColumn(S)));for(var E=o.default(m,x),P=o.default(_,b),T=t.rows.length,k=[],A=0;A<E.length;A++)for(var O=0;O<P.length;O++){for(var I=0,B=E[A],L=P[O],F=0;F<T;F++)I+=d((B-t.rows[F][M])/x)*d((L-t.rows[F][S])/b);var D=1/(T*x*b)*I,R={};R[g]=B,R[v]=L,R[y]=D,k.push(R)}t.rows=k}s.DataSet.registerTransform("kernel-smooth.density",f),s.DataSet.registerTransform("kernel.density",f),e.default={KERNEL_METHODS:h}},"./src/transform/kernel-smooth/regression.ts":
- /*!***************************************************!*\
- !*** ./src/transform/kernel-smooth/regression.ts ***!
- \***************************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=r.__importDefault(n(/*! ../../util/get-series-values */"./src/util/get-series-values.ts")),a=r.__importDefault(n(/*! ../../util/kernel */"./src/util/kernel.ts")),s=n(/*! ../../data-set */"./src/data-set.ts"),l=n(/*! simple-statistics */"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js"),u=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),c=n(/*! ../../util/bandwidth */"./src/util/bandwidth.ts"),h={as:["x","y"],method:"gaussian"},f=i.keys(a.default);function d(t,e,n,r){return t((r-n)/e)}function p(t){return function(e){return i.isArray(e)?e.map((function(e){return t(e)})):t(e)}}function g(t,e){e=i.assign({},h,e);var n=u.getFields(e);if(!i.isArray(n)||1!==n.length&&2!==n.length)throw new TypeError("invalid fields: must be an array of 1 or 2 strings!");var s,g=r.__read(e.as,2),v=g[0],y=g[1];if(!i.isString(v)||!i.isString(y))throw new TypeError("invalid as: must be an array of 2 strings!");var m=e.method;if(i.isString(m)){if(-1===f.indexOf(m))throw new TypeError("invalid method: "+m+". Must be one of "+f.join(", "));s=a.default[m]}var _=r.__read(n,2),x=_[0],b=_[1],w=t.getColumn(x),M=e.extent;!M&&i.isArray(M)||(M=t.range(x));var S=e.bandwidth;(!S||!i.isNumber(S)||S<=0)&&(S=c.silverman(w));var j,C=o.default(M,S),E=w.length,P=d.bind(null,s,S);if(i.isNil(b))j=p((function(t){var e=w.map((function(e){return P(t,e)})),n=l.sum(e),r=E*S;return n&&r?n/r:0}));else{var T=t.getColumn(b);j=p((function(t){var e=w.map((function(e){return P(t,e)})),n=l.sum(e.map((function(t,e){return t*T[e]}))),r=l.sum(e);return n&&r?n/r:0}))}var k=C.map((function(t){var e={};return e[v]=t,e[y]=j(t),e}));t.rows=k}s.DataSet.registerTransform("kernel-smooth.regression",g),s.DataSet.registerTransform("kernel.regression",g),e.default={KERNEL_METHODS:f}},"./src/transform/map.ts":
- /*!******************************!*\
- !*** ./src/transform/map.ts ***!
- \******************************/
- /*! no static exports found */function(t,e,n){function r(t){return t}Object.defineProperty(e,"__esModule",{value:!0}),n(/*! ../data-set */"./src/data-set.ts").DataSet.registerTransform("map",(function(t,e){t.rows=t.rows.map(e.callback||r)}))},"./src/transform/partition.ts":
- /*!************************************!*\
- !*** ./src/transform/partition.ts ***!
- \************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=r.__importDefault(n(/*! ../util/partition */"./src/util/partition.ts")),a=n(/*! ../data-set */"./src/data-set.ts"),s={groupBy:[],orderBy:[]};function l(t,e){e=i.assign({},s,e),t.rows=i.values(o.default(t.rows,e.groupBy,e.orderBy))}a.DataSet.registerTransform("partition",(function(t,e){e=i.assign({},s,e),t.rows=o.default(t.rows,e.groupBy,e.orderBy)})),a.DataSet.registerTransform("group",l),a.DataSet.registerTransform("groups",l)},"./src/transform/percent.ts":
- /*!**********************************!*\
- !*** ./src/transform/percent.ts ***!
- \**********************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=n(/*! simple-statistics */"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js"),a=r.__importDefault(n(/*! ../util/partition */"./src/util/partition.ts")),s=n(/*! ../data-set */"./src/data-set.ts"),l=n(/*! ../util/option-parser */"./src/util/option-parser.ts"),u={groupBy:[],as:"_percent"};s.DataSet.registerTransform("percent",(function(t,e){e=i.assign({},u,e);var n=l.getField(e),r=e.dimension,s=e.groupBy,c=e.as;if(!i.isString(r))throw new TypeError("Invalid dimension: must be a string!");if(i.isArray(c)&&(console.warn("Invalid as: must be a string, will use the first element of the array specified."),c=c[0]),!i.isString(c))throw new TypeError("Invalid as: must be a string!");var h=t.rows,f=[],d=a.default(h,s);i.forIn(d,(function(t){var e=o.sum(t.map((function(t){return t[n]}))),s=a.default(t,[r]);i.forIn(s,(function(t){var i=o.sum(t.map((function(t){return t[n]}))),a=t[0],s=a[r];a[n]=i,a[r]=s,a[c]=0===e?0:i/e,f.push(a)}))})),t.rows=f}))},"./src/transform/pick.ts":
- /*!*******************************!*\
- !*** ./src/transform/pick.ts ***!
- \*******************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),i=n(/*! ../data-set */"./src/data-set.ts"),o=n(/*! ../util/option-parser */"./src/util/option-parser.ts");i.DataSet.registerTransform("pick",(function(t,e){var n=o.getFields(e,t.getColumnNames());t.rows=t.rows.map((function(t){return r.pick(t,n)}))}))},"./src/transform/proportion.ts":
- /*!*************************************!*\
- !*** ./src/transform/proportion.ts ***!
- \*************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=r.__importDefault(n(/*! ../util/partition */"./src/util/partition.ts")),a=n(/*! ../data-set */"./src/data-set.ts"),s=n(/*! ../util/option-parser */"./src/util/option-parser.ts"),l={groupBy:[],as:"_proportion"};a.DataSet.registerTransform("proportion",(function(t,e){e=i.assign({},l,e);var n=s.getField(e),r=e.dimension,a=e.groupBy,u=e.as;if(!i.isString(r))throw new TypeError("Invalid dimension: must be a string!");if(i.isArray(u)&&(console.warn("Invalid as: must be a string, will use the first element of the array specified."),u=u[0]),!i.isString(u))throw new TypeError("Invalid as: must be a string!");var c=t.rows,h=[],f=o.default(c,a);i.forIn(f,(function(t){var e=t.length,a=o.default(t,[r]);i.forIn(a,(function(t){var i=t.length,o=t[0],a=o[r];o[n]=i,o[r]=a,o[u]=i/e,h.push(o)}))})),t.rows=h}))},"./src/transform/regression.ts":
- /*!*************************************!*\
- !*** ./src/transform/regression.ts ***!
- \*************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=r.__importDefault(n(/*! regression */"./node_modules/_regression@2.0.1@regression/dist/regression.js")),o=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),a=r.__importDefault(n(/*! ../util/get-series-values */"./src/util/get-series-values.ts")),s=n(/*! ../data-set */"./src/data-set.ts"),l=n(/*! ../util/option-parser */"./src/util/option-parser.ts"),u=n(/*! ../util/bandwidth */"./src/util/bandwidth.ts"),c={as:["x","y"],method:"linear",order:2,precision:2},h=["linear","exponential","logarithmic","power","polynomial"];s.DataSet.registerTransform("regression",(function(t,e){e=o.assign({},c,e);var n=l.getFields(e);if(!o.isArray(n)||2!==n.length)throw new TypeError("invalid fields: must be an array of 2 strings.");var s=r.__read(n,2),f=s[0],d=s[1],p=e.method;if(-1===h.indexOf(p))throw new TypeError("invalid method: "+p+". Must be one of "+h.join(", "));var g=t.rows.map((function(t){return[t[f],t[d]]})),v=i.default[p](g,e),y=e.extent;o.isArray(y)&&2===y.length||(y=t.range(f));var m=e.bandwidth;(!o.isNumber(m)||m<=0)&&(m=u.silverman(t.getColumn(f)));var _=a.default(y,m),x=[],b=r.__read(e.as,2),w=b[0],M=b[1];_.forEach((function(t){var e={},n=r.__read(v.predict(t),2),i=n[0],o=n[1];e[w]=i,e[M]=o,isFinite(o)&&x.push(e)})),t.rows=x})),e.default={REGRESSION_METHODS:h}},"./src/transform/rename.ts":
- /*!*********************************!*\
- !*** ./src/transform/rename.ts ***!
- \*********************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),i=n(/*! ../data-set */"./src/data-set.ts");function o(t,e){var n=e.map||{},i={};r.isPlainObject(n)&&r.forIn(n,(function(t,e){r.isString(t)&&r.isString(e)&&(i[e]=t)})),t.rows.forEach((function(t){r.forIn(i,(function(e,n){var r=t[n];delete t[n],t[e]=r}))}))}i.DataSet.registerTransform("rename",o),i.DataSet.registerTransform("rename-fields",o)},"./src/transform/reverse.ts":
- /*!**********************************!*\
- !*** ./src/transform/reverse.ts ***!
- \**********************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n(/*! ../data-set */"./src/data-set.ts").DataSet.registerTransform("reverse",(function(t){t.rows.reverse()}))},"./src/transform/sort-by.ts":
- /*!**********************************!*\
- !*** ./src/transform/sort-by.ts ***!
- \**********************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),i=n(/*! ../data-set */"./src/data-set.ts"),o=n(/*! ../util/option-parser */"./src/util/option-parser.ts"),a=["ASC","DESC"];function s(t,e){var n=o.getFields(e,[t.getColumnName(0)]);if(!r.isArray(n))throw new TypeError("Invalid fields: must be an array with strings!");t.rows=r.sortBy(t.rows,n);var i=e.order;if(i&&-1===a.indexOf(i))throw new TypeError("Invalid order: "+i+" must be one of "+a.join(", "));"DESC"===i&&t.rows.reverse()}i.DataSet.registerTransform("sort-by",s),i.DataSet.registerTransform("sortBy",s)},"./src/transform/sort.ts":
- /*!*******************************!*\
- !*** ./src/transform/sort.ts ***!
- \*******************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n(/*! ../data-set */"./src/data-set.ts").DataSet.registerTransform("sort",(function(t,e){var n=t.getColumnName(0);t.rows.sort(e.callback||function(t,e){return t[n]-e[n]})}))},"./src/transform/subset.ts":
- /*!*********************************!*\
- !*** ./src/transform/subset.ts ***!
- \*********************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ../data-set */"./src/data-set.ts"),i=n(/*! ../util/option-parser */"./src/util/option-parser.ts");r.DataSet.registerTransform("subset",(function(t,e){var n=e.startRowIndex||0,r=e.endRowIndex||t.rows.length-1,o=i.getFields(e,t.getColumnNames());t.rows=t.getSubset(n,r,o)}))},"./src/transform/tag-cloud.ts":
- /*!************************************!*\
- !*** ./src/transform/tag-cloud.ts ***!
- \************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=n(/*! ../data-set */"./src/data-set.ts"),a=r.__importDefault(n(/*! ../util/tag-cloud */"./src/util/tag-cloud.ts")),s=n(/*! ../util/option-parser */"./src/util/option-parser.ts"),l={fields:["text","value"],font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:500};function u(t,e){e=i.assign({},l,e);var n=a.default();if(!e.size[0]||!e.size[1])return t.rows=[],void(t._tagCloud=n);["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval"].forEach((function(t){e[t]&&n[t](e[t])}));var o=s.getFields(e),u=r.__read(o,2),c=u[0],h=u[1];if(!i.isString(c)||!i.isString(h))throw new TypeError('Invalid fields: must be an array with 2 strings (e.g. [ "text", "value" ])!');var f=t.rows.map((function(t){return t.text=t[c],t.value=t[h],t}));n.words(f),e.imageMask&&n.createMask(e.imageMask);var d=n.start(),p=d._tags,g=d._bounds||[{x:0,y:0},{x:e.size[0],y:e.size[1]}];p.forEach((function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2}));var v=r.__read(e.size,2),y=v[0],m=v[1],_=d.hasImage;p.push({text:"",value:0,x:_?0:g[0].x,y:_?0:g[0].y,opacity:0}),p.push({text:"",value:0,x:_?y:g[1].x,y:_?m:g[1].y,opacity:0}),t.rows=p,t._tagCloud=d}o.DataSet.registerTransform("tag-cloud",u),o.DataSet.registerTransform("word-cloud",u)},"./src/transform/waffle.ts":
- /*!*********************************!*\
- !*** ./src/transform/waffle.ts ***!
- \*********************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=n(/*! simple-statistics */"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js"),a=r.__importDefault(n(/*! ../util/partition */"./src/util/partition.ts")),s=n(/*! ../data-set */"./src/data-set.ts"),l=n(/*! ../util/option-parser */"./src/util/option-parser.ts"),u={fields:["name","value"],rows:5,size:[1,1],scale:1,groupBy:[],maxCount:1e3,gapRatio:.1,as:["x","y"]};s.DataSet.registerTransform("waffle",(function(t,e){e=i.assign({},u,e);var n=l.getFields(e),s=r.__read(n,2),c=s[0],h=s[1],f=r.__read(e.as,2),d=f[0],p=f[1],g=e.groupBy,v=a.default(t.rows,g),y=i.keys(v),m=r.__read(e.size,2),_=m[0],x=m[1],b=e.maxCount,w=x/y.length,M=e.rows,S=e.gapRatio,j=[],C=e.scale,E=0,P=0;i.forIn(v,(function(t){var e=o.sum(i.map(t,(function(t){return t[h]}))),n=Math.ceil(e*C/M);e*C>b&&(C=b/e,n=Math.ceil(e*C/M)),P=_/n})),i.forIn(v,(function(t){var e=[E*w,(E+1)*w],n=(e[1]-e[0])*(1-S)/M,r=0,o=0;i.each(t,(function(t){for(var a=t[h],s=Math.round(a*C),l=0;l<s;l++){o===M&&(o=0,r++);var u=i.pick(t,[c,h].concat(g));u[d]=r*P+P/2,u[p]=o*n+n/2+e[0],u._wStep=P,u._hStep=n,o++,j.push(u)}})),E+=1})),t.rows=j}))},"./src/util/bandwidth.ts":
- /*!*******************************!*\
- !*** ./src/util/bandwidth.ts ***!
- \*******************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.nrd=e.silverman=void 0;var r=n(/*! simple-statistics */"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js");e.silverman=function(t){var e=r.standardDeviation(t),n=4*Math.pow(e,5),i=3*t.length;return Math.pow(n/i,.2)},e.nrd=function(t){var e=r.standardDeviation(t),n=r.interquartileRange(t);return"number"==typeof n&&(e=Math.min(e,n/1.34)),1.06*e*Math.pow(t.length,-.2)}},"./src/util/get-geo-projection.ts":
- /*!****************************************!*\
- !*** ./src/util/get-geo-projection.ts ***!
- \****************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=r.__importStar(n(/*! d3-geo */"./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js")),a=r.__importStar(n(/*! d3-geo-projection */"./node_modules/_d3-geo-projection@2.1.2@d3-geo-projection/build/d3-geo-projection.js")),s=r.__importStar(n(/*! d3-composite-projections */"./node_modules/_d3-composite-projections@1.4.0@d3-composite-projections/d3-composite-projections.js"));e.default=function(t,e){if(void 0===e&&(e=!1),i.isFunction(t))return e?t:t();if(i.isString(t)){if(o[t])return e?o[t]:o[t]();if(a[t])return e?a[t]:a[t]();if(s[t])return e?s[t]:s[t]()}return null}},"./src/util/get-series-values.ts":
- /*!***************************************!*\
- !*** ./src/util/get-series-values.ts ***!
- \***************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js");e.default=function(t,e){for(var n=e||1,i=r.__read(t,2),o=i[0],a=i[1],s=[],l=o;l<a;)s.push(l),l+=n;return s.push(a),s}},"./src/util/kernel.ts":
- /*!****************************!*\
- !*** ./src/util/kernel.ts ***!
- \****************************/
- /*! no static exports found */function(t,e,n){function r(t){return Math.abs(t)<=1?.5:0}Object.defineProperty(e,"__esModule",{value:!0}),e.default={boxcar:r,cosine:function(t){return Math.abs(t)<=1?Math.PI/4*Math.cos(Math.PI/2*t):0},epanechnikov:function(t){return Math.abs(t)<1?.75*(1-t*t):0},gaussian:function(t){return.3989422804*Math.exp(-.5*t*t)},quartic:function(t){if(Math.abs(t)<1){var e=1-t*t;return 15/16*e*e}return 0},triangular:function(t){var e=Math.abs(t);return e<1?1-e:0},tricube:function(t){return Math.abs(t)<1?70/81*function(t){var e=1-Math.pow(Math.abs(t),3);return Math.pow(e,3)}(t):0},triweight:function(t){if(Math.abs(t)<1){var e=1-t*t;return 35/32*e*e*e}return 0},uniform:r}},"./src/util/option-parser.ts":
- /*!***********************************!*\
- !*** ./src/util/option-parser.ts ***!
- \***********************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.getFields=e.getField=void 0;var r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),i="Invalid field: it must be a string!",o="Invalid fields: it must be an array!";e.getField=function(t,e){var n=t.field,o=t.fields;if(r.isString(n))return n;if(r.isArray(n))return console.warn(i),n[0];if(console.warn(i+" will try to get fields instead."),r.isString(o))return o;if(r.isArray(o)&&o.length)return o[0];if(e)return e;throw new TypeError(i)},e.getFields=function(t,e){var n=t.field,i=t.fields;if(r.isArray(i))return i;if(r.isString(i))return console.warn(o),[i];if(console.warn(o+" will try to get field instead."),r.isString(n))return console.warn(o),[n];if(r.isArray(n)&&n.length)return console.warn(o),n;if(e)return e;throw new TypeError(o)}},"./src/util/p-by-fraction.ts":
- /*!***********************************!*\
- !*** ./src/util/p-by-fraction.ts ***!
- \***********************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e=1/t,n=[],r=0;r<=1;r+=e)n.push(r);return n}},"./src/util/partition.ts":
- /*!*******************************!*\
- !*** ./src/util/partition.ts ***!
- \*******************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=r.__importDefault(n(/*! ./simple-sort-by */"./src/util/simple-sort-by.ts"));e.default=function(t,e,n){void 0===n&&(n=[]);var r,a=t;return n&&n.length&&(a=o.default(t,n)),i.isFunction(e)?r=e:i.isArray(e)?r=function(t){return"_"+e.map((function(e){return t[e]})).join("-")}:i.isString(e)&&(r=function(t){return"_"+t[e]}),i.groupBy(a,r)}},"./src/util/simple-sort-by.ts":
- /*!************************************!*\
- !*** ./src/util/simple-sort-by.ts ***!
- \************************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js");e.default=function(t,e){void 0===e&&(e=[]);var n=void 0;return r.isFunction(e)?n=e:r.isArray(e)?n=function(t,n){for(var r=0;r<e.length;r++){var i=e[r];if(t[i]<n[i])return-1;if(t[i]>n[i])return 1}return 0}:r.isString(e)&&(n=function(t,n){return t[e]<n[e]?-1:t[e]>n[e]?1:0}),t.sort(n)}},"./src/util/tag-cloud.ts":
- /*!*******************************!*\
- !*** ./src/util/tag-cloud.ts ***!
- \*******************************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=Math.PI/180,o=2048;function a(t){return t.text}function s(){return"serif"}function l(){return"normal"}function u(t){return t.value}function c(){return 90*~~(2*Math.random())}function h(){return 1}function f(t,e,n,r){if(!e.sprite){var a=t.context,s=t.ratio;a.clearRect(0,0,2048/s,o/s);var l=0,u=0,c=0,h=n.length;for(--r;++r<h;){e=n[r],a.save(),a.font=e.style+" "+e.weight+" "+~~((e.size+1)/s)+"px "+e.font;var f=a.measureText(e.text+"m").width*s,d=e.size<<1;if(e.rotate){var p=Math.sin(e.rotate*i),g=Math.cos(e.rotate*i),v=f*g,y=f*p,m=d*g,_=d*p;f=Math.max(Math.abs(v+_),Math.abs(v-_))+31>>5<<5,d=~~Math.max(Math.abs(y+m),Math.abs(y-m))}else f=f+31>>5<<5;if(d>c&&(c=d),l+f>=2048&&(l=0,u+=c,c=0),u+d>=o)break;a.translate((l+(f>>1))/s,(u+(d>>1))/s),e.rotate&&a.rotate(e.rotate*i),a.fillText(e.text,0,0),e.padding&&(a.lineWidth=2*e.padding,a.strokeText(e.text,0,0)),a.restore(),e.width=f,e.height=d,e.xoff=l,e.yoff=u,e.x1=f>>1,e.y1=d>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,l+=f}for(var x=a.getImageData(0,0,2048/s,o/s).data,b=[];--r>=0;)if((e=n[r]).hasText){for(var w=(f=e.width)>>5,M=(d=e.y1-e.y0,0);M<d*w;M++)b[M]=0;if(null==(l=e.xoff))return;u=e.yoff;for(var S=0,j=-1,C=0;C<d;C++){for(M=0;M<f;M++){var E=w*C+(M>>5),P=x[2048*(u+C)+(l+M)<<2]?1<<31-M%32:0;b[E]|=P,S|=P}S?j=C:(e.y0++,d--,C--,u++)}e.y1=e.y0+j,e.sprite=b.slice(0,(e.y1-e.y0)*w)}}}function d(t,e,n){n>>=5;for(var r,i=t.sprite,o=t.width>>5,a=t.x-(o<<4),s=127&a,l=32-s,u=t.y1-t.y0,c=(t.y+t.y0)*n+(a>>5),h=0;h<u;h++){r=0;for(var f=0;f<=o;f++)if((r<<l|(f<o?(r=i[h*o+f])>>>s:0))&e[c+f])return!0;c+=n}return!1}function p(t,e){var n=t[0],r=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function g(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function v(t){for(var e=[],n=-1;++n<t;)e[n]=0;return e}function y(){return document.createElement("canvas")}function m(t){return"function"==typeof t?t:function(){return t}}var _={archimedean:g,rectangular:function(t){var e=4*t[0]/t[1],n=0,r=0;return function(t){var i=t<0?-1:1;switch(Math.sqrt(1+4*i*t)-i&3){case 0:n+=e;break;case 1:r+=4;break;case 2:n-=e;break;default:r-=4}return[n,r]}}};e.default=function(){var t=[256,256],e=a,n=s,i=u,x=l,b=l,w=c,M=h,S=g,j=[],C=1/0,E=Math.random,P=y,T={};function k(e,n,r){for(var i,o,a,s,l,u=n.x,c=n.y,h=Math.sqrt(t[0]*t[0]+t[1]*t[1]),f=S(t),p=E()<.5?1:-1,g=-p;(i=f(g+=p))&&(o=~~i[0],a=~~i[1],!(Math.min(Math.abs(o),Math.abs(a))>=h));)if(n.x=u+o,n.y=c+a,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1]||r&&d(n,e,t[0])||r&&(l=r,!((s=n).x+s.x1>l[0].x&&s.x+s.x0<l[1].x&&s.y+s.y1>l[0].y&&s.y+s.y0<l[1].y)))){for(var v=n.sprite,y=n.width>>5,m=t[0]>>5,_=n.x-(y<<4),x=127&_,b=32-x,w=n.y1-n.y0,M=void 0,j=(n.y+n.y0)*m+(_>>5),C=0;C<w;C++){M=0;for(var P=0;P<=y;P++)e[j+P]|=M<<b|(P<y?(M=v[C*y+P])>>>x:0);j+=m}return delete n.sprite,!0}return!1}return T.canvas=function(t){return arguments.length?(P=m(t),T):P},T.start=function(){var a=r.__read(t,2),s=a[0],l=a[1],u=function(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=2048/e,t.height=o/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}(P()),c=T.board?T.board:v((t[0]>>5)*t[1]),h=j.length,d=[],g=j.map((function(t,r){return t.text=e.call(this,t,r),t.font=n.call(this,t,r),t.style=x.call(this,t,r),t.weight=b.call(this,t,r),t.rotate=w.call(this,t,r),t.size=~~i.call(this,t,r),t.padding=M.call(this,t,r),t})).sort((function(t,e){return e.size-t.size})),y=-1,m=T.board?[{x:0,y:0},{x:s,y:l}]:null;return function(){for(var e=Date.now();Date.now()-e<C&&++y<h;){var n=g[y];n.x=s*(E()+.5)>>1,n.y=l*(E()+.5)>>1,f(u,n,g,y),n.hasText&&k(c,n,m)&&(d.push(n),m?T.hasImage||p(m,n):m=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}T._tags=d,T._bounds=m}(),T},T.createMask=function(e){var n=document.createElement("canvas"),i=r.__read(t,2),o=i[0],a=i[1];if(o&&a){var s=o>>5,l=v((o>>5)*a);n.width=o,n.height=a;var u=n.getContext("2d");u.drawImage(e,0,0,e.width,e.height,0,0,o,a);for(var c=u.getImageData(0,0,o,a).data,h=0;h<a;h++)for(var f=0;f<o;f++){var d=s*h+(f>>5),p=h*o+f<<2,g=c[p]>=250&&c[p+1]>=250&&c[p+2]>=250?1<<31-f%32:0;l[d]|=g}T.board=l,T.hasImage=!0}},T.timeInterval=function(t){return arguments.length?(C=null==t?1/0:t,T):C},T.words=function(t){return arguments.length?(j=t,T):j},T.size=function(e){return arguments.length?(t=[+e[0],+e[1]],T):t},T.font=function(t){return arguments.length?(n=m(t),T):n},T.fontStyle=function(t){return arguments.length?(x=m(t),T):x},T.fontWeight=function(t){return arguments.length?(b=m(t),T):b},T.rotate=function(t){return arguments.length?(w=m(t),T):w},T.text=function(t){return arguments.length?(e=m(t),T):e},T.spiral=function(t){return arguments.length?(S=_[t]||t,T):S},T.fontSize=function(t){return arguments.length?(i=m(t),T):i},T.padding=function(t){return arguments.length?(M=m(t),T):M},T.random=function(t){return arguments.length?(E=t,T):E},T}},"./src/view.ts":
- /*!*********************!*\
- !*** ./src/view.ts ***!
- \*********************/
- /*! no static exports found */function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.View=void 0;var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=r.__importDefault(n(/*! wolfy87-eventemitter */"./node_modules/_wolfy87-eventemitter@5.2.9@wolfy87-eventemitter/EventEmitter.js")),o=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),a=function(t){function e(e,n){var r=t.call(this)||this;if(r.isView=!0,r.isDataView=!0,r.watchingStates=null,r.dataType="table",r.transforms=[],r.origin=[],r.rows=[],e&&e.isDataSet?r.dataSet=e:(r.dataSet=null,n=e),r.loose=!r.dataSet,n&&(r.watchingStates=n.watchingStates),!r.loose){var i=r.watchingStates;e.on("statechange",(function(t){o.isArray(i)?i.indexOf(t)>-1&&r._reExecute():r._reExecute()}))}return r}return r.__extends(e,t),e.prototype._parseStateExpression=function(t){var e=this.dataSet;if(null!==e){var n=/^\$state\.(\w+)/.exec(t);return n?e.state[n[1]]:t}},e.prototype._preparseOptions=function(t){var e=this,n=function(t){var e={};return o.forIn(t,(function(t,n){o.isObject(t)&&t.isView?e[n]=t:o.isArray(t)?e[n]=t.concat([]):o.isPlainObject(t)?e[n]=o.clone(t):e[n]=t})),e}(t);return this.loose||o.forIn(n,(function(t,r){o.isString(t)&&/^\$state\./.test(t)&&(n[r]=e._parseStateExpression(t))})),n},e.prototype._prepareSource=function(t,n){if(this._source={source:t,options:n},n)r=this._preparseOptions(n),this.origin=e.DataSet.getConnector(r.type)(t,r,this);else if(t instanceof e||o.isString(t))this.origin=e.DataSet.getConnector("default")(t,this.dataSet);else if(o.isArray(t))this.origin=t;else{if(!o.isObject(t)||!t.type)throw new TypeError("Invalid source");var r=this._preparseOptions(t);this.origin=e.DataSet.getConnector(r.type)(r,this)}return this.rows=o.deepMix([],this.origin),this},e.prototype.source=function(t,e){return this._prepareSource(t,e)._reExecuteTransforms(),this.trigger("change",[]),this},e.prototype.transform=function(t){return t&&t.type&&(this.transforms.push(t),this._executeTransform(t)),this},e.prototype._executeTransform=function(t){t=this._preparseOptions(t),e.DataSet.getTransform(t.type)(this,t)},e.prototype._reExecuteTransforms=function(){var t=this;this.transforms.forEach((function(e){t._executeTransform(e)}))},e.prototype.addRow=function(t){this.rows.push(t)},e.prototype.removeRow=function(t){this.rows.splice(t,1)},e.prototype.updateRow=function(t,e){o.assign(this.rows[t],e)},e.prototype.findRows=function(t){return this.rows.filter((function(e){return o.isMatch(e,t)}))},e.prototype.findRow=function(t){return o.find(this.rows,t)},e.prototype.getColumnNames=function(){var t=this.rows[0];return t?o.keys(t):[]},e.prototype.getColumnName=function(t){return this.getColumnNames()[t]},e.prototype.getColumnIndex=function(t){return this.getColumnNames().indexOf(t)},e.prototype.getColumn=function(t){return this.rows.map((function(e){return e[t]}))},e.prototype.getColumnData=function(t){return this.getColumn(t)},e.prototype.getSubset=function(t,e,n){for(var r=[],i=t;i<=e;i++)r.push(o.pick(this.rows[i],n));return r},e.prototype.toString=function(t){return void 0===t&&(t=!1),t?JSON.stringify(this.rows,null,2):JSON.stringify(this.rows)},e.prototype._reExecute=function(){var t=this._source,e=t.source,n=t.options;this._prepareSource(e,n),this._reExecuteTransforms(),this.trigger("change",[])},e}(i.default);e.View=a}})},e.exports=r()}(Rw);var Nw=H(Rw.exports);Yp("interval","borderRadius",{draw:function(t,e){var n=t.points,r=[];return r.push(["M",n[0].x,n[0].y]),r.push(["L",n[1].x,n[1].y]),r.push(["L",n[2].x,n[2].y]),r.push(["L",n[3].x,n[3].y]),r.push("Z"),r=this.parsePath(r),e.addShape("rect",{attrs:{x:r[1][1],y:r[1][2],width:r[2][1]-r[1][1],height:r[0][2]-r[1][2],fill:t.color,radius:(r[2][1]-r[1][1])/2}})}});var zw=i({props:{screenType:{type:String}},setup:function(t,e){var r=o(),i=E(),a=s({lastChart:null,ds:null,intervalInt:null,getLastDayEnergy:function(){G().then((function(t){var n=t.data.content||[];n.sort((function(t,e){return t.date-e.date})),n.forEach((function(t){var e=t.date;t.Date=e.substr(0,4)+"-"+e.substr(4,2)+"-"+e.substr(6,2),t.value=Number(((t.energyAcTerminal||0)+(t.energyCooling||0)+(t.energyHeating||0)+(t.energyLight||0)+(t.energyOthers||0)).toFixed(0))})),0!=n.length?(a.lastChart=a.cInitChart(n),a.setChartInterval()):setTimeout((function(){e.emit("donethreepage")}),6e3)})).catch((function(){setTimeout((function(){e.emit("donethreepage")}),6e3)}))},toplay:function(){a.setChartInterval()},tostop:function(){clearInterval(a.intervalInt)},setChartInterval:function(){if("ver"==t.screenType){if(r.stopSign)return;a.intervalInt=setInterval((function(){var t=l(a.ds.state.laststart).add(1,"days"),n=l(a.ds.state.lastend).add(1,"days");a.ds.setState("laststart",t.format("YYYY-MM-DD")),a.ds.setState("lastend",n.format("YYYY-MM-DD"));var r=a.ds.views.ttime.rows;a.lastChart.changeData(r),11==r.length&&(clearInterval(a.intervalInt),e.emit("donethreepage"))}),800)}},cInitChart:function(e){if("hor"==t.screenType)var n=e[e.length-1]&&e[e.length-1].Date,r=8;else n=e[11]&&e[11].Date,r=12;var o=new Nw({state:{laststart:e[0]&&e[0].Date,lastend:n}}),s=o.createView("ttime",{});s.source(e).transform({type:"filter",callback:function(t){var e=t.Date;return e<=o.state.lastend&&e>=o.state.laststart}}),document.getElementsByTagName("body")[0].offsetWidth;var l=i.value&&new wp({container:"lastChartBox",autoFit:!0,padding:[20,20,36,20]});return l?(l.data(s.rows),l.tooltip(!1),l.scale("Date",{tickInterval:2,type:"timeCat",mask:"MM-DD"}),l.scale("value",{tickCount:5,type:"linear"}),l.axis("Date",{line:{style:{lineWidth:1,stroke:"rgba(224,194,155,0.1)",lineDash:[3,3]}},label:{style:{fill:"#E0C29B",fontSize:12}},tickLine:null}),l.axis("value",{line:null,grid:{line:{style:{lineWidth:1,stroke:"rgba(224,194,155,0.2)",lineDash:[3,3]}}},tickline:null,label:null}),l.legend(!1),l.interval().position("Date*value").color("l(90) 0:#BFA17E 1:#E0D1BB").shape("borderRadius").adjust({type:"stack"}).size(r).label("value",{offset:12,style:{fill:"#E0C29B",fontSize:12}}),l.render(),a.ds=o,l):l}});return u((function(){console.log("energychart-mounted"),a.getLastDayEnergy()})),n(n({},c(a)),{},{lastChartBox:i})}}),Hw=function(t){return _("data-v-8ec787c8"),t=t(),x(),t}((function(){return g("div",{class:"subhead-title"},[g("span",null,"上月每日能耗(kWh)")],-1)})),Gw={id:"lastChartBox",class:"lastChartBox",ref:"lastChartBox"};e("l",d(zw,[["render",function(t,e,n,r,i,o){return m(),p("div",{class:S(["lastChart",["hor"===t.screenType?"horizontalClass":"verticalTemChart"]])},[Hw,g("div",Gw,null,512)],2)}],["__scopeId","data-v-8ec787c8"]])),e("_","/sgdaping/assets/background.4e64a7f0.png")}}}))}();
|